...

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

Documentation: google.golang.org/api/discoveryengine/v1alpha

     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/v1alpha"
    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/v1alpha"
    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:v1alpha"
    90  const apiName = "discoveryengine"
    91  const apiVersion = "v1alpha"
    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.Evaluations = NewProjectsLocationsEvaluationsService(s)
   177  	rs.GroundingConfigs = NewProjectsLocationsGroundingConfigsService(s)
   178  	rs.Operations = NewProjectsLocationsOperationsService(s)
   179  	rs.RankingConfigs = NewProjectsLocationsRankingConfigsService(s)
   180  	rs.SampleQuerySets = NewProjectsLocationsSampleQuerySetsService(s)
   181  	rs.UserEvents = NewProjectsLocationsUserEventsService(s)
   182  	return rs
   183  }
   184  
   185  type ProjectsLocationsService struct {
   186  	s *Service
   187  
   188  	Collections *ProjectsLocationsCollectionsService
   189  
   190  	DataStores *ProjectsLocationsDataStoresService
   191  
   192  	Evaluations *ProjectsLocationsEvaluationsService
   193  
   194  	GroundingConfigs *ProjectsLocationsGroundingConfigsService
   195  
   196  	Operations *ProjectsLocationsOperationsService
   197  
   198  	RankingConfigs *ProjectsLocationsRankingConfigsService
   199  
   200  	SampleQuerySets *ProjectsLocationsSampleQuerySetsService
   201  
   202  	UserEvents *ProjectsLocationsUserEventsService
   203  }
   204  
   205  func NewProjectsLocationsCollectionsService(s *Service) *ProjectsLocationsCollectionsService {
   206  	rs := &ProjectsLocationsCollectionsService{s: s}
   207  	rs.DataConnector = NewProjectsLocationsCollectionsDataConnectorService(s)
   208  	rs.DataStores = NewProjectsLocationsCollectionsDataStoresService(s)
   209  	rs.Engines = NewProjectsLocationsCollectionsEnginesService(s)
   210  	rs.Operations = NewProjectsLocationsCollectionsOperationsService(s)
   211  	return rs
   212  }
   213  
   214  type ProjectsLocationsCollectionsService struct {
   215  	s *Service
   216  
   217  	DataConnector *ProjectsLocationsCollectionsDataConnectorService
   218  
   219  	DataStores *ProjectsLocationsCollectionsDataStoresService
   220  
   221  	Engines *ProjectsLocationsCollectionsEnginesService
   222  
   223  	Operations *ProjectsLocationsCollectionsOperationsService
   224  }
   225  
   226  func NewProjectsLocationsCollectionsDataConnectorService(s *Service) *ProjectsLocationsCollectionsDataConnectorService {
   227  	rs := &ProjectsLocationsCollectionsDataConnectorService{s: s}
   228  	rs.Operations = NewProjectsLocationsCollectionsDataConnectorOperationsService(s)
   229  	return rs
   230  }
   231  
   232  type ProjectsLocationsCollectionsDataConnectorService struct {
   233  	s *Service
   234  
   235  	Operations *ProjectsLocationsCollectionsDataConnectorOperationsService
   236  }
   237  
   238  func NewProjectsLocationsCollectionsDataConnectorOperationsService(s *Service) *ProjectsLocationsCollectionsDataConnectorOperationsService {
   239  	rs := &ProjectsLocationsCollectionsDataConnectorOperationsService{s: s}
   240  	return rs
   241  }
   242  
   243  type ProjectsLocationsCollectionsDataConnectorOperationsService struct {
   244  	s *Service
   245  }
   246  
   247  func NewProjectsLocationsCollectionsDataStoresService(s *Service) *ProjectsLocationsCollectionsDataStoresService {
   248  	rs := &ProjectsLocationsCollectionsDataStoresService{s: s}
   249  	rs.Branches = NewProjectsLocationsCollectionsDataStoresBranchesService(s)
   250  	rs.Conversations = NewProjectsLocationsCollectionsDataStoresConversationsService(s)
   251  	rs.CustomModels = NewProjectsLocationsCollectionsDataStoresCustomModelsService(s)
   252  	rs.Models = NewProjectsLocationsCollectionsDataStoresModelsService(s)
   253  	rs.Operations = NewProjectsLocationsCollectionsDataStoresOperationsService(s)
   254  	rs.Schemas = NewProjectsLocationsCollectionsDataStoresSchemasService(s)
   255  	rs.ServingConfigs = NewProjectsLocationsCollectionsDataStoresServingConfigsService(s)
   256  	rs.Sessions = NewProjectsLocationsCollectionsDataStoresSessionsService(s)
   257  	rs.SiteSearchEngine = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s)
   258  	rs.SuggestionDenyListEntries = NewProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService(s)
   259  	rs.UserEvents = NewProjectsLocationsCollectionsDataStoresUserEventsService(s)
   260  	return rs
   261  }
   262  
   263  type ProjectsLocationsCollectionsDataStoresService struct {
   264  	s *Service
   265  
   266  	Branches *ProjectsLocationsCollectionsDataStoresBranchesService
   267  
   268  	Conversations *ProjectsLocationsCollectionsDataStoresConversationsService
   269  
   270  	CustomModels *ProjectsLocationsCollectionsDataStoresCustomModelsService
   271  
   272  	Models *ProjectsLocationsCollectionsDataStoresModelsService
   273  
   274  	Operations *ProjectsLocationsCollectionsDataStoresOperationsService
   275  
   276  	Schemas *ProjectsLocationsCollectionsDataStoresSchemasService
   277  
   278  	ServingConfigs *ProjectsLocationsCollectionsDataStoresServingConfigsService
   279  
   280  	Sessions *ProjectsLocationsCollectionsDataStoresSessionsService
   281  
   282  	SiteSearchEngine *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService
   283  
   284  	SuggestionDenyListEntries *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService
   285  
   286  	UserEvents *ProjectsLocationsCollectionsDataStoresUserEventsService
   287  }
   288  
   289  func NewProjectsLocationsCollectionsDataStoresBranchesService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesService {
   290  	rs := &ProjectsLocationsCollectionsDataStoresBranchesService{s: s}
   291  	rs.Documents = NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s)
   292  	rs.Operations = NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s)
   293  	return rs
   294  }
   295  
   296  type ProjectsLocationsCollectionsDataStoresBranchesService struct {
   297  	s *Service
   298  
   299  	Documents *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService
   300  
   301  	Operations *ProjectsLocationsCollectionsDataStoresBranchesOperationsService
   302  }
   303  
   304  func NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService {
   305  	rs := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsService{s: s}
   306  	rs.Chunks = NewProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService(s)
   307  	return rs
   308  }
   309  
   310  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsService struct {
   311  	s *Service
   312  
   313  	Chunks *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService
   314  }
   315  
   316  func NewProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService {
   317  	rs := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService{s: s}
   318  	return rs
   319  }
   320  
   321  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService struct {
   322  	s *Service
   323  }
   324  
   325  func NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesOperationsService {
   326  	rs := &ProjectsLocationsCollectionsDataStoresBranchesOperationsService{s: s}
   327  	return rs
   328  }
   329  
   330  type ProjectsLocationsCollectionsDataStoresBranchesOperationsService struct {
   331  	s *Service
   332  }
   333  
   334  func NewProjectsLocationsCollectionsDataStoresConversationsService(s *Service) *ProjectsLocationsCollectionsDataStoresConversationsService {
   335  	rs := &ProjectsLocationsCollectionsDataStoresConversationsService{s: s}
   336  	return rs
   337  }
   338  
   339  type ProjectsLocationsCollectionsDataStoresConversationsService struct {
   340  	s *Service
   341  }
   342  
   343  func NewProjectsLocationsCollectionsDataStoresCustomModelsService(s *Service) *ProjectsLocationsCollectionsDataStoresCustomModelsService {
   344  	rs := &ProjectsLocationsCollectionsDataStoresCustomModelsService{s: s}
   345  	return rs
   346  }
   347  
   348  type ProjectsLocationsCollectionsDataStoresCustomModelsService struct {
   349  	s *Service
   350  }
   351  
   352  func NewProjectsLocationsCollectionsDataStoresModelsService(s *Service) *ProjectsLocationsCollectionsDataStoresModelsService {
   353  	rs := &ProjectsLocationsCollectionsDataStoresModelsService{s: s}
   354  	rs.Operations = NewProjectsLocationsCollectionsDataStoresModelsOperationsService(s)
   355  	return rs
   356  }
   357  
   358  type ProjectsLocationsCollectionsDataStoresModelsService struct {
   359  	s *Service
   360  
   361  	Operations *ProjectsLocationsCollectionsDataStoresModelsOperationsService
   362  }
   363  
   364  func NewProjectsLocationsCollectionsDataStoresModelsOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresModelsOperationsService {
   365  	rs := &ProjectsLocationsCollectionsDataStoresModelsOperationsService{s: s}
   366  	return rs
   367  }
   368  
   369  type ProjectsLocationsCollectionsDataStoresModelsOperationsService struct {
   370  	s *Service
   371  }
   372  
   373  func NewProjectsLocationsCollectionsDataStoresOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresOperationsService {
   374  	rs := &ProjectsLocationsCollectionsDataStoresOperationsService{s: s}
   375  	return rs
   376  }
   377  
   378  type ProjectsLocationsCollectionsDataStoresOperationsService struct {
   379  	s *Service
   380  }
   381  
   382  func NewProjectsLocationsCollectionsDataStoresSchemasService(s *Service) *ProjectsLocationsCollectionsDataStoresSchemasService {
   383  	rs := &ProjectsLocationsCollectionsDataStoresSchemasService{s: s}
   384  	rs.Operations = NewProjectsLocationsCollectionsDataStoresSchemasOperationsService(s)
   385  	return rs
   386  }
   387  
   388  type ProjectsLocationsCollectionsDataStoresSchemasService struct {
   389  	s *Service
   390  
   391  	Operations *ProjectsLocationsCollectionsDataStoresSchemasOperationsService
   392  }
   393  
   394  func NewProjectsLocationsCollectionsDataStoresSchemasOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSchemasOperationsService {
   395  	rs := &ProjectsLocationsCollectionsDataStoresSchemasOperationsService{s: s}
   396  	return rs
   397  }
   398  
   399  type ProjectsLocationsCollectionsDataStoresSchemasOperationsService struct {
   400  	s *Service
   401  }
   402  
   403  func NewProjectsLocationsCollectionsDataStoresServingConfigsService(s *Service) *ProjectsLocationsCollectionsDataStoresServingConfigsService {
   404  	rs := &ProjectsLocationsCollectionsDataStoresServingConfigsService{s: s}
   405  	return rs
   406  }
   407  
   408  type ProjectsLocationsCollectionsDataStoresServingConfigsService struct {
   409  	s *Service
   410  }
   411  
   412  func NewProjectsLocationsCollectionsDataStoresSessionsService(s *Service) *ProjectsLocationsCollectionsDataStoresSessionsService {
   413  	rs := &ProjectsLocationsCollectionsDataStoresSessionsService{s: s}
   414  	rs.Answers = NewProjectsLocationsCollectionsDataStoresSessionsAnswersService(s)
   415  	return rs
   416  }
   417  
   418  type ProjectsLocationsCollectionsDataStoresSessionsService struct {
   419  	s *Service
   420  
   421  	Answers *ProjectsLocationsCollectionsDataStoresSessionsAnswersService
   422  }
   423  
   424  func NewProjectsLocationsCollectionsDataStoresSessionsAnswersService(s *Service) *ProjectsLocationsCollectionsDataStoresSessionsAnswersService {
   425  	rs := &ProjectsLocationsCollectionsDataStoresSessionsAnswersService{s: s}
   426  	return rs
   427  }
   428  
   429  type ProjectsLocationsCollectionsDataStoresSessionsAnswersService struct {
   430  	s *Service
   431  }
   432  
   433  func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService {
   434  	rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineService{s: s}
   435  	rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s)
   436  	rs.TargetSites = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s)
   437  	return rs
   438  }
   439  
   440  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineService struct {
   441  	s *Service
   442  
   443  	Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService
   444  
   445  	TargetSites *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService
   446  }
   447  
   448  func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService {
   449  	rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService{s: s}
   450  	return rs
   451  }
   452  
   453  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService struct {
   454  	s *Service
   455  }
   456  
   457  func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService {
   458  	rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService{s: s}
   459  	rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s)
   460  	return rs
   461  }
   462  
   463  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService struct {
   464  	s *Service
   465  
   466  	Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService
   467  }
   468  
   469  func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService {
   470  	rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService{s: s}
   471  	return rs
   472  }
   473  
   474  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService struct {
   475  	s *Service
   476  }
   477  
   478  func NewProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService(s *Service) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService {
   479  	rs := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService{s: s}
   480  	return rs
   481  }
   482  
   483  type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService struct {
   484  	s *Service
   485  }
   486  
   487  func NewProjectsLocationsCollectionsDataStoresUserEventsService(s *Service) *ProjectsLocationsCollectionsDataStoresUserEventsService {
   488  	rs := &ProjectsLocationsCollectionsDataStoresUserEventsService{s: s}
   489  	return rs
   490  }
   491  
   492  type ProjectsLocationsCollectionsDataStoresUserEventsService struct {
   493  	s *Service
   494  }
   495  
   496  func NewProjectsLocationsCollectionsEnginesService(s *Service) *ProjectsLocationsCollectionsEnginesService {
   497  	rs := &ProjectsLocationsCollectionsEnginesService{s: s}
   498  	rs.Conversations = NewProjectsLocationsCollectionsEnginesConversationsService(s)
   499  	rs.Operations = NewProjectsLocationsCollectionsEnginesOperationsService(s)
   500  	rs.ServingConfigs = NewProjectsLocationsCollectionsEnginesServingConfigsService(s)
   501  	rs.Sessions = NewProjectsLocationsCollectionsEnginesSessionsService(s)
   502  	return rs
   503  }
   504  
   505  type ProjectsLocationsCollectionsEnginesService struct {
   506  	s *Service
   507  
   508  	Conversations *ProjectsLocationsCollectionsEnginesConversationsService
   509  
   510  	Operations *ProjectsLocationsCollectionsEnginesOperationsService
   511  
   512  	ServingConfigs *ProjectsLocationsCollectionsEnginesServingConfigsService
   513  
   514  	Sessions *ProjectsLocationsCollectionsEnginesSessionsService
   515  }
   516  
   517  func NewProjectsLocationsCollectionsEnginesConversationsService(s *Service) *ProjectsLocationsCollectionsEnginesConversationsService {
   518  	rs := &ProjectsLocationsCollectionsEnginesConversationsService{s: s}
   519  	return rs
   520  }
   521  
   522  type ProjectsLocationsCollectionsEnginesConversationsService struct {
   523  	s *Service
   524  }
   525  
   526  func NewProjectsLocationsCollectionsEnginesOperationsService(s *Service) *ProjectsLocationsCollectionsEnginesOperationsService {
   527  	rs := &ProjectsLocationsCollectionsEnginesOperationsService{s: s}
   528  	return rs
   529  }
   530  
   531  type ProjectsLocationsCollectionsEnginesOperationsService struct {
   532  	s *Service
   533  }
   534  
   535  func NewProjectsLocationsCollectionsEnginesServingConfigsService(s *Service) *ProjectsLocationsCollectionsEnginesServingConfigsService {
   536  	rs := &ProjectsLocationsCollectionsEnginesServingConfigsService{s: s}
   537  	return rs
   538  }
   539  
   540  type ProjectsLocationsCollectionsEnginesServingConfigsService struct {
   541  	s *Service
   542  }
   543  
   544  func NewProjectsLocationsCollectionsEnginesSessionsService(s *Service) *ProjectsLocationsCollectionsEnginesSessionsService {
   545  	rs := &ProjectsLocationsCollectionsEnginesSessionsService{s: s}
   546  	rs.Answers = NewProjectsLocationsCollectionsEnginesSessionsAnswersService(s)
   547  	return rs
   548  }
   549  
   550  type ProjectsLocationsCollectionsEnginesSessionsService struct {
   551  	s *Service
   552  
   553  	Answers *ProjectsLocationsCollectionsEnginesSessionsAnswersService
   554  }
   555  
   556  func NewProjectsLocationsCollectionsEnginesSessionsAnswersService(s *Service) *ProjectsLocationsCollectionsEnginesSessionsAnswersService {
   557  	rs := &ProjectsLocationsCollectionsEnginesSessionsAnswersService{s: s}
   558  	return rs
   559  }
   560  
   561  type ProjectsLocationsCollectionsEnginesSessionsAnswersService struct {
   562  	s *Service
   563  }
   564  
   565  func NewProjectsLocationsCollectionsOperationsService(s *Service) *ProjectsLocationsCollectionsOperationsService {
   566  	rs := &ProjectsLocationsCollectionsOperationsService{s: s}
   567  	return rs
   568  }
   569  
   570  type ProjectsLocationsCollectionsOperationsService struct {
   571  	s *Service
   572  }
   573  
   574  func NewProjectsLocationsDataStoresService(s *Service) *ProjectsLocationsDataStoresService {
   575  	rs := &ProjectsLocationsDataStoresService{s: s}
   576  	rs.Branches = NewProjectsLocationsDataStoresBranchesService(s)
   577  	rs.Conversations = NewProjectsLocationsDataStoresConversationsService(s)
   578  	rs.Models = NewProjectsLocationsDataStoresModelsService(s)
   579  	rs.Operations = NewProjectsLocationsDataStoresOperationsService(s)
   580  	rs.Schemas = NewProjectsLocationsDataStoresSchemasService(s)
   581  	rs.ServingConfigs = NewProjectsLocationsDataStoresServingConfigsService(s)
   582  	rs.Sessions = NewProjectsLocationsDataStoresSessionsService(s)
   583  	rs.SiteSearchEngine = NewProjectsLocationsDataStoresSiteSearchEngineService(s)
   584  	rs.SuggestionDenyListEntries = NewProjectsLocationsDataStoresSuggestionDenyListEntriesService(s)
   585  	rs.UserEvents = NewProjectsLocationsDataStoresUserEventsService(s)
   586  	return rs
   587  }
   588  
   589  type ProjectsLocationsDataStoresService struct {
   590  	s *Service
   591  
   592  	Branches *ProjectsLocationsDataStoresBranchesService
   593  
   594  	Conversations *ProjectsLocationsDataStoresConversationsService
   595  
   596  	Models *ProjectsLocationsDataStoresModelsService
   597  
   598  	Operations *ProjectsLocationsDataStoresOperationsService
   599  
   600  	Schemas *ProjectsLocationsDataStoresSchemasService
   601  
   602  	ServingConfigs *ProjectsLocationsDataStoresServingConfigsService
   603  
   604  	Sessions *ProjectsLocationsDataStoresSessionsService
   605  
   606  	SiteSearchEngine *ProjectsLocationsDataStoresSiteSearchEngineService
   607  
   608  	SuggestionDenyListEntries *ProjectsLocationsDataStoresSuggestionDenyListEntriesService
   609  
   610  	UserEvents *ProjectsLocationsDataStoresUserEventsService
   611  }
   612  
   613  func NewProjectsLocationsDataStoresBranchesService(s *Service) *ProjectsLocationsDataStoresBranchesService {
   614  	rs := &ProjectsLocationsDataStoresBranchesService{s: s}
   615  	rs.Documents = NewProjectsLocationsDataStoresBranchesDocumentsService(s)
   616  	rs.Operations = NewProjectsLocationsDataStoresBranchesOperationsService(s)
   617  	return rs
   618  }
   619  
   620  type ProjectsLocationsDataStoresBranchesService struct {
   621  	s *Service
   622  
   623  	Documents *ProjectsLocationsDataStoresBranchesDocumentsService
   624  
   625  	Operations *ProjectsLocationsDataStoresBranchesOperationsService
   626  }
   627  
   628  func NewProjectsLocationsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsDataStoresBranchesDocumentsService {
   629  	rs := &ProjectsLocationsDataStoresBranchesDocumentsService{s: s}
   630  	rs.Chunks = NewProjectsLocationsDataStoresBranchesDocumentsChunksService(s)
   631  	return rs
   632  }
   633  
   634  type ProjectsLocationsDataStoresBranchesDocumentsService struct {
   635  	s *Service
   636  
   637  	Chunks *ProjectsLocationsDataStoresBranchesDocumentsChunksService
   638  }
   639  
   640  func NewProjectsLocationsDataStoresBranchesDocumentsChunksService(s *Service) *ProjectsLocationsDataStoresBranchesDocumentsChunksService {
   641  	rs := &ProjectsLocationsDataStoresBranchesDocumentsChunksService{s: s}
   642  	return rs
   643  }
   644  
   645  type ProjectsLocationsDataStoresBranchesDocumentsChunksService struct {
   646  	s *Service
   647  }
   648  
   649  func NewProjectsLocationsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsDataStoresBranchesOperationsService {
   650  	rs := &ProjectsLocationsDataStoresBranchesOperationsService{s: s}
   651  	return rs
   652  }
   653  
   654  type ProjectsLocationsDataStoresBranchesOperationsService struct {
   655  	s *Service
   656  }
   657  
   658  func NewProjectsLocationsDataStoresConversationsService(s *Service) *ProjectsLocationsDataStoresConversationsService {
   659  	rs := &ProjectsLocationsDataStoresConversationsService{s: s}
   660  	return rs
   661  }
   662  
   663  type ProjectsLocationsDataStoresConversationsService struct {
   664  	s *Service
   665  }
   666  
   667  func NewProjectsLocationsDataStoresModelsService(s *Service) *ProjectsLocationsDataStoresModelsService {
   668  	rs := &ProjectsLocationsDataStoresModelsService{s: s}
   669  	rs.Operations = NewProjectsLocationsDataStoresModelsOperationsService(s)
   670  	return rs
   671  }
   672  
   673  type ProjectsLocationsDataStoresModelsService struct {
   674  	s *Service
   675  
   676  	Operations *ProjectsLocationsDataStoresModelsOperationsService
   677  }
   678  
   679  func NewProjectsLocationsDataStoresModelsOperationsService(s *Service) *ProjectsLocationsDataStoresModelsOperationsService {
   680  	rs := &ProjectsLocationsDataStoresModelsOperationsService{s: s}
   681  	return rs
   682  }
   683  
   684  type ProjectsLocationsDataStoresModelsOperationsService struct {
   685  	s *Service
   686  }
   687  
   688  func NewProjectsLocationsDataStoresOperationsService(s *Service) *ProjectsLocationsDataStoresOperationsService {
   689  	rs := &ProjectsLocationsDataStoresOperationsService{s: s}
   690  	return rs
   691  }
   692  
   693  type ProjectsLocationsDataStoresOperationsService struct {
   694  	s *Service
   695  }
   696  
   697  func NewProjectsLocationsDataStoresSchemasService(s *Service) *ProjectsLocationsDataStoresSchemasService {
   698  	rs := &ProjectsLocationsDataStoresSchemasService{s: s}
   699  	return rs
   700  }
   701  
   702  type ProjectsLocationsDataStoresSchemasService struct {
   703  	s *Service
   704  }
   705  
   706  func NewProjectsLocationsDataStoresServingConfigsService(s *Service) *ProjectsLocationsDataStoresServingConfigsService {
   707  	rs := &ProjectsLocationsDataStoresServingConfigsService{s: s}
   708  	return rs
   709  }
   710  
   711  type ProjectsLocationsDataStoresServingConfigsService struct {
   712  	s *Service
   713  }
   714  
   715  func NewProjectsLocationsDataStoresSessionsService(s *Service) *ProjectsLocationsDataStoresSessionsService {
   716  	rs := &ProjectsLocationsDataStoresSessionsService{s: s}
   717  	rs.Answers = NewProjectsLocationsDataStoresSessionsAnswersService(s)
   718  	return rs
   719  }
   720  
   721  type ProjectsLocationsDataStoresSessionsService struct {
   722  	s *Service
   723  
   724  	Answers *ProjectsLocationsDataStoresSessionsAnswersService
   725  }
   726  
   727  func NewProjectsLocationsDataStoresSessionsAnswersService(s *Service) *ProjectsLocationsDataStoresSessionsAnswersService {
   728  	rs := &ProjectsLocationsDataStoresSessionsAnswersService{s: s}
   729  	return rs
   730  }
   731  
   732  type ProjectsLocationsDataStoresSessionsAnswersService struct {
   733  	s *Service
   734  }
   735  
   736  func NewProjectsLocationsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineService {
   737  	rs := &ProjectsLocationsDataStoresSiteSearchEngineService{s: s}
   738  	rs.TargetSites = NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s)
   739  	return rs
   740  }
   741  
   742  type ProjectsLocationsDataStoresSiteSearchEngineService struct {
   743  	s *Service
   744  
   745  	TargetSites *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService
   746  }
   747  
   748  func NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService {
   749  	rs := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService{s: s}
   750  	return rs
   751  }
   752  
   753  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService struct {
   754  	s *Service
   755  }
   756  
   757  func NewProjectsLocationsDataStoresSuggestionDenyListEntriesService(s *Service) *ProjectsLocationsDataStoresSuggestionDenyListEntriesService {
   758  	rs := &ProjectsLocationsDataStoresSuggestionDenyListEntriesService{s: s}
   759  	return rs
   760  }
   761  
   762  type ProjectsLocationsDataStoresSuggestionDenyListEntriesService struct {
   763  	s *Service
   764  }
   765  
   766  func NewProjectsLocationsDataStoresUserEventsService(s *Service) *ProjectsLocationsDataStoresUserEventsService {
   767  	rs := &ProjectsLocationsDataStoresUserEventsService{s: s}
   768  	return rs
   769  }
   770  
   771  type ProjectsLocationsDataStoresUserEventsService struct {
   772  	s *Service
   773  }
   774  
   775  func NewProjectsLocationsEvaluationsService(s *Service) *ProjectsLocationsEvaluationsService {
   776  	rs := &ProjectsLocationsEvaluationsService{s: s}
   777  	rs.Operations = NewProjectsLocationsEvaluationsOperationsService(s)
   778  	return rs
   779  }
   780  
   781  type ProjectsLocationsEvaluationsService struct {
   782  	s *Service
   783  
   784  	Operations *ProjectsLocationsEvaluationsOperationsService
   785  }
   786  
   787  func NewProjectsLocationsEvaluationsOperationsService(s *Service) *ProjectsLocationsEvaluationsOperationsService {
   788  	rs := &ProjectsLocationsEvaluationsOperationsService{s: s}
   789  	return rs
   790  }
   791  
   792  type ProjectsLocationsEvaluationsOperationsService struct {
   793  	s *Service
   794  }
   795  
   796  func NewProjectsLocationsGroundingConfigsService(s *Service) *ProjectsLocationsGroundingConfigsService {
   797  	rs := &ProjectsLocationsGroundingConfigsService{s: s}
   798  	return rs
   799  }
   800  
   801  type ProjectsLocationsGroundingConfigsService struct {
   802  	s *Service
   803  }
   804  
   805  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   806  	rs := &ProjectsLocationsOperationsService{s: s}
   807  	return rs
   808  }
   809  
   810  type ProjectsLocationsOperationsService struct {
   811  	s *Service
   812  }
   813  
   814  func NewProjectsLocationsRankingConfigsService(s *Service) *ProjectsLocationsRankingConfigsService {
   815  	rs := &ProjectsLocationsRankingConfigsService{s: s}
   816  	return rs
   817  }
   818  
   819  type ProjectsLocationsRankingConfigsService struct {
   820  	s *Service
   821  }
   822  
   823  func NewProjectsLocationsSampleQuerySetsService(s *Service) *ProjectsLocationsSampleQuerySetsService {
   824  	rs := &ProjectsLocationsSampleQuerySetsService{s: s}
   825  	rs.Operations = NewProjectsLocationsSampleQuerySetsOperationsService(s)
   826  	return rs
   827  }
   828  
   829  type ProjectsLocationsSampleQuerySetsService struct {
   830  	s *Service
   831  
   832  	Operations *ProjectsLocationsSampleQuerySetsOperationsService
   833  }
   834  
   835  func NewProjectsLocationsSampleQuerySetsOperationsService(s *Service) *ProjectsLocationsSampleQuerySetsOperationsService {
   836  	rs := &ProjectsLocationsSampleQuerySetsOperationsService{s: s}
   837  	return rs
   838  }
   839  
   840  type ProjectsLocationsSampleQuerySetsOperationsService struct {
   841  	s *Service
   842  }
   843  
   844  func NewProjectsLocationsUserEventsService(s *Service) *ProjectsLocationsUserEventsService {
   845  	rs := &ProjectsLocationsUserEventsService{s: s}
   846  	return rs
   847  }
   848  
   849  type ProjectsLocationsUserEventsService struct {
   850  	s *Service
   851  }
   852  
   853  func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
   854  	rs := &ProjectsOperationsService{s: s}
   855  	return rs
   856  }
   857  
   858  type ProjectsOperationsService struct {
   859  	s *Service
   860  }
   861  
   862  // GoogleApiHttpBody: Message that represents an arbitrary HTTP body. It should
   863  // only be used for payload formats that can't be represented as JSON, such as
   864  // raw binary or an HTML page. This message can be used both in streaming and
   865  // non-streaming API methods in the request as well as the response. It can be
   866  // used as a top-level request field, which is convenient if one wants to
   867  // extract parameters from either the URL or HTTP template into the request
   868  // fields and also want access to the raw HTTP body. Example: message
   869  // GetResourceRequest { // A unique request id. string request_id = 1; // The
   870  // raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; }
   871  // service ResourceService { rpc GetResource(GetResourceRequest) returns
   872  // (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns
   873  // (google.protobuf.Empty); } Example with streaming methods: service
   874  // CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream
   875  // google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns
   876  // (stream google.api.HttpBody); } Use of this type only changes how the
   877  // request and response bodies are handled, all other features will continue to
   878  // work unchanged.
   879  type GoogleApiHttpBody struct {
   880  	// ContentType: The HTTP Content-Type header value specifying the content type
   881  	// of the body.
   882  	ContentType string `json:"contentType,omitempty"`
   883  	// Data: The HTTP request/response body as raw binary.
   884  	Data string `json:"data,omitempty"`
   885  	// Extensions: Application specific response metadata. Must be set in the first
   886  	// response for streaming APIs.
   887  	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
   888  
   889  	// ServerResponse contains the HTTP response code and headers from the server.
   890  	googleapi.ServerResponse `json:"-"`
   891  	// ForceSendFields is a list of field names (e.g. "ContentType") to
   892  	// unconditionally include in API requests. By default, fields with empty or
   893  	// default values are omitted from API requests. See
   894  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   895  	// details.
   896  	ForceSendFields []string `json:"-"`
   897  	// NullFields is a list of field names (e.g. "ContentType") to include in API
   898  	// requests with the JSON null value. By default, fields with empty values are
   899  	// omitted from API requests. See
   900  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   901  	NullFields []string `json:"-"`
   902  }
   903  
   904  func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
   905  	type NoMethod GoogleApiHttpBody
   906  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   907  }
   908  
   909  // GoogleCloudDiscoveryengineLoggingErrorContext: A description of the context
   910  // in which an error occurred.
   911  type GoogleCloudDiscoveryengineLoggingErrorContext struct {
   912  	// HttpRequest: The HTTP request which was processed when the error was
   913  	// triggered.
   914  	HttpRequest *GoogleCloudDiscoveryengineLoggingHttpRequestContext `json:"httpRequest,omitempty"`
   915  	// ReportLocation: The location in the source code where the decision was made
   916  	// to report the error, usually the place where it was logged.
   917  	ReportLocation *GoogleCloudDiscoveryengineLoggingSourceLocation `json:"reportLocation,omitempty"`
   918  	// ForceSendFields is a list of field names (e.g. "HttpRequest") to
   919  	// unconditionally include in API requests. By default, fields with empty or
   920  	// default values are omitted from API requests. See
   921  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   922  	// details.
   923  	ForceSendFields []string `json:"-"`
   924  	// NullFields is a list of field names (e.g. "HttpRequest") to include in API
   925  	// requests with the JSON null value. By default, fields with empty values are
   926  	// omitted from API requests. See
   927  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   928  	NullFields []string `json:"-"`
   929  }
   930  
   931  func (s *GoogleCloudDiscoveryengineLoggingErrorContext) MarshalJSON() ([]byte, error) {
   932  	type NoMethod GoogleCloudDiscoveryengineLoggingErrorContext
   933  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   934  }
   935  
   936  // GoogleCloudDiscoveryengineLoggingErrorLog: An error log which is reported to
   937  // the Error Reporting system.
   938  type GoogleCloudDiscoveryengineLoggingErrorLog struct {
   939  	// Context: A description of the context in which the error occurred.
   940  	Context *GoogleCloudDiscoveryengineLoggingErrorContext `json:"context,omitempty"`
   941  	// ImportPayload: The error payload that is populated on LRO import APIs.
   942  	ImportPayload *GoogleCloudDiscoveryengineLoggingImportErrorContext `json:"importPayload,omitempty"`
   943  	// Message: A message describing the error.
   944  	Message string `json:"message,omitempty"`
   945  	// RequestPayload: The API request payload, represented as a protocol buffer.
   946  	// Most API request types are supported—for example: *
   947  	// `type.googleapis.com/google.cloud.discoveryengine.v1alpha.DocumentService.Cre
   948  	// ateDocumentRequest` *
   949  	// `type.googleapis.com/google.cloud.discoveryengine.v1alpha.UserEventService.Wr
   950  	// iteUserEventRequest`
   951  	RequestPayload googleapi.RawMessage `json:"requestPayload,omitempty"`
   952  	// ResponsePayload: The API response payload, represented as a protocol buffer.
   953  	// This is used to log some "soft errors", where the response is valid but we
   954  	// consider there are some quality issues like unjoined events. The following
   955  	// API responses are supported, and no PII is included: *
   956  	// `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend` *
   957  	// `google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEvent` *
   958  	// `google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent`
   959  	ResponsePayload googleapi.RawMessage `json:"responsePayload,omitempty"`
   960  	// ServiceContext: The service context in which this error has occurred.
   961  	ServiceContext *GoogleCloudDiscoveryengineLoggingServiceContext `json:"serviceContext,omitempty"`
   962  	// Status: The RPC status associated with the error log.
   963  	Status *GoogleRpcStatus `json:"status,omitempty"`
   964  	// ForceSendFields is a list of field names (e.g. "Context") to unconditionally
   965  	// include in API requests. By default, fields with empty or default values are
   966  	// omitted from API requests. See
   967  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   968  	// details.
   969  	ForceSendFields []string `json:"-"`
   970  	// NullFields is a list of field names (e.g. "Context") to include in API
   971  	// requests with the JSON null value. By default, fields with empty values are
   972  	// omitted from API requests. See
   973  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   974  	NullFields []string `json:"-"`
   975  }
   976  
   977  func (s *GoogleCloudDiscoveryengineLoggingErrorLog) MarshalJSON() ([]byte, error) {
   978  	type NoMethod GoogleCloudDiscoveryengineLoggingErrorLog
   979  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   980  }
   981  
   982  // GoogleCloudDiscoveryengineLoggingHttpRequestContext: HTTP request data that
   983  // is related to a reported error.
   984  type GoogleCloudDiscoveryengineLoggingHttpRequestContext struct {
   985  	// ResponseStatusCode: The HTTP response status code for the request.
   986  	ResponseStatusCode int64 `json:"responseStatusCode,omitempty"`
   987  	// ForceSendFields is a list of field names (e.g. "ResponseStatusCode") to
   988  	// unconditionally include in API requests. By default, fields with empty or
   989  	// default values are omitted from API requests. See
   990  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   991  	// details.
   992  	ForceSendFields []string `json:"-"`
   993  	// NullFields is a list of field names (e.g. "ResponseStatusCode") to include
   994  	// in API requests with the JSON null value. By default, fields with empty
   995  	// values are omitted from API requests. See
   996  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   997  	NullFields []string `json:"-"`
   998  }
   999  
  1000  func (s *GoogleCloudDiscoveryengineLoggingHttpRequestContext) MarshalJSON() ([]byte, error) {
  1001  	type NoMethod GoogleCloudDiscoveryengineLoggingHttpRequestContext
  1002  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1003  }
  1004  
  1005  // GoogleCloudDiscoveryengineLoggingImportErrorContext: The error payload that
  1006  // is populated on LRO import APIs, including the following: *
  1007  // `google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments` *
  1008  // `google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents`
  1009  type GoogleCloudDiscoveryengineLoggingImportErrorContext struct {
  1010  	// Document: The detailed content which caused the error on importing a
  1011  	// document.
  1012  	Document string `json:"document,omitempty"`
  1013  	// GcsPath: Google Cloud Storage file path of the import source. Can be set for
  1014  	// batch operation error.
  1015  	GcsPath string `json:"gcsPath,omitempty"`
  1016  	// LineNumber: Line number of the content in file. Should be empty for
  1017  	// permission or batch operation error.
  1018  	LineNumber string `json:"lineNumber,omitempty"`
  1019  	// Operation: The operation resource name of the LRO.
  1020  	Operation string `json:"operation,omitempty"`
  1021  	// UserEvent: The detailed content which caused the error on importing a user
  1022  	// event.
  1023  	UserEvent string `json:"userEvent,omitempty"`
  1024  	// ForceSendFields is a list of field names (e.g. "Document") to
  1025  	// unconditionally include in API requests. By default, fields with empty or
  1026  	// default values are omitted from API requests. See
  1027  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1028  	// details.
  1029  	ForceSendFields []string `json:"-"`
  1030  	// NullFields is a list of field names (e.g. "Document") to include in API
  1031  	// requests with the JSON null value. By default, fields with empty values are
  1032  	// omitted from API requests. See
  1033  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1034  	NullFields []string `json:"-"`
  1035  }
  1036  
  1037  func (s *GoogleCloudDiscoveryengineLoggingImportErrorContext) MarshalJSON() ([]byte, error) {
  1038  	type NoMethod GoogleCloudDiscoveryengineLoggingImportErrorContext
  1039  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1040  }
  1041  
  1042  // GoogleCloudDiscoveryengineLoggingServiceContext: Describes a running service
  1043  // that sends errors.
  1044  type GoogleCloudDiscoveryengineLoggingServiceContext struct {
  1045  	// Service: An identifier of the service—for example,
  1046  	// `discoveryengine.googleapis.com`.
  1047  	Service string `json:"service,omitempty"`
  1048  	// ForceSendFields is a list of field names (e.g. "Service") to unconditionally
  1049  	// include in API requests. By default, fields with empty or default values are
  1050  	// omitted from API requests. See
  1051  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1052  	// details.
  1053  	ForceSendFields []string `json:"-"`
  1054  	// NullFields is a list of field names (e.g. "Service") to include in API
  1055  	// requests with the JSON null value. By default, fields with empty values are
  1056  	// omitted from API requests. See
  1057  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1058  	NullFields []string `json:"-"`
  1059  }
  1060  
  1061  func (s *GoogleCloudDiscoveryengineLoggingServiceContext) MarshalJSON() ([]byte, error) {
  1062  	type NoMethod GoogleCloudDiscoveryengineLoggingServiceContext
  1063  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1064  }
  1065  
  1066  // GoogleCloudDiscoveryengineLoggingSourceLocation: Indicates a location in the
  1067  // source code of the service for which errors are reported.
  1068  type GoogleCloudDiscoveryengineLoggingSourceLocation struct {
  1069  	// FunctionName: Human-readable name of a function or method—for example,
  1070  	// `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend`.
  1071  	FunctionName string `json:"functionName,omitempty"`
  1072  	// ForceSendFields is a list of field names (e.g. "FunctionName") to
  1073  	// unconditionally include in API requests. By default, fields with empty or
  1074  	// default values are omitted from API requests. See
  1075  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1076  	// details.
  1077  	ForceSendFields []string `json:"-"`
  1078  	// NullFields is a list of field names (e.g. "FunctionName") to include in API
  1079  	// requests with the JSON null value. By default, fields with empty values are
  1080  	// omitted from API requests. See
  1081  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1082  	NullFields []string `json:"-"`
  1083  }
  1084  
  1085  func (s *GoogleCloudDiscoveryengineLoggingSourceLocation) MarshalJSON() ([]byte, error) {
  1086  	type NoMethod GoogleCloudDiscoveryengineLoggingSourceLocation
  1087  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1088  }
  1089  
  1090  // GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata: Metadata related
  1091  // to the progress of the SiteSearchEngineService.BatchCreateTargetSites
  1092  // operation. This will be returned by the
  1093  // google.longrunning.Operation.metadata field.
  1094  type GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata struct {
  1095  	// CreateTime: Operation create time.
  1096  	CreateTime string `json:"createTime,omitempty"`
  1097  	// UpdateTime: Operation last update time. If the operation is done, this is
  1098  	// also the finish time.
  1099  	UpdateTime string `json:"updateTime,omitempty"`
  1100  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1101  	// unconditionally include in API requests. By default, fields with empty or
  1102  	// default values are omitted from API requests. See
  1103  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1104  	// details.
  1105  	ForceSendFields []string `json:"-"`
  1106  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1107  	// requests with the JSON null value. By default, fields with empty values are
  1108  	// omitted from API requests. See
  1109  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1110  	NullFields []string `json:"-"`
  1111  }
  1112  
  1113  func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  1114  	type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata
  1115  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1116  }
  1117  
  1118  // GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse: Response message
  1119  // for SiteSearchEngineService.BatchCreateTargetSites method.
  1120  type GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse struct {
  1121  	// TargetSites: TargetSites created.
  1122  	TargetSites []*GoogleCloudDiscoveryengineV1TargetSite `json:"targetSites,omitempty"`
  1123  	// ForceSendFields is a list of field names (e.g. "TargetSites") to
  1124  	// unconditionally include in API requests. By default, fields with empty or
  1125  	// default values are omitted from API requests. See
  1126  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1127  	// details.
  1128  	ForceSendFields []string `json:"-"`
  1129  	// NullFields is a list of field names (e.g. "TargetSites") to include in API
  1130  	// requests with the JSON null value. By default, fields with empty values are
  1131  	// omitted from API requests. See
  1132  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1133  	NullFields []string `json:"-"`
  1134  }
  1135  
  1136  func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
  1137  	type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse
  1138  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1139  }
  1140  
  1141  // GoogleCloudDiscoveryengineV1CreateDataStoreMetadata: Metadata related to the
  1142  // progress of the DataStoreService.CreateDataStore operation. This will be
  1143  // returned by the google.longrunning.Operation.metadata field.
  1144  type GoogleCloudDiscoveryengineV1CreateDataStoreMetadata struct {
  1145  	// CreateTime: Operation create time.
  1146  	CreateTime string `json:"createTime,omitempty"`
  1147  	// UpdateTime: Operation last update time. If the operation is done, this is
  1148  	// also the finish time.
  1149  	UpdateTime string `json:"updateTime,omitempty"`
  1150  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1151  	// unconditionally include in API requests. By default, fields with empty or
  1152  	// default values are omitted from API requests. See
  1153  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1154  	// details.
  1155  	ForceSendFields []string `json:"-"`
  1156  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1157  	// requests with the JSON null value. By default, fields with empty values are
  1158  	// omitted from API requests. See
  1159  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1160  	NullFields []string `json:"-"`
  1161  }
  1162  
  1163  func (s *GoogleCloudDiscoveryengineV1CreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
  1164  	type NoMethod GoogleCloudDiscoveryengineV1CreateDataStoreMetadata
  1165  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1166  }
  1167  
  1168  // GoogleCloudDiscoveryengineV1CreateEngineMetadata: Metadata related to the
  1169  // progress of the EngineService.CreateEngine operation. This will be returned
  1170  // by the google.longrunning.Operation.metadata field.
  1171  type GoogleCloudDiscoveryengineV1CreateEngineMetadata struct {
  1172  	// CreateTime: Operation create time.
  1173  	CreateTime string `json:"createTime,omitempty"`
  1174  	// UpdateTime: Operation last update time. If the operation is done, this is
  1175  	// also the finish time.
  1176  	UpdateTime string `json:"updateTime,omitempty"`
  1177  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1178  	// unconditionally include in API requests. By default, fields with empty or
  1179  	// default values are omitted from API requests. See
  1180  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1181  	// details.
  1182  	ForceSendFields []string `json:"-"`
  1183  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1184  	// requests with the JSON null value. By default, fields with empty values are
  1185  	// omitted from API requests. See
  1186  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1187  	NullFields []string `json:"-"`
  1188  }
  1189  
  1190  func (s *GoogleCloudDiscoveryengineV1CreateEngineMetadata) MarshalJSON() ([]byte, error) {
  1191  	type NoMethod GoogleCloudDiscoveryengineV1CreateEngineMetadata
  1192  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1193  }
  1194  
  1195  // GoogleCloudDiscoveryengineV1CreateSchemaMetadata: Metadata for Create Schema
  1196  // LRO.
  1197  type GoogleCloudDiscoveryengineV1CreateSchemaMetadata struct {
  1198  	// CreateTime: Operation create time.
  1199  	CreateTime string `json:"createTime,omitempty"`
  1200  	// UpdateTime: Operation last update time. If the operation is done, this is
  1201  	// also the finish time.
  1202  	UpdateTime string `json:"updateTime,omitempty"`
  1203  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1204  	// unconditionally include in API requests. By default, fields with empty or
  1205  	// default values are omitted from API requests. See
  1206  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1207  	// details.
  1208  	ForceSendFields []string `json:"-"`
  1209  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1210  	// requests with the JSON null value. By default, fields with empty values are
  1211  	// omitted from API requests. See
  1212  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1213  	NullFields []string `json:"-"`
  1214  }
  1215  
  1216  func (s *GoogleCloudDiscoveryengineV1CreateSchemaMetadata) MarshalJSON() ([]byte, error) {
  1217  	type NoMethod GoogleCloudDiscoveryengineV1CreateSchemaMetadata
  1218  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1219  }
  1220  
  1221  // GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata: Metadata related to
  1222  // the progress of the SiteSearchEngineService.CreateTargetSite operation. This
  1223  // will be returned by the google.longrunning.Operation.metadata field.
  1224  type GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata struct {
  1225  	// CreateTime: Operation create time.
  1226  	CreateTime string `json:"createTime,omitempty"`
  1227  	// UpdateTime: Operation last update time. If the operation is done, this is
  1228  	// also the finish time.
  1229  	UpdateTime string `json:"updateTime,omitempty"`
  1230  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1231  	// unconditionally include in API requests. By default, fields with empty or
  1232  	// default values are omitted from API requests. See
  1233  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1234  	// details.
  1235  	ForceSendFields []string `json:"-"`
  1236  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1237  	// requests with the JSON null value. By default, fields with empty values are
  1238  	// omitted from API requests. See
  1239  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1240  	NullFields []string `json:"-"`
  1241  }
  1242  
  1243  func (s *GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  1244  	type NoMethod GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata
  1245  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1246  }
  1247  
  1248  // GoogleCloudDiscoveryengineV1DataStore: DataStore captures global settings
  1249  // and configs at the DataStore level.
  1250  type GoogleCloudDiscoveryengineV1DataStore struct {
  1251  	// ContentConfig: Immutable. The content config of the data store. If this
  1252  	// field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
  1253  	//
  1254  	// Possible values:
  1255  	//   "CONTENT_CONFIG_UNSPECIFIED" - Default value.
  1256  	//   "NO_CONTENT" - Only contains documents without any Document.content.
  1257  	//   "CONTENT_REQUIRED" - Only contains documents with Document.content.
  1258  	//   "PUBLIC_WEBSITE" - The data store is used for public website search.
  1259  	ContentConfig string `json:"contentConfig,omitempty"`
  1260  	// CreateTime: Output only. Timestamp the DataStore was created at.
  1261  	CreateTime string `json:"createTime,omitempty"`
  1262  	// DefaultSchemaId: Output only. The id of the default Schema asscociated to
  1263  	// this data store.
  1264  	DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
  1265  	// DisplayName: Required. The data store display name. This field must be a
  1266  	// UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
  1267  	// INVALID_ARGUMENT error is returned.
  1268  	DisplayName string `json:"displayName,omitempty"`
  1269  	// DocumentProcessingConfig: Configuration for Document understanding and
  1270  	// enrichment.
  1271  	DocumentProcessingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
  1272  	// IndustryVertical: Immutable. The industry vertical that the data store
  1273  	// registers.
  1274  	//
  1275  	// Possible values:
  1276  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  1277  	//   "GENERIC" - The generic vertical for documents that are not specific to
  1278  	// any industry vertical.
  1279  	//   "MEDIA" - The media industry vertical.
  1280  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  1281  	IndustryVertical string `json:"industryVertical,omitempty"`
  1282  	// Name: Immutable. The full resource name of the data store. Format:
  1283  	// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
  1284  	// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
  1285  	// limit of 1024 characters.
  1286  	Name string `json:"name,omitempty"`
  1287  	// SolutionTypes: The solutions that the data store enrolls. Available
  1288  	// solutions for each industry_vertical: * `MEDIA`:
  1289  	// `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`:
  1290  	// `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be
  1291  	// enrolled.
  1292  	//
  1293  	// Possible values:
  1294  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  1295  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  1296  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  1297  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  1298  	// agent.
  1299  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  1300  	// Generative Chat agent. It's used for Generative chat engine only, the
  1301  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  1302  	SolutionTypes []string `json:"solutionTypes,omitempty"`
  1303  	// StartingSchema: The start schema to use for this DataStore when provisioning
  1304  	// it. If unset, a default vertical specialized schema will be used. This field
  1305  	// is only used by CreateDataStore API, and will be ignored if used in other
  1306  	// APIs. This field will be omitted from all API responses including
  1307  	// CreateDataStore API. To retrieve a schema of a DataStore, use
  1308  	// SchemaService.GetSchema API instead. The provided schema will be validated
  1309  	// against certain rules on schema. Learn more from this doc
  1310  	// (https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
  1311  	StartingSchema *GoogleCloudDiscoveryengineV1Schema `json:"startingSchema,omitempty"`
  1312  	// ForceSendFields is a list of field names (e.g. "ContentConfig") to
  1313  	// unconditionally include in API requests. By default, fields with empty or
  1314  	// default values are omitted from API requests. See
  1315  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1316  	// details.
  1317  	ForceSendFields []string `json:"-"`
  1318  	// NullFields is a list of field names (e.g. "ContentConfig") to include in API
  1319  	// requests with the JSON null value. By default, fields with empty values are
  1320  	// omitted from API requests. See
  1321  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1322  	NullFields []string `json:"-"`
  1323  }
  1324  
  1325  func (s *GoogleCloudDiscoveryengineV1DataStore) MarshalJSON() ([]byte, error) {
  1326  	type NoMethod GoogleCloudDiscoveryengineV1DataStore
  1327  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1328  }
  1329  
  1330  // GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata: Metadata related to the
  1331  // progress of the DataStoreService.DeleteDataStore operation. This will be
  1332  // returned by the google.longrunning.Operation.metadata field.
  1333  type GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata struct {
  1334  	// CreateTime: Operation create time.
  1335  	CreateTime string `json:"createTime,omitempty"`
  1336  	// UpdateTime: Operation last update time. If the operation is done, this is
  1337  	// also the finish time.
  1338  	UpdateTime string `json:"updateTime,omitempty"`
  1339  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1340  	// unconditionally include in API requests. By default, fields with empty or
  1341  	// default values are omitted from API requests. See
  1342  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1343  	// details.
  1344  	ForceSendFields []string `json:"-"`
  1345  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1346  	// requests with the JSON null value. By default, fields with empty values are
  1347  	// omitted from API requests. See
  1348  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1349  	NullFields []string `json:"-"`
  1350  }
  1351  
  1352  func (s *GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
  1353  	type NoMethod GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata
  1354  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1355  }
  1356  
  1357  // GoogleCloudDiscoveryengineV1DeleteEngineMetadata: Metadata related to the
  1358  // progress of the EngineService.DeleteEngine operation. This will be returned
  1359  // by the google.longrunning.Operation.metadata field.
  1360  type GoogleCloudDiscoveryengineV1DeleteEngineMetadata struct {
  1361  	// CreateTime: Operation create time.
  1362  	CreateTime string `json:"createTime,omitempty"`
  1363  	// UpdateTime: Operation last update time. If the operation is done, this is
  1364  	// also the finish time.
  1365  	UpdateTime string `json:"updateTime,omitempty"`
  1366  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1367  	// unconditionally include in API requests. By default, fields with empty or
  1368  	// default values are omitted from API requests. See
  1369  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1370  	// details.
  1371  	ForceSendFields []string `json:"-"`
  1372  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1373  	// requests with the JSON null value. By default, fields with empty values are
  1374  	// omitted from API requests. See
  1375  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1376  	NullFields []string `json:"-"`
  1377  }
  1378  
  1379  func (s *GoogleCloudDiscoveryengineV1DeleteEngineMetadata) MarshalJSON() ([]byte, error) {
  1380  	type NoMethod GoogleCloudDiscoveryengineV1DeleteEngineMetadata
  1381  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1382  }
  1383  
  1384  // GoogleCloudDiscoveryengineV1DeleteSchemaMetadata: Metadata for DeleteSchema
  1385  // LRO.
  1386  type GoogleCloudDiscoveryengineV1DeleteSchemaMetadata struct {
  1387  	// CreateTime: Operation create time.
  1388  	CreateTime string `json:"createTime,omitempty"`
  1389  	// UpdateTime: Operation last update time. If the operation is done, this is
  1390  	// also the finish time.
  1391  	UpdateTime string `json:"updateTime,omitempty"`
  1392  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1393  	// unconditionally include in API requests. By default, fields with empty or
  1394  	// default values are omitted from API requests. See
  1395  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1396  	// details.
  1397  	ForceSendFields []string `json:"-"`
  1398  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1399  	// requests with the JSON null value. By default, fields with empty values are
  1400  	// omitted from API requests. See
  1401  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1402  	NullFields []string `json:"-"`
  1403  }
  1404  
  1405  func (s *GoogleCloudDiscoveryengineV1DeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
  1406  	type NoMethod GoogleCloudDiscoveryengineV1DeleteSchemaMetadata
  1407  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1408  }
  1409  
  1410  // GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata: Metadata related to
  1411  // the progress of the SiteSearchEngineService.DeleteTargetSite operation. This
  1412  // will be returned by the google.longrunning.Operation.metadata field.
  1413  type GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata struct {
  1414  	// CreateTime: Operation create time.
  1415  	CreateTime string `json:"createTime,omitempty"`
  1416  	// UpdateTime: Operation last update time. If the operation is done, this is
  1417  	// also the finish time.
  1418  	UpdateTime string `json:"updateTime,omitempty"`
  1419  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1420  	// unconditionally include in API requests. By default, fields with empty or
  1421  	// default values are omitted from API requests. See
  1422  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1423  	// details.
  1424  	ForceSendFields []string `json:"-"`
  1425  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1426  	// requests with the JSON null value. By default, fields with empty values are
  1427  	// omitted from API requests. See
  1428  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1429  	NullFields []string `json:"-"`
  1430  }
  1431  
  1432  func (s *GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  1433  	type NoMethod GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata
  1434  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1435  }
  1436  
  1437  // GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata: Metadata
  1438  // related to the progress of the
  1439  // SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be
  1440  // returned by the google.longrunning.Operation.metadata field.
  1441  type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata struct {
  1442  	// CreateTime: Operation create time.
  1443  	CreateTime string `json:"createTime,omitempty"`
  1444  	// UpdateTime: Operation last update time. If the operation is done, this is
  1445  	// also the finish time.
  1446  	UpdateTime string `json:"updateTime,omitempty"`
  1447  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1448  	// unconditionally include in API requests. By default, fields with empty or
  1449  	// default values are omitted from API requests. See
  1450  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1451  	// details.
  1452  	ForceSendFields []string `json:"-"`
  1453  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1454  	// requests with the JSON null value. By default, fields with empty values are
  1455  	// omitted from API requests. See
  1456  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1457  	NullFields []string `json:"-"`
  1458  }
  1459  
  1460  func (s *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  1461  	type NoMethod GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata
  1462  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1463  }
  1464  
  1465  // GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse: Response
  1466  // message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
  1467  type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse struct {
  1468  }
  1469  
  1470  // GoogleCloudDiscoveryengineV1DocumentProcessingConfig: A singleton resource
  1471  // of DataStore. It's empty when DataStore is created, which defaults to
  1472  // digital parser. The first call to
  1473  // DataStoreService.UpdateDocumentProcessingConfig method will initialize the
  1474  // config.
  1475  type GoogleCloudDiscoveryengineV1DocumentProcessingConfig struct {
  1476  	// DefaultParsingConfig: Configurations for default Document parser. If not
  1477  	// specified, we will configure it as default DigitalParsingConfig, and the
  1478  	// default parsing config will be applied to all file types for Document
  1479  	// parsing.
  1480  	DefaultParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
  1481  	// Name: The full resource name of the Document Processing Config. Format:
  1482  	// `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
  1483  	Name string `json:"name,omitempty"`
  1484  	// ParsingConfigOverrides: Map from file type to override the default parsing
  1485  	// configuration based on the file type. Supported keys: * `pdf`: Override
  1486  	// parsing config for PDF files, either digital parsing, ocr parsing or layout
  1487  	// parsing is supported. * `html`: Override parsing config for HTML files, only
  1488  	// digital parsing and or layout parsing are supported. * `docx`: Override
  1489  	// parsing config for DOCX files, only digital parsing and or layout parsing
  1490  	// are supported.
  1491  	ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
  1492  	// ForceSendFields is a list of field names (e.g. "DefaultParsingConfig") to
  1493  	// unconditionally include in API requests. By default, fields with empty or
  1494  	// default values are omitted from API requests. See
  1495  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1496  	// details.
  1497  	ForceSendFields []string `json:"-"`
  1498  	// NullFields is a list of field names (e.g. "DefaultParsingConfig") to include
  1499  	// in API requests with the JSON null value. By default, fields with empty
  1500  	// values are omitted from API requests. See
  1501  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1502  	NullFields []string `json:"-"`
  1503  }
  1504  
  1505  func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfig) MarshalJSON() ([]byte, error) {
  1506  	type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfig
  1507  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1508  }
  1509  
  1510  // GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig: Related
  1511  // configurations applied to a specific type of document parser.
  1512  type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig struct {
  1513  	// DigitalParsingConfig: Configurations applied to digital parser.
  1514  	DigitalParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
  1515  	// OcrParsingConfig: Configurations applied to OCR parser. Currently it only
  1516  	// applies to PDFs.
  1517  	OcrParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
  1518  	// ForceSendFields is a list of field names (e.g. "DigitalParsingConfig") to
  1519  	// unconditionally include in API requests. By default, fields with empty or
  1520  	// default values are omitted from API requests. See
  1521  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1522  	// details.
  1523  	ForceSendFields []string `json:"-"`
  1524  	// NullFields is a list of field names (e.g. "DigitalParsingConfig") to include
  1525  	// in API requests with the JSON null value. By default, fields with empty
  1526  	// values are omitted from API requests. See
  1527  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1528  	NullFields []string `json:"-"`
  1529  }
  1530  
  1531  func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
  1532  	type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig
  1533  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1534  }
  1535  
  1536  // GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsi
  1537  // ngConfig: The digital parsing configurations for documents.
  1538  type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
  1539  }
  1540  
  1541  // GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingCo
  1542  // nfig: The OCR parsing configurations for documents.
  1543  type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig struct {
  1544  	// EnhancedDocumentElements: [DEPRECATED] This field is deprecated. To use the
  1545  	// additional enhanced document elements processing, please switch to
  1546  	// `layout_parsing_config`.
  1547  	EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
  1548  	// UseNativeText: If true, will use native text instead of OCR text on pages
  1549  	// containing native text.
  1550  	UseNativeText bool `json:"useNativeText,omitempty"`
  1551  	// ForceSendFields is a list of field names (e.g. "EnhancedDocumentElements")
  1552  	// to unconditionally include in API requests. By default, fields with empty or
  1553  	// default values are 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. "EnhancedDocumentElements") to
  1558  	// include in API requests with the JSON null value. By default, fields with
  1559  	// empty values are 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 *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
  1565  	type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig
  1566  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1567  }
  1568  
  1569  // GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata: Metadata
  1570  // related to the progress of the
  1571  // SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be
  1572  // returned by the google.longrunning.Operation.metadata field.
  1573  type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata struct {
  1574  	// CreateTime: Operation create time.
  1575  	CreateTime string `json:"createTime,omitempty"`
  1576  	// UpdateTime: Operation last update time. If the operation is done, this is
  1577  	// also the finish time.
  1578  	UpdateTime string `json:"updateTime,omitempty"`
  1579  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1580  	// unconditionally include in API requests. By default, fields with empty or
  1581  	// default values are omitted from API requests. See
  1582  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1583  	// details.
  1584  	ForceSendFields []string `json:"-"`
  1585  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1586  	// requests with the JSON null value. By default, fields with empty values are
  1587  	// omitted from API requests. See
  1588  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1589  	NullFields []string `json:"-"`
  1590  }
  1591  
  1592  func (s *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  1593  	type NoMethod GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata
  1594  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1595  }
  1596  
  1597  // GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchResponse: Response
  1598  // message for SiteSearchEngineService.EnableAdvancedSiteSearch method.
  1599  type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchResponse struct {
  1600  }
  1601  
  1602  // GoogleCloudDiscoveryengineV1Engine: Metadata that describes the training and
  1603  // serving parameters of an Engine.
  1604  type GoogleCloudDiscoveryengineV1Engine struct {
  1605  	// ChatEngineConfig: Configurations for the Chat Engine. Only applicable if
  1606  	// solution_type is SOLUTION_TYPE_CHAT.
  1607  	ChatEngineConfig *GoogleCloudDiscoveryengineV1EngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
  1608  	// ChatEngineMetadata: Output only. Additional information of the Chat Engine.
  1609  	// Only applicable if solution_type is SOLUTION_TYPE_CHAT.
  1610  	ChatEngineMetadata *GoogleCloudDiscoveryengineV1EngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
  1611  	// CommonConfig: Common config spec that specifies the metadata of the engine.
  1612  	CommonConfig *GoogleCloudDiscoveryengineV1EngineCommonConfig `json:"commonConfig,omitempty"`
  1613  	// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
  1614  	CreateTime string `json:"createTime,omitempty"`
  1615  	// DataStoreIds: The data stores associated with this engine. For
  1616  	// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
  1617  	// can only associate with at most one data store. If solution_type is
  1618  	// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
  1619  	// associated here. Note that when used in CreateEngineRequest, one DataStore
  1620  	// id must be provided as the system will use it for necessary initializations.
  1621  	DataStoreIds []string `json:"dataStoreIds,omitempty"`
  1622  	// DisplayName: Required. The display name of the engine. Should be human
  1623  	// readable. UTF-8 encoded string with limit of 1024 characters.
  1624  	DisplayName string `json:"displayName,omitempty"`
  1625  	// IndustryVertical: The industry vertical that the engine registers. The
  1626  	// restriction of the Engine industry vertical is based on DataStore: If
  1627  	// unspecified, default to `GENERIC`. Vertical on Engine has to match vertical
  1628  	// of the DataStore liniked to the engine.
  1629  	//
  1630  	// Possible values:
  1631  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  1632  	//   "GENERIC" - The generic vertical for documents that are not specific to
  1633  	// any industry vertical.
  1634  	//   "MEDIA" - The media industry vertical.
  1635  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  1636  	IndustryVertical string `json:"industryVertical,omitempty"`
  1637  	// Name: Immutable. The fully qualified resource name of the engine. This field
  1638  	// must be a UTF-8 encoded string with a length limit of 1024 characters.
  1639  	// Format:
  1640  	// `projects/{project_number}/locations/{location}/collections/{collection}/engi
  1641  	// nes/{engine}` engine should be 1-63 characters, and valid characters are
  1642  	// /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
  1643  	Name string `json:"name,omitempty"`
  1644  	// SearchEngineConfig: Configurations for the Search Engine. Only applicable if
  1645  	// solution_type is SOLUTION_TYPE_SEARCH.
  1646  	SearchEngineConfig *GoogleCloudDiscoveryengineV1EngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
  1647  	// SolutionType: Required. The solutions of the engine.
  1648  	//
  1649  	// Possible values:
  1650  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  1651  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  1652  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  1653  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  1654  	// agent.
  1655  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  1656  	// Generative Chat agent. It's used for Generative chat engine only, the
  1657  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  1658  	SolutionType string `json:"solutionType,omitempty"`
  1659  	// UpdateTime: Output only. Timestamp the Recommendation Engine was last
  1660  	// updated.
  1661  	UpdateTime string `json:"updateTime,omitempty"`
  1662  	// ForceSendFields is a list of field names (e.g. "ChatEngineConfig") to
  1663  	// unconditionally include in API requests. By default, fields with empty or
  1664  	// default values are omitted from API requests. See
  1665  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1666  	// details.
  1667  	ForceSendFields []string `json:"-"`
  1668  	// NullFields is a list of field names (e.g. "ChatEngineConfig") to include in
  1669  	// API requests with the JSON null value. By default, fields with empty values
  1670  	// are omitted from API requests. See
  1671  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1672  	NullFields []string `json:"-"`
  1673  }
  1674  
  1675  func (s *GoogleCloudDiscoveryengineV1Engine) MarshalJSON() ([]byte, error) {
  1676  	type NoMethod GoogleCloudDiscoveryengineV1Engine
  1677  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1678  }
  1679  
  1680  // GoogleCloudDiscoveryengineV1EngineChatEngineConfig: Configurations for a
  1681  // Chat Engine.
  1682  type GoogleCloudDiscoveryengineV1EngineChatEngineConfig struct {
  1683  	// AgentCreationConfig: The configurationt generate the Dialogflow agent that
  1684  	// is associated to this Engine. Note that these configurations are one-time
  1685  	// consumed by and passed to Dialogflow service. It means they cannot be
  1686  	// retrieved using EngineService.GetEngine or EngineService.ListEngines API
  1687  	// after engine creation.
  1688  	AgentCreationConfig *GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
  1689  	// DialogflowAgentToLink: The resource name of an exist Dialogflow agent to
  1690  	// link to this Chat Engine. Customers can either provide
  1691  	// `agent_creation_config` to create agent or provide an agent name that links
  1692  	// the agent with the Chat engine. Format: `projects//locations//agents/`. Note
  1693  	// that the `dialogflow_agent_to_link` are one-time consumed by and passed to
  1694  	// Dialogflow service. It means they cannot be retrieved using
  1695  	// EngineService.GetEngine or EngineService.ListEngines API after engine
  1696  	// creation. Use ChatEngineMetadata.dialogflow_agent for actual agent
  1697  	// association after Engine is created.
  1698  	DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
  1699  	// ForceSendFields is a list of field names (e.g. "AgentCreationConfig") to
  1700  	// unconditionally include in API requests. By default, fields with empty or
  1701  	// default values are omitted from API requests. See
  1702  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1703  	// details.
  1704  	ForceSendFields []string `json:"-"`
  1705  	// NullFields is a list of field names (e.g. "AgentCreationConfig") to include
  1706  	// in API requests with the JSON null value. By default, fields with empty
  1707  	// values are omitted from API requests. See
  1708  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1709  	NullFields []string `json:"-"`
  1710  }
  1711  
  1712  func (s *GoogleCloudDiscoveryengineV1EngineChatEngineConfig) MarshalJSON() ([]byte, error) {
  1713  	type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineConfig
  1714  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1715  }
  1716  
  1717  // GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig:
  1718  // Configurations for generating a Dialogflow agent. Note that these
  1719  // configurations are one-time consumed by and passed to Dialogflow service. It
  1720  // means they cannot be retrieved using EngineService.GetEngine or
  1721  // EngineService.ListEngines API after engine creation.
  1722  type GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig struct {
  1723  	// Business: Name of the company, organization or other entity that the agent
  1724  	// represents. Used for knowledge connector LLM prompt and for knowledge
  1725  	// search.
  1726  	Business string `json:"business,omitempty"`
  1727  	// DefaultLanguageCode: Required. The default language of the agent as a
  1728  	// language tag. See Language Support
  1729  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
  1730  	// the currently supported language codes.
  1731  	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
  1732  	// Location: Agent location for Agent creation, supported values: global/us/eu.
  1733  	// If not provided, us Engine will create Agent using us-central-1 by default;
  1734  	// eu Engine will create Agent using eu-west-1 by default.
  1735  	Location string `json:"location,omitempty"`
  1736  	// TimeZone: Required. The time zone of the agent from the time zone database
  1737  	// (https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
  1738  	TimeZone string `json:"timeZone,omitempty"`
  1739  	// ForceSendFields is a list of field names (e.g. "Business") to
  1740  	// unconditionally include in API requests. By default, fields with empty or
  1741  	// default values are omitted from API requests. See
  1742  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1743  	// details.
  1744  	ForceSendFields []string `json:"-"`
  1745  	// NullFields is a list of field names (e.g. "Business") to include in API
  1746  	// requests with the JSON null value. By default, fields with empty values are
  1747  	// omitted from API requests. See
  1748  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1749  	NullFields []string `json:"-"`
  1750  }
  1751  
  1752  func (s *GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
  1753  	type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig
  1754  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1755  }
  1756  
  1757  // GoogleCloudDiscoveryengineV1EngineChatEngineMetadata: Additional information
  1758  // of a Chat Engine. Fields in this message are output only.
  1759  type GoogleCloudDiscoveryengineV1EngineChatEngineMetadata struct {
  1760  	// DialogflowAgent: The resource name of a Dialogflow agent, that this Chat
  1761  	// Engine refers to. Format: `projects//locations//agents/`.
  1762  	DialogflowAgent string `json:"dialogflowAgent,omitempty"`
  1763  	// ForceSendFields is a list of field names (e.g. "DialogflowAgent") to
  1764  	// unconditionally include in API requests. By default, fields with empty or
  1765  	// default values are omitted from API requests. See
  1766  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1767  	// details.
  1768  	ForceSendFields []string `json:"-"`
  1769  	// NullFields is a list of field names (e.g. "DialogflowAgent") to include in
  1770  	// API requests with the JSON null value. By default, fields with empty values
  1771  	// are omitted from API requests. See
  1772  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1773  	NullFields []string `json:"-"`
  1774  }
  1775  
  1776  func (s *GoogleCloudDiscoveryengineV1EngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
  1777  	type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineMetadata
  1778  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1779  }
  1780  
  1781  // GoogleCloudDiscoveryengineV1EngineCommonConfig: Common configurations for an
  1782  // Engine.
  1783  type GoogleCloudDiscoveryengineV1EngineCommonConfig struct {
  1784  	// CompanyName: Immutable. The name of the company, business or entity that is
  1785  	// associated with the engine. Setting this may help improve LLM related
  1786  	// features.
  1787  	CompanyName string `json:"companyName,omitempty"`
  1788  	// ForceSendFields is a list of field names (e.g. "CompanyName") to
  1789  	// unconditionally include in API requests. By default, fields with empty or
  1790  	// default values are omitted from API requests. See
  1791  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1792  	// details.
  1793  	ForceSendFields []string `json:"-"`
  1794  	// NullFields is a list of field names (e.g. "CompanyName") to include in API
  1795  	// requests with the JSON null value. By default, fields with empty values are
  1796  	// omitted from API requests. See
  1797  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1798  	NullFields []string `json:"-"`
  1799  }
  1800  
  1801  func (s *GoogleCloudDiscoveryengineV1EngineCommonConfig) MarshalJSON() ([]byte, error) {
  1802  	type NoMethod GoogleCloudDiscoveryengineV1EngineCommonConfig
  1803  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1804  }
  1805  
  1806  // GoogleCloudDiscoveryengineV1EngineSearchEngineConfig: Configurations for a
  1807  // Search Engine.
  1808  type GoogleCloudDiscoveryengineV1EngineSearchEngineConfig struct {
  1809  	// SearchAddOns: The add-on that this search engine enables.
  1810  	//
  1811  	// Possible values:
  1812  	//   "SEARCH_ADD_ON_UNSPECIFIED" - Default value when the enum is unspecified.
  1813  	// This is invalid to use.
  1814  	//   "SEARCH_ADD_ON_LLM" - Large language model add-on.
  1815  	SearchAddOns []string `json:"searchAddOns,omitempty"`
  1816  	// SearchTier: The search feature tier of this engine. Different tiers might
  1817  	// have different pricing. To learn more, check the pricing documentation.
  1818  	// Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.
  1819  	//
  1820  	// Possible values:
  1821  	//   "SEARCH_TIER_UNSPECIFIED" - Default value when the enum is unspecified.
  1822  	// This is invalid to use.
  1823  	//   "SEARCH_TIER_STANDARD" - Standard tier.
  1824  	//   "SEARCH_TIER_ENTERPRISE" - Enterprise tier.
  1825  	SearchTier string `json:"searchTier,omitempty"`
  1826  	// ForceSendFields is a list of field names (e.g. "SearchAddOns") to
  1827  	// unconditionally include in API requests. By default, fields with empty or
  1828  	// default values are omitted from API requests. See
  1829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1830  	// details.
  1831  	ForceSendFields []string `json:"-"`
  1832  	// NullFields is a list of field names (e.g. "SearchAddOns") to include in API
  1833  	// requests with the JSON null value. By default, fields with empty values are
  1834  	// omitted from API requests. See
  1835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1836  	NullFields []string `json:"-"`
  1837  }
  1838  
  1839  func (s *GoogleCloudDiscoveryengineV1EngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
  1840  	type NoMethod GoogleCloudDiscoveryengineV1EngineSearchEngineConfig
  1841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1842  }
  1843  
  1844  // GoogleCloudDiscoveryengineV1ImportDocumentsMetadata: Metadata related to the
  1845  // progress of the ImportDocuments operation. This is returned by the
  1846  // google.longrunning.Operation.metadata field.
  1847  type GoogleCloudDiscoveryengineV1ImportDocumentsMetadata struct {
  1848  	// CreateTime: Operation create time.
  1849  	CreateTime string `json:"createTime,omitempty"`
  1850  	// FailureCount: Count of entries that encountered errors while processing.
  1851  	FailureCount int64 `json:"failureCount,omitempty,string"`
  1852  	// SuccessCount: Count of entries that were processed successfully.
  1853  	SuccessCount int64 `json:"successCount,omitempty,string"`
  1854  	// TotalCount: Total count of entries that were processed.
  1855  	TotalCount int64 `json:"totalCount,omitempty,string"`
  1856  	// UpdateTime: Operation last update time. If the operation is done, this is
  1857  	// also the finish time.
  1858  	UpdateTime string `json:"updateTime,omitempty"`
  1859  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1860  	// unconditionally include in API requests. By default, fields with empty or
  1861  	// default values are omitted from API requests. See
  1862  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1863  	// details.
  1864  	ForceSendFields []string `json:"-"`
  1865  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1866  	// requests with the JSON null value. By default, fields with empty values are
  1867  	// omitted from API requests. See
  1868  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1869  	NullFields []string `json:"-"`
  1870  }
  1871  
  1872  func (s *GoogleCloudDiscoveryengineV1ImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
  1873  	type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
  1874  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1875  }
  1876  
  1877  // GoogleCloudDiscoveryengineV1ImportDocumentsResponse: Response of the
  1878  // ImportDocumentsRequest. If the long running operation is done, then this
  1879  // message is returned by the google.longrunning.Operations.response field if
  1880  // the operation was successful.
  1881  type GoogleCloudDiscoveryengineV1ImportDocumentsResponse struct {
  1882  	// ErrorConfig: Echoes the destination for the complete errors in the request
  1883  	// if set.
  1884  	ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
  1885  	// ErrorSamples: A sample of errors encountered while processing the request.
  1886  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  1887  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  1888  	// unconditionally include in API requests. By default, fields with empty or
  1889  	// default values are omitted from API requests. See
  1890  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1891  	// details.
  1892  	ForceSendFields []string `json:"-"`
  1893  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  1894  	// requests with the JSON null value. By default, fields with empty values are
  1895  	// omitted from API requests. See
  1896  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1897  	NullFields []string `json:"-"`
  1898  }
  1899  
  1900  func (s *GoogleCloudDiscoveryengineV1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  1901  	type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsResponse
  1902  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1903  }
  1904  
  1905  // GoogleCloudDiscoveryengineV1ImportErrorConfig: Configuration of destination
  1906  // for Import related errors.
  1907  type GoogleCloudDiscoveryengineV1ImportErrorConfig struct {
  1908  	// GcsPrefix: Cloud Storage prefix for import errors. This must be an empty,
  1909  	// existing Cloud Storage directory. Import errors are written to sharded files
  1910  	// in this directory, one per line, as a JSON-encoded `google.rpc.Status`
  1911  	// message.
  1912  	GcsPrefix string `json:"gcsPrefix,omitempty"`
  1913  	// ForceSendFields is a list of field names (e.g. "GcsPrefix") to
  1914  	// unconditionally include in API requests. By default, fields with empty or
  1915  	// default values are omitted from API requests. See
  1916  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1917  	// details.
  1918  	ForceSendFields []string `json:"-"`
  1919  	// NullFields is a list of field names (e.g. "GcsPrefix") to include in API
  1920  	// requests with the JSON null value. By default, fields with empty values are
  1921  	// omitted from API requests. See
  1922  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1923  	NullFields []string `json:"-"`
  1924  }
  1925  
  1926  func (s *GoogleCloudDiscoveryengineV1ImportErrorConfig) MarshalJSON() ([]byte, error) {
  1927  	type NoMethod GoogleCloudDiscoveryengineV1ImportErrorConfig
  1928  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1929  }
  1930  
  1931  // GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata:
  1932  // Metadata related to the progress of the ImportSuggestionDenyListEntries
  1933  // operation. This is returned by the google.longrunning.Operation.metadata
  1934  // field.
  1935  type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata struct {
  1936  	// CreateTime: Operation create time.
  1937  	CreateTime string `json:"createTime,omitempty"`
  1938  	// UpdateTime: Operation last update time. If the operation is done, this is
  1939  	// also the finish time.
  1940  	UpdateTime string `json:"updateTime,omitempty"`
  1941  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1942  	// unconditionally include in API requests. By default, fields with empty or
  1943  	// default values are omitted from API requests. See
  1944  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1945  	// details.
  1946  	ForceSendFields []string `json:"-"`
  1947  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1948  	// requests with the JSON null value. By default, fields with empty values are
  1949  	// omitted from API requests. See
  1950  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1951  	NullFields []string `json:"-"`
  1952  }
  1953  
  1954  func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  1955  	type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata
  1956  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1957  }
  1958  
  1959  // GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse:
  1960  // Response message for CompletionService.ImportSuggestionDenyListEntries
  1961  // method.
  1962  type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse struct {
  1963  	// ErrorSamples: A sample of errors encountered while processing the request.
  1964  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  1965  	// FailedEntriesCount: Count of deny list entries that failed to be imported.
  1966  	FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
  1967  	// ImportedEntriesCount: Count of deny list entries successfully imported.
  1968  	ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
  1969  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  1970  	// unconditionally include in API requests. By default, fields with empty or
  1971  	// default values are omitted from API requests. See
  1972  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1973  	// details.
  1974  	ForceSendFields []string `json:"-"`
  1975  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  1976  	// requests with the JSON null value. By default, fields with empty values are
  1977  	// omitted from API requests. See
  1978  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1979  	NullFields []string `json:"-"`
  1980  }
  1981  
  1982  func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  1983  	type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse
  1984  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1985  }
  1986  
  1987  // GoogleCloudDiscoveryengineV1ImportUserEventsMetadata: Metadata related to
  1988  // the progress of the Import operation. This is returned by the
  1989  // google.longrunning.Operation.metadata field.
  1990  type GoogleCloudDiscoveryengineV1ImportUserEventsMetadata struct {
  1991  	// CreateTime: Operation create time.
  1992  	CreateTime string `json:"createTime,omitempty"`
  1993  	// FailureCount: Count of entries that encountered errors while processing.
  1994  	FailureCount int64 `json:"failureCount,omitempty,string"`
  1995  	// SuccessCount: Count of entries that were processed successfully.
  1996  	SuccessCount int64 `json:"successCount,omitempty,string"`
  1997  	// UpdateTime: Operation last update time. If the operation is done, this is
  1998  	// also the finish time.
  1999  	UpdateTime string `json:"updateTime,omitempty"`
  2000  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2001  	// unconditionally include in API requests. By default, fields with empty or
  2002  	// default values are omitted from API requests. See
  2003  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2004  	// details.
  2005  	ForceSendFields []string `json:"-"`
  2006  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2007  	// requests with the JSON null value. By default, fields with empty values are
  2008  	// omitted from API requests. See
  2009  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2010  	NullFields []string `json:"-"`
  2011  }
  2012  
  2013  func (s *GoogleCloudDiscoveryengineV1ImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
  2014  	type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsMetadata
  2015  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2016  }
  2017  
  2018  // GoogleCloudDiscoveryengineV1ImportUserEventsResponse: Response of the
  2019  // ImportUserEventsRequest. If the long running operation was successful, then
  2020  // this message is returned by the google.longrunning.Operations.response field
  2021  // if the operation was successful.
  2022  type GoogleCloudDiscoveryengineV1ImportUserEventsResponse struct {
  2023  	// ErrorConfig: Echoes the destination for the complete errors if this field
  2024  	// was set in the request.
  2025  	ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
  2026  	// ErrorSamples: A sample of errors encountered while processing the request.
  2027  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  2028  	// JoinedEventsCount: Count of user events imported with complete existing
  2029  	// Documents.
  2030  	JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
  2031  	// UnjoinedEventsCount: Count of user events imported, but with Document
  2032  	// information not found in the existing Branch.
  2033  	UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
  2034  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  2035  	// unconditionally include in API requests. By default, fields with empty or
  2036  	// default values are omitted from API requests. See
  2037  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2038  	// details.
  2039  	ForceSendFields []string `json:"-"`
  2040  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  2041  	// requests with the JSON null value. By default, fields with empty values are
  2042  	// omitted from API requests. See
  2043  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2044  	NullFields []string `json:"-"`
  2045  }
  2046  
  2047  func (s *GoogleCloudDiscoveryengineV1ImportUserEventsResponse) MarshalJSON() ([]byte, error) {
  2048  	type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsResponse
  2049  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2050  }
  2051  
  2052  // GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata: Metadata related to the
  2053  // progress of the PurgeDocuments operation. This will be returned by the
  2054  // google.longrunning.Operation.metadata field.
  2055  type GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata struct {
  2056  	// CreateTime: Operation create time.
  2057  	CreateTime string `json:"createTime,omitempty"`
  2058  	// FailureCount: Count of entries that encountered errors while processing.
  2059  	FailureCount int64 `json:"failureCount,omitempty,string"`
  2060  	// IgnoredCount: Count of entries that were ignored as entries were not found.
  2061  	IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
  2062  	// SuccessCount: Count of entries that were deleted successfully.
  2063  	SuccessCount int64 `json:"successCount,omitempty,string"`
  2064  	// UpdateTime: Operation last update time. If the operation is done, this is
  2065  	// also the finish time.
  2066  	UpdateTime string `json:"updateTime,omitempty"`
  2067  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2068  	// unconditionally include in API requests. By default, fields with empty or
  2069  	// default values are omitted from API requests. See
  2070  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2071  	// details.
  2072  	ForceSendFields []string `json:"-"`
  2073  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2074  	// requests with the JSON null value. By default, fields with empty values are
  2075  	// omitted from API requests. See
  2076  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2077  	NullFields []string `json:"-"`
  2078  }
  2079  
  2080  func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
  2081  	type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
  2082  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2083  }
  2084  
  2085  // GoogleCloudDiscoveryengineV1PurgeDocumentsResponse: Response message for
  2086  // DocumentService.PurgeDocuments method. If the long running operation is
  2087  // successfully done, then this message is returned by the
  2088  // google.longrunning.Operations.response field.
  2089  type GoogleCloudDiscoveryengineV1PurgeDocumentsResponse struct {
  2090  	// PurgeCount: The total count of documents purged as a result of the
  2091  	// operation.
  2092  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  2093  	// PurgeSample: A sample of document names that will be deleted. Only populated
  2094  	// if `force` is set to false. A max of 100 names will be returned and the
  2095  	// names are chosen at random.
  2096  	PurgeSample []string `json:"purgeSample,omitempty"`
  2097  	// ForceSendFields is a list of field names (e.g. "PurgeCount") to
  2098  	// unconditionally include in API requests. By default, fields with empty or
  2099  	// default values are omitted from API requests. See
  2100  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2101  	// details.
  2102  	ForceSendFields []string `json:"-"`
  2103  	// NullFields is a list of field names (e.g. "PurgeCount") to include in API
  2104  	// requests with the JSON null value. By default, fields with empty values are
  2105  	// omitted from API requests. See
  2106  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2107  	NullFields []string `json:"-"`
  2108  }
  2109  
  2110  func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
  2111  	type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsResponse
  2112  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2113  }
  2114  
  2115  // GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata: Metadata
  2116  // related to the progress of the PurgeSuggestionDenyListEntries operation.
  2117  // This is returned by the google.longrunning.Operation.metadata field.
  2118  type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata struct {
  2119  	// CreateTime: Operation create time.
  2120  	CreateTime string `json:"createTime,omitempty"`
  2121  	// UpdateTime: Operation last update time. If the operation is done, this is
  2122  	// also the finish time.
  2123  	UpdateTime string `json:"updateTime,omitempty"`
  2124  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2125  	// unconditionally include in API requests. By default, fields with empty or
  2126  	// default values are omitted from API requests. See
  2127  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2128  	// details.
  2129  	ForceSendFields []string `json:"-"`
  2130  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2131  	// requests with the JSON null value. By default, fields with empty values are
  2132  	// omitted from API requests. See
  2133  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2134  	NullFields []string `json:"-"`
  2135  }
  2136  
  2137  func (s *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  2138  	type NoMethod GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata
  2139  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2140  }
  2141  
  2142  // GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse: Response
  2143  // message for CompletionService.PurgeSuggestionDenyListEntries method.
  2144  type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse struct {
  2145  	// ErrorSamples: A sample of errors encountered while processing the request.
  2146  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  2147  	// PurgeCount: Number of suggestion deny list entries purged.
  2148  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  2149  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  2150  	// unconditionally include in API requests. By default, fields with empty or
  2151  	// default values are omitted from API requests. See
  2152  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2153  	// details.
  2154  	ForceSendFields []string `json:"-"`
  2155  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  2156  	// requests with the JSON null value. By default, fields with empty values are
  2157  	// omitted from API requests. See
  2158  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2159  	NullFields []string `json:"-"`
  2160  }
  2161  
  2162  func (s *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  2163  	type NoMethod GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse
  2164  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2165  }
  2166  
  2167  // GoogleCloudDiscoveryengineV1Schema: Defines the structure and layout of a
  2168  // type of document data.
  2169  type GoogleCloudDiscoveryengineV1Schema struct {
  2170  	// JsonSchema: The JSON representation of the schema.
  2171  	JsonSchema string `json:"jsonSchema,omitempty"`
  2172  	// Name: Immutable. The full resource name of the schema, in the format of
  2173  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  2174  	// {data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string
  2175  	// with a length limit of 1024 characters.
  2176  	Name string `json:"name,omitempty"`
  2177  	// StructSchema: The structured representation of the schema.
  2178  	StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
  2179  	// ForceSendFields is a list of field names (e.g. "JsonSchema") to
  2180  	// unconditionally include in API requests. By default, fields with empty or
  2181  	// default values are omitted from API requests. See
  2182  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2183  	// details.
  2184  	ForceSendFields []string `json:"-"`
  2185  	// NullFields is a list of field names (e.g. "JsonSchema") to include in API
  2186  	// requests with the JSON null value. By default, fields with empty values are
  2187  	// omitted from API requests. See
  2188  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2189  	NullFields []string `json:"-"`
  2190  }
  2191  
  2192  func (s *GoogleCloudDiscoveryengineV1Schema) MarshalJSON() ([]byte, error) {
  2193  	type NoMethod GoogleCloudDiscoveryengineV1Schema
  2194  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2195  }
  2196  
  2197  // GoogleCloudDiscoveryengineV1SiteVerificationInfo: Verification information
  2198  // for target sites in advanced site search.
  2199  type GoogleCloudDiscoveryengineV1SiteVerificationInfo struct {
  2200  	// SiteVerificationState: Site verification state indicating the ownership and
  2201  	// validity.
  2202  	//
  2203  	// Possible values:
  2204  	//   "SITE_VERIFICATION_STATE_UNSPECIFIED" - Defaults to VERIFIED.
  2205  	//   "VERIFIED" - Site ownership verified.
  2206  	//   "UNVERIFIED" - Site ownership pending verification or verification failed.
  2207  	//   "EXEMPTED" - Site exempt from verification, e.g., a public website that
  2208  	// opens to all.
  2209  	SiteVerificationState string `json:"siteVerificationState,omitempty"`
  2210  	// VerifyTime: Latest site verification time.
  2211  	VerifyTime string `json:"verifyTime,omitempty"`
  2212  	// ForceSendFields is a list of field names (e.g. "SiteVerificationState") 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. "SiteVerificationState") to
  2219  	// include in API requests with the JSON null value. By default, fields with
  2220  	// empty values are 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 *GoogleCloudDiscoveryengineV1SiteVerificationInfo) MarshalJSON() ([]byte, error) {
  2226  	type NoMethod GoogleCloudDiscoveryengineV1SiteVerificationInfo
  2227  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2228  }
  2229  
  2230  // GoogleCloudDiscoveryengineV1TargetSite: A target site for the
  2231  // SiteSearchEngine.
  2232  type GoogleCloudDiscoveryengineV1TargetSite struct {
  2233  	// ExactMatch: Input only. If set to false, a uri_pattern is generated to
  2234  	// include all pages whose address contains the provided_uri_pattern. If set to
  2235  	// true, an uri_pattern is generated to try to be an exact match of the
  2236  	// provided_uri_pattern or just the specific page if the provided_uri_pattern
  2237  	// is a specific one. provided_uri_pattern is always normalized to generate the
  2238  	// URI pattern to be used by the search engine.
  2239  	ExactMatch bool `json:"exactMatch,omitempty"`
  2240  	// FailureReason: Output only. Failure reason.
  2241  	FailureReason *GoogleCloudDiscoveryengineV1TargetSiteFailureReason `json:"failureReason,omitempty"`
  2242  	// GeneratedUriPattern: Output only. This is system-generated based on the
  2243  	// provided_uri_pattern.
  2244  	GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
  2245  	// IndexingStatus: Output only. Indexing status.
  2246  	//
  2247  	// Possible values:
  2248  	//   "INDEXING_STATUS_UNSPECIFIED" - Defaults to SUCCEEDED.
  2249  	//   "PENDING" - The target site is in the update queue and will be picked up
  2250  	// by indexing pipeline.
  2251  	//   "FAILED" - The target site fails to be indexed.
  2252  	//   "SUCCEEDED" - The target site has been indexed.
  2253  	//   "DELETING" - The previously indexed target site has been marked to be
  2254  	// deleted. This is a transitioning state which will resulted in either: 1.
  2255  	// target site deleted if unindexing is successful; 2. state reverts to
  2256  	// SUCCEEDED if the unindexing fails.
  2257  	IndexingStatus string `json:"indexingStatus,omitempty"`
  2258  	// Name: Output only. The fully qualified resource name of the target site.
  2259  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  2260  	// {data_store}/siteSearchEngine/targetSites/{target_site}` The
  2261  	// `target_site_id` is system-generated.
  2262  	Name string `json:"name,omitempty"`
  2263  	// ProvidedUriPattern: Required. Input only. The user provided URI pattern from
  2264  	// which the `generated_uri_pattern` is generated.
  2265  	ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
  2266  	// RootDomainUri: Output only. Root domain of the provided_uri_pattern.
  2267  	RootDomainUri string `json:"rootDomainUri,omitempty"`
  2268  	// SiteVerificationInfo: Output only. Site ownership and validity verification
  2269  	// status.
  2270  	SiteVerificationInfo *GoogleCloudDiscoveryengineV1SiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
  2271  	// Type: The type of the target site, e.g., whether the site is to be included
  2272  	// or excluded.
  2273  	//
  2274  	// Possible values:
  2275  	//   "TYPE_UNSPECIFIED" - This value is unused. In this case, server behavior
  2276  	// defaults to Type.INCLUDE.
  2277  	//   "INCLUDE" - Include the target site.
  2278  	//   "EXCLUDE" - Exclude the target site.
  2279  	Type string `json:"type,omitempty"`
  2280  	// UpdateTime: Output only. The target site's last updated time.
  2281  	UpdateTime string `json:"updateTime,omitempty"`
  2282  	// ForceSendFields is a list of field names (e.g. "ExactMatch") to
  2283  	// unconditionally include in API requests. By default, fields with empty or
  2284  	// default values are omitted from API requests. See
  2285  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2286  	// details.
  2287  	ForceSendFields []string `json:"-"`
  2288  	// NullFields is a list of field names (e.g. "ExactMatch") to include in API
  2289  	// requests with the JSON null value. By default, fields with empty values are
  2290  	// omitted from API requests. See
  2291  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2292  	NullFields []string `json:"-"`
  2293  }
  2294  
  2295  func (s *GoogleCloudDiscoveryengineV1TargetSite) MarshalJSON() ([]byte, error) {
  2296  	type NoMethod GoogleCloudDiscoveryengineV1TargetSite
  2297  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2298  }
  2299  
  2300  // GoogleCloudDiscoveryengineV1TargetSiteFailureReason: Site search indexing
  2301  // failure reasons.
  2302  type GoogleCloudDiscoveryengineV1TargetSiteFailureReason struct {
  2303  	// QuotaFailure: Failed due to insufficient quota.
  2304  	QuotaFailure *GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
  2305  	// ForceSendFields is a list of field names (e.g. "QuotaFailure") to
  2306  	// unconditionally include in API requests. By default, fields with empty or
  2307  	// default values are omitted from API requests. See
  2308  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2309  	// details.
  2310  	ForceSendFields []string `json:"-"`
  2311  	// NullFields is a list of field names (e.g. "QuotaFailure") to include in API
  2312  	// requests with the JSON null value. By default, fields with empty values are
  2313  	// omitted from API requests. See
  2314  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2315  	NullFields []string `json:"-"`
  2316  }
  2317  
  2318  func (s *GoogleCloudDiscoveryengineV1TargetSiteFailureReason) MarshalJSON() ([]byte, error) {
  2319  	type NoMethod GoogleCloudDiscoveryengineV1TargetSiteFailureReason
  2320  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2321  }
  2322  
  2323  // GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure: Failed due
  2324  // to insufficient quota.
  2325  type GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure struct {
  2326  	// TotalRequiredQuota: This number is an estimation on how much total quota
  2327  	// this project needs to successfully complete indexing.
  2328  	TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
  2329  	// ForceSendFields is a list of field names (e.g. "TotalRequiredQuota") to
  2330  	// unconditionally include in API requests. By default, fields with empty or
  2331  	// default values are omitted from API requests. See
  2332  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2333  	// details.
  2334  	ForceSendFields []string `json:"-"`
  2335  	// NullFields is a list of field names (e.g. "TotalRequiredQuota") to include
  2336  	// in API requests with the JSON null value. By default, fields with empty
  2337  	// values are omitted from API requests. See
  2338  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2339  	NullFields []string `json:"-"`
  2340  }
  2341  
  2342  func (s *GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
  2343  	type NoMethod GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure
  2344  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2345  }
  2346  
  2347  // GoogleCloudDiscoveryengineV1UpdateSchemaMetadata: Metadata for UpdateSchema
  2348  // LRO.
  2349  type GoogleCloudDiscoveryengineV1UpdateSchemaMetadata struct {
  2350  	// CreateTime: Operation create time.
  2351  	CreateTime string `json:"createTime,omitempty"`
  2352  	// UpdateTime: Operation last update time. If the operation is done, this is
  2353  	// also the finish time.
  2354  	UpdateTime string `json:"updateTime,omitempty"`
  2355  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2356  	// unconditionally include in API requests. By default, fields with empty or
  2357  	// default values are omitted from API requests. See
  2358  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2359  	// details.
  2360  	ForceSendFields []string `json:"-"`
  2361  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2362  	// requests with the JSON null value. By default, fields with empty values are
  2363  	// omitted from API requests. See
  2364  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2365  	NullFields []string `json:"-"`
  2366  }
  2367  
  2368  func (s *GoogleCloudDiscoveryengineV1UpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
  2369  	type NoMethod GoogleCloudDiscoveryengineV1UpdateSchemaMetadata
  2370  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2371  }
  2372  
  2373  // GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata: Metadata related to
  2374  // the progress of the SiteSearchEngineService.UpdateTargetSite operation. This
  2375  // will be returned by the google.longrunning.Operation.metadata field.
  2376  type GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata struct {
  2377  	// CreateTime: Operation create time.
  2378  	CreateTime string `json:"createTime,omitempty"`
  2379  	// UpdateTime: Operation last update time. If the operation is done, this is
  2380  	// also the finish time.
  2381  	UpdateTime string `json:"updateTime,omitempty"`
  2382  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2383  	// unconditionally include in API requests. By default, fields with empty or
  2384  	// default values are omitted from API requests. See
  2385  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2386  	// details.
  2387  	ForceSendFields []string `json:"-"`
  2388  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2389  	// requests with the JSON null value. By default, fields with empty values are
  2390  	// omitted from API requests. See
  2391  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2392  	NullFields []string `json:"-"`
  2393  }
  2394  
  2395  func (s *GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  2396  	type NoMethod GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata
  2397  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2398  }
  2399  
  2400  // GoogleCloudDiscoveryengineV1alphaAclConfig: Access Control Configuration.
  2401  type GoogleCloudDiscoveryengineV1alphaAclConfig struct {
  2402  	// IdpConfig: Identity provider config.
  2403  	IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"`
  2404  	// Name: Immutable. The full resource name of the acl configuration. Format:
  2405  	// `projects/{project}/locations/{location}/aclConfig`. This field must be a
  2406  	// UTF-8 encoded string with a length limit of 1024 characters.
  2407  	Name string `json:"name,omitempty"`
  2408  
  2409  	// ServerResponse contains the HTTP response code and headers from the server.
  2410  	googleapi.ServerResponse `json:"-"`
  2411  	// ForceSendFields is a list of field names (e.g. "IdpConfig") to
  2412  	// unconditionally include in API requests. By default, fields with empty or
  2413  	// default values are omitted from API requests. See
  2414  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2415  	// details.
  2416  	ForceSendFields []string `json:"-"`
  2417  	// NullFields is a list of field names (e.g. "IdpConfig") to include in API
  2418  	// requests with the JSON null value. By default, fields with empty values are
  2419  	// omitted from API requests. See
  2420  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2421  	NullFields []string `json:"-"`
  2422  }
  2423  
  2424  func (s *GoogleCloudDiscoveryengineV1alphaAclConfig) MarshalJSON() ([]byte, error) {
  2425  	type NoMethod GoogleCloudDiscoveryengineV1alphaAclConfig
  2426  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2427  }
  2428  
  2429  // GoogleCloudDiscoveryengineV1alphaAnswer: Defines an answer.
  2430  type GoogleCloudDiscoveryengineV1alphaAnswer struct {
  2431  	// AnswerSkippedReasons: Additional answer-skipped reasons. This provides the
  2432  	// reason for ignored cases. If nothing is skipped, this field is not set.
  2433  	//
  2434  	// Possible values:
  2435  	//   "ANSWER_SKIPPED_REASON_UNSPECIFIED" - Default value. The answer skipped
  2436  	// reason is not specified.
  2437  	//   "ADVERSARIAL_QUERY_IGNORED" - The adversarial query ignored case.
  2438  	//   "NON_ANSWER_SEEKING_QUERY_IGNORED" - The non-answer seeking query ignored
  2439  	// case.
  2440  	//   "OUT_OF_DOMAIN_QUERY_IGNORED" - The out-of-domain query ignored case.
  2441  	// Google skips the answer if there are no high-relevance search results.
  2442  	//   "POTENTIAL_POLICY_VIOLATION" - The potential policy violation case. Google
  2443  	// skips the answer if there is a potential policy violation detected. This
  2444  	// includes content that may be violent or toxic.
  2445  	AnswerSkippedReasons []string `json:"answerSkippedReasons,omitempty"`
  2446  	// AnswerText: The textual answer.
  2447  	AnswerText string `json:"answerText,omitempty"`
  2448  	// Citations: Citations.
  2449  	Citations []*GoogleCloudDiscoveryengineV1alphaAnswerCitation `json:"citations,omitempty"`
  2450  	// CompleteTime: Output only. Answer completed timestamp.
  2451  	CompleteTime string `json:"completeTime,omitempty"`
  2452  	// CreateTime: Output only. Answer creation timestamp.
  2453  	CreateTime string `json:"createTime,omitempty"`
  2454  	// Name: Immutable. Fully qualified name
  2455  	// `projects/{project}/locations/global/collections/{collection}/engines/{engine
  2456  	// }/sessions/*/answers/*`
  2457  	Name string `json:"name,omitempty"`
  2458  	// QueryUnderstandingInfo: Query understanding information.
  2459  	QueryUnderstandingInfo *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo `json:"queryUnderstandingInfo,omitempty"`
  2460  	// References: References.
  2461  	References []*GoogleCloudDiscoveryengineV1alphaAnswerReference `json:"references,omitempty"`
  2462  	// RelatedQuestions: Suggested related questions.
  2463  	RelatedQuestions []string `json:"relatedQuestions,omitempty"`
  2464  	// State: The state of the answer generation.
  2465  	//
  2466  	// Possible values:
  2467  	//   "STATE_UNSPECIFIED" - Unknown.
  2468  	//   "IN_PROGRESS" - Answer generation is currently in progress.
  2469  	//   "FAILED" - Answer generation currently failed.
  2470  	//   "SUCCEEDED" - Answer generation has succeeded.
  2471  	State string `json:"state,omitempty"`
  2472  	// Steps: Answer generation steps.
  2473  	Steps []*GoogleCloudDiscoveryengineV1alphaAnswerStep `json:"steps,omitempty"`
  2474  
  2475  	// ServerResponse contains the HTTP response code and headers from the server.
  2476  	googleapi.ServerResponse `json:"-"`
  2477  	// ForceSendFields is a list of field names (e.g. "AnswerSkippedReasons") to
  2478  	// unconditionally include in API requests. By default, fields with empty or
  2479  	// default values are omitted from API requests. See
  2480  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2481  	// details.
  2482  	ForceSendFields []string `json:"-"`
  2483  	// NullFields is a list of field names (e.g. "AnswerSkippedReasons") to include
  2484  	// in API requests with the JSON null value. By default, fields with empty
  2485  	// values are omitted from API requests. See
  2486  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2487  	NullFields []string `json:"-"`
  2488  }
  2489  
  2490  func (s *GoogleCloudDiscoveryengineV1alphaAnswer) MarshalJSON() ([]byte, error) {
  2491  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswer
  2492  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2493  }
  2494  
  2495  // GoogleCloudDiscoveryengineV1alphaAnswerCitation: Citation info for a
  2496  // segment.
  2497  type GoogleCloudDiscoveryengineV1alphaAnswerCitation struct {
  2498  	// EndIndex: End of the attributed segment, exclusive.
  2499  	EndIndex int64 `json:"endIndex,omitempty,string"`
  2500  	// Sources: Citation sources for the attributed segment.
  2501  	Sources []*GoogleCloudDiscoveryengineV1alphaAnswerCitationSource `json:"sources,omitempty"`
  2502  	// StartIndex: Index indicates the start of the segment, measured in bytes
  2503  	// (UTF-8 unicode).
  2504  	StartIndex int64 `json:"startIndex,omitempty,string"`
  2505  	// ForceSendFields is a list of field names (e.g. "EndIndex") to
  2506  	// unconditionally include in API requests. By default, fields with empty or
  2507  	// default values are omitted from API requests. See
  2508  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2509  	// details.
  2510  	ForceSendFields []string `json:"-"`
  2511  	// NullFields is a list of field names (e.g. "EndIndex") to include in API
  2512  	// requests with the JSON null value. By default, fields with empty values are
  2513  	// omitted from API requests. See
  2514  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2515  	NullFields []string `json:"-"`
  2516  }
  2517  
  2518  func (s *GoogleCloudDiscoveryengineV1alphaAnswerCitation) MarshalJSON() ([]byte, error) {
  2519  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerCitation
  2520  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2521  }
  2522  
  2523  // GoogleCloudDiscoveryengineV1alphaAnswerCitationSource: Citation source.
  2524  type GoogleCloudDiscoveryengineV1alphaAnswerCitationSource struct {
  2525  	// ReferenceId: ID of the citation source.
  2526  	ReferenceId string `json:"referenceId,omitempty"`
  2527  	// ForceSendFields is a list of field names (e.g. "ReferenceId") to
  2528  	// unconditionally include in API requests. By default, fields with empty or
  2529  	// default values are omitted from API requests. See
  2530  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2531  	// details.
  2532  	ForceSendFields []string `json:"-"`
  2533  	// NullFields is a list of field names (e.g. "ReferenceId") to include in API
  2534  	// requests with the JSON null value. By default, fields with empty values are
  2535  	// omitted from API requests. See
  2536  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2537  	NullFields []string `json:"-"`
  2538  }
  2539  
  2540  func (s *GoogleCloudDiscoveryengineV1alphaAnswerCitationSource) MarshalJSON() ([]byte, error) {
  2541  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerCitationSource
  2542  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2543  }
  2544  
  2545  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest: Request message for
  2546  // ConversationalSearchService.AnswerQuery method.
  2547  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest struct {
  2548  	// AnswerGenerationSpec: Answer generation specification.
  2549  	AnswerGenerationSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec `json:"answerGenerationSpec,omitempty"`
  2550  	// AsynchronousMode: Asynchronous mode control. If enabled, the response will
  2551  	// be returned with answer/session resource name without final answer. The API
  2552  	// users need to do the polling to get the latest status of answer/session by
  2553  	// calling ConversationalSearchService.GetAnswer or
  2554  	// ConversationalSearchService.GetSession method.
  2555  	AsynchronousMode bool `json:"asynchronousMode,omitempty"`
  2556  	// Query: Required. Current user query.
  2557  	Query *GoogleCloudDiscoveryengineV1alphaQuery `json:"query,omitempty"`
  2558  	// QueryUnderstandingSpec: Query understanding specification.
  2559  	QueryUnderstandingSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec `json:"queryUnderstandingSpec,omitempty"`
  2560  	// RelatedQuestionsSpec: Related questions specification.
  2561  	RelatedQuestionsSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestRelatedQuestionsSpec `json:"relatedQuestionsSpec,omitempty"`
  2562  	// SafetySpec: Model specification.
  2563  	SafetySpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec `json:"safetySpec,omitempty"`
  2564  	// SearchSpec: Search specification.
  2565  	SearchSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec `json:"searchSpec,omitempty"`
  2566  	// Session: The session resource name. Not required. When session field is not
  2567  	// set, the API is in sessionless mode. We support auto session mode: users can
  2568  	// use the wildcard symbol “-” as session id. A new id will be
  2569  	// automatically generated and assigned.
  2570  	Session string `json:"session,omitempty"`
  2571  	// UserPseudoId: A unique identifier for tracking visitors. For example, this
  2572  	// could be implemented with an HTTP cookie, which should be able to uniquely
  2573  	// identify a visitor on a single device. This unique identifier should not
  2574  	// change if the visitor logs in or out of the website. This field should NOT
  2575  	// have a fixed value such as `unknown_visitor`. The field must be a UTF-8
  2576  	// encoded string with a length limit of 128 characters. Otherwise, an
  2577  	// `INVALID_ARGUMENT` error is returned.
  2578  	UserPseudoId string `json:"userPseudoId,omitempty"`
  2579  	// ForceSendFields is a list of field names (e.g. "AnswerGenerationSpec") to
  2580  	// unconditionally include in API requests. By default, fields with empty or
  2581  	// default values are omitted from API requests. See
  2582  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2583  	// details.
  2584  	ForceSendFields []string `json:"-"`
  2585  	// NullFields is a list of field names (e.g. "AnswerGenerationSpec") to include
  2586  	// in API requests with the JSON null value. By default, fields with empty
  2587  	// values are omitted from API requests. See
  2588  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2589  	NullFields []string `json:"-"`
  2590  }
  2591  
  2592  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest) MarshalJSON() ([]byte, error) {
  2593  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
  2594  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2595  }
  2596  
  2597  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec:
  2598  // Answer generation specification.
  2599  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec struct {
  2600  	// AnswerLanguageCode: Language code for Answer. Use language tags defined by
  2601  	// BCP47 (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an
  2602  	// experimental feature.
  2603  	AnswerLanguageCode string `json:"answerLanguageCode,omitempty"`
  2604  	// IgnoreAdversarialQuery: Specifies whether to filter out adversarial queries.
  2605  	// The default value is `false`. Google employs search-query classification to
  2606  	// detect adversarial queries. No answer is returned if the search query is
  2607  	// classified as an adversarial query. For example, a user might ask a question
  2608  	// regarding negative comments about the company or submit a query designed to
  2609  	// generate unsafe, policy-violating output. If this field is set to `true`, we
  2610  	// skip generating answers for adversarial queries and return fallback messages
  2611  	// instead.
  2612  	IgnoreAdversarialQuery bool `json:"ignoreAdversarialQuery,omitempty"`
  2613  	// IgnoreNonAnswerSeekingQuery: Specifies whether to filter out queries that
  2614  	// are not answer-seeking. The default value is `false`. Google employs
  2615  	// search-query classification to detect answer-seeking queries. No answer is
  2616  	// returned if the search query is classified as a non-answer seeking query. If
  2617  	// this field is set to `true`, we skip generating answers for non-answer
  2618  	// seeking queries and return fallback messages instead.
  2619  	IgnoreNonAnswerSeekingQuery bool `json:"ignoreNonAnswerSeekingQuery,omitempty"`
  2620  	// IncludeCitations: Specifies whether to include citation metadata in the
  2621  	// answer. The default value is `false`.
  2622  	IncludeCitations bool `json:"includeCitations,omitempty"`
  2623  	// ModelSpec: Answer generation model specification.
  2624  	ModelSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecModelSpec `json:"modelSpec,omitempty"`
  2625  	// PromptSpec: Answer generation prompt specification.
  2626  	PromptSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecPromptSpec `json:"promptSpec,omitempty"`
  2627  	// ForceSendFields is a list of field names (e.g. "AnswerLanguageCode") to
  2628  	// unconditionally include in API requests. By default, fields with empty or
  2629  	// default values are omitted from API requests. See
  2630  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2631  	// details.
  2632  	ForceSendFields []string `json:"-"`
  2633  	// NullFields is a list of field names (e.g. "AnswerLanguageCode") to include
  2634  	// in API requests with the JSON null value. By default, fields with empty
  2635  	// values are omitted from API requests. See
  2636  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2637  	NullFields []string `json:"-"`
  2638  }
  2639  
  2640  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec) MarshalJSON() ([]byte, error) {
  2641  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec
  2642  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2643  }
  2644  
  2645  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecModelS
  2646  // pec: Answer Generation Model specification.
  2647  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecModelSpec struct {
  2648  	// ModelVersion: Model version. If not set, it will use the default stable
  2649  	// model. Allowed values are: stable, preview.
  2650  	ModelVersion string `json:"modelVersion,omitempty"`
  2651  	// ForceSendFields is a list of field names (e.g. "ModelVersion") to
  2652  	// unconditionally include in API requests. By default, fields with empty or
  2653  	// default values are omitted from API requests. See
  2654  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2655  	// details.
  2656  	ForceSendFields []string `json:"-"`
  2657  	// NullFields is a list of field names (e.g. "ModelVersion") to include in API
  2658  	// requests with the JSON null value. By default, fields with empty values are
  2659  	// omitted from API requests. See
  2660  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2661  	NullFields []string `json:"-"`
  2662  }
  2663  
  2664  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecModelSpec) MarshalJSON() ([]byte, error) {
  2665  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecModelSpec
  2666  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2667  }
  2668  
  2669  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecPrompt
  2670  // Spec: Answer generation prompt specification.
  2671  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecPromptSpec struct {
  2672  	// Preamble: Customized preamble.
  2673  	Preamble string `json:"preamble,omitempty"`
  2674  	// ForceSendFields is a list of field names (e.g. "Preamble") to
  2675  	// unconditionally include in API requests. By default, fields with empty or
  2676  	// default values are omitted from API requests. See
  2677  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2678  	// details.
  2679  	ForceSendFields []string `json:"-"`
  2680  	// NullFields is a list of field names (e.g. "Preamble") to include in API
  2681  	// requests with the JSON null value. By default, fields with empty values are
  2682  	// omitted from API requests. See
  2683  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2684  	NullFields []string `json:"-"`
  2685  }
  2686  
  2687  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecPromptSpec) MarshalJSON() ([]byte, error) {
  2688  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecPromptSpec
  2689  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2690  }
  2691  
  2692  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec:
  2693  // Query understanding specification.
  2694  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec struct {
  2695  	// QueryClassificationSpec: Query classification specification.
  2696  	QueryClassificationSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec `json:"queryClassificationSpec,omitempty"`
  2697  	// QueryRephraserSpec: Query rephraser specification.
  2698  	QueryRephraserSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec `json:"queryRephraserSpec,omitempty"`
  2699  	// ForceSendFields is a list of field names (e.g. "QueryClassificationSpec") to
  2700  	// unconditionally include in API requests. By default, fields with empty or
  2701  	// default values are omitted from API requests. See
  2702  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2703  	// details.
  2704  	ForceSendFields []string `json:"-"`
  2705  	// NullFields is a list of field names (e.g. "QueryClassificationSpec") to
  2706  	// include in API requests with the JSON null value. By default, fields with
  2707  	// empty values are omitted from API requests. See
  2708  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2709  	NullFields []string `json:"-"`
  2710  }
  2711  
  2712  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec) MarshalJSON() ([]byte, error) {
  2713  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec
  2714  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2715  }
  2716  
  2717  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQuer
  2718  // yClassificationSpec: Query classification specification.
  2719  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec struct {
  2720  	// Types: Enabled query classification types.
  2721  	//
  2722  	// Possible values:
  2723  	//   "TYPE_UNSPECIFIED" - Unspecified query classification type.
  2724  	//   "ADVERSARIAL_QUERY" - Adversarial query classification type.
  2725  	//   "NON_ANSWER_SEEKING_QUERY" - Non-answer-seeking query classification type.
  2726  	Types []string `json:"types,omitempty"`
  2727  	// ForceSendFields is a list of field names (e.g. "Types") to unconditionally
  2728  	// include in API requests. By default, fields with empty or default values are
  2729  	// omitted from API requests. See
  2730  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2731  	// details.
  2732  	ForceSendFields []string `json:"-"`
  2733  	// NullFields is a list of field names (e.g. "Types") to include in API
  2734  	// requests with the JSON null value. By default, fields with empty values are
  2735  	// omitted from API requests. See
  2736  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2737  	NullFields []string `json:"-"`
  2738  }
  2739  
  2740  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec) MarshalJSON() ([]byte, error) {
  2741  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec
  2742  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2743  }
  2744  
  2745  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQuer
  2746  // yRephraserSpec: Query rephraser specification.
  2747  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec struct {
  2748  	// Disable: Disable query rephraser.
  2749  	Disable bool `json:"disable,omitempty"`
  2750  	// MaxRephraseSteps: Max rephrase steps. The max number is 5 steps. If not set
  2751  	// or set to < 1, it will be set to 1 by default.
  2752  	MaxRephraseSteps int64 `json:"maxRephraseSteps,omitempty"`
  2753  	// ForceSendFields is a list of field names (e.g. "Disable") to unconditionally
  2754  	// include in API requests. By default, fields with empty or default values are
  2755  	// omitted from API requests. See
  2756  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2757  	// details.
  2758  	ForceSendFields []string `json:"-"`
  2759  	// NullFields is a list of field names (e.g. "Disable") to include in API
  2760  	// requests with the JSON null value. By default, fields with empty values are
  2761  	// omitted from API requests. See
  2762  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2763  	NullFields []string `json:"-"`
  2764  }
  2765  
  2766  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec) MarshalJSON() ([]byte, error) {
  2767  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec
  2768  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2769  }
  2770  
  2771  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestRelatedQuestionsSpec:
  2772  // Related questions specification.
  2773  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestRelatedQuestionsSpec struct {
  2774  	// Enable: Enable related questions feature if true.
  2775  	Enable bool `json:"enable,omitempty"`
  2776  	// ForceSendFields is a list of field names (e.g. "Enable") to unconditionally
  2777  	// include in API requests. By default, fields with empty or default values are
  2778  	// omitted from API requests. See
  2779  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2780  	// details.
  2781  	ForceSendFields []string `json:"-"`
  2782  	// NullFields is a list of field names (e.g. "Enable") to include in API
  2783  	// requests with the JSON null value. By default, fields with empty values are
  2784  	// omitted from API requests. See
  2785  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2786  	NullFields []string `json:"-"`
  2787  }
  2788  
  2789  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestRelatedQuestionsSpec) MarshalJSON() ([]byte, error) {
  2790  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestRelatedQuestionsSpec
  2791  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2792  }
  2793  
  2794  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec: Safety
  2795  // specification.
  2796  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec struct {
  2797  	// Enable: Enable the safety filtering on the answer response. It is false by
  2798  	// default.
  2799  	Enable bool `json:"enable,omitempty"`
  2800  	// ForceSendFields is a list of field names (e.g. "Enable") to unconditionally
  2801  	// include in API requests. By default, fields with empty or default values are
  2802  	// omitted from API requests. See
  2803  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2804  	// details.
  2805  	ForceSendFields []string `json:"-"`
  2806  	// NullFields is a list of field names (e.g. "Enable") to include in API
  2807  	// requests with the JSON null value. By default, fields with empty values are
  2808  	// omitted from API requests. See
  2809  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2810  	NullFields []string `json:"-"`
  2811  }
  2812  
  2813  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec) MarshalJSON() ([]byte, error) {
  2814  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec
  2815  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2816  }
  2817  
  2818  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec: Search
  2819  // specification.
  2820  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec struct {
  2821  	// SearchParams: Search parameters.
  2822  	SearchParams *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchParams `json:"searchParams,omitempty"`
  2823  	// SearchResultList: Search result list.
  2824  	SearchResultList *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList `json:"searchResultList,omitempty"`
  2825  	// ForceSendFields is a list of field names (e.g. "SearchParams") to
  2826  	// unconditionally include in API requests. By default, fields with empty or
  2827  	// default values are omitted from API requests. See
  2828  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2829  	// details.
  2830  	ForceSendFields []string `json:"-"`
  2831  	// NullFields is a list of field names (e.g. "SearchParams") to include in API
  2832  	// requests with the JSON null value. By default, fields with empty values are
  2833  	// omitted from API requests. See
  2834  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2835  	NullFields []string `json:"-"`
  2836  }
  2837  
  2838  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec) MarshalJSON() ([]byte, error) {
  2839  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec
  2840  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2841  }
  2842  
  2843  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchParams:
  2844  // Search parameters.
  2845  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchParams struct {
  2846  	// BoostSpec: Boost specification to boost certain documents in search results
  2847  	// which may affect the answer query response. For more information on
  2848  	// boosting, see Boosting (https://cloud.google.com/retail/docs/boosting#boost)
  2849  	BoostSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec `json:"boostSpec,omitempty"`
  2850  	// CustomFineTuningSpec: Custom fine tuning configs.
  2851  	CustomFineTuningSpec *GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec `json:"customFineTuningSpec,omitempty"`
  2852  	// Filter: The filter syntax consists of an expression language for
  2853  	// constructing a predicate from one or more fields of the documents being
  2854  	// filtered. Filter expression is case-sensitive. This will be used to filter
  2855  	// search results which may affect the Answer response. If this field is
  2856  	// unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI
  2857  	// Search is done by mapping the LHS filter key to a key property defined in
  2858  	// the Vertex AI Search backend -- this mapping is defined by the customer in
  2859  	// their schema. For example a media customers might have a field 'name' in
  2860  	// their schema. In this case the filter would look like this: filter -->
  2861  	// name:'ANY("king kong")' For more information about filtering including
  2862  	// syntax and filter operators, see Filter
  2863  	// (https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
  2864  	Filter string `json:"filter,omitempty"`
  2865  	// MaxReturnResults: Number of search results to return. The default value is
  2866  	// 10.
  2867  	MaxReturnResults int64 `json:"maxReturnResults,omitempty"`
  2868  	// OrderBy: The order in which documents are returned. Documents can be ordered
  2869  	// by a field in an Document object. Leave it unset if ordered by relevance.
  2870  	// `order_by` expression is case-sensitive. For more information on ordering,
  2871  	// see Ordering (https://cloud.google.com/retail/docs/filter-and-order#order)
  2872  	// If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
  2873  	OrderBy string `json:"orderBy,omitempty"`
  2874  	// SearchResultMode: Specifies the search result mode. If unspecified, the
  2875  	// search result mode is based on
  2876  	// DataStore.DocumentProcessingConfig.chunking_config: * If
  2877  	// DataStore.DocumentProcessingConfig.chunking_config is specified, it defaults
  2878  	// to `CHUNKS`. * Otherwise, it defaults to `DOCUMENTS`. See parse and chunk
  2879  	// documents
  2880  	// (https://cloud.google.com/generative-ai-app-builder/docs/parse-chunk-documents)
  2881  	//
  2882  	// Possible values:
  2883  	//   "SEARCH_RESULT_MODE_UNSPECIFIED" - Default value.
  2884  	//   "DOCUMENTS" - Returns documents in the search result.
  2885  	//   "CHUNKS" - Returns chunks in the search result. Only available if the
  2886  	// DataStore.DocumentProcessingConfig.chunking_config is specified.
  2887  	SearchResultMode string `json:"searchResultMode,omitempty"`
  2888  	// ForceSendFields is a list of field names (e.g. "BoostSpec") to
  2889  	// unconditionally include in API requests. By default, fields with empty or
  2890  	// default values are omitted from API requests. See
  2891  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2892  	// details.
  2893  	ForceSendFields []string `json:"-"`
  2894  	// NullFields is a list of field names (e.g. "BoostSpec") to include in API
  2895  	// requests with the JSON null value. By default, fields with empty values are
  2896  	// omitted from API requests. See
  2897  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2898  	NullFields []string `json:"-"`
  2899  }
  2900  
  2901  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchParams) MarshalJSON() ([]byte, error) {
  2902  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchParams
  2903  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2904  }
  2905  
  2906  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList
  2907  // : Search result list.
  2908  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList struct {
  2909  	// SearchResults: Search results.
  2910  	SearchResults []*GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResult `json:"searchResults,omitempty"`
  2911  	// ForceSendFields is a list of field names (e.g. "SearchResults") to
  2912  	// unconditionally include in API requests. By default, fields with empty or
  2913  	// default values are omitted from API requests. See
  2914  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2915  	// details.
  2916  	ForceSendFields []string `json:"-"`
  2917  	// NullFields is a list of field names (e.g. "SearchResults") to include in API
  2918  	// requests with the JSON null value. By default, fields with empty values are
  2919  	// omitted from API requests. See
  2920  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2921  	NullFields []string `json:"-"`
  2922  }
  2923  
  2924  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList) MarshalJSON() ([]byte, error) {
  2925  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList
  2926  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2927  }
  2928  
  2929  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList
  2930  // SearchResult: Search result.
  2931  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResult struct {
  2932  	// ChunkInfo: Chunk information.
  2933  	ChunkInfo *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo `json:"chunkInfo,omitempty"`
  2934  	// UnstructuredDocumentInfo: Unstructured document information.
  2935  	UnstructuredDocumentInfo *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo `json:"unstructuredDocumentInfo,omitempty"`
  2936  	// ForceSendFields is a list of field names (e.g. "ChunkInfo") to
  2937  	// unconditionally include in API requests. By default, fields with empty or
  2938  	// default values are omitted from API requests. See
  2939  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2940  	// details.
  2941  	ForceSendFields []string `json:"-"`
  2942  	// NullFields is a list of field names (e.g. "ChunkInfo") to include in API
  2943  	// requests with the JSON null value. By default, fields with empty values are
  2944  	// omitted from API requests. See
  2945  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2946  	NullFields []string `json:"-"`
  2947  }
  2948  
  2949  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResult) MarshalJSON() ([]byte, error) {
  2950  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResult
  2951  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2952  }
  2953  
  2954  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList
  2955  // SearchResultChunkInfo: Chunk information.
  2956  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo struct {
  2957  	// Chunk: Chunk resource name.
  2958  	Chunk string `json:"chunk,omitempty"`
  2959  	// Content: Chunk textual content.
  2960  	Content string `json:"content,omitempty"`
  2961  	// ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally
  2962  	// include in API requests. By default, fields with empty or default values are
  2963  	// omitted from API requests. See
  2964  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2965  	// details.
  2966  	ForceSendFields []string `json:"-"`
  2967  	// NullFields is a list of field names (e.g. "Chunk") to include in API
  2968  	// requests with the JSON null value. By default, fields with empty values are
  2969  	// omitted from API requests. See
  2970  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2971  	NullFields []string `json:"-"`
  2972  }
  2973  
  2974  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo) MarshalJSON() ([]byte, error) {
  2975  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo
  2976  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2977  }
  2978  
  2979  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList
  2980  // SearchResultUnstructuredDocumentInfo: Unstructured document information.
  2981  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo struct {
  2982  	// Document: Document resource name.
  2983  	Document string `json:"document,omitempty"`
  2984  	// DocumentContexts: List of document contexts.
  2985  	DocumentContexts []*GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext `json:"documentContexts,omitempty"`
  2986  	// ExtractiveAnswers: List of extractive answers.
  2987  	ExtractiveAnswers []*GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer `json:"extractiveAnswers,omitempty"`
  2988  	// ExtractiveSegments: List of extractive segments.
  2989  	ExtractiveSegments []*GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment `json:"extractiveSegments,omitempty"`
  2990  	// Title: Title.
  2991  	Title string `json:"title,omitempty"`
  2992  	// Uri: URI for the document.
  2993  	Uri string `json:"uri,omitempty"`
  2994  	// ForceSendFields is a list of field names (e.g. "Document") to
  2995  	// unconditionally include in API requests. By default, fields with empty or
  2996  	// default values are omitted from API requests. See
  2997  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2998  	// details.
  2999  	ForceSendFields []string `json:"-"`
  3000  	// NullFields is a list of field names (e.g. "Document") to include in API
  3001  	// requests with the JSON null value. By default, fields with empty values are
  3002  	// omitted from API requests. See
  3003  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3004  	NullFields []string `json:"-"`
  3005  }
  3006  
  3007  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo) MarshalJSON() ([]byte, error) {
  3008  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo
  3009  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3010  }
  3011  
  3012  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList
  3013  // SearchResultUnstructuredDocumentInfoDocumentContext: Document context.
  3014  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext struct {
  3015  	// Content: Document content.
  3016  	Content string `json:"content,omitempty"`
  3017  	// PageIdentifier: Page identifier.
  3018  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  3019  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  3020  	// include in API requests. By default, fields with empty or default values are
  3021  	// omitted from API requests. See
  3022  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3023  	// details.
  3024  	ForceSendFields []string `json:"-"`
  3025  	// NullFields is a list of field names (e.g. "Content") to include in API
  3026  	// requests with the JSON null value. By default, fields with empty values are
  3027  	// omitted from API requests. See
  3028  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3029  	NullFields []string `json:"-"`
  3030  }
  3031  
  3032  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext) MarshalJSON() ([]byte, error) {
  3033  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext
  3034  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3035  }
  3036  
  3037  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList
  3038  // SearchResultUnstructuredDocumentInfoExtractiveAnswer: Extractive answer.
  3039  // Guide
  3040  // (https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
  3041  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer struct {
  3042  	// Content: Extractive answer content.
  3043  	Content string `json:"content,omitempty"`
  3044  	// PageIdentifier: Page identifier.
  3045  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  3046  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  3047  	// include in API requests. By default, fields with empty or default values are
  3048  	// omitted from API requests. See
  3049  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3050  	// details.
  3051  	ForceSendFields []string `json:"-"`
  3052  	// NullFields is a list of field names (e.g. "Content") to include in API
  3053  	// requests with the JSON null value. By default, fields with empty values are
  3054  	// omitted from API requests. See
  3055  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3056  	NullFields []string `json:"-"`
  3057  }
  3058  
  3059  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer) MarshalJSON() ([]byte, error) {
  3060  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer
  3061  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3062  }
  3063  
  3064  // GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList
  3065  // SearchResultUnstructuredDocumentInfoExtractiveSegment: Extractive segment.
  3066  // Guide
  3067  // (https://cloud.google.com/generative-ai-app-builder/docs/snippets#extractive-segments)
  3068  type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment struct {
  3069  	// Content: Extractive segment content.
  3070  	Content string `json:"content,omitempty"`
  3071  	// PageIdentifier: Page identifier.
  3072  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  3073  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  3074  	// include in API requests. By default, fields with empty or default values are
  3075  	// omitted from API requests. See
  3076  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3077  	// details.
  3078  	ForceSendFields []string `json:"-"`
  3079  	// NullFields is a list of field names (e.g. "Content") to include in API
  3080  	// requests with the JSON null value. By default, fields with empty values are
  3081  	// omitted from API requests. See
  3082  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3083  	NullFields []string `json:"-"`
  3084  }
  3085  
  3086  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment) MarshalJSON() ([]byte, error) {
  3087  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment
  3088  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3089  }
  3090  
  3091  // GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse: Response message for
  3092  // ConversationalSearchService.AnswerQuery method.
  3093  type GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse struct {
  3094  	// Answer: Answer resource object. If
  3095  	// AnswerQueryRequest.StepSpec.max_step_count is greater than 1, use
  3096  	// Answer.name to fetch answer information using
  3097  	// ConversationalSearchService.GetAnswer API.
  3098  	Answer *GoogleCloudDiscoveryengineV1alphaAnswer `json:"answer,omitempty"`
  3099  	// AnswerQueryToken: A global unique ID used for logging.
  3100  	AnswerQueryToken string `json:"answerQueryToken,omitempty"`
  3101  	// Session: Session resource object. It will be only available when session
  3102  	// field is set and valid in the AnswerQueryRequest request.
  3103  	Session *GoogleCloudDiscoveryengineV1alphaSession `json:"session,omitempty"`
  3104  
  3105  	// ServerResponse contains the HTTP response code and headers from the server.
  3106  	googleapi.ServerResponse `json:"-"`
  3107  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
  3108  	// include in API requests. By default, fields with empty or default values are
  3109  	// omitted from API requests. See
  3110  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3111  	// details.
  3112  	ForceSendFields []string `json:"-"`
  3113  	// NullFields is a list of field names (e.g. "Answer") to include in API
  3114  	// requests with the JSON null value. By default, fields with empty values are
  3115  	// omitted from API requests. See
  3116  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3117  	NullFields []string `json:"-"`
  3118  }
  3119  
  3120  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse) MarshalJSON() ([]byte, error) {
  3121  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse
  3122  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3123  }
  3124  
  3125  // GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo: Query
  3126  // understanding information.
  3127  type GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo struct {
  3128  	// QueryClassificationInfo: Query classification information.
  3129  	QueryClassificationInfo []*GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo `json:"queryClassificationInfo,omitempty"`
  3130  	// ForceSendFields is a list of field names (e.g. "QueryClassificationInfo") to
  3131  	// unconditionally include in API requests. By default, fields with empty or
  3132  	// default values are omitted from API requests. See
  3133  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3134  	// details.
  3135  	ForceSendFields []string `json:"-"`
  3136  	// NullFields is a list of field names (e.g. "QueryClassificationInfo") to
  3137  	// include in API requests with the JSON null value. By default, fields with
  3138  	// empty values are omitted from API requests. See
  3139  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3140  	NullFields []string `json:"-"`
  3141  }
  3142  
  3143  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo) MarshalJSON() ([]byte, error) {
  3144  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo
  3145  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3146  }
  3147  
  3148  // GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificat
  3149  // ionInfo: Query classification information.
  3150  type GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo struct {
  3151  	// Positive: Classification output.
  3152  	Positive bool `json:"positive,omitempty"`
  3153  	// Type: Query classification type.
  3154  	//
  3155  	// Possible values:
  3156  	//   "TYPE_UNSPECIFIED" - Unspecified query classification type.
  3157  	//   "ADVERSARIAL_QUERY" - Adversarial query classification type.
  3158  	//   "NON_ANSWER_SEEKING_QUERY" - Non-answer-seeking query classification type.
  3159  	Type string `json:"type,omitempty"`
  3160  	// ForceSendFields is a list of field names (e.g. "Positive") to
  3161  	// unconditionally include in API requests. By default, fields with empty or
  3162  	// default values are omitted from API requests. See
  3163  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3164  	// details.
  3165  	ForceSendFields []string `json:"-"`
  3166  	// NullFields is a list of field names (e.g. "Positive") to include in API
  3167  	// requests with the JSON null value. By default, fields with empty values are
  3168  	// omitted from API requests. See
  3169  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3170  	NullFields []string `json:"-"`
  3171  }
  3172  
  3173  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo) MarshalJSON() ([]byte, error) {
  3174  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo
  3175  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3176  }
  3177  
  3178  // GoogleCloudDiscoveryengineV1alphaAnswerReference: Reference.
  3179  type GoogleCloudDiscoveryengineV1alphaAnswerReference struct {
  3180  	// ChunkInfo: Chunk information.
  3181  	ChunkInfo *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo `json:"chunkInfo,omitempty"`
  3182  	// UnstructuredDocumentInfo: Unstructured document information.
  3183  	UnstructuredDocumentInfo *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo `json:"unstructuredDocumentInfo,omitempty"`
  3184  	// ForceSendFields is a list of field names (e.g. "ChunkInfo") to
  3185  	// unconditionally include in API requests. By default, fields with empty or
  3186  	// default values are omitted from API requests. See
  3187  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3188  	// details.
  3189  	ForceSendFields []string `json:"-"`
  3190  	// NullFields is a list of field names (e.g. "ChunkInfo") to include in API
  3191  	// requests with the JSON null value. By default, fields with empty values are
  3192  	// omitted from API requests. See
  3193  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3194  	NullFields []string `json:"-"`
  3195  }
  3196  
  3197  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReference) MarshalJSON() ([]byte, error) {
  3198  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReference
  3199  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3200  }
  3201  
  3202  // GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo: Chunk
  3203  // information.
  3204  type GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo struct {
  3205  	// Chunk: Chunk resource name.
  3206  	Chunk string `json:"chunk,omitempty"`
  3207  	// Content: Chunk textual content.
  3208  	Content string `json:"content,omitempty"`
  3209  	// DocumentMetadata: Document metadata.
  3210  	DocumentMetadata *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata `json:"documentMetadata,omitempty"`
  3211  	// RelevanceScore: Relevance score.
  3212  	RelevanceScore float64 `json:"relevanceScore,omitempty"`
  3213  	// ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally
  3214  	// include in API requests. By default, fields with empty or default values are
  3215  	// omitted from API requests. See
  3216  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3217  	// details.
  3218  	ForceSendFields []string `json:"-"`
  3219  	// NullFields is a list of field names (e.g. "Chunk") to include in API
  3220  	// requests with the JSON null value. By default, fields with empty values are
  3221  	// omitted from API requests. See
  3222  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3223  	NullFields []string `json:"-"`
  3224  }
  3225  
  3226  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo) MarshalJSON() ([]byte, error) {
  3227  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
  3228  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3229  }
  3230  
  3231  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo) UnmarshalJSON(data []byte) error {
  3232  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
  3233  	var s1 struct {
  3234  		RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
  3235  		*NoMethod
  3236  	}
  3237  	s1.NoMethod = (*NoMethod)(s)
  3238  	if err := json.Unmarshal(data, &s1); err != nil {
  3239  		return err
  3240  	}
  3241  	s.RelevanceScore = float64(s1.RelevanceScore)
  3242  	return nil
  3243  }
  3244  
  3245  // GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata:
  3246  // Document metadata.
  3247  type GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata struct {
  3248  	// Document: Document resource name.
  3249  	Document string `json:"document,omitempty"`
  3250  	// PageIdentifier: Page identifier.
  3251  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  3252  	// Title: Title.
  3253  	Title string `json:"title,omitempty"`
  3254  	// Uri: URI for the document.
  3255  	Uri string `json:"uri,omitempty"`
  3256  	// ForceSendFields is a list of field names (e.g. "Document") to
  3257  	// unconditionally include in API requests. By default, fields with empty or
  3258  	// default values are omitted from API requests. See
  3259  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3260  	// details.
  3261  	ForceSendFields []string `json:"-"`
  3262  	// NullFields is a list of field names (e.g. "Document") to include in API
  3263  	// requests with the JSON null value. By default, fields with empty values are
  3264  	// omitted from API requests. See
  3265  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3266  	NullFields []string `json:"-"`
  3267  }
  3268  
  3269  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata) MarshalJSON() ([]byte, error) {
  3270  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata
  3271  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3272  }
  3273  
  3274  // GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo:
  3275  // Unstructured document information.
  3276  type GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo struct {
  3277  	// ChunkContents: List of cited chunk contents derived from document content.
  3278  	ChunkContents []*GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent `json:"chunkContents,omitempty"`
  3279  	// Document: Document resource name.
  3280  	Document string `json:"document,omitempty"`
  3281  	// Title: Title.
  3282  	Title string `json:"title,omitempty"`
  3283  	// Uri: URI for the document.
  3284  	Uri string `json:"uri,omitempty"`
  3285  	// ForceSendFields is a list of field names (e.g. "ChunkContents") to
  3286  	// unconditionally include in API requests. By default, fields with empty or
  3287  	// default values are omitted from API requests. See
  3288  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3289  	// details.
  3290  	ForceSendFields []string `json:"-"`
  3291  	// NullFields is a list of field names (e.g. "ChunkContents") to include in API
  3292  	// requests with the JSON null value. By default, fields with empty values are
  3293  	// omitted from API requests. See
  3294  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3295  	NullFields []string `json:"-"`
  3296  }
  3297  
  3298  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo) MarshalJSON() ([]byte, error) {
  3299  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo
  3300  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3301  }
  3302  
  3303  // GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunk
  3304  // Content: Chunk content.
  3305  type GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent struct {
  3306  	// Content: Chunk textual content.
  3307  	Content string `json:"content,omitempty"`
  3308  	// PageIdentifier: Page identifier.
  3309  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  3310  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  3311  	// include in API requests. By default, fields with empty or default values are
  3312  	// omitted from API requests. See
  3313  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3314  	// details.
  3315  	ForceSendFields []string `json:"-"`
  3316  	// NullFields is a list of field names (e.g. "Content") to include in API
  3317  	// requests with the JSON null value. By default, fields with empty values are
  3318  	// omitted from API requests. See
  3319  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3320  	NullFields []string `json:"-"`
  3321  }
  3322  
  3323  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent) MarshalJSON() ([]byte, error) {
  3324  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent
  3325  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3326  }
  3327  
  3328  // GoogleCloudDiscoveryengineV1alphaAnswerStep: Step information.
  3329  type GoogleCloudDiscoveryengineV1alphaAnswerStep struct {
  3330  	// Actions: Actions.
  3331  	Actions []*GoogleCloudDiscoveryengineV1alphaAnswerStepAction `json:"actions,omitempty"`
  3332  	// Description: The description of the step.
  3333  	Description string `json:"description,omitempty"`
  3334  	// State: The state of the step.
  3335  	//
  3336  	// Possible values:
  3337  	//   "STATE_UNSPECIFIED" - Unknown.
  3338  	//   "IN_PROGRESS" - Step is currently in progress.
  3339  	//   "FAILED" - Step currently failed.
  3340  	//   "SUCCEEDED" - Step has succeeded.
  3341  	State string `json:"state,omitempty"`
  3342  	// Thought: The thought of the step.
  3343  	Thought string `json:"thought,omitempty"`
  3344  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  3345  	// include in API requests. By default, fields with empty or default values are
  3346  	// omitted from API requests. See
  3347  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3348  	// details.
  3349  	ForceSendFields []string `json:"-"`
  3350  	// NullFields is a list of field names (e.g. "Actions") to include in API
  3351  	// requests with the JSON null value. By default, fields with empty values are
  3352  	// omitted from API requests. See
  3353  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3354  	NullFields []string `json:"-"`
  3355  }
  3356  
  3357  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStep) MarshalJSON() ([]byte, error) {
  3358  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStep
  3359  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3360  }
  3361  
  3362  // GoogleCloudDiscoveryengineV1alphaAnswerStepAction: Action.
  3363  type GoogleCloudDiscoveryengineV1alphaAnswerStepAction struct {
  3364  	// Observation: Observation.
  3365  	Observation *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation `json:"observation,omitempty"`
  3366  	// SearchAction: Search action.
  3367  	SearchAction *GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction `json:"searchAction,omitempty"`
  3368  	// ForceSendFields is a list of field names (e.g. "Observation") to
  3369  	// unconditionally include in API requests. By default, fields with empty or
  3370  	// default values are omitted from API requests. See
  3371  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3372  	// details.
  3373  	ForceSendFields []string `json:"-"`
  3374  	// NullFields is a list of field names (e.g. "Observation") to include in API
  3375  	// requests with the JSON null value. By default, fields with empty values are
  3376  	// omitted from API requests. See
  3377  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3378  	NullFields []string `json:"-"`
  3379  }
  3380  
  3381  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepAction) MarshalJSON() ([]byte, error) {
  3382  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepAction
  3383  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3384  }
  3385  
  3386  // GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation: Observation.
  3387  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation struct {
  3388  	// SearchResults: Search results observed by the search action, it can be
  3389  	// snippets info or chunk info, depending on the citation type set by the user.
  3390  	SearchResults []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult `json:"searchResults,omitempty"`
  3391  	// ForceSendFields is a list of field names (e.g. "SearchResults") to
  3392  	// unconditionally include in API requests. By default, fields with empty or
  3393  	// default values are omitted from API requests. See
  3394  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3395  	// details.
  3396  	ForceSendFields []string `json:"-"`
  3397  	// NullFields is a list of field names (e.g. "SearchResults") to include in API
  3398  	// requests with the JSON null value. By default, fields with empty values are
  3399  	// omitted from API requests. See
  3400  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3401  	NullFields []string `json:"-"`
  3402  }
  3403  
  3404  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation) MarshalJSON() ([]byte, error) {
  3405  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation
  3406  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3407  }
  3408  
  3409  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult struct {
  3410  	// ChunkInfo: If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
  3411  	// populate chunk info.
  3412  	ChunkInfo []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo `json:"chunkInfo,omitempty"`
  3413  	// Document: Document resource name.
  3414  	Document string `json:"document,omitempty"`
  3415  	// SnippetInfo: If citation_type is DOCUMENT_LEVEL_CITATION, populate document
  3416  	// level snippets.
  3417  	SnippetInfo []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo `json:"snippetInfo,omitempty"`
  3418  	// Title: Title.
  3419  	Title string `json:"title,omitempty"`
  3420  	// Uri: URI for the document.
  3421  	Uri string `json:"uri,omitempty"`
  3422  	// ForceSendFields is a list of field names (e.g. "ChunkInfo") to
  3423  	// unconditionally include in API requests. By default, fields with empty or
  3424  	// default values are omitted from API requests. See
  3425  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3426  	// details.
  3427  	ForceSendFields []string `json:"-"`
  3428  	// NullFields is a list of field names (e.g. "ChunkInfo") to include in API
  3429  	// requests with the JSON null value. By default, fields with empty values are
  3430  	// omitted from API requests. See
  3431  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3432  	NullFields []string `json:"-"`
  3433  }
  3434  
  3435  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult) MarshalJSON() ([]byte, error) {
  3436  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult
  3437  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3438  }
  3439  
  3440  // GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunk
  3441  // Info: Chunk information.
  3442  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo struct {
  3443  	// Chunk: Chunk resource name.
  3444  	Chunk string `json:"chunk,omitempty"`
  3445  	// Content: Chunk textual content.
  3446  	Content string `json:"content,omitempty"`
  3447  	// RelevanceScore: Relevance score.
  3448  	RelevanceScore float64 `json:"relevanceScore,omitempty"`
  3449  	// ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally
  3450  	// include in API requests. By default, fields with empty or default values are
  3451  	// omitted from API requests. See
  3452  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3453  	// details.
  3454  	ForceSendFields []string `json:"-"`
  3455  	// NullFields is a list of field names (e.g. "Chunk") to include in API
  3456  	// requests with the JSON null value. By default, fields with empty values are
  3457  	// omitted from API requests. See
  3458  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3459  	NullFields []string `json:"-"`
  3460  }
  3461  
  3462  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo) MarshalJSON() ([]byte, error) {
  3463  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
  3464  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3465  }
  3466  
  3467  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo) UnmarshalJSON(data []byte) error {
  3468  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
  3469  	var s1 struct {
  3470  		RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
  3471  		*NoMethod
  3472  	}
  3473  	s1.NoMethod = (*NoMethod)(s)
  3474  	if err := json.Unmarshal(data, &s1); err != nil {
  3475  		return err
  3476  	}
  3477  	s.RelevanceScore = float64(s1.RelevanceScore)
  3478  	return nil
  3479  }
  3480  
  3481  // GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnipp
  3482  // etInfo: Snippet information.
  3483  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo struct {
  3484  	// Snippet: Snippet content.
  3485  	Snippet string `json:"snippet,omitempty"`
  3486  	// SnippetStatus: Status of the snippet defined by the search team.
  3487  	SnippetStatus string `json:"snippetStatus,omitempty"`
  3488  	// ForceSendFields is a list of field names (e.g. "Snippet") to unconditionally
  3489  	// include in API requests. By default, fields with empty or default values are
  3490  	// omitted from API requests. See
  3491  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3492  	// details.
  3493  	ForceSendFields []string `json:"-"`
  3494  	// NullFields is a list of field names (e.g. "Snippet") to include in API
  3495  	// requests with the JSON null value. By default, fields with empty values are
  3496  	// omitted from API requests. See
  3497  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3498  	NullFields []string `json:"-"`
  3499  }
  3500  
  3501  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo) MarshalJSON() ([]byte, error) {
  3502  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo
  3503  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3504  }
  3505  
  3506  // GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction: Search
  3507  // action.
  3508  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction struct {
  3509  	// Query: The query to search.
  3510  	Query string `json:"query,omitempty"`
  3511  	// ForceSendFields is a list of field names (e.g. "Query") to unconditionally
  3512  	// include in API requests. By default, fields with empty or default values are
  3513  	// omitted from API requests. See
  3514  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3515  	// details.
  3516  	ForceSendFields []string `json:"-"`
  3517  	// NullFields is a list of field names (e.g. "Query") to include in API
  3518  	// requests with the JSON null value. By default, fields with empty values are
  3519  	// omitted from API requests. See
  3520  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3521  	NullFields []string `json:"-"`
  3522  }
  3523  
  3524  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction) MarshalJSON() ([]byte, error) {
  3525  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction
  3526  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3527  }
  3528  
  3529  // GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata: Metadata
  3530  // related to the progress of the
  3531  // SiteSearchEngineService.BatchCreateTargetSites operation. This will be
  3532  // returned by the google.longrunning.Operation.metadata field.
  3533  type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata struct {
  3534  	// CreateTime: Operation create time.
  3535  	CreateTime string `json:"createTime,omitempty"`
  3536  	// UpdateTime: Operation last update time. If the operation is done, this is
  3537  	// also the finish time.
  3538  	UpdateTime string `json:"updateTime,omitempty"`
  3539  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3540  	// unconditionally include in API requests. By default, fields with empty or
  3541  	// default values are omitted from API requests. See
  3542  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3543  	// details.
  3544  	ForceSendFields []string `json:"-"`
  3545  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3546  	// requests with the JSON null value. By default, fields with empty values are
  3547  	// omitted from API requests. See
  3548  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3549  	NullFields []string `json:"-"`
  3550  }
  3551  
  3552  func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  3553  	type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata
  3554  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3555  }
  3556  
  3557  // GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest: Request
  3558  // message for SiteSearchEngineService.BatchCreateTargetSites method.
  3559  type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest struct {
  3560  	// Requests: Required. The request message specifying the resources to create.
  3561  	// A maximum of 20 TargetSites can be created in a batch.
  3562  	Requests []*GoogleCloudDiscoveryengineV1alphaCreateTargetSiteRequest `json:"requests,omitempty"`
  3563  	// ForceSendFields is a list of field names (e.g. "Requests") to
  3564  	// unconditionally include in API requests. By default, fields with empty or
  3565  	// default values are omitted from API requests. See
  3566  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3567  	// details.
  3568  	ForceSendFields []string `json:"-"`
  3569  	// NullFields is a list of field names (e.g. "Requests") to include in API
  3570  	// requests with the JSON null value. By default, fields with empty values are
  3571  	// omitted from API requests. See
  3572  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3573  	NullFields []string `json:"-"`
  3574  }
  3575  
  3576  func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest) MarshalJSON() ([]byte, error) {
  3577  	type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest
  3578  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3579  }
  3580  
  3581  // GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse: Response
  3582  // message for SiteSearchEngineService.BatchCreateTargetSites method.
  3583  type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse struct {
  3584  	// TargetSites: TargetSites created.
  3585  	TargetSites []*GoogleCloudDiscoveryengineV1alphaTargetSite `json:"targetSites,omitempty"`
  3586  	// ForceSendFields is a list of field names (e.g. "TargetSites") to
  3587  	// unconditionally include in API requests. By default, fields with empty or
  3588  	// default values are omitted from API requests. See
  3589  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3590  	// details.
  3591  	ForceSendFields []string `json:"-"`
  3592  	// NullFields is a list of field names (e.g. "TargetSites") to include in API
  3593  	// requests with the JSON null value. By default, fields with empty values are
  3594  	// omitted from API requests. See
  3595  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3596  	NullFields []string `json:"-"`
  3597  }
  3598  
  3599  func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
  3600  	type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse
  3601  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3602  }
  3603  
  3604  // GoogleCloudDiscoveryengineV1alphaBatchVerifyTargetSitesRequest: Request
  3605  // message for SiteSearchEngineService.BatchVerifyTargetSites method.
  3606  type GoogleCloudDiscoveryengineV1alphaBatchVerifyTargetSitesRequest struct {
  3607  }
  3608  
  3609  // GoogleCloudDiscoveryengineV1alphaBigQuerySource: BigQuery source import data
  3610  // from.
  3611  type GoogleCloudDiscoveryengineV1alphaBigQuerySource struct {
  3612  	// DataSchema: The schema to use when parsing the data from the source.
  3613  	// Supported values for user event imports: * `user_event` (default): One
  3614  	// UserEvent per row. Supported values for document imports: * `document`
  3615  	// (default): One Document format per row. Each document must have a valid
  3616  	// Document.id and one of Document.json_data or Document.struct_data. *
  3617  	// `custom`: One custom data per row in arbitrary format that conforms to the
  3618  	// defined Schema of the data store. This can only be used by the GENERIC Data
  3619  	// Store vertical.
  3620  	DataSchema string `json:"dataSchema,omitempty"`
  3621  	// DatasetId: Required. The BigQuery data set to copy the data from with a
  3622  	// length limit of 1,024 characters.
  3623  	DatasetId string `json:"datasetId,omitempty"`
  3624  	// GcsStagingDir: Intermediate Cloud Storage directory used for the import with
  3625  	// a length limit of 2,000 characters. Can be specified if one wants to have
  3626  	// the BigQuery export to a specific Cloud Storage directory.
  3627  	GcsStagingDir string `json:"gcsStagingDir,omitempty"`
  3628  	// PartitionDate: BigQuery time partitioned table's _PARTITIONDATE in
  3629  	// YYYY-MM-DD format.
  3630  	PartitionDate *GoogleTypeDate `json:"partitionDate,omitempty"`
  3631  	// ProjectId: The project ID (can be project # or ID) that the BigQuery source
  3632  	// is in with a length limit of 128 characters. If not specified, inherits the
  3633  	// project ID from the parent request.
  3634  	ProjectId string `json:"projectId,omitempty"`
  3635  	// TableId: Required. The BigQuery table to copy the data from with a length
  3636  	// limit of 1,024 characters.
  3637  	TableId string `json:"tableId,omitempty"`
  3638  	// ForceSendFields is a list of field names (e.g. "DataSchema") to
  3639  	// unconditionally include in API requests. By default, fields with empty or
  3640  	// default values are omitted from API requests. See
  3641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3642  	// details.
  3643  	ForceSendFields []string `json:"-"`
  3644  	// NullFields is a list of field names (e.g. "DataSchema") to include in API
  3645  	// requests with the JSON null value. By default, fields with empty values are
  3646  	// omitted from API requests. See
  3647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3648  	NullFields []string `json:"-"`
  3649  }
  3650  
  3651  func (s *GoogleCloudDiscoveryengineV1alphaBigQuerySource) MarshalJSON() ([]byte, error) {
  3652  	type NoMethod GoogleCloudDiscoveryengineV1alphaBigQuerySource
  3653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3654  }
  3655  
  3656  // GoogleCloudDiscoveryengineV1alphaBigtableOptions: The Bigtable Options
  3657  // object that contains information to support the import.
  3658  type GoogleCloudDiscoveryengineV1alphaBigtableOptions struct {
  3659  	// Families: The mapping from family names to an object that contains column
  3660  	// families level information for the given column family. If a family is not
  3661  	// present in this map it will be ignored.
  3662  	Families map[string]GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumnFamily `json:"families,omitempty"`
  3663  	// KeyFieldName: The field name used for saving row key value in the document.
  3664  	// The name has to match the pattern `a-zA-Z0-9*`.
  3665  	KeyFieldName string `json:"keyFieldName,omitempty"`
  3666  	// ForceSendFields is a list of field names (e.g. "Families") to
  3667  	// unconditionally include in API requests. By default, fields with empty or
  3668  	// default values are omitted from API requests. See
  3669  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3670  	// details.
  3671  	ForceSendFields []string `json:"-"`
  3672  	// NullFields is a list of field names (e.g. "Families") to include in API
  3673  	// requests with the JSON null value. By default, fields with empty values are
  3674  	// omitted from API requests. See
  3675  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3676  	NullFields []string `json:"-"`
  3677  }
  3678  
  3679  func (s *GoogleCloudDiscoveryengineV1alphaBigtableOptions) MarshalJSON() ([]byte, error) {
  3680  	type NoMethod GoogleCloudDiscoveryengineV1alphaBigtableOptions
  3681  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3682  }
  3683  
  3684  // GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumn: The column
  3685  // of the Bigtable.
  3686  type GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumn struct {
  3687  	// Encoding: The encoding mode of the values when the type is not `STRING`.
  3688  	// Acceptable encoding values are: * `TEXT`: indicates values are alphanumeric
  3689  	// text strings. * `BINARY`: indicates values are encoded using `HBase
  3690  	// Bytes.toBytes` family of functions. This can be overridden for a specific
  3691  	// column by listing that column in `columns` and specifying an encoding for
  3692  	// it.
  3693  	//
  3694  	// Possible values:
  3695  	//   "ENCODING_UNSPECIFIED" - The encoding is unspecified.
  3696  	//   "TEXT" - Text encoding.
  3697  	//   "BINARY" - Binary encoding.
  3698  	Encoding string `json:"encoding,omitempty"`
  3699  	// FieldName: The field name to use for this column in the document. The name
  3700  	// has to match the pattern `a-zA-Z0-9*`. If not set, it is parsed from the
  3701  	// qualifier bytes with best effort. However, due to different naming patterns,
  3702  	// field name collisions could happen, where parsing behavior is undefined.
  3703  	FieldName string `json:"fieldName,omitempty"`
  3704  	// Qualifier: Required. Qualifier of the column. If it cannot be decoded with
  3705  	// utf-8, use a base-64 encoded string instead.
  3706  	Qualifier string `json:"qualifier,omitempty"`
  3707  	// Type: The type of values in this column family. The values are expected to
  3708  	// be encoded using `HBase Bytes.toBytes` function when the encoding value is
  3709  	// set to `BINARY`.
  3710  	//
  3711  	// Possible values:
  3712  	//   "TYPE_UNSPECIFIED" - The type is unspecified.
  3713  	//   "STRING" - String type.
  3714  	//   "NUMBER" - Numerical type.
  3715  	//   "INTEGER" - Integer type.
  3716  	//   "VAR_INTEGER" - Variable length integer type.
  3717  	//   "BIG_NUMERIC" - BigDecimal type.
  3718  	//   "BOOLEAN" - Boolean type.
  3719  	//   "JSON" - JSON type.
  3720  	Type string `json:"type,omitempty"`
  3721  	// ForceSendFields is a list of field names (e.g. "Encoding") to
  3722  	// unconditionally include in API requests. By default, fields with empty or
  3723  	// default values are omitted from API requests. See
  3724  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3725  	// details.
  3726  	ForceSendFields []string `json:"-"`
  3727  	// NullFields is a list of field names (e.g. "Encoding") to include in API
  3728  	// requests with the JSON null value. By default, fields with empty values are
  3729  	// omitted from API requests. See
  3730  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3731  	NullFields []string `json:"-"`
  3732  }
  3733  
  3734  func (s *GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumn) MarshalJSON() ([]byte, error) {
  3735  	type NoMethod GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumn
  3736  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3737  }
  3738  
  3739  // GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumnFamily: The
  3740  // column family of the Bigtable.
  3741  type GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumnFamily struct {
  3742  	// Columns: The list of objects that contains column level information for each
  3743  	// column. If a column is not present in this list it will be ignored.
  3744  	Columns []*GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumn `json:"columns,omitempty"`
  3745  	// Encoding: The encoding mode of the values when the type is not STRING.
  3746  	// Acceptable encoding values are: * `TEXT`: indicates values are alphanumeric
  3747  	// text strings. * `BINARY`: indicates values are encoded using `HBase
  3748  	// Bytes.toBytes` family of functions. This can be overridden for a specific
  3749  	// column by listing that column in `columns` and specifying an encoding for
  3750  	// it.
  3751  	//
  3752  	// Possible values:
  3753  	//   "ENCODING_UNSPECIFIED" - The encoding is unspecified.
  3754  	//   "TEXT" - Text encoding.
  3755  	//   "BINARY" - Binary encoding.
  3756  	Encoding string `json:"encoding,omitempty"`
  3757  	// FieldName: The field name to use for this column family in the document. The
  3758  	// name has to match the pattern `a-zA-Z0-9*`. If not set, it is parsed from
  3759  	// the family name with best effort. However, due to different naming patterns,
  3760  	// field name collisions could happen, where parsing behavior is undefined.
  3761  	FieldName string `json:"fieldName,omitempty"`
  3762  	// Type: The type of values in this column family. The values are expected to
  3763  	// be encoded using `HBase Bytes.toBytes` function when the encoding value is
  3764  	// set to `BINARY`.
  3765  	//
  3766  	// Possible values:
  3767  	//   "TYPE_UNSPECIFIED" - The type is unspecified.
  3768  	//   "STRING" - String type.
  3769  	//   "NUMBER" - Numerical type.
  3770  	//   "INTEGER" - Integer type.
  3771  	//   "VAR_INTEGER" - Variable length integer type.
  3772  	//   "BIG_NUMERIC" - BigDecimal type.
  3773  	//   "BOOLEAN" - Boolean type.
  3774  	//   "JSON" - JSON type.
  3775  	Type string `json:"type,omitempty"`
  3776  	// ForceSendFields is a list of field names (e.g. "Columns") to unconditionally
  3777  	// include in API requests. By default, fields with empty or default values are
  3778  	// omitted from API requests. See
  3779  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3780  	// details.
  3781  	ForceSendFields []string `json:"-"`
  3782  	// NullFields is a list of field names (e.g. "Columns") to include in API
  3783  	// requests with the JSON null value. By default, fields with empty values are
  3784  	// omitted from API requests. See
  3785  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3786  	NullFields []string `json:"-"`
  3787  }
  3788  
  3789  func (s *GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumnFamily) MarshalJSON() ([]byte, error) {
  3790  	type NoMethod GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumnFamily
  3791  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3792  }
  3793  
  3794  // GoogleCloudDiscoveryengineV1alphaBigtableSource: The Cloud Bigtable source
  3795  // for importing data.
  3796  type GoogleCloudDiscoveryengineV1alphaBigtableSource struct {
  3797  	// BigtableOptions: Required. Bigtable options that contains information needed
  3798  	// when parsing data into typed structures. For example, column type
  3799  	// annotations.
  3800  	BigtableOptions *GoogleCloudDiscoveryengineV1alphaBigtableOptions `json:"bigtableOptions,omitempty"`
  3801  	// InstanceId: Required. The instance ID of the Cloud Bigtable that needs to be
  3802  	// imported.
  3803  	InstanceId string `json:"instanceId,omitempty"`
  3804  	// ProjectId: The project ID that the Bigtable source is in with a length limit
  3805  	// of 128 characters. If not specified, inherits the project ID from the parent
  3806  	// request.
  3807  	ProjectId string `json:"projectId,omitempty"`
  3808  	// TableId: Required. The table ID of the Cloud Bigtable that needs to be
  3809  	// imported.
  3810  	TableId string `json:"tableId,omitempty"`
  3811  	// ForceSendFields is a list of field names (e.g. "BigtableOptions") to
  3812  	// unconditionally include in API requests. By default, fields with empty or
  3813  	// default values are omitted from API requests. See
  3814  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3815  	// details.
  3816  	ForceSendFields []string `json:"-"`
  3817  	// NullFields is a list of field names (e.g. "BigtableOptions") to include in
  3818  	// API requests with the JSON null value. By default, fields with empty values
  3819  	// are omitted from API requests. See
  3820  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3821  	NullFields []string `json:"-"`
  3822  }
  3823  
  3824  func (s *GoogleCloudDiscoveryengineV1alphaBigtableSource) MarshalJSON() ([]byte, error) {
  3825  	type NoMethod GoogleCloudDiscoveryengineV1alphaBigtableSource
  3826  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3827  }
  3828  
  3829  // GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest: Request message for
  3830  // GroundedGenerationService.CheckGrounding method.
  3831  type GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest struct {
  3832  	// AnswerCandidate: Answer candidate to check. Can have a maximum length of
  3833  	// 1024 characters.
  3834  	AnswerCandidate string `json:"answerCandidate,omitempty"`
  3835  	// Facts: List of facts for the grounding check. We support up to 200 facts.
  3836  	Facts []*GoogleCloudDiscoveryengineV1alphaGroundingFact `json:"facts,omitempty"`
  3837  	// GroundingSpec: Configuration of the grounding check.
  3838  	GroundingSpec *GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec `json:"groundingSpec,omitempty"`
  3839  	// UserLabels: The user labels applied to a resource must meet the following
  3840  	// requirements: * Each resource can have multiple labels, up to a maximum of
  3841  	// 64. * Each label must be a key-value pair. * Keys have a minimum length of 1
  3842  	// character and a maximum length of 63 characters and cannot be empty. Values
  3843  	// can be empty and have a maximum length of 63 characters. * Keys and values
  3844  	// can contain only lowercase letters, numeric characters, underscores, and
  3845  	// dashes. All characters must use UTF-8 encoding, and international characters
  3846  	// are allowed. * The key portion of a label must be unique. However, you can
  3847  	// use the same key with multiple resources. * Keys must start with a lowercase
  3848  	// letter or international character. See Google Cloud Document
  3849  	// (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  3850  	// for more details.
  3851  	UserLabels map[string]string `json:"userLabels,omitempty"`
  3852  	// ForceSendFields is a list of field names (e.g. "AnswerCandidate") to
  3853  	// unconditionally include in API requests. By default, fields with empty or
  3854  	// default values are omitted from API requests. See
  3855  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3856  	// details.
  3857  	ForceSendFields []string `json:"-"`
  3858  	// NullFields is a list of field names (e.g. "AnswerCandidate") to include in
  3859  	// API requests with the JSON null value. By default, fields with empty values
  3860  	// are omitted from API requests. See
  3861  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3862  	NullFields []string `json:"-"`
  3863  }
  3864  
  3865  func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest) MarshalJSON() ([]byte, error) {
  3866  	type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest
  3867  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3868  }
  3869  
  3870  // GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse: Response message
  3871  // for the GroundedGenerationService.CheckGrounding method.
  3872  type GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse struct {
  3873  	// CitedChunks: List of facts cited across all claims in the answer candidate.
  3874  	// These are derived from the facts supplied in the request.
  3875  	CitedChunks []*GoogleCloudDiscoveryengineV1alphaFactChunk `json:"citedChunks,omitempty"`
  3876  	// Claims: Claim texts and citation info across all claims in the answer
  3877  	// candidate.
  3878  	Claims []*GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim `json:"claims,omitempty"`
  3879  	// SupportScore: The support score for the input answer candidate. Higher the
  3880  	// score, higher is the fraction of claims that are supported by the provided
  3881  	// facts. This is always set when a response is returned.
  3882  	SupportScore float64 `json:"supportScore,omitempty"`
  3883  
  3884  	// ServerResponse contains the HTTP response code and headers from the server.
  3885  	googleapi.ServerResponse `json:"-"`
  3886  	// ForceSendFields is a list of field names (e.g. "CitedChunks") to
  3887  	// unconditionally include in API requests. By default, fields with empty or
  3888  	// default values are omitted from API requests. See
  3889  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3890  	// details.
  3891  	ForceSendFields []string `json:"-"`
  3892  	// NullFields is a list of field names (e.g. "CitedChunks") to include in API
  3893  	// requests with the JSON null value. By default, fields with empty values are
  3894  	// omitted from API requests. See
  3895  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3896  	NullFields []string `json:"-"`
  3897  }
  3898  
  3899  func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse) MarshalJSON() ([]byte, error) {
  3900  	type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse
  3901  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3902  }
  3903  
  3904  func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse) UnmarshalJSON(data []byte) error {
  3905  	type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse
  3906  	var s1 struct {
  3907  		SupportScore gensupport.JSONFloat64 `json:"supportScore"`
  3908  		*NoMethod
  3909  	}
  3910  	s1.NoMethod = (*NoMethod)(s)
  3911  	if err := json.Unmarshal(data, &s1); err != nil {
  3912  		return err
  3913  	}
  3914  	s.SupportScore = float64(s1.SupportScore)
  3915  	return nil
  3916  }
  3917  
  3918  // GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim: Text and
  3919  // citation info for a claim in the answer candidate.
  3920  type GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim struct {
  3921  	// CitationIndices: A list of indices (into 'cited_chunks') specifying the
  3922  	// citations associated with the claim. For instance [1,3,4] means that
  3923  	// cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited
  3924  	// supporting for the claim. A citation to a fact indicates that the claim is
  3925  	// supported by the fact.
  3926  	CitationIndices []int64 `json:"citationIndices,omitempty"`
  3927  	// ClaimText: Text for the claim in the answer candidate. Always provided
  3928  	// regardless of whether citations or anti-citations are found.
  3929  	ClaimText string `json:"claimText,omitempty"`
  3930  	// EndPos: Position indicating the end of the claim in the answer candidate,
  3931  	// exclusive.
  3932  	EndPos int64 `json:"endPos,omitempty"`
  3933  	// GroundingCheckRequired: Indicates that this claim required grounding check.
  3934  	// When the system decided this claim doesn't require attribution/grounding
  3935  	// check, this field will be set to false. In that case, no grounding check was
  3936  	// done for the claim and therefore citation_indices, and anti_citation_indices
  3937  	// should not be returned.
  3938  	GroundingCheckRequired bool `json:"groundingCheckRequired,omitempty"`
  3939  	// StartPos: Position indicating the start of the claim in the answer
  3940  	// candidate, measured in bytes.
  3941  	StartPos int64 `json:"startPos,omitempty"`
  3942  	// ForceSendFields is a list of field names (e.g. "CitationIndices") to
  3943  	// unconditionally include in API requests. By default, fields with empty or
  3944  	// default values are omitted from API requests. See
  3945  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3946  	// details.
  3947  	ForceSendFields []string `json:"-"`
  3948  	// NullFields is a list of field names (e.g. "CitationIndices") to include in
  3949  	// API requests with the JSON null value. By default, fields with empty values
  3950  	// are omitted from API requests. See
  3951  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3952  	NullFields []string `json:"-"`
  3953  }
  3954  
  3955  func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim) MarshalJSON() ([]byte, error) {
  3956  	type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim
  3957  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3958  }
  3959  
  3960  // GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec: Specification for the
  3961  // grounding check.
  3962  type GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec struct {
  3963  	// CitationThreshold: The threshold (in [0,1]) used for determining whether a
  3964  	// fact must be cited for a claim in the answer candidate. Choosing a higher
  3965  	// threshold will lead to fewer but very strong citations, while choosing a
  3966  	// lower threshold may lead to more but somewhat weaker citations. If unset,
  3967  	// the threshold will default to 0.6.
  3968  	CitationThreshold float64 `json:"citationThreshold,omitempty"`
  3969  	// ForceSendFields is a list of field names (e.g. "CitationThreshold") to
  3970  	// unconditionally include in API requests. By default, fields with empty or
  3971  	// default values are omitted from API requests. See
  3972  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3973  	// details.
  3974  	ForceSendFields []string `json:"-"`
  3975  	// NullFields is a list of field names (e.g. "CitationThreshold") to include in
  3976  	// API requests with the JSON null value. By default, fields with empty values
  3977  	// are omitted from API requests. See
  3978  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3979  	NullFields []string `json:"-"`
  3980  }
  3981  
  3982  func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec) MarshalJSON() ([]byte, error) {
  3983  	type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec
  3984  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3985  }
  3986  
  3987  func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec) UnmarshalJSON(data []byte) error {
  3988  	type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec
  3989  	var s1 struct {
  3990  		CitationThreshold gensupport.JSONFloat64 `json:"citationThreshold"`
  3991  		*NoMethod
  3992  	}
  3993  	s1.NoMethod = (*NoMethod)(s)
  3994  	if err := json.Unmarshal(data, &s1); err != nil {
  3995  		return err
  3996  	}
  3997  	s.CitationThreshold = float64(s1.CitationThreshold)
  3998  	return nil
  3999  }
  4000  
  4001  // GoogleCloudDiscoveryengineV1alphaChunk: Chunk captures all raw metadata
  4002  // information of items to be recommended or searched in the chunk mode.
  4003  type GoogleCloudDiscoveryengineV1alphaChunk struct {
  4004  	// ChunkMetadata: Output only. Metadata of the current chunk.
  4005  	ChunkMetadata *GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata `json:"chunkMetadata,omitempty"`
  4006  	// Content: Content is a string from a document (parsed content).
  4007  	Content string `json:"content,omitempty"`
  4008  	// DerivedStructData: Output only. This field is OUTPUT_ONLY. It contains
  4009  	// derived data that are not in the original input document.
  4010  	DerivedStructData googleapi.RawMessage `json:"derivedStructData,omitempty"`
  4011  	// DocumentMetadata: Metadata of the document from the current chunk.
  4012  	DocumentMetadata *GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata `json:"documentMetadata,omitempty"`
  4013  	// Id: Unique chunk ID of the current chunk.
  4014  	Id string `json:"id,omitempty"`
  4015  	// Name: The full resource name of the chunk. Format:
  4016  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  4017  	// {data_store}/branches/{branch}/documents/{document_id}/chunks/{chunk_id}`.
  4018  	// This field must be a UTF-8 encoded string with a length limit of 1024
  4019  	// characters.
  4020  	Name string `json:"name,omitempty"`
  4021  	// PageSpan: Page span of the chunk.
  4022  	PageSpan *GoogleCloudDiscoveryengineV1alphaChunkPageSpan `json:"pageSpan,omitempty"`
  4023  	// RelevanceScore: Represents the relevance score based on similarity. Higher
  4024  	// score represents the chunk relevance. The score is in range [0.0, 1.0]. Only
  4025  	// populated on SearchService.SearchResponse
  4026  	RelevanceScore float64 `json:"relevanceScore,omitempty"`
  4027  
  4028  	// ServerResponse contains the HTTP response code and headers from the server.
  4029  	googleapi.ServerResponse `json:"-"`
  4030  	// ForceSendFields is a list of field names (e.g. "ChunkMetadata") to
  4031  	// unconditionally include in API requests. By default, fields with empty or
  4032  	// default values are omitted from API requests. See
  4033  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4034  	// details.
  4035  	ForceSendFields []string `json:"-"`
  4036  	// NullFields is a list of field names (e.g. "ChunkMetadata") to include in API
  4037  	// requests with the JSON null value. By default, fields with empty values are
  4038  	// omitted from API requests. See
  4039  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4040  	NullFields []string `json:"-"`
  4041  }
  4042  
  4043  func (s *GoogleCloudDiscoveryengineV1alphaChunk) MarshalJSON() ([]byte, error) {
  4044  	type NoMethod GoogleCloudDiscoveryengineV1alphaChunk
  4045  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4046  }
  4047  
  4048  func (s *GoogleCloudDiscoveryengineV1alphaChunk) UnmarshalJSON(data []byte) error {
  4049  	type NoMethod GoogleCloudDiscoveryengineV1alphaChunk
  4050  	var s1 struct {
  4051  		RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
  4052  		*NoMethod
  4053  	}
  4054  	s1.NoMethod = (*NoMethod)(s)
  4055  	if err := json.Unmarshal(data, &s1); err != nil {
  4056  		return err
  4057  	}
  4058  	s.RelevanceScore = float64(s1.RelevanceScore)
  4059  	return nil
  4060  }
  4061  
  4062  // GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata: Metadata of the current
  4063  // chunk. This field is only populated on SearchService.Search API.
  4064  type GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata struct {
  4065  	// NextChunks: The next chunks of the current chunk. The number is controlled
  4066  	// by SearchRequest.ContentSearchSpec.ChunkSpec.num_next_chunks. This field is
  4067  	// only populated on SearchService.Search API.
  4068  	NextChunks []*GoogleCloudDiscoveryengineV1alphaChunk `json:"nextChunks,omitempty"`
  4069  	// PreviousChunks: The previous chunks of the current chunk. The number is
  4070  	// controlled by SearchRequest.ContentSearchSpec.ChunkSpec.num_previous_chunks.
  4071  	// This field is only populated on SearchService.Search API.
  4072  	PreviousChunks []*GoogleCloudDiscoveryengineV1alphaChunk `json:"previousChunks,omitempty"`
  4073  	// ForceSendFields is a list of field names (e.g. "NextChunks") to
  4074  	// unconditionally include in API requests. By default, fields with empty or
  4075  	// default values are omitted from API requests. See
  4076  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4077  	// details.
  4078  	ForceSendFields []string `json:"-"`
  4079  	// NullFields is a list of field names (e.g. "NextChunks") to include in API
  4080  	// requests with the JSON null value. By default, fields with empty values are
  4081  	// omitted from API requests. See
  4082  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4083  	NullFields []string `json:"-"`
  4084  }
  4085  
  4086  func (s *GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata) MarshalJSON() ([]byte, error) {
  4087  	type NoMethod GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata
  4088  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4089  }
  4090  
  4091  // GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata: Document metadata
  4092  // contains the information of the document of the current chunk.
  4093  type GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata struct {
  4094  	// StructData: Data representation. The structured JSON data for the document.
  4095  	// It should conform to the registered Schema or an `INVALID_ARGUMENT` error is
  4096  	// thrown.
  4097  	StructData googleapi.RawMessage `json:"structData,omitempty"`
  4098  	// Title: Title of the document.
  4099  	Title string `json:"title,omitempty"`
  4100  	// Uri: Uri of the document.
  4101  	Uri string `json:"uri,omitempty"`
  4102  	// ForceSendFields is a list of field names (e.g. "StructData") to
  4103  	// unconditionally include in API requests. By default, fields with empty or
  4104  	// default values are omitted from API requests. See
  4105  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4106  	// details.
  4107  	ForceSendFields []string `json:"-"`
  4108  	// NullFields is a list of field names (e.g. "StructData") to include in API
  4109  	// requests with the JSON null value. By default, fields with empty values are
  4110  	// omitted from API requests. See
  4111  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4112  	NullFields []string `json:"-"`
  4113  }
  4114  
  4115  func (s *GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata) MarshalJSON() ([]byte, error) {
  4116  	type NoMethod GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata
  4117  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4118  }
  4119  
  4120  // GoogleCloudDiscoveryengineV1alphaChunkPageSpan: Page span of the chunk.
  4121  type GoogleCloudDiscoveryengineV1alphaChunkPageSpan struct {
  4122  	// PageEnd: The end page of the chunk.
  4123  	PageEnd int64 `json:"pageEnd,omitempty"`
  4124  	// PageStart: The start page of the chunk.
  4125  	PageStart int64 `json:"pageStart,omitempty"`
  4126  	// ForceSendFields is a list of field names (e.g. "PageEnd") to unconditionally
  4127  	// include in API requests. By default, fields with empty or default values are
  4128  	// omitted from API requests. See
  4129  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4130  	// details.
  4131  	ForceSendFields []string `json:"-"`
  4132  	// NullFields is a list of field names (e.g. "PageEnd") to include in API
  4133  	// requests with the JSON null value. By default, fields with empty values are
  4134  	// omitted from API requests. See
  4135  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4136  	NullFields []string `json:"-"`
  4137  }
  4138  
  4139  func (s *GoogleCloudDiscoveryengineV1alphaChunkPageSpan) MarshalJSON() ([]byte, error) {
  4140  	type NoMethod GoogleCloudDiscoveryengineV1alphaChunkPageSpan
  4141  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4142  }
  4143  
  4144  // GoogleCloudDiscoveryengineV1alphaCloudSqlSource: Cloud SQL source import
  4145  // data from.
  4146  type GoogleCloudDiscoveryengineV1alphaCloudSqlSource struct {
  4147  	// DatabaseId: Required. The Cloud SQL database to copy the data from with a
  4148  	// length limit of 256 characters.
  4149  	DatabaseId string `json:"databaseId,omitempty"`
  4150  	// GcsStagingDir: Intermediate Cloud Storage directory used for the import with
  4151  	// a length limit of 2,000 characters. Can be specified if one wants to have
  4152  	// the Cloud SQL export to a specific Cloud Storage directory. Ensure that the
  4153  	// Cloud SQL service account has the necessary Cloud Storage Admin permissions
  4154  	// to access the specified Cloud Storage directory.
  4155  	GcsStagingDir string `json:"gcsStagingDir,omitempty"`
  4156  	// InstanceId: Required. The Cloud SQL instance to copy the data from with a
  4157  	// length limit of 256 characters.
  4158  	InstanceId string `json:"instanceId,omitempty"`
  4159  	// Offload: Option for serverless export. Enabling this option will incur
  4160  	// additional cost. More info can be found here
  4161  	// (https://cloud.google.com/sql/pricing#serverless).
  4162  	Offload bool `json:"offload,omitempty"`
  4163  	// ProjectId: The project ID that the Cloud SQL source is in with a length
  4164  	// limit of 128 characters. If not specified, inherits the project ID from the
  4165  	// parent request.
  4166  	ProjectId string `json:"projectId,omitempty"`
  4167  	// TableId: Required. The Cloud SQL table to copy the data from with a length
  4168  	// limit of 256 characters.
  4169  	TableId string `json:"tableId,omitempty"`
  4170  	// ForceSendFields is a list of field names (e.g. "DatabaseId") to
  4171  	// unconditionally include in API requests. By default, fields with empty or
  4172  	// default values are omitted from API requests. See
  4173  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4174  	// details.
  4175  	ForceSendFields []string `json:"-"`
  4176  	// NullFields is a list of field names (e.g. "DatabaseId") to include in API
  4177  	// requests with the JSON null value. By default, fields with empty values are
  4178  	// omitted from API requests. See
  4179  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4180  	NullFields []string `json:"-"`
  4181  }
  4182  
  4183  func (s *GoogleCloudDiscoveryengineV1alphaCloudSqlSource) MarshalJSON() ([]byte, error) {
  4184  	type NoMethod GoogleCloudDiscoveryengineV1alphaCloudSqlSource
  4185  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4186  }
  4187  
  4188  // GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse: Response message for
  4189  // CompletionService.CompleteQuery method.
  4190  type GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse struct {
  4191  	// QuerySuggestions: Results of the matched query suggestions. The result list
  4192  	// is ordered and the first result is a top suggestion.
  4193  	QuerySuggestions []*GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion `json:"querySuggestions,omitempty"`
  4194  	// TailMatchTriggered: True if the returned suggestions are all tail
  4195  	// suggestions. For tail matching to be triggered, include_tail_suggestions in
  4196  	// the request must be true and there must be no suggestions that match the
  4197  	// full query.
  4198  	TailMatchTriggered bool `json:"tailMatchTriggered,omitempty"`
  4199  
  4200  	// ServerResponse contains the HTTP response code and headers from the server.
  4201  	googleapi.ServerResponse `json:"-"`
  4202  	// ForceSendFields is a list of field names (e.g. "QuerySuggestions") to
  4203  	// unconditionally include in API requests. By default, fields with empty or
  4204  	// default values are omitted from API requests. See
  4205  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4206  	// details.
  4207  	ForceSendFields []string `json:"-"`
  4208  	// NullFields is a list of field names (e.g. "QuerySuggestions") to include in
  4209  	// API requests with the JSON null value. By default, fields with empty values
  4210  	// are omitted from API requests. See
  4211  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4212  	NullFields []string `json:"-"`
  4213  }
  4214  
  4215  func (s *GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse) MarshalJSON() ([]byte, error) {
  4216  	type NoMethod GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse
  4217  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4218  }
  4219  
  4220  // GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion:
  4221  // Suggestions as search queries.
  4222  type GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion struct {
  4223  	// CompletableFieldPaths: The unique document field paths that serve as the
  4224  	// source of this suggestion if it was generated from completable fields. This
  4225  	// field is only populated for the document-completable model.
  4226  	CompletableFieldPaths []string `json:"completableFieldPaths,omitempty"`
  4227  	// Suggestion: The suggestion for the query.
  4228  	Suggestion string `json:"suggestion,omitempty"`
  4229  	// ForceSendFields is a list of field names (e.g. "CompletableFieldPaths") to
  4230  	// unconditionally include in API requests. By default, fields with empty or
  4231  	// default values are omitted from API requests. See
  4232  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4233  	// details.
  4234  	ForceSendFields []string `json:"-"`
  4235  	// NullFields is a list of field names (e.g. "CompletableFieldPaths") to
  4236  	// include in API requests with the JSON null value. By default, fields with
  4237  	// empty values are omitted from API requests. See
  4238  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4239  	NullFields []string `json:"-"`
  4240  }
  4241  
  4242  func (s *GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion) MarshalJSON() ([]byte, error) {
  4243  	type NoMethod GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion
  4244  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4245  }
  4246  
  4247  // GoogleCloudDiscoveryengineV1alphaCompletionInfo: Detailed completion
  4248  // information including completion attribution token and clicked completion
  4249  // info.
  4250  type GoogleCloudDiscoveryengineV1alphaCompletionInfo struct {
  4251  	// SelectedPosition: End user selected
  4252  	// CompleteQueryResponse.QuerySuggestion.suggestion position, starting from 0.
  4253  	SelectedPosition int64 `json:"selectedPosition,omitempty"`
  4254  	// SelectedSuggestion: End user selected
  4255  	// CompleteQueryResponse.QuerySuggestion.suggestion.
  4256  	SelectedSuggestion string `json:"selectedSuggestion,omitempty"`
  4257  	// ForceSendFields is a list of field names (e.g. "SelectedPosition") to
  4258  	// unconditionally include in API requests. By default, fields with empty or
  4259  	// default values are omitted from API requests. See
  4260  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4261  	// details.
  4262  	ForceSendFields []string `json:"-"`
  4263  	// NullFields is a list of field names (e.g. "SelectedPosition") to include in
  4264  	// API requests with the JSON null value. By default, fields with empty values
  4265  	// are omitted from API requests. See
  4266  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4267  	NullFields []string `json:"-"`
  4268  }
  4269  
  4270  func (s *GoogleCloudDiscoveryengineV1alphaCompletionInfo) MarshalJSON() ([]byte, error) {
  4271  	type NoMethod GoogleCloudDiscoveryengineV1alphaCompletionInfo
  4272  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4273  }
  4274  
  4275  // GoogleCloudDiscoveryengineV1alphaConversation: External conversation proto
  4276  // definition.
  4277  type GoogleCloudDiscoveryengineV1alphaConversation struct {
  4278  	// EndTime: Output only. The time the conversation finished.
  4279  	EndTime string `json:"endTime,omitempty"`
  4280  	// Messages: Conversation messages.
  4281  	Messages []*GoogleCloudDiscoveryengineV1alphaConversationMessage `json:"messages,omitempty"`
  4282  	// Name: Immutable. Fully qualified name
  4283  	// `projects/{project}/locations/global/collections/{collection}/dataStore/*/con
  4284  	// versations/*` or
  4285  	// `projects/{project}/locations/global/collections/{collection}/engines/*/conve
  4286  	// rsations/*`.
  4287  	Name string `json:"name,omitempty"`
  4288  	// StartTime: Output only. The time the conversation started.
  4289  	StartTime string `json:"startTime,omitempty"`
  4290  	// State: The state of the Conversation.
  4291  	//
  4292  	// Possible values:
  4293  	//   "STATE_UNSPECIFIED" - Unknown.
  4294  	//   "IN_PROGRESS" - Conversation is currently open.
  4295  	//   "COMPLETED" - Conversation has been completed.
  4296  	State string `json:"state,omitempty"`
  4297  	// UserPseudoId: A unique identifier for tracking users.
  4298  	UserPseudoId string `json:"userPseudoId,omitempty"`
  4299  
  4300  	// ServerResponse contains the HTTP response code and headers from the server.
  4301  	googleapi.ServerResponse `json:"-"`
  4302  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  4303  	// include in API requests. By default, fields with empty or default values are
  4304  	// omitted from API requests. See
  4305  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4306  	// details.
  4307  	ForceSendFields []string `json:"-"`
  4308  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  4309  	// requests with the JSON null value. By default, fields with empty values are
  4310  	// omitted from API requests. See
  4311  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4312  	NullFields []string `json:"-"`
  4313  }
  4314  
  4315  func (s *GoogleCloudDiscoveryengineV1alphaConversation) MarshalJSON() ([]byte, error) {
  4316  	type NoMethod GoogleCloudDiscoveryengineV1alphaConversation
  4317  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4318  }
  4319  
  4320  // GoogleCloudDiscoveryengineV1alphaConversationContext: Defines context of the
  4321  // conversation
  4322  type GoogleCloudDiscoveryengineV1alphaConversationContext struct {
  4323  	// ActiveDocument: The current active document the user opened. It contains the
  4324  	// document resource reference.
  4325  	ActiveDocument string `json:"activeDocument,omitempty"`
  4326  	// ContextDocuments: The current list of documents the user is seeing. It
  4327  	// contains the document resource references.
  4328  	ContextDocuments []string `json:"contextDocuments,omitempty"`
  4329  	// ForceSendFields is a list of field names (e.g. "ActiveDocument") to
  4330  	// unconditionally include in API requests. By default, fields with empty or
  4331  	// default values are omitted from API requests. See
  4332  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4333  	// details.
  4334  	ForceSendFields []string `json:"-"`
  4335  	// NullFields is a list of field names (e.g. "ActiveDocument") to include in
  4336  	// API requests with the JSON null value. By default, fields with empty values
  4337  	// are omitted from API requests. See
  4338  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4339  	NullFields []string `json:"-"`
  4340  }
  4341  
  4342  func (s *GoogleCloudDiscoveryengineV1alphaConversationContext) MarshalJSON() ([]byte, error) {
  4343  	type NoMethod GoogleCloudDiscoveryengineV1alphaConversationContext
  4344  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4345  }
  4346  
  4347  // GoogleCloudDiscoveryengineV1alphaConversationMessage: Defines a conversation
  4348  // message.
  4349  type GoogleCloudDiscoveryengineV1alphaConversationMessage struct {
  4350  	// CreateTime: Output only. Message creation timestamp.
  4351  	CreateTime string `json:"createTime,omitempty"`
  4352  	// Reply: Search reply.
  4353  	Reply *GoogleCloudDiscoveryengineV1alphaReply `json:"reply,omitempty"`
  4354  	// UserInput: User text input.
  4355  	UserInput *GoogleCloudDiscoveryengineV1alphaTextInput `json:"userInput,omitempty"`
  4356  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4357  	// unconditionally include in API requests. By default, fields with empty or
  4358  	// default values are omitted from API requests. See
  4359  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4360  	// details.
  4361  	ForceSendFields []string `json:"-"`
  4362  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4363  	// requests with the JSON null value. By default, fields with empty values are
  4364  	// omitted from API requests. See
  4365  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4366  	NullFields []string `json:"-"`
  4367  }
  4368  
  4369  func (s *GoogleCloudDiscoveryengineV1alphaConversationMessage) MarshalJSON() ([]byte, error) {
  4370  	type NoMethod GoogleCloudDiscoveryengineV1alphaConversationMessage
  4371  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4372  }
  4373  
  4374  // GoogleCloudDiscoveryengineV1alphaConverseConversationRequest: Request
  4375  // message for ConversationalSearchService.ConverseConversation method.
  4376  type GoogleCloudDiscoveryengineV1alphaConverseConversationRequest struct {
  4377  	// BoostSpec: Boost specification to boost certain documents in search results
  4378  	// which may affect the converse response. For more information on boosting,
  4379  	// see Boosting (https://cloud.google.com/retail/docs/boosting#boost)
  4380  	BoostSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec `json:"boostSpec,omitempty"`
  4381  	// Conversation: The conversation to be used by auto session only. The name
  4382  	// field will be ignored as we automatically assign new name for the
  4383  	// conversation in auto session.
  4384  	Conversation *GoogleCloudDiscoveryengineV1alphaConversation `json:"conversation,omitempty"`
  4385  	// Filter: The filter syntax consists of an expression language for
  4386  	// constructing a predicate from one or more fields of the documents being
  4387  	// filtered. Filter expression is case-sensitive. This will be used to filter
  4388  	// search results which may affect the summary response. If this field is
  4389  	// unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI
  4390  	// Search is done by mapping the LHS filter key to a key property defined in
  4391  	// the Vertex AI Search backend -- this mapping is defined by the customer in
  4392  	// their schema. For example a media customer might have a field 'name' in
  4393  	// their schema. In this case the filter would look like this: filter -->
  4394  	// name:'ANY("king kong")' For more information about filtering including
  4395  	// syntax and filter operators, see Filter
  4396  	// (https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
  4397  	Filter string `json:"filter,omitempty"`
  4398  	// Query: Required. Current user input.
  4399  	Query *GoogleCloudDiscoveryengineV1alphaTextInput `json:"query,omitempty"`
  4400  	// SafeSearch: Whether to turn on safe search.
  4401  	SafeSearch bool `json:"safeSearch,omitempty"`
  4402  	// ServingConfig: The resource name of the Serving Config to use. Format:
  4403  	// `projects/{project_number}/locations/{location_id}/collections/{collection}/d
  4404  	// ataStores/{data_store_id}/servingConfigs/{serving_config_id}` If this is not
  4405  	// set, the default serving config will be used.
  4406  	ServingConfig string `json:"servingConfig,omitempty"`
  4407  	// SummarySpec: A specification for configuring the summary returned in the
  4408  	// response.
  4409  	SummarySpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec `json:"summarySpec,omitempty"`
  4410  	// UserLabels: The user labels applied to a resource must meet the following
  4411  	// requirements: * Each resource can have multiple labels, up to a maximum of
  4412  	// 64. * Each label must be a key-value pair. * Keys have a minimum length of 1
  4413  	// character and a maximum length of 63 characters and cannot be empty. Values
  4414  	// can be empty and have a maximum length of 63 characters. * Keys and values
  4415  	// can contain only lowercase letters, numeric characters, underscores, and
  4416  	// dashes. All characters must use UTF-8 encoding, and international characters
  4417  	// are allowed. * The key portion of a label must be unique. However, you can
  4418  	// use the same key with multiple resources. * Keys must start with a lowercase
  4419  	// letter or international character. See Google Cloud Document
  4420  	// (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  4421  	// for more details.
  4422  	UserLabels map[string]string `json:"userLabels,omitempty"`
  4423  	// ForceSendFields is a list of field names (e.g. "BoostSpec") to
  4424  	// unconditionally include in API requests. By default, fields with empty or
  4425  	// default values are omitted from API requests. See
  4426  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4427  	// details.
  4428  	ForceSendFields []string `json:"-"`
  4429  	// NullFields is a list of field names (e.g. "BoostSpec") to include in API
  4430  	// requests with the JSON null value. By default, fields with empty values are
  4431  	// omitted from API requests. See
  4432  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4433  	NullFields []string `json:"-"`
  4434  }
  4435  
  4436  func (s *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest) MarshalJSON() ([]byte, error) {
  4437  	type NoMethod GoogleCloudDiscoveryengineV1alphaConverseConversationRequest
  4438  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4439  }
  4440  
  4441  // GoogleCloudDiscoveryengineV1alphaConverseConversationResponse: Response
  4442  // message for ConversationalSearchService.ConverseConversation method.
  4443  type GoogleCloudDiscoveryengineV1alphaConverseConversationResponse struct {
  4444  	// Conversation: Updated conversation including the answer.
  4445  	Conversation *GoogleCloudDiscoveryengineV1alphaConversation `json:"conversation,omitempty"`
  4446  	// RelatedQuestions: Suggested related questions.
  4447  	RelatedQuestions []string `json:"relatedQuestions,omitempty"`
  4448  	// Reply: Answer to the current query.
  4449  	Reply *GoogleCloudDiscoveryengineV1alphaReply `json:"reply,omitempty"`
  4450  	// SearchResults: Search Results.
  4451  	SearchResults []*GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult `json:"searchResults,omitempty"`
  4452  
  4453  	// ServerResponse contains the HTTP response code and headers from the server.
  4454  	googleapi.ServerResponse `json:"-"`
  4455  	// ForceSendFields is a list of field names (e.g. "Conversation") to
  4456  	// unconditionally include in API requests. By default, fields with empty or
  4457  	// default values are omitted from API requests. See
  4458  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4459  	// details.
  4460  	ForceSendFields []string `json:"-"`
  4461  	// NullFields is a list of field names (e.g. "Conversation") to include in API
  4462  	// requests with the JSON null value. By default, fields with empty values are
  4463  	// omitted from API requests. See
  4464  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4465  	NullFields []string `json:"-"`
  4466  }
  4467  
  4468  func (s *GoogleCloudDiscoveryengineV1alphaConverseConversationResponse) MarshalJSON() ([]byte, error) {
  4469  	type NoMethod GoogleCloudDiscoveryengineV1alphaConverseConversationResponse
  4470  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4471  }
  4472  
  4473  // GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata: Metadata related
  4474  // to the progress of the DataStoreService.CreateDataStore operation. This will
  4475  // be returned by the google.longrunning.Operation.metadata field.
  4476  type GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata struct {
  4477  	// CreateTime: Operation create time.
  4478  	CreateTime string `json:"createTime,omitempty"`
  4479  	// UpdateTime: Operation last update time. If the operation is done, this is
  4480  	// also the finish time.
  4481  	UpdateTime string `json:"updateTime,omitempty"`
  4482  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4483  	// unconditionally include in API requests. By default, fields with empty or
  4484  	// default values are omitted from API requests. See
  4485  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4486  	// details.
  4487  	ForceSendFields []string `json:"-"`
  4488  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4489  	// requests with the JSON null value. By default, fields with empty values are
  4490  	// omitted from API requests. See
  4491  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4492  	NullFields []string `json:"-"`
  4493  }
  4494  
  4495  func (s *GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
  4496  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata
  4497  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4498  }
  4499  
  4500  // GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata: Metadata related to
  4501  // the progress of the EngineService.CreateEngine operation. This will be
  4502  // returned by the google.longrunning.Operation.metadata field.
  4503  type GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata struct {
  4504  	// CreateTime: Operation create time.
  4505  	CreateTime string `json:"createTime,omitempty"`
  4506  	// UpdateTime: Operation last update time. If the operation is done, this is
  4507  	// also the finish time.
  4508  	UpdateTime string `json:"updateTime,omitempty"`
  4509  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4510  	// unconditionally include in API requests. By default, fields with empty or
  4511  	// default values are omitted from API requests. See
  4512  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4513  	// details.
  4514  	ForceSendFields []string `json:"-"`
  4515  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4516  	// requests with the JSON null value. By default, fields with empty values are
  4517  	// omitted from API requests. See
  4518  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4519  	NullFields []string `json:"-"`
  4520  }
  4521  
  4522  func (s *GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata) MarshalJSON() ([]byte, error) {
  4523  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata
  4524  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4525  }
  4526  
  4527  // GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata: Metadata for Create
  4528  // Schema LRO.
  4529  type GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata struct {
  4530  	// CreateTime: Operation create time.
  4531  	CreateTime string `json:"createTime,omitempty"`
  4532  	// UpdateTime: Operation last update time. If the operation is done, this is
  4533  	// also the finish time.
  4534  	UpdateTime string `json:"updateTime,omitempty"`
  4535  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4536  	// unconditionally include in API requests. By default, fields with empty or
  4537  	// default values are omitted from API requests. See
  4538  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4539  	// details.
  4540  	ForceSendFields []string `json:"-"`
  4541  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4542  	// requests with the JSON null value. By default, fields with empty values are
  4543  	// omitted from API requests. See
  4544  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4545  	NullFields []string `json:"-"`
  4546  }
  4547  
  4548  func (s *GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata) MarshalJSON() ([]byte, error) {
  4549  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata
  4550  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4551  }
  4552  
  4553  // GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata: Metadata related
  4554  // to the progress of the SiteSearchEngineService.CreateTargetSite operation.
  4555  // This will be returned by the google.longrunning.Operation.metadata field.
  4556  type GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata struct {
  4557  	// CreateTime: Operation create time.
  4558  	CreateTime string `json:"createTime,omitempty"`
  4559  	// UpdateTime: Operation last update time. If the operation is done, this is
  4560  	// also the finish time.
  4561  	UpdateTime string `json:"updateTime,omitempty"`
  4562  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4563  	// unconditionally include in API requests. By default, fields with empty or
  4564  	// default values are omitted from API requests. See
  4565  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4566  	// details.
  4567  	ForceSendFields []string `json:"-"`
  4568  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4569  	// requests with the JSON null value. By default, fields with empty values are
  4570  	// omitted from API requests. See
  4571  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4572  	NullFields []string `json:"-"`
  4573  }
  4574  
  4575  func (s *GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  4576  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata
  4577  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4578  }
  4579  
  4580  // GoogleCloudDiscoveryengineV1alphaCreateTargetSiteRequest: Request message
  4581  // for SiteSearchEngineService.CreateTargetSite method.
  4582  type GoogleCloudDiscoveryengineV1alphaCreateTargetSiteRequest struct {
  4583  	// Parent: Required. Parent resource name of TargetSite, such as
  4584  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  4585  	// {data_store}/siteSearchEngine`.
  4586  	Parent string `json:"parent,omitempty"`
  4587  	// TargetSite: Required. The TargetSite to create.
  4588  	TargetSite *GoogleCloudDiscoveryengineV1alphaTargetSite `json:"targetSite,omitempty"`
  4589  	// ForceSendFields is a list of field names (e.g. "Parent") to unconditionally
  4590  	// include in API requests. By default, fields with empty or default values are
  4591  	// omitted from API requests. See
  4592  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4593  	// details.
  4594  	ForceSendFields []string `json:"-"`
  4595  	// NullFields is a list of field names (e.g. "Parent") to include in API
  4596  	// requests with the JSON null value. By default, fields with empty values are
  4597  	// omitted from API requests. See
  4598  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4599  	NullFields []string `json:"-"`
  4600  }
  4601  
  4602  func (s *GoogleCloudDiscoveryengineV1alphaCreateTargetSiteRequest) MarshalJSON() ([]byte, error) {
  4603  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateTargetSiteRequest
  4604  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4605  }
  4606  
  4607  // GoogleCloudDiscoveryengineV1alphaCustomAttribute: A custom attribute that is
  4608  // not explicitly modeled in a resource, e.g. UserEvent.
  4609  type GoogleCloudDiscoveryengineV1alphaCustomAttribute struct {
  4610  	// Numbers: The numerical values of this custom attribute. For example, `[2.3,
  4611  	// 15.4]` when the key is "lengths_cm". Exactly one of CustomAttribute.text or
  4612  	// CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT`
  4613  	// error is returned.
  4614  	Numbers []float64 `json:"numbers,omitempty"`
  4615  	// Text: The textual values of this custom attribute. For example, `["yellow",
  4616  	// "green"]` when the key is "color". Empty string is not allowed. Otherwise,
  4617  	// an `INVALID_ARGUMENT` error is returned. Exactly one of CustomAttribute.text
  4618  	// or CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT`
  4619  	// error is returned.
  4620  	Text []string `json:"text,omitempty"`
  4621  	// ForceSendFields is a list of field names (e.g. "Numbers") to unconditionally
  4622  	// include in API requests. By default, fields with empty or default values are
  4623  	// omitted from API requests. See
  4624  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4625  	// details.
  4626  	ForceSendFields []string `json:"-"`
  4627  	// NullFields is a list of field names (e.g. "Numbers") to include in API
  4628  	// requests with the JSON null value. By default, fields with empty values are
  4629  	// omitted from API requests. See
  4630  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4631  	NullFields []string `json:"-"`
  4632  }
  4633  
  4634  func (s *GoogleCloudDiscoveryengineV1alphaCustomAttribute) MarshalJSON() ([]byte, error) {
  4635  	type NoMethod GoogleCloudDiscoveryengineV1alphaCustomAttribute
  4636  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4637  }
  4638  
  4639  func (s *GoogleCloudDiscoveryengineV1alphaCustomAttribute) UnmarshalJSON(data []byte) error {
  4640  	type NoMethod GoogleCloudDiscoveryengineV1alphaCustomAttribute
  4641  	var s1 struct {
  4642  		Numbers []gensupport.JSONFloat64 `json:"numbers"`
  4643  		*NoMethod
  4644  	}
  4645  	s1.NoMethod = (*NoMethod)(s)
  4646  	if err := json.Unmarshal(data, &s1); err != nil {
  4647  		return err
  4648  	}
  4649  	s.Numbers = make([]float64, len(s1.Numbers))
  4650  	for i := range s1.Numbers {
  4651  		s.Numbers[i] = float64(s1.Numbers[i])
  4652  	}
  4653  	return nil
  4654  }
  4655  
  4656  // GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec: Defines custom fine
  4657  // tuning spec.
  4658  type GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec struct {
  4659  	// EnableSearchAdaptor: Whether or not to enable and include custom fine tuned
  4660  	// search adaptor model.
  4661  	EnableSearchAdaptor bool `json:"enableSearchAdaptor,omitempty"`
  4662  	// ForceSendFields is a list of field names (e.g. "EnableSearchAdaptor") to
  4663  	// unconditionally include in API requests. By default, fields with empty or
  4664  	// default values are omitted from API requests. See
  4665  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4666  	// details.
  4667  	ForceSendFields []string `json:"-"`
  4668  	// NullFields is a list of field names (e.g. "EnableSearchAdaptor") to include
  4669  	// in API requests with the JSON null value. By default, fields with empty
  4670  	// values are omitted from API requests. See
  4671  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4672  	NullFields []string `json:"-"`
  4673  }
  4674  
  4675  func (s *GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec) MarshalJSON() ([]byte, error) {
  4676  	type NoMethod GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec
  4677  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4678  }
  4679  
  4680  // GoogleCloudDiscoveryengineV1alphaCustomTuningModel: Metadata that describes
  4681  // a custom tuned model.
  4682  type GoogleCloudDiscoveryengineV1alphaCustomTuningModel struct {
  4683  	// CreateTime: Timestamp the Model was created at.
  4684  	CreateTime string `json:"createTime,omitempty"`
  4685  	// DisplayName: The display name of the model.
  4686  	DisplayName string `json:"displayName,omitempty"`
  4687  	// ModelState: The state that the model is in (e.g.`TRAINING` or
  4688  	// `TRAINING_FAILED`).
  4689  	//
  4690  	// Possible values:
  4691  	//   "MODEL_STATE_UNSPECIFIED"
  4692  	//   "TRAINING_PAUSED" - The model is in a paused training state.
  4693  	//   "TRAINING" - The model is currently training.
  4694  	//   "TRAINING_COMPLETE" - The model has successfully completed training.
  4695  	//   "READY_FOR_SERVING" - The model is ready for serving.
  4696  	//   "TRAINING_FAILED" - The model training failed.
  4697  	ModelState   string `json:"modelState,omitempty"`
  4698  	ModelVersion int64  `json:"modelVersion,omitempty,string"`
  4699  	// Name: Required. The fully qualified resource name of the model. Format:
  4700  	// `projects/{project_number}/locations/{location}/collections/{collection}/data
  4701  	// Stores/{data_store}/customTuningModels/{custom_tuning_model}` model must be
  4702  	// an alpha-numerical string with limit of 40 characters.
  4703  	Name string `json:"name,omitempty"`
  4704  	// TrainingStartTime: Timestamp the model training was initiated.
  4705  	TrainingStartTime string `json:"trainingStartTime,omitempty"`
  4706  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4707  	// unconditionally include in API requests. By default, fields with empty or
  4708  	// default values are omitted from API requests. See
  4709  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4710  	// details.
  4711  	ForceSendFields []string `json:"-"`
  4712  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4713  	// requests with the JSON null value. By default, fields with empty values are
  4714  	// omitted from API requests. See
  4715  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4716  	NullFields []string `json:"-"`
  4717  }
  4718  
  4719  func (s *GoogleCloudDiscoveryengineV1alphaCustomTuningModel) MarshalJSON() ([]byte, error) {
  4720  	type NoMethod GoogleCloudDiscoveryengineV1alphaCustomTuningModel
  4721  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4722  }
  4723  
  4724  // GoogleCloudDiscoveryengineV1alphaDataStore: DataStore captures global
  4725  // settings and configs at the DataStore level.
  4726  type GoogleCloudDiscoveryengineV1alphaDataStore struct {
  4727  	// AclEnabled: Immutable. Whether data in the DataStore has ACL information. If
  4728  	// set to `true`, the source data must have ACL. ACL will be ingested when data
  4729  	// is ingested by DocumentService.ImportDocuments methods. When ACL is enabled
  4730  	// for the DataStore, Document can't be accessed by calling
  4731  	// DocumentService.GetDocument or DocumentService.ListDocuments. Currently ACL
  4732  	// is only supported in `GENERIC` industry vertical with non-`PUBLIC_WEBSITE`
  4733  	// content config.
  4734  	AclEnabled bool `json:"aclEnabled,omitempty"`
  4735  	// ContentConfig: Immutable. The content config of the data store. If this
  4736  	// field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
  4737  	//
  4738  	// Possible values:
  4739  	//   "CONTENT_CONFIG_UNSPECIFIED" - Default value.
  4740  	//   "NO_CONTENT" - Only contains documents without any Document.content.
  4741  	//   "CONTENT_REQUIRED" - Only contains documents with Document.content.
  4742  	//   "PUBLIC_WEBSITE" - The data store is used for public website search.
  4743  	ContentConfig string `json:"contentConfig,omitempty"`
  4744  	// CreateTime: Output only. Timestamp the DataStore was created at.
  4745  	CreateTime string `json:"createTime,omitempty"`
  4746  	// DefaultSchemaId: Output only. The id of the default Schema asscociated to
  4747  	// this data store.
  4748  	DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
  4749  	// DisplayName: Required. The data store display name. This field must be a
  4750  	// UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
  4751  	// INVALID_ARGUMENT error is returned.
  4752  	DisplayName string `json:"displayName,omitempty"`
  4753  	// DocumentProcessingConfig: Configuration for Document understanding and
  4754  	// enrichment.
  4755  	DocumentProcessingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
  4756  	// IdpConfig: Output only. Data store level identity provider config.
  4757  	IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"`
  4758  	// IndustryVertical: Immutable. The industry vertical that the data store
  4759  	// registers.
  4760  	//
  4761  	// Possible values:
  4762  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  4763  	//   "GENERIC" - The generic vertical for documents that are not specific to
  4764  	// any industry vertical.
  4765  	//   "MEDIA" - The media industry vertical.
  4766  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  4767  	IndustryVertical string `json:"industryVertical,omitempty"`
  4768  	// Name: Immutable. The full resource name of the data store. Format:
  4769  	// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
  4770  	// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
  4771  	// limit of 1024 characters.
  4772  	Name string `json:"name,omitempty"`
  4773  	// SolutionTypes: The solutions that the data store enrolls. Available
  4774  	// solutions for each industry_vertical: * `MEDIA`:
  4775  	// `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`:
  4776  	// `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be
  4777  	// enrolled.
  4778  	//
  4779  	// Possible values:
  4780  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  4781  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  4782  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  4783  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  4784  	// agent.
  4785  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  4786  	// Generative Chat agent. It's used for Generative chat engine only, the
  4787  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  4788  	SolutionTypes []string `json:"solutionTypes,omitempty"`
  4789  	// StartingSchema: The start schema to use for this DataStore when provisioning
  4790  	// it. If unset, a default vertical specialized schema will be used. This field
  4791  	// is only used by CreateDataStore API, and will be ignored if used in other
  4792  	// APIs. This field will be omitted from all API responses including
  4793  	// CreateDataStore API. To retrieve a schema of a DataStore, use
  4794  	// SchemaService.GetSchema API instead. The provided schema will be validated
  4795  	// against certain rules on schema. Learn more from this doc
  4796  	// (https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
  4797  	StartingSchema *GoogleCloudDiscoveryengineV1alphaSchema `json:"startingSchema,omitempty"`
  4798  
  4799  	// ServerResponse contains the HTTP response code and headers from the server.
  4800  	googleapi.ServerResponse `json:"-"`
  4801  	// ForceSendFields is a list of field names (e.g. "AclEnabled") to
  4802  	// unconditionally include in API requests. By default, fields with empty or
  4803  	// default values are omitted from API requests. See
  4804  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4805  	// details.
  4806  	ForceSendFields []string `json:"-"`
  4807  	// NullFields is a list of field names (e.g. "AclEnabled") to include in API
  4808  	// requests with the JSON null value. By default, fields with empty values are
  4809  	// omitted from API requests. See
  4810  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4811  	NullFields []string `json:"-"`
  4812  }
  4813  
  4814  func (s *GoogleCloudDiscoveryengineV1alphaDataStore) MarshalJSON() ([]byte, error) {
  4815  	type NoMethod GoogleCloudDiscoveryengineV1alphaDataStore
  4816  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4817  }
  4818  
  4819  // GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata: Metadata related
  4820  // to the progress of the DataStoreService.DeleteDataStore operation. This will
  4821  // be returned by the google.longrunning.Operation.metadata field.
  4822  type GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata struct {
  4823  	// CreateTime: Operation create time.
  4824  	CreateTime string `json:"createTime,omitempty"`
  4825  	// UpdateTime: Operation last update time. If the operation is done, this is
  4826  	// also the finish time.
  4827  	UpdateTime string `json:"updateTime,omitempty"`
  4828  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4829  	// unconditionally include in API requests. By default, fields with empty or
  4830  	// default values are omitted from API requests. See
  4831  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4832  	// details.
  4833  	ForceSendFields []string `json:"-"`
  4834  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4835  	// requests with the JSON null value. By default, fields with empty values are
  4836  	// omitted from API requests. See
  4837  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4838  	NullFields []string `json:"-"`
  4839  }
  4840  
  4841  func (s *GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
  4842  	type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata
  4843  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4844  }
  4845  
  4846  // GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata: Metadata related to
  4847  // the progress of the EngineService.DeleteEngine operation. This will be
  4848  // returned by the google.longrunning.Operation.metadata field.
  4849  type GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata struct {
  4850  	// CreateTime: Operation create time.
  4851  	CreateTime string `json:"createTime,omitempty"`
  4852  	// UpdateTime: Operation last update time. If the operation is done, this is
  4853  	// also the finish time.
  4854  	UpdateTime string `json:"updateTime,omitempty"`
  4855  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4856  	// unconditionally include in API requests. By default, fields with empty or
  4857  	// default values are omitted from API requests. See
  4858  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4859  	// details.
  4860  	ForceSendFields []string `json:"-"`
  4861  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4862  	// requests with the JSON null value. By default, fields with empty values are
  4863  	// omitted from API requests. See
  4864  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4865  	NullFields []string `json:"-"`
  4866  }
  4867  
  4868  func (s *GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata) MarshalJSON() ([]byte, error) {
  4869  	type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata
  4870  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4871  }
  4872  
  4873  // GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata: Metadata for
  4874  // DeleteSchema LRO.
  4875  type GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata struct {
  4876  	// CreateTime: Operation create time.
  4877  	CreateTime string `json:"createTime,omitempty"`
  4878  	// UpdateTime: Operation last update time. If the operation is done, this is
  4879  	// also the finish time.
  4880  	UpdateTime string `json:"updateTime,omitempty"`
  4881  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4882  	// unconditionally include in API requests. By default, fields with empty or
  4883  	// default values are omitted from API requests. See
  4884  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4885  	// details.
  4886  	ForceSendFields []string `json:"-"`
  4887  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4888  	// requests with the JSON null value. By default, fields with empty values are
  4889  	// omitted from API requests. See
  4890  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4891  	NullFields []string `json:"-"`
  4892  }
  4893  
  4894  func (s *GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
  4895  	type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata
  4896  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4897  }
  4898  
  4899  // GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata: Metadata related
  4900  // to the progress of the SiteSearchEngineService.DeleteTargetSite operation.
  4901  // This will be returned by the google.longrunning.Operation.metadata field.
  4902  type GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata struct {
  4903  	// CreateTime: Operation create time.
  4904  	CreateTime string `json:"createTime,omitempty"`
  4905  	// UpdateTime: Operation last update time. If the operation is done, this is
  4906  	// also the finish time.
  4907  	UpdateTime string `json:"updateTime,omitempty"`
  4908  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4909  	// unconditionally include in API requests. By default, fields with empty or
  4910  	// default values are omitted from API requests. See
  4911  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4912  	// details.
  4913  	ForceSendFields []string `json:"-"`
  4914  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4915  	// requests with the JSON null value. By default, fields with empty values are
  4916  	// omitted from API requests. See
  4917  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4918  	NullFields []string `json:"-"`
  4919  }
  4920  
  4921  func (s *GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  4922  	type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata
  4923  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4924  }
  4925  
  4926  // GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata: Metadata
  4927  // related to the progress of the
  4928  // SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be
  4929  // returned by the google.longrunning.Operation.metadata field.
  4930  type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata struct {
  4931  	// CreateTime: Operation create time.
  4932  	CreateTime string `json:"createTime,omitempty"`
  4933  	// UpdateTime: Operation last update time. If the operation is done, this is
  4934  	// also the finish time.
  4935  	UpdateTime string `json:"updateTime,omitempty"`
  4936  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4937  	// unconditionally include in API requests. By default, fields with empty or
  4938  	// default values are omitted from API requests. See
  4939  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4940  	// details.
  4941  	ForceSendFields []string `json:"-"`
  4942  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4943  	// requests with the JSON null value. By default, fields with empty values are
  4944  	// omitted from API requests. See
  4945  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4946  	NullFields []string `json:"-"`
  4947  }
  4948  
  4949  func (s *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  4950  	type NoMethod GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata
  4951  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4952  }
  4953  
  4954  // GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchRequest: Request
  4955  // message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
  4956  type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchRequest struct {
  4957  }
  4958  
  4959  // GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchResponse: Response
  4960  // message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
  4961  type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchResponse struct {
  4962  }
  4963  
  4964  // GoogleCloudDiscoveryengineV1alphaDocument: Document captures all raw
  4965  // metadata information of items to be recommended or searched.
  4966  type GoogleCloudDiscoveryengineV1alphaDocument struct {
  4967  	// AclInfo: Access control information for the document.
  4968  	AclInfo *GoogleCloudDiscoveryengineV1alphaDocumentAclInfo `json:"aclInfo,omitempty"`
  4969  	// Content: The unstructured data linked to this document. Content must be set
  4970  	// if this document is under a `CONTENT_REQUIRED` data store.
  4971  	Content *GoogleCloudDiscoveryengineV1alphaDocumentContent `json:"content,omitempty"`
  4972  	// DerivedStructData: Output only. This field is OUTPUT_ONLY. It contains
  4973  	// derived data that are not in the original input document.
  4974  	DerivedStructData googleapi.RawMessage `json:"derivedStructData,omitempty"`
  4975  	// Id: Immutable. The identifier of the document. Id should conform to RFC-1034
  4976  	// (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
  4977  	// characters.
  4978  	Id string `json:"id,omitempty"`
  4979  	// IndexTime: Output only. The last time the document was indexed. If this
  4980  	// field is set, the document could be returned in search results. This field
  4981  	// is OUTPUT_ONLY. If this field is not populated, it means the document has
  4982  	// never been indexed.
  4983  	IndexTime string `json:"indexTime,omitempty"`
  4984  	// JsonData: The JSON string representation of the document. It should conform
  4985  	// to the registered Schema or an `INVALID_ARGUMENT` error is thrown.
  4986  	JsonData string `json:"jsonData,omitempty"`
  4987  	// Name: Immutable. The full resource name of the document. Format:
  4988  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  4989  	// {data_store}/branches/{branch}/documents/{document_id}`. This field must be
  4990  	// a UTF-8 encoded string with a length limit of 1024 characters.
  4991  	Name string `json:"name,omitempty"`
  4992  	// ParentDocumentId: The identifier of the parent document. Currently supports
  4993  	// at most two level document hierarchy. Id should conform to RFC-1034
  4994  	// (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
  4995  	// characters.
  4996  	ParentDocumentId string `json:"parentDocumentId,omitempty"`
  4997  	// SchemaId: The identifier of the schema located in the same data store.
  4998  	SchemaId string `json:"schemaId,omitempty"`
  4999  	// StructData: The structured JSON data for the document. It should conform to
  5000  	// the registered Schema or an `INVALID_ARGUMENT` error is thrown.
  5001  	StructData googleapi.RawMessage `json:"structData,omitempty"`
  5002  
  5003  	// ServerResponse contains the HTTP response code and headers from the server.
  5004  	googleapi.ServerResponse `json:"-"`
  5005  	// ForceSendFields is a list of field names (e.g. "AclInfo") to unconditionally
  5006  	// include in API requests. By default, fields with empty or default values are
  5007  	// omitted from API requests. See
  5008  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5009  	// details.
  5010  	ForceSendFields []string `json:"-"`
  5011  	// NullFields is a list of field names (e.g. "AclInfo") to include in API
  5012  	// requests with the JSON null value. By default, fields with empty values are
  5013  	// omitted from API requests. See
  5014  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5015  	NullFields []string `json:"-"`
  5016  }
  5017  
  5018  func (s *GoogleCloudDiscoveryengineV1alphaDocument) MarshalJSON() ([]byte, error) {
  5019  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocument
  5020  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5021  }
  5022  
  5023  // GoogleCloudDiscoveryengineV1alphaDocumentAclInfo: ACL Information of the
  5024  // Document.
  5025  type GoogleCloudDiscoveryengineV1alphaDocumentAclInfo struct {
  5026  	// Readers: Readers of the document.
  5027  	Readers []*GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction `json:"readers,omitempty"`
  5028  	// ForceSendFields is a list of field names (e.g. "Readers") to unconditionally
  5029  	// include in API requests. By default, fields with empty or default values are
  5030  	// omitted from API requests. See
  5031  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5032  	// details.
  5033  	ForceSendFields []string `json:"-"`
  5034  	// NullFields is a list of field names (e.g. "Readers") to include in API
  5035  	// requests with the JSON null value. By default, fields with empty values are
  5036  	// omitted from API requests. See
  5037  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5038  	NullFields []string `json:"-"`
  5039  }
  5040  
  5041  func (s *GoogleCloudDiscoveryengineV1alphaDocumentAclInfo) MarshalJSON() ([]byte, error) {
  5042  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentAclInfo
  5043  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5044  }
  5045  
  5046  // GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction:
  5047  // AclRestriction to model complex inheritance restrictions. Example: Modeling
  5048  // a "Both Permit" inheritance, where to access a child document, user needs to
  5049  // have access to parent document. Document Hierarchy - Space_S --> Page_P.
  5050  // Readers: Space_S: group_1, user_1 Page_P: group_2, group_3, user_2 Space_S
  5051  // ACL Restriction - { "acl_info": { "readers": [ { "principals": [ {
  5052  // "group_id": "group_1" }, { "user_id": "user_1" } ] } ] } } Page_P ACL
  5053  // Restriction. { "acl_info": { "readers": [ { "principals": [ { "group_id":
  5054  // "group_2" }, { "group_id": "group_3" }, { "user_id": "user_2" } ], }, {
  5055  // "principals": [ { "group_id": "group_1" }, { "user_id": "user_1" } ], } ] }
  5056  // }
  5057  type GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction struct {
  5058  	// Principals: List of principals.
  5059  	Principals []*GoogleCloudDiscoveryengineV1alphaPrincipal `json:"principals,omitempty"`
  5060  	// ForceSendFields is a list of field names (e.g. "Principals") to
  5061  	// unconditionally include in API requests. By default, fields with empty or
  5062  	// default values are omitted from API requests. See
  5063  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5064  	// details.
  5065  	ForceSendFields []string `json:"-"`
  5066  	// NullFields is a list of field names (e.g. "Principals") to include in API
  5067  	// requests with the JSON null value. By default, fields with empty values are
  5068  	// omitted from API requests. See
  5069  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5070  	NullFields []string `json:"-"`
  5071  }
  5072  
  5073  func (s *GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction) MarshalJSON() ([]byte, error) {
  5074  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction
  5075  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5076  }
  5077  
  5078  // GoogleCloudDiscoveryengineV1alphaDocumentContent: Unstructured data linked
  5079  // to this document.
  5080  type GoogleCloudDiscoveryengineV1alphaDocumentContent struct {
  5081  	// MimeType: The MIME type of the content. Supported types: * `application/pdf`
  5082  	// (PDF, only native PDFs are supported for now) * `text/html` (HTML) *
  5083  	// `application/vnd.openxmlformats-officedocument.wordprocessingml.document`
  5084  	// (DOCX) *
  5085  	// `application/vnd.openxmlformats-officedocument.presentationml.presentation`
  5086  	// (PPTX) * `text/plain` (TXT) See
  5087  	// https://www.iana.org/assignments/media-types/media-types.xhtml.
  5088  	MimeType string `json:"mimeType,omitempty"`
  5089  	// RawBytes: The content represented as a stream of bytes. The maximum length
  5090  	// is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all `bytes` fields,
  5091  	// this field is represented as pure binary in Protocol Buffers and
  5092  	// base64-encoded string in JSON. For example, `abc123!?$*&()'-=@~` should be
  5093  	// represented as `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
  5094  	// https://developers.google.com/protocol-buffers/docs/proto3#json.
  5095  	RawBytes string `json:"rawBytes,omitempty"`
  5096  	// Uri: The URI of the content. Only Cloud Storage URIs (e.g.
  5097  	// `gs://bucket-name/path/to/file`) are supported. The maximum file size is 2.5
  5098  	// MB for text-based formats, 100 MB for other formats.
  5099  	Uri string `json:"uri,omitempty"`
  5100  	// ForceSendFields is a list of field names (e.g. "MimeType") to
  5101  	// unconditionally include in API requests. By default, fields with empty or
  5102  	// default values are omitted from API requests. See
  5103  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5104  	// details.
  5105  	ForceSendFields []string `json:"-"`
  5106  	// NullFields is a list of field names (e.g. "MimeType") to include in API
  5107  	// requests with the JSON null value. By default, fields with empty values are
  5108  	// omitted from API requests. See
  5109  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5110  	NullFields []string `json:"-"`
  5111  }
  5112  
  5113  func (s *GoogleCloudDiscoveryengineV1alphaDocumentContent) MarshalJSON() ([]byte, error) {
  5114  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentContent
  5115  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5116  }
  5117  
  5118  // GoogleCloudDiscoveryengineV1alphaDocumentInfo: Detailed document information
  5119  // associated with a user event.
  5120  type GoogleCloudDiscoveryengineV1alphaDocumentInfo struct {
  5121  	// Id: The Document resource ID.
  5122  	Id string `json:"id,omitempty"`
  5123  	// Name: The Document resource full name, of the form:
  5124  	// `projects/{project_id}/locations/{location}/collections/{collection_id}/dataS
  5125  	// tores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
  5126  	Name string `json:"name,omitempty"`
  5127  	// PromotionIds: The promotion IDs associated with this Document. Currently,
  5128  	// this field is restricted to at most one ID.
  5129  	PromotionIds []string `json:"promotionIds,omitempty"`
  5130  	// Quantity: Quantity of the Document associated with the user event. Defaults
  5131  	// to 1. For example, this field will be 2 if two quantities of the same
  5132  	// Document are involved in a `add-to-cart` event. Required for events of the
  5133  	// following event types: * `add-to-cart` * `purchase`
  5134  	Quantity int64 `json:"quantity,omitempty"`
  5135  	// Uri: The Document URI - only allowed for website data stores.
  5136  	Uri string `json:"uri,omitempty"`
  5137  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  5138  	// include in API requests. By default, fields with empty or default values are
  5139  	// omitted from API requests. See
  5140  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5141  	// details.
  5142  	ForceSendFields []string `json:"-"`
  5143  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  5144  	// with the JSON null value. By default, fields with empty values are omitted
  5145  	// from API requests. See
  5146  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5147  	NullFields []string `json:"-"`
  5148  }
  5149  
  5150  func (s *GoogleCloudDiscoveryengineV1alphaDocumentInfo) MarshalJSON() ([]byte, error) {
  5151  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentInfo
  5152  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5153  }
  5154  
  5155  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig: A singleton
  5156  // resource of DataStore. It's empty when DataStore is created, which defaults
  5157  // to digital parser. The first call to
  5158  // DataStoreService.UpdateDocumentProcessingConfig method will initialize the
  5159  // config.
  5160  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig struct {
  5161  	// ChunkingConfig: Whether chunking mode is enabled.
  5162  	ChunkingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig `json:"chunkingConfig,omitempty"`
  5163  	// DefaultParsingConfig: Configurations for default Document parser. If not
  5164  	// specified, we will configure it as default DigitalParsingConfig, and the
  5165  	// default parsing config will be applied to all file types for Document
  5166  	// parsing.
  5167  	DefaultParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
  5168  	// Name: The full resource name of the Document Processing Config. Format:
  5169  	// `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
  5170  	Name string `json:"name,omitempty"`
  5171  	// ParsingConfigOverrides: Map from file type to override the default parsing
  5172  	// configuration based on the file type. Supported keys: * `pdf`: Override
  5173  	// parsing config for PDF files, either digital parsing, ocr parsing or layout
  5174  	// parsing is supported. * `html`: Override parsing config for HTML files, only
  5175  	// digital parsing and or layout parsing are supported. * `docx`: Override
  5176  	// parsing config for DOCX files, only digital parsing and or layout parsing
  5177  	// are supported.
  5178  	ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
  5179  
  5180  	// ServerResponse contains the HTTP response code and headers from the server.
  5181  	googleapi.ServerResponse `json:"-"`
  5182  	// ForceSendFields is a list of field names (e.g. "ChunkingConfig") to
  5183  	// unconditionally include in API requests. By default, fields with empty or
  5184  	// default values are omitted from API requests. See
  5185  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5186  	// details.
  5187  	ForceSendFields []string `json:"-"`
  5188  	// NullFields is a list of field names (e.g. "ChunkingConfig") to include in
  5189  	// API requests with the JSON null value. By default, fields with empty values
  5190  	// are omitted from API requests. See
  5191  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5192  	NullFields []string `json:"-"`
  5193  }
  5194  
  5195  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig) MarshalJSON() ([]byte, error) {
  5196  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
  5197  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5198  }
  5199  
  5200  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig:
  5201  // Configuration for chunking config.
  5202  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig struct {
  5203  	// LayoutBasedChunkingConfig: Configuration for the layout based chunking.
  5204  	LayoutBasedChunkingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig `json:"layoutBasedChunkingConfig,omitempty"`
  5205  	// ForceSendFields is a list of field names (e.g. "LayoutBasedChunkingConfig")
  5206  	// to unconditionally include in API requests. By default, fields with empty or
  5207  	// default values are omitted from API requests. See
  5208  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5209  	// details.
  5210  	ForceSendFields []string `json:"-"`
  5211  	// NullFields is a list of field names (e.g. "LayoutBasedChunkingConfig") to
  5212  	// include in API requests with the JSON null value. By default, fields with
  5213  	// empty values are omitted from API requests. See
  5214  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5215  	NullFields []string `json:"-"`
  5216  }
  5217  
  5218  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig) MarshalJSON() ([]byte, error) {
  5219  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig
  5220  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5221  }
  5222  
  5223  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayout
  5224  // BasedChunkingConfig: Configuration for the layout based chunking.
  5225  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig struct {
  5226  	// ChunkSize: The token size limit for each chunk. Supported values: 100-500
  5227  	// (inclusive). Default value: 500.
  5228  	ChunkSize int64 `json:"chunkSize,omitempty"`
  5229  	// IncludeAncestorHeadings: Whether to include appending different levels of
  5230  	// headings to chunks from the middle of the document to prevent context loss.
  5231  	// Default value: False.
  5232  	IncludeAncestorHeadings bool `json:"includeAncestorHeadings,omitempty"`
  5233  	// ForceSendFields is a list of field names (e.g. "ChunkSize") to
  5234  	// unconditionally include in API requests. By default, fields with empty or
  5235  	// default values are omitted from API requests. See
  5236  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5237  	// details.
  5238  	ForceSendFields []string `json:"-"`
  5239  	// NullFields is a list of field names (e.g. "ChunkSize") to include in API
  5240  	// requests with the JSON null value. By default, fields with empty values are
  5241  	// omitted from API requests. See
  5242  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5243  	NullFields []string `json:"-"`
  5244  }
  5245  
  5246  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig) MarshalJSON() ([]byte, error) {
  5247  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
  5248  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5249  }
  5250  
  5251  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig:
  5252  // Related configurations applied to a specific type of document parser.
  5253  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig struct {
  5254  	// DigitalParsingConfig: Configurations applied to digital parser.
  5255  	DigitalParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
  5256  	// LayoutParsingConfig: Configurations applied to layout parser.
  5257  	LayoutParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig `json:"layoutParsingConfig,omitempty"`
  5258  	// OcrParsingConfig: Configurations applied to OCR parser. Currently it only
  5259  	// applies to PDFs.
  5260  	OcrParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
  5261  	// ForceSendFields is a list of field names (e.g. "DigitalParsingConfig") 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. "DigitalParsingConfig") to include
  5268  	// in API requests with the JSON null value. By default, fields with empty
  5269  	// values are 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 *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
  5275  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
  5276  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5277  }
  5278  
  5279  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigital
  5280  // ParsingConfig: The digital parsing configurations for documents.
  5281  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
  5282  }
  5283  
  5284  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutP
  5285  // arsingConfig: The layout parsing configurations for documents.
  5286  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig struct {
  5287  }
  5288  
  5289  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrPars
  5290  // ingConfig: The OCR parsing configurations for documents.
  5291  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig struct {
  5292  	// EnhancedDocumentElements: [DEPRECATED] This field is deprecated. To use the
  5293  	// additional enhanced document elements processing, please switch to
  5294  	// `layout_parsing_config`.
  5295  	EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
  5296  	// UseNativeText: If true, will use native text instead of OCR text on pages
  5297  	// containing native text.
  5298  	UseNativeText bool `json:"useNativeText,omitempty"`
  5299  	// ForceSendFields is a list of field names (e.g. "EnhancedDocumentElements")
  5300  	// to unconditionally include in API requests. By default, fields with empty or
  5301  	// default values are omitted from API requests. See
  5302  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5303  	// details.
  5304  	ForceSendFields []string `json:"-"`
  5305  	// NullFields is a list of field names (e.g. "EnhancedDocumentElements") to
  5306  	// include in API requests with the JSON null value. By default, fields with
  5307  	// empty values are omitted from API requests. See
  5308  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5309  	NullFields []string `json:"-"`
  5310  }
  5311  
  5312  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
  5313  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig
  5314  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5315  }
  5316  
  5317  // GoogleCloudDiscoveryengineV1alphaDoubleList: Double list.
  5318  type GoogleCloudDiscoveryengineV1alphaDoubleList struct {
  5319  	// Values: Double values.
  5320  	Values []float64 `json:"values,omitempty"`
  5321  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  5322  	// include in API requests. By default, fields with empty or default values are
  5323  	// omitted from API requests. See
  5324  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5325  	// details.
  5326  	ForceSendFields []string `json:"-"`
  5327  	// NullFields is a list of field names (e.g. "Values") to include in API
  5328  	// requests with the JSON null value. By default, fields with empty values are
  5329  	// omitted from API requests. See
  5330  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5331  	NullFields []string `json:"-"`
  5332  }
  5333  
  5334  func (s *GoogleCloudDiscoveryengineV1alphaDoubleList) MarshalJSON() ([]byte, error) {
  5335  	type NoMethod GoogleCloudDiscoveryengineV1alphaDoubleList
  5336  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5337  }
  5338  
  5339  func (s *GoogleCloudDiscoveryengineV1alphaDoubleList) UnmarshalJSON(data []byte) error {
  5340  	type NoMethod GoogleCloudDiscoveryengineV1alphaDoubleList
  5341  	var s1 struct {
  5342  		Values []gensupport.JSONFloat64 `json:"values"`
  5343  		*NoMethod
  5344  	}
  5345  	s1.NoMethod = (*NoMethod)(s)
  5346  	if err := json.Unmarshal(data, &s1); err != nil {
  5347  		return err
  5348  	}
  5349  	s.Values = make([]float64, len(s1.Values))
  5350  	for i := range s1.Values {
  5351  		s.Values[i] = float64(s1.Values[i])
  5352  	}
  5353  	return nil
  5354  }
  5355  
  5356  // GoogleCloudDiscoveryengineV1alphaEmbeddingConfig: Defines embedding config,
  5357  // used for bring your own embeddings feature.
  5358  type GoogleCloudDiscoveryengineV1alphaEmbeddingConfig struct {
  5359  	// FieldPath: Full field path in the schema mapped as embedding field.
  5360  	FieldPath string `json:"fieldPath,omitempty"`
  5361  	// ForceSendFields is a list of field names (e.g. "FieldPath") to
  5362  	// unconditionally include in API requests. By default, fields with empty or
  5363  	// default values are omitted from API requests. See
  5364  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5365  	// details.
  5366  	ForceSendFields []string `json:"-"`
  5367  	// NullFields is a list of field names (e.g. "FieldPath") to include in API
  5368  	// requests with the JSON null value. By default, fields with empty values are
  5369  	// omitted from API requests. See
  5370  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5371  	NullFields []string `json:"-"`
  5372  }
  5373  
  5374  func (s *GoogleCloudDiscoveryengineV1alphaEmbeddingConfig) MarshalJSON() ([]byte, error) {
  5375  	type NoMethod GoogleCloudDiscoveryengineV1alphaEmbeddingConfig
  5376  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5377  }
  5378  
  5379  // GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata: Metadata
  5380  // related to the progress of the
  5381  // SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be
  5382  // returned by the google.longrunning.Operation.metadata field.
  5383  type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata struct {
  5384  	// CreateTime: Operation create time.
  5385  	CreateTime string `json:"createTime,omitempty"`
  5386  	// UpdateTime: Operation last update time. If the operation is done, this is
  5387  	// also the finish time.
  5388  	UpdateTime string `json:"updateTime,omitempty"`
  5389  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5390  	// unconditionally include in API requests. By default, fields with empty or
  5391  	// default values are omitted from API requests. See
  5392  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5393  	// details.
  5394  	ForceSendFields []string `json:"-"`
  5395  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5396  	// requests with the JSON null value. By default, fields with empty values are
  5397  	// omitted from API requests. See
  5398  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5399  	NullFields []string `json:"-"`
  5400  }
  5401  
  5402  func (s *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  5403  	type NoMethod GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata
  5404  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5405  }
  5406  
  5407  // GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchRequest: Request
  5408  // message for SiteSearchEngineService.EnableAdvancedSiteSearch method.
  5409  type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchRequest struct {
  5410  }
  5411  
  5412  // GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse: Response
  5413  // message for SiteSearchEngineService.EnableAdvancedSiteSearch method.
  5414  type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse struct {
  5415  }
  5416  
  5417  // GoogleCloudDiscoveryengineV1alphaEngine: Metadata that describes the
  5418  // training and serving parameters of an Engine.
  5419  type GoogleCloudDiscoveryengineV1alphaEngine struct {
  5420  	// ChatEngineConfig: Configurations for the Chat Engine. Only applicable if
  5421  	// solution_type is SOLUTION_TYPE_CHAT.
  5422  	ChatEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
  5423  	// ChatEngineMetadata: Output only. Additional information of the Chat Engine.
  5424  	// Only applicable if solution_type is SOLUTION_TYPE_CHAT.
  5425  	ChatEngineMetadata *GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
  5426  	// CommonConfig: Common config spec that specifies the metadata of the engine.
  5427  	CommonConfig *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig `json:"commonConfig,omitempty"`
  5428  	// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
  5429  	CreateTime string `json:"createTime,omitempty"`
  5430  	// DataStoreIds: The data stores associated with this engine. For
  5431  	// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
  5432  	// can only associate with at most one data store. If solution_type is
  5433  	// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
  5434  	// associated here. Note that when used in CreateEngineRequest, one DataStore
  5435  	// id must be provided as the system will use it for necessary initializations.
  5436  	DataStoreIds []string `json:"dataStoreIds,omitempty"`
  5437  	// DisplayName: Required. The display name of the engine. Should be human
  5438  	// readable. UTF-8 encoded string with limit of 1024 characters.
  5439  	DisplayName string `json:"displayName,omitempty"`
  5440  	// IndustryVertical: The industry vertical that the engine registers. The
  5441  	// restriction of the Engine industry vertical is based on DataStore: If
  5442  	// unspecified, default to `GENERIC`. Vertical on Engine has to match vertical
  5443  	// of the DataStore liniked to the engine.
  5444  	//
  5445  	// Possible values:
  5446  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  5447  	//   "GENERIC" - The generic vertical for documents that are not specific to
  5448  	// any industry vertical.
  5449  	//   "MEDIA" - The media industry vertical.
  5450  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  5451  	IndustryVertical string `json:"industryVertical,omitempty"`
  5452  	// MediaRecommendationEngineConfig: Configurations for the Media Engine. Only
  5453  	// applicable on the data stores with solution_type
  5454  	// SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
  5455  	MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
  5456  	// Name: Immutable. The fully qualified resource name of the engine. This field
  5457  	// must be a UTF-8 encoded string with a length limit of 1024 characters.
  5458  	// Format:
  5459  	// `projects/{project_number}/locations/{location}/collections/{collection}/engi
  5460  	// nes/{engine}` engine should be 1-63 characters, and valid characters are
  5461  	// /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
  5462  	Name string `json:"name,omitempty"`
  5463  	// RecommendationMetadata: Output only. Additional information of a
  5464  	// recommendation engine. Only applicable if solution_type is
  5465  	// SOLUTION_TYPE_RECOMMENDATION.
  5466  	RecommendationMetadata *GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata `json:"recommendationMetadata,omitempty"`
  5467  	// SearchEngineConfig: Configurations for the Search Engine. Only applicable if
  5468  	// solution_type is SOLUTION_TYPE_SEARCH.
  5469  	SearchEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
  5470  	// SimilarDocumentsConfig: Additional config specs for a `similar-items`
  5471  	// engine.
  5472  	SimilarDocumentsConfig *GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig `json:"similarDocumentsConfig,omitempty"`
  5473  	// SolutionType: Required. The solutions of the engine.
  5474  	//
  5475  	// Possible values:
  5476  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  5477  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  5478  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  5479  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  5480  	// agent.
  5481  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  5482  	// Generative Chat agent. It's used for Generative chat engine only, the
  5483  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  5484  	SolutionType string `json:"solutionType,omitempty"`
  5485  	// UpdateTime: Output only. Timestamp the Recommendation Engine was last
  5486  	// updated.
  5487  	UpdateTime string `json:"updateTime,omitempty"`
  5488  
  5489  	// ServerResponse contains the HTTP response code and headers from the server.
  5490  	googleapi.ServerResponse `json:"-"`
  5491  	// ForceSendFields is a list of field names (e.g. "ChatEngineConfig") to
  5492  	// unconditionally include in API requests. By default, fields with empty or
  5493  	// default values are omitted from API requests. See
  5494  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5495  	// details.
  5496  	ForceSendFields []string `json:"-"`
  5497  	// NullFields is a list of field names (e.g. "ChatEngineConfig") to include in
  5498  	// API requests with the JSON null value. By default, fields with empty values
  5499  	// are omitted from API requests. See
  5500  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5501  	NullFields []string `json:"-"`
  5502  }
  5503  
  5504  func (s *GoogleCloudDiscoveryengineV1alphaEngine) MarshalJSON() ([]byte, error) {
  5505  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngine
  5506  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5507  }
  5508  
  5509  // GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig: Configurations for
  5510  // a Chat Engine.
  5511  type GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig struct {
  5512  	// AgentCreationConfig: The configurationt generate the Dialogflow agent that
  5513  	// is associated to this Engine. Note that these configurations are one-time
  5514  	// consumed by and passed to Dialogflow service. It means they cannot be
  5515  	// retrieved using EngineService.GetEngine or EngineService.ListEngines API
  5516  	// after engine creation.
  5517  	AgentCreationConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
  5518  	// DialogflowAgentToLink: The resource name of an exist Dialogflow agent to
  5519  	// link to this Chat Engine. Customers can either provide
  5520  	// `agent_creation_config` to create agent or provide an agent name that links
  5521  	// the agent with the Chat engine. Format: `projects//locations//agents/`. Note
  5522  	// that the `dialogflow_agent_to_link` are one-time consumed by and passed to
  5523  	// Dialogflow service. It means they cannot be retrieved using
  5524  	// EngineService.GetEngine or EngineService.ListEngines API after engine
  5525  	// creation. Use ChatEngineMetadata.dialogflow_agent for actual agent
  5526  	// association after Engine is created.
  5527  	DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
  5528  	// ForceSendFields is a list of field names (e.g. "AgentCreationConfig") to
  5529  	// unconditionally include in API requests. By default, fields with empty or
  5530  	// default values are omitted from API requests. See
  5531  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5532  	// details.
  5533  	ForceSendFields []string `json:"-"`
  5534  	// NullFields is a list of field names (e.g. "AgentCreationConfig") to include
  5535  	// in API requests with the JSON null value. By default, fields with empty
  5536  	// values are omitted from API requests. See
  5537  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5538  	NullFields []string `json:"-"`
  5539  }
  5540  
  5541  func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig) MarshalJSON() ([]byte, error) {
  5542  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig
  5543  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5544  }
  5545  
  5546  // GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig:
  5547  // Configurations for generating a Dialogflow agent. Note that these
  5548  // configurations are one-time consumed by and passed to Dialogflow service. It
  5549  // means they cannot be retrieved using EngineService.GetEngine or
  5550  // EngineService.ListEngines API after engine creation.
  5551  type GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig struct {
  5552  	// Business: Name of the company, organization or other entity that the agent
  5553  	// represents. Used for knowledge connector LLM prompt and for knowledge
  5554  	// search.
  5555  	Business string `json:"business,omitempty"`
  5556  	// DefaultLanguageCode: Required. The default language of the agent as a
  5557  	// language tag. See Language Support
  5558  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
  5559  	// the currently supported language codes.
  5560  	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
  5561  	// Location: Agent location for Agent creation, supported values: global/us/eu.
  5562  	// If not provided, us Engine will create Agent using us-central-1 by default;
  5563  	// eu Engine will create Agent using eu-west-1 by default.
  5564  	Location string `json:"location,omitempty"`
  5565  	// TimeZone: Required. The time zone of the agent from the time zone database
  5566  	// (https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
  5567  	TimeZone string `json:"timeZone,omitempty"`
  5568  	// ForceSendFields is a list of field names (e.g. "Business") to
  5569  	// unconditionally include in API requests. By default, fields with empty or
  5570  	// default values are omitted from API requests. See
  5571  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5572  	// details.
  5573  	ForceSendFields []string `json:"-"`
  5574  	// NullFields is a list of field names (e.g. "Business") to include in API
  5575  	// requests with the JSON null value. By default, fields with empty values are
  5576  	// omitted from API requests. See
  5577  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5578  	NullFields []string `json:"-"`
  5579  }
  5580  
  5581  func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
  5582  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig
  5583  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5584  }
  5585  
  5586  // GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata: Additional
  5587  // information of a Chat Engine. Fields in this message are output only.
  5588  type GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata struct {
  5589  	// DialogflowAgent: The resource name of a Dialogflow agent, that this Chat
  5590  	// Engine refers to. Format: `projects//locations//agents/`.
  5591  	DialogflowAgent string `json:"dialogflowAgent,omitempty"`
  5592  	// ForceSendFields is a list of field names (e.g. "DialogflowAgent") to
  5593  	// unconditionally include in API requests. By default, fields with empty or
  5594  	// default values are omitted from API requests. See
  5595  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5596  	// details.
  5597  	ForceSendFields []string `json:"-"`
  5598  	// NullFields is a list of field names (e.g. "DialogflowAgent") to include in
  5599  	// API requests with the JSON null value. By default, fields with empty values
  5600  	// are omitted from API requests. See
  5601  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5602  	NullFields []string `json:"-"`
  5603  }
  5604  
  5605  func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
  5606  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata
  5607  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5608  }
  5609  
  5610  // GoogleCloudDiscoveryengineV1alphaEngineCommonConfig: Common configurations
  5611  // for an Engine.
  5612  type GoogleCloudDiscoveryengineV1alphaEngineCommonConfig struct {
  5613  	// CompanyName: Immutable. The name of the company, business or entity that is
  5614  	// associated with the engine. Setting this may help improve LLM related
  5615  	// features.
  5616  	CompanyName string `json:"companyName,omitempty"`
  5617  	// ForceSendFields is a list of field names (e.g. "CompanyName") to
  5618  	// unconditionally include in API requests. By default, fields with empty or
  5619  	// default values are omitted from API requests. See
  5620  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5621  	// details.
  5622  	ForceSendFields []string `json:"-"`
  5623  	// NullFields is a list of field names (e.g. "CompanyName") to include in API
  5624  	// requests with the JSON null value. By default, fields with empty values are
  5625  	// omitted from API requests. See
  5626  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5627  	NullFields []string `json:"-"`
  5628  }
  5629  
  5630  func (s *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig) MarshalJSON() ([]byte, error) {
  5631  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineCommonConfig
  5632  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5633  }
  5634  
  5635  // GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig:
  5636  // Additional config specs for a Media Recommendation engine.
  5637  type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig struct {
  5638  	// OptimizationObjective: The optimization objective. e.g., `cvr`. This field
  5639  	// together with optimization_objective describe engine metadata to use to
  5640  	// control engine training and serving. Currently supported values: `ctr`,
  5641  	// `cvr`. If not specified, we choose default based on engine type. Default
  5642  	// depends on type of recommendation: `recommended-for-you` => `ctr`
  5643  	// `others-you-may-like` => `ctr`
  5644  	OptimizationObjective string `json:"optimizationObjective,omitempty"`
  5645  	// OptimizationObjectiveConfig: Name and value of the custom threshold for cvr
  5646  	// optimization_objective. For target_field `watch-time`, target_field_value
  5647  	// must be an integer value indicating the media progress time in seconds
  5648  	// between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field
  5649  	// `watch-percentage`, the target_field_value must be a valid float value
  5650  	// between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5).
  5651  	OptimizationObjectiveConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig `json:"optimizationObjectiveConfig,omitempty"`
  5652  	// TrainingState: The training state that the engine is in (e.g. `TRAINING` or
  5653  	// `PAUSED`). Since part of the cost of running the service is frequency of
  5654  	// training - this can be used to determine when to train engine in order to
  5655  	// control cost. If not specified: the default value for `CreateEngine` method
  5656  	// is `TRAINING`. The default value for `UpdateEngine` method is to keep the
  5657  	// state the same as before.
  5658  	//
  5659  	// Possible values:
  5660  	//   "TRAINING_STATE_UNSPECIFIED" - Unspecified training state.
  5661  	//   "PAUSED" - The engine training is paused.
  5662  	//   "TRAINING" - The engine is training.
  5663  	TrainingState string `json:"trainingState,omitempty"`
  5664  	// Type: Required. The type of engine. e.g., `recommended-for-you`. This field
  5665  	// together with optimization_objective describe engine metadata to use to
  5666  	// control engine training and serving. Currently supported values:
  5667  	// `recommended-for-you`, `others-you-may-like`, `more-like-this`,
  5668  	// `most-popular-items`.
  5669  	Type string `json:"type,omitempty"`
  5670  	// ForceSendFields is a list of field names (e.g. "OptimizationObjective") to
  5671  	// unconditionally include in API requests. By default, fields with empty or
  5672  	// default values are omitted from API requests. See
  5673  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5674  	// details.
  5675  	ForceSendFields []string `json:"-"`
  5676  	// NullFields is a list of field names (e.g. "OptimizationObjective") to
  5677  	// include in API requests with the JSON null value. By default, fields with
  5678  	// empty values are omitted from API requests. See
  5679  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5680  	NullFields []string `json:"-"`
  5681  }
  5682  
  5683  func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig) MarshalJSON() ([]byte, error) {
  5684  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig
  5685  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5686  }
  5687  
  5688  // GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimiz
  5689  // ationObjectiveConfig: Custom threshold for `cvr` optimization_objective.
  5690  type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct {
  5691  	// TargetField: Required. The name of the field to target. Currently supported
  5692  	// values: `watch-percentage`, `watch-time`.
  5693  	TargetField string `json:"targetField,omitempty"`
  5694  	// TargetFieldValueFloat: Required. The threshold to be applied to the target
  5695  	// (e.g., 0.5).
  5696  	TargetFieldValueFloat float64 `json:"targetFieldValueFloat,omitempty"`
  5697  	// ForceSendFields is a list of field names (e.g. "TargetField") to
  5698  	// unconditionally include in API requests. By default, fields with empty or
  5699  	// default values are omitted from API requests. See
  5700  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5701  	// details.
  5702  	ForceSendFields []string `json:"-"`
  5703  	// NullFields is a list of field names (e.g. "TargetField") to include in API
  5704  	// requests with the JSON null value. By default, fields with empty values are
  5705  	// omitted from API requests. See
  5706  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5707  	NullFields []string `json:"-"`
  5708  }
  5709  
  5710  func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) MarshalJSON() ([]byte, error) {
  5711  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
  5712  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5713  }
  5714  
  5715  func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) UnmarshalJSON(data []byte) error {
  5716  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
  5717  	var s1 struct {
  5718  		TargetFieldValueFloat gensupport.JSONFloat64 `json:"targetFieldValueFloat"`
  5719  		*NoMethod
  5720  	}
  5721  	s1.NoMethod = (*NoMethod)(s)
  5722  	if err := json.Unmarshal(data, &s1); err != nil {
  5723  		return err
  5724  	}
  5725  	s.TargetFieldValueFloat = float64(s1.TargetFieldValueFloat)
  5726  	return nil
  5727  }
  5728  
  5729  // GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata: Additional
  5730  // information of a recommendation engine.
  5731  type GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata struct {
  5732  	// DataState: Output only. The state of data requirements for this engine:
  5733  	// `DATA_OK` and `DATA_ERROR`. Engine cannot be trained if the data is in
  5734  	// `DATA_ERROR` state. Engine can have `DATA_ERROR` state even if serving state
  5735  	// is `ACTIVE`: engines were trained successfully before, but cannot be
  5736  	// refreshed because the underlying engine no longer has sufficient data for
  5737  	// training.
  5738  	//
  5739  	// Possible values:
  5740  	//   "DATA_STATE_UNSPECIFIED" - Unspecified default value, should never be
  5741  	// explicitly set.
  5742  	//   "DATA_OK" - The engine has sufficient training data.
  5743  	//   "DATA_ERROR" - The engine does not have sufficient training data. Error
  5744  	// messages can be queried via Stackdriver.
  5745  	DataState string `json:"dataState,omitempty"`
  5746  	// LastTuneTime: Output only. The timestamp when the latest successful tune
  5747  	// finished. Only applicable on Media Recommendation engines.
  5748  	LastTuneTime string `json:"lastTuneTime,omitempty"`
  5749  	// ServingState: Output only. The serving state of the engine: `ACTIVE`,
  5750  	// `NOT_ACTIVE`.
  5751  	//
  5752  	// Possible values:
  5753  	//   "SERVING_STATE_UNSPECIFIED" - Unspecified serving state.
  5754  	//   "INACTIVE" - The engine is not serving.
  5755  	//   "ACTIVE" - The engine is serving and can be queried.
  5756  	//   "TUNED" - The engine is trained on tuned hyperparameters and can be
  5757  	// queried.
  5758  	ServingState string `json:"servingState,omitempty"`
  5759  	// TuningOperation: Output only. The latest tune operation id associated with
  5760  	// the engine. Only applicable on Media Recommendation engines. If present,
  5761  	// this operation id can be used to determine if there is an ongoing tune for
  5762  	// this engine. To check the operation status, send the GetOperation request
  5763  	// with this operation id in the engine resource format. If no tuning has
  5764  	// happened for this engine, the string is empty.
  5765  	TuningOperation string `json:"tuningOperation,omitempty"`
  5766  	// ForceSendFields is a list of field names (e.g. "DataState") to
  5767  	// unconditionally include in API requests. By default, fields with empty or
  5768  	// default values are omitted from API requests. See
  5769  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5770  	// details.
  5771  	ForceSendFields []string `json:"-"`
  5772  	// NullFields is a list of field names (e.g. "DataState") to include in API
  5773  	// requests with the JSON null value. By default, fields with empty values are
  5774  	// omitted from API requests. See
  5775  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5776  	NullFields []string `json:"-"`
  5777  }
  5778  
  5779  func (s *GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata) MarshalJSON() ([]byte, error) {
  5780  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata
  5781  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5782  }
  5783  
  5784  // GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig: Configurations
  5785  // for a Search Engine.
  5786  type GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig struct {
  5787  	// SearchAddOns: The add-on that this search engine enables.
  5788  	//
  5789  	// Possible values:
  5790  	//   "SEARCH_ADD_ON_UNSPECIFIED" - Default value when the enum is unspecified.
  5791  	// This is invalid to use.
  5792  	//   "SEARCH_ADD_ON_LLM" - Large language model add-on.
  5793  	SearchAddOns []string `json:"searchAddOns,omitempty"`
  5794  	// SearchTier: The search feature tier of this engine. Different tiers might
  5795  	// have different pricing. To learn more, check the pricing documentation.
  5796  	// Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.
  5797  	//
  5798  	// Possible values:
  5799  	//   "SEARCH_TIER_UNSPECIFIED" - Default value when the enum is unspecified.
  5800  	// This is invalid to use.
  5801  	//   "SEARCH_TIER_STANDARD" - Standard tier.
  5802  	//   "SEARCH_TIER_ENTERPRISE" - Enterprise tier.
  5803  	SearchTier string `json:"searchTier,omitempty"`
  5804  	// ForceSendFields is a list of field names (e.g. "SearchAddOns") to
  5805  	// unconditionally include in API requests. By default, fields with empty or
  5806  	// default values are omitted from API requests. See
  5807  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5808  	// details.
  5809  	ForceSendFields []string `json:"-"`
  5810  	// NullFields is a list of field names (e.g. "SearchAddOns") to include in API
  5811  	// requests with the JSON null value. By default, fields with empty values are
  5812  	// omitted from API requests. See
  5813  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5814  	NullFields []string `json:"-"`
  5815  }
  5816  
  5817  func (s *GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
  5818  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig
  5819  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5820  }
  5821  
  5822  // GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig:
  5823  // Additional config specs for a `similar-items` engine.
  5824  type GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig struct {
  5825  }
  5826  
  5827  // GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata: Metadata related
  5828  // to the progress of the EstimateDataSize operation. This is returned by the
  5829  // google.longrunning.Operation.metadata field.
  5830  type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata struct {
  5831  	// CreateTime: Operation create time.
  5832  	CreateTime string `json:"createTime,omitempty"`
  5833  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5834  	// unconditionally include in API requests. By default, fields with empty or
  5835  	// default values are omitted from API requests. See
  5836  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5837  	// details.
  5838  	ForceSendFields []string `json:"-"`
  5839  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5840  	// requests with the JSON null value. By default, fields with empty values are
  5841  	// omitted from API requests. See
  5842  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5843  	NullFields []string `json:"-"`
  5844  }
  5845  
  5846  func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata) MarshalJSON() ([]byte, error) {
  5847  	type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata
  5848  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5849  }
  5850  
  5851  // GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest: Request message
  5852  // for EstimateBillingService.EstimateDataSize method
  5853  type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest struct {
  5854  	// FileDataSource: Structured or unstructured data.
  5855  	FileDataSource *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource `json:"fileDataSource,omitempty"`
  5856  	// WebsiteDataSource: Website data.
  5857  	WebsiteDataSource *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource `json:"websiteDataSource,omitempty"`
  5858  	// ForceSendFields is a list of field names (e.g. "FileDataSource") to
  5859  	// unconditionally include in API requests. By default, fields with empty or
  5860  	// default values are omitted from API requests. See
  5861  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5862  	// details.
  5863  	ForceSendFields []string `json:"-"`
  5864  	// NullFields is a list of field names (e.g. "FileDataSource") to include in
  5865  	// API requests with the JSON null value. By default, fields with empty values
  5866  	// are omitted from API requests. See
  5867  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5868  	NullFields []string `json:"-"`
  5869  }
  5870  
  5871  func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest) MarshalJSON() ([]byte, error) {
  5872  	type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest
  5873  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5874  }
  5875  
  5876  // GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource: Data
  5877  // source contains files either in Cloud Storage or BigQuery.
  5878  type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource struct {
  5879  	// BigquerySource: BigQuery input source.
  5880  	BigquerySource *GoogleCloudDiscoveryengineV1alphaBigQuerySource `json:"bigquerySource,omitempty"`
  5881  	// GcsSource: Cloud Storage location for the input content.
  5882  	GcsSource *GoogleCloudDiscoveryengineV1alphaGcsSource `json:"gcsSource,omitempty"`
  5883  	// ForceSendFields is a list of field names (e.g. "BigquerySource") to
  5884  	// unconditionally include in API requests. By default, fields with empty or
  5885  	// default values are omitted from API requests. See
  5886  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5887  	// details.
  5888  	ForceSendFields []string `json:"-"`
  5889  	// NullFields is a list of field names (e.g. "BigquerySource") to include in
  5890  	// API requests with the JSON null value. By default, fields with empty values
  5891  	// are omitted from API requests. See
  5892  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5893  	NullFields []string `json:"-"`
  5894  }
  5895  
  5896  func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource) MarshalJSON() ([]byte, error) {
  5897  	type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource
  5898  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5899  }
  5900  
  5901  // GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource:
  5902  // Data source is a set of website patterns that we crawl to get the total
  5903  // number of websites.
  5904  type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource struct {
  5905  	// EstimatorUriPatterns: Required. The URI patterns to estimate the data sizes.
  5906  	// At most 10 patterns are allowed, otherwise an INVALID_ARGUMENT error is
  5907  	// thrown.
  5908  	EstimatorUriPatterns []*GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern `json:"estimatorUriPatterns,omitempty"`
  5909  	// ForceSendFields is a list of field names (e.g. "EstimatorUriPatterns") to
  5910  	// unconditionally include in API requests. By default, fields with empty or
  5911  	// default values are omitted from API requests. See
  5912  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5913  	// details.
  5914  	ForceSendFields []string `json:"-"`
  5915  	// NullFields is a list of field names (e.g. "EstimatorUriPatterns") to include
  5916  	// in API requests with the JSON null value. By default, fields with empty
  5917  	// values are omitted from API requests. See
  5918  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5919  	NullFields []string `json:"-"`
  5920  }
  5921  
  5922  func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource) MarshalJSON() ([]byte, error) {
  5923  	type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource
  5924  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5925  }
  5926  
  5927  // GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEsti
  5928  // matorUriPattern: URI patterns that we use to crawl.
  5929  type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern struct {
  5930  	// ExactMatch: Whether we infer the generated URI or use the exact provided
  5931  	// one.
  5932  	ExactMatch bool `json:"exactMatch,omitempty"`
  5933  	// Exclusive: Whether the pattern is exclusive or not. If set to true, the
  5934  	// pattern is considered exclusive. If unset or set to false, the pattern is
  5935  	// considered inclusive by default.
  5936  	Exclusive bool `json:"exclusive,omitempty"`
  5937  	// ProvidedUriPattern: User provided URI pattern. For example, `foo.com/bar/*`.
  5938  	ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
  5939  	// ForceSendFields is a list of field names (e.g. "ExactMatch") to
  5940  	// unconditionally include in API requests. By default, fields with empty or
  5941  	// default values are omitted from API requests. See
  5942  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5943  	// details.
  5944  	ForceSendFields []string `json:"-"`
  5945  	// NullFields is a list of field names (e.g. "ExactMatch") to include in API
  5946  	// requests with the JSON null value. By default, fields with empty values are
  5947  	// omitted from API requests. See
  5948  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5949  	NullFields []string `json:"-"`
  5950  }
  5951  
  5952  func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern) MarshalJSON() ([]byte, error) {
  5953  	type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern
  5954  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5955  }
  5956  
  5957  // GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse: Response of the
  5958  // EstimateDataSize request. If the long running operation was successful, then
  5959  // this message is returned by the google.longrunning.Operations.response field
  5960  // if the operation was successful.
  5961  type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse struct {
  5962  	// DataSizeBytes: Data size in terms of bytes.
  5963  	DataSizeBytes int64 `json:"dataSizeBytes,omitempty,string"`
  5964  	// DocumentCount: Total number of documents.
  5965  	DocumentCount int64 `json:"documentCount,omitempty,string"`
  5966  	// ForceSendFields is a list of field names (e.g. "DataSizeBytes") to
  5967  	// unconditionally include in API requests. By default, fields with empty or
  5968  	// default values are omitted from API requests. See
  5969  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5970  	// details.
  5971  	ForceSendFields []string `json:"-"`
  5972  	// NullFields is a list of field names (e.g. "DataSizeBytes") to include in API
  5973  	// requests with the JSON null value. By default, fields with empty values are
  5974  	// omitted from API requests. See
  5975  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5976  	NullFields []string `json:"-"`
  5977  }
  5978  
  5979  func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse) MarshalJSON() ([]byte, error) {
  5980  	type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse
  5981  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5982  }
  5983  
  5984  // GoogleCloudDiscoveryengineV1alphaFactChunk: Fact Chunk.
  5985  type GoogleCloudDiscoveryengineV1alphaFactChunk struct {
  5986  	// ChunkText: Text content of the fact chunk. Can be at most 10K characters
  5987  	// long.
  5988  	ChunkText string `json:"chunkText,omitempty"`
  5989  	// Index: The index of this chunk. Currently, only used for the streaming mode.
  5990  	Index int64 `json:"index,omitempty"`
  5991  	// Source: Source from which this fact chunk was retrieved. If it was retrieved
  5992  	// from the GroundingFacts provided in the request then this field will contain
  5993  	// the index of the specific fact from which this chunk was retrieved.
  5994  	Source string `json:"source,omitempty"`
  5995  	// SourceMetadata: More fine-grained information for the source reference.
  5996  	SourceMetadata map[string]string `json:"sourceMetadata,omitempty"`
  5997  	// ForceSendFields is a list of field names (e.g. "ChunkText") to
  5998  	// unconditionally include in API requests. By default, fields with empty or
  5999  	// default values are omitted from API requests. See
  6000  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6001  	// details.
  6002  	ForceSendFields []string `json:"-"`
  6003  	// NullFields is a list of field names (e.g. "ChunkText") to include in API
  6004  	// requests with the JSON null value. By default, fields with empty values are
  6005  	// omitted from API requests. See
  6006  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6007  	NullFields []string `json:"-"`
  6008  }
  6009  
  6010  func (s *GoogleCloudDiscoveryengineV1alphaFactChunk) MarshalJSON() ([]byte, error) {
  6011  	type NoMethod GoogleCloudDiscoveryengineV1alphaFactChunk
  6012  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6013  }
  6014  
  6015  // GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse:
  6016  // Response message for SiteSearchEngineService.FetchDomainVerificationStatus
  6017  // method.
  6018  type GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse struct {
  6019  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  6020  	// page. If this field is omitted, there are no subsequent pages.
  6021  	NextPageToken string `json:"nextPageToken,omitempty"`
  6022  	// TargetSites: List of TargetSites containing the site verification status.
  6023  	TargetSites []*GoogleCloudDiscoveryengineV1alphaTargetSite `json:"targetSites,omitempty"`
  6024  	// TotalSize: The total number of items matching the request. This will always
  6025  	// be populated in the response.
  6026  	TotalSize int64 `json:"totalSize,omitempty"`
  6027  
  6028  	// ServerResponse contains the HTTP response code and headers from the server.
  6029  	googleapi.ServerResponse `json:"-"`
  6030  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  6031  	// unconditionally include in API requests. By default, fields with empty or
  6032  	// default values are omitted from API requests. See
  6033  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6034  	// details.
  6035  	ForceSendFields []string `json:"-"`
  6036  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  6037  	// requests with the JSON null value. By default, fields with empty values are
  6038  	// omitted from API requests. See
  6039  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6040  	NullFields []string `json:"-"`
  6041  }
  6042  
  6043  func (s *GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse) MarshalJSON() ([]byte, error) {
  6044  	type NoMethod GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse
  6045  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6046  }
  6047  
  6048  // GoogleCloudDiscoveryengineV1alphaFhirStoreSource: Cloud FhirStore source
  6049  // import data from.
  6050  type GoogleCloudDiscoveryengineV1alphaFhirStoreSource struct {
  6051  	// FhirStore: Required. The full resource name of the FHIR store to import data
  6052  	// from, in the format of
  6053  	// `projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_
  6054  	// store}`.
  6055  	FhirStore string `json:"fhirStore,omitempty"`
  6056  	// GcsStagingDir: Intermediate Cloud Storage directory used for the import with
  6057  	// a length limit of 2,000 characters. Can be specified if one wants to have
  6058  	// the FhirStore export to a specific Cloud Storage directory.
  6059  	GcsStagingDir string `json:"gcsStagingDir,omitempty"`
  6060  	// ForceSendFields is a list of field names (e.g. "FhirStore") to
  6061  	// unconditionally include in API requests. By default, fields with empty or
  6062  	// default values are omitted from API requests. See
  6063  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6064  	// details.
  6065  	ForceSendFields []string `json:"-"`
  6066  	// NullFields is a list of field names (e.g. "FhirStore") to include in API
  6067  	// requests with the JSON null value. By default, fields with empty values are
  6068  	// omitted from API requests. See
  6069  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6070  	NullFields []string `json:"-"`
  6071  }
  6072  
  6073  func (s *GoogleCloudDiscoveryengineV1alphaFhirStoreSource) MarshalJSON() ([]byte, error) {
  6074  	type NoMethod GoogleCloudDiscoveryengineV1alphaFhirStoreSource
  6075  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6076  }
  6077  
  6078  // GoogleCloudDiscoveryengineV1alphaFieldConfig: Configurations for fields of a
  6079  // schema. For example, configuring a field is indexable, or searchable.
  6080  type GoogleCloudDiscoveryengineV1alphaFieldConfig struct {
  6081  	// AdvancedSiteSearchDataSources: If this field is set, only the corresponding
  6082  	// source will be indexed for this field. Otherwise, the values from different
  6083  	// sources are merged. Assuming a page with `` in meta tag, and `` in page map:
  6084  	// if this enum is set to METATAGS, we will only index ``; if this enum is not
  6085  	// set, we will merge them and index ``.
  6086  	//
  6087  	// Possible values:
  6088  	//   "ADVANCED_SITE_SEARCH_DATA_SOURCE_UNSPECIFIED" - Value used when unset.
  6089  	//   "METATAGS" - Retrieve value from meta tag.
  6090  	//   "PAGEMAP" - Retrieve value from page map.
  6091  	AdvancedSiteSearchDataSources []string `json:"advancedSiteSearchDataSources,omitempty"`
  6092  	// CompletableOption: If completable_option is COMPLETABLE_ENABLED, field
  6093  	// values are directly used and returned as suggestions for Autocomplete in
  6094  	// CompletionService.CompleteQuery. If completable_option is unset, the server
  6095  	// behavior defaults to COMPLETABLE_DISABLED for fields that support setting
  6096  	// completable options, which are just `string` fields. For those fields that
  6097  	// do not support setting completable options, the server will skip completable
  6098  	// option setting, and setting completable_option for those fields will throw
  6099  	// `INVALID_ARGUMENT` error.
  6100  	//
  6101  	// Possible values:
  6102  	//   "COMPLETABLE_OPTION_UNSPECIFIED" - Value used when unset.
  6103  	//   "COMPLETABLE_ENABLED" - Completable option enabled for a schema field.
  6104  	//   "COMPLETABLE_DISABLED" - Completable option disabled for a schema field.
  6105  	CompletableOption string `json:"completableOption,omitempty"`
  6106  	// DynamicFacetableOption: If dynamic_facetable_option is
  6107  	// DYNAMIC_FACETABLE_ENABLED, field values are available for dynamic facet.
  6108  	// Could only be DYNAMIC_FACETABLE_DISABLED if FieldConfig.indexable_option is
  6109  	// INDEXABLE_DISABLED. Otherwise, an `INVALID_ARGUMENT` error will be returned.
  6110  	// If dynamic_facetable_option is unset, the server behavior defaults to
  6111  	// DYNAMIC_FACETABLE_DISABLED for fields that support setting dynamic facetable
  6112  	// options. For those fields that do not support setting dynamic facetable
  6113  	// options, such as `object` and `boolean`, the server will skip dynamic
  6114  	// facetable option setting, and setting dynamic_facetable_option for those
  6115  	// fields will throw `INVALID_ARGUMENT` error.
  6116  	//
  6117  	// Possible values:
  6118  	//   "DYNAMIC_FACETABLE_OPTION_UNSPECIFIED" - Value used when unset.
  6119  	//   "DYNAMIC_FACETABLE_ENABLED" - Dynamic facetable option enabled for a
  6120  	// schema field.
  6121  	//   "DYNAMIC_FACETABLE_DISABLED" - Dynamic facetable option disabled for a
  6122  	// schema field.
  6123  	DynamicFacetableOption string `json:"dynamicFacetableOption,omitempty"`
  6124  	// FieldPath: Required. Field path of the schema field. For example: `title`,
  6125  	// `description`, `release_info.release_year`.
  6126  	FieldPath string `json:"fieldPath,omitempty"`
  6127  	// FieldType: Output only. Raw type of the field.
  6128  	//
  6129  	// Possible values:
  6130  	//   "FIELD_TYPE_UNSPECIFIED" - Field type is unspecified.
  6131  	//   "OBJECT" - Field value type is Object.
  6132  	//   "STRING" - Field value type is String.
  6133  	//   "NUMBER" - Field value type is Number.
  6134  	//   "INTEGER" - Field value type is Integer.
  6135  	//   "BOOLEAN" - Field value type is Boolean.
  6136  	//   "GEOLOCATION" - Field value type is Geolocation. Geolocation is expressed
  6137  	// as an object with the following keys: * `id`: a string representing the
  6138  	// location id * `longitude`: a number representing the longitude coordinate of
  6139  	// the location * `latitude`: a number repesenting the latitude coordinate of
  6140  	// the location * `address`: a string representing the full address of the
  6141  	// location `latitude` and `longitude` must always be provided together. At
  6142  	// least one of a) `address` or b) `latitude`-`longitude` pair must be
  6143  	// provided.
  6144  	//   "DATETIME" - Field value type is Datetime. Datetime can be expressed as
  6145  	// either: * a number representing milliseconds-since-the-epoch * a string
  6146  	// representing milliseconds-since-the-epoch. e.g. "1420070400001" * a string
  6147  	// representing the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date or
  6148  	// date and time. e.g. "2015-01-01" or "2015-01-01T12:10:30Z"
  6149  	FieldType string `json:"fieldType,omitempty"`
  6150  	// IndexableOption: If indexable_option is INDEXABLE_ENABLED, field values are
  6151  	// indexed so that it can be filtered or faceted in SearchService.Search. If
  6152  	// indexable_option is unset, the server behavior defaults to
  6153  	// INDEXABLE_DISABLED for fields that support setting indexable options. For
  6154  	// those fields that do not support setting indexable options, such as `object`
  6155  	// and `boolean` and key properties, the server will skip indexable_option
  6156  	// setting, and setting indexable_option for those fields will throw
  6157  	// `INVALID_ARGUMENT` error.
  6158  	//
  6159  	// Possible values:
  6160  	//   "INDEXABLE_OPTION_UNSPECIFIED" - Value used when unset.
  6161  	//   "INDEXABLE_ENABLED" - Indexable option enabled for a schema field.
  6162  	//   "INDEXABLE_DISABLED" - Indexable option disabled for a schema field.
  6163  	IndexableOption string `json:"indexableOption,omitempty"`
  6164  	// KeyPropertyType: Output only. Type of the key property that this field is
  6165  	// mapped to. Empty string if this is not annotated as mapped to a key
  6166  	// property. Example types are `title`, `description`. Full list is defined by
  6167  	// `keyPropertyMapping` in the schema field annotation. If the schema field has
  6168  	// a `KeyPropertyMapping` annotation, `indexable_option` and
  6169  	// `searchable_option` of this field cannot be modified.
  6170  	KeyPropertyType string `json:"keyPropertyType,omitempty"`
  6171  	// RecsFilterableOption: If recs_filterable_option is FILTERABLE_ENABLED, field
  6172  	// values are filterable by filter expression in
  6173  	// RecommendationService.Recommend. If FILTERABLE_ENABLED but the field type is
  6174  	// numerical, field values are not filterable by text queries in
  6175  	// RecommendationService.Recommend. Only textual fields are supported. If
  6176  	// recs_filterable_option is unset, the default setting is FILTERABLE_DISABLED
  6177  	// for fields that support setting filterable options. When a field set to
  6178  	// [FILTERABLE_DISABLED] is filtered, a warning is generated and an empty
  6179  	// result is returned.
  6180  	//
  6181  	// Possible values:
  6182  	//   "FILTERABLE_OPTION_UNSPECIFIED" - Value used when unset.
  6183  	//   "FILTERABLE_ENABLED" - Filterable option enabled for a schema field.
  6184  	//   "FILTERABLE_DISABLED" - Filterable option disabled for a schema field.
  6185  	RecsFilterableOption string `json:"recsFilterableOption,omitempty"`
  6186  	// RetrievableOption: If retrievable_option is RETRIEVABLE_ENABLED, field
  6187  	// values are included in the search results. If retrievable_option is unset,
  6188  	// the server behavior defaults to RETRIEVABLE_DISABLED for fields that support
  6189  	// setting retrievable options. For those fields that do not support setting
  6190  	// retrievable options, such as `object` and `boolean`, the server will skip
  6191  	// retrievable option setting, and setting retrievable_option for those fields
  6192  	// will throw `INVALID_ARGUMENT` error.
  6193  	//
  6194  	// Possible values:
  6195  	//   "RETRIEVABLE_OPTION_UNSPECIFIED" - Value used when unset.
  6196  	//   "RETRIEVABLE_ENABLED" - Retrievable option enabled for a schema field.
  6197  	//   "RETRIEVABLE_DISABLED" - Retrievable option disabled for a schema field.
  6198  	RetrievableOption string `json:"retrievableOption,omitempty"`
  6199  	// SearchableOption: If searchable_option is SEARCHABLE_ENABLED, field values
  6200  	// are searchable by text queries in SearchService.Search. If
  6201  	// SEARCHABLE_ENABLED but field type is numerical, field values will not be
  6202  	// searchable by text queries in SearchService.Search, as there are no text
  6203  	// values associated to numerical fields. If searchable_option is unset, the
  6204  	// server behavior defaults to SEARCHABLE_DISABLED for fields that support
  6205  	// setting searchable options. Only `string` fields that have no key property
  6206  	// mapping support setting searchable_option. For those fields that do not
  6207  	// support setting searchable options, the server will skip searchable option
  6208  	// setting, and setting searchable_option for those fields will throw
  6209  	// `INVALID_ARGUMENT` error.
  6210  	//
  6211  	// Possible values:
  6212  	//   "SEARCHABLE_OPTION_UNSPECIFIED" - Value used when unset.
  6213  	//   "SEARCHABLE_ENABLED" - Searchable option enabled for a schema field.
  6214  	//   "SEARCHABLE_DISABLED" - Searchable option disabled for a schema field.
  6215  	SearchableOption string `json:"searchableOption,omitempty"`
  6216  	// ForceSendFields is a list of field names (e.g.
  6217  	// "AdvancedSiteSearchDataSources") to unconditionally include in API requests.
  6218  	// By default, fields with empty or default values are omitted from API
  6219  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  6220  	// for more details.
  6221  	ForceSendFields []string `json:"-"`
  6222  	// NullFields is a list of field names (e.g. "AdvancedSiteSearchDataSources")
  6223  	// to include in API requests with the JSON null value. By default, fields with
  6224  	// empty values are omitted from API requests. See
  6225  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6226  	NullFields []string `json:"-"`
  6227  }
  6228  
  6229  func (s *GoogleCloudDiscoveryengineV1alphaFieldConfig) MarshalJSON() ([]byte, error) {
  6230  	type NoMethod GoogleCloudDiscoveryengineV1alphaFieldConfig
  6231  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6232  }
  6233  
  6234  // GoogleCloudDiscoveryengineV1alphaFirestoreSource: Firestore source import
  6235  // data from.
  6236  type GoogleCloudDiscoveryengineV1alphaFirestoreSource struct {
  6237  	// CollectionId: Required. The Firestore collection to copy the data from with
  6238  	// a length limit of 1,500 characters.
  6239  	CollectionId string `json:"collectionId,omitempty"`
  6240  	// DatabaseId: Required. The Firestore database to copy the data from with a
  6241  	// length limit of 256 characters.
  6242  	DatabaseId string `json:"databaseId,omitempty"`
  6243  	// GcsStagingDir: Intermediate Cloud Storage directory used for the import with
  6244  	// a length limit of 2,000 characters. Can be specified if one wants to have
  6245  	// the Firestore export to a specific Cloud Storage directory. Ensure that the
  6246  	// Firestore service account has the necessary Cloud Storage Admin permissions
  6247  	// to access the specified Cloud Storage directory.
  6248  	GcsStagingDir string `json:"gcsStagingDir,omitempty"`
  6249  	// ProjectId: The project ID that the Cloud SQL source is in with a length
  6250  	// limit of 128 characters. If not specified, inherits the project ID from the
  6251  	// parent request.
  6252  	ProjectId string `json:"projectId,omitempty"`
  6253  	// ForceSendFields is a list of field names (e.g. "CollectionId") to
  6254  	// unconditionally include in API requests. By default, fields with empty or
  6255  	// default values are omitted from API requests. See
  6256  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6257  	// details.
  6258  	ForceSendFields []string `json:"-"`
  6259  	// NullFields is a list of field names (e.g. "CollectionId") to include in API
  6260  	// requests with the JSON null value. By default, fields with empty values are
  6261  	// omitted from API requests. See
  6262  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6263  	NullFields []string `json:"-"`
  6264  }
  6265  
  6266  func (s *GoogleCloudDiscoveryengineV1alphaFirestoreSource) MarshalJSON() ([]byte, error) {
  6267  	type NoMethod GoogleCloudDiscoveryengineV1alphaFirestoreSource
  6268  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6269  }
  6270  
  6271  // GoogleCloudDiscoveryengineV1alphaGcsSource: Cloud Storage location for input
  6272  // content.
  6273  type GoogleCloudDiscoveryengineV1alphaGcsSource struct {
  6274  	// DataSchema: The schema to use when parsing the data from the source.
  6275  	// Supported values for document imports: * `document` (default): One JSON
  6276  	// Document per line. Each document must have a valid Document.id. * `content`:
  6277  	// Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris`
  6278  	// becomes a document, with the ID set to the first 128 bits of SHA256(URI)
  6279  	// encoded as a hex string. * `custom`: One custom data JSON per row in
  6280  	// arbitrary format that conforms to the defined Schema of the data store. This
  6281  	// can only be used by the GENERIC Data Store vertical. * `csv`: A CSV file
  6282  	// with header conforming to the defined Schema of the data store. Each entry
  6283  	// after the header is imported as a Document. This can only be used by the
  6284  	// GENERIC Data Store vertical. Supported values for user even imports: *
  6285  	// `user_event` (default): One JSON UserEvent per line.
  6286  	DataSchema string `json:"dataSchema,omitempty"`
  6287  	// InputUris: Required. Cloud Storage URIs to input files. URI can be up to
  6288  	// 2000 characters long. URIs can match the full object path (for example,
  6289  	// `gs://bucket/directory/object.json`) or a pattern matching one or more
  6290  	// files, such as `gs://bucket/directory/*.json`. A request can contain at most
  6291  	// 100 files (or 100,000 files if `data_schema` is `content`). Each file can be
  6292  	// up to 2 GB (or 100 MB if `data_schema` is `content`).
  6293  	InputUris []string `json:"inputUris,omitempty"`
  6294  	// ForceSendFields is a list of field names (e.g. "DataSchema") to
  6295  	// unconditionally include in API requests. By default, fields with empty or
  6296  	// default values are omitted from API requests. See
  6297  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6298  	// details.
  6299  	ForceSendFields []string `json:"-"`
  6300  	// NullFields is a list of field names (e.g. "DataSchema") to include in API
  6301  	// requests with the JSON null value. By default, fields with empty values are
  6302  	// omitted from API requests. See
  6303  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6304  	NullFields []string `json:"-"`
  6305  }
  6306  
  6307  func (s *GoogleCloudDiscoveryengineV1alphaGcsSource) MarshalJSON() ([]byte, error) {
  6308  	type NoMethod GoogleCloudDiscoveryengineV1alphaGcsSource
  6309  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6310  }
  6311  
  6312  // GoogleCloudDiscoveryengineV1alphaGroundingFact: Grounding Fact.
  6313  type GoogleCloudDiscoveryengineV1alphaGroundingFact struct {
  6314  	// Attributes: Attributes associated with the fact. Common attributes include
  6315  	// `source` (indicating where the fact was sourced from), `author` (indicating
  6316  	// the author of the fact), and so on.
  6317  	Attributes map[string]string `json:"attributes,omitempty"`
  6318  	// FactText: Text content of the fact. Can be at most 10K characters long.
  6319  	FactText string `json:"factText,omitempty"`
  6320  	// ForceSendFields is a list of field names (e.g. "Attributes") to
  6321  	// unconditionally include in API requests. By default, fields with empty or
  6322  	// default values are omitted from API requests. See
  6323  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6324  	// details.
  6325  	ForceSendFields []string `json:"-"`
  6326  	// NullFields is a list of field names (e.g. "Attributes") to include in API
  6327  	// requests with the JSON null value. By default, fields with empty values are
  6328  	// omitted from API requests. See
  6329  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6330  	NullFields []string `json:"-"`
  6331  }
  6332  
  6333  func (s *GoogleCloudDiscoveryengineV1alphaGroundingFact) MarshalJSON() ([]byte, error) {
  6334  	type NoMethod GoogleCloudDiscoveryengineV1alphaGroundingFact
  6335  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6336  }
  6337  
  6338  // GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec: Defines guided search
  6339  // spec.
  6340  type GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec struct {
  6341  	// EnableRefinementAttributes: Whether or not to enable and include refinement
  6342  	// attributes in gudied search result.
  6343  	EnableRefinementAttributes bool `json:"enableRefinementAttributes,omitempty"`
  6344  	// EnableRelatedQuestions: Whether or not to enable and include related
  6345  	// questions in search response.
  6346  	EnableRelatedQuestions bool `json:"enableRelatedQuestions,omitempty"`
  6347  	// MaxRelatedQuestions: Max number of related questions to be returned. The
  6348  	// valid range is [1, 5]. If enable_related_questions is true, the default
  6349  	// value is 3.
  6350  	MaxRelatedQuestions int64 `json:"maxRelatedQuestions,omitempty"`
  6351  	// ForceSendFields is a list of field names (e.g. "EnableRefinementAttributes")
  6352  	// to unconditionally include in API requests. By default, fields with empty or
  6353  	// default values are omitted from API requests. See
  6354  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6355  	// details.
  6356  	ForceSendFields []string `json:"-"`
  6357  	// NullFields is a list of field names (e.g. "EnableRefinementAttributes") to
  6358  	// include in API requests with the JSON null value. By default, fields with
  6359  	// empty values are omitted from API requests. See
  6360  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6361  	NullFields []string `json:"-"`
  6362  }
  6363  
  6364  func (s *GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec) MarshalJSON() ([]byte, error) {
  6365  	type NoMethod GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec
  6366  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6367  }
  6368  
  6369  // GoogleCloudDiscoveryengineV1alphaIdpConfig: Identity Provider Config.
  6370  type GoogleCloudDiscoveryengineV1alphaIdpConfig struct {
  6371  	// ExternalIdpConfig: External Identity provider config.
  6372  	ExternalIdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig `json:"externalIdpConfig,omitempty"`
  6373  	// IdpType: Identity provider type configured.
  6374  	//
  6375  	// Possible values:
  6376  	//   "IDP_TYPE_UNSPECIFIED" - Default value. ACL search not enabled.
  6377  	//   "GSUITE" - Google 1P provider.
  6378  	//   "THIRD_PARTY" - Third party provider.
  6379  	IdpType string `json:"idpType,omitempty"`
  6380  	// ForceSendFields is a list of field names (e.g. "ExternalIdpConfig") to
  6381  	// unconditionally include in API requests. By default, fields with empty or
  6382  	// default values are omitted from API requests. See
  6383  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6384  	// details.
  6385  	ForceSendFields []string `json:"-"`
  6386  	// NullFields is a list of field names (e.g. "ExternalIdpConfig") to include in
  6387  	// API requests with the JSON null value. By default, fields with empty values
  6388  	// are omitted from API requests. See
  6389  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6390  	NullFields []string `json:"-"`
  6391  }
  6392  
  6393  func (s *GoogleCloudDiscoveryengineV1alphaIdpConfig) MarshalJSON() ([]byte, error) {
  6394  	type NoMethod GoogleCloudDiscoveryengineV1alphaIdpConfig
  6395  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6396  }
  6397  
  6398  // GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig: Third party IDP
  6399  // Config.
  6400  type GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig struct {
  6401  	// WorkforcePoolName: Workforce pool name. Example:
  6402  	// "locations/global/workforcePools/pool_id"
  6403  	WorkforcePoolName string `json:"workforcePoolName,omitempty"`
  6404  	// ForceSendFields is a list of field names (e.g. "WorkforcePoolName") to
  6405  	// unconditionally include in API requests. By default, fields with empty or
  6406  	// default values are omitted from API requests. See
  6407  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6408  	// details.
  6409  	ForceSendFields []string `json:"-"`
  6410  	// NullFields is a list of field names (e.g. "WorkforcePoolName") to include in
  6411  	// API requests with the JSON null value. By default, fields with empty values
  6412  	// are omitted from API requests. See
  6413  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6414  	NullFields []string `json:"-"`
  6415  }
  6416  
  6417  func (s *GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig) MarshalJSON() ([]byte, error) {
  6418  	type NoMethod GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig
  6419  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6420  }
  6421  
  6422  // GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata: Metadata related
  6423  // to the progress of the ImportDocuments operation. This is returned by the
  6424  // google.longrunning.Operation.metadata field.
  6425  type GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata struct {
  6426  	// CreateTime: Operation create time.
  6427  	CreateTime string `json:"createTime,omitempty"`
  6428  	// FailureCount: Count of entries that encountered errors while processing.
  6429  	FailureCount int64 `json:"failureCount,omitempty,string"`
  6430  	// SuccessCount: Count of entries that were processed successfully.
  6431  	SuccessCount int64 `json:"successCount,omitempty,string"`
  6432  	// TotalCount: Total count of entries that were processed.
  6433  	TotalCount int64 `json:"totalCount,omitempty,string"`
  6434  	// UpdateTime: Operation last update time. If the operation is done, this is
  6435  	// also the finish time.
  6436  	UpdateTime string `json:"updateTime,omitempty"`
  6437  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6438  	// unconditionally include in API requests. By default, fields with empty or
  6439  	// default values are omitted from API requests. See
  6440  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6441  	// details.
  6442  	ForceSendFields []string `json:"-"`
  6443  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6444  	// requests with the JSON null value. By default, fields with empty values are
  6445  	// omitted from API requests. See
  6446  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6447  	NullFields []string `json:"-"`
  6448  }
  6449  
  6450  func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
  6451  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
  6452  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6453  }
  6454  
  6455  // GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest: Request message for
  6456  // Import methods.
  6457  type GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest struct {
  6458  	// AutoGenerateIds: Whether to automatically generate IDs for the documents if
  6459  	// absent. If set to `true`, Document.ids are automatically generated based on
  6460  	// the hash of the payload, where IDs may not be consistent during multiple
  6461  	// imports. In which case ReconciliationMode.FULL is highly recommended to
  6462  	// avoid duplicate contents. If unset or set to `false`, Document.ids have to
  6463  	// be specified using id_field, otherwise, documents without IDs fail to be
  6464  	// imported. Supported data sources: * GcsSource. GcsSource.data_schema must be
  6465  	// `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. *
  6466  	// BigQuerySource. BigQuerySource.data_schema must be `custom` or `csv`.
  6467  	// Otherwise, an INVALID_ARGUMENT error is thrown. * SpannerSource. *
  6468  	// CloudSqlSource. * FirestoreSource. * BigtableSource.
  6469  	AutoGenerateIds bool `json:"autoGenerateIds,omitempty"`
  6470  	// BigquerySource: BigQuery input source.
  6471  	BigquerySource *GoogleCloudDiscoveryengineV1alphaBigQuerySource `json:"bigquerySource,omitempty"`
  6472  	// BigtableSource: Cloud Bigtable input source.
  6473  	BigtableSource *GoogleCloudDiscoveryengineV1alphaBigtableSource `json:"bigtableSource,omitempty"`
  6474  	// CloudSqlSource: Cloud SQL input source.
  6475  	CloudSqlSource *GoogleCloudDiscoveryengineV1alphaCloudSqlSource `json:"cloudSqlSource,omitempty"`
  6476  	// ErrorConfig: The desired location of errors incurred during the Import.
  6477  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
  6478  	// FhirStoreSource: FhirStore input source.
  6479  	FhirStoreSource *GoogleCloudDiscoveryengineV1alphaFhirStoreSource `json:"fhirStoreSource,omitempty"`
  6480  	// FirestoreSource: Firestore input source.
  6481  	FirestoreSource *GoogleCloudDiscoveryengineV1alphaFirestoreSource `json:"firestoreSource,omitempty"`
  6482  	// GcsSource: Cloud Storage location for the input content.
  6483  	GcsSource *GoogleCloudDiscoveryengineV1alphaGcsSource `json:"gcsSource,omitempty"`
  6484  	// IdField: The field indicates the ID field or column to be used as unique IDs
  6485  	// of the documents. For GcsSource it is the key of the JSON field. For
  6486  	// instance, `my_id` for JSON `{"my_id": "some_uuid"}`. For others, it may be
  6487  	// the column name of the table where the unique ids are stored. The values of
  6488  	// the JSON field or the table column are used as the Document.ids. The JSON
  6489  	// field or the table column must be of string type, and the values must be set
  6490  	// as valid strings conform to RFC-1034 (https://tools.ietf.org/html/rfc1034)
  6491  	// with 1-63 characters. Otherwise, documents without valid IDs fail to be
  6492  	// imported. Only set this field when auto_generate_ids is unset or set as
  6493  	// `false`. Otherwise, an INVALID_ARGUMENT error is thrown. If it is unset, a
  6494  	// default value `_id` is used when importing from the allowed data sources.
  6495  	// Supported data sources: * GcsSource. GcsSource.data_schema must be `custom`
  6496  	// or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * BigQuerySource.
  6497  	// BigQuerySource.data_schema must be `custom` or `csv`. Otherwise, an
  6498  	// INVALID_ARGUMENT error is thrown. * SpannerSource. * CloudSqlSource. *
  6499  	// FirestoreSource. * BigtableSource.
  6500  	IdField string `json:"idField,omitempty"`
  6501  	// InlineSource: The Inline source for the input content for documents.
  6502  	InlineSource *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource `json:"inlineSource,omitempty"`
  6503  	// ReconciliationMode: The mode of reconciliation between existing documents
  6504  	// and the documents to be imported. Defaults to
  6505  	// ReconciliationMode.INCREMENTAL.
  6506  	//
  6507  	// Possible values:
  6508  	//   "RECONCILIATION_MODE_UNSPECIFIED" - Defaults to `INCREMENTAL`.
  6509  	//   "INCREMENTAL" - Inserts new documents or updates existing documents.
  6510  	//   "FULL" - Calculates diff and replaces the entire document dataset.
  6511  	// Existing documents may be deleted if they are not present in the source
  6512  	// location.
  6513  	ReconciliationMode string `json:"reconciliationMode,omitempty"`
  6514  	// SpannerSource: Spanner input source.
  6515  	SpannerSource *GoogleCloudDiscoveryengineV1alphaSpannerSource `json:"spannerSource,omitempty"`
  6516  	// UpdateMask: Indicates which fields in the provided imported documents to
  6517  	// update. If not set, the default is to update all fields.
  6518  	UpdateMask string `json:"updateMask,omitempty"`
  6519  	// ForceSendFields is a list of field names (e.g. "AutoGenerateIds") to
  6520  	// unconditionally include in API requests. By default, fields with empty or
  6521  	// default values are omitted from API requests. See
  6522  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6523  	// details.
  6524  	ForceSendFields []string `json:"-"`
  6525  	// NullFields is a list of field names (e.g. "AutoGenerateIds") to include in
  6526  	// API requests with the JSON null value. By default, fields with empty values
  6527  	// are omitted from API requests. See
  6528  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6529  	NullFields []string `json:"-"`
  6530  }
  6531  
  6532  func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest) MarshalJSON() ([]byte, error) {
  6533  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest
  6534  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6535  }
  6536  
  6537  // GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource: The
  6538  // inline source for the input config for ImportDocuments method.
  6539  type GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource struct {
  6540  	// Documents: Required. A list of documents to update/create. Each document
  6541  	// must have a valid Document.id. Recommended max of 100 items.
  6542  	Documents []*GoogleCloudDiscoveryengineV1alphaDocument `json:"documents,omitempty"`
  6543  	// ForceSendFields is a list of field names (e.g. "Documents") to
  6544  	// unconditionally include in API requests. By default, fields with empty or
  6545  	// default values are omitted from API requests. See
  6546  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6547  	// details.
  6548  	ForceSendFields []string `json:"-"`
  6549  	// NullFields is a list of field names (e.g. "Documents") to include in API
  6550  	// requests with the JSON null value. By default, fields with empty values are
  6551  	// omitted from API requests. See
  6552  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6553  	NullFields []string `json:"-"`
  6554  }
  6555  
  6556  func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource) MarshalJSON() ([]byte, error) {
  6557  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource
  6558  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6559  }
  6560  
  6561  // GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse: Response of the
  6562  // ImportDocumentsRequest. If the long running operation is done, then this
  6563  // message is returned by the google.longrunning.Operations.response field if
  6564  // the operation was successful.
  6565  type GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse struct {
  6566  	// ErrorConfig: Echoes the destination for the complete errors in the request
  6567  	// if set.
  6568  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
  6569  	// ErrorSamples: A sample of errors encountered while processing the request.
  6570  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  6571  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  6572  	// unconditionally include in API requests. By default, fields with empty or
  6573  	// default values are omitted from API requests. See
  6574  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6575  	// details.
  6576  	ForceSendFields []string `json:"-"`
  6577  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  6578  	// requests with the JSON null value. By default, fields with empty values are
  6579  	// omitted from API requests. See
  6580  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6581  	NullFields []string `json:"-"`
  6582  }
  6583  
  6584  func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  6585  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse
  6586  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6587  }
  6588  
  6589  // GoogleCloudDiscoveryengineV1alphaImportErrorConfig: Configuration of
  6590  // destination for Import related errors.
  6591  type GoogleCloudDiscoveryengineV1alphaImportErrorConfig struct {
  6592  	// GcsPrefix: Cloud Storage prefix for import errors. This must be an empty,
  6593  	// existing Cloud Storage directory. Import errors are written to sharded files
  6594  	// in this directory, one per line, as a JSON-encoded `google.rpc.Status`
  6595  	// message.
  6596  	GcsPrefix string `json:"gcsPrefix,omitempty"`
  6597  	// ForceSendFields is a list of field names (e.g. "GcsPrefix") to
  6598  	// unconditionally include in API requests. By default, fields with empty or
  6599  	// default values are omitted from API requests. See
  6600  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6601  	// details.
  6602  	ForceSendFields []string `json:"-"`
  6603  	// NullFields is a list of field names (e.g. "GcsPrefix") to include in API
  6604  	// requests with the JSON null value. By default, fields with empty values are
  6605  	// omitted from API requests. See
  6606  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6607  	NullFields []string `json:"-"`
  6608  }
  6609  
  6610  func (s *GoogleCloudDiscoveryengineV1alphaImportErrorConfig) MarshalJSON() ([]byte, error) {
  6611  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportErrorConfig
  6612  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6613  }
  6614  
  6615  // GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata:
  6616  // Metadata related to the progress of the ImportSuggestionDenyListEntries
  6617  // operation. This is returned by the google.longrunning.Operation.metadata
  6618  // field.
  6619  type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata struct {
  6620  	// CreateTime: Operation create time.
  6621  	CreateTime string `json:"createTime,omitempty"`
  6622  	// UpdateTime: Operation last update time. If the operation is done, this is
  6623  	// also the finish time.
  6624  	UpdateTime string `json:"updateTime,omitempty"`
  6625  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6626  	// unconditionally include in API requests. By default, fields with empty or
  6627  	// default values are omitted from API requests. See
  6628  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6629  	// details.
  6630  	ForceSendFields []string `json:"-"`
  6631  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6632  	// requests with the JSON null value. By default, fields with empty values are
  6633  	// omitted from API requests. See
  6634  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6635  	NullFields []string `json:"-"`
  6636  }
  6637  
  6638  func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  6639  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata
  6640  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6641  }
  6642  
  6643  // GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest:
  6644  // Request message for CompletionService.ImportSuggestionDenyListEntries
  6645  // method.
  6646  type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest struct {
  6647  	// GcsSource: Cloud Storage location for the input content. Only 1 file can be
  6648  	// specified that contains all entries to import. Supported values
  6649  	// `gcs_source.schema` for autocomplete suggestion deny list entry imports: *
  6650  	// `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry] per
  6651  	// line.
  6652  	GcsSource *GoogleCloudDiscoveryengineV1alphaGcsSource `json:"gcsSource,omitempty"`
  6653  	// InlineSource: The Inline source for the input content for suggestion deny
  6654  	// list entries.
  6655  	InlineSource *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequestInlineSource `json:"inlineSource,omitempty"`
  6656  	// ForceSendFields is a list of field names (e.g. "GcsSource") to
  6657  	// unconditionally include in API requests. By default, fields with empty or
  6658  	// default values are omitted from API requests. See
  6659  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6660  	// details.
  6661  	ForceSendFields []string `json:"-"`
  6662  	// NullFields is a list of field names (e.g. "GcsSource") to include in API
  6663  	// requests with the JSON null value. By default, fields with empty values are
  6664  	// omitted from API requests. See
  6665  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6666  	NullFields []string `json:"-"`
  6667  }
  6668  
  6669  func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest) MarshalJSON() ([]byte, error) {
  6670  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest
  6671  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6672  }
  6673  
  6674  // GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequestInline
  6675  // Source: The inline source for SuggestionDenyListEntry.
  6676  type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequestInlineSource struct {
  6677  	// Entries: Required. A list of all denylist entries to import. Max of 1000
  6678  	// items.
  6679  	Entries []*GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry `json:"entries,omitempty"`
  6680  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  6681  	// include in API requests. By default, fields with empty or default values are
  6682  	// omitted from API requests. See
  6683  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6684  	// details.
  6685  	ForceSendFields []string `json:"-"`
  6686  	// NullFields is a list of field names (e.g. "Entries") to include in API
  6687  	// requests with the JSON null value. By default, fields with empty values are
  6688  	// omitted from API requests. See
  6689  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6690  	NullFields []string `json:"-"`
  6691  }
  6692  
  6693  func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequestInlineSource) MarshalJSON() ([]byte, error) {
  6694  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequestInlineSource
  6695  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6696  }
  6697  
  6698  // GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse:
  6699  // Response message for CompletionService.ImportSuggestionDenyListEntries
  6700  // method.
  6701  type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse struct {
  6702  	// ErrorSamples: A sample of errors encountered while processing the request.
  6703  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  6704  	// FailedEntriesCount: Count of deny list entries that failed to be imported.
  6705  	FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
  6706  	// ImportedEntriesCount: Count of deny list entries successfully imported.
  6707  	ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
  6708  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  6709  	// unconditionally include in API requests. By default, fields with empty or
  6710  	// default values are omitted from API requests. See
  6711  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6712  	// details.
  6713  	ForceSendFields []string `json:"-"`
  6714  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  6715  	// requests with the JSON null value. By default, fields with empty values are
  6716  	// omitted from API requests. See
  6717  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6718  	NullFields []string `json:"-"`
  6719  }
  6720  
  6721  func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  6722  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse
  6723  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6724  }
  6725  
  6726  // GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata: Metadata related
  6727  // to the progress of the Import operation. This is returned by the
  6728  // google.longrunning.Operation.metadata field.
  6729  type GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata struct {
  6730  	// CreateTime: Operation create time.
  6731  	CreateTime string `json:"createTime,omitempty"`
  6732  	// FailureCount: Count of entries that encountered errors while processing.
  6733  	FailureCount int64 `json:"failureCount,omitempty,string"`
  6734  	// SuccessCount: Count of entries that were processed successfully.
  6735  	SuccessCount int64 `json:"successCount,omitempty,string"`
  6736  	// UpdateTime: Operation last update time. If the operation is done, this is
  6737  	// also the finish time.
  6738  	UpdateTime string `json:"updateTime,omitempty"`
  6739  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6740  	// unconditionally include in API requests. By default, fields with empty or
  6741  	// default values are omitted from API requests. See
  6742  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6743  	// details.
  6744  	ForceSendFields []string `json:"-"`
  6745  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6746  	// requests with the JSON null value. By default, fields with empty values are
  6747  	// omitted from API requests. See
  6748  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6749  	NullFields []string `json:"-"`
  6750  }
  6751  
  6752  func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
  6753  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata
  6754  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6755  }
  6756  
  6757  // GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest: Request message
  6758  // for the ImportUserEvents request.
  6759  type GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest struct {
  6760  	// BigquerySource: BigQuery input source.
  6761  	BigquerySource *GoogleCloudDiscoveryengineV1alphaBigQuerySource `json:"bigquerySource,omitempty"`
  6762  	// ErrorConfig: The desired location of errors incurred during the Import.
  6763  	// Cannot be set for inline user event imports.
  6764  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
  6765  	// GcsSource: Cloud Storage location for the input content.
  6766  	GcsSource *GoogleCloudDiscoveryengineV1alphaGcsSource `json:"gcsSource,omitempty"`
  6767  	// InlineSource: The Inline source for the input content for UserEvents.
  6768  	InlineSource *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource `json:"inlineSource,omitempty"`
  6769  	// ForceSendFields is a list of field names (e.g. "BigquerySource") to
  6770  	// unconditionally include in API requests. By default, fields with empty or
  6771  	// default values are omitted from API requests. See
  6772  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6773  	// details.
  6774  	ForceSendFields []string `json:"-"`
  6775  	// NullFields is a list of field names (e.g. "BigquerySource") to include in
  6776  	// API requests with the JSON null value. By default, fields with empty values
  6777  	// are omitted from API requests. See
  6778  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6779  	NullFields []string `json:"-"`
  6780  }
  6781  
  6782  func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest) MarshalJSON() ([]byte, error) {
  6783  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest
  6784  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6785  }
  6786  
  6787  // GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource: The
  6788  // inline source for the input config for ImportUserEvents method.
  6789  type GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource struct {
  6790  	// UserEvents: Required. A list of user events to import. Recommended max of
  6791  	// 10k items.
  6792  	UserEvents []*GoogleCloudDiscoveryengineV1alphaUserEvent `json:"userEvents,omitempty"`
  6793  	// ForceSendFields is a list of field names (e.g. "UserEvents") to
  6794  	// unconditionally include in API requests. By default, fields with empty or
  6795  	// default values are omitted from API requests. See
  6796  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6797  	// details.
  6798  	ForceSendFields []string `json:"-"`
  6799  	// NullFields is a list of field names (e.g. "UserEvents") to include in API
  6800  	// requests with the JSON null value. By default, fields with empty values are
  6801  	// omitted from API requests. See
  6802  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6803  	NullFields []string `json:"-"`
  6804  }
  6805  
  6806  func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource) MarshalJSON() ([]byte, error) {
  6807  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource
  6808  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6809  }
  6810  
  6811  // GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse: Response of the
  6812  // ImportUserEventsRequest. If the long running operation was successful, then
  6813  // this message is returned by the google.longrunning.Operations.response field
  6814  // if the operation was successful.
  6815  type GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse struct {
  6816  	// ErrorConfig: Echoes the destination for the complete errors if this field
  6817  	// was set in the request.
  6818  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
  6819  	// ErrorSamples: A sample of errors encountered while processing the request.
  6820  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  6821  	// JoinedEventsCount: Count of user events imported with complete existing
  6822  	// Documents.
  6823  	JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
  6824  	// UnjoinedEventsCount: Count of user events imported, but with Document
  6825  	// information not found in the existing Branch.
  6826  	UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
  6827  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  6828  	// unconditionally include in API requests. By default, fields with empty or
  6829  	// default values are omitted from API requests. See
  6830  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6831  	// details.
  6832  	ForceSendFields []string `json:"-"`
  6833  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  6834  	// requests with the JSON null value. By default, fields with empty values are
  6835  	// omitted from API requests. See
  6836  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6837  	NullFields []string `json:"-"`
  6838  }
  6839  
  6840  func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse) MarshalJSON() ([]byte, error) {
  6841  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse
  6842  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6843  }
  6844  
  6845  // GoogleCloudDiscoveryengineV1alphaInterval: A floating point interval.
  6846  type GoogleCloudDiscoveryengineV1alphaInterval struct {
  6847  	// ExclusiveMaximum: Exclusive upper bound.
  6848  	ExclusiveMaximum float64 `json:"exclusiveMaximum,omitempty"`
  6849  	// ExclusiveMinimum: Exclusive lower bound.
  6850  	ExclusiveMinimum float64 `json:"exclusiveMinimum,omitempty"`
  6851  	// Maximum: Inclusive upper bound.
  6852  	Maximum float64 `json:"maximum,omitempty"`
  6853  	// Minimum: Inclusive lower bound.
  6854  	Minimum float64 `json:"minimum,omitempty"`
  6855  	// ForceSendFields is a list of field names (e.g. "ExclusiveMaximum") to
  6856  	// unconditionally include in API requests. By default, fields with empty or
  6857  	// default values are omitted from API requests. See
  6858  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6859  	// details.
  6860  	ForceSendFields []string `json:"-"`
  6861  	// NullFields is a list of field names (e.g. "ExclusiveMaximum") to include in
  6862  	// API requests with the JSON null value. By default, fields with empty values
  6863  	// are omitted from API requests. See
  6864  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6865  	NullFields []string `json:"-"`
  6866  }
  6867  
  6868  func (s *GoogleCloudDiscoveryengineV1alphaInterval) MarshalJSON() ([]byte, error) {
  6869  	type NoMethod GoogleCloudDiscoveryengineV1alphaInterval
  6870  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6871  }
  6872  
  6873  func (s *GoogleCloudDiscoveryengineV1alphaInterval) UnmarshalJSON(data []byte) error {
  6874  	type NoMethod GoogleCloudDiscoveryengineV1alphaInterval
  6875  	var s1 struct {
  6876  		ExclusiveMaximum gensupport.JSONFloat64 `json:"exclusiveMaximum"`
  6877  		ExclusiveMinimum gensupport.JSONFloat64 `json:"exclusiveMinimum"`
  6878  		Maximum          gensupport.JSONFloat64 `json:"maximum"`
  6879  		Minimum          gensupport.JSONFloat64 `json:"minimum"`
  6880  		*NoMethod
  6881  	}
  6882  	s1.NoMethod = (*NoMethod)(s)
  6883  	if err := json.Unmarshal(data, &s1); err != nil {
  6884  		return err
  6885  	}
  6886  	s.ExclusiveMaximum = float64(s1.ExclusiveMaximum)
  6887  	s.ExclusiveMinimum = float64(s1.ExclusiveMinimum)
  6888  	s.Maximum = float64(s1.Maximum)
  6889  	s.Minimum = float64(s1.Minimum)
  6890  	return nil
  6891  }
  6892  
  6893  // GoogleCloudDiscoveryengineV1alphaListChunksResponse: Response message for
  6894  // ChunkService.ListChunks method.
  6895  type GoogleCloudDiscoveryengineV1alphaListChunksResponse struct {
  6896  	// Chunks: The Chunks.
  6897  	Chunks []*GoogleCloudDiscoveryengineV1alphaChunk `json:"chunks,omitempty"`
  6898  	// NextPageToken: A token that can be sent as ListChunksRequest.page_token to
  6899  	// retrieve the next page. If this field is omitted, there are no subsequent
  6900  	// pages.
  6901  	NextPageToken string `json:"nextPageToken,omitempty"`
  6902  
  6903  	// ServerResponse contains the HTTP response code and headers from the server.
  6904  	googleapi.ServerResponse `json:"-"`
  6905  	// ForceSendFields is a list of field names (e.g. "Chunks") to unconditionally
  6906  	// include in API requests. By default, fields with empty or default values are
  6907  	// omitted from API requests. See
  6908  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6909  	// details.
  6910  	ForceSendFields []string `json:"-"`
  6911  	// NullFields is a list of field names (e.g. "Chunks") to include in API
  6912  	// requests with the JSON null value. By default, fields with empty values are
  6913  	// omitted from API requests. See
  6914  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6915  	NullFields []string `json:"-"`
  6916  }
  6917  
  6918  func (s *GoogleCloudDiscoveryengineV1alphaListChunksResponse) MarshalJSON() ([]byte, error) {
  6919  	type NoMethod GoogleCloudDiscoveryengineV1alphaListChunksResponse
  6920  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6921  }
  6922  
  6923  // GoogleCloudDiscoveryengineV1alphaListConversationsResponse: Response for
  6924  // ListConversations method.
  6925  type GoogleCloudDiscoveryengineV1alphaListConversationsResponse struct {
  6926  	// Conversations: All the Conversations for a given data store.
  6927  	Conversations []*GoogleCloudDiscoveryengineV1alphaConversation `json:"conversations,omitempty"`
  6928  	// NextPageToken: Pagination token, if not returned indicates the last page.
  6929  	NextPageToken string `json:"nextPageToken,omitempty"`
  6930  
  6931  	// ServerResponse contains the HTTP response code and headers from the server.
  6932  	googleapi.ServerResponse `json:"-"`
  6933  	// ForceSendFields is a list of field names (e.g. "Conversations") to
  6934  	// unconditionally include in API requests. By default, fields with empty or
  6935  	// default values are omitted from API requests. See
  6936  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6937  	// details.
  6938  	ForceSendFields []string `json:"-"`
  6939  	// NullFields is a list of field names (e.g. "Conversations") to include in API
  6940  	// requests with the JSON null value. By default, fields with empty values are
  6941  	// omitted from API requests. See
  6942  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6943  	NullFields []string `json:"-"`
  6944  }
  6945  
  6946  func (s *GoogleCloudDiscoveryengineV1alphaListConversationsResponse) MarshalJSON() ([]byte, error) {
  6947  	type NoMethod GoogleCloudDiscoveryengineV1alphaListConversationsResponse
  6948  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6949  }
  6950  
  6951  // GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse: Response message
  6952  // for SearchTuningService.ListCustomModels method.
  6953  type GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse struct {
  6954  	// Models: List of custom tuning models.
  6955  	Models []*GoogleCloudDiscoveryengineV1alphaCustomTuningModel `json:"models,omitempty"`
  6956  
  6957  	// ServerResponse contains the HTTP response code and headers from the server.
  6958  	googleapi.ServerResponse `json:"-"`
  6959  	// ForceSendFields is a list of field names (e.g. "Models") to unconditionally
  6960  	// include in API requests. By default, fields with empty or default values are
  6961  	// 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. "Models") to include in API
  6966  	// requests with the JSON null value. By default, fields with empty values are
  6967  	// 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 *GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse) MarshalJSON() ([]byte, error) {
  6973  	type NoMethod GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
  6974  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6975  }
  6976  
  6977  // GoogleCloudDiscoveryengineV1alphaListDataStoresResponse: Response message
  6978  // for DataStoreService.ListDataStores method.
  6979  type GoogleCloudDiscoveryengineV1alphaListDataStoresResponse struct {
  6980  	// DataStores: All the customer's DataStores.
  6981  	DataStores []*GoogleCloudDiscoveryengineV1alphaDataStore `json:"dataStores,omitempty"`
  6982  	// NextPageToken: A token that can be sent as ListDataStoresRequest.page_token
  6983  	// to retrieve the next page. If this field is omitted, there are no subsequent
  6984  	// pages.
  6985  	NextPageToken string `json:"nextPageToken,omitempty"`
  6986  
  6987  	// ServerResponse contains the HTTP response code and headers from the server.
  6988  	googleapi.ServerResponse `json:"-"`
  6989  	// ForceSendFields is a list of field names (e.g. "DataStores") to
  6990  	// unconditionally include in API requests. By default, fields with empty or
  6991  	// default values are omitted from API requests. See
  6992  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6993  	// details.
  6994  	ForceSendFields []string `json:"-"`
  6995  	// NullFields is a list of field names (e.g. "DataStores") to include in API
  6996  	// requests with the JSON null value. By default, fields with empty values are
  6997  	// omitted from API requests. See
  6998  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6999  	NullFields []string `json:"-"`
  7000  }
  7001  
  7002  func (s *GoogleCloudDiscoveryengineV1alphaListDataStoresResponse) MarshalJSON() ([]byte, error) {
  7003  	type NoMethod GoogleCloudDiscoveryengineV1alphaListDataStoresResponse
  7004  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7005  }
  7006  
  7007  // GoogleCloudDiscoveryengineV1alphaListDocumentsResponse: Response message for
  7008  // DocumentService.ListDocuments method.
  7009  type GoogleCloudDiscoveryengineV1alphaListDocumentsResponse struct {
  7010  	// Documents: The Documents.
  7011  	Documents []*GoogleCloudDiscoveryengineV1alphaDocument `json:"documents,omitempty"`
  7012  	// NextPageToken: A token that can be sent as ListDocumentsRequest.page_token
  7013  	// to retrieve the next page. If this field is omitted, there are no subsequent
  7014  	// pages.
  7015  	NextPageToken string `json:"nextPageToken,omitempty"`
  7016  
  7017  	// ServerResponse contains the HTTP response code and headers from the server.
  7018  	googleapi.ServerResponse `json:"-"`
  7019  	// ForceSendFields is a list of field names (e.g. "Documents") to
  7020  	// unconditionally include in API requests. By default, fields with empty or
  7021  	// default values are omitted from API requests. See
  7022  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7023  	// details.
  7024  	ForceSendFields []string `json:"-"`
  7025  	// NullFields is a list of field names (e.g. "Documents") to include in API
  7026  	// requests with the JSON null value. By default, fields with empty values are
  7027  	// omitted from API requests. See
  7028  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7029  	NullFields []string `json:"-"`
  7030  }
  7031  
  7032  func (s *GoogleCloudDiscoveryengineV1alphaListDocumentsResponse) MarshalJSON() ([]byte, error) {
  7033  	type NoMethod GoogleCloudDiscoveryengineV1alphaListDocumentsResponse
  7034  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7035  }
  7036  
  7037  // GoogleCloudDiscoveryengineV1alphaListEnginesResponse: Response message for
  7038  // EngineService.ListEngines method.
  7039  type GoogleCloudDiscoveryengineV1alphaListEnginesResponse struct {
  7040  	// Engines: All the customer's Engines.
  7041  	Engines []*GoogleCloudDiscoveryengineV1alphaEngine `json:"engines,omitempty"`
  7042  	// NextPageToken: Not supported.
  7043  	NextPageToken string `json:"nextPageToken,omitempty"`
  7044  
  7045  	// ServerResponse contains the HTTP response code and headers from the server.
  7046  	googleapi.ServerResponse `json:"-"`
  7047  	// ForceSendFields is a list of field names (e.g. "Engines") to unconditionally
  7048  	// include in API requests. By default, fields with empty or default values are
  7049  	// omitted from API requests. See
  7050  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7051  	// details.
  7052  	ForceSendFields []string `json:"-"`
  7053  	// NullFields is a list of field names (e.g. "Engines") to include in API
  7054  	// requests with the JSON null value. By default, fields with empty values are
  7055  	// omitted from API requests. See
  7056  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7057  	NullFields []string `json:"-"`
  7058  }
  7059  
  7060  func (s *GoogleCloudDiscoveryengineV1alphaListEnginesResponse) MarshalJSON() ([]byte, error) {
  7061  	type NoMethod GoogleCloudDiscoveryengineV1alphaListEnginesResponse
  7062  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7063  }
  7064  
  7065  // GoogleCloudDiscoveryengineV1alphaListSchemasResponse: Response message for
  7066  // SchemaService.ListSchemas method.
  7067  type GoogleCloudDiscoveryengineV1alphaListSchemasResponse struct {
  7068  	// NextPageToken: A token that can be sent as ListSchemasRequest.page_token to
  7069  	// retrieve the next page. If this field is omitted, there are no subsequent
  7070  	// pages.
  7071  	NextPageToken string `json:"nextPageToken,omitempty"`
  7072  	// Schemas: The Schemas.
  7073  	Schemas []*GoogleCloudDiscoveryengineV1alphaSchema `json:"schemas,omitempty"`
  7074  
  7075  	// ServerResponse contains the HTTP response code and headers from the server.
  7076  	googleapi.ServerResponse `json:"-"`
  7077  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  7078  	// unconditionally include in API requests. By default, fields with empty or
  7079  	// default values are omitted from API requests. See
  7080  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7081  	// details.
  7082  	ForceSendFields []string `json:"-"`
  7083  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  7084  	// requests with the JSON null value. By default, fields with empty values are
  7085  	// omitted from API requests. See
  7086  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7087  	NullFields []string `json:"-"`
  7088  }
  7089  
  7090  func (s *GoogleCloudDiscoveryengineV1alphaListSchemasResponse) MarshalJSON() ([]byte, error) {
  7091  	type NoMethod GoogleCloudDiscoveryengineV1alphaListSchemasResponse
  7092  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7093  }
  7094  
  7095  // GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse: Response for
  7096  // ListServingConfigs method.
  7097  type GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse struct {
  7098  	// NextPageToken: Pagination token, if not returned indicates the last page.
  7099  	NextPageToken string `json:"nextPageToken,omitempty"`
  7100  	// ServingConfigs: All the ServingConfigs for a given dataStore.
  7101  	ServingConfigs []*GoogleCloudDiscoveryengineV1alphaServingConfig `json:"servingConfigs,omitempty"`
  7102  
  7103  	// ServerResponse contains the HTTP response code and headers from the server.
  7104  	googleapi.ServerResponse `json:"-"`
  7105  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  7106  	// unconditionally include in API requests. By default, fields with empty or
  7107  	// default values are omitted from API requests. See
  7108  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7109  	// details.
  7110  	ForceSendFields []string `json:"-"`
  7111  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  7112  	// requests with the JSON null value. By default, fields with empty values are
  7113  	// omitted from API requests. See
  7114  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7115  	NullFields []string `json:"-"`
  7116  }
  7117  
  7118  func (s *GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse) MarshalJSON() ([]byte, error) {
  7119  	type NoMethod GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse
  7120  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7121  }
  7122  
  7123  // GoogleCloudDiscoveryengineV1alphaListSessionsResponse: Response for
  7124  // ListSessions method.
  7125  type GoogleCloudDiscoveryengineV1alphaListSessionsResponse struct {
  7126  	// NextPageToken: Pagination token, if not returned indicates the last page.
  7127  	NextPageToken string `json:"nextPageToken,omitempty"`
  7128  	// Sessions: All the Sessions for a given data store.
  7129  	Sessions []*GoogleCloudDiscoveryengineV1alphaSession `json:"sessions,omitempty"`
  7130  
  7131  	// ServerResponse contains the HTTP response code and headers from the server.
  7132  	googleapi.ServerResponse `json:"-"`
  7133  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  7134  	// unconditionally include in API requests. By default, fields with empty or
  7135  	// default values are omitted from API requests. See
  7136  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7137  	// details.
  7138  	ForceSendFields []string `json:"-"`
  7139  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  7140  	// requests with the JSON null value. By default, fields with empty values are
  7141  	// omitted from API requests. See
  7142  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7143  	NullFields []string `json:"-"`
  7144  }
  7145  
  7146  func (s *GoogleCloudDiscoveryengineV1alphaListSessionsResponse) MarshalJSON() ([]byte, error) {
  7147  	type NoMethod GoogleCloudDiscoveryengineV1alphaListSessionsResponse
  7148  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7149  }
  7150  
  7151  // GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse: Response message
  7152  // for SiteSearchEngineService.ListTargetSites method.
  7153  type GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse struct {
  7154  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  7155  	// page. If this field is omitted, there are no subsequent pages.
  7156  	NextPageToken string `json:"nextPageToken,omitempty"`
  7157  	// TargetSites: List of TargetSites.
  7158  	TargetSites []*GoogleCloudDiscoveryengineV1alphaTargetSite `json:"targetSites,omitempty"`
  7159  	// TotalSize: The total number of items matching the request. This will always
  7160  	// be populated in the response.
  7161  	TotalSize int64 `json:"totalSize,omitempty"`
  7162  
  7163  	// ServerResponse contains the HTTP response code and headers from the server.
  7164  	googleapi.ServerResponse `json:"-"`
  7165  	// ForceSendFields is a list of field names (e.g. "NextPageToken") 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. "NextPageToken") 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 *GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse) MarshalJSON() ([]byte, error) {
  7179  	type NoMethod GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse
  7180  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7181  }
  7182  
  7183  // GoogleCloudDiscoveryengineV1alphaMediaInfo: Media-specific user event
  7184  // information.
  7185  type GoogleCloudDiscoveryengineV1alphaMediaInfo struct {
  7186  	// MediaProgressDuration: The media progress time in seconds, if applicable.
  7187  	// For example, if the end user has finished 90 seconds of a playback video,
  7188  	// then MediaInfo.media_progress_duration.seconds should be set to 90.
  7189  	MediaProgressDuration string `json:"mediaProgressDuration,omitempty"`
  7190  	// MediaProgressPercentage: Media progress should be computed using only the
  7191  	// media_progress_duration relative to the media total length. This value must
  7192  	// be between `[0, 1.0]` inclusive. If this is not a playback or the progress
  7193  	// cannot be computed (e.g. ongoing livestream), this field should be unset.
  7194  	MediaProgressPercentage float64 `json:"mediaProgressPercentage,omitempty"`
  7195  	// ForceSendFields is a list of field names (e.g. "MediaProgressDuration") to
  7196  	// unconditionally include in API requests. By default, fields with empty or
  7197  	// default values are omitted from API requests. See
  7198  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7199  	// details.
  7200  	ForceSendFields []string `json:"-"`
  7201  	// NullFields is a list of field names (e.g. "MediaProgressDuration") to
  7202  	// include in API requests with the JSON null value. By default, fields with
  7203  	// empty values are omitted from API requests. See
  7204  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7205  	NullFields []string `json:"-"`
  7206  }
  7207  
  7208  func (s *GoogleCloudDiscoveryengineV1alphaMediaInfo) MarshalJSON() ([]byte, error) {
  7209  	type NoMethod GoogleCloudDiscoveryengineV1alphaMediaInfo
  7210  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7211  }
  7212  
  7213  func (s *GoogleCloudDiscoveryengineV1alphaMediaInfo) UnmarshalJSON(data []byte) error {
  7214  	type NoMethod GoogleCloudDiscoveryengineV1alphaMediaInfo
  7215  	var s1 struct {
  7216  		MediaProgressPercentage gensupport.JSONFloat64 `json:"mediaProgressPercentage"`
  7217  		*NoMethod
  7218  	}
  7219  	s1.NoMethod = (*NoMethod)(s)
  7220  	if err := json.Unmarshal(data, &s1); err != nil {
  7221  		return err
  7222  	}
  7223  	s.MediaProgressPercentage = float64(s1.MediaProgressPercentage)
  7224  	return nil
  7225  }
  7226  
  7227  // GoogleCloudDiscoveryengineV1alphaPageInfo: Detailed page information.
  7228  type GoogleCloudDiscoveryengineV1alphaPageInfo struct {
  7229  	// PageCategory: The most specific category associated with a category page. To
  7230  	// represent full path of category, use '>' sign to separate different
  7231  	// hierarchies. If '>' is part of the category name, replace it with other
  7232  	// character(s). Category pages include special pages such as sales or
  7233  	// promotions. For instance, a special sale page may have the category
  7234  	// hierarchy: "pageCategory" : "Sales > 2017 Black Friday Deals". Required
  7235  	// for `view-category-page` events. Other event types should not set this
  7236  	// field. Otherwise, an `INVALID_ARGUMENT` error is returned.
  7237  	PageCategory string `json:"pageCategory,omitempty"`
  7238  	// PageviewId: A unique ID of a web page view. This should be kept the same for
  7239  	// all user events triggered from the same pageview. For example, an item
  7240  	// detail page view could trigger multiple events as the user is browsing the
  7241  	// page. The `pageview_id` property should be kept the same for all these
  7242  	// events so that they can be grouped together properly. When using the client
  7243  	// side event reporting with JavaScript pixel and Google Tag Manager, this
  7244  	// value is filled in automatically.
  7245  	PageviewId string `json:"pageviewId,omitempty"`
  7246  	// ReferrerUri: The referrer URL of the current page. When using the client
  7247  	// side event reporting with JavaScript pixel and Google Tag Manager, this
  7248  	// value is filled in automatically. However, some browser privacy restrictions
  7249  	// may cause this field to be empty.
  7250  	ReferrerUri string `json:"referrerUri,omitempty"`
  7251  	// Uri: Complete URL (window.location.href) of the user's current page. When
  7252  	// using the client side event reporting with JavaScript pixel and Google Tag
  7253  	// Manager, this value is filled in automatically. Maximum length 5,000
  7254  	// characters.
  7255  	Uri string `json:"uri,omitempty"`
  7256  	// ForceSendFields is a list of field names (e.g. "PageCategory") to
  7257  	// unconditionally include in API requests. By default, fields with empty or
  7258  	// default values are omitted from API requests. See
  7259  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7260  	// details.
  7261  	ForceSendFields []string `json:"-"`
  7262  	// NullFields is a list of field names (e.g. "PageCategory") to include in API
  7263  	// requests with the JSON null value. By default, fields with empty values are
  7264  	// omitted from API requests. See
  7265  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7266  	NullFields []string `json:"-"`
  7267  }
  7268  
  7269  func (s *GoogleCloudDiscoveryengineV1alphaPageInfo) MarshalJSON() ([]byte, error) {
  7270  	type NoMethod GoogleCloudDiscoveryengineV1alphaPageInfo
  7271  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7272  }
  7273  
  7274  // GoogleCloudDiscoveryengineV1alphaPanelInfo: Detailed panel information
  7275  // associated with a user event.
  7276  type GoogleCloudDiscoveryengineV1alphaPanelInfo struct {
  7277  	// DisplayName: The display name of the panel.
  7278  	DisplayName string `json:"displayName,omitempty"`
  7279  	// PanelId: Required. The panel ID.
  7280  	PanelId string `json:"panelId,omitempty"`
  7281  	// PanelPosition: The ordered position of the panel, if shown to the user with
  7282  	// other panels. If set, then total_panels must also be set.
  7283  	PanelPosition int64 `json:"panelPosition,omitempty"`
  7284  	// TotalPanels: The total number of panels, including this one, shown to the
  7285  	// user. Must be set if panel_position is set.
  7286  	TotalPanels int64 `json:"totalPanels,omitempty"`
  7287  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  7288  	// unconditionally include in API requests. By default, fields with empty or
  7289  	// default values are omitted from API requests. See
  7290  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7291  	// details.
  7292  	ForceSendFields []string `json:"-"`
  7293  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  7294  	// requests with the JSON null value. By default, fields with empty values are
  7295  	// omitted from API requests. See
  7296  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7297  	NullFields []string `json:"-"`
  7298  }
  7299  
  7300  func (s *GoogleCloudDiscoveryengineV1alphaPanelInfo) MarshalJSON() ([]byte, error) {
  7301  	type NoMethod GoogleCloudDiscoveryengineV1alphaPanelInfo
  7302  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7303  }
  7304  
  7305  // GoogleCloudDiscoveryengineV1alphaPauseEngineRequest: Request for pausing
  7306  // training of an engine.
  7307  type GoogleCloudDiscoveryengineV1alphaPauseEngineRequest struct {
  7308  }
  7309  
  7310  // GoogleCloudDiscoveryengineV1alphaPrincipal: Principal identifier of a user
  7311  // or a group.
  7312  type GoogleCloudDiscoveryengineV1alphaPrincipal struct {
  7313  	// GroupId: Group identifier. For Google Workspace user account, group_id
  7314  	// should be the google workspace group email. For non-google identity provider
  7315  	// user account, group_id is the mapped group identifier configured during the
  7316  	// workforcepool config.
  7317  	GroupId string `json:"groupId,omitempty"`
  7318  	// UserId: User identifier. For Google Workspace user account, user_id should
  7319  	// be the google workspace user email. For non-google identity provider user
  7320  	// account, user_id is the mapped user identifier configured during the
  7321  	// workforcepool config.
  7322  	UserId string `json:"userId,omitempty"`
  7323  	// ForceSendFields is a list of field names (e.g. "GroupId") to unconditionally
  7324  	// include in API requests. By default, fields with empty or default values are
  7325  	// omitted from API requests. See
  7326  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7327  	// details.
  7328  	ForceSendFields []string `json:"-"`
  7329  	// NullFields is a list of field names (e.g. "GroupId") to include in API
  7330  	// requests with the JSON null value. By default, fields with empty values are
  7331  	// omitted from API requests. See
  7332  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7333  	NullFields []string `json:"-"`
  7334  }
  7335  
  7336  func (s *GoogleCloudDiscoveryengineV1alphaPrincipal) MarshalJSON() ([]byte, error) {
  7337  	type NoMethod GoogleCloudDiscoveryengineV1alphaPrincipal
  7338  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7339  }
  7340  
  7341  // GoogleCloudDiscoveryengineV1alphaProcessedDocument: Document captures all
  7342  // raw metadata information of items to be recommended or searched.
  7343  type GoogleCloudDiscoveryengineV1alphaProcessedDocument struct {
  7344  	// Document: Required. Full resource name of the referenced document, in the
  7345  	// format
  7346  	// `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
  7347  	Document string `json:"document,omitempty"`
  7348  	// JsonData: The JSON string representation of the processed document.
  7349  	JsonData string `json:"jsonData,omitempty"`
  7350  
  7351  	// ServerResponse contains the HTTP response code and headers from the server.
  7352  	googleapi.ServerResponse `json:"-"`
  7353  	// ForceSendFields is a list of field names (e.g. "Document") to
  7354  	// unconditionally include in API requests. By default, fields with empty or
  7355  	// default values are omitted from API requests. See
  7356  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7357  	// details.
  7358  	ForceSendFields []string `json:"-"`
  7359  	// NullFields is a list of field names (e.g. "Document") to include in API
  7360  	// requests with the JSON null value. By default, fields with empty values are
  7361  	// omitted from API requests. See
  7362  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7363  	NullFields []string `json:"-"`
  7364  }
  7365  
  7366  func (s *GoogleCloudDiscoveryengineV1alphaProcessedDocument) MarshalJSON() ([]byte, error) {
  7367  	type NoMethod GoogleCloudDiscoveryengineV1alphaProcessedDocument
  7368  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7369  }
  7370  
  7371  // GoogleCloudDiscoveryengineV1alphaProject: Metadata and configurations for a
  7372  // Google Cloud project in the service.
  7373  type GoogleCloudDiscoveryengineV1alphaProject struct {
  7374  	// CreateTime: Output only. The timestamp when this project is created.
  7375  	CreateTime string `json:"createTime,omitempty"`
  7376  	// Name: Output only. Full resource name of the project, for example
  7377  	// `projects/{project_number}`. Note that when making requests, project number
  7378  	// and project id are both acceptable, but the server will always respond in
  7379  	// project number.
  7380  	Name string `json:"name,omitempty"`
  7381  	// ProvisionCompletionTime: Output only. The timestamp when this project is
  7382  	// successfully provisioned. Empty value means this project is still
  7383  	// provisioning and is not ready for use.
  7384  	ProvisionCompletionTime string `json:"provisionCompletionTime,omitempty"`
  7385  	// ServiceTermsMap: Output only. A map of terms of services. The key is the
  7386  	// `id` of ServiceTerms.
  7387  	ServiceTermsMap map[string]GoogleCloudDiscoveryengineV1alphaProjectServiceTerms `json:"serviceTermsMap,omitempty"`
  7388  
  7389  	// ServerResponse contains the HTTP response code and headers from the server.
  7390  	googleapi.ServerResponse `json:"-"`
  7391  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7392  	// unconditionally include in API requests. By default, fields with empty or
  7393  	// default values are omitted from API requests. See
  7394  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7395  	// details.
  7396  	ForceSendFields []string `json:"-"`
  7397  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7398  	// requests with the JSON null value. By default, fields with empty values are
  7399  	// omitted from API requests. See
  7400  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7401  	NullFields []string `json:"-"`
  7402  }
  7403  
  7404  func (s *GoogleCloudDiscoveryengineV1alphaProject) MarshalJSON() ([]byte, error) {
  7405  	type NoMethod GoogleCloudDiscoveryengineV1alphaProject
  7406  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7407  }
  7408  
  7409  // GoogleCloudDiscoveryengineV1alphaProjectServiceTerms: Metadata about the
  7410  // terms of service.
  7411  type GoogleCloudDiscoveryengineV1alphaProjectServiceTerms struct {
  7412  	// AcceptTime: The last time when the project agreed to the terms of service.
  7413  	AcceptTime string `json:"acceptTime,omitempty"`
  7414  	// DeclineTime: The last time when the project declined or revoked the
  7415  	// agreement to terms of service.
  7416  	DeclineTime string `json:"declineTime,omitempty"`
  7417  	// Id: The unique identifier of this terms of service. Available terms: *
  7418  	// `GA_DATA_USE_TERMS`: Terms for data use
  7419  	// (https://cloud.google.com/retail/data-use-terms). When using this as `id`,
  7420  	// the acceptable version to provide is `2022-11-23`.
  7421  	Id string `json:"id,omitempty"`
  7422  	// State: Whether the project has accepted/rejected the service terms or it is
  7423  	// still pending.
  7424  	//
  7425  	// Possible values:
  7426  	//   "STATE_UNSPECIFIED" - The default value of the enum. This value is not
  7427  	// actually used.
  7428  	//   "TERMS_ACCEPTED" - The project has given consent to the terms of service.
  7429  	//   "TERMS_PENDING" - The project is pending to review and accept the terms of
  7430  	// service.
  7431  	//   "TERMS_DECLINED" - The project has declined or revoked the agreement to
  7432  	// terms of service.
  7433  	State string `json:"state,omitempty"`
  7434  	// Version: The version string of the terms of service. For acceptable values,
  7435  	// see the comments for id above.
  7436  	Version string `json:"version,omitempty"`
  7437  	// ForceSendFields is a list of field names (e.g. "AcceptTime") to
  7438  	// unconditionally include in API requests. By default, fields with empty or
  7439  	// default values are omitted from API requests. See
  7440  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7441  	// details.
  7442  	ForceSendFields []string `json:"-"`
  7443  	// NullFields is a list of field names (e.g. "AcceptTime") to include in API
  7444  	// requests with the JSON null value. By default, fields with empty values are
  7445  	// omitted from API requests. See
  7446  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7447  	NullFields []string `json:"-"`
  7448  }
  7449  
  7450  func (s *GoogleCloudDiscoveryengineV1alphaProjectServiceTerms) MarshalJSON() ([]byte, error) {
  7451  	type NoMethod GoogleCloudDiscoveryengineV1alphaProjectServiceTerms
  7452  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7453  }
  7454  
  7455  // GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata: Metadata
  7456  // associated with a project provision operation.
  7457  type GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata struct {
  7458  }
  7459  
  7460  // GoogleCloudDiscoveryengineV1alphaProvisionProjectRequest: Request for
  7461  // ProjectService.ProvisionProject method.
  7462  type GoogleCloudDiscoveryengineV1alphaProvisionProjectRequest struct {
  7463  	// AcceptDataUseTerms: Required. Set to `true` to specify that caller has read
  7464  	// and would like to give consent to the Terms for data use
  7465  	// (https://cloud.google.com/retail/data-use-terms).
  7466  	AcceptDataUseTerms bool `json:"acceptDataUseTerms,omitempty"`
  7467  	// DataUseTermsVersion: Required. The version of the Terms for data use
  7468  	// (https://cloud.google.com/retail/data-use-terms) that caller has read and
  7469  	// would like to give consent to. Acceptable version is `2022-11-23`, and this
  7470  	// may change over time.
  7471  	DataUseTermsVersion string `json:"dataUseTermsVersion,omitempty"`
  7472  	// ForceSendFields is a list of field names (e.g. "AcceptDataUseTerms") to
  7473  	// unconditionally include in API requests. By default, fields with empty or
  7474  	// default values are omitted from API requests. See
  7475  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7476  	// details.
  7477  	ForceSendFields []string `json:"-"`
  7478  	// NullFields is a list of field names (e.g. "AcceptDataUseTerms") to include
  7479  	// in API requests with the JSON null value. By default, fields with empty
  7480  	// values are omitted from API requests. See
  7481  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7482  	NullFields []string `json:"-"`
  7483  }
  7484  
  7485  func (s *GoogleCloudDiscoveryengineV1alphaProvisionProjectRequest) MarshalJSON() ([]byte, error) {
  7486  	type NoMethod GoogleCloudDiscoveryengineV1alphaProvisionProjectRequest
  7487  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7488  }
  7489  
  7490  // GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata: Metadata related to
  7491  // the progress of the PurgeDocuments operation. This will be returned by the
  7492  // google.longrunning.Operation.metadata field.
  7493  type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata struct {
  7494  	// CreateTime: Operation create time.
  7495  	CreateTime string `json:"createTime,omitempty"`
  7496  	// FailureCount: Count of entries that encountered errors while processing.
  7497  	FailureCount int64 `json:"failureCount,omitempty,string"`
  7498  	// IgnoredCount: Count of entries that were ignored as entries were not found.
  7499  	IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
  7500  	// SuccessCount: Count of entries that were deleted successfully.
  7501  	SuccessCount int64 `json:"successCount,omitempty,string"`
  7502  	// UpdateTime: Operation last update time. If the operation is done, this is
  7503  	// also the finish time.
  7504  	UpdateTime string `json:"updateTime,omitempty"`
  7505  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7506  	// unconditionally include in API requests. By default, fields with empty or
  7507  	// default values are omitted from API requests. See
  7508  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7509  	// details.
  7510  	ForceSendFields []string `json:"-"`
  7511  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7512  	// requests with the JSON null value. By default, fields with empty values are
  7513  	// omitted from API requests. See
  7514  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7515  	NullFields []string `json:"-"`
  7516  }
  7517  
  7518  func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
  7519  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
  7520  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7521  }
  7522  
  7523  // GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest: Request message for
  7524  // DocumentService.PurgeDocuments method.
  7525  type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest struct {
  7526  	// ErrorConfig: The desired location of errors incurred during the purge.
  7527  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaPurgeErrorConfig `json:"errorConfig,omitempty"`
  7528  	// Filter: Required. Filter matching documents to purge. Only currently
  7529  	// supported value is `*` (all items).
  7530  	Filter string `json:"filter,omitempty"`
  7531  	// Force: Actually performs the purge. If `force` is set to false, return the
  7532  	// expected purge count without deleting any documents.
  7533  	Force bool `json:"force,omitempty"`
  7534  	// GcsSource: Cloud Storage location for the input content. Supported
  7535  	// `data_schema`: * `document_id`: One valid Document.id per line.
  7536  	GcsSource *GoogleCloudDiscoveryengineV1alphaGcsSource `json:"gcsSource,omitempty"`
  7537  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") 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. "ErrorConfig") to include in API
  7544  	// requests with the JSON null value. By default, fields with empty values are
  7545  	// 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 *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest) MarshalJSON() ([]byte, error) {
  7551  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest
  7552  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7553  }
  7554  
  7555  // GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse: Response message
  7556  // for DocumentService.PurgeDocuments method. If the long running operation is
  7557  // successfully done, then this message is returned by the
  7558  // google.longrunning.Operations.response field.
  7559  type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse struct {
  7560  	// PurgeCount: The total count of documents purged as a result of the
  7561  	// operation.
  7562  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  7563  	// PurgeSample: A sample of document names that will be deleted. Only populated
  7564  	// if `force` is set to false. A max of 100 names will be returned and the
  7565  	// names are chosen at random.
  7566  	PurgeSample []string `json:"purgeSample,omitempty"`
  7567  	// ForceSendFields is a list of field names (e.g. "PurgeCount") to
  7568  	// unconditionally include in API requests. By default, fields with empty or
  7569  	// default values are omitted from API requests. See
  7570  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7571  	// details.
  7572  	ForceSendFields []string `json:"-"`
  7573  	// NullFields is a list of field names (e.g. "PurgeCount") to include in API
  7574  	// requests with the JSON null value. By default, fields with empty values are
  7575  	// omitted from API requests. See
  7576  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7577  	NullFields []string `json:"-"`
  7578  }
  7579  
  7580  func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
  7581  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse
  7582  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7583  }
  7584  
  7585  // GoogleCloudDiscoveryengineV1alphaPurgeErrorConfig: Configuration of
  7586  // destination for Purge related errors.
  7587  type GoogleCloudDiscoveryengineV1alphaPurgeErrorConfig struct {
  7588  	// GcsPrefix: Cloud Storage prefix for purge errors. This must be an empty,
  7589  	// existing Cloud Storage directory. Purge errors are written to sharded files
  7590  	// in this directory, one per line, as a JSON-encoded `google.rpc.Status`
  7591  	// message.
  7592  	GcsPrefix string `json:"gcsPrefix,omitempty"`
  7593  	// ForceSendFields is a list of field names (e.g. "GcsPrefix") to
  7594  	// unconditionally include in API requests. By default, fields with empty or
  7595  	// default values are omitted from API requests. See
  7596  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7597  	// details.
  7598  	ForceSendFields []string `json:"-"`
  7599  	// NullFields is a list of field names (e.g. "GcsPrefix") to include in API
  7600  	// requests with the JSON null value. By default, fields with empty values are
  7601  	// omitted from API requests. See
  7602  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7603  	NullFields []string `json:"-"`
  7604  }
  7605  
  7606  func (s *GoogleCloudDiscoveryengineV1alphaPurgeErrorConfig) MarshalJSON() ([]byte, error) {
  7607  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeErrorConfig
  7608  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7609  }
  7610  
  7611  // GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata:
  7612  // Metadata related to the progress of the PurgeSuggestionDenyListEntries
  7613  // operation. This is returned by the google.longrunning.Operation.metadata
  7614  // field.
  7615  type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata struct {
  7616  	// CreateTime: Operation create time.
  7617  	CreateTime string `json:"createTime,omitempty"`
  7618  	// UpdateTime: Operation last update time. If the operation is done, this is
  7619  	// also the finish time.
  7620  	UpdateTime string `json:"updateTime,omitempty"`
  7621  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7622  	// unconditionally include in API requests. By default, fields with empty or
  7623  	// default values are omitted from API requests. See
  7624  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7625  	// details.
  7626  	ForceSendFields []string `json:"-"`
  7627  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7628  	// requests with the JSON null value. By default, fields with empty values are
  7629  	// omitted from API requests. See
  7630  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7631  	NullFields []string `json:"-"`
  7632  }
  7633  
  7634  func (s *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  7635  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata
  7636  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7637  }
  7638  
  7639  // GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest:
  7640  // Request message for CompletionService.PurgeSuggestionDenyListEntries method.
  7641  type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest struct {
  7642  }
  7643  
  7644  // GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse:
  7645  // Response message for CompletionService.PurgeSuggestionDenyListEntries
  7646  // method.
  7647  type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse struct {
  7648  	// ErrorSamples: A sample of errors encountered while processing the request.
  7649  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  7650  	// PurgeCount: Number of suggestion deny list entries purged.
  7651  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  7652  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") 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. "ErrorSamples") 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 *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  7666  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse
  7667  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7668  }
  7669  
  7670  // GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata: Metadata related
  7671  // to the progress of the PurgeUserEvents operation. This will be returned by
  7672  // the google.longrunning.Operation.metadata field.
  7673  type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata struct {
  7674  	// CreateTime: Operation create time.
  7675  	CreateTime string `json:"createTime,omitempty"`
  7676  	// FailureCount: Count of entries that encountered errors while processing.
  7677  	FailureCount int64 `json:"failureCount,omitempty,string"`
  7678  	// SuccessCount: Count of entries that were deleted successfully.
  7679  	SuccessCount int64 `json:"successCount,omitempty,string"`
  7680  	// UpdateTime: Operation last update time. If the operation is done, this is
  7681  	// also the finish time.
  7682  	UpdateTime string `json:"updateTime,omitempty"`
  7683  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7684  	// unconditionally include in API requests. By default, fields with empty or
  7685  	// default values are omitted from API requests. See
  7686  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7687  	// details.
  7688  	ForceSendFields []string `json:"-"`
  7689  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7690  	// requests with the JSON null value. By default, fields with empty values are
  7691  	// omitted from API requests. See
  7692  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7693  	NullFields []string `json:"-"`
  7694  }
  7695  
  7696  func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata) MarshalJSON() ([]byte, error) {
  7697  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata
  7698  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7699  }
  7700  
  7701  // GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest: Request message for
  7702  // PurgeUserEvents method.
  7703  type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest struct {
  7704  	// Filter: Required. The filter string to specify the events to be deleted with
  7705  	// a length limit of 5,000 characters. The eligible fields for filtering are: *
  7706  	// `eventType`: Double quoted UserEvent.event_type string. * `eventTime`: in
  7707  	// ISO 8601 "zulu" format. * `userPseudoId`: Double quoted string. Specifying
  7708  	// this will delete all events associated with a visitor. * `userId`: Double
  7709  	// quoted string. Specifying this will delete all events associated with a
  7710  	// user. Examples: * Deleting all events in a time range: `eventTime >
  7711  	// "2012-04-23T18:25:43.511Z" eventTime < "2012-04-23T18:30:43.511Z" *
  7712  	// Deleting specific eventType: `eventType = "search" * Deleting all events
  7713  	// for a specific visitor: `userPseudoId = "visitor1024" * Deleting all events
  7714  	// inside a DataStore: `*` The filtering fields are assumed to have an implicit
  7715  	// AND.
  7716  	Filter string `json:"filter,omitempty"`
  7717  	// Force: The `force` field is currently not supported. Purge user event
  7718  	// requests will permanently delete all purgeable events. Once the development
  7719  	// is complete: If `force` is set to false, the method will return the expected
  7720  	// purge count without deleting any user events. This field will default to
  7721  	// false if not included in the request.
  7722  	Force bool `json:"force,omitempty"`
  7723  	// ForceSendFields is a list of field names (e.g. "Filter") to unconditionally
  7724  	// include in API requests. By default, fields with empty or default values are
  7725  	// omitted from API requests. See
  7726  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7727  	// details.
  7728  	ForceSendFields []string `json:"-"`
  7729  	// NullFields is a list of field names (e.g. "Filter") to include in API
  7730  	// requests with the JSON null value. By default, fields with empty values are
  7731  	// omitted from API requests. See
  7732  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7733  	NullFields []string `json:"-"`
  7734  }
  7735  
  7736  func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest) MarshalJSON() ([]byte, error) {
  7737  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest
  7738  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7739  }
  7740  
  7741  // GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse: Response of the
  7742  // PurgeUserEventsRequest. If the long running operation is successfully done,
  7743  // then this message is returned by the google.longrunning.Operations.response
  7744  // field.
  7745  type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse struct {
  7746  	// PurgeCount: The total count of events purged as a result of the operation.
  7747  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  7748  	// ForceSendFields is a list of field names (e.g. "PurgeCount") to
  7749  	// unconditionally include in API requests. By default, fields with empty or
  7750  	// default values are omitted from API requests. See
  7751  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7752  	// details.
  7753  	ForceSendFields []string `json:"-"`
  7754  	// NullFields is a list of field names (e.g. "PurgeCount") to include in API
  7755  	// requests with the JSON null value. By default, fields with empty values are
  7756  	// omitted from API requests. See
  7757  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7758  	NullFields []string `json:"-"`
  7759  }
  7760  
  7761  func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse) MarshalJSON() ([]byte, error) {
  7762  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse
  7763  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7764  }
  7765  
  7766  // GoogleCloudDiscoveryengineV1alphaQuery: Defines a user inputed query.
  7767  type GoogleCloudDiscoveryengineV1alphaQuery struct {
  7768  	// QueryId: Unique Id for the query.
  7769  	QueryId string `json:"queryId,omitempty"`
  7770  	// Text: Plain text.
  7771  	Text string `json:"text,omitempty"`
  7772  	// ForceSendFields is a list of field names (e.g. "QueryId") to unconditionally
  7773  	// include in API requests. By default, fields with empty or default values are
  7774  	// omitted from API requests. See
  7775  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7776  	// details.
  7777  	ForceSendFields []string `json:"-"`
  7778  	// NullFields is a list of field names (e.g. "QueryId") to include in API
  7779  	// requests with the JSON null value. By default, fields with empty values are
  7780  	// omitted from API requests. See
  7781  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7782  	NullFields []string `json:"-"`
  7783  }
  7784  
  7785  func (s *GoogleCloudDiscoveryengineV1alphaQuery) MarshalJSON() ([]byte, error) {
  7786  	type NoMethod GoogleCloudDiscoveryengineV1alphaQuery
  7787  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7788  }
  7789  
  7790  // GoogleCloudDiscoveryengineV1alphaRankRequest: Request message for
  7791  // RankService.Rank method.
  7792  type GoogleCloudDiscoveryengineV1alphaRankRequest struct {
  7793  	// IgnoreRecordDetailsInResponse: If true, the response will contain only
  7794  	// record ID and score. By default, it is false, the response will contain
  7795  	// record details.
  7796  	IgnoreRecordDetailsInResponse bool `json:"ignoreRecordDetailsInResponse,omitempty"`
  7797  	// Model: The identifier of the model to use. It is one of: *
  7798  	// `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
  7799  	// token size 512. It is set to `semantic-ranker-512@latest` by default if
  7800  	// unspecified.
  7801  	Model string `json:"model,omitempty"`
  7802  	// Query: The query to use.
  7803  	Query string `json:"query,omitempty"`
  7804  	// Records: Required. A list of records to rank. At most 200 records to rank.
  7805  	Records []*GoogleCloudDiscoveryengineV1alphaRankingRecord `json:"records,omitempty"`
  7806  	// TopN: The number of results to return. If this is unset or no bigger than
  7807  	// zero, returns all results.
  7808  	TopN int64 `json:"topN,omitempty"`
  7809  	// ForceSendFields is a list of field names (e.g.
  7810  	// "IgnoreRecordDetailsInResponse") to unconditionally include in API requests.
  7811  	// By default, fields with empty or default values are omitted from API
  7812  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  7813  	// for more details.
  7814  	ForceSendFields []string `json:"-"`
  7815  	// NullFields is a list of field names (e.g. "IgnoreRecordDetailsInResponse")
  7816  	// to include in API requests with the JSON null value. By default, fields with
  7817  	// empty values are omitted from API requests. See
  7818  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7819  	NullFields []string `json:"-"`
  7820  }
  7821  
  7822  func (s *GoogleCloudDiscoveryengineV1alphaRankRequest) MarshalJSON() ([]byte, error) {
  7823  	type NoMethod GoogleCloudDiscoveryengineV1alphaRankRequest
  7824  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7825  }
  7826  
  7827  // GoogleCloudDiscoveryengineV1alphaRankResponse: Response message for
  7828  // RankService.Rank method.
  7829  type GoogleCloudDiscoveryengineV1alphaRankResponse struct {
  7830  	// Records: A list of records sorted by descending score.
  7831  	Records []*GoogleCloudDiscoveryengineV1alphaRankingRecord `json:"records,omitempty"`
  7832  
  7833  	// ServerResponse contains the HTTP response code and headers from the server.
  7834  	googleapi.ServerResponse `json:"-"`
  7835  	// ForceSendFields is a list of field names (e.g. "Records") to unconditionally
  7836  	// include in API requests. By default, fields with empty or default values are
  7837  	// omitted from API requests. See
  7838  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7839  	// details.
  7840  	ForceSendFields []string `json:"-"`
  7841  	// NullFields is a list of field names (e.g. "Records") to include in API
  7842  	// requests with the JSON null value. By default, fields with empty values are
  7843  	// omitted from API requests. See
  7844  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7845  	NullFields []string `json:"-"`
  7846  }
  7847  
  7848  func (s *GoogleCloudDiscoveryengineV1alphaRankResponse) MarshalJSON() ([]byte, error) {
  7849  	type NoMethod GoogleCloudDiscoveryengineV1alphaRankResponse
  7850  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7851  }
  7852  
  7853  // GoogleCloudDiscoveryengineV1alphaRankingRecord: Record message for
  7854  // RankService.Rank method.
  7855  type GoogleCloudDiscoveryengineV1alphaRankingRecord struct {
  7856  	// Content: The content of the record. Empty by default. At least one of title
  7857  	// or content should be set otherwise an INVALID_ARGUMENT error is thrown.
  7858  	Content string `json:"content,omitempty"`
  7859  	// Id: The unique ID to represent the record.
  7860  	Id string `json:"id,omitempty"`
  7861  	// Score: The score of this record based on the given query and selected model.
  7862  	Score float64 `json:"score,omitempty"`
  7863  	// Title: The title of the record. Empty by default. At least one of title or
  7864  	// content should be set otherwise an INVALID_ARGUMENT error is thrown.
  7865  	Title string `json:"title,omitempty"`
  7866  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  7867  	// include in API requests. By default, fields with empty or default values are
  7868  	// omitted from API requests. See
  7869  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7870  	// details.
  7871  	ForceSendFields []string `json:"-"`
  7872  	// NullFields is a list of field names (e.g. "Content") to include in API
  7873  	// requests with the JSON null value. By default, fields with empty values are
  7874  	// omitted from API requests. See
  7875  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7876  	NullFields []string `json:"-"`
  7877  }
  7878  
  7879  func (s *GoogleCloudDiscoveryengineV1alphaRankingRecord) MarshalJSON() ([]byte, error) {
  7880  	type NoMethod GoogleCloudDiscoveryengineV1alphaRankingRecord
  7881  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7882  }
  7883  
  7884  func (s *GoogleCloudDiscoveryengineV1alphaRankingRecord) UnmarshalJSON(data []byte) error {
  7885  	type NoMethod GoogleCloudDiscoveryengineV1alphaRankingRecord
  7886  	var s1 struct {
  7887  		Score gensupport.JSONFloat64 `json:"score"`
  7888  		*NoMethod
  7889  	}
  7890  	s1.NoMethod = (*NoMethod)(s)
  7891  	if err := json.Unmarshal(data, &s1); err != nil {
  7892  		return err
  7893  	}
  7894  	s.Score = float64(s1.Score)
  7895  	return nil
  7896  }
  7897  
  7898  // GoogleCloudDiscoveryengineV1alphaRecommendRequest: Request message for
  7899  // Recommend method.
  7900  type GoogleCloudDiscoveryengineV1alphaRecommendRequest struct {
  7901  	// Filter: Filter for restricting recommendation results with a length limit of
  7902  	// 5,000 characters. Currently, only filter expressions on the `filter_tags`
  7903  	// attribute is supported. Examples: * `(filter_tags: ANY("Red", "Blue") OR
  7904  	// filter_tags: ANY("Hot", "Cold"))` * `(filter_tags: ANY("Red", "Blue")) AND
  7905  	// NOT (filter_tags: ANY("Green"))` If `attributeFilteringSyntax` is set to
  7906  	// true under the `params` field, then attribute-based expressions are expected
  7907  	// instead of the above described tag-based syntax. Examples: * (launguage:
  7908  	// ANY("en", "es")) AND NOT (categories: ANY("Movie")) * (available: true) AND
  7909  	// (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) If your filter
  7910  	// blocks all results, the API will return generic (unfiltered) popular
  7911  	// Documents. If you only want results strictly matching the filters, set
  7912  	// `strictFiltering` to True in RecommendRequest.params to receive empty
  7913  	// results instead. Note that the API will never return Documents with
  7914  	// `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
  7915  	Filter string `json:"filter,omitempty"`
  7916  	// PageSize: Maximum number of results to return. Set this property to the
  7917  	// number of recommendation results needed. If zero, the service will choose a
  7918  	// reasonable default. The maximum allowed value is 100. Values above 100 will
  7919  	// be coerced to 100.
  7920  	PageSize int64 `json:"pageSize,omitempty"`
  7921  	// Params: Additional domain specific parameters for the recommendations.
  7922  	// Allowed values: * `returnDocument`: Boolean. If set to true, the associated
  7923  	// Document object will be returned in
  7924  	// RecommendResponse.RecommendationResult.document. * `returnScore`: Boolean.
  7925  	// If set to true, the recommendation 'score' corresponding to each returned
  7926  	// Document will be set in RecommendResponse.RecommendationResult.metadata. The
  7927  	// given 'score' indicates the probability of a Document conversion given the
  7928  	// user's context and history. * `strictFiltering`: Boolean. True by default.
  7929  	// If set to false, the service will return generic (unfiltered) popular
  7930  	// Documents instead of empty if your filter blocks all recommendation results.
  7931  	// * `diversityLevel`: String. Default empty. If set to be non-empty, then it
  7932  	// needs to be one of: * `no-diversity` * `low-diversity` * `medium-diversity`
  7933  	// * `high-diversity` * `auto-diversity` This gives request-level control and
  7934  	// adjusts recommendation results based on Document category. *
  7935  	// `attributeFilteringSyntax`: Boolean. False by default. If set to true, the
  7936  	// `filter` field is interpreted according to the new, attribute-based syntax.
  7937  	Params googleapi.RawMessage `json:"params,omitempty"`
  7938  	// UserEvent: Required. Context about the user, what they are looking at and
  7939  	// what action they took to trigger the Recommend request. Note that this user
  7940  	// event detail won't be ingested to userEvent logs. Thus, a separate userEvent
  7941  	// write request is required for event logging. Don't set
  7942  	// UserEvent.user_pseudo_id or UserEvent.user_info.user_id to the same fixed ID
  7943  	// for different users. If you are trying to receive non-personalized
  7944  	// recommendations (not recommended; this can negatively impact model
  7945  	// performance), instead set UserEvent.user_pseudo_id to a random unique ID and
  7946  	// leave UserEvent.user_info.user_id unset.
  7947  	UserEvent *GoogleCloudDiscoveryengineV1alphaUserEvent `json:"userEvent,omitempty"`
  7948  	// UserLabels: The user labels applied to a resource must meet the following
  7949  	// requirements: * Each resource can have multiple labels, up to a maximum of
  7950  	// 64. * Each label must be a key-value pair. * Keys have a minimum length of 1
  7951  	// character and a maximum length of 63 characters and cannot be empty. Values
  7952  	// can be empty and have a maximum length of 63 characters. * Keys and values
  7953  	// can contain only lowercase letters, numeric characters, underscores, and
  7954  	// dashes. All characters must use UTF-8 encoding, and international characters
  7955  	// are allowed. * The key portion of a label must be unique. However, you can
  7956  	// use the same key with multiple resources. * Keys must start with a lowercase
  7957  	// letter or international character. See Requirements for labels
  7958  	// (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  7959  	// for more details.
  7960  	UserLabels map[string]string `json:"userLabels,omitempty"`
  7961  	// ValidateOnly: Use validate only mode for this recommendation query. If set
  7962  	// to true, a fake model will be used that returns arbitrary Document IDs. Note
  7963  	// that the validate only mode should only be used for testing the API, or if
  7964  	// the model is not ready.
  7965  	ValidateOnly bool `json:"validateOnly,omitempty"`
  7966  	// ForceSendFields is a list of field names (e.g. "Filter") to unconditionally
  7967  	// include in API requests. By default, fields with empty or default values are
  7968  	// omitted from API requests. See
  7969  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7970  	// details.
  7971  	ForceSendFields []string `json:"-"`
  7972  	// NullFields is a list of field names (e.g. "Filter") to include in API
  7973  	// requests with the JSON null value. By default, fields with empty values are
  7974  	// omitted from API requests. See
  7975  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7976  	NullFields []string `json:"-"`
  7977  }
  7978  
  7979  func (s *GoogleCloudDiscoveryengineV1alphaRecommendRequest) MarshalJSON() ([]byte, error) {
  7980  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecommendRequest
  7981  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7982  }
  7983  
  7984  // GoogleCloudDiscoveryengineV1alphaRecommendResponse: Response message for
  7985  // Recommend method.
  7986  type GoogleCloudDiscoveryengineV1alphaRecommendResponse struct {
  7987  	// AttributionToken: A unique attribution token. This should be included in the
  7988  	// UserEvent logs resulting from this recommendation, which enables accurate
  7989  	// attribution of recommendation model performance.
  7990  	AttributionToken string `json:"attributionToken,omitempty"`
  7991  	// MissingIds: IDs of documents in the request that were missing from the
  7992  	// default Branch associated with the requested ServingConfig.
  7993  	MissingIds []string `json:"missingIds,omitempty"`
  7994  	// Results: A list of recommended Documents. The order represents the ranking
  7995  	// (from the most relevant Document to the least).
  7996  	Results []*GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult `json:"results,omitempty"`
  7997  	// ValidateOnly: True if RecommendRequest.validate_only was set.
  7998  	ValidateOnly bool `json:"validateOnly,omitempty"`
  7999  
  8000  	// ServerResponse contains the HTTP response code and headers from the server.
  8001  	googleapi.ServerResponse `json:"-"`
  8002  	// ForceSendFields is a list of field names (e.g. "AttributionToken") 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. "AttributionToken") to include in
  8009  	// API requests with the JSON null value. By default, fields with empty values
  8010  	// are 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 *GoogleCloudDiscoveryengineV1alphaRecommendResponse) MarshalJSON() ([]byte, error) {
  8016  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecommendResponse
  8017  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8018  }
  8019  
  8020  // GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult:
  8021  // RecommendationResult represents a generic recommendation result with
  8022  // associated metadata.
  8023  type GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult struct {
  8024  	// Document: Set if `returnDocument` is set to true in RecommendRequest.params.
  8025  	Document *GoogleCloudDiscoveryengineV1alphaDocument `json:"document,omitempty"`
  8026  	// Id: Resource ID of the recommended Document.
  8027  	Id string `json:"id,omitempty"`
  8028  	// Metadata: Additional Document metadata / annotations. Possible values: *
  8029  	// `score`: Recommendation score in double value. Is set if `returnScore` is
  8030  	// set to true in RecommendRequest.params.
  8031  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  8032  	// ForceSendFields is a list of field names (e.g. "Document") to
  8033  	// unconditionally include in API requests. By default, fields with empty or
  8034  	// default values are omitted from API requests. See
  8035  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8036  	// details.
  8037  	ForceSendFields []string `json:"-"`
  8038  	// NullFields is a list of field names (e.g. "Document") to include in API
  8039  	// requests with the JSON null value. By default, fields with empty values are
  8040  	// omitted from API requests. See
  8041  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8042  	NullFields []string `json:"-"`
  8043  }
  8044  
  8045  func (s *GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult) MarshalJSON() ([]byte, error) {
  8046  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult
  8047  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8048  }
  8049  
  8050  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata: Metadata related to
  8051  // the progress of the SiteSearchEngineService.RecrawlUris operation. This will
  8052  // be returned by the google.longrunning.Operation.metadata field.
  8053  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata struct {
  8054  	// CreateTime: Operation create time.
  8055  	CreateTime string `json:"createTime,omitempty"`
  8056  	// InvalidUris: Unique URIs in the request that don't match any TargetSite in
  8057  	// the DataStore, only match TargetSites that haven't been fully indexed, or
  8058  	// match a TargetSite with type EXCLUDE.
  8059  	InvalidUris []string `json:"invalidUris,omitempty"`
  8060  	// PendingCount: Total number of URIs that have yet to be crawled.
  8061  	PendingCount int64 `json:"pendingCount,omitempty"`
  8062  	// QuotaExceededCount: Total number of URIs that were rejected due to
  8063  	// insufficient indexing resources.
  8064  	QuotaExceededCount int64 `json:"quotaExceededCount,omitempty"`
  8065  	// SuccessCount: Total number of URIs that have been crawled so far.
  8066  	SuccessCount int64 `json:"successCount,omitempty"`
  8067  	// UpdateTime: Operation last update time. If the operation is done, this is
  8068  	// also the finish time.
  8069  	UpdateTime string `json:"updateTime,omitempty"`
  8070  	// ValidUrisCount: Total number of unique URIs in the request that are not in
  8071  	// invalid_uris.
  8072  	ValidUrisCount int64 `json:"validUrisCount,omitempty"`
  8073  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8074  	// unconditionally include in API requests. By default, fields with empty or
  8075  	// default values are omitted from API requests. See
  8076  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8077  	// details.
  8078  	ForceSendFields []string `json:"-"`
  8079  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8080  	// requests with the JSON null value. By default, fields with empty values are
  8081  	// omitted from API requests. See
  8082  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8083  	NullFields []string `json:"-"`
  8084  }
  8085  
  8086  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata) MarshalJSON() ([]byte, error) {
  8087  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata
  8088  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8089  }
  8090  
  8091  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest: Request message for
  8092  // SiteSearchEngineService.RecrawlUris method.
  8093  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest struct {
  8094  	// Uris: Required. List of URIs to crawl. At most 10K URIs are supported,
  8095  	// otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at
  8096  	// least one TargetSite in `site_search_engine`.
  8097  	Uris []string `json:"uris,omitempty"`
  8098  	// ForceSendFields is a list of field names (e.g. "Uris") to unconditionally
  8099  	// include in API requests. By default, fields with empty or default values are
  8100  	// omitted from API requests. See
  8101  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8102  	// details.
  8103  	ForceSendFields []string `json:"-"`
  8104  	// NullFields is a list of field names (e.g. "Uris") to include in API requests
  8105  	// with the JSON null value. By default, fields with empty values are omitted
  8106  	// from API requests. See
  8107  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8108  	NullFields []string `json:"-"`
  8109  }
  8110  
  8111  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest) MarshalJSON() ([]byte, error) {
  8112  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest
  8113  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8114  }
  8115  
  8116  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse: Response message for
  8117  // SiteSearchEngineService.RecrawlUris method.
  8118  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse struct {
  8119  	// FailedUris: URIs that were not crawled before the LRO terminated.
  8120  	FailedUris []string `json:"failedUris,omitempty"`
  8121  	// FailureSamples: Details for a sample of up to 10 `failed_uris`.
  8122  	FailureSamples []*GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo `json:"failureSamples,omitempty"`
  8123  	// ForceSendFields is a list of field names (e.g. "FailedUris") to
  8124  	// unconditionally include in API requests. By default, fields with empty or
  8125  	// default values are omitted from API requests. See
  8126  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8127  	// details.
  8128  	ForceSendFields []string `json:"-"`
  8129  	// NullFields is a list of field names (e.g. "FailedUris") to include in API
  8130  	// requests with the JSON null value. By default, fields with empty values are
  8131  	// omitted from API requests. See
  8132  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8133  	NullFields []string `json:"-"`
  8134  }
  8135  
  8136  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse) MarshalJSON() ([]byte, error) {
  8137  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse
  8138  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8139  }
  8140  
  8141  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo: Details
  8142  // about why a particular URI failed to be crawled. Each FailureInfo contains
  8143  // one FailureReason per CorpusType.
  8144  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo struct {
  8145  	// FailureReasons: List of failure reasons by corpus type (e.g. desktop,
  8146  	// mobile).
  8147  	FailureReasons []*GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason `json:"failureReasons,omitempty"`
  8148  	// Uri: URI that failed to be crawled.
  8149  	Uri string `json:"uri,omitempty"`
  8150  	// ForceSendFields is a list of field names (e.g. "FailureReasons") to
  8151  	// unconditionally include in API requests. By default, fields with empty or
  8152  	// default values are omitted from API requests. See
  8153  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8154  	// details.
  8155  	ForceSendFields []string `json:"-"`
  8156  	// NullFields is a list of field names (e.g. "FailureReasons") to include in
  8157  	// API requests with the JSON null value. By default, fields with empty values
  8158  	// are omitted from API requests. See
  8159  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8160  	NullFields []string `json:"-"`
  8161  }
  8162  
  8163  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo) MarshalJSON() ([]byte, error) {
  8164  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo
  8165  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8166  }
  8167  
  8168  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason:
  8169  //
  8170  //	Details about why crawling failed for a particular CorpusType, e.g.,
  8171  //
  8172  // DESKTOP and MOBILE crawling may fail for different reasons.
  8173  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason struct {
  8174  	// CorpusType: DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
  8175  	//
  8176  	// Possible values:
  8177  	//   "CORPUS_TYPE_UNSPECIFIED" - Default value.
  8178  	//   "DESKTOP" - Denotes a crawling attempt for the desktop version of a page.
  8179  	//   "MOBILE" - Denotes a crawling attempt for the mobile version of a page.
  8180  	CorpusType string `json:"corpusType,omitempty"`
  8181  	// ErrorMessage: Reason why the URI was not crawled.
  8182  	ErrorMessage string `json:"errorMessage,omitempty"`
  8183  	// ForceSendFields is a list of field names (e.g. "CorpusType") to
  8184  	// unconditionally include in API requests. By default, fields with empty or
  8185  	// default values are omitted from API requests. See
  8186  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8187  	// details.
  8188  	ForceSendFields []string `json:"-"`
  8189  	// NullFields is a list of field names (e.g. "CorpusType") to include in API
  8190  	// requests with the JSON null value. By default, fields with empty values are
  8191  	// omitted from API requests. See
  8192  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8193  	NullFields []string `json:"-"`
  8194  }
  8195  
  8196  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason) MarshalJSON() ([]byte, error) {
  8197  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason
  8198  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8199  }
  8200  
  8201  // GoogleCloudDiscoveryengineV1alphaReply: Defines a reply message to user.
  8202  type GoogleCloudDiscoveryengineV1alphaReply struct {
  8203  	// References: References in the reply.
  8204  	References []*GoogleCloudDiscoveryengineV1alphaReplyReference `json:"references,omitempty"`
  8205  	// Reply: DEPRECATED: use `summary` instead. Text reply.
  8206  	Reply string `json:"reply,omitempty"`
  8207  	// Summary: Summary based on search results.
  8208  	Summary *GoogleCloudDiscoveryengineV1alphaSearchResponseSummary `json:"summary,omitempty"`
  8209  	// ForceSendFields is a list of field names (e.g. "References") 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. "References") 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 *GoogleCloudDiscoveryengineV1alphaReply) MarshalJSON() ([]byte, error) {
  8223  	type NoMethod GoogleCloudDiscoveryengineV1alphaReply
  8224  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8225  }
  8226  
  8227  // GoogleCloudDiscoveryengineV1alphaReplyReference: Defines reference in reply.
  8228  type GoogleCloudDiscoveryengineV1alphaReplyReference struct {
  8229  	// AnchorText: Anchor text.
  8230  	AnchorText string `json:"anchorText,omitempty"`
  8231  	// End: Anchor text end index.
  8232  	End int64 `json:"end,omitempty"`
  8233  	// Start: Anchor text start index.
  8234  	Start int64 `json:"start,omitempty"`
  8235  	// Uri: URI link reference.
  8236  	Uri string `json:"uri,omitempty"`
  8237  	// ForceSendFields is a list of field names (e.g. "AnchorText") to
  8238  	// unconditionally include in API requests. By default, fields with empty or
  8239  	// default values are omitted from API requests. See
  8240  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8241  	// details.
  8242  	ForceSendFields []string `json:"-"`
  8243  	// NullFields is a list of field names (e.g. "AnchorText") to include in API
  8244  	// requests with the JSON null value. By default, fields with empty values are
  8245  	// omitted from API requests. See
  8246  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8247  	NullFields []string `json:"-"`
  8248  }
  8249  
  8250  func (s *GoogleCloudDiscoveryengineV1alphaReplyReference) MarshalJSON() ([]byte, error) {
  8251  	type NoMethod GoogleCloudDiscoveryengineV1alphaReplyReference
  8252  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8253  }
  8254  
  8255  // GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest: Request for
  8256  // ReportConsentChange method.
  8257  type GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest struct {
  8258  	// ConsentChangeAction: Required. Whether customer decides to accept or decline
  8259  	// service term. At this moment, only accept action is supported.
  8260  	//
  8261  	// Possible values:
  8262  	//   "CONSENT_CHANGE_ACTION_UNSPECIFIED" - Invalid action, user must specify
  8263  	// accept/decline
  8264  	//   "ACCEPT" - User accepts service terms.
  8265  	ConsentChangeAction string `json:"consentChangeAction,omitempty"`
  8266  	// ServiceTermId: Required. The unique identifier of the terms of service to
  8267  	// update. Available term ids: * `GA_DATA_USE_TERMS`: Terms for data use
  8268  	// (https://cloud.google.com/retail/data-use-terms). When using this service
  8269  	// term id, the acceptable service_term_version to provide is `2022-11-23`.
  8270  	ServiceTermId string `json:"serviceTermId,omitempty"`
  8271  	// ServiceTermVersion: Required. The version string of the terms of service to
  8272  	// update.
  8273  	ServiceTermVersion string `json:"serviceTermVersion,omitempty"`
  8274  	// ForceSendFields is a list of field names (e.g. "ConsentChangeAction") to
  8275  	// unconditionally include in API requests. By default, fields with empty or
  8276  	// default values are omitted from API requests. See
  8277  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8278  	// details.
  8279  	ForceSendFields []string `json:"-"`
  8280  	// NullFields is a list of field names (e.g. "ConsentChangeAction") to include
  8281  	// in API requests with the JSON null value. By default, fields with empty
  8282  	// values are omitted from API requests. See
  8283  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8284  	NullFields []string `json:"-"`
  8285  }
  8286  
  8287  func (s *GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest) MarshalJSON() ([]byte, error) {
  8288  	type NoMethod GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest
  8289  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8290  }
  8291  
  8292  // GoogleCloudDiscoveryengineV1alphaResumeEngineRequest: Request for resuming
  8293  // training of an engine.
  8294  type GoogleCloudDiscoveryengineV1alphaResumeEngineRequest struct {
  8295  }
  8296  
  8297  // GoogleCloudDiscoveryengineV1alphaSchema: Defines the structure and layout of
  8298  // a type of document data.
  8299  type GoogleCloudDiscoveryengineV1alphaSchema struct {
  8300  	// FieldConfigs: Output only. Configurations for fields of the schema.
  8301  	FieldConfigs []*GoogleCloudDiscoveryengineV1alphaFieldConfig `json:"fieldConfigs,omitempty"`
  8302  	// JsonSchema: The JSON representation of the schema.
  8303  	JsonSchema string `json:"jsonSchema,omitempty"`
  8304  	// Name: Immutable. The full resource name of the schema, in the format of
  8305  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  8306  	// {data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string
  8307  	// with a length limit of 1024 characters.
  8308  	Name string `json:"name,omitempty"`
  8309  	// StructSchema: The structured representation of the schema.
  8310  	StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
  8311  
  8312  	// ServerResponse contains the HTTP response code and headers from the server.
  8313  	googleapi.ServerResponse `json:"-"`
  8314  	// ForceSendFields is a list of field names (e.g. "FieldConfigs") to
  8315  	// unconditionally include in API requests. By default, fields with empty or
  8316  	// default values are omitted from API requests. See
  8317  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8318  	// details.
  8319  	ForceSendFields []string `json:"-"`
  8320  	// NullFields is a list of field names (e.g. "FieldConfigs") to include in API
  8321  	// requests with the JSON null value. By default, fields with empty values are
  8322  	// omitted from API requests. See
  8323  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8324  	NullFields []string `json:"-"`
  8325  }
  8326  
  8327  func (s *GoogleCloudDiscoveryengineV1alphaSchema) MarshalJSON() ([]byte, error) {
  8328  	type NoMethod GoogleCloudDiscoveryengineV1alphaSchema
  8329  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8330  }
  8331  
  8332  // GoogleCloudDiscoveryengineV1alphaSearchInfo: Detailed search information.
  8333  type GoogleCloudDiscoveryengineV1alphaSearchInfo struct {
  8334  	// Offset: An integer that specifies the current offset for pagination (the
  8335  	// 0-indexed starting location, amongst the products deemed by the API as
  8336  	// relevant). See SearchRequest.offset for definition. If this field is
  8337  	// negative, an `INVALID_ARGUMENT` is returned. This can only be set for
  8338  	// `search` events. Other event types should not set this field. Otherwise, an
  8339  	// `INVALID_ARGUMENT` error is returned.
  8340  	Offset int64 `json:"offset,omitempty"`
  8341  	// OrderBy: The order in which products are returned, if applicable. See
  8342  	// SearchRequest.order_by for definition and syntax. The value must be a UTF-8
  8343  	// encoded string with a length limit of 1,000 characters. Otherwise, an
  8344  	// `INVALID_ARGUMENT` error is returned. This can only be set for `search`
  8345  	// events. Other event types should not set this field. Otherwise, an
  8346  	// `INVALID_ARGUMENT` error is returned.
  8347  	OrderBy string `json:"orderBy,omitempty"`
  8348  	// SearchQuery: The user's search query. See SearchRequest.query for
  8349  	// definition. The value must be a UTF-8 encoded string with a length limit of
  8350  	// 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At
  8351  	// least one of search_query or PageInfo.page_category is required for `search`
  8352  	// events. Other event types should not set this field. Otherwise, an
  8353  	// `INVALID_ARGUMENT` error is returned.
  8354  	SearchQuery string `json:"searchQuery,omitempty"`
  8355  	// ForceSendFields is a list of field names (e.g. "Offset") to unconditionally
  8356  	// include in API requests. By default, fields with empty or default values are
  8357  	// omitted from API requests. See
  8358  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8359  	// details.
  8360  	ForceSendFields []string `json:"-"`
  8361  	// NullFields is a list of field names (e.g. "Offset") to include in API
  8362  	// requests with the JSON null value. By default, fields with empty values are
  8363  	// omitted from API requests. See
  8364  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8365  	NullFields []string `json:"-"`
  8366  }
  8367  
  8368  func (s *GoogleCloudDiscoveryengineV1alphaSearchInfo) MarshalJSON() ([]byte, error) {
  8369  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchInfo
  8370  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8371  }
  8372  
  8373  // GoogleCloudDiscoveryengineV1alphaSearchRequest: Request message for
  8374  // SearchService.Search method.
  8375  type GoogleCloudDiscoveryengineV1alphaSearchRequest struct {
  8376  	// BoostSpec: Boost specification to boost certain documents. For more
  8377  	// information on boosting, see Boosting
  8378  	// (https://cloud.google.com/retail/docs/boosting#boost)
  8379  	BoostSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec `json:"boostSpec,omitempty"`
  8380  	// Branch: The branch resource name, such as
  8381  	// `projects/*/locations/global/collections/default_collection/dataStores/defaul
  8382  	// t_data_store/branches/0`. Use `default_branch` as the branch ID or leave
  8383  	// this field empty, to search documents under the default branch.
  8384  	Branch string `json:"branch,omitempty"`
  8385  	// CanonicalFilter: The default filter that is applied when a user performs a
  8386  	// search without checking any filters on the search page. The filter applied
  8387  	// to every search request when quality improvement such as query expansion is
  8388  	// needed. In the case a query does not have a sufficient amount of results
  8389  	// this filter will be used to determine whether or not to enable the query
  8390  	// expansion flow. The original filter will still be used for the query
  8391  	// expanded search. This field is strongly recommended to achieve high search
  8392  	// quality. For more information about filter syntax, see SearchRequest.filter.
  8393  	CanonicalFilter string `json:"canonicalFilter,omitempty"`
  8394  	// ContentSearchSpec: A specification for configuring the behavior of content
  8395  	// search.
  8396  	ContentSearchSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec `json:"contentSearchSpec,omitempty"`
  8397  	// CustomFineTuningSpec: Custom fine tuning configs.
  8398  	CustomFineTuningSpec *GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec `json:"customFineTuningSpec,omitempty"`
  8399  	// DataStoreSpecs: A list of data store specs to apply on a search call.
  8400  	DataStoreSpecs []*GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec `json:"dataStoreSpecs,omitempty"`
  8401  	// EmbeddingSpec: Uses the provided embedding to do additional semantic
  8402  	// document retrieval. The retrieval is based on the dot product of
  8403  	// SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document
  8404  	// embedding that is provided in
  8405  	// SearchRequest.EmbeddingSpec.EmbeddingVector.field_path. If
  8406  	// SearchRequest.EmbeddingSpec.EmbeddingVector.field_path is not provided, it
  8407  	// will use ServingConfig.EmbeddingConfig.field_path.
  8408  	EmbeddingSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec `json:"embeddingSpec,omitempty"`
  8409  	// FacetSpecs: Facet specifications for faceted search. If empty, no facets are
  8410  	// returned. A maximum of 100 values are allowed. Otherwise, an
  8411  	// `INVALID_ARGUMENT` error is returned.
  8412  	FacetSpecs []*GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec `json:"facetSpecs,omitempty"`
  8413  	// Filter: The filter syntax consists of an expression language for
  8414  	// constructing a predicate from one or more fields of the documents being
  8415  	// filtered. Filter expression is case-sensitive. If this field is
  8416  	// unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI
  8417  	// Search is done by mapping the LHS filter key to a key property defined in
  8418  	// the Vertex AI Search backend -- this mapping is defined by the customer in
  8419  	// their schema. For example a media customer might have a field 'name' in
  8420  	// their schema. In this case the filter would look like this: filter -->
  8421  	// name:'ANY("king kong")' For more information about filtering including
  8422  	// syntax and filter operators, see Filter
  8423  	// (https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
  8424  	Filter string `json:"filter,omitempty"`
  8425  	// ImageQuery: Raw image query.
  8426  	ImageQuery *GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery `json:"imageQuery,omitempty"`
  8427  	// Offset: A 0-indexed integer that specifies the current offset (that is,
  8428  	// starting result location, amongst the Documents deemed by the API as
  8429  	// relevant) in search results. This field is only considered if page_token is
  8430  	// unset. If this field is negative, an `INVALID_ARGUMENT` is returned.
  8431  	Offset int64 `json:"offset,omitempty"`
  8432  	// OrderBy: The order in which documents are returned. Documents can be ordered
  8433  	// by a field in an Document object. Leave it unset if ordered by relevance.
  8434  	// `order_by` expression is case-sensitive. For more information on ordering
  8435  	// for retail search, see Ordering
  8436  	// (https://cloud.google.com/retail/docs/filter-and-order#order) If this field
  8437  	// is unrecognizable, an `INVALID_ARGUMENT` is returned.
  8438  	OrderBy string `json:"orderBy,omitempty"`
  8439  	// PageSize: Maximum number of Documents to return. The maximum allowed value
  8440  	// depends on the data type. Values above the maximum value are coerced to the
  8441  	// maximum value. * Websites with basic indexing: Default `10`, Maximum `25`. *
  8442  	// Websites with advanced indexing: Default `25`, Maximum `50`. * Other:
  8443  	// Default `50`, Maximum `100`. If this field is negative, an
  8444  	// `INVALID_ARGUMENT` is returned.
  8445  	PageSize int64 `json:"pageSize,omitempty"`
  8446  	// PageToken: A page token received from a previous SearchService.Search call.
  8447  	// Provide this to retrieve the subsequent page. When paginating, all other
  8448  	// parameters provided to SearchService.Search must match the call that
  8449  	// provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.
  8450  	PageToken string `json:"pageToken,omitempty"`
  8451  	// Params: Additional search parameters. For public website search only,
  8452  	// supported values are: * `user_country_code`: string. Default empty. If set
  8453  	// to non-empty, results are restricted or boosted based on the location
  8454  	// provided. Example: user_country_code: "au" For available codes see Country
  8455  	// Codes
  8456  	// (https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
  8457  	// * `search_type`: double. Default empty. Enables non-webpage searching
  8458  	// depending on the value. The only valid non-default value is 1, which enables
  8459  	// image searching. Example: search_type: 1
  8460  	Params googleapi.RawMessage `json:"params,omitempty"`
  8461  	// Query: Raw search query.
  8462  	Query string `json:"query,omitempty"`
  8463  	// QueryExpansionSpec: The query expansion specification that specifies the
  8464  	// conditions under which query expansion occurs.
  8465  	QueryExpansionSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec `json:"queryExpansionSpec,omitempty"`
  8466  	// RankingExpression: The ranking expression controls the customized ranking on
  8467  	// retrieval documents. This overrides ServingConfig.ranking_expression. The
  8468  	// ranking expression is a single function or multiple functions that are joint
  8469  	// by "+". * ranking_expression = function, { " + ", function }; Supported
  8470  	// functions: * double * relevance_score * double *
  8471  	// dotProduct(embedding_field_path) Function variables: `relevance_score`:
  8472  	// pre-defined keywords, used for measure relevance between query and document.
  8473  	// `embedding_field_path`: the document embedding field used with query
  8474  	// embedding vector. `dotProduct`: embedding function between
  8475  	// embedding_field_path and query embedding vector. Example ranking expression:
  8476  	// If document has an embedding field doc_embedding, the ranking expression
  8477  	// could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
  8478  	RankingExpression string `json:"rankingExpression,omitempty"`
  8479  	// SafeSearch: Whether to turn on safe search. This is only supported for
  8480  	// website search.
  8481  	SafeSearch bool `json:"safeSearch,omitempty"`
  8482  	// SpellCorrectionSpec: The spell correction specification that specifies the
  8483  	// mode under which spell correction takes effect.
  8484  	SpellCorrectionSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"`
  8485  	// UserInfo: Information about the end user. Highly recommended for analytics.
  8486  	// UserInfo.user_agent is used to deduce `device_type` for analytics.
  8487  	UserInfo *GoogleCloudDiscoveryengineV1alphaUserInfo `json:"userInfo,omitempty"`
  8488  	// UserLabels: The user labels applied to a resource must meet the following
  8489  	// requirements: * Each resource can have multiple labels, up to a maximum of
  8490  	// 64. * Each label must be a key-value pair. * Keys have a minimum length of 1
  8491  	// character and a maximum length of 63 characters and cannot be empty. Values
  8492  	// can be empty and have a maximum length of 63 characters. * Keys and values
  8493  	// can contain only lowercase letters, numeric characters, underscores, and
  8494  	// dashes. All characters must use UTF-8 encoding, and international characters
  8495  	// are allowed. * The key portion of a label must be unique. However, you can
  8496  	// use the same key with multiple resources. * Keys must start with a lowercase
  8497  	// letter or international character. See Google Cloud Document
  8498  	// (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  8499  	// for more details.
  8500  	UserLabels map[string]string `json:"userLabels,omitempty"`
  8501  	// UserPseudoId: A unique identifier for tracking visitors. For example, this
  8502  	// could be implemented with an HTTP cookie, which should be able to uniquely
  8503  	// identify a visitor on a single device. This unique identifier should not
  8504  	// change if the visitor logs in or out of the website. This field should NOT
  8505  	// have a fixed value such as `unknown_visitor`. This should be the same
  8506  	// identifier as UserEvent.user_pseudo_id and
  8507  	// CompleteQueryRequest.user_pseudo_id The field must be a UTF-8 encoded string
  8508  	// with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT`
  8509  	// error is returned.
  8510  	UserPseudoId string `json:"userPseudoId,omitempty"`
  8511  	// ForceSendFields is a list of field names (e.g. "BoostSpec") to
  8512  	// unconditionally include in API requests. By default, fields with empty or
  8513  	// default values are omitted from API requests. See
  8514  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8515  	// details.
  8516  	ForceSendFields []string `json:"-"`
  8517  	// NullFields is a list of field names (e.g. "BoostSpec") to include in API
  8518  	// requests with the JSON null value. By default, fields with empty values are
  8519  	// omitted from API requests. See
  8520  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8521  	NullFields []string `json:"-"`
  8522  }
  8523  
  8524  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequest) MarshalJSON() ([]byte, error) {
  8525  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequest
  8526  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8527  }
  8528  
  8529  // GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec: Boost specification
  8530  // to boost certain documents.
  8531  type GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec struct {
  8532  	// ConditionBoostSpecs: Condition boost specifications. If a document matches
  8533  	// multiple conditions in the specifictions, boost scores from these
  8534  	// specifications are all applied and combined in a non-linear way. Maximum
  8535  	// number of specifications is 20.
  8536  	ConditionBoostSpecs []*GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec `json:"conditionBoostSpecs,omitempty"`
  8537  	// ForceSendFields is a list of field names (e.g. "ConditionBoostSpecs") to
  8538  	// unconditionally include in API requests. By default, fields with empty or
  8539  	// default values are omitted from API requests. See
  8540  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8541  	// details.
  8542  	ForceSendFields []string `json:"-"`
  8543  	// NullFields is a list of field names (e.g. "ConditionBoostSpecs") to include
  8544  	// in API requests with the JSON null value. By default, fields with empty
  8545  	// values are omitted from API requests. See
  8546  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8547  	NullFields []string `json:"-"`
  8548  }
  8549  
  8550  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec) MarshalJSON() ([]byte, error) {
  8551  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec
  8552  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8553  }
  8554  
  8555  // GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec:
  8556  // Boost applies to documents which match a condition.
  8557  type GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec struct {
  8558  	// Boost: Strength of the condition boost, which should be in [-1, 1]. Negative
  8559  	// boost means demotion. Default is 0.0. Setting to 1.0 gives the document a
  8560  	// big promotion. However, it does not necessarily mean that the boosted
  8561  	// document will be the top result at all times, nor that other documents will
  8562  	// be excluded. Results could still be shown even when none of them matches the
  8563  	// condition. And results that are significantly more relevant to the search
  8564  	// query can still trump your heavily favored but irrelevant documents. Setting
  8565  	// to -1.0 gives the document a big demotion. However, results that are deeply
  8566  	// relevant might still be shown. The document will have an upstream battle to
  8567  	// get a fairly high ranking, but it is not blocked out completely. Setting to
  8568  	// 0.0 means no boost applied. The boosting condition is ignored. Only one of
  8569  	// the (condition, boost) combination or the boost_control_spec below are set.
  8570  	// If both are set then the global boost is ignored and the more fine-grained
  8571  	// boost_control_spec is applied.
  8572  	Boost float64 `json:"boost,omitempty"`
  8573  	// BoostControlSpec: Complex specification for custom ranking based on customer
  8574  	// defined attribute value.
  8575  	BoostControlSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec `json:"boostControlSpec,omitempty"`
  8576  	// Condition: An expression which specifies a boost condition. The syntax and
  8577  	// supported fields are the same as a filter expression. See
  8578  	// SearchRequest.filter for detail syntax and limitations. Examples: * To boost
  8579  	// documents with document ID "doc_1" or "doc_2", and color "Red" or "Blue":
  8580  	// `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))`
  8581  	Condition string `json:"condition,omitempty"`
  8582  	// ForceSendFields is a list of field names (e.g. "Boost") to unconditionally
  8583  	// include in API requests. By default, fields with empty or default values are
  8584  	// omitted from API requests. See
  8585  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8586  	// details.
  8587  	ForceSendFields []string `json:"-"`
  8588  	// NullFields is a list of field names (e.g. "Boost") to include in API
  8589  	// requests with the JSON null value. By default, fields with empty values are
  8590  	// omitted from API requests. See
  8591  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8592  	NullFields []string `json:"-"`
  8593  }
  8594  
  8595  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec) MarshalJSON() ([]byte, error) {
  8596  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec
  8597  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8598  }
  8599  
  8600  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec) UnmarshalJSON(data []byte) error {
  8601  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec
  8602  	var s1 struct {
  8603  		Boost gensupport.JSONFloat64 `json:"boost"`
  8604  		*NoMethod
  8605  	}
  8606  	s1.NoMethod = (*NoMethod)(s)
  8607  	if err := json.Unmarshal(data, &s1); err != nil {
  8608  		return err
  8609  	}
  8610  	s.Boost = float64(s1.Boost)
  8611  	return nil
  8612  }
  8613  
  8614  // GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoos
  8615  // tControlSpec: Specification for custom ranking based on customer specified
  8616  // attribute value. It provides more controls for customized ranking than the
  8617  // simple (condition, boost) combination above.
  8618  type GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec struct {
  8619  	// AttributeType: The attribute type to be used to determine the boost amount.
  8620  	// The attribute value can be derived from the field value of the specified
  8621  	// field_name. In the case of numerical it is straightforward i.e.
  8622  	// attribute_value = numerical_field_value. In the case of freshness however,
  8623  	// attribute_value = (time.now() - datetime_field_value).
  8624  	//
  8625  	// Possible values:
  8626  	//   "ATTRIBUTE_TYPE_UNSPECIFIED" - Unspecified AttributeType.
  8627  	//   "NUMERICAL" - The value of the numerical field will be used to dynamically
  8628  	// update the boost amount. In this case, the attribute_value (the x value) of
  8629  	// the control point will be the actual value of the numerical field for which
  8630  	// the boost_amount is specified.
  8631  	//   "FRESHNESS" - For the freshness use case the attribute value will be the
  8632  	// duration between the current time and the date in the datetime field
  8633  	// specified. The value must be formatted as an XSD `dayTimeDuration` value (a
  8634  	// restricted subset of an ISO 8601 duration value). The pattern for this is:
  8635  	// `nDnM]`. E.g. `5D`, `3DT12H30M`, `T24H`.
  8636  	AttributeType string `json:"attributeType,omitempty"`
  8637  	// ControlPoints: The control points used to define the curve. The monotonic
  8638  	// function (defined through the interpolation_type above) passes through the
  8639  	// control points listed here.
  8640  	ControlPoints []*GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint `json:"controlPoints,omitempty"`
  8641  	// FieldName: The name of the field whose value will be used to determine the
  8642  	// boost amount.
  8643  	FieldName string `json:"fieldName,omitempty"`
  8644  	// InterpolationType: The interpolation type to be applied to connect the
  8645  	// control points listed below.
  8646  	//
  8647  	// Possible values:
  8648  	//   "INTERPOLATION_TYPE_UNSPECIFIED" - Interpolation type is unspecified. In
  8649  	// this case, it defaults to Linear.
  8650  	//   "LINEAR" - Piecewise linear interpolation will be applied.
  8651  	InterpolationType string `json:"interpolationType,omitempty"`
  8652  	// ForceSendFields is a list of field names (e.g. "AttributeType") to
  8653  	// unconditionally include in API requests. By default, fields with empty or
  8654  	// default values are omitted from API requests. See
  8655  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8656  	// details.
  8657  	ForceSendFields []string `json:"-"`
  8658  	// NullFields is a list of field names (e.g. "AttributeType") to include in API
  8659  	// requests with the JSON null value. By default, fields with empty values are
  8660  	// omitted from API requests. See
  8661  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8662  	NullFields []string `json:"-"`
  8663  }
  8664  
  8665  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec) MarshalJSON() ([]byte, error) {
  8666  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec
  8667  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8668  }
  8669  
  8670  // GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoos
  8671  // tControlSpecControlPoint: The control points used to define the curve. The
  8672  // curve defined through these control points can only be monotonically
  8673  // increasing or decreasing(constant values are acceptable).
  8674  type GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint struct {
  8675  	// AttributeValue: Can be one of: 1. The numerical field value. 2. The duration
  8676  	// spec for freshness: The value must be formatted as an XSD `dayTimeDuration`
  8677  	// value (a restricted subset of an ISO 8601 duration value). The pattern for
  8678  	// this is: `nDnM]`.
  8679  	AttributeValue string `json:"attributeValue,omitempty"`
  8680  	// BoostAmount: The value between -1 to 1 by which to boost the score if the
  8681  	// attribute_value evaluates to the value specified above.
  8682  	BoostAmount float64 `json:"boostAmount,omitempty"`
  8683  	// ForceSendFields is a list of field names (e.g. "AttributeValue") to
  8684  	// unconditionally include in API requests. By default, fields with empty or
  8685  	// default values are omitted from API requests. See
  8686  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8687  	// details.
  8688  	ForceSendFields []string `json:"-"`
  8689  	// NullFields is a list of field names (e.g. "AttributeValue") to include in
  8690  	// API requests with the JSON null value. By default, fields with empty values
  8691  	// are omitted from API requests. See
  8692  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8693  	NullFields []string `json:"-"`
  8694  }
  8695  
  8696  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint) MarshalJSON() ([]byte, error) {
  8697  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint
  8698  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8699  }
  8700  
  8701  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint) UnmarshalJSON(data []byte) error {
  8702  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint
  8703  	var s1 struct {
  8704  		BoostAmount gensupport.JSONFloat64 `json:"boostAmount"`
  8705  		*NoMethod
  8706  	}
  8707  	s1.NoMethod = (*NoMethod)(s)
  8708  	if err := json.Unmarshal(data, &s1); err != nil {
  8709  		return err
  8710  	}
  8711  	s.BoostAmount = float64(s1.BoostAmount)
  8712  	return nil
  8713  }
  8714  
  8715  // GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec: A
  8716  // specification for configuring the behavior of content search.
  8717  type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec struct {
  8718  	// ChunkSpec: Specifies the chunk spec to be returned from the search response.
  8719  	// Only available if the SearchRequest.ContentSearchSpec.search_result_mode is
  8720  	// set to CHUNKS
  8721  	ChunkSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec `json:"chunkSpec,omitempty"`
  8722  	// ExtractiveContentSpec: If there is no extractive_content_spec provided,
  8723  	// there will be no extractive answer in the search response.
  8724  	ExtractiveContentSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec `json:"extractiveContentSpec,omitempty"`
  8725  	// SearchResultMode: Specifies the search result mode. If unspecified, the
  8726  	// search result mode is based on
  8727  	// DataStore.DocumentProcessingConfig.chunking_config: * If
  8728  	// DataStore.DocumentProcessingConfig.chunking_config is specified, it defaults
  8729  	// to `CHUNKS`. * Otherwise, it defaults to `DOCUMENTS`.
  8730  	//
  8731  	// Possible values:
  8732  	//   "SEARCH_RESULT_MODE_UNSPECIFIED" - Default value.
  8733  	//   "DOCUMENTS" - Returns documents in the search result.
  8734  	//   "CHUNKS" - Returns chunks in the search result. Only available if the
  8735  	// DataStore.DocumentProcessingConfig.chunking_config is specified.
  8736  	SearchResultMode string `json:"searchResultMode,omitempty"`
  8737  	// SnippetSpec: If `snippetSpec` is not specified, snippets are not included in
  8738  	// the search response.
  8739  	SnippetSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec `json:"snippetSpec,omitempty"`
  8740  	// SummarySpec: If `summarySpec` is not specified, summaries are not included
  8741  	// in the search response.
  8742  	SummarySpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec `json:"summarySpec,omitempty"`
  8743  	// ForceSendFields is a list of field names (e.g. "ChunkSpec") to
  8744  	// unconditionally include in API requests. By default, fields with empty or
  8745  	// default values are omitted from API requests. See
  8746  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8747  	// details.
  8748  	ForceSendFields []string `json:"-"`
  8749  	// NullFields is a list of field names (e.g. "ChunkSpec") to include in API
  8750  	// requests with the JSON null value. By default, fields with empty values are
  8751  	// omitted from API requests. See
  8752  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8753  	NullFields []string `json:"-"`
  8754  }
  8755  
  8756  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec) MarshalJSON() ([]byte, error) {
  8757  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec
  8758  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8759  }
  8760  
  8761  // GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec:
  8762  // Specifies the chunk spec to be returned from the search response. Only
  8763  // available if the SearchRequest.ContentSearchSpec.search_result_mode is set
  8764  // to CHUNKS
  8765  type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec struct {
  8766  	// NumNextChunks: The number of next chunks to be returned of the current
  8767  	// chunk. The maximum allowed value is 3. If not specified, no next chunks will
  8768  	// be returned.
  8769  	NumNextChunks int64 `json:"numNextChunks,omitempty"`
  8770  	// NumPreviousChunks: The number of previous chunks to be returned of the
  8771  	// current chunk. The maximum allowed value is 3. If not specified, no previous
  8772  	// chunks will be returned.
  8773  	NumPreviousChunks int64 `json:"numPreviousChunks,omitempty"`
  8774  	// ForceSendFields is a list of field names (e.g. "NumNextChunks") 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. "NumNextChunks") 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 *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec) MarshalJSON() ([]byte, error) {
  8788  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec
  8789  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8790  }
  8791  
  8792  // GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveCont
  8793  // entSpec: A specification for configuring the extractive content in a search
  8794  // response.
  8795  type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec struct {
  8796  	// MaxExtractiveAnswerCount: The maximum number of extractive answers returned
  8797  	// in each search result. An extractive answer is a verbatim answer extracted
  8798  	// from the original document, which provides a precise and contextually
  8799  	// relevant answer to the search query. If the number of matching answers is
  8800  	// less than the `max_extractive_answer_count`, return all of the answers.
  8801  	// Otherwise, return the `max_extractive_answer_count`. At most five answers
  8802  	// are returned for each SearchResult.
  8803  	MaxExtractiveAnswerCount int64 `json:"maxExtractiveAnswerCount,omitempty"`
  8804  	// MaxExtractiveSegmentCount: The max number of extractive segments returned in
  8805  	// each search result. Only applied if the DataStore is set to
  8806  	// DataStore.ContentConfig.CONTENT_REQUIRED or DataStore.solution_types is
  8807  	// SOLUTION_TYPE_CHAT. An extractive segment is a text segment extracted from
  8808  	// the original document that is relevant to the search query, and, in general,
  8809  	// more verbose than an extractive answer. The segment could then be used as
  8810  	// input for LLMs to generate summaries and answers. If the number of matching
  8811  	// segments is less than `max_extractive_segment_count`, return all of the
  8812  	// segments. Otherwise, return the `max_extractive_segment_count`.
  8813  	MaxExtractiveSegmentCount int64 `json:"maxExtractiveSegmentCount,omitempty"`
  8814  	// NumNextSegments: Return at most `num_next_segments` segments after each
  8815  	// selected segments.
  8816  	NumNextSegments int64 `json:"numNextSegments,omitempty"`
  8817  	// NumPreviousSegments: Specifies whether to also include the adjacent from
  8818  	// each selected segments. Return at most `num_previous_segments` segments
  8819  	// before each selected segments.
  8820  	NumPreviousSegments int64 `json:"numPreviousSegments,omitempty"`
  8821  	// ReturnExtractiveSegmentScore: Specifies whether to return the confidence
  8822  	// score from the extractive segments in each search result. This feature is
  8823  	// available only for new or allowlisted data stores. To allowlist your data
  8824  	// store, contact your Customer Engineer. The default value is `false`.
  8825  	ReturnExtractiveSegmentScore bool `json:"returnExtractiveSegmentScore,omitempty"`
  8826  	// ForceSendFields is a list of field names (e.g. "MaxExtractiveAnswerCount")
  8827  	// to unconditionally include in API requests. By default, fields with empty or
  8828  	// default values are omitted from API requests. See
  8829  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8830  	// details.
  8831  	ForceSendFields []string `json:"-"`
  8832  	// NullFields is a list of field names (e.g. "MaxExtractiveAnswerCount") to
  8833  	// include in API requests with the JSON null value. By default, fields with
  8834  	// empty values are omitted from API requests. See
  8835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8836  	NullFields []string `json:"-"`
  8837  }
  8838  
  8839  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec) MarshalJSON() ([]byte, error) {
  8840  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec
  8841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8842  }
  8843  
  8844  // GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec:
  8845  // A specification for configuring snippets in a search response.
  8846  type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec struct {
  8847  	// MaxSnippetCount: [DEPRECATED] This field is deprecated. To control snippet
  8848  	// return, use `return_snippet` field. For backwards compatibility, we will
  8849  	// return snippet if max_snippet_count > 0.
  8850  	MaxSnippetCount int64 `json:"maxSnippetCount,omitempty"`
  8851  	// ReferenceOnly: [DEPRECATED] This field is deprecated and will have no affect
  8852  	// on the snippet.
  8853  	ReferenceOnly bool `json:"referenceOnly,omitempty"`
  8854  	// ReturnSnippet: If `true`, then return snippet. If no snippet can be
  8855  	// generated, we return "No snippet is available for this page." A
  8856  	// `snippet_status` with `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be
  8857  	// returned.
  8858  	ReturnSnippet bool `json:"returnSnippet,omitempty"`
  8859  	// ForceSendFields is a list of field names (e.g. "MaxSnippetCount") to
  8860  	// unconditionally include in API requests. By default, fields with empty or
  8861  	// default values are omitted from API requests. See
  8862  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8863  	// details.
  8864  	ForceSendFields []string `json:"-"`
  8865  	// NullFields is a list of field names (e.g. "MaxSnippetCount") to include in
  8866  	// API requests with the JSON null value. By default, fields with empty values
  8867  	// are omitted from API requests. See
  8868  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8869  	NullFields []string `json:"-"`
  8870  }
  8871  
  8872  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec) MarshalJSON() ([]byte, error) {
  8873  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec
  8874  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8875  }
  8876  
  8877  // GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec:
  8878  // A specification for configuring a summary returned in a search response.
  8879  type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec struct {
  8880  	// IgnoreAdversarialQuery: Specifies whether to filter out adversarial queries.
  8881  	// The default value is `false`. Google employs search-query classification to
  8882  	// detect adversarial queries. No summary is returned if the search query is
  8883  	// classified as an adversarial query. For example, a user might ask a question
  8884  	// regarding negative comments about the company or submit a query designed to
  8885  	// generate unsafe, policy-violating output. If this field is set to `true`, we
  8886  	// skip generating summaries for adversarial queries and return fallback
  8887  	// messages instead.
  8888  	IgnoreAdversarialQuery bool `json:"ignoreAdversarialQuery,omitempty"`
  8889  	// IgnoreNonSummarySeekingQuery: Specifies whether to filter out queries that
  8890  	// are not summary-seeking. The default value is `false`. Google employs
  8891  	// search-query classification to detect summary-seeking queries. No summary is
  8892  	// returned if the search query is classified as a non-summary seeking query.
  8893  	// For example, `why is the sky blue` and `Who is the best soccer player in the
  8894  	// world?` are summary-seeking queries, but `SFO airport` and `world cup 2026`
  8895  	// are not. They are most likely navigational queries. If this field is set to
  8896  	// `true`, we skip generating summaries for non-summary seeking queries and
  8897  	// return fallback messages instead.
  8898  	IgnoreNonSummarySeekingQuery bool `json:"ignoreNonSummarySeekingQuery,omitempty"`
  8899  	// IncludeCitations: Specifies whether to include citations in the summary. The
  8900  	// default value is `false`. When this field is set to `true`, summaries
  8901  	// include in-line citation numbers. Example summary including citations:
  8902  	// BigQuery is Google Cloud's fully managed and completely serverless
  8903  	// enterprise data warehouse [1]. BigQuery supports all data types, works
  8904  	// across clouds, and has built-in machine learning and business intelligence,
  8905  	// all within a unified platform [2, 3]. The citation numbers refer to the
  8906  	// returned search results and are 1-indexed. For example, [1] means that the
  8907  	// sentence is attributed to the first search result. [2, 3] means that the
  8908  	// sentence is attributed to both the second and third search results.
  8909  	IncludeCitations bool `json:"includeCitations,omitempty"`
  8910  	// LanguageCode: Language code for Summary. Use language tags defined by BCP47
  8911  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an
  8912  	// experimental feature.
  8913  	LanguageCode string `json:"languageCode,omitempty"`
  8914  	// ModelPromptSpec: If specified, the spec will be used to modify the prompt
  8915  	// provided to the LLM.
  8916  	ModelPromptSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec `json:"modelPromptSpec,omitempty"`
  8917  	// ModelSpec: If specified, the spec will be used to modify the model
  8918  	// specification provided to the LLM.
  8919  	ModelSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec `json:"modelSpec,omitempty"`
  8920  	// SummaryResultCount: The number of top results to generate the summary from.
  8921  	// If the number of results returned is less than `summaryResultCount`, the
  8922  	// summary is generated from all of the results. At most 10 results for
  8923  	// documents mode, or 50 for chunks mode, can be used to generate a summary.
  8924  	// The chunks mode is used when
  8925  	// SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.
  8926  	SummaryResultCount int64 `json:"summaryResultCount,omitempty"`
  8927  	// UseSemanticChunks: If true, answer will be generated from most relevant
  8928  	// chunks from top search results. This feature will improve summary quality.
  8929  	// Note that with this feature enabled, not all top search results will be
  8930  	// referenced and included in the reference list, so the citation source index
  8931  	// only points to the search results listed in the reference list.
  8932  	UseSemanticChunks bool `json:"useSemanticChunks,omitempty"`
  8933  	// ForceSendFields is a list of field names (e.g. "IgnoreAdversarialQuery") to
  8934  	// unconditionally include in API requests. By default, fields with empty or
  8935  	// default values are omitted from API requests. See
  8936  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8937  	// details.
  8938  	ForceSendFields []string `json:"-"`
  8939  	// NullFields is a list of field names (e.g. "IgnoreAdversarialQuery") to
  8940  	// include in API requests with the JSON null value. By default, fields with
  8941  	// empty values are omitted from API requests. See
  8942  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8943  	NullFields []string `json:"-"`
  8944  }
  8945  
  8946  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec) MarshalJSON() ([]byte, error) {
  8947  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec
  8948  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8949  }
  8950  
  8951  // GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecMod
  8952  // elPromptSpec: Specification of the prompt to use with the model.
  8953  type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec struct {
  8954  	// Preamble: Text at the beginning of the prompt that instructs the assistant.
  8955  	// Examples are available in the user guide.
  8956  	Preamble string `json:"preamble,omitempty"`
  8957  	// ForceSendFields is a list of field names (e.g. "Preamble") to
  8958  	// unconditionally include in API requests. By default, fields with empty or
  8959  	// default values are omitted from API requests. See
  8960  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8961  	// details.
  8962  	ForceSendFields []string `json:"-"`
  8963  	// NullFields is a list of field names (e.g. "Preamble") to include in API
  8964  	// requests with the JSON null value. By default, fields with empty values are
  8965  	// omitted from API requests. See
  8966  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8967  	NullFields []string `json:"-"`
  8968  }
  8969  
  8970  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec) MarshalJSON() ([]byte, error) {
  8971  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec
  8972  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8973  }
  8974  
  8975  // GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecMod
  8976  // elSpec: Specification of the model.
  8977  type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec struct {
  8978  	// Version: The model version used to generate the summary. Supported values
  8979  	// are: * `stable`: string. Default value when no value is specified. Uses a
  8980  	// generally available, fine-tuned model. For more information, see Answer
  8981  	// generation model versions and lifecycle
  8982  	// (https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
  8983  	// * `preview`: string. (Public preview) Uses a preview model. For more
  8984  	// information, see Answer generation model versions and lifecycle
  8985  	// (https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
  8986  	Version string `json:"version,omitempty"`
  8987  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
  8988  	// include in API requests. By default, fields with empty or default values are
  8989  	// omitted from API requests. See
  8990  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8991  	// details.
  8992  	ForceSendFields []string `json:"-"`
  8993  	// NullFields is a list of field names (e.g. "Version") to include in API
  8994  	// requests with the JSON null value. By default, fields with empty values are
  8995  	// omitted from API requests. See
  8996  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8997  	NullFields []string `json:"-"`
  8998  }
  8999  
  9000  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec) MarshalJSON() ([]byte, error) {
  9001  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec
  9002  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9003  }
  9004  
  9005  // GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec: A struct to
  9006  // define data stores to filter on in a search call.
  9007  type GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec struct {
  9008  	// DataStore: Required. Full resource name of DataStore, such as
  9009  	// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
  9010  	// es/{data_store_id}`.
  9011  	DataStore string `json:"dataStore,omitempty"`
  9012  	// ForceSendFields is a list of field names (e.g. "DataStore") to
  9013  	// unconditionally include in API requests. By default, fields with empty or
  9014  	// default values are omitted from API requests. See
  9015  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9016  	// details.
  9017  	ForceSendFields []string `json:"-"`
  9018  	// NullFields is a list of field names (e.g. "DataStore") to include in API
  9019  	// requests with the JSON null value. By default, fields with empty values are
  9020  	// omitted from API requests. See
  9021  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9022  	NullFields []string `json:"-"`
  9023  }
  9024  
  9025  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec) MarshalJSON() ([]byte, error) {
  9026  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec
  9027  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9028  }
  9029  
  9030  // GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec: The
  9031  // specification that uses customized query embedding vector to do semantic
  9032  // document retrieval.
  9033  type GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec struct {
  9034  	// EmbeddingVectors: The embedding vector used for retrieval. Limit to 1.
  9035  	EmbeddingVectors []*GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector `json:"embeddingVectors,omitempty"`
  9036  	// ForceSendFields is a list of field names (e.g. "EmbeddingVectors") 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. "EmbeddingVectors") to include in
  9043  	// API requests with the JSON null value. By default, fields with empty values
  9044  	// 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 *GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec) MarshalJSON() ([]byte, error) {
  9050  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec
  9051  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9052  }
  9053  
  9054  // GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector:
  9055  // Embedding vector.
  9056  type GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector struct {
  9057  	// FieldPath: Embedding field path in schema.
  9058  	FieldPath string `json:"fieldPath,omitempty"`
  9059  	// Vector: Query embedding vector.
  9060  	Vector []float64 `json:"vector,omitempty"`
  9061  	// ForceSendFields is a list of field names (e.g. "FieldPath") to
  9062  	// unconditionally include in API requests. By default, fields with empty or
  9063  	// default values are omitted from API requests. See
  9064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9065  	// details.
  9066  	ForceSendFields []string `json:"-"`
  9067  	// NullFields is a list of field names (e.g. "FieldPath") to include in API
  9068  	// requests with the JSON null value. By default, fields with empty values are
  9069  	// omitted from API requests. See
  9070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9071  	NullFields []string `json:"-"`
  9072  }
  9073  
  9074  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector) MarshalJSON() ([]byte, error) {
  9075  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector
  9076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9077  }
  9078  
  9079  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector) UnmarshalJSON(data []byte) error {
  9080  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector
  9081  	var s1 struct {
  9082  		Vector []gensupport.JSONFloat64 `json:"vector"`
  9083  		*NoMethod
  9084  	}
  9085  	s1.NoMethod = (*NoMethod)(s)
  9086  	if err := json.Unmarshal(data, &s1); err != nil {
  9087  		return err
  9088  	}
  9089  	s.Vector = make([]float64, len(s1.Vector))
  9090  	for i := range s1.Vector {
  9091  		s.Vector[i] = float64(s1.Vector[i])
  9092  	}
  9093  	return nil
  9094  }
  9095  
  9096  // GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec: A facet
  9097  // specification to perform faceted search.
  9098  type GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec struct {
  9099  	// EnableDynamicPosition: Enables dynamic position for this facet. If set to
  9100  	// true, the position of this facet among all facets in the response is
  9101  	// determined automatically. If dynamic facets are enabled, it is ordered
  9102  	// together. If set to false, the position of this facet in the response is the
  9103  	// same as in the request, and it is ranked before the facets with dynamic
  9104  	// position enable and all dynamic facets. For example, you may always want to
  9105  	// have rating facet returned in the response, but it's not necessarily to
  9106  	// always display the rating facet at the top. In that case, you can set
  9107  	// enable_dynamic_position to true so that the position of rating facet in
  9108  	// response is determined automatically. Another example, assuming you have the
  9109  	// following facets in the request: * "rating", enable_dynamic_position = true
  9110  	// * "price", enable_dynamic_position = false * "brands",
  9111  	// enable_dynamic_position = false And also you have a dynamic facets enabled,
  9112  	// which generates a facet `gender`. Then the final order of the facets in the
  9113  	// response can be ("price", "brands", "rating", "gender") or ("price",
  9114  	// "brands", "gender", "rating") depends on how API orders "gender" and
  9115  	// "rating" facets. However, notice that "price" and "brands" are always ranked
  9116  	// at first and second position because their enable_dynamic_position is false.
  9117  	EnableDynamicPosition bool `json:"enableDynamicPosition,omitempty"`
  9118  	// ExcludedFilterKeys: List of keys to exclude when faceting. By default,
  9119  	// FacetKey.key is not excluded from the filter unless it is listed in this
  9120  	// field. Listing a facet key in this field allows its values to appear as
  9121  	// facet results, even when they are filtered out of search results. Using this
  9122  	// field does not affect what search results are returned. For example, suppose
  9123  	// there are 100 documents with the color facet "Red" and 200 documents with
  9124  	// the color facet "Blue". A query containing the filter "color:ANY("Red")" and
  9125  	// having "color" as FacetKey.key would by default return only "Red" documents
  9126  	// in the search results, and also return "Red" with count 100 as the only
  9127  	// color facet. Although there are also blue documents available, "Blue" would
  9128  	// not be shown as an available facet value. If "color" is listed in
  9129  	// "excludedFilterKeys", then the query returns the facet values "Red" with
  9130  	// count 100 and "Blue" with count 200, because the "color" key is now excluded
  9131  	// from the filter. Because this field doesn't affect search results, the
  9132  	// search results are still correctly filtered to return only "Red" documents.
  9133  	// A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` error
  9134  	// is returned.
  9135  	ExcludedFilterKeys []string `json:"excludedFilterKeys,omitempty"`
  9136  	// FacetKey: Required. The facet key specification.
  9137  	FacetKey *GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey `json:"facetKey,omitempty"`
  9138  	// Limit: Maximum of facet values that should be returned for this facet. If
  9139  	// unspecified, defaults to 20. The maximum allowed value is 300. Values above
  9140  	// 300 are coerced to 300. If this field is negative, an `INVALID_ARGUMENT` is
  9141  	// returned.
  9142  	Limit int64 `json:"limit,omitempty"`
  9143  	// ForceSendFields is a list of field names (e.g. "EnableDynamicPosition") to
  9144  	// unconditionally include in API requests. By default, fields with empty or
  9145  	// default values are omitted from API requests. See
  9146  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9147  	// details.
  9148  	ForceSendFields []string `json:"-"`
  9149  	// NullFields is a list of field names (e.g. "EnableDynamicPosition") to
  9150  	// include in API requests with the JSON null value. By default, fields with
  9151  	// empty values are omitted from API requests. See
  9152  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9153  	NullFields []string `json:"-"`
  9154  }
  9155  
  9156  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec) MarshalJSON() ([]byte, error) {
  9157  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec
  9158  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9159  }
  9160  
  9161  // GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey: Specifies
  9162  // how a facet is computed.
  9163  type GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey struct {
  9164  	// CaseInsensitive: True to make facet keys case insensitive when getting
  9165  	// faceting values with prefixes or contains; false otherwise.
  9166  	CaseInsensitive bool `json:"caseInsensitive,omitempty"`
  9167  	// Contains: Only get facet values that contains the given strings. For
  9168  	// example, suppose "category" has three values "Action > 2022", "Action >
  9169  	// 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the "category" facet
  9170  	// only contains "Action > 2022" and "Sci-Fi > 2022". Only supported on textual
  9171  	// fields. Maximum is 10.
  9172  	Contains []string `json:"contains,omitempty"`
  9173  	// Intervals: Set only if values should be bucketed into intervals. Must be set
  9174  	// for facets with numerical values. Must not be set for facet with text
  9175  	// values. Maximum number of intervals is 30.
  9176  	Intervals []*GoogleCloudDiscoveryengineV1alphaInterval `json:"intervals,omitempty"`
  9177  	// Key: Required. Supported textual and numerical facet keys in Document
  9178  	// object, over which the facet values are computed. Facet key is
  9179  	// case-sensitive.
  9180  	Key string `json:"key,omitempty"`
  9181  	// OrderBy: The order in which documents are returned. Allowed values are: *
  9182  	// "count desc", which means order by SearchResponse.Facet.values.count
  9183  	// descending. * "value desc", which means order by
  9184  	// SearchResponse.Facet.values.value descending. Only applies to textual
  9185  	// facets. If not set, textual values are sorted in natural order
  9186  	// (https://en.wikipedia.org/wiki/Natural_sort_order); numerical intervals are
  9187  	// sorted in the order given by FacetSpec.FacetKey.intervals.
  9188  	OrderBy string `json:"orderBy,omitempty"`
  9189  	// Prefixes: Only get facet values that start with the given string prefix. For
  9190  	// example, suppose "category" has three values "Action > 2022", "Action >
  9191  	// 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the "category"
  9192  	// facet only contains "Action > 2022" and "Action > 2021". Only supported on
  9193  	// textual fields. Maximum is 10.
  9194  	Prefixes []string `json:"prefixes,omitempty"`
  9195  	// RestrictedValues: Only get facet for the given restricted values. Only
  9196  	// supported on textual fields. For example, suppose "category" has three
  9197  	// values "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
  9198  	// "restricted_values" to "Action > 2022", the "category" facet only contains
  9199  	// "Action > 2022". Only supported on textual fields. Maximum is 10.
  9200  	RestrictedValues []string `json:"restrictedValues,omitempty"`
  9201  	// ForceSendFields is a list of field names (e.g. "CaseInsensitive") to
  9202  	// unconditionally include in API requests. By default, fields with empty or
  9203  	// default values are omitted from API requests. See
  9204  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9205  	// details.
  9206  	ForceSendFields []string `json:"-"`
  9207  	// NullFields is a list of field names (e.g. "CaseInsensitive") to include in
  9208  	// API requests with the JSON null value. By default, fields with empty values
  9209  	// are omitted from API requests. See
  9210  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9211  	NullFields []string `json:"-"`
  9212  }
  9213  
  9214  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey) MarshalJSON() ([]byte, error) {
  9215  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey
  9216  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9217  }
  9218  
  9219  // GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery: Specifies the
  9220  // image query input.
  9221  type GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery struct {
  9222  	// ImageBytes: Base64 encoded image bytes. Supported image formats: JPEG, PNG,
  9223  	// and BMP.
  9224  	ImageBytes string `json:"imageBytes,omitempty"`
  9225  	// ForceSendFields is a list of field names (e.g. "ImageBytes") to
  9226  	// unconditionally include in API requests. By default, fields with empty or
  9227  	// default values are omitted from API requests. See
  9228  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9229  	// details.
  9230  	ForceSendFields []string `json:"-"`
  9231  	// NullFields is a list of field names (e.g. "ImageBytes") to include in API
  9232  	// requests with the JSON null value. By default, fields with empty values are
  9233  	// omitted from API requests. See
  9234  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9235  	NullFields []string `json:"-"`
  9236  }
  9237  
  9238  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery) MarshalJSON() ([]byte, error) {
  9239  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery
  9240  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9241  }
  9242  
  9243  // GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec:
  9244  // Specification to determine under which conditions query expansion should
  9245  // occur.
  9246  type GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec struct {
  9247  	// Condition: The condition under which query expansion should occur. Default
  9248  	// to Condition.DISABLED.
  9249  	//
  9250  	// Possible values:
  9251  	//   "CONDITION_UNSPECIFIED" - Unspecified query expansion condition. In this
  9252  	// case, server behavior defaults to Condition.DISABLED.
  9253  	//   "DISABLED" - Disabled query expansion. Only the exact search query is
  9254  	// used, even if SearchResponse.total_size is zero.
  9255  	//   "AUTO" - Automatic query expansion built by the Search API.
  9256  	Condition string `json:"condition,omitempty"`
  9257  	// PinUnexpandedResults: Whether to pin unexpanded results. If this field is
  9258  	// set to true, unexpanded products are always at the top of the search
  9259  	// results, followed by the expanded results.
  9260  	PinUnexpandedResults bool `json:"pinUnexpandedResults,omitempty"`
  9261  	// ForceSendFields is a list of field names (e.g. "Condition") to
  9262  	// unconditionally include in API requests. By default, fields with empty or
  9263  	// default values are omitted from API requests. See
  9264  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9265  	// details.
  9266  	ForceSendFields []string `json:"-"`
  9267  	// NullFields is a list of field names (e.g. "Condition") to include in API
  9268  	// requests with the JSON null value. By default, fields with empty values are
  9269  	// omitted from API requests. See
  9270  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9271  	NullFields []string `json:"-"`
  9272  }
  9273  
  9274  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec) MarshalJSON() ([]byte, error) {
  9275  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec
  9276  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9277  }
  9278  
  9279  // GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec: The
  9280  // specification for query spell correction.
  9281  type GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec struct {
  9282  	// Mode: The mode under which spell correction should take effect to replace
  9283  	// the original search query. Default to Mode.AUTO.
  9284  	//
  9285  	// Possible values:
  9286  	//   "MODE_UNSPECIFIED" - Unspecified spell correction mode. In this case,
  9287  	// server behavior defaults to Mode.AUTO.
  9288  	//   "SUGGESTION_ONLY" - Search API will try to find a spell suggestion if
  9289  	// there is any and put in the SearchResponse.corrected_query. The spell
  9290  	// suggestion will not be used as the search query.
  9291  	//   "AUTO" - Automatic spell correction built by the Search API. Search will
  9292  	// be based on the corrected query if found.
  9293  	Mode string `json:"mode,omitempty"`
  9294  	// ForceSendFields is a list of field names (e.g. "Mode") to unconditionally
  9295  	// include in API requests. By default, fields with empty or default values are
  9296  	// omitted from API requests. See
  9297  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9298  	// details.
  9299  	ForceSendFields []string `json:"-"`
  9300  	// NullFields is a list of field names (e.g. "Mode") to include in API requests
  9301  	// with the JSON null value. By default, fields with empty values are omitted
  9302  	// from API requests. See
  9303  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9304  	NullFields []string `json:"-"`
  9305  }
  9306  
  9307  func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec) MarshalJSON() ([]byte, error) {
  9308  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec
  9309  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9310  }
  9311  
  9312  // GoogleCloudDiscoveryengineV1alphaSearchResponse: Response message for
  9313  // SearchService.Search method.
  9314  type GoogleCloudDiscoveryengineV1alphaSearchResponse struct {
  9315  	// AppliedControls: Controls applied as part of the Control service.
  9316  	AppliedControls []string `json:"appliedControls,omitempty"`
  9317  	// AttributionToken: A unique search token. This should be included in the
  9318  	// UserEvent logs resulting from this search, which enables accurate
  9319  	// attribution of search model performance.
  9320  	AttributionToken string `json:"attributionToken,omitempty"`
  9321  	// CorrectedQuery: Contains the spell corrected query, if found. If the spell
  9322  	// correction type is AUTOMATIC, then the search results are based on
  9323  	// corrected_query. Otherwise the original query is used for search.
  9324  	CorrectedQuery string `json:"correctedQuery,omitempty"`
  9325  	// Facets: Results of facets requested by user.
  9326  	Facets             []*GoogleCloudDiscoveryengineV1alphaSearchResponseFacet              `json:"facets,omitempty"`
  9327  	GeoSearchDebugInfo []*GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo `json:"geoSearchDebugInfo,omitempty"`
  9328  	// GuidedSearchResult: Guided search result.
  9329  	GuidedSearchResult *GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult `json:"guidedSearchResult,omitempty"`
  9330  	// NextPageToken: A token that can be sent as SearchRequest.page_token to
  9331  	// retrieve the next page. If this field is omitted, there are no subsequent
  9332  	// pages.
  9333  	NextPageToken string `json:"nextPageToken,omitempty"`
  9334  	// QueryExpansionInfo: Query expansion information for the returned results.
  9335  	QueryExpansionInfo *GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo `json:"queryExpansionInfo,omitempty"`
  9336  	// RedirectUri: The URI of a customer-defined redirect page. If redirect action
  9337  	// is triggered, no search is performed, and only redirect_uri and
  9338  	// attribution_token are set in the response.
  9339  	RedirectUri string `json:"redirectUri,omitempty"`
  9340  	// Results: A list of matched documents. The order represents the ranking.
  9341  	Results []*GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult `json:"results,omitempty"`
  9342  	// Summary: A summary as part of the search results. This field is only
  9343  	// returned if SearchRequest.ContentSearchSpec.summary_spec is set.
  9344  	Summary *GoogleCloudDiscoveryengineV1alphaSearchResponseSummary `json:"summary,omitempty"`
  9345  	// TotalSize: The estimated total count of matched items irrespective of
  9346  	// pagination. The count of results returned by pagination may be less than the
  9347  	// total_size that matches.
  9348  	TotalSize int64 `json:"totalSize,omitempty"`
  9349  
  9350  	// ServerResponse contains the HTTP response code and headers from the server.
  9351  	googleapi.ServerResponse `json:"-"`
  9352  	// ForceSendFields is a list of field names (e.g. "AppliedControls") to
  9353  	// unconditionally include in API requests. By default, fields with empty or
  9354  	// default values are omitted from API requests. See
  9355  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9356  	// details.
  9357  	ForceSendFields []string `json:"-"`
  9358  	// NullFields is a list of field names (e.g. "AppliedControls") to include in
  9359  	// API requests with the JSON null value. By default, fields with empty values
  9360  	// are omitted from API requests. See
  9361  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9362  	NullFields []string `json:"-"`
  9363  }
  9364  
  9365  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponse) MarshalJSON() ([]byte, error) {
  9366  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponse
  9367  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9368  }
  9369  
  9370  // GoogleCloudDiscoveryengineV1alphaSearchResponseFacet: A facet result.
  9371  type GoogleCloudDiscoveryengineV1alphaSearchResponseFacet struct {
  9372  	// DynamicFacet: Whether the facet is dynamically generated.
  9373  	DynamicFacet bool `json:"dynamicFacet,omitempty"`
  9374  	// Key: The key for this facet. E.g., "colors" or "price". It matches
  9375  	// SearchRequest.FacetSpec.FacetKey.key.
  9376  	Key string `json:"key,omitempty"`
  9377  	// Values: The facet values for this field.
  9378  	Values []*GoogleCloudDiscoveryengineV1alphaSearchResponseFacetFacetValue `json:"values,omitempty"`
  9379  	// ForceSendFields is a list of field names (e.g. "DynamicFacet") to
  9380  	// unconditionally include in API requests. By default, fields with empty or
  9381  	// default values are omitted from API requests. See
  9382  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9383  	// details.
  9384  	ForceSendFields []string `json:"-"`
  9385  	// NullFields is a list of field names (e.g. "DynamicFacet") to include in API
  9386  	// requests with the JSON null value. By default, fields with empty values are
  9387  	// omitted from API requests. See
  9388  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9389  	NullFields []string `json:"-"`
  9390  }
  9391  
  9392  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseFacet) MarshalJSON() ([]byte, error) {
  9393  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseFacet
  9394  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9395  }
  9396  
  9397  // GoogleCloudDiscoveryengineV1alphaSearchResponseFacetFacetValue: A facet
  9398  // value which contains value names and their count.
  9399  type GoogleCloudDiscoveryengineV1alphaSearchResponseFacetFacetValue struct {
  9400  	// Count: Number of items that have this facet value.
  9401  	Count int64 `json:"count,omitempty,string"`
  9402  	// Interval: Interval value for a facet, such as 10, 20) for facet "price". It
  9403  	// matches [SearchRequest.FacetSpec.FacetKey.intervals.
  9404  	Interval *GoogleCloudDiscoveryengineV1alphaInterval `json:"interval,omitempty"`
  9405  	// Value: Text value of a facet, such as "Black" for facet "colors".
  9406  	Value string `json:"value,omitempty"`
  9407  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  9408  	// include in API requests. By default, fields with empty or default values are
  9409  	// omitted from API requests. See
  9410  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9411  	// details.
  9412  	ForceSendFields []string `json:"-"`
  9413  	// NullFields is a list of field names (e.g. "Count") to include in API
  9414  	// requests with the JSON null value. By default, fields with empty values are
  9415  	// omitted from API requests. See
  9416  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9417  	NullFields []string `json:"-"`
  9418  }
  9419  
  9420  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseFacetFacetValue) MarshalJSON() ([]byte, error) {
  9421  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseFacetFacetValue
  9422  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9423  }
  9424  
  9425  // GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo: Debug
  9426  // information specifically related to forward geocoding issues arising from
  9427  // Geolocation Search.
  9428  type GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo struct {
  9429  	// ErrorMessage: The error produced.
  9430  	ErrorMessage string `json:"errorMessage,omitempty"`
  9431  	// OriginalAddressQuery: The address from which forward geocoding ingestion
  9432  	// produced issues.
  9433  	OriginalAddressQuery string `json:"originalAddressQuery,omitempty"`
  9434  	// ForceSendFields is a list of field names (e.g. "ErrorMessage") to
  9435  	// unconditionally include in API requests. By default, fields with empty or
  9436  	// default values are omitted from API requests. See
  9437  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9438  	// details.
  9439  	ForceSendFields []string `json:"-"`
  9440  	// NullFields is a list of field names (e.g. "ErrorMessage") to include in API
  9441  	// requests with the JSON null value. By default, fields with empty values are
  9442  	// omitted from API requests. See
  9443  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9444  	NullFields []string `json:"-"`
  9445  }
  9446  
  9447  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo) MarshalJSON() ([]byte, error) {
  9448  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo
  9449  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9450  }
  9451  
  9452  // GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult: Guided
  9453  // search result. The guided search helps user to refine the search results and
  9454  // narrow down to the real needs from a broaded search results.
  9455  type GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult struct {
  9456  	// FollowUpQuestions: Suggested follow-up questions.
  9457  	FollowUpQuestions []string `json:"followUpQuestions,omitempty"`
  9458  	// RefinementAttributes: A list of ranked refinement attributes.
  9459  	RefinementAttributes []*GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute `json:"refinementAttributes,omitempty"`
  9460  	// ForceSendFields is a list of field names (e.g. "FollowUpQuestions") to
  9461  	// unconditionally include in API requests. By default, fields with empty or
  9462  	// default values are omitted from API requests. See
  9463  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9464  	// details.
  9465  	ForceSendFields []string `json:"-"`
  9466  	// NullFields is a list of field names (e.g. "FollowUpQuestions") to include in
  9467  	// API requests with the JSON null value. By default, fields with empty values
  9468  	// are omitted from API requests. See
  9469  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9470  	NullFields []string `json:"-"`
  9471  }
  9472  
  9473  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult) MarshalJSON() ([]byte, error) {
  9474  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult
  9475  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9476  }
  9477  
  9478  // GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAt
  9479  // tribute: Useful attribute for search result refinements.
  9480  type GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute struct {
  9481  	// AttributeKey: Attribute key used to refine the results e.g. 'movie_type'.
  9482  	AttributeKey string `json:"attributeKey,omitempty"`
  9483  	// AttributeValue: Attribute value used to refine the results e.g. 'drama'.
  9484  	AttributeValue string `json:"attributeValue,omitempty"`
  9485  	// ForceSendFields is a list of field names (e.g. "AttributeKey") 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. "AttributeKey") 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 *GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute) MarshalJSON() ([]byte, error) {
  9499  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute
  9500  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9501  }
  9502  
  9503  // GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo:
  9504  // Information describing query expansion including whether expansion has
  9505  // occurred.
  9506  type GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo struct {
  9507  	// ExpandedQuery: Bool describing whether query expansion has occurred.
  9508  	ExpandedQuery bool `json:"expandedQuery,omitempty"`
  9509  	// PinnedResultCount: Number of pinned results. This field will only be set
  9510  	// when expansion happens and
  9511  	// SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.
  9512  	PinnedResultCount int64 `json:"pinnedResultCount,omitempty,string"`
  9513  	// ForceSendFields is a list of field names (e.g. "ExpandedQuery") 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. "ExpandedQuery") 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 *GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo) MarshalJSON() ([]byte, error) {
  9527  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo
  9528  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9529  }
  9530  
  9531  // GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult: Represents the
  9532  // search results.
  9533  type GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult struct {
  9534  	// Chunk: The chunk data in the search response if the
  9535  	// SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.
  9536  	Chunk *GoogleCloudDiscoveryengineV1alphaChunk `json:"chunk,omitempty"`
  9537  	// Document: The document data snippet in the search response. Only fields that
  9538  	// are marked as retrievable are populated.
  9539  	Document *GoogleCloudDiscoveryengineV1alphaDocument `json:"document,omitempty"`
  9540  	// Id: Document.id of the searched Document.
  9541  	Id string `json:"id,omitempty"`
  9542  	// ModelScores: Google provided available scores.
  9543  	ModelScores map[string]GoogleCloudDiscoveryengineV1alphaDoubleList `json:"modelScores,omitempty"`
  9544  	// ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally
  9545  	// include in API requests. By default, fields with empty or default values are
  9546  	// 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. "Chunk") 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 *GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult) MarshalJSON() ([]byte, error) {
  9558  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult
  9559  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9560  }
  9561  
  9562  // GoogleCloudDiscoveryengineV1alphaSearchResponseSummary: Summary of the top N
  9563  // search result specified by the summary spec.
  9564  type GoogleCloudDiscoveryengineV1alphaSearchResponseSummary struct {
  9565  	// SafetyAttributes: A collection of Safety Attribute categories and their
  9566  	// associated confidence scores.
  9567  	SafetyAttributes *GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes `json:"safetyAttributes,omitempty"`
  9568  	// SummarySkippedReasons: Additional summary-skipped reasons. This provides the
  9569  	// reason for ignored cases. If nothing is skipped, this field is not set.
  9570  	//
  9571  	// Possible values:
  9572  	//   "SUMMARY_SKIPPED_REASON_UNSPECIFIED" - Default value. The summary skipped
  9573  	// reason is not specified.
  9574  	//   "ADVERSARIAL_QUERY_IGNORED" - The adversarial query ignored case. Only
  9575  	// populated when SummarySpec.ignore_adversarial_query is set to `true`.
  9576  	//   "NON_SUMMARY_SEEKING_QUERY_IGNORED" - The non-summary seeking query
  9577  	// ignored case. Only populated when
  9578  	// SummarySpec.ignore_non_summary_seeking_query is set to `true`.
  9579  	//   "OUT_OF_DOMAIN_QUERY_IGNORED" - The out-of-domain query ignored case.
  9580  	// Google skips the summary if there are no high-relevance search results. For
  9581  	// example, the data store contains facts about company A but the user query is
  9582  	// asking questions about company B.
  9583  	//   "POTENTIAL_POLICY_VIOLATION" - The potential policy violation case. Google
  9584  	// skips the summary if there is a potential policy violation detected. This
  9585  	// includes content that may be violent or toxic.
  9586  	//   "LLM_ADDON_NOT_ENABLED" - The LLM addon not enabled case. Google skips the
  9587  	// summary if the LLM addon is not enabled.
  9588  	SummarySkippedReasons []string `json:"summarySkippedReasons,omitempty"`
  9589  	// SummaryText: The summary content.
  9590  	SummaryText string `json:"summaryText,omitempty"`
  9591  	// SummaryWithMetadata: Summary with metadata information.
  9592  	SummaryWithMetadata *GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata `json:"summaryWithMetadata,omitempty"`
  9593  	// ForceSendFields is a list of field names (e.g. "SafetyAttributes") to
  9594  	// unconditionally include in API requests. By default, fields with empty or
  9595  	// default values are omitted from API requests. See
  9596  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9597  	// details.
  9598  	ForceSendFields []string `json:"-"`
  9599  	// NullFields is a list of field names (e.g. "SafetyAttributes") to include in
  9600  	// API requests with the JSON null value. By default, fields with empty values
  9601  	// are omitted from API requests. See
  9602  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9603  	NullFields []string `json:"-"`
  9604  }
  9605  
  9606  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummary) MarshalJSON() ([]byte, error) {
  9607  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummary
  9608  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9609  }
  9610  
  9611  // GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation: Citation
  9612  // info for a segment.
  9613  type GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation struct {
  9614  	// EndIndex: End of the attributed segment, exclusive.
  9615  	EndIndex int64 `json:"endIndex,omitempty,string"`
  9616  	// Sources: Citation sources for the attributed segment.
  9617  	Sources []*GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource `json:"sources,omitempty"`
  9618  	// StartIndex: Index indicates the start of the segment, measured in
  9619  	// bytes/unicode.
  9620  	StartIndex int64 `json:"startIndex,omitempty,string"`
  9621  	// ForceSendFields is a list of field names (e.g. "EndIndex") to
  9622  	// unconditionally include in API requests. By default, fields with empty or
  9623  	// default values are omitted from API requests. See
  9624  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9625  	// details.
  9626  	ForceSendFields []string `json:"-"`
  9627  	// NullFields is a list of field names (e.g. "EndIndex") to include in API
  9628  	// requests with the JSON null value. By default, fields with empty values are
  9629  	// omitted from API requests. See
  9630  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9631  	NullFields []string `json:"-"`
  9632  }
  9633  
  9634  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation) MarshalJSON() ([]byte, error) {
  9635  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation
  9636  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9637  }
  9638  
  9639  // GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata:
  9640  // Citation metadata.
  9641  type GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata struct {
  9642  	// Citations: Citations for segments.
  9643  	Citations []*GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation `json:"citations,omitempty"`
  9644  	// ForceSendFields is a list of field names (e.g. "Citations") to
  9645  	// unconditionally include in API requests. By default, fields with empty or
  9646  	// default values are omitted from API requests. See
  9647  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9648  	// details.
  9649  	ForceSendFields []string `json:"-"`
  9650  	// NullFields is a list of field names (e.g. "Citations") to include in API
  9651  	// requests with the JSON null value. By default, fields with empty values are
  9652  	// omitted from API requests. See
  9653  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9654  	NullFields []string `json:"-"`
  9655  }
  9656  
  9657  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata) MarshalJSON() ([]byte, error) {
  9658  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata
  9659  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9660  }
  9661  
  9662  // GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource:
  9663  // Citation source.
  9664  type GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource struct {
  9665  	// ReferenceIndex: Document reference index from
  9666  	// SummaryWithMetadata.references. It is 0-indexed and the value will be zero
  9667  	// if the reference_index is not set explicitly.
  9668  	ReferenceIndex int64 `json:"referenceIndex,omitempty,string"`
  9669  	// ForceSendFields is a list of field names (e.g. "ReferenceIndex") to
  9670  	// unconditionally include in API requests. By default, fields with empty or
  9671  	// default values are omitted from API requests. See
  9672  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9673  	// details.
  9674  	ForceSendFields []string `json:"-"`
  9675  	// NullFields is a list of field names (e.g. "ReferenceIndex") to include in
  9676  	// API requests with the JSON null value. By default, fields with empty values
  9677  	// are omitted from API requests. See
  9678  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9679  	NullFields []string `json:"-"`
  9680  }
  9681  
  9682  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource) MarshalJSON() ([]byte, error) {
  9683  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource
  9684  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9685  }
  9686  
  9687  // GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference: Document
  9688  // reference.
  9689  type GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference struct {
  9690  	// ChunkContents: List of cited chunk contents derived from document content.
  9691  	ChunkContents []*GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent `json:"chunkContents,omitempty"`
  9692  	// Document: Required. Document.name of the document. Full resource name of the
  9693  	// referenced document, in the format
  9694  	// `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
  9695  	Document string `json:"document,omitempty"`
  9696  	// Title: Title of the document.
  9697  	Title string `json:"title,omitempty"`
  9698  	// Uri: Cloud Storage or HTTP uri for the document.
  9699  	Uri string `json:"uri,omitempty"`
  9700  	// ForceSendFields is a list of field names (e.g. "ChunkContents") to
  9701  	// unconditionally include in API requests. By default, fields with empty or
  9702  	// default values are omitted from API requests. See
  9703  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9704  	// details.
  9705  	ForceSendFields []string `json:"-"`
  9706  	// NullFields is a list of field names (e.g. "ChunkContents") to include in API
  9707  	// requests with the JSON null value. By default, fields with empty values are
  9708  	// omitted from API requests. See
  9709  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9710  	NullFields []string `json:"-"`
  9711  }
  9712  
  9713  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference) MarshalJSON() ([]byte, error) {
  9714  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference
  9715  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9716  }
  9717  
  9718  // GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent:
  9719  // Chunk content.
  9720  type GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent struct {
  9721  	// Content: Chunk textual content.
  9722  	Content string `json:"content,omitempty"`
  9723  	// PageIdentifier: Page identifier.
  9724  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  9725  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  9726  	// include in API requests. By default, fields with empty or default values are
  9727  	// omitted from API requests. See
  9728  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9729  	// details.
  9730  	ForceSendFields []string `json:"-"`
  9731  	// NullFields is a list of field names (e.g. "Content") to include in API
  9732  	// requests with the JSON null value. By default, fields with empty values are
  9733  	// omitted from API requests. See
  9734  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9735  	NullFields []string `json:"-"`
  9736  }
  9737  
  9738  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent) MarshalJSON() ([]byte, error) {
  9739  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent
  9740  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9741  }
  9742  
  9743  // GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes:
  9744  // Safety Attribute categories and their associated confidence scores.
  9745  type GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes struct {
  9746  	// Categories: The display names of Safety Attribute categories associated with
  9747  	// the generated content. Order matches the Scores.
  9748  	Categories []string `json:"categories,omitempty"`
  9749  	// Scores: The confidence scores of the each category, higher value means
  9750  	// higher confidence. Order matches the Categories.
  9751  	Scores []float64 `json:"scores,omitempty"`
  9752  	// ForceSendFields is a list of field names (e.g. "Categories") to
  9753  	// unconditionally include in API requests. By default, fields with empty or
  9754  	// default values are omitted from API requests. See
  9755  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9756  	// details.
  9757  	ForceSendFields []string `json:"-"`
  9758  	// NullFields is a list of field names (e.g. "Categories") to include in API
  9759  	// requests with the JSON null value. By default, fields with empty values are
  9760  	// omitted from API requests. See
  9761  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9762  	NullFields []string `json:"-"`
  9763  }
  9764  
  9765  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes) MarshalJSON() ([]byte, error) {
  9766  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes
  9767  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9768  }
  9769  
  9770  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes) UnmarshalJSON(data []byte) error {
  9771  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes
  9772  	var s1 struct {
  9773  		Scores []gensupport.JSONFloat64 `json:"scores"`
  9774  		*NoMethod
  9775  	}
  9776  	s1.NoMethod = (*NoMethod)(s)
  9777  	if err := json.Unmarshal(data, &s1); err != nil {
  9778  		return err
  9779  	}
  9780  	s.Scores = make([]float64, len(s1.Scores))
  9781  	for i := range s1.Scores {
  9782  		s.Scores[i] = float64(s1.Scores[i])
  9783  	}
  9784  	return nil
  9785  }
  9786  
  9787  // GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata:
  9788  // Summary with metadata information.
  9789  type GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata struct {
  9790  	// CitationMetadata: Citation metadata for given summary.
  9791  	CitationMetadata *GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata `json:"citationMetadata,omitempty"`
  9792  	// References: Document References.
  9793  	References []*GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference `json:"references,omitempty"`
  9794  	// Summary: Summary text with no citation information.
  9795  	Summary string `json:"summary,omitempty"`
  9796  	// ForceSendFields is a list of field names (e.g. "CitationMetadata") to
  9797  	// unconditionally include in API requests. By default, fields with empty or
  9798  	// default values are omitted from API requests. See
  9799  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9800  	// details.
  9801  	ForceSendFields []string `json:"-"`
  9802  	// NullFields is a list of field names (e.g. "CitationMetadata") to include in
  9803  	// API requests with the JSON null value. By default, fields with empty values
  9804  	// are omitted from API requests. See
  9805  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9806  	NullFields []string `json:"-"`
  9807  }
  9808  
  9809  func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata) MarshalJSON() ([]byte, error) {
  9810  	type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata
  9811  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9812  }
  9813  
  9814  // GoogleCloudDiscoveryengineV1alphaServingConfig: Configures metadata that is
  9815  // used to generate serving time results (e.g. search results or recommendation
  9816  // predictions). The ServingConfig is passed in the search and predict request
  9817  // and generates results.
  9818  type GoogleCloudDiscoveryengineV1alphaServingConfig struct {
  9819  	// BoostControlIds: Boost controls to use in serving path. All triggered boost
  9820  	// controls will be applied. Boost controls must be in the same data store as
  9821  	// the serving config. Maximum of 20 boost controls.
  9822  	BoostControlIds []string `json:"boostControlIds,omitempty"`
  9823  	// CreateTime: Output only. ServingConfig created timestamp.
  9824  	CreateTime string `json:"createTime,omitempty"`
  9825  	// CustomFineTuningSpec: Custom fine tuning configs.
  9826  	CustomFineTuningSpec *GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec `json:"customFineTuningSpec,omitempty"`
  9827  	// DisplayName: Required. The human readable serving config display name. Used
  9828  	// in Discovery UI. This field must be a UTF-8 encoded string with a length
  9829  	// limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
  9830  	DisplayName string `json:"displayName,omitempty"`
  9831  	// DissociateControlIds: Condition do not associate specifications. If multiple
  9832  	// do not associate conditions match, all matching do not associate controls in
  9833  	// the list will execute. Order does not matter. Maximum number of
  9834  	// specifications is 100. Can only be set if SolutionType is
  9835  	// SOLUTION_TYPE_SEARCH.
  9836  	DissociateControlIds []string `json:"dissociateControlIds,omitempty"`
  9837  	// DiversityLevel: How much diversity to use in recommendation model results
  9838  	// e.g. `medium-diversity` or `high-diversity`. Currently supported values: *
  9839  	// `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` *
  9840  	// `auto-diversity` If not specified, we choose default based on recommendation
  9841  	// model type. Default value: `no-diversity`. Can only be set if SolutionType
  9842  	// is SOLUTION_TYPE_RECOMMENDATION.
  9843  	DiversityLevel string `json:"diversityLevel,omitempty"`
  9844  	// EmbeddingConfig: Bring your own embedding config. The config is used for
  9845  	// search semantic retrieval. The retrieval is based on the dot product of
  9846  	// SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document
  9847  	// embeddings that are provided by this EmbeddingConfig. If
  9848  	// SearchRequest.EmbeddingSpec.EmbeddingVector.vector is provided, it overrides
  9849  	// this ServingConfig.embedding_config.
  9850  	EmbeddingConfig *GoogleCloudDiscoveryengineV1alphaEmbeddingConfig `json:"embeddingConfig,omitempty"`
  9851  	// FilterControlIds: Filter controls to use in serving path. All triggered
  9852  	// filter controls will be applied. Filter controls must be in the same data
  9853  	// store as the serving config. Maximum of 20 filter controls.
  9854  	FilterControlIds []string `json:"filterControlIds,omitempty"`
  9855  	// GenericConfig: The GenericConfig of the serving configuration.
  9856  	GenericConfig *GoogleCloudDiscoveryengineV1alphaServingConfigGenericConfig `json:"genericConfig,omitempty"`
  9857  	// GuidedSearchSpec: Guided search configs.
  9858  	GuidedSearchSpec *GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec `json:"guidedSearchSpec,omitempty"`
  9859  	// IgnoreControlIds: Condition ignore specifications. If multiple ignore
  9860  	// conditions match, all matching ignore controls in the list will execute.
  9861  	// Order does not matter. Maximum number of specifications is 100.
  9862  	IgnoreControlIds []string `json:"ignoreControlIds,omitempty"`
  9863  	// MediaConfig: The MediaConfig of the serving configuration.
  9864  	MediaConfig *GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig `json:"mediaConfig,omitempty"`
  9865  	// ModelId: The id of the model to use at serving time. Currently only
  9866  	// RecommendationModels are supported. Can be changed but only to a compatible
  9867  	// model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required
  9868  	// when SolutionType is SOLUTION_TYPE_RECOMMENDATION.
  9869  	ModelId string `json:"modelId,omitempty"`
  9870  	// Name: Immutable. Fully qualified name
  9871  	// `projects/{project}/locations/{location}/collections/{collection_id}/engines/
  9872  	// {engine_id}/servingConfigs/{serving_config_id}`
  9873  	Name string `json:"name,omitempty"`
  9874  	// OnewaySynonymsControlIds: Condition oneway synonyms specifications. If
  9875  	// multiple oneway synonyms conditions match, all matching oneway synonyms
  9876  	// controls in the list will execute. Maximum number of specifications is 100.
  9877  	// Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
  9878  	OnewaySynonymsControlIds []string `json:"onewaySynonymsControlIds,omitempty"`
  9879  	// RankingExpression: The ranking expression controls the customized ranking on
  9880  	// retrieval documents. To leverage this, document embedding is required. The
  9881  	// ranking expression setting in ServingConfig applies to all search requests
  9882  	// served by the serving config. However, if SearchRequest.ranking_expression
  9883  	// is specified, it overrides the ServingConfig ranking expression. The ranking
  9884  	// expression is a single function or multiple functions that are joined by
  9885  	// "+". * ranking_expression = function, { " + ", function }; Supported
  9886  	// functions: * double * relevance_score * double *
  9887  	// dotProduct(embedding_field_path) Function variables: relevance_score:
  9888  	// pre-defined keywords, used for measure relevance between query and document.
  9889  	// embedding_field_path: the document embedding field used with query embedding
  9890  	// vector. dotProduct: embedding function between embedding_field_path and
  9891  	// query embedding vector. Example ranking expression: If document has an
  9892  	// embedding field doc_embedding, the ranking expression could be 0.5 *
  9893  	// relevance_score + 0.3 * dotProduct(doc_embedding).
  9894  	RankingExpression string `json:"rankingExpression,omitempty"`
  9895  	// RedirectControlIds: IDs of the redirect controls. Only the first triggered
  9896  	// redirect action is applied, even if multiple apply. Maximum number of
  9897  	// specifications is 100. Can only be set if SolutionType is
  9898  	// SOLUTION_TYPE_SEARCH.
  9899  	RedirectControlIds []string `json:"redirectControlIds,omitempty"`
  9900  	// ReplacementControlIds: Condition replacement specifications. Applied
  9901  	// according to the order in the list. A previously replaced term can not be
  9902  	// re-replaced. Maximum number of specifications is 100. Can only be set if
  9903  	// SolutionType is SOLUTION_TYPE_SEARCH.
  9904  	ReplacementControlIds []string `json:"replacementControlIds,omitempty"`
  9905  	// SolutionType: Required. Immutable. Specifies the solution type that a
  9906  	// serving config can be associated with.
  9907  	//
  9908  	// Possible values:
  9909  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  9910  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  9911  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  9912  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  9913  	// agent.
  9914  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  9915  	// Generative Chat agent. It's used for Generative chat engine only, the
  9916  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  9917  	SolutionType string `json:"solutionType,omitempty"`
  9918  	// SynonymsControlIds: Condition synonyms specifications. If multiple synonyms
  9919  	// conditions match, all matching synonyms controls in the list will execute.
  9920  	// Maximum number of specifications is 100. Can only be set if SolutionType is
  9921  	// SOLUTION_TYPE_SEARCH.
  9922  	SynonymsControlIds []string `json:"synonymsControlIds,omitempty"`
  9923  	// UpdateTime: Output only. ServingConfig updated timestamp.
  9924  	UpdateTime string `json:"updateTime,omitempty"`
  9925  
  9926  	// ServerResponse contains the HTTP response code and headers from the server.
  9927  	googleapi.ServerResponse `json:"-"`
  9928  	// ForceSendFields is a list of field names (e.g. "BoostControlIds") to
  9929  	// unconditionally include in API requests. By default, fields with empty or
  9930  	// default values are omitted from API requests. See
  9931  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9932  	// details.
  9933  	ForceSendFields []string `json:"-"`
  9934  	// NullFields is a list of field names (e.g. "BoostControlIds") to include in
  9935  	// API requests with the JSON null value. By default, fields with empty values
  9936  	// are omitted from API requests. See
  9937  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9938  	NullFields []string `json:"-"`
  9939  }
  9940  
  9941  func (s *GoogleCloudDiscoveryengineV1alphaServingConfig) MarshalJSON() ([]byte, error) {
  9942  	type NoMethod GoogleCloudDiscoveryengineV1alphaServingConfig
  9943  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9944  }
  9945  
  9946  // GoogleCloudDiscoveryengineV1alphaServingConfigGenericConfig: Specifies the
  9947  // configurations needed for Generic Discovery.Currently we support: *
  9948  // `content_search_spec`: configuration for generic content search.
  9949  type GoogleCloudDiscoveryengineV1alphaServingConfigGenericConfig struct {
  9950  	// ContentSearchSpec: Specifies the expected behavior of content search. Only
  9951  	// valid for content-search enabled data store.
  9952  	ContentSearchSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec `json:"contentSearchSpec,omitempty"`
  9953  	// ForceSendFields is a list of field names (e.g. "ContentSearchSpec") to
  9954  	// unconditionally include in API requests. By default, fields with empty or
  9955  	// default values are omitted from API requests. See
  9956  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9957  	// details.
  9958  	ForceSendFields []string `json:"-"`
  9959  	// NullFields is a list of field names (e.g. "ContentSearchSpec") to include in
  9960  	// API requests with the JSON null value. By default, fields with empty values
  9961  	// are omitted from API requests. See
  9962  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9963  	NullFields []string `json:"-"`
  9964  }
  9965  
  9966  func (s *GoogleCloudDiscoveryengineV1alphaServingConfigGenericConfig) MarshalJSON() ([]byte, error) {
  9967  	type NoMethod GoogleCloudDiscoveryengineV1alphaServingConfigGenericConfig
  9968  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9969  }
  9970  
  9971  // GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig: Specifies the
  9972  // configurations needed for Media Discovery. Currently we support: *
  9973  // `demote_content_watched`: Threshold for watched content demotion. Customers
  9974  // can specify if using watched content demotion or use viewed detail page.
  9975  // Using the content watched demotion, customers need to specify the watched
  9976  // minutes or percentage exceeds the threshold, the content will be demoted in
  9977  // the recommendation result. * `promote_fresh_content`: cutoff days for fresh
  9978  // content promotion. Customers can specify if using content freshness
  9979  // promotion. If the content was published within the cutoff days, the content
  9980  // will be promoted in the recommendation result. Can only be set if
  9981  // SolutionType is SOLUTION_TYPE_RECOMMENDATION.
  9982  type GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig struct {
  9983  	// ContentFreshnessCutoffDays: Specifies the content freshness used for
  9984  	// recommendation result. Contents will be demoted if contents were published
  9985  	// for more than content freshness cutoff days.
  9986  	ContentFreshnessCutoffDays int64 `json:"contentFreshnessCutoffDays,omitempty"`
  9987  	// ContentWatchedPercentageThreshold: Specifies the content watched percentage
  9988  	// threshold for demotion. Threshold value must be between [0, 1.0] inclusive.
  9989  	ContentWatchedPercentageThreshold float64 `json:"contentWatchedPercentageThreshold,omitempty"`
  9990  	// ContentWatchedSecondsThreshold: Specifies the content watched minutes
  9991  	// threshold for demotion.
  9992  	ContentWatchedSecondsThreshold float64 `json:"contentWatchedSecondsThreshold,omitempty"`
  9993  	// DemotionEventType: Specifies the event type used for demoting recommendation
  9994  	// result. Currently supported values: * `view-item`: Item viewed. *
  9995  	// `media-play`: Start/resume watching a video, playing a song, etc. *
  9996  	// `media-complete`: Finished or stopped midway through a video, song, etc. If
  9997  	// unset, watch history demotion will not be applied. Content freshness
  9998  	// demotion will still be applied.
  9999  	DemotionEventType string `json:"demotionEventType,omitempty"`
 10000  	// ForceSendFields is a list of field names (e.g. "ContentFreshnessCutoffDays")
 10001  	// to unconditionally include in API requests. By default, fields with empty or
 10002  	// default values are omitted from API requests. See
 10003  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10004  	// details.
 10005  	ForceSendFields []string `json:"-"`
 10006  	// NullFields is a list of field names (e.g. "ContentFreshnessCutoffDays") to
 10007  	// include in API requests with the JSON null value. By default, fields with
 10008  	// empty values are omitted from API requests. See
 10009  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10010  	NullFields []string `json:"-"`
 10011  }
 10012  
 10013  func (s *GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig) MarshalJSON() ([]byte, error) {
 10014  	type NoMethod GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig
 10015  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10016  }
 10017  
 10018  func (s *GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig) UnmarshalJSON(data []byte) error {
 10019  	type NoMethod GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig
 10020  	var s1 struct {
 10021  		ContentWatchedPercentageThreshold gensupport.JSONFloat64 `json:"contentWatchedPercentageThreshold"`
 10022  		ContentWatchedSecondsThreshold    gensupport.JSONFloat64 `json:"contentWatchedSecondsThreshold"`
 10023  		*NoMethod
 10024  	}
 10025  	s1.NoMethod = (*NoMethod)(s)
 10026  	if err := json.Unmarshal(data, &s1); err != nil {
 10027  		return err
 10028  	}
 10029  	s.ContentWatchedPercentageThreshold = float64(s1.ContentWatchedPercentageThreshold)
 10030  	s.ContentWatchedSecondsThreshold = float64(s1.ContentWatchedSecondsThreshold)
 10031  	return nil
 10032  }
 10033  
 10034  // GoogleCloudDiscoveryengineV1alphaSession: External session proto definition.
 10035  type GoogleCloudDiscoveryengineV1alphaSession struct {
 10036  	// EndTime: Output only. The time the session finished.
 10037  	EndTime string `json:"endTime,omitempty"`
 10038  	// Name: Immutable. Fully qualified name
 10039  	// `projects/{project}/locations/global/collections/{collection}/engines/{engine
 10040  	// }/sessions/*`
 10041  	Name string `json:"name,omitempty"`
 10042  	// StartTime: Output only. The time the session started.
 10043  	StartTime string `json:"startTime,omitempty"`
 10044  	// State: The state of the session.
 10045  	//
 10046  	// Possible values:
 10047  	//   "STATE_UNSPECIFIED" - State is unspecified.
 10048  	//   "IN_PROGRESS" - The session is currently open.
 10049  	State string `json:"state,omitempty"`
 10050  	// Turns: Turns.
 10051  	Turns []*GoogleCloudDiscoveryengineV1alphaSessionTurn `json:"turns,omitempty"`
 10052  	// UserPseudoId: A unique identifier for tracking users.
 10053  	UserPseudoId string `json:"userPseudoId,omitempty"`
 10054  
 10055  	// ServerResponse contains the HTTP response code and headers from the server.
 10056  	googleapi.ServerResponse `json:"-"`
 10057  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
 10058  	// include in API requests. By default, fields with empty or default values are
 10059  	// omitted from API requests. See
 10060  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10061  	// details.
 10062  	ForceSendFields []string `json:"-"`
 10063  	// NullFields is a list of field names (e.g. "EndTime") to include in API
 10064  	// requests with the JSON null value. By default, fields with empty values are
 10065  	// omitted from API requests. See
 10066  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10067  	NullFields []string `json:"-"`
 10068  }
 10069  
 10070  func (s *GoogleCloudDiscoveryengineV1alphaSession) MarshalJSON() ([]byte, error) {
 10071  	type NoMethod GoogleCloudDiscoveryengineV1alphaSession
 10072  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10073  }
 10074  
 10075  // GoogleCloudDiscoveryengineV1alphaSessionTurn: Represents a turn, including a
 10076  // query from the user and a answer from service.
 10077  type GoogleCloudDiscoveryengineV1alphaSessionTurn struct {
 10078  	// Answer: The resource name of the answer to the user query.
 10079  	Answer string `json:"answer,omitempty"`
 10080  	// Query: The user query.
 10081  	Query *GoogleCloudDiscoveryengineV1alphaQuery `json:"query,omitempty"`
 10082  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 10083  	// include in API requests. By default, fields with empty or default values are
 10084  	// 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. "Answer") 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 *GoogleCloudDiscoveryengineV1alphaSessionTurn) MarshalJSON() ([]byte, error) {
 10096  	type NoMethod GoogleCloudDiscoveryengineV1alphaSessionTurn
 10097  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10098  }
 10099  
 10100  // GoogleCloudDiscoveryengineV1alphaSiteSearchEngine: SiteSearchEngine captures
 10101  // DataStore level site search persisting configurations. It is a singleton
 10102  // value per data store.
 10103  type GoogleCloudDiscoveryengineV1alphaSiteSearchEngine struct {
 10104  	// Name: The fully qualified resource name of the site search engine. Format:
 10105  	// `projects/*/locations/*/dataStores/*/siteSearchEngine`
 10106  	Name string `json:"name,omitempty"`
 10107  
 10108  	// ServerResponse contains the HTTP response code and headers from the server.
 10109  	googleapi.ServerResponse `json:"-"`
 10110  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
 10111  	// include in API requests. By default, fields with empty or default values are
 10112  	// omitted from API requests. See
 10113  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10114  	// details.
 10115  	ForceSendFields []string `json:"-"`
 10116  	// NullFields is a list of field names (e.g. "Name") to include in API requests
 10117  	// with the JSON null value. By default, fields with empty values are omitted
 10118  	// from API requests. See
 10119  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10120  	NullFields []string `json:"-"`
 10121  }
 10122  
 10123  func (s *GoogleCloudDiscoveryengineV1alphaSiteSearchEngine) MarshalJSON() ([]byte, error) {
 10124  	type NoMethod GoogleCloudDiscoveryengineV1alphaSiteSearchEngine
 10125  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10126  }
 10127  
 10128  // GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo: Verification
 10129  // information for target sites in advanced site search.
 10130  type GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo struct {
 10131  	// SiteVerificationState: Site verification state indicating the ownership and
 10132  	// validity.
 10133  	//
 10134  	// Possible values:
 10135  	//   "SITE_VERIFICATION_STATE_UNSPECIFIED" - Defaults to VERIFIED.
 10136  	//   "VERIFIED" - Site ownership verified.
 10137  	//   "UNVERIFIED" - Site ownership pending verification or verification failed.
 10138  	//   "EXEMPTED" - Site exempt from verification, e.g., a public website that
 10139  	// opens to all.
 10140  	SiteVerificationState string `json:"siteVerificationState,omitempty"`
 10141  	// VerifyTime: Latest site verification time.
 10142  	VerifyTime string `json:"verifyTime,omitempty"`
 10143  	// ForceSendFields is a list of field names (e.g. "SiteVerificationState") to
 10144  	// unconditionally include in API requests. By default, fields with empty or
 10145  	// default values are omitted from API requests. See
 10146  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10147  	// details.
 10148  	ForceSendFields []string `json:"-"`
 10149  	// NullFields is a list of field names (e.g. "SiteVerificationState") to
 10150  	// include in API requests with the JSON null value. By default, fields with
 10151  	// empty values are omitted from API requests. See
 10152  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10153  	NullFields []string `json:"-"`
 10154  }
 10155  
 10156  func (s *GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo) MarshalJSON() ([]byte, error) {
 10157  	type NoMethod GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo
 10158  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10159  }
 10160  
 10161  // GoogleCloudDiscoveryengineV1alphaSpannerSource: The Spanner source for
 10162  // importing data
 10163  type GoogleCloudDiscoveryengineV1alphaSpannerSource struct {
 10164  	// DatabaseId: Required. The database ID of the source Spanner table.
 10165  	DatabaseId string `json:"databaseId,omitempty"`
 10166  	// EnableDataBoost: Whether to apply data boost on Spanner export. Enabling
 10167  	// this option will incur additional cost. More info can be found here
 10168  	// (https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas).
 10169  	EnableDataBoost bool `json:"enableDataBoost,omitempty"`
 10170  	// InstanceId: Required. The instance ID of the source Spanner table.
 10171  	InstanceId string `json:"instanceId,omitempty"`
 10172  	// ProjectId: The project ID that the Spanner source is in with a length limit
 10173  	// of 128 characters. If not specified, inherits the project ID from the parent
 10174  	// request.
 10175  	ProjectId string `json:"projectId,omitempty"`
 10176  	// TableId: Required. The table name of the Spanner database that needs to be
 10177  	// imported.
 10178  	TableId string `json:"tableId,omitempty"`
 10179  	// ForceSendFields is a list of field names (e.g. "DatabaseId") to
 10180  	// unconditionally include in API requests. By default, fields with empty or
 10181  	// default values are omitted from API requests. See
 10182  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10183  	// details.
 10184  	ForceSendFields []string `json:"-"`
 10185  	// NullFields is a list of field names (e.g. "DatabaseId") to include in API
 10186  	// requests with the JSON null value. By default, fields with empty values are
 10187  	// omitted from API requests. See
 10188  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10189  	NullFields []string `json:"-"`
 10190  }
 10191  
 10192  func (s *GoogleCloudDiscoveryengineV1alphaSpannerSource) MarshalJSON() ([]byte, error) {
 10193  	type NoMethod GoogleCloudDiscoveryengineV1alphaSpannerSource
 10194  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10195  }
 10196  
 10197  // GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry: Suggestion deny
 10198  // list entry identifying the phrase to block from suggestions and the applied
 10199  // operation for the phrase.
 10200  type GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry struct {
 10201  	// BlockPhrase: Required. Phrase to block from suggestions served. Can be
 10202  	// maximum 125 characters.
 10203  	BlockPhrase string `json:"blockPhrase,omitempty"`
 10204  	// MatchOperator: Required. The match operator to apply for this phrase.
 10205  	// Whether to block the exact phrase, or block any suggestions containing this
 10206  	// phrase.
 10207  	//
 10208  	// Possible values:
 10209  	//   "MATCH_OPERATOR_UNSPECIFIED" - Default value. Should not be used
 10210  	//   "EXACT_MATCH" - If the suggestion is an exact match to the block_phrase,
 10211  	// then block it.
 10212  	//   "CONTAINS" - If the suggestion contains the block_phrase, then block it.
 10213  	MatchOperator string `json:"matchOperator,omitempty"`
 10214  	// ForceSendFields is a list of field names (e.g. "BlockPhrase") to
 10215  	// unconditionally include in API requests. By default, fields with empty or
 10216  	// default values are omitted from API requests. See
 10217  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10218  	// details.
 10219  	ForceSendFields []string `json:"-"`
 10220  	// NullFields is a list of field names (e.g. "BlockPhrase") to include in API
 10221  	// requests with the JSON null value. By default, fields with empty values are
 10222  	// omitted from API requests. See
 10223  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10224  	NullFields []string `json:"-"`
 10225  }
 10226  
 10227  func (s *GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry) MarshalJSON() ([]byte, error) {
 10228  	type NoMethod GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry
 10229  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10230  }
 10231  
 10232  // GoogleCloudDiscoveryengineV1alphaTargetSite: A target site for the
 10233  // SiteSearchEngine.
 10234  type GoogleCloudDiscoveryengineV1alphaTargetSite struct {
 10235  	// ExactMatch: Input only. If set to false, a uri_pattern is generated to
 10236  	// include all pages whose address contains the provided_uri_pattern. If set to
 10237  	// true, an uri_pattern is generated to try to be an exact match of the
 10238  	// provided_uri_pattern or just the specific page if the provided_uri_pattern
 10239  	// is a specific one. provided_uri_pattern is always normalized to generate the
 10240  	// URI pattern to be used by the search engine.
 10241  	ExactMatch bool `json:"exactMatch,omitempty"`
 10242  	// FailureReason: Output only. Failure reason.
 10243  	FailureReason *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason `json:"failureReason,omitempty"`
 10244  	// GeneratedUriPattern: Output only. This is system-generated based on the
 10245  	// provided_uri_pattern.
 10246  	GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
 10247  	// IndexingStatus: Output only. Indexing status.
 10248  	//
 10249  	// Possible values:
 10250  	//   "INDEXING_STATUS_UNSPECIFIED" - Defaults to SUCCEEDED.
 10251  	//   "PENDING" - The target site is in the update queue and will be picked up
 10252  	// by indexing pipeline.
 10253  	//   "FAILED" - The target site fails to be indexed.
 10254  	//   "SUCCEEDED" - The target site has been indexed.
 10255  	//   "DELETING" - The previously indexed target site has been marked to be
 10256  	// deleted. This is a transitioning state which will resulted in either: 1.
 10257  	// target site deleted if unindexing is successful; 2. state reverts to
 10258  	// SUCCEEDED if the unindexing fails.
 10259  	IndexingStatus string `json:"indexingStatus,omitempty"`
 10260  	// Name: Output only. The fully qualified resource name of the target site.
 10261  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
 10262  	// {data_store}/siteSearchEngine/targetSites/{target_site}` The
 10263  	// `target_site_id` is system-generated.
 10264  	Name string `json:"name,omitempty"`
 10265  	// ProvidedUriPattern: Required. Input only. The user provided URI pattern from
 10266  	// which the `generated_uri_pattern` is generated.
 10267  	ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
 10268  	// RootDomainUri: Output only. Root domain of the provided_uri_pattern.
 10269  	RootDomainUri string `json:"rootDomainUri,omitempty"`
 10270  	// SiteVerificationInfo: Output only. Site ownership and validity verification
 10271  	// status.
 10272  	SiteVerificationInfo *GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
 10273  	// Type: The type of the target site, e.g., whether the site is to be included
 10274  	// or excluded.
 10275  	//
 10276  	// Possible values:
 10277  	//   "TYPE_UNSPECIFIED" - This value is unused. In this case, server behavior
 10278  	// defaults to Type.INCLUDE.
 10279  	//   "INCLUDE" - Include the target site.
 10280  	//   "EXCLUDE" - Exclude the target site.
 10281  	Type string `json:"type,omitempty"`
 10282  	// UpdateTime: Output only. The target site's last updated time.
 10283  	UpdateTime string `json:"updateTime,omitempty"`
 10284  
 10285  	// ServerResponse contains the HTTP response code and headers from the server.
 10286  	googleapi.ServerResponse `json:"-"`
 10287  	// ForceSendFields is a list of field names (e.g. "ExactMatch") to
 10288  	// unconditionally include in API requests. By default, fields with empty or
 10289  	// default values are omitted from API requests. See
 10290  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10291  	// details.
 10292  	ForceSendFields []string `json:"-"`
 10293  	// NullFields is a list of field names (e.g. "ExactMatch") to include in API
 10294  	// requests with the JSON null value. By default, fields with empty values are
 10295  	// omitted from API requests. See
 10296  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10297  	NullFields []string `json:"-"`
 10298  }
 10299  
 10300  func (s *GoogleCloudDiscoveryengineV1alphaTargetSite) MarshalJSON() ([]byte, error) {
 10301  	type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSite
 10302  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10303  }
 10304  
 10305  // GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason: Site search
 10306  // indexing failure reasons.
 10307  type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason struct {
 10308  	// QuotaFailure: Failed due to insufficient quota.
 10309  	QuotaFailure *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
 10310  	// ForceSendFields is a list of field names (e.g. "QuotaFailure") to
 10311  	// unconditionally include in API requests. By default, fields with empty or
 10312  	// default values are omitted from API requests. See
 10313  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10314  	// details.
 10315  	ForceSendFields []string `json:"-"`
 10316  	// NullFields is a list of field names (e.g. "QuotaFailure") to include in API
 10317  	// requests with the JSON null value. By default, fields with empty values are
 10318  	// omitted from API requests. See
 10319  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10320  	NullFields []string `json:"-"`
 10321  }
 10322  
 10323  func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason) MarshalJSON() ([]byte, error) {
 10324  	type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason
 10325  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10326  }
 10327  
 10328  // GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure: Failed
 10329  // due to insufficient quota.
 10330  type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure struct {
 10331  	// TotalRequiredQuota: This number is an estimation on how much total quota
 10332  	// this project needs to successfully complete indexing.
 10333  	TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
 10334  	// ForceSendFields is a list of field names (e.g. "TotalRequiredQuota") to
 10335  	// unconditionally include in API requests. By default, fields with empty or
 10336  	// default values are omitted from API requests. See
 10337  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10338  	// details.
 10339  	ForceSendFields []string `json:"-"`
 10340  	// NullFields is a list of field names (e.g. "TotalRequiredQuota") to include
 10341  	// in API requests with the JSON null value. By default, fields with empty
 10342  	// values are omitted from API requests. See
 10343  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10344  	NullFields []string `json:"-"`
 10345  }
 10346  
 10347  func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
 10348  	type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure
 10349  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10350  }
 10351  
 10352  // GoogleCloudDiscoveryengineV1alphaTextInput: Defines text input.
 10353  type GoogleCloudDiscoveryengineV1alphaTextInput struct {
 10354  	// Context: Conversation context of the input.
 10355  	Context *GoogleCloudDiscoveryengineV1alphaConversationContext `json:"context,omitempty"`
 10356  	// Input: Text input.
 10357  	Input string `json:"input,omitempty"`
 10358  	// ForceSendFields is a list of field names (e.g. "Context") to unconditionally
 10359  	// include in API requests. By default, fields with empty or default values are
 10360  	// omitted from API requests. See
 10361  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10362  	// details.
 10363  	ForceSendFields []string `json:"-"`
 10364  	// NullFields is a list of field names (e.g. "Context") to include in API
 10365  	// requests with the JSON null value. By default, fields with empty values are
 10366  	// omitted from API requests. See
 10367  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10368  	NullFields []string `json:"-"`
 10369  }
 10370  
 10371  func (s *GoogleCloudDiscoveryengineV1alphaTextInput) MarshalJSON() ([]byte, error) {
 10372  	type NoMethod GoogleCloudDiscoveryengineV1alphaTextInput
 10373  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10374  }
 10375  
 10376  // GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata: Metadata related
 10377  // to the progress of the TrainCustomModel operation. This is returned by the
 10378  // google.longrunning.Operation.metadata field.
 10379  type GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata struct {
 10380  	// CreateTime: Operation create time.
 10381  	CreateTime string `json:"createTime,omitempty"`
 10382  	// UpdateTime: Operation last update time. If the operation is done, this is
 10383  	// also the finish time.
 10384  	UpdateTime string `json:"updateTime,omitempty"`
 10385  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 10386  	// unconditionally include in API requests. By default, fields with empty or
 10387  	// default values are omitted from API requests. See
 10388  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10389  	// details.
 10390  	ForceSendFields []string `json:"-"`
 10391  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 10392  	// requests with the JSON null value. By default, fields with empty values are
 10393  	// omitted from API requests. See
 10394  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10395  	NullFields []string `json:"-"`
 10396  }
 10397  
 10398  func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) {
 10399  	type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata
 10400  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10401  }
 10402  
 10403  // GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest: Request message
 10404  // for SearchTuningService.TrainCustomModel method.
 10405  type GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest struct {
 10406  	// ErrorConfig: The desired location of errors incurred during the data
 10407  	// ingestion and training.
 10408  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
 10409  	// GcsTrainingInput: Cloud Storage training input.
 10410  	GcsTrainingInput *GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput `json:"gcsTrainingInput,omitempty"`
 10411  	// ModelId: If not provided, a UUID will be generated.
 10412  	ModelId string `json:"modelId,omitempty"`
 10413  	// ModelType: Model to be trained. Supported values are: * **search-tuning**:
 10414  	// Fine tuning the search system based on data provided.
 10415  	ModelType string `json:"modelType,omitempty"`
 10416  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
 10417  	// unconditionally include in API requests. By default, fields with empty or
 10418  	// default values are omitted from API requests. See
 10419  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10420  	// details.
 10421  	ForceSendFields []string `json:"-"`
 10422  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
 10423  	// requests with the JSON null value. By default, fields with empty values are
 10424  	// omitted from API requests. See
 10425  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10426  	NullFields []string `json:"-"`
 10427  }
 10428  
 10429  func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest) MarshalJSON() ([]byte, error) {
 10430  	type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest
 10431  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10432  }
 10433  
 10434  // GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput:
 10435  // Cloud Storage training data input.
 10436  type GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput struct {
 10437  	// CorpusDataPath: The Cloud Storage corpus data which could be associated in
 10438  	// train data. The data path format is `gs:///`. A newline delimited
 10439  	// jsonl/ndjson file. For search-tuning model, each line should have the _id,
 10440  	// title and text. Example: `{"_id": "doc1", title: "relevant doc", "text":
 10441  	// "relevant text"}`
 10442  	CorpusDataPath string `json:"corpusDataPath,omitempty"`
 10443  	// QueryDataPath: The gcs query data which could be associated in train data.
 10444  	// The data path format is `gs:///`. A newline delimited jsonl/ndjson file. For
 10445  	// search-tuning model, each line should have the _id and text. Example:
 10446  	// {"_id": "query1", "text": "example query"}
 10447  	QueryDataPath string `json:"queryDataPath,omitempty"`
 10448  	// TestDataPath: Cloud Storage test data. Same format as train_data_path. If
 10449  	// not provided, a random 80/20 train/test split will be performed on
 10450  	// train_data_path.
 10451  	TestDataPath string `json:"testDataPath,omitempty"`
 10452  	// TrainDataPath: Cloud Storage training data path whose format should be
 10453  	// `gs:///`. The file should be in tsv format. Each line should have the doc_id
 10454  	// and query_id and score (number). For search-tuning model, it should have the
 10455  	// query-id corpus-id score as tsv file header. The score should be a number in
 10456  	// `[0, inf+)`. The larger the number is, the more relevant the pair is.
 10457  	// Example: * `query-id\tcorpus-id\tscore` * `query1\tdoc1\t1`
 10458  	TrainDataPath string `json:"trainDataPath,omitempty"`
 10459  	// ForceSendFields is a list of field names (e.g. "CorpusDataPath") to
 10460  	// unconditionally include in API requests. By default, fields with empty or
 10461  	// default values are omitted from API requests. See
 10462  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10463  	// details.
 10464  	ForceSendFields []string `json:"-"`
 10465  	// NullFields is a list of field names (e.g. "CorpusDataPath") to include in
 10466  	// API requests with the JSON null value. By default, fields with empty values
 10467  	// are omitted from API requests. See
 10468  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10469  	NullFields []string `json:"-"`
 10470  }
 10471  
 10472  func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput) MarshalJSON() ([]byte, error) {
 10473  	type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput
 10474  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10475  }
 10476  
 10477  // GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse: Response of the
 10478  // TrainCustomModelRequest. This message is returned by the
 10479  // google.longrunning.Operations.response field.
 10480  type GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse struct {
 10481  	// ErrorConfig: Echoes the destination for the complete errors in the request
 10482  	// if set.
 10483  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
 10484  	// ErrorSamples: A sample of errors encountered while processing the data.
 10485  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
 10486  	// Metrics: The metrics of the trained model.
 10487  	Metrics map[string]float64 `json:"metrics,omitempty"`
 10488  	// ModelName: Fully qualified name of the CustomTuningModel.
 10489  	ModelName string `json:"modelName,omitempty"`
 10490  	// ModelStatus: The trained model status. Possible values are: * **bad-data**:
 10491  	// The training data quality is bad. * **no-improvement**: Tuning didn't
 10492  	// improve performance. Won't deploy. * **in-progress**: Model training job
 10493  	// creation is in progress. * **training**: Model is actively training. *
 10494  	// **evaluating**: The model is evaluating trained metrics. * **indexing**: The
 10495  	// model trained metrics are indexing. * **ready**: The model is ready for
 10496  	// serving.
 10497  	ModelStatus string `json:"modelStatus,omitempty"`
 10498  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
 10499  	// unconditionally include in API requests. By default, fields with empty or
 10500  	// default values are omitted from API requests. See
 10501  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10502  	// details.
 10503  	ForceSendFields []string `json:"-"`
 10504  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
 10505  	// requests with the JSON null value. By default, fields with empty values are
 10506  	// omitted from API requests. See
 10507  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10508  	NullFields []string `json:"-"`
 10509  }
 10510  
 10511  func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse) MarshalJSON() ([]byte, error) {
 10512  	type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse
 10513  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10514  }
 10515  
 10516  // GoogleCloudDiscoveryengineV1alphaTransactionInfo: A transaction represents
 10517  // the entire purchase transaction.
 10518  type GoogleCloudDiscoveryengineV1alphaTransactionInfo struct {
 10519  	// Cost: All the costs associated with the products. These can be manufacturing
 10520  	// costs, shipping expenses not borne by the end user, or any other costs, such
 10521  	// that: * Profit = value - tax - cost
 10522  	Cost float64 `json:"cost,omitempty"`
 10523  	// Currency: Required. Currency code. Use three-character ISO-4217 code.
 10524  	Currency string `json:"currency,omitempty"`
 10525  	// DiscountValue: The total discount(s) value applied to this transaction. This
 10526  	// figure should be excluded from TransactionInfo.value For example, if a user
 10527  	// paid TransactionInfo.value amount, then nominal (pre-discount) value of the
 10528  	// transaction is the sum of TransactionInfo.value and
 10529  	// TransactionInfo.discount_value This means that profit is calculated the same
 10530  	// way, regardless of the discount value, and that
 10531  	// TransactionInfo.discount_value can be larger than TransactionInfo.value: *
 10532  	// Profit = value - tax - cost
 10533  	DiscountValue float64 `json:"discountValue,omitempty"`
 10534  	// Tax: All the taxes associated with the transaction.
 10535  	Tax float64 `json:"tax,omitempty"`
 10536  	// TransactionId: The transaction ID with a length limit of 128 characters.
 10537  	TransactionId string `json:"transactionId,omitempty"`
 10538  	// Value: Required. Total non-zero value associated with the transaction. This
 10539  	// value may include shipping, tax, or other adjustments to the total value
 10540  	// that you want to include.
 10541  	Value float64 `json:"value,omitempty"`
 10542  	// ForceSendFields is a list of field names (e.g. "Cost") to unconditionally
 10543  	// include in API requests. By default, fields with empty or default values are
 10544  	// omitted from API requests. See
 10545  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10546  	// details.
 10547  	ForceSendFields []string `json:"-"`
 10548  	// NullFields is a list of field names (e.g. "Cost") to include in API requests
 10549  	// with the JSON null value. By default, fields with empty values are omitted
 10550  	// from API requests. See
 10551  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10552  	NullFields []string `json:"-"`
 10553  }
 10554  
 10555  func (s *GoogleCloudDiscoveryengineV1alphaTransactionInfo) MarshalJSON() ([]byte, error) {
 10556  	type NoMethod GoogleCloudDiscoveryengineV1alphaTransactionInfo
 10557  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10558  }
 10559  
 10560  func (s *GoogleCloudDiscoveryengineV1alphaTransactionInfo) UnmarshalJSON(data []byte) error {
 10561  	type NoMethod GoogleCloudDiscoveryengineV1alphaTransactionInfo
 10562  	var s1 struct {
 10563  		Cost          gensupport.JSONFloat64 `json:"cost"`
 10564  		DiscountValue gensupport.JSONFloat64 `json:"discountValue"`
 10565  		Tax           gensupport.JSONFloat64 `json:"tax"`
 10566  		Value         gensupport.JSONFloat64 `json:"value"`
 10567  		*NoMethod
 10568  	}
 10569  	s1.NoMethod = (*NoMethod)(s)
 10570  	if err := json.Unmarshal(data, &s1); err != nil {
 10571  		return err
 10572  	}
 10573  	s.Cost = float64(s1.Cost)
 10574  	s.DiscountValue = float64(s1.DiscountValue)
 10575  	s.Tax = float64(s1.Tax)
 10576  	s.Value = float64(s1.Value)
 10577  	return nil
 10578  }
 10579  
 10580  // GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata: Metadata associated
 10581  // with a tune operation.
 10582  type GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata struct {
 10583  	// Engine: Required. The resource name of the engine that this tune applies to.
 10584  	// Format:
 10585  	// `projects/{project_number}/locations/{location_id}/collections/{collection_id
 10586  	// }/engines/{engine_id}`
 10587  	Engine string `json:"engine,omitempty"`
 10588  	// ForceSendFields is a list of field names (e.g. "Engine") to unconditionally
 10589  	// include in API requests. By default, fields with empty or default values are
 10590  	// omitted from API requests. See
 10591  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10592  	// details.
 10593  	ForceSendFields []string `json:"-"`
 10594  	// NullFields is a list of field names (e.g. "Engine") to include in API
 10595  	// requests with the JSON null value. By default, fields with empty values are
 10596  	// omitted from API requests. See
 10597  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10598  	NullFields []string `json:"-"`
 10599  }
 10600  
 10601  func (s *GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata) MarshalJSON() ([]byte, error) {
 10602  	type NoMethod GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata
 10603  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10604  }
 10605  
 10606  // GoogleCloudDiscoveryengineV1alphaTuneEngineRequest: Request to manually
 10607  // start a tuning process now (instead of waiting for the periodically
 10608  // scheduled tuning to happen).
 10609  type GoogleCloudDiscoveryengineV1alphaTuneEngineRequest struct {
 10610  }
 10611  
 10612  // GoogleCloudDiscoveryengineV1alphaTuneEngineResponse: Response associated
 10613  // with a tune operation.
 10614  type GoogleCloudDiscoveryengineV1alphaTuneEngineResponse struct {
 10615  }
 10616  
 10617  // GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata: Metadata for
 10618  // UpdateSchema LRO.
 10619  type GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata struct {
 10620  	// CreateTime: Operation create time.
 10621  	CreateTime string `json:"createTime,omitempty"`
 10622  	// UpdateTime: Operation last update time. If the operation is done, this is
 10623  	// also the finish time.
 10624  	UpdateTime string `json:"updateTime,omitempty"`
 10625  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 10626  	// unconditionally include in API requests. By default, fields with empty or
 10627  	// default values are omitted from API requests. See
 10628  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10629  	// details.
 10630  	ForceSendFields []string `json:"-"`
 10631  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 10632  	// requests with the JSON null value. By default, fields with empty values are
 10633  	// omitted from API requests. See
 10634  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10635  	NullFields []string `json:"-"`
 10636  }
 10637  
 10638  func (s *GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
 10639  	type NoMethod GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata
 10640  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10641  }
 10642  
 10643  // GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata: Metadata related
 10644  // to the progress of the SiteSearchEngineService.UpdateTargetSite operation.
 10645  // This will be returned by the google.longrunning.Operation.metadata field.
 10646  type GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata struct {
 10647  	// CreateTime: Operation create time.
 10648  	CreateTime string `json:"createTime,omitempty"`
 10649  	// UpdateTime: Operation last update time. If the operation is done, this is
 10650  	// also the finish time.
 10651  	UpdateTime string `json:"updateTime,omitempty"`
 10652  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 10653  	// unconditionally include in API requests. By default, fields with empty or
 10654  	// default values are omitted from API requests. See
 10655  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10656  	// details.
 10657  	ForceSendFields []string `json:"-"`
 10658  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 10659  	// requests with the JSON null value. By default, fields with empty values are
 10660  	// omitted from API requests. See
 10661  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10662  	NullFields []string `json:"-"`
 10663  }
 10664  
 10665  func (s *GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
 10666  	type NoMethod GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata
 10667  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10668  }
 10669  
 10670  // GoogleCloudDiscoveryengineV1alphaUserEvent: UserEvent captures all metadata
 10671  // information Discovery Engine API needs to know about how end users interact
 10672  // with customers' website.
 10673  type GoogleCloudDiscoveryengineV1alphaUserEvent struct {
 10674  	// Attributes: Extra user event features to include in the recommendation
 10675  	// model. These attributes must NOT contain data that needs to be parsed or
 10676  	// processed further, e.g. JSON or other encodings. If you provide custom
 10677  	// attributes for ingested user events, also include them in the user events
 10678  	// that you associate with prediction requests. Custom attribute formatting
 10679  	// must be consistent between imported events and events provided with
 10680  	// prediction requests. This lets the Discovery Engine API use those custom
 10681  	// attributes when training models and serving predictions, which helps improve
 10682  	// recommendation quality. This field needs to pass all below criteria,
 10683  	// otherwise an `INVALID_ARGUMENT` error is returned: * The key must be a UTF-8
 10684  	// encoded string with a length limit of 5,000 characters. * For text
 10685  	// attributes, at most 400 values are allowed. Empty values are not allowed.
 10686  	// Each value must be a UTF-8 encoded string with a length limit of 256
 10687  	// characters. * For number attributes, at most 400 values are allowed. For
 10688  	// product recommendations, an example of extra user information is
 10689  	// `traffic_channel`, which is how a user arrives at the site. Users can arrive
 10690  	// at the site by coming to the site directly, coming through Google search, or
 10691  	// in other ways.
 10692  	Attributes map[string]GoogleCloudDiscoveryengineV1alphaCustomAttribute `json:"attributes,omitempty"`
 10693  	// AttributionToken: Token to attribute an API response to user action(s) to
 10694  	// trigger the event. Highly recommended for user events that are the result of
 10695  	// RecommendationService.Recommend. This field enables accurate attribution of
 10696  	// recommendation model performance. The value must be one of: *
 10697  	// RecommendResponse.attribution_token for events that are the result of
 10698  	// RecommendationService.Recommend. * SearchResponse.attribution_token for
 10699  	// events that are the result of SearchService.Search. This token enables us to
 10700  	// accurately attribute page view or conversion completion back to the event
 10701  	// and the particular predict response containing this clicked/purchased
 10702  	// product. If user clicks on product K in the recommendation results, pass
 10703  	// RecommendResponse.attribution_token as a URL parameter to product K's page.
 10704  	// When recording events on product K's page, log the
 10705  	// RecommendResponse.attribution_token to this field.
 10706  	AttributionToken string `json:"attributionToken,omitempty"`
 10707  	// CompletionInfo: CompletionService.CompleteQuery details related to the
 10708  	// event. This field should be set for `search` event when autocomplete
 10709  	// function is enabled and the user clicks a suggestion for search.
 10710  	CompletionInfo *GoogleCloudDiscoveryengineV1alphaCompletionInfo `json:"completionInfo,omitempty"`
 10711  	// DirectUserRequest: Should set to true if the request is made directly from
 10712  	// the end user, in which case the UserEvent.user_info.user_agent can be
 10713  	// populated from the HTTP request. This flag should be set only if the API
 10714  	// request is made directly from the end user such as a mobile app (and not if
 10715  	// a gateway or a server is processing and pushing the user events). This
 10716  	// should not be set when using the JavaScript tag in
 10717  	// UserEventService.CollectUserEvent.
 10718  	DirectUserRequest bool `json:"directUserRequest,omitempty"`
 10719  	// Documents: List of Documents associated with this user event. This field is
 10720  	// optional except for the following event types: * `view-item` * `add-to-cart`
 10721  	// * `purchase` * `media-play` * `media-complete` In a `search` event, this
 10722  	// field represents the documents returned to the end user on the current page
 10723  	// (the end user may have not finished browsing the whole page yet). When a new
 10724  	// page is returned to the end user, after pagination/filtering/ordering even
 10725  	// for the same query, a new `search` event with different UserEvent.documents
 10726  	// is desired.
 10727  	Documents []*GoogleCloudDiscoveryengineV1alphaDocumentInfo `json:"documents,omitempty"`
 10728  	// EventTime: Only required for UserEventService.ImportUserEvents method.
 10729  	// Timestamp of when the user event happened.
 10730  	EventTime string `json:"eventTime,omitempty"`
 10731  	// EventType: Required. User event type. Allowed values are: Generic values: *
 10732  	// `search`: Search for Documents. * `view-item`: Detailed page view of a
 10733  	// Document. * `view-item-list`: View of a panel or ordered list of Documents.
 10734  	// * `view-home-page`: View of the home page. * `view-category-page`: View of a
 10735  	// category page, e.g. Home > Men > Jeans Retail-related values: *
 10736  	// `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping *
 10737  	// `purchase`: Purchase an item(s) Media-related values: * `media-play`:
 10738  	// Start/resume watching a video, playing a song, etc. * `media-complete`:
 10739  	// Finished or stopped midway through a video, song, etc.
 10740  	EventType string `json:"eventType,omitempty"`
 10741  	// Filter: The filter syntax consists of an expression language for
 10742  	// constructing a predicate from one or more fields of the documents being
 10743  	// filtered. One example is for `search` events, the associated SearchRequest
 10744  	// may contain a filter expression in SearchRequest.filter conforming to
 10745  	// https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events
 10746  	// that are generated from a RecommendRequest, this field may be populated
 10747  	// directly from RecommendRequest.filter conforming to
 10748  	// https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded
 10749  	// string with a length limit of 1,000 characters. Otherwise, an
 10750  	// `INVALID_ARGUMENT` error is returned.
 10751  	Filter string `json:"filter,omitempty"`
 10752  	// MediaInfo: Media-specific info.
 10753  	MediaInfo *GoogleCloudDiscoveryengineV1alphaMediaInfo `json:"mediaInfo,omitempty"`
 10754  	// PageInfo: Page metadata such as categories and other critical information
 10755  	// for certain event types such as `view-category-page`.
 10756  	PageInfo *GoogleCloudDiscoveryengineV1alphaPageInfo `json:"pageInfo,omitempty"`
 10757  	// Panel: Panel metadata associated with this user event.
 10758  	Panel *GoogleCloudDiscoveryengineV1alphaPanelInfo `json:"panel,omitempty"`
 10759  	// PromotionIds: The promotion IDs if this is an event associated with
 10760  	// promotions. Currently, this field is restricted to at most one ID.
 10761  	PromotionIds []string `json:"promotionIds,omitempty"`
 10762  	// SearchInfo: SearchService.Search details related to the event. This field
 10763  	// should be set for `search` event.
 10764  	SearchInfo *GoogleCloudDiscoveryengineV1alphaSearchInfo `json:"searchInfo,omitempty"`
 10765  	// SessionId: A unique identifier for tracking a visitor session with a length
 10766  	// limit of 128 bytes. A session is an aggregation of an end user behavior in a
 10767  	// time span. A general guideline to populate the session_id: 1. If user has no
 10768  	// activity for 30 min, a new session_id should be assigned. 2. The session_id
 10769  	// should be unique across users, suggest use uuid or add
 10770  	// UserEvent.user_pseudo_id as prefix.
 10771  	SessionId string `json:"sessionId,omitempty"`
 10772  	// TagIds: A list of identifiers for the independent experiment groups this
 10773  	// user event belongs to. This is used to distinguish between user events
 10774  	// associated with different experiment setups on the customer end.
 10775  	TagIds []string `json:"tagIds,omitempty"`
 10776  	// TransactionInfo: The transaction metadata (if any) associated with this user
 10777  	// event.
 10778  	TransactionInfo *GoogleCloudDiscoveryengineV1alphaTransactionInfo `json:"transactionInfo,omitempty"`
 10779  	// UserInfo: Information about the end user.
 10780  	UserInfo *GoogleCloudDiscoveryengineV1alphaUserInfo `json:"userInfo,omitempty"`
 10781  	// UserPseudoId: Required. A unique identifier for tracking visitors. For
 10782  	// example, this could be implemented with an HTTP cookie, which should be able
 10783  	// to uniquely identify a visitor on a single device. This unique identifier
 10784  	// should not change if the visitor log in/out of the website. Do not set the
 10785  	// field to the same fixed ID for different users. This mixes the event history
 10786  	// of those users together, which results in degraded model quality. The field
 10787  	// must be a UTF-8 encoded string with a length limit of 128 characters.
 10788  	// Otherwise, an `INVALID_ARGUMENT` error is returned. The field should not
 10789  	// contain PII or user-data. We recommend to use Google Analytics Client ID
 10790  	// (https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
 10791  	// for this field.
 10792  	UserPseudoId string `json:"userPseudoId,omitempty"`
 10793  
 10794  	// ServerResponse contains the HTTP response code and headers from the server.
 10795  	googleapi.ServerResponse `json:"-"`
 10796  	// ForceSendFields is a list of field names (e.g. "Attributes") to
 10797  	// unconditionally include in API requests. By default, fields with empty or
 10798  	// default values are omitted from API requests. See
 10799  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10800  	// details.
 10801  	ForceSendFields []string `json:"-"`
 10802  	// NullFields is a list of field names (e.g. "Attributes") to include in API
 10803  	// requests with the JSON null value. By default, fields with empty values are
 10804  	// omitted from API requests. See
 10805  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10806  	NullFields []string `json:"-"`
 10807  }
 10808  
 10809  func (s *GoogleCloudDiscoveryengineV1alphaUserEvent) MarshalJSON() ([]byte, error) {
 10810  	type NoMethod GoogleCloudDiscoveryengineV1alphaUserEvent
 10811  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10812  }
 10813  
 10814  // GoogleCloudDiscoveryengineV1alphaUserInfo: Information of an end user.
 10815  type GoogleCloudDiscoveryengineV1alphaUserInfo struct {
 10816  	// UserAgent: User agent as included in the HTTP header. The field must be a
 10817  	// UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an
 10818  	// `INVALID_ARGUMENT` error is returned. This should not be set when using the
 10819  	// client side event reporting with GTM or JavaScript tag in
 10820  	// UserEventService.CollectUserEvent or if UserEvent.direct_user_request is
 10821  	// set.
 10822  	UserAgent string `json:"userAgent,omitempty"`
 10823  	// UserId: Highly recommended for logged-in users. Unique identifier for
 10824  	// logged-in user, such as a user name. Don't set for anonymous users. Always
 10825  	// use a hashed value for this ID. Don't set the field to the same fixed ID for
 10826  	// different users. This mixes the event history of those users together, which
 10827  	// results in degraded model quality. The field must be a UTF-8 encoded string
 10828  	// with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT`
 10829  	// error is returned.
 10830  	UserId string `json:"userId,omitempty"`
 10831  	// ForceSendFields is a list of field names (e.g. "UserAgent") to
 10832  	// unconditionally include in API requests. By default, fields with empty or
 10833  	// default values are omitted from API requests. See
 10834  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10835  	// details.
 10836  	ForceSendFields []string `json:"-"`
 10837  	// NullFields is a list of field names (e.g. "UserAgent") to include in API
 10838  	// requests with the JSON null value. By default, fields with empty values are
 10839  	// omitted from API requests. See
 10840  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10841  	NullFields []string `json:"-"`
 10842  }
 10843  
 10844  func (s *GoogleCloudDiscoveryengineV1alphaUserInfo) MarshalJSON() ([]byte, error) {
 10845  	type NoMethod GoogleCloudDiscoveryengineV1alphaUserInfo
 10846  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10847  }
 10848  
 10849  // GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata: Metadata
 10850  // related to the progress of the
 10851  // SiteSearchEngineService.BatchCreateTargetSites operation. This will be
 10852  // returned by the google.longrunning.Operation.metadata field.
 10853  type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata struct {
 10854  	// CreateTime: Operation create time.
 10855  	CreateTime string `json:"createTime,omitempty"`
 10856  	// UpdateTime: Operation last update time. If the operation is done, this is
 10857  	// also the finish time.
 10858  	UpdateTime string `json:"updateTime,omitempty"`
 10859  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 10860  	// unconditionally include in API requests. By default, fields with empty or
 10861  	// default values are omitted from API requests. See
 10862  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10863  	// details.
 10864  	ForceSendFields []string `json:"-"`
 10865  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 10866  	// requests with the JSON null value. By default, fields with empty values are
 10867  	// omitted from API requests. See
 10868  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10869  	NullFields []string `json:"-"`
 10870  }
 10871  
 10872  func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
 10873  	type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata
 10874  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10875  }
 10876  
 10877  // GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse: Response
 10878  // message for SiteSearchEngineService.BatchCreateTargetSites method.
 10879  type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse struct {
 10880  	// TargetSites: TargetSites created.
 10881  	TargetSites []*GoogleCloudDiscoveryengineV1betaTargetSite `json:"targetSites,omitempty"`
 10882  	// ForceSendFields is a list of field names (e.g. "TargetSites") to
 10883  	// unconditionally include in API requests. By default, fields with empty or
 10884  	// default values are omitted from API requests. See
 10885  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10886  	// details.
 10887  	ForceSendFields []string `json:"-"`
 10888  	// NullFields is a list of field names (e.g. "TargetSites") to include in API
 10889  	// requests with the JSON null value. By default, fields with empty values are
 10890  	// omitted from API requests. See
 10891  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10892  	NullFields []string `json:"-"`
 10893  }
 10894  
 10895  func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
 10896  	type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse
 10897  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10898  }
 10899  
 10900  // GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata: Metadata related to
 10901  // the progress of the DataStoreService.CreateDataStore operation. This will be
 10902  // returned by the google.longrunning.Operation.metadata field.
 10903  type GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata struct {
 10904  	// CreateTime: Operation create time.
 10905  	CreateTime string `json:"createTime,omitempty"`
 10906  	// UpdateTime: Operation last update time. If the operation is done, this is
 10907  	// also the finish time.
 10908  	UpdateTime string `json:"updateTime,omitempty"`
 10909  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 10910  	// unconditionally include in API requests. By default, fields with empty or
 10911  	// default values are omitted from API requests. See
 10912  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10913  	// details.
 10914  	ForceSendFields []string `json:"-"`
 10915  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 10916  	// requests with the JSON null value. By default, fields with empty values are
 10917  	// omitted from API requests. See
 10918  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10919  	NullFields []string `json:"-"`
 10920  }
 10921  
 10922  func (s *GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
 10923  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata
 10924  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10925  }
 10926  
 10927  // GoogleCloudDiscoveryengineV1betaCreateEngineMetadata: Metadata related to
 10928  // the progress of the EngineService.CreateEngine operation. This will be
 10929  // returned by the google.longrunning.Operation.metadata field.
 10930  type GoogleCloudDiscoveryengineV1betaCreateEngineMetadata struct {
 10931  	// CreateTime: Operation create time.
 10932  	CreateTime string `json:"createTime,omitempty"`
 10933  	// UpdateTime: Operation last update time. If the operation is done, this is
 10934  	// also the finish time.
 10935  	UpdateTime string `json:"updateTime,omitempty"`
 10936  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 10937  	// unconditionally include in API requests. By default, fields with empty or
 10938  	// default values are omitted from API requests. See
 10939  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10940  	// details.
 10941  	ForceSendFields []string `json:"-"`
 10942  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 10943  	// requests with the JSON null value. By default, fields with empty values are
 10944  	// omitted from API requests. See
 10945  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10946  	NullFields []string `json:"-"`
 10947  }
 10948  
 10949  func (s *GoogleCloudDiscoveryengineV1betaCreateEngineMetadata) MarshalJSON() ([]byte, error) {
 10950  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateEngineMetadata
 10951  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10952  }
 10953  
 10954  // GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata: Metadata for Create
 10955  // Schema LRO.
 10956  type GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata struct {
 10957  	// CreateTime: Operation create time.
 10958  	CreateTime string `json:"createTime,omitempty"`
 10959  	// UpdateTime: Operation last update time. If the operation is done, this is
 10960  	// also the finish time.
 10961  	UpdateTime string `json:"updateTime,omitempty"`
 10962  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 10963  	// unconditionally include in API requests. By default, fields with empty or
 10964  	// default values are omitted from API requests. See
 10965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10966  	// details.
 10967  	ForceSendFields []string `json:"-"`
 10968  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 10969  	// requests with the JSON null value. By default, fields with empty values are
 10970  	// omitted from API requests. See
 10971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10972  	NullFields []string `json:"-"`
 10973  }
 10974  
 10975  func (s *GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata) MarshalJSON() ([]byte, error) {
 10976  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata
 10977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10978  }
 10979  
 10980  // GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata: Metadata related
 10981  // to the progress of the SiteSearchEngineService.CreateTargetSite operation.
 10982  // This will be returned by the google.longrunning.Operation.metadata field.
 10983  type GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata struct {
 10984  	// CreateTime: Operation create time.
 10985  	CreateTime string `json:"createTime,omitempty"`
 10986  	// UpdateTime: Operation last update time. If the operation is done, this is
 10987  	// also the finish time.
 10988  	UpdateTime string `json:"updateTime,omitempty"`
 10989  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 10990  	// unconditionally include in API requests. By default, fields with empty or
 10991  	// default values are omitted from API requests. See
 10992  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10993  	// details.
 10994  	ForceSendFields []string `json:"-"`
 10995  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 10996  	// requests with the JSON null value. By default, fields with empty values are
 10997  	// omitted from API requests. See
 10998  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10999  	NullFields []string `json:"-"`
 11000  }
 11001  
 11002  func (s *GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
 11003  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata
 11004  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11005  }
 11006  
 11007  // GoogleCloudDiscoveryengineV1betaCustomTuningModel: Metadata that describes a
 11008  // custom tuned model.
 11009  type GoogleCloudDiscoveryengineV1betaCustomTuningModel struct {
 11010  	// CreateTime: Timestamp the Model was created at.
 11011  	CreateTime string `json:"createTime,omitempty"`
 11012  	// DisplayName: The display name of the model.
 11013  	DisplayName string `json:"displayName,omitempty"`
 11014  	// ModelState: The state that the model is in (e.g.`TRAINING` or
 11015  	// `TRAINING_FAILED`).
 11016  	//
 11017  	// Possible values:
 11018  	//   "MODEL_STATE_UNSPECIFIED"
 11019  	//   "TRAINING_PAUSED" - The model is in a paused training state.
 11020  	//   "TRAINING" - The model is currently training.
 11021  	//   "TRAINING_COMPLETE" - The model has successfully completed training.
 11022  	//   "READY_FOR_SERVING" - The model is ready for serving.
 11023  	//   "TRAINING_FAILED" - The model training failed.
 11024  	ModelState   string `json:"modelState,omitempty"`
 11025  	ModelVersion int64  `json:"modelVersion,omitempty,string"`
 11026  	// Name: Required. The fully qualified resource name of the model. Format:
 11027  	// `projects/{project_number}/locations/{location}/collections/{collection}/data
 11028  	// Stores/{data_store}/customTuningModels/{custom_tuning_model}` model must be
 11029  	// an alpha-numerical string with limit of 40 characters.
 11030  	Name string `json:"name,omitempty"`
 11031  	// TrainingStartTime: Timestamp the model training was initiated.
 11032  	TrainingStartTime string `json:"trainingStartTime,omitempty"`
 11033  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11034  	// unconditionally include in API requests. By default, fields with empty or
 11035  	// default values are omitted from API requests. See
 11036  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11037  	// details.
 11038  	ForceSendFields []string `json:"-"`
 11039  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11040  	// requests with the JSON null value. By default, fields with empty values are
 11041  	// omitted from API requests. See
 11042  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11043  	NullFields []string `json:"-"`
 11044  }
 11045  
 11046  func (s *GoogleCloudDiscoveryengineV1betaCustomTuningModel) MarshalJSON() ([]byte, error) {
 11047  	type NoMethod GoogleCloudDiscoveryengineV1betaCustomTuningModel
 11048  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11049  }
 11050  
 11051  // GoogleCloudDiscoveryengineV1betaDataStore: DataStore captures global
 11052  // settings and configs at the DataStore level.
 11053  type GoogleCloudDiscoveryengineV1betaDataStore struct {
 11054  	// ContentConfig: Immutable. The content config of the data store. If this
 11055  	// field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
 11056  	//
 11057  	// Possible values:
 11058  	//   "CONTENT_CONFIG_UNSPECIFIED" - Default value.
 11059  	//   "NO_CONTENT" - Only contains documents without any Document.content.
 11060  	//   "CONTENT_REQUIRED" - Only contains documents with Document.content.
 11061  	//   "PUBLIC_WEBSITE" - The data store is used for public website search.
 11062  	ContentConfig string `json:"contentConfig,omitempty"`
 11063  	// CreateTime: Output only. Timestamp the DataStore was created at.
 11064  	CreateTime string `json:"createTime,omitempty"`
 11065  	// DefaultSchemaId: Output only. The id of the default Schema asscociated to
 11066  	// this data store.
 11067  	DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
 11068  	// DisplayName: Required. The data store display name. This field must be a
 11069  	// UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
 11070  	// INVALID_ARGUMENT error is returned.
 11071  	DisplayName string `json:"displayName,omitempty"`
 11072  	// DocumentProcessingConfig: Configuration for Document understanding and
 11073  	// enrichment.
 11074  	DocumentProcessingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
 11075  	// IndustryVertical: Immutable. The industry vertical that the data store
 11076  	// registers.
 11077  	//
 11078  	// Possible values:
 11079  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
 11080  	//   "GENERIC" - The generic vertical for documents that are not specific to
 11081  	// any industry vertical.
 11082  	//   "MEDIA" - The media industry vertical.
 11083  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
 11084  	IndustryVertical string `json:"industryVertical,omitempty"`
 11085  	// Name: Immutable. The full resource name of the data store. Format:
 11086  	// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
 11087  	// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
 11088  	// limit of 1024 characters.
 11089  	Name string `json:"name,omitempty"`
 11090  	// SolutionTypes: The solutions that the data store enrolls. Available
 11091  	// solutions for each industry_vertical: * `MEDIA`:
 11092  	// `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`:
 11093  	// `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be
 11094  	// enrolled.
 11095  	//
 11096  	// Possible values:
 11097  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
 11098  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
 11099  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
 11100  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
 11101  	// agent.
 11102  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
 11103  	// Generative Chat agent. It's used for Generative chat engine only, the
 11104  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
 11105  	SolutionTypes []string `json:"solutionTypes,omitempty"`
 11106  	// StartingSchema: The start schema to use for this DataStore when provisioning
 11107  	// it. If unset, a default vertical specialized schema will be used. This field
 11108  	// is only used by CreateDataStore API, and will be ignored if used in other
 11109  	// APIs. This field will be omitted from all API responses including
 11110  	// CreateDataStore API. To retrieve a schema of a DataStore, use
 11111  	// SchemaService.GetSchema API instead. The provided schema will be validated
 11112  	// against certain rules on schema. Learn more from this doc
 11113  	// (https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
 11114  	StartingSchema *GoogleCloudDiscoveryengineV1betaSchema `json:"startingSchema,omitempty"`
 11115  	// ForceSendFields is a list of field names (e.g. "ContentConfig") to
 11116  	// unconditionally include in API requests. By default, fields with empty or
 11117  	// default values are omitted from API requests. See
 11118  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11119  	// details.
 11120  	ForceSendFields []string `json:"-"`
 11121  	// NullFields is a list of field names (e.g. "ContentConfig") to include in API
 11122  	// requests with the JSON null value. By default, fields with empty values are
 11123  	// omitted from API requests. See
 11124  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11125  	NullFields []string `json:"-"`
 11126  }
 11127  
 11128  func (s *GoogleCloudDiscoveryengineV1betaDataStore) MarshalJSON() ([]byte, error) {
 11129  	type NoMethod GoogleCloudDiscoveryengineV1betaDataStore
 11130  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11131  }
 11132  
 11133  // GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata: Metadata related to
 11134  // the progress of the DataStoreService.DeleteDataStore operation. This will be
 11135  // returned by the google.longrunning.Operation.metadata field.
 11136  type GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata struct {
 11137  	// CreateTime: Operation create time.
 11138  	CreateTime string `json:"createTime,omitempty"`
 11139  	// UpdateTime: Operation last update time. If the operation is done, this is
 11140  	// also the finish time.
 11141  	UpdateTime string `json:"updateTime,omitempty"`
 11142  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11143  	// unconditionally include in API requests. By default, fields with empty or
 11144  	// default values are omitted from API requests. See
 11145  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11146  	// details.
 11147  	ForceSendFields []string `json:"-"`
 11148  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11149  	// requests with the JSON null value. By default, fields with empty values are
 11150  	// omitted from API requests. See
 11151  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11152  	NullFields []string `json:"-"`
 11153  }
 11154  
 11155  func (s *GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
 11156  	type NoMethod GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata
 11157  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11158  }
 11159  
 11160  // GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata: Metadata related to
 11161  // the progress of the EngineService.DeleteEngine operation. This will be
 11162  // returned by the google.longrunning.Operation.metadata field.
 11163  type GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata struct {
 11164  	// CreateTime: Operation create time.
 11165  	CreateTime string `json:"createTime,omitempty"`
 11166  	// UpdateTime: Operation last update time. If the operation is done, this is
 11167  	// also the finish time.
 11168  	UpdateTime string `json:"updateTime,omitempty"`
 11169  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11170  	// unconditionally include in API requests. By default, fields with empty or
 11171  	// default values are omitted from API requests. See
 11172  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11173  	// details.
 11174  	ForceSendFields []string `json:"-"`
 11175  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11176  	// requests with the JSON null value. By default, fields with empty values are
 11177  	// omitted from API requests. See
 11178  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11179  	NullFields []string `json:"-"`
 11180  }
 11181  
 11182  func (s *GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata) MarshalJSON() ([]byte, error) {
 11183  	type NoMethod GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata
 11184  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11185  }
 11186  
 11187  // GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata: Metadata for
 11188  // DeleteSchema LRO.
 11189  type GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata struct {
 11190  	// CreateTime: Operation create time.
 11191  	CreateTime string `json:"createTime,omitempty"`
 11192  	// UpdateTime: Operation last update time. If the operation is done, this is
 11193  	// also the finish time.
 11194  	UpdateTime string `json:"updateTime,omitempty"`
 11195  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11196  	// unconditionally include in API requests. By default, fields with empty or
 11197  	// default values are omitted from API requests. See
 11198  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11199  	// details.
 11200  	ForceSendFields []string `json:"-"`
 11201  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11202  	// requests with the JSON null value. By default, fields with empty values are
 11203  	// omitted from API requests. See
 11204  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11205  	NullFields []string `json:"-"`
 11206  }
 11207  
 11208  func (s *GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
 11209  	type NoMethod GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata
 11210  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11211  }
 11212  
 11213  // GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata: Metadata related
 11214  // to the progress of the SiteSearchEngineService.DeleteTargetSite operation.
 11215  // This will be returned by the google.longrunning.Operation.metadata field.
 11216  type GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata struct {
 11217  	// CreateTime: Operation create time.
 11218  	CreateTime string `json:"createTime,omitempty"`
 11219  	// UpdateTime: Operation last update time. If the operation is done, this is
 11220  	// also the finish time.
 11221  	UpdateTime string `json:"updateTime,omitempty"`
 11222  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11223  	// unconditionally include in API requests. By default, fields with empty or
 11224  	// default values are omitted from API requests. See
 11225  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11226  	// details.
 11227  	ForceSendFields []string `json:"-"`
 11228  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11229  	// requests with the JSON null value. By default, fields with empty values are
 11230  	// omitted from API requests. See
 11231  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11232  	NullFields []string `json:"-"`
 11233  }
 11234  
 11235  func (s *GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
 11236  	type NoMethod GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata
 11237  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11238  }
 11239  
 11240  // GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata: Metadata
 11241  // related to the progress of the
 11242  // SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be
 11243  // returned by the google.longrunning.Operation.metadata field.
 11244  type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata struct {
 11245  	// CreateTime: Operation create time.
 11246  	CreateTime string `json:"createTime,omitempty"`
 11247  	// UpdateTime: Operation last update time. If the operation is done, this is
 11248  	// also the finish time.
 11249  	UpdateTime string `json:"updateTime,omitempty"`
 11250  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11251  	// unconditionally include in API requests. By default, fields with empty or
 11252  	// default values are omitted from API requests. See
 11253  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11254  	// details.
 11255  	ForceSendFields []string `json:"-"`
 11256  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11257  	// requests with the JSON null value. By default, fields with empty values are
 11258  	// omitted from API requests. See
 11259  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11260  	NullFields []string `json:"-"`
 11261  }
 11262  
 11263  func (s *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
 11264  	type NoMethod GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata
 11265  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11266  }
 11267  
 11268  // GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse: Response
 11269  // message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
 11270  type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse struct {
 11271  }
 11272  
 11273  // GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig: A singleton
 11274  // resource of DataStore. It's empty when DataStore is created, which defaults
 11275  // to digital parser. The first call to
 11276  // DataStoreService.UpdateDocumentProcessingConfig method will initialize the
 11277  // config.
 11278  type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig struct {
 11279  	// DefaultParsingConfig: Configurations for default Document parser. If not
 11280  	// specified, we will configure it as default DigitalParsingConfig, and the
 11281  	// default parsing config will be applied to all file types for Document
 11282  	// parsing.
 11283  	DefaultParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
 11284  	// Name: The full resource name of the Document Processing Config. Format:
 11285  	// `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
 11286  	Name string `json:"name,omitempty"`
 11287  	// ParsingConfigOverrides: Map from file type to override the default parsing
 11288  	// configuration based on the file type. Supported keys: * `pdf`: Override
 11289  	// parsing config for PDF files, either digital parsing, ocr parsing or layout
 11290  	// parsing is supported. * `html`: Override parsing config for HTML files, only
 11291  	// digital parsing and or layout parsing are supported. * `docx`: Override
 11292  	// parsing config for DOCX files, only digital parsing and or layout parsing
 11293  	// are supported.
 11294  	ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
 11295  	// ForceSendFields is a list of field names (e.g. "DefaultParsingConfig") to
 11296  	// unconditionally include in API requests. By default, fields with empty or
 11297  	// default values are omitted from API requests. See
 11298  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11299  	// details.
 11300  	ForceSendFields []string `json:"-"`
 11301  	// NullFields is a list of field names (e.g. "DefaultParsingConfig") to include
 11302  	// in API requests with the JSON null value. By default, fields with empty
 11303  	// values are omitted from API requests. See
 11304  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11305  	NullFields []string `json:"-"`
 11306  }
 11307  
 11308  func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig) MarshalJSON() ([]byte, error) {
 11309  	type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig
 11310  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11311  }
 11312  
 11313  // GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig:
 11314  // Related configurations applied to a specific type of document parser.
 11315  type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig struct {
 11316  	// DigitalParsingConfig: Configurations applied to digital parser.
 11317  	DigitalParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
 11318  	// OcrParsingConfig: Configurations applied to OCR parser. Currently it only
 11319  	// applies to PDFs.
 11320  	OcrParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
 11321  	// ForceSendFields is a list of field names (e.g. "DigitalParsingConfig") to
 11322  	// unconditionally include in API requests. By default, fields with empty or
 11323  	// default values are omitted from API requests. See
 11324  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11325  	// details.
 11326  	ForceSendFields []string `json:"-"`
 11327  	// NullFields is a list of field names (e.g. "DigitalParsingConfig") to include
 11328  	// in API requests with the JSON null value. By default, fields with empty
 11329  	// values are omitted from API requests. See
 11330  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11331  	NullFields []string `json:"-"`
 11332  }
 11333  
 11334  func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
 11335  	type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig
 11336  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11337  }
 11338  
 11339  // GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalP
 11340  // arsingConfig: The digital parsing configurations for documents.
 11341  type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
 11342  }
 11343  
 11344  // GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsi
 11345  // ngConfig: The OCR parsing configurations for documents.
 11346  type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig struct {
 11347  	// EnhancedDocumentElements: [DEPRECATED] This field is deprecated. To use the
 11348  	// additional enhanced document elements processing, please switch to
 11349  	// `layout_parsing_config`.
 11350  	EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
 11351  	// UseNativeText: If true, will use native text instead of OCR text on pages
 11352  	// containing native text.
 11353  	UseNativeText bool `json:"useNativeText,omitempty"`
 11354  	// ForceSendFields is a list of field names (e.g. "EnhancedDocumentElements")
 11355  	// to unconditionally include in API requests. By default, fields with empty or
 11356  	// default values are omitted from API requests. See
 11357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11358  	// details.
 11359  	ForceSendFields []string `json:"-"`
 11360  	// NullFields is a list of field names (e.g. "EnhancedDocumentElements") to
 11361  	// include in API requests with the JSON null value. By default, fields with
 11362  	// empty values are omitted from API requests. See
 11363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11364  	NullFields []string `json:"-"`
 11365  }
 11366  
 11367  func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
 11368  	type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig
 11369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11370  }
 11371  
 11372  // GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata: Metadata
 11373  // related to the progress of the
 11374  // SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be
 11375  // returned by the google.longrunning.Operation.metadata field.
 11376  type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata struct {
 11377  	// CreateTime: Operation create time.
 11378  	CreateTime string `json:"createTime,omitempty"`
 11379  	// UpdateTime: Operation last update time. If the operation is done, this is
 11380  	// also the finish time.
 11381  	UpdateTime string `json:"updateTime,omitempty"`
 11382  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11383  	// unconditionally include in API requests. By default, fields with empty or
 11384  	// default values are omitted from API requests. See
 11385  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11386  	// details.
 11387  	ForceSendFields []string `json:"-"`
 11388  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11389  	// requests with the JSON null value. By default, fields with empty values are
 11390  	// omitted from API requests. See
 11391  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11392  	NullFields []string `json:"-"`
 11393  }
 11394  
 11395  func (s *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
 11396  	type NoMethod GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata
 11397  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11398  }
 11399  
 11400  // GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchResponse: Response
 11401  // message for SiteSearchEngineService.EnableAdvancedSiteSearch method.
 11402  type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchResponse struct {
 11403  }
 11404  
 11405  // GoogleCloudDiscoveryengineV1betaEngine: Metadata that describes the training
 11406  // and serving parameters of an Engine.
 11407  type GoogleCloudDiscoveryengineV1betaEngine struct {
 11408  	// ChatEngineConfig: Configurations for the Chat Engine. Only applicable if
 11409  	// solution_type is SOLUTION_TYPE_CHAT.
 11410  	ChatEngineConfig *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
 11411  	// ChatEngineMetadata: Output only. Additional information of the Chat Engine.
 11412  	// Only applicable if solution_type is SOLUTION_TYPE_CHAT.
 11413  	ChatEngineMetadata *GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
 11414  	// CommonConfig: Common config spec that specifies the metadata of the engine.
 11415  	CommonConfig *GoogleCloudDiscoveryengineV1betaEngineCommonConfig `json:"commonConfig,omitempty"`
 11416  	// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
 11417  	CreateTime string `json:"createTime,omitempty"`
 11418  	// DataStoreIds: The data stores associated with this engine. For
 11419  	// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
 11420  	// can only associate with at most one data store. If solution_type is
 11421  	// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
 11422  	// associated here. Note that when used in CreateEngineRequest, one DataStore
 11423  	// id must be provided as the system will use it for necessary initializations.
 11424  	DataStoreIds []string `json:"dataStoreIds,omitempty"`
 11425  	// DisplayName: Required. The display name of the engine. Should be human
 11426  	// readable. UTF-8 encoded string with limit of 1024 characters.
 11427  	DisplayName string `json:"displayName,omitempty"`
 11428  	// IndustryVertical: The industry vertical that the engine registers. The
 11429  	// restriction of the Engine industry vertical is based on DataStore: If
 11430  	// unspecified, default to `GENERIC`. Vertical on Engine has to match vertical
 11431  	// of the DataStore liniked to the engine.
 11432  	//
 11433  	// Possible values:
 11434  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
 11435  	//   "GENERIC" - The generic vertical for documents that are not specific to
 11436  	// any industry vertical.
 11437  	//   "MEDIA" - The media industry vertical.
 11438  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
 11439  	IndustryVertical string `json:"industryVertical,omitempty"`
 11440  	// Name: Immutable. The fully qualified resource name of the engine. This field
 11441  	// must be a UTF-8 encoded string with a length limit of 1024 characters.
 11442  	// Format:
 11443  	// `projects/{project_number}/locations/{location}/collections/{collection}/engi
 11444  	// nes/{engine}` engine should be 1-63 characters, and valid characters are
 11445  	// /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
 11446  	Name string `json:"name,omitempty"`
 11447  	// SearchEngineConfig: Configurations for the Search Engine. Only applicable if
 11448  	// solution_type is SOLUTION_TYPE_SEARCH.
 11449  	SearchEngineConfig *GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
 11450  	// SolutionType: Required. The solutions of the engine.
 11451  	//
 11452  	// Possible values:
 11453  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
 11454  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
 11455  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
 11456  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
 11457  	// agent.
 11458  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
 11459  	// Generative Chat agent. It's used for Generative chat engine only, the
 11460  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
 11461  	SolutionType string `json:"solutionType,omitempty"`
 11462  	// UpdateTime: Output only. Timestamp the Recommendation Engine was last
 11463  	// updated.
 11464  	UpdateTime string `json:"updateTime,omitempty"`
 11465  	// ForceSendFields is a list of field names (e.g. "ChatEngineConfig") to
 11466  	// unconditionally include in API requests. By default, fields with empty or
 11467  	// default values are omitted from API requests. See
 11468  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11469  	// details.
 11470  	ForceSendFields []string `json:"-"`
 11471  	// NullFields is a list of field names (e.g. "ChatEngineConfig") to include in
 11472  	// API requests with the JSON null value. By default, fields with empty values
 11473  	// are omitted from API requests. See
 11474  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11475  	NullFields []string `json:"-"`
 11476  }
 11477  
 11478  func (s *GoogleCloudDiscoveryengineV1betaEngine) MarshalJSON() ([]byte, error) {
 11479  	type NoMethod GoogleCloudDiscoveryengineV1betaEngine
 11480  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11481  }
 11482  
 11483  // GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig: Configurations for a
 11484  // Chat Engine.
 11485  type GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig struct {
 11486  	// AgentCreationConfig: The configurationt generate the Dialogflow agent that
 11487  	// is associated to this Engine. Note that these configurations are one-time
 11488  	// consumed by and passed to Dialogflow service. It means they cannot be
 11489  	// retrieved using EngineService.GetEngine or EngineService.ListEngines API
 11490  	// after engine creation.
 11491  	AgentCreationConfig *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
 11492  	// DialogflowAgentToLink: The resource name of an exist Dialogflow agent to
 11493  	// link to this Chat Engine. Customers can either provide
 11494  	// `agent_creation_config` to create agent or provide an agent name that links
 11495  	// the agent with the Chat engine. Format: `projects//locations//agents/`. Note
 11496  	// that the `dialogflow_agent_to_link` are one-time consumed by and passed to
 11497  	// Dialogflow service. It means they cannot be retrieved using
 11498  	// EngineService.GetEngine or EngineService.ListEngines API after engine
 11499  	// creation. Use ChatEngineMetadata.dialogflow_agent for actual agent
 11500  	// association after Engine is created.
 11501  	DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
 11502  	// ForceSendFields is a list of field names (e.g. "AgentCreationConfig") to
 11503  	// unconditionally include in API requests. By default, fields with empty or
 11504  	// default values are omitted from API requests. See
 11505  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11506  	// details.
 11507  	ForceSendFields []string `json:"-"`
 11508  	// NullFields is a list of field names (e.g. "AgentCreationConfig") to include
 11509  	// in API requests with the JSON null value. By default, fields with empty
 11510  	// values are omitted from API requests. See
 11511  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11512  	NullFields []string `json:"-"`
 11513  }
 11514  
 11515  func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig) MarshalJSON() ([]byte, error) {
 11516  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig
 11517  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11518  }
 11519  
 11520  // GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig:
 11521  // Configurations for generating a Dialogflow agent. Note that these
 11522  // configurations are one-time consumed by and passed to Dialogflow service. It
 11523  // means they cannot be retrieved using EngineService.GetEngine or
 11524  // EngineService.ListEngines API after engine creation.
 11525  type GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig struct {
 11526  	// Business: Name of the company, organization or other entity that the agent
 11527  	// represents. Used for knowledge connector LLM prompt and for knowledge
 11528  	// search.
 11529  	Business string `json:"business,omitempty"`
 11530  	// DefaultLanguageCode: Required. The default language of the agent as a
 11531  	// language tag. See Language Support
 11532  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
 11533  	// the currently supported language codes.
 11534  	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
 11535  	// Location: Agent location for Agent creation, supported values: global/us/eu.
 11536  	// If not provided, us Engine will create Agent using us-central-1 by default;
 11537  	// eu Engine will create Agent using eu-west-1 by default.
 11538  	Location string `json:"location,omitempty"`
 11539  	// TimeZone: Required. The time zone of the agent from the time zone database
 11540  	// (https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
 11541  	TimeZone string `json:"timeZone,omitempty"`
 11542  	// ForceSendFields is a list of field names (e.g. "Business") to
 11543  	// unconditionally include in API requests. By default, fields with empty or
 11544  	// default values are omitted from API requests. See
 11545  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11546  	// details.
 11547  	ForceSendFields []string `json:"-"`
 11548  	// NullFields is a list of field names (e.g. "Business") to include in API
 11549  	// requests with the JSON null value. By default, fields with empty values are
 11550  	// omitted from API requests. See
 11551  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11552  	NullFields []string `json:"-"`
 11553  }
 11554  
 11555  func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
 11556  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig
 11557  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11558  }
 11559  
 11560  // GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata: Additional
 11561  // information of a Chat Engine. Fields in this message are output only.
 11562  type GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata struct {
 11563  	// DialogflowAgent: The resource name of a Dialogflow agent, that this Chat
 11564  	// Engine refers to. Format: `projects//locations//agents/`.
 11565  	DialogflowAgent string `json:"dialogflowAgent,omitempty"`
 11566  	// ForceSendFields is a list of field names (e.g. "DialogflowAgent") to
 11567  	// unconditionally include in API requests. By default, fields with empty or
 11568  	// default values are omitted from API requests. See
 11569  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11570  	// details.
 11571  	ForceSendFields []string `json:"-"`
 11572  	// NullFields is a list of field names (e.g. "DialogflowAgent") to include in
 11573  	// API requests with the JSON null value. By default, fields with empty values
 11574  	// are omitted from API requests. See
 11575  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11576  	NullFields []string `json:"-"`
 11577  }
 11578  
 11579  func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
 11580  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata
 11581  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11582  }
 11583  
 11584  // GoogleCloudDiscoveryengineV1betaEngineCommonConfig: Common configurations
 11585  // for an Engine.
 11586  type GoogleCloudDiscoveryengineV1betaEngineCommonConfig struct {
 11587  	// CompanyName: Immutable. The name of the company, business or entity that is
 11588  	// associated with the engine. Setting this may help improve LLM related
 11589  	// features.
 11590  	CompanyName string `json:"companyName,omitempty"`
 11591  	// ForceSendFields is a list of field names (e.g. "CompanyName") to
 11592  	// unconditionally include in API requests. By default, fields with empty or
 11593  	// default values are omitted from API requests. See
 11594  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11595  	// details.
 11596  	ForceSendFields []string `json:"-"`
 11597  	// NullFields is a list of field names (e.g. "CompanyName") to include in API
 11598  	// requests with the JSON null value. By default, fields with empty values are
 11599  	// omitted from API requests. See
 11600  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11601  	NullFields []string `json:"-"`
 11602  }
 11603  
 11604  func (s *GoogleCloudDiscoveryengineV1betaEngineCommonConfig) MarshalJSON() ([]byte, error) {
 11605  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineCommonConfig
 11606  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11607  }
 11608  
 11609  // GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig: Configurations for
 11610  // a Search Engine.
 11611  type GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig struct {
 11612  	// SearchAddOns: The add-on that this search engine enables.
 11613  	//
 11614  	// Possible values:
 11615  	//   "SEARCH_ADD_ON_UNSPECIFIED" - Default value when the enum is unspecified.
 11616  	// This is invalid to use.
 11617  	//   "SEARCH_ADD_ON_LLM" - Large language model add-on.
 11618  	SearchAddOns []string `json:"searchAddOns,omitempty"`
 11619  	// SearchTier: The search feature tier of this engine. Different tiers might
 11620  	// have different pricing. To learn more, check the pricing documentation.
 11621  	// Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.
 11622  	//
 11623  	// Possible values:
 11624  	//   "SEARCH_TIER_UNSPECIFIED" - Default value when the enum is unspecified.
 11625  	// This is invalid to use.
 11626  	//   "SEARCH_TIER_STANDARD" - Standard tier.
 11627  	//   "SEARCH_TIER_ENTERPRISE" - Enterprise tier.
 11628  	SearchTier string `json:"searchTier,omitempty"`
 11629  	// ForceSendFields is a list of field names (e.g. "SearchAddOns") to
 11630  	// unconditionally include in API requests. By default, fields with empty or
 11631  	// default values are omitted from API requests. See
 11632  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11633  	// details.
 11634  	ForceSendFields []string `json:"-"`
 11635  	// NullFields is a list of field names (e.g. "SearchAddOns") to include in API
 11636  	// requests with the JSON null value. By default, fields with empty values are
 11637  	// omitted from API requests. See
 11638  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11639  	NullFields []string `json:"-"`
 11640  }
 11641  
 11642  func (s *GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
 11643  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig
 11644  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11645  }
 11646  
 11647  // GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata: Metadata related to
 11648  // the progress of the ImportDocuments operation. This is returned by the
 11649  // google.longrunning.Operation.metadata field.
 11650  type GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata struct {
 11651  	// CreateTime: Operation create time.
 11652  	CreateTime string `json:"createTime,omitempty"`
 11653  	// FailureCount: Count of entries that encountered errors while processing.
 11654  	FailureCount int64 `json:"failureCount,omitempty,string"`
 11655  	// SuccessCount: Count of entries that were processed successfully.
 11656  	SuccessCount int64 `json:"successCount,omitempty,string"`
 11657  	// TotalCount: Total count of entries that were processed.
 11658  	TotalCount int64 `json:"totalCount,omitempty,string"`
 11659  	// UpdateTime: Operation last update time. If the operation is done, this is
 11660  	// also the finish time.
 11661  	UpdateTime string `json:"updateTime,omitempty"`
 11662  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11663  	// unconditionally include in API requests. By default, fields with empty or
 11664  	// default values are omitted from API requests. See
 11665  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11666  	// details.
 11667  	ForceSendFields []string `json:"-"`
 11668  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11669  	// requests with the JSON null value. By default, fields with empty values are
 11670  	// omitted from API requests. See
 11671  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11672  	NullFields []string `json:"-"`
 11673  }
 11674  
 11675  func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
 11676  	type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
 11677  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11678  }
 11679  
 11680  // GoogleCloudDiscoveryengineV1betaImportDocumentsResponse: Response of the
 11681  // ImportDocumentsRequest. If the long running operation is done, then this
 11682  // message is returned by the google.longrunning.Operations.response field if
 11683  // the operation was successful.
 11684  type GoogleCloudDiscoveryengineV1betaImportDocumentsResponse struct {
 11685  	// ErrorConfig: Echoes the destination for the complete errors in the request
 11686  	// if set.
 11687  	ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
 11688  	// ErrorSamples: A sample of errors encountered while processing the request.
 11689  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
 11690  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
 11691  	// unconditionally include in API requests. By default, fields with empty or
 11692  	// default values are omitted from API requests. See
 11693  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11694  	// details.
 11695  	ForceSendFields []string `json:"-"`
 11696  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
 11697  	// requests with the JSON null value. By default, fields with empty values are
 11698  	// omitted from API requests. See
 11699  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11700  	NullFields []string `json:"-"`
 11701  }
 11702  
 11703  func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsResponse) MarshalJSON() ([]byte, error) {
 11704  	type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsResponse
 11705  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11706  }
 11707  
 11708  // GoogleCloudDiscoveryengineV1betaImportErrorConfig: Configuration of
 11709  // destination for Import related errors.
 11710  type GoogleCloudDiscoveryengineV1betaImportErrorConfig struct {
 11711  	// GcsPrefix: Cloud Storage prefix for import errors. This must be an empty,
 11712  	// existing Cloud Storage directory. Import errors are written to sharded files
 11713  	// in this directory, one per line, as a JSON-encoded `google.rpc.Status`
 11714  	// message.
 11715  	GcsPrefix string `json:"gcsPrefix,omitempty"`
 11716  	// ForceSendFields is a list of field names (e.g. "GcsPrefix") to
 11717  	// unconditionally include in API requests. By default, fields with empty or
 11718  	// default values are omitted from API requests. See
 11719  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11720  	// details.
 11721  	ForceSendFields []string `json:"-"`
 11722  	// NullFields is a list of field names (e.g. "GcsPrefix") to include in API
 11723  	// requests with the JSON null value. By default, fields with empty values are
 11724  	// omitted from API requests. See
 11725  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11726  	NullFields []string `json:"-"`
 11727  }
 11728  
 11729  func (s *GoogleCloudDiscoveryengineV1betaImportErrorConfig) MarshalJSON() ([]byte, error) {
 11730  	type NoMethod GoogleCloudDiscoveryengineV1betaImportErrorConfig
 11731  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11732  }
 11733  
 11734  // GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata:
 11735  // Metadata related to the progress of the ImportSuggestionDenyListEntries
 11736  // operation. This is returned by the google.longrunning.Operation.metadata
 11737  // field.
 11738  type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata struct {
 11739  	// CreateTime: Operation create time.
 11740  	CreateTime string `json:"createTime,omitempty"`
 11741  	// UpdateTime: Operation last update time. If the operation is done, this is
 11742  	// also the finish time.
 11743  	UpdateTime string `json:"updateTime,omitempty"`
 11744  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11745  	// unconditionally include in API requests. By default, fields with empty or
 11746  	// default values are omitted from API requests. See
 11747  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11748  	// details.
 11749  	ForceSendFields []string `json:"-"`
 11750  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11751  	// requests with the JSON null value. By default, fields with empty values are
 11752  	// omitted from API requests. See
 11753  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11754  	NullFields []string `json:"-"`
 11755  }
 11756  
 11757  func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
 11758  	type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata
 11759  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11760  }
 11761  
 11762  // GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse:
 11763  // Response message for CompletionService.ImportSuggestionDenyListEntries
 11764  // method.
 11765  type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse struct {
 11766  	// ErrorSamples: A sample of errors encountered while processing the request.
 11767  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
 11768  	// FailedEntriesCount: Count of deny list entries that failed to be imported.
 11769  	FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
 11770  	// ImportedEntriesCount: Count of deny list entries successfully imported.
 11771  	ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
 11772  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
 11773  	// unconditionally include in API requests. By default, fields with empty or
 11774  	// default values are omitted from API requests. See
 11775  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11776  	// details.
 11777  	ForceSendFields []string `json:"-"`
 11778  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
 11779  	// requests with the JSON null value. By default, fields with empty values are
 11780  	// omitted from API requests. See
 11781  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11782  	NullFields []string `json:"-"`
 11783  }
 11784  
 11785  func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
 11786  	type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse
 11787  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11788  }
 11789  
 11790  // GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata: Metadata related
 11791  // to the progress of the Import operation. This is returned by the
 11792  // google.longrunning.Operation.metadata field.
 11793  type GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata struct {
 11794  	// CreateTime: Operation create time.
 11795  	CreateTime string `json:"createTime,omitempty"`
 11796  	// FailureCount: Count of entries that encountered errors while processing.
 11797  	FailureCount int64 `json:"failureCount,omitempty,string"`
 11798  	// SuccessCount: Count of entries that were processed successfully.
 11799  	SuccessCount int64 `json:"successCount,omitempty,string"`
 11800  	// UpdateTime: Operation last update time. If the operation is done, this is
 11801  	// also the finish time.
 11802  	UpdateTime string `json:"updateTime,omitempty"`
 11803  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11804  	// unconditionally include in API requests. By default, fields with empty or
 11805  	// default values are omitted from API requests. See
 11806  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11807  	// details.
 11808  	ForceSendFields []string `json:"-"`
 11809  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11810  	// requests with the JSON null value. By default, fields with empty values are
 11811  	// omitted from API requests. See
 11812  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11813  	NullFields []string `json:"-"`
 11814  }
 11815  
 11816  func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
 11817  	type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata
 11818  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11819  }
 11820  
 11821  // GoogleCloudDiscoveryengineV1betaImportUserEventsResponse: Response of the
 11822  // ImportUserEventsRequest. If the long running operation was successful, then
 11823  // this message is returned by the google.longrunning.Operations.response field
 11824  // if the operation was successful.
 11825  type GoogleCloudDiscoveryengineV1betaImportUserEventsResponse struct {
 11826  	// ErrorConfig: Echoes the destination for the complete errors if this field
 11827  	// was set in the request.
 11828  	ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
 11829  	// ErrorSamples: A sample of errors encountered while processing the request.
 11830  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
 11831  	// JoinedEventsCount: Count of user events imported with complete existing
 11832  	// Documents.
 11833  	JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
 11834  	// UnjoinedEventsCount: Count of user events imported, but with Document
 11835  	// information not found in the existing Branch.
 11836  	UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
 11837  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
 11838  	// unconditionally include in API requests. By default, fields with empty or
 11839  	// default values are omitted from API requests. See
 11840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11841  	// details.
 11842  	ForceSendFields []string `json:"-"`
 11843  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
 11844  	// requests with the JSON null value. By default, fields with empty values are
 11845  	// omitted from API requests. See
 11846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11847  	NullFields []string `json:"-"`
 11848  }
 11849  
 11850  func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsResponse) MarshalJSON() ([]byte, error) {
 11851  	type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsResponse
 11852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11853  }
 11854  
 11855  // GoogleCloudDiscoveryengineV1betaListCustomModelsResponse: Response message
 11856  // for SearchTuningService.ListCustomModels method.
 11857  type GoogleCloudDiscoveryengineV1betaListCustomModelsResponse struct {
 11858  	// Models: List of custom tuning models.
 11859  	Models []*GoogleCloudDiscoveryengineV1betaCustomTuningModel `json:"models,omitempty"`
 11860  	// ForceSendFields is a list of field names (e.g. "Models") to unconditionally
 11861  	// include in API requests. By default, fields with empty or default values are
 11862  	// omitted from API requests. See
 11863  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11864  	// details.
 11865  	ForceSendFields []string `json:"-"`
 11866  	// NullFields is a list of field names (e.g. "Models") to include in API
 11867  	// requests with the JSON null value. By default, fields with empty values are
 11868  	// omitted from API requests. See
 11869  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11870  	NullFields []string `json:"-"`
 11871  }
 11872  
 11873  func (s *GoogleCloudDiscoveryengineV1betaListCustomModelsResponse) MarshalJSON() ([]byte, error) {
 11874  	type NoMethod GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
 11875  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11876  }
 11877  
 11878  // GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata: Metadata related to
 11879  // the progress of the PurgeDocuments operation. This will be returned by the
 11880  // google.longrunning.Operation.metadata field.
 11881  type GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata struct {
 11882  	// CreateTime: Operation create time.
 11883  	CreateTime string `json:"createTime,omitempty"`
 11884  	// FailureCount: Count of entries that encountered errors while processing.
 11885  	FailureCount int64 `json:"failureCount,omitempty,string"`
 11886  	// IgnoredCount: Count of entries that were ignored as entries were not found.
 11887  	IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
 11888  	// SuccessCount: Count of entries that were deleted successfully.
 11889  	SuccessCount int64 `json:"successCount,omitempty,string"`
 11890  	// UpdateTime: Operation last update time. If the operation is done, this is
 11891  	// also the finish time.
 11892  	UpdateTime string `json:"updateTime,omitempty"`
 11893  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11894  	// unconditionally include in API requests. By default, fields with empty or
 11895  	// default values are omitted from API requests. See
 11896  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11897  	// details.
 11898  	ForceSendFields []string `json:"-"`
 11899  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11900  	// requests with the JSON null value. By default, fields with empty values are
 11901  	// omitted from API requests. See
 11902  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11903  	NullFields []string `json:"-"`
 11904  }
 11905  
 11906  func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
 11907  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
 11908  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11909  }
 11910  
 11911  // GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse: Response message for
 11912  // DocumentService.PurgeDocuments method. If the long running operation is
 11913  // successfully done, then this message is returned by the
 11914  // google.longrunning.Operations.response field.
 11915  type GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse struct {
 11916  	// PurgeCount: The total count of documents purged as a result of the
 11917  	// operation.
 11918  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
 11919  	// PurgeSample: A sample of document names that will be deleted. Only populated
 11920  	// if `force` is set to false. A max of 100 names will be returned and the
 11921  	// names are chosen at random.
 11922  	PurgeSample []string `json:"purgeSample,omitempty"`
 11923  	// ForceSendFields is a list of field names (e.g. "PurgeCount") to
 11924  	// unconditionally include in API requests. By default, fields with empty or
 11925  	// default values are omitted from API requests. See
 11926  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11927  	// details.
 11928  	ForceSendFields []string `json:"-"`
 11929  	// NullFields is a list of field names (e.g. "PurgeCount") to include in API
 11930  	// requests with the JSON null value. By default, fields with empty values are
 11931  	// omitted from API requests. See
 11932  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11933  	NullFields []string `json:"-"`
 11934  }
 11935  
 11936  func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
 11937  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse
 11938  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11939  }
 11940  
 11941  // GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata:
 11942  // Metadata related to the progress of the PurgeSuggestionDenyListEntries
 11943  // operation. This is returned by the google.longrunning.Operation.metadata
 11944  // field.
 11945  type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata struct {
 11946  	// CreateTime: Operation create time.
 11947  	CreateTime string `json:"createTime,omitempty"`
 11948  	// UpdateTime: Operation last update time. If the operation is done, this is
 11949  	// also the finish time.
 11950  	UpdateTime string `json:"updateTime,omitempty"`
 11951  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11952  	// unconditionally include in API requests. By default, fields with empty or
 11953  	// default values are omitted from API requests. See
 11954  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11955  	// details.
 11956  	ForceSendFields []string `json:"-"`
 11957  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11958  	// requests with the JSON null value. By default, fields with empty values are
 11959  	// omitted from API requests. See
 11960  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11961  	NullFields []string `json:"-"`
 11962  }
 11963  
 11964  func (s *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
 11965  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata
 11966  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11967  }
 11968  
 11969  // GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse:
 11970  // Response message for CompletionService.PurgeSuggestionDenyListEntries
 11971  // method.
 11972  type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse struct {
 11973  	// ErrorSamples: A sample of errors encountered while processing the request.
 11974  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
 11975  	// PurgeCount: Number of suggestion deny list entries purged.
 11976  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
 11977  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
 11978  	// unconditionally include in API requests. By default, fields with empty or
 11979  	// default values are omitted from API requests. See
 11980  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11981  	// details.
 11982  	ForceSendFields []string `json:"-"`
 11983  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
 11984  	// requests with the JSON null value. By default, fields with empty values are
 11985  	// omitted from API requests. See
 11986  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11987  	NullFields []string `json:"-"`
 11988  }
 11989  
 11990  func (s *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
 11991  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse
 11992  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11993  }
 11994  
 11995  // GoogleCloudDiscoveryengineV1betaSchema: Defines the structure and layout of
 11996  // a type of document data.
 11997  type GoogleCloudDiscoveryengineV1betaSchema struct {
 11998  	// JsonSchema: The JSON representation of the schema.
 11999  	JsonSchema string `json:"jsonSchema,omitempty"`
 12000  	// Name: Immutable. The full resource name of the schema, in the format of
 12001  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
 12002  	// {data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string
 12003  	// with a length limit of 1024 characters.
 12004  	Name string `json:"name,omitempty"`
 12005  	// StructSchema: The structured representation of the schema.
 12006  	StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
 12007  	// ForceSendFields is a list of field names (e.g. "JsonSchema") to
 12008  	// unconditionally include in API requests. By default, fields with empty or
 12009  	// default values are omitted from API requests. See
 12010  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12011  	// details.
 12012  	ForceSendFields []string `json:"-"`
 12013  	// NullFields is a list of field names (e.g. "JsonSchema") to include in API
 12014  	// requests with the JSON null value. By default, fields with empty values are
 12015  	// omitted from API requests. See
 12016  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12017  	NullFields []string `json:"-"`
 12018  }
 12019  
 12020  func (s *GoogleCloudDiscoveryengineV1betaSchema) MarshalJSON() ([]byte, error) {
 12021  	type NoMethod GoogleCloudDiscoveryengineV1betaSchema
 12022  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12023  }
 12024  
 12025  // GoogleCloudDiscoveryengineV1betaSiteVerificationInfo: Verification
 12026  // information for target sites in advanced site search.
 12027  type GoogleCloudDiscoveryengineV1betaSiteVerificationInfo struct {
 12028  	// SiteVerificationState: Site verification state indicating the ownership and
 12029  	// validity.
 12030  	//
 12031  	// Possible values:
 12032  	//   "SITE_VERIFICATION_STATE_UNSPECIFIED" - Defaults to VERIFIED.
 12033  	//   "VERIFIED" - Site ownership verified.
 12034  	//   "UNVERIFIED" - Site ownership pending verification or verification failed.
 12035  	//   "EXEMPTED" - Site exempt from verification, e.g., a public website that
 12036  	// opens to all.
 12037  	SiteVerificationState string `json:"siteVerificationState,omitempty"`
 12038  	// VerifyTime: Latest site verification time.
 12039  	VerifyTime string `json:"verifyTime,omitempty"`
 12040  	// ForceSendFields is a list of field names (e.g. "SiteVerificationState") to
 12041  	// unconditionally include in API requests. By default, fields with empty or
 12042  	// default values are omitted from API requests. See
 12043  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12044  	// details.
 12045  	ForceSendFields []string `json:"-"`
 12046  	// NullFields is a list of field names (e.g. "SiteVerificationState") to
 12047  	// include in API requests with the JSON null value. By default, fields with
 12048  	// empty values are omitted from API requests. See
 12049  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12050  	NullFields []string `json:"-"`
 12051  }
 12052  
 12053  func (s *GoogleCloudDiscoveryengineV1betaSiteVerificationInfo) MarshalJSON() ([]byte, error) {
 12054  	type NoMethod GoogleCloudDiscoveryengineV1betaSiteVerificationInfo
 12055  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12056  }
 12057  
 12058  // GoogleCloudDiscoveryengineV1betaTargetSite: A target site for the
 12059  // SiteSearchEngine.
 12060  type GoogleCloudDiscoveryengineV1betaTargetSite struct {
 12061  	// ExactMatch: Input only. If set to false, a uri_pattern is generated to
 12062  	// include all pages whose address contains the provided_uri_pattern. If set to
 12063  	// true, an uri_pattern is generated to try to be an exact match of the
 12064  	// provided_uri_pattern or just the specific page if the provided_uri_pattern
 12065  	// is a specific one. provided_uri_pattern is always normalized to generate the
 12066  	// URI pattern to be used by the search engine.
 12067  	ExactMatch bool `json:"exactMatch,omitempty"`
 12068  	// FailureReason: Output only. Failure reason.
 12069  	FailureReason *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason `json:"failureReason,omitempty"`
 12070  	// GeneratedUriPattern: Output only. This is system-generated based on the
 12071  	// provided_uri_pattern.
 12072  	GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
 12073  	// IndexingStatus: Output only. Indexing status.
 12074  	//
 12075  	// Possible values:
 12076  	//   "INDEXING_STATUS_UNSPECIFIED" - Defaults to SUCCEEDED.
 12077  	//   "PENDING" - The target site is in the update queue and will be picked up
 12078  	// by indexing pipeline.
 12079  	//   "FAILED" - The target site fails to be indexed.
 12080  	//   "SUCCEEDED" - The target site has been indexed.
 12081  	//   "DELETING" - The previously indexed target site has been marked to be
 12082  	// deleted. This is a transitioning state which will resulted in either: 1.
 12083  	// target site deleted if unindexing is successful; 2. state reverts to
 12084  	// SUCCEEDED if the unindexing fails.
 12085  	IndexingStatus string `json:"indexingStatus,omitempty"`
 12086  	// Name: Output only. The fully qualified resource name of the target site.
 12087  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
 12088  	// {data_store}/siteSearchEngine/targetSites/{target_site}` The
 12089  	// `target_site_id` is system-generated.
 12090  	Name string `json:"name,omitempty"`
 12091  	// ProvidedUriPattern: Required. Input only. The user provided URI pattern from
 12092  	// which the `generated_uri_pattern` is generated.
 12093  	ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
 12094  	// RootDomainUri: Output only. Root domain of the provided_uri_pattern.
 12095  	RootDomainUri string `json:"rootDomainUri,omitempty"`
 12096  	// SiteVerificationInfo: Output only. Site ownership and validity verification
 12097  	// status.
 12098  	SiteVerificationInfo *GoogleCloudDiscoveryengineV1betaSiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
 12099  	// Type: The type of the target site, e.g., whether the site is to be included
 12100  	// or excluded.
 12101  	//
 12102  	// Possible values:
 12103  	//   "TYPE_UNSPECIFIED" - This value is unused. In this case, server behavior
 12104  	// defaults to Type.INCLUDE.
 12105  	//   "INCLUDE" - Include the target site.
 12106  	//   "EXCLUDE" - Exclude the target site.
 12107  	Type string `json:"type,omitempty"`
 12108  	// UpdateTime: Output only. The target site's last updated time.
 12109  	UpdateTime string `json:"updateTime,omitempty"`
 12110  	// ForceSendFields is a list of field names (e.g. "ExactMatch") to
 12111  	// unconditionally include in API requests. By default, fields with empty or
 12112  	// default values are omitted from API requests. See
 12113  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12114  	// details.
 12115  	ForceSendFields []string `json:"-"`
 12116  	// NullFields is a list of field names (e.g. "ExactMatch") to include in API
 12117  	// requests with the JSON null value. By default, fields with empty values are
 12118  	// omitted from API requests. See
 12119  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12120  	NullFields []string `json:"-"`
 12121  }
 12122  
 12123  func (s *GoogleCloudDiscoveryengineV1betaTargetSite) MarshalJSON() ([]byte, error) {
 12124  	type NoMethod GoogleCloudDiscoveryengineV1betaTargetSite
 12125  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12126  }
 12127  
 12128  // GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason: Site search
 12129  // indexing failure reasons.
 12130  type GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason struct {
 12131  	// QuotaFailure: Failed due to insufficient quota.
 12132  	QuotaFailure *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
 12133  	// ForceSendFields is a list of field names (e.g. "QuotaFailure") to
 12134  	// unconditionally include in API requests. By default, fields with empty or
 12135  	// default values are omitted from API requests. See
 12136  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12137  	// details.
 12138  	ForceSendFields []string `json:"-"`
 12139  	// NullFields is a list of field names (e.g. "QuotaFailure") to include in API
 12140  	// requests with the JSON null value. By default, fields with empty values are
 12141  	// omitted from API requests. See
 12142  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12143  	NullFields []string `json:"-"`
 12144  }
 12145  
 12146  func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason) MarshalJSON() ([]byte, error) {
 12147  	type NoMethod GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason
 12148  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12149  }
 12150  
 12151  // GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure: Failed
 12152  // due to insufficient quota.
 12153  type GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure struct {
 12154  	// TotalRequiredQuota: This number is an estimation on how much total quota
 12155  	// this project needs to successfully complete indexing.
 12156  	TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
 12157  	// ForceSendFields is a list of field names (e.g. "TotalRequiredQuota") to
 12158  	// unconditionally include in API requests. By default, fields with empty or
 12159  	// default values are omitted from API requests. See
 12160  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12161  	// details.
 12162  	ForceSendFields []string `json:"-"`
 12163  	// NullFields is a list of field names (e.g. "TotalRequiredQuota") to include
 12164  	// in API requests with the JSON null value. By default, fields with empty
 12165  	// values are omitted from API requests. See
 12166  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12167  	NullFields []string `json:"-"`
 12168  }
 12169  
 12170  func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
 12171  	type NoMethod GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure
 12172  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12173  }
 12174  
 12175  // GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata: Metadata related
 12176  // to the progress of the TrainCustomModel operation. This is returned by the
 12177  // google.longrunning.Operation.metadata field.
 12178  type GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata struct {
 12179  	// CreateTime: Operation create time.
 12180  	CreateTime string `json:"createTime,omitempty"`
 12181  	// UpdateTime: Operation last update time. If the operation is done, this is
 12182  	// also the finish time.
 12183  	UpdateTime string `json:"updateTime,omitempty"`
 12184  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 12185  	// unconditionally include in API requests. By default, fields with empty or
 12186  	// default values are omitted from API requests. See
 12187  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12188  	// details.
 12189  	ForceSendFields []string `json:"-"`
 12190  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 12191  	// requests with the JSON null value. By default, fields with empty values are
 12192  	// omitted from API requests. See
 12193  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12194  	NullFields []string `json:"-"`
 12195  }
 12196  
 12197  func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) {
 12198  	type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata
 12199  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12200  }
 12201  
 12202  // GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse: Response of the
 12203  // TrainCustomModelRequest. This message is returned by the
 12204  // google.longrunning.Operations.response field.
 12205  type GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse struct {
 12206  	// ErrorConfig: Echoes the destination for the complete errors in the request
 12207  	// if set.
 12208  	ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
 12209  	// ErrorSamples: A sample of errors encountered while processing the data.
 12210  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
 12211  	// Metrics: The metrics of the trained model.
 12212  	Metrics map[string]float64 `json:"metrics,omitempty"`
 12213  	// ModelName: Fully qualified name of the CustomTuningModel.
 12214  	ModelName string `json:"modelName,omitempty"`
 12215  	// ModelStatus: The trained model status. Possible values are: * **bad-data**:
 12216  	// The training data quality is bad. * **no-improvement**: Tuning didn't
 12217  	// improve performance. Won't deploy. * **in-progress**: Model training job
 12218  	// creation is in progress. * **training**: Model is actively training. *
 12219  	// **evaluating**: The model is evaluating trained metrics. * **indexing**: The
 12220  	// model trained metrics are indexing. * **ready**: The model is ready for
 12221  	// serving.
 12222  	ModelStatus string `json:"modelStatus,omitempty"`
 12223  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
 12224  	// unconditionally include in API requests. By default, fields with empty or
 12225  	// default values are omitted from API requests. See
 12226  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12227  	// details.
 12228  	ForceSendFields []string `json:"-"`
 12229  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
 12230  	// requests with the JSON null value. By default, fields with empty values are
 12231  	// omitted from API requests. See
 12232  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12233  	NullFields []string `json:"-"`
 12234  }
 12235  
 12236  func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse) MarshalJSON() ([]byte, error) {
 12237  	type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse
 12238  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12239  }
 12240  
 12241  // GoogleCloudDiscoveryengineV1betaTuneEngineMetadata: Metadata associated with
 12242  // a tune operation.
 12243  type GoogleCloudDiscoveryengineV1betaTuneEngineMetadata struct {
 12244  	// Engine: Required. The resource name of the engine that this tune applies to.
 12245  	// Format:
 12246  	// `projects/{project_number}/locations/{location_id}/collections/{collection_id
 12247  	// }/engines/{engine_id}`
 12248  	Engine string `json:"engine,omitempty"`
 12249  	// ForceSendFields is a list of field names (e.g. "Engine") to unconditionally
 12250  	// include in API requests. By default, fields with empty or default values are
 12251  	// omitted from API requests. See
 12252  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12253  	// details.
 12254  	ForceSendFields []string `json:"-"`
 12255  	// NullFields is a list of field names (e.g. "Engine") to include in API
 12256  	// requests with the JSON null value. By default, fields with empty values are
 12257  	// omitted from API requests. See
 12258  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12259  	NullFields []string `json:"-"`
 12260  }
 12261  
 12262  func (s *GoogleCloudDiscoveryengineV1betaTuneEngineMetadata) MarshalJSON() ([]byte, error) {
 12263  	type NoMethod GoogleCloudDiscoveryengineV1betaTuneEngineMetadata
 12264  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12265  }
 12266  
 12267  // GoogleCloudDiscoveryengineV1betaTuneEngineResponse: Response associated with
 12268  // a tune operation.
 12269  type GoogleCloudDiscoveryengineV1betaTuneEngineResponse struct {
 12270  }
 12271  
 12272  // GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata: Metadata for
 12273  // UpdateSchema LRO.
 12274  type GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata struct {
 12275  	// CreateTime: Operation create time.
 12276  	CreateTime string `json:"createTime,omitempty"`
 12277  	// UpdateTime: Operation last update time. If the operation is done, this is
 12278  	// also the finish time.
 12279  	UpdateTime string `json:"updateTime,omitempty"`
 12280  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 12281  	// unconditionally include in API requests. By default, fields with empty or
 12282  	// default values are omitted from API requests. See
 12283  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12284  	// details.
 12285  	ForceSendFields []string `json:"-"`
 12286  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 12287  	// requests with the JSON null value. By default, fields with empty values are
 12288  	// omitted from API requests. See
 12289  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12290  	NullFields []string `json:"-"`
 12291  }
 12292  
 12293  func (s *GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
 12294  	type NoMethod GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata
 12295  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12296  }
 12297  
 12298  // GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata: Metadata related
 12299  // to the progress of the SiteSearchEngineService.UpdateTargetSite operation.
 12300  // This will be returned by the google.longrunning.Operation.metadata field.
 12301  type GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata struct {
 12302  	// CreateTime: Operation create time.
 12303  	CreateTime string `json:"createTime,omitempty"`
 12304  	// UpdateTime: Operation last update time. If the operation is done, this is
 12305  	// also the finish time.
 12306  	UpdateTime string `json:"updateTime,omitempty"`
 12307  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 12308  	// unconditionally include in API requests. By default, fields with empty or
 12309  	// default values are omitted from API requests. See
 12310  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12311  	// details.
 12312  	ForceSendFields []string `json:"-"`
 12313  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 12314  	// requests with the JSON null value. By default, fields with empty values are
 12315  	// omitted from API requests. See
 12316  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12317  	NullFields []string `json:"-"`
 12318  }
 12319  
 12320  func (s *GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
 12321  	type NoMethod GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata
 12322  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12323  }
 12324  
 12325  // GoogleLongrunningCancelOperationRequest: The request message for
 12326  // Operations.CancelOperation.
 12327  type GoogleLongrunningCancelOperationRequest struct {
 12328  }
 12329  
 12330  // GoogleLongrunningListOperationsResponse: The response message for
 12331  // Operations.ListOperations.
 12332  type GoogleLongrunningListOperationsResponse struct {
 12333  	// NextPageToken: The standard List next-page token.
 12334  	NextPageToken string `json:"nextPageToken,omitempty"`
 12335  	// Operations: A list of operations that matches the specified filter in the
 12336  	// request.
 12337  	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
 12338  
 12339  	// ServerResponse contains the HTTP response code and headers from the server.
 12340  	googleapi.ServerResponse `json:"-"`
 12341  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 12342  	// unconditionally include in API requests. By default, fields with empty or
 12343  	// default values are omitted from API requests. See
 12344  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12345  	// details.
 12346  	ForceSendFields []string `json:"-"`
 12347  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 12348  	// requests with the JSON null value. By default, fields with empty values are
 12349  	// omitted from API requests. See
 12350  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12351  	NullFields []string `json:"-"`
 12352  }
 12353  
 12354  func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
 12355  	type NoMethod GoogleLongrunningListOperationsResponse
 12356  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12357  }
 12358  
 12359  // GoogleLongrunningOperation: This resource represents a long-running
 12360  // operation that is the result of a network API call.
 12361  type GoogleLongrunningOperation struct {
 12362  	// Done: If the value is `false`, it means the operation is still in progress.
 12363  	// If `true`, the operation is completed, and either `error` or `response` is
 12364  	// available.
 12365  	Done bool `json:"done,omitempty"`
 12366  	// Error: The error result of the operation in case of failure or cancellation.
 12367  	Error *GoogleRpcStatus `json:"error,omitempty"`
 12368  	// Metadata: Service-specific metadata associated with the operation. It
 12369  	// typically contains progress information and common metadata such as create
 12370  	// time. Some services might not provide such metadata. Any method that returns
 12371  	// a long-running operation should document the metadata type, if any.
 12372  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 12373  	// Name: The server-assigned name, which is only unique within the same service
 12374  	// that originally returns it. If you use the default HTTP mapping, the `name`
 12375  	// should be a resource name ending with `operations/{unique_id}`.
 12376  	Name string `json:"name,omitempty"`
 12377  	// Response: The normal, successful response of the operation. If the original
 12378  	// method returns no data on success, such as `Delete`, the response is
 12379  	// `google.protobuf.Empty`. If the original method is standard
 12380  	// `Get`/`Create`/`Update`, the response should be the resource. For other
 12381  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
 12382  	// original method name. For example, if the original method name is
 12383  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
 12384  	Response googleapi.RawMessage `json:"response,omitempty"`
 12385  
 12386  	// ServerResponse contains the HTTP response code and headers from the server.
 12387  	googleapi.ServerResponse `json:"-"`
 12388  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
 12389  	// include in API requests. By default, fields with empty or default values are
 12390  	// omitted from API requests. See
 12391  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12392  	// details.
 12393  	ForceSendFields []string `json:"-"`
 12394  	// NullFields is a list of field names (e.g. "Done") to include in API requests
 12395  	// with the JSON null value. By default, fields with empty values are omitted
 12396  	// from API requests. See
 12397  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12398  	NullFields []string `json:"-"`
 12399  }
 12400  
 12401  func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
 12402  	type NoMethod GoogleLongrunningOperation
 12403  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12404  }
 12405  
 12406  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
 12407  // defining duplicated empty messages in your APIs. A typical example is to use
 12408  // it as the request or the response type of an API method. For instance:
 12409  // service Foo { rpc Bar(google.protobuf.Empty) returns
 12410  // (google.protobuf.Empty); }
 12411  type GoogleProtobufEmpty struct {
 12412  	// ServerResponse contains the HTTP response code and headers from the server.
 12413  	googleapi.ServerResponse `json:"-"`
 12414  }
 12415  
 12416  // GoogleRpcStatus: The `Status` type defines a logical error model that is
 12417  // suitable for different programming environments, including REST APIs and RPC
 12418  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
 12419  // contains three pieces of data: error code, error message, and error details.
 12420  // You can find out more about this error model and how to work with it in the
 12421  // API Design Guide (https://cloud.google.com/apis/design/errors).
 12422  type GoogleRpcStatus struct {
 12423  	// Code: The status code, which should be an enum value of google.rpc.Code.
 12424  	Code int64 `json:"code,omitempty"`
 12425  	// Details: A list of messages that carry the error details. There is a common
 12426  	// set of message types for APIs to use.
 12427  	Details []googleapi.RawMessage `json:"details,omitempty"`
 12428  	// Message: A developer-facing error message, which should be in English. Any
 12429  	// user-facing error message should be localized and sent in the
 12430  	// google.rpc.Status.details field, or localized by the client.
 12431  	Message string `json:"message,omitempty"`
 12432  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
 12433  	// include in API requests. By default, fields with empty or default values are
 12434  	// omitted from API requests. See
 12435  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12436  	// details.
 12437  	ForceSendFields []string `json:"-"`
 12438  	// NullFields is a list of field names (e.g. "Code") to include in API requests
 12439  	// with the JSON null value. By default, fields with empty values are omitted
 12440  	// from API requests. See
 12441  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12442  	NullFields []string `json:"-"`
 12443  }
 12444  
 12445  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
 12446  	type NoMethod GoogleRpcStatus
 12447  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12448  }
 12449  
 12450  // GoogleTypeDate: Represents a whole or partial calendar date, such as a
 12451  // birthday. The time of day and time zone are either specified elsewhere or
 12452  // are insignificant. The date is relative to the Gregorian Calendar. This can
 12453  // represent one of the following: * A full date, with non-zero year, month,
 12454  // and day values. * A month and day, with a zero year (for example, an
 12455  // anniversary). * A year on its own, with a zero month and a zero day. * A
 12456  // year and month, with a zero day (for example, a credit card expiration
 12457  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
 12458  // google.protobuf.Timestamp
 12459  type GoogleTypeDate struct {
 12460  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
 12461  	// or 0 to specify a year by itself or a year and month where the day isn't
 12462  	// significant.
 12463  	Day int64 `json:"day,omitempty"`
 12464  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
 12465  	// a month and day.
 12466  	Month int64 `json:"month,omitempty"`
 12467  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
 12468  	// without a year.
 12469  	Year int64 `json:"year,omitempty"`
 12470  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
 12471  	// include in API requests. By default, fields with empty or default values are
 12472  	// omitted from API requests. See
 12473  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12474  	// details.
 12475  	ForceSendFields []string `json:"-"`
 12476  	// NullFields is a list of field names (e.g. "Day") to include in API requests
 12477  	// with the JSON null value. By default, fields with empty values are omitted
 12478  	// from API requests. See
 12479  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12480  	NullFields []string `json:"-"`
 12481  }
 12482  
 12483  func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
 12484  	type NoMethod GoogleTypeDate
 12485  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12486  }
 12487  
 12488  type ProjectsGetCall struct {
 12489  	s            *Service
 12490  	name         string
 12491  	urlParams_   gensupport.URLParams
 12492  	ifNoneMatch_ string
 12493  	ctx_         context.Context
 12494  	header_      http.Header
 12495  }
 12496  
 12497  // Get: Gets a Project. Returns NOT_FOUND when the project is not yet created.
 12498  //
 12499  //   - name: Full resource name of a Project, such as
 12500  //     `projects/{project_id_or_number}`.
 12501  func (r *ProjectsService) Get(name string) *ProjectsGetCall {
 12502  	c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12503  	c.name = name
 12504  	return c
 12505  }
 12506  
 12507  // Fields allows partial responses to be retrieved. See
 12508  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12509  // details.
 12510  func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall {
 12511  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12512  	return c
 12513  }
 12514  
 12515  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12516  // object's ETag matches the given value. This is useful for getting updates
 12517  // only after the object has changed since the last request.
 12518  func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall {
 12519  	c.ifNoneMatch_ = entityTag
 12520  	return c
 12521  }
 12522  
 12523  // Context sets the context to be used in this call's Do method.
 12524  func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall {
 12525  	c.ctx_ = ctx
 12526  	return c
 12527  }
 12528  
 12529  // Header returns a http.Header that can be modified by the caller to add
 12530  // headers to the request.
 12531  func (c *ProjectsGetCall) Header() http.Header {
 12532  	if c.header_ == nil {
 12533  		c.header_ = make(http.Header)
 12534  	}
 12535  	return c.header_
 12536  }
 12537  
 12538  func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) {
 12539  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12540  	if c.ifNoneMatch_ != "" {
 12541  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12542  	}
 12543  	var body io.Reader = nil
 12544  	c.urlParams_.Set("alt", alt)
 12545  	c.urlParams_.Set("prettyPrint", "false")
 12546  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 12547  	urls += "?" + c.urlParams_.Encode()
 12548  	req, err := http.NewRequest("GET", urls, body)
 12549  	if err != nil {
 12550  		return nil, err
 12551  	}
 12552  	req.Header = reqHeaders
 12553  	googleapi.Expand(req.URL, map[string]string{
 12554  		"name": c.name,
 12555  	})
 12556  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12557  }
 12558  
 12559  // Do executes the "discoveryengine.projects.get" call.
 12560  // Any non-2xx status code is an error. Response headers are in either
 12561  // *GoogleCloudDiscoveryengineV1alphaProject.ServerResponse.Header or (if a
 12562  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12563  // googleapi.IsNotModified to check whether the returned error was because
 12564  // http.StatusNotModified was returned.
 12565  func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaProject, error) {
 12566  	gensupport.SetOptions(c.urlParams_, opts...)
 12567  	res, err := c.doRequest("json")
 12568  	if res != nil && res.StatusCode == http.StatusNotModified {
 12569  		if res.Body != nil {
 12570  			res.Body.Close()
 12571  		}
 12572  		return nil, gensupport.WrapError(&googleapi.Error{
 12573  			Code:   res.StatusCode,
 12574  			Header: res.Header,
 12575  		})
 12576  	}
 12577  	if err != nil {
 12578  		return nil, err
 12579  	}
 12580  	defer googleapi.CloseBody(res)
 12581  	if err := googleapi.CheckResponse(res); err != nil {
 12582  		return nil, gensupport.WrapError(err)
 12583  	}
 12584  	ret := &GoogleCloudDiscoveryengineV1alphaProject{
 12585  		ServerResponse: googleapi.ServerResponse{
 12586  			Header:         res.Header,
 12587  			HTTPStatusCode: res.StatusCode,
 12588  		},
 12589  	}
 12590  	target := &ret
 12591  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12592  		return nil, err
 12593  	}
 12594  	return ret, nil
 12595  }
 12596  
 12597  type ProjectsProvisionCall struct {
 12598  	s                                                        *Service
 12599  	name                                                     string
 12600  	googleclouddiscoveryenginev1alphaprovisionprojectrequest *GoogleCloudDiscoveryengineV1alphaProvisionProjectRequest
 12601  	urlParams_                                               gensupport.URLParams
 12602  	ctx_                                                     context.Context
 12603  	header_                                                  http.Header
 12604  }
 12605  
 12606  // Provision: Provisions the project resource. During the process, related
 12607  // systems will get prepared and initialized. Caller must read the Terms for
 12608  // data use (https://cloud.google.com/retail/data-use-terms), and optionally
 12609  // specify in request to provide consent to that service terms.
 12610  //
 12611  //   - name: Full resource name of a Project, such as
 12612  //     `projects/{project_id_or_number}`.
 12613  func (r *ProjectsService) Provision(name string, googleclouddiscoveryenginev1alphaprovisionprojectrequest *GoogleCloudDiscoveryengineV1alphaProvisionProjectRequest) *ProjectsProvisionCall {
 12614  	c := &ProjectsProvisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12615  	c.name = name
 12616  	c.googleclouddiscoveryenginev1alphaprovisionprojectrequest = googleclouddiscoveryenginev1alphaprovisionprojectrequest
 12617  	return c
 12618  }
 12619  
 12620  // Fields allows partial responses to be retrieved. See
 12621  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12622  // details.
 12623  func (c *ProjectsProvisionCall) Fields(s ...googleapi.Field) *ProjectsProvisionCall {
 12624  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12625  	return c
 12626  }
 12627  
 12628  // Context sets the context to be used in this call's Do method.
 12629  func (c *ProjectsProvisionCall) Context(ctx context.Context) *ProjectsProvisionCall {
 12630  	c.ctx_ = ctx
 12631  	return c
 12632  }
 12633  
 12634  // Header returns a http.Header that can be modified by the caller to add
 12635  // headers to the request.
 12636  func (c *ProjectsProvisionCall) Header() http.Header {
 12637  	if c.header_ == nil {
 12638  		c.header_ = make(http.Header)
 12639  	}
 12640  	return c.header_
 12641  }
 12642  
 12643  func (c *ProjectsProvisionCall) doRequest(alt string) (*http.Response, error) {
 12644  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12645  	var body io.Reader = nil
 12646  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaprovisionprojectrequest)
 12647  	if err != nil {
 12648  		return nil, err
 12649  	}
 12650  	c.urlParams_.Set("alt", alt)
 12651  	c.urlParams_.Set("prettyPrint", "false")
 12652  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:provision")
 12653  	urls += "?" + c.urlParams_.Encode()
 12654  	req, err := http.NewRequest("POST", urls, body)
 12655  	if err != nil {
 12656  		return nil, err
 12657  	}
 12658  	req.Header = reqHeaders
 12659  	googleapi.Expand(req.URL, map[string]string{
 12660  		"name": c.name,
 12661  	})
 12662  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12663  }
 12664  
 12665  // Do executes the "discoveryengine.projects.provision" call.
 12666  // Any non-2xx status code is an error. Response headers are in either
 12667  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12668  // returned at all) in error.(*googleapi.Error).Header. Use
 12669  // googleapi.IsNotModified to check whether the returned error was because
 12670  // http.StatusNotModified was returned.
 12671  func (c *ProjectsProvisionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12672  	gensupport.SetOptions(c.urlParams_, opts...)
 12673  	res, err := c.doRequest("json")
 12674  	if res != nil && res.StatusCode == http.StatusNotModified {
 12675  		if res.Body != nil {
 12676  			res.Body.Close()
 12677  		}
 12678  		return nil, gensupport.WrapError(&googleapi.Error{
 12679  			Code:   res.StatusCode,
 12680  			Header: res.Header,
 12681  		})
 12682  	}
 12683  	if err != nil {
 12684  		return nil, err
 12685  	}
 12686  	defer googleapi.CloseBody(res)
 12687  	if err := googleapi.CheckResponse(res); err != nil {
 12688  		return nil, gensupport.WrapError(err)
 12689  	}
 12690  	ret := &GoogleLongrunningOperation{
 12691  		ServerResponse: googleapi.ServerResponse{
 12692  			Header:         res.Header,
 12693  			HTTPStatusCode: res.StatusCode,
 12694  		},
 12695  	}
 12696  	target := &ret
 12697  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12698  		return nil, err
 12699  	}
 12700  	return ret, nil
 12701  }
 12702  
 12703  type ProjectsReportConsentChangeCall struct {
 12704  	s                                                           *Service
 12705  	project                                                     string
 12706  	googleclouddiscoveryenginev1alphareportconsentchangerequest *GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest
 12707  	urlParams_                                                  gensupport.URLParams
 12708  	ctx_                                                        context.Context
 12709  	header_                                                     http.Header
 12710  }
 12711  
 12712  // ReportConsentChange: Updates service terms for this project. This method can
 12713  // be used to retroactively accept the latest terms. Terms available for
 12714  // update: * Terms for data use
 12715  // (https://cloud.google.com/retail/data-use-terms)
 12716  //
 12717  //   - project: Full resource name of a Project, such as
 12718  //     `projects/{project_id_or_number}`.
 12719  func (r *ProjectsService) ReportConsentChange(project string, googleclouddiscoveryenginev1alphareportconsentchangerequest *GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest) *ProjectsReportConsentChangeCall {
 12720  	c := &ProjectsReportConsentChangeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12721  	c.project = project
 12722  	c.googleclouddiscoveryenginev1alphareportconsentchangerequest = googleclouddiscoveryenginev1alphareportconsentchangerequest
 12723  	return c
 12724  }
 12725  
 12726  // Fields allows partial responses to be retrieved. See
 12727  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12728  // details.
 12729  func (c *ProjectsReportConsentChangeCall) Fields(s ...googleapi.Field) *ProjectsReportConsentChangeCall {
 12730  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12731  	return c
 12732  }
 12733  
 12734  // Context sets the context to be used in this call's Do method.
 12735  func (c *ProjectsReportConsentChangeCall) Context(ctx context.Context) *ProjectsReportConsentChangeCall {
 12736  	c.ctx_ = ctx
 12737  	return c
 12738  }
 12739  
 12740  // Header returns a http.Header that can be modified by the caller to add
 12741  // headers to the request.
 12742  func (c *ProjectsReportConsentChangeCall) Header() http.Header {
 12743  	if c.header_ == nil {
 12744  		c.header_ = make(http.Header)
 12745  	}
 12746  	return c.header_
 12747  }
 12748  
 12749  func (c *ProjectsReportConsentChangeCall) doRequest(alt string) (*http.Response, error) {
 12750  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12751  	var body io.Reader = nil
 12752  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphareportconsentchangerequest)
 12753  	if err != nil {
 12754  		return nil, err
 12755  	}
 12756  	c.urlParams_.Set("alt", alt)
 12757  	c.urlParams_.Set("prettyPrint", "false")
 12758  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+project}:reportConsentChange")
 12759  	urls += "?" + c.urlParams_.Encode()
 12760  	req, err := http.NewRequest("POST", urls, body)
 12761  	if err != nil {
 12762  		return nil, err
 12763  	}
 12764  	req.Header = reqHeaders
 12765  	googleapi.Expand(req.URL, map[string]string{
 12766  		"project": c.project,
 12767  	})
 12768  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12769  }
 12770  
 12771  // Do executes the "discoveryengine.projects.reportConsentChange" call.
 12772  // Any non-2xx status code is an error. Response headers are in either
 12773  // *GoogleCloudDiscoveryengineV1alphaProject.ServerResponse.Header or (if a
 12774  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12775  // googleapi.IsNotModified to check whether the returned error was because
 12776  // http.StatusNotModified was returned.
 12777  func (c *ProjectsReportConsentChangeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaProject, error) {
 12778  	gensupport.SetOptions(c.urlParams_, opts...)
 12779  	res, err := c.doRequest("json")
 12780  	if res != nil && res.StatusCode == http.StatusNotModified {
 12781  		if res.Body != nil {
 12782  			res.Body.Close()
 12783  		}
 12784  		return nil, gensupport.WrapError(&googleapi.Error{
 12785  			Code:   res.StatusCode,
 12786  			Header: res.Header,
 12787  		})
 12788  	}
 12789  	if err != nil {
 12790  		return nil, err
 12791  	}
 12792  	defer googleapi.CloseBody(res)
 12793  	if err := googleapi.CheckResponse(res); err != nil {
 12794  		return nil, gensupport.WrapError(err)
 12795  	}
 12796  	ret := &GoogleCloudDiscoveryengineV1alphaProject{
 12797  		ServerResponse: googleapi.ServerResponse{
 12798  			Header:         res.Header,
 12799  			HTTPStatusCode: res.StatusCode,
 12800  		},
 12801  	}
 12802  	target := &ret
 12803  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12804  		return nil, err
 12805  	}
 12806  	return ret, nil
 12807  }
 12808  
 12809  type ProjectsLocationsEstimateDataSizeCall struct {
 12810  	s                                                        *Service
 12811  	location                                                 string
 12812  	googleclouddiscoveryenginev1alphaestimatedatasizerequest *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest
 12813  	urlParams_                                               gensupport.URLParams
 12814  	ctx_                                                     context.Context
 12815  	header_                                                  http.Header
 12816  }
 12817  
 12818  // EstimateDataSize: Estimates the data size to be used by a customer.
 12819  //
 12820  //   - location: Full resource name of the location, such as
 12821  //     `projects/{project}/locations/{location}`.
 12822  func (r *ProjectsLocationsService) EstimateDataSize(location string, googleclouddiscoveryenginev1alphaestimatedatasizerequest *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest) *ProjectsLocationsEstimateDataSizeCall {
 12823  	c := &ProjectsLocationsEstimateDataSizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12824  	c.location = location
 12825  	c.googleclouddiscoveryenginev1alphaestimatedatasizerequest = googleclouddiscoveryenginev1alphaestimatedatasizerequest
 12826  	return c
 12827  }
 12828  
 12829  // Fields allows partial responses to be retrieved. See
 12830  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12831  // details.
 12832  func (c *ProjectsLocationsEstimateDataSizeCall) Fields(s ...googleapi.Field) *ProjectsLocationsEstimateDataSizeCall {
 12833  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12834  	return c
 12835  }
 12836  
 12837  // Context sets the context to be used in this call's Do method.
 12838  func (c *ProjectsLocationsEstimateDataSizeCall) Context(ctx context.Context) *ProjectsLocationsEstimateDataSizeCall {
 12839  	c.ctx_ = ctx
 12840  	return c
 12841  }
 12842  
 12843  // Header returns a http.Header that can be modified by the caller to add
 12844  // headers to the request.
 12845  func (c *ProjectsLocationsEstimateDataSizeCall) Header() http.Header {
 12846  	if c.header_ == nil {
 12847  		c.header_ = make(http.Header)
 12848  	}
 12849  	return c.header_
 12850  }
 12851  
 12852  func (c *ProjectsLocationsEstimateDataSizeCall) doRequest(alt string) (*http.Response, error) {
 12853  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12854  	var body io.Reader = nil
 12855  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaestimatedatasizerequest)
 12856  	if err != nil {
 12857  		return nil, err
 12858  	}
 12859  	c.urlParams_.Set("alt", alt)
 12860  	c.urlParams_.Set("prettyPrint", "false")
 12861  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+location}:estimateDataSize")
 12862  	urls += "?" + c.urlParams_.Encode()
 12863  	req, err := http.NewRequest("POST", urls, body)
 12864  	if err != nil {
 12865  		return nil, err
 12866  	}
 12867  	req.Header = reqHeaders
 12868  	googleapi.Expand(req.URL, map[string]string{
 12869  		"location": c.location,
 12870  	})
 12871  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12872  }
 12873  
 12874  // Do executes the "discoveryengine.projects.locations.estimateDataSize" call.
 12875  // Any non-2xx status code is an error. Response headers are in either
 12876  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12877  // returned at all) in error.(*googleapi.Error).Header. Use
 12878  // googleapi.IsNotModified to check whether the returned error was because
 12879  // http.StatusNotModified was returned.
 12880  func (c *ProjectsLocationsEstimateDataSizeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12881  	gensupport.SetOptions(c.urlParams_, opts...)
 12882  	res, err := c.doRequest("json")
 12883  	if res != nil && res.StatusCode == http.StatusNotModified {
 12884  		if res.Body != nil {
 12885  			res.Body.Close()
 12886  		}
 12887  		return nil, gensupport.WrapError(&googleapi.Error{
 12888  			Code:   res.StatusCode,
 12889  			Header: res.Header,
 12890  		})
 12891  	}
 12892  	if err != nil {
 12893  		return nil, err
 12894  	}
 12895  	defer googleapi.CloseBody(res)
 12896  	if err := googleapi.CheckResponse(res); err != nil {
 12897  		return nil, gensupport.WrapError(err)
 12898  	}
 12899  	ret := &GoogleLongrunningOperation{
 12900  		ServerResponse: googleapi.ServerResponse{
 12901  			Header:         res.Header,
 12902  			HTTPStatusCode: res.StatusCode,
 12903  		},
 12904  	}
 12905  	target := &ret
 12906  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12907  		return nil, err
 12908  	}
 12909  	return ret, nil
 12910  }
 12911  
 12912  type ProjectsLocationsGetAclConfigCall struct {
 12913  	s            *Service
 12914  	name         string
 12915  	urlParams_   gensupport.URLParams
 12916  	ifNoneMatch_ string
 12917  	ctx_         context.Context
 12918  	header_      http.Header
 12919  }
 12920  
 12921  // GetAclConfig: Gets the AclConfig.
 12922  //
 12923  //   - name: Resource name of AclConfig, such as
 12924  //     `projects/*/locations/*/aclConfig`. If the caller does not have permission
 12925  //     to access the AclConfig, regardless of whether or not it exists, a
 12926  //     PERMISSION_DENIED error is returned.
 12927  func (r *ProjectsLocationsService) GetAclConfig(name string) *ProjectsLocationsGetAclConfigCall {
 12928  	c := &ProjectsLocationsGetAclConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12929  	c.name = name
 12930  	return c
 12931  }
 12932  
 12933  // Fields allows partial responses to be retrieved. See
 12934  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12935  // details.
 12936  func (c *ProjectsLocationsGetAclConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetAclConfigCall {
 12937  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12938  	return c
 12939  }
 12940  
 12941  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12942  // object's ETag matches the given value. This is useful for getting updates
 12943  // only after the object has changed since the last request.
 12944  func (c *ProjectsLocationsGetAclConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetAclConfigCall {
 12945  	c.ifNoneMatch_ = entityTag
 12946  	return c
 12947  }
 12948  
 12949  // Context sets the context to be used in this call's Do method.
 12950  func (c *ProjectsLocationsGetAclConfigCall) Context(ctx context.Context) *ProjectsLocationsGetAclConfigCall {
 12951  	c.ctx_ = ctx
 12952  	return c
 12953  }
 12954  
 12955  // Header returns a http.Header that can be modified by the caller to add
 12956  // headers to the request.
 12957  func (c *ProjectsLocationsGetAclConfigCall) Header() http.Header {
 12958  	if c.header_ == nil {
 12959  		c.header_ = make(http.Header)
 12960  	}
 12961  	return c.header_
 12962  }
 12963  
 12964  func (c *ProjectsLocationsGetAclConfigCall) doRequest(alt string) (*http.Response, error) {
 12965  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12966  	if c.ifNoneMatch_ != "" {
 12967  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12968  	}
 12969  	var body io.Reader = nil
 12970  	c.urlParams_.Set("alt", alt)
 12971  	c.urlParams_.Set("prettyPrint", "false")
 12972  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 12973  	urls += "?" + c.urlParams_.Encode()
 12974  	req, err := http.NewRequest("GET", urls, body)
 12975  	if err != nil {
 12976  		return nil, err
 12977  	}
 12978  	req.Header = reqHeaders
 12979  	googleapi.Expand(req.URL, map[string]string{
 12980  		"name": c.name,
 12981  	})
 12982  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12983  }
 12984  
 12985  // Do executes the "discoveryengine.projects.locations.getAclConfig" call.
 12986  // Any non-2xx status code is an error. Response headers are in either
 12987  // *GoogleCloudDiscoveryengineV1alphaAclConfig.ServerResponse.Header or (if a
 12988  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12989  // googleapi.IsNotModified to check whether the returned error was because
 12990  // http.StatusNotModified was returned.
 12991  func (c *ProjectsLocationsGetAclConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAclConfig, error) {
 12992  	gensupport.SetOptions(c.urlParams_, opts...)
 12993  	res, err := c.doRequest("json")
 12994  	if res != nil && res.StatusCode == http.StatusNotModified {
 12995  		if res.Body != nil {
 12996  			res.Body.Close()
 12997  		}
 12998  		return nil, gensupport.WrapError(&googleapi.Error{
 12999  			Code:   res.StatusCode,
 13000  			Header: res.Header,
 13001  		})
 13002  	}
 13003  	if err != nil {
 13004  		return nil, err
 13005  	}
 13006  	defer googleapi.CloseBody(res)
 13007  	if err := googleapi.CheckResponse(res); err != nil {
 13008  		return nil, gensupport.WrapError(err)
 13009  	}
 13010  	ret := &GoogleCloudDiscoveryengineV1alphaAclConfig{
 13011  		ServerResponse: googleapi.ServerResponse{
 13012  			Header:         res.Header,
 13013  			HTTPStatusCode: res.StatusCode,
 13014  		},
 13015  	}
 13016  	target := &ret
 13017  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13018  		return nil, err
 13019  	}
 13020  	return ret, nil
 13021  }
 13022  
 13023  type ProjectsLocationsUpdateAclConfigCall struct {
 13024  	s                                          *Service
 13025  	name                                       string
 13026  	googleclouddiscoveryenginev1alphaaclconfig *GoogleCloudDiscoveryengineV1alphaAclConfig
 13027  	urlParams_                                 gensupport.URLParams
 13028  	ctx_                                       context.Context
 13029  	header_                                    http.Header
 13030  }
 13031  
 13032  // UpdateAclConfig: Default Acl Configuration for use in a location of a
 13033  // customer's project. Updates will only reflect to new data stores. Existing
 13034  // data stores will still use the old value.
 13035  //
 13036  //   - name: Immutable. The full resource name of the acl configuration. Format:
 13037  //     `projects/{project}/locations/{location}/aclConfig`. This field must be a
 13038  //     UTF-8 encoded string with a length limit of 1024 characters.
 13039  func (r *ProjectsLocationsService) UpdateAclConfig(name string, googleclouddiscoveryenginev1alphaaclconfig *GoogleCloudDiscoveryengineV1alphaAclConfig) *ProjectsLocationsUpdateAclConfigCall {
 13040  	c := &ProjectsLocationsUpdateAclConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13041  	c.name = name
 13042  	c.googleclouddiscoveryenginev1alphaaclconfig = googleclouddiscoveryenginev1alphaaclconfig
 13043  	return c
 13044  }
 13045  
 13046  // Fields allows partial responses to be retrieved. See
 13047  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13048  // details.
 13049  func (c *ProjectsLocationsUpdateAclConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateAclConfigCall {
 13050  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13051  	return c
 13052  }
 13053  
 13054  // Context sets the context to be used in this call's Do method.
 13055  func (c *ProjectsLocationsUpdateAclConfigCall) Context(ctx context.Context) *ProjectsLocationsUpdateAclConfigCall {
 13056  	c.ctx_ = ctx
 13057  	return c
 13058  }
 13059  
 13060  // Header returns a http.Header that can be modified by the caller to add
 13061  // headers to the request.
 13062  func (c *ProjectsLocationsUpdateAclConfigCall) Header() http.Header {
 13063  	if c.header_ == nil {
 13064  		c.header_ = make(http.Header)
 13065  	}
 13066  	return c.header_
 13067  }
 13068  
 13069  func (c *ProjectsLocationsUpdateAclConfigCall) doRequest(alt string) (*http.Response, error) {
 13070  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13071  	var body io.Reader = nil
 13072  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaaclconfig)
 13073  	if err != nil {
 13074  		return nil, err
 13075  	}
 13076  	c.urlParams_.Set("alt", alt)
 13077  	c.urlParams_.Set("prettyPrint", "false")
 13078  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 13079  	urls += "?" + c.urlParams_.Encode()
 13080  	req, err := http.NewRequest("PATCH", urls, body)
 13081  	if err != nil {
 13082  		return nil, err
 13083  	}
 13084  	req.Header = reqHeaders
 13085  	googleapi.Expand(req.URL, map[string]string{
 13086  		"name": c.name,
 13087  	})
 13088  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13089  }
 13090  
 13091  // Do executes the "discoveryengine.projects.locations.updateAclConfig" call.
 13092  // Any non-2xx status code is an error. Response headers are in either
 13093  // *GoogleCloudDiscoveryengineV1alphaAclConfig.ServerResponse.Header or (if a
 13094  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13095  // googleapi.IsNotModified to check whether the returned error was because
 13096  // http.StatusNotModified was returned.
 13097  func (c *ProjectsLocationsUpdateAclConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAclConfig, error) {
 13098  	gensupport.SetOptions(c.urlParams_, opts...)
 13099  	res, err := c.doRequest("json")
 13100  	if res != nil && res.StatusCode == http.StatusNotModified {
 13101  		if res.Body != nil {
 13102  			res.Body.Close()
 13103  		}
 13104  		return nil, gensupport.WrapError(&googleapi.Error{
 13105  			Code:   res.StatusCode,
 13106  			Header: res.Header,
 13107  		})
 13108  	}
 13109  	if err != nil {
 13110  		return nil, err
 13111  	}
 13112  	defer googleapi.CloseBody(res)
 13113  	if err := googleapi.CheckResponse(res); err != nil {
 13114  		return nil, gensupport.WrapError(err)
 13115  	}
 13116  	ret := &GoogleCloudDiscoveryengineV1alphaAclConfig{
 13117  		ServerResponse: googleapi.ServerResponse{
 13118  			Header:         res.Header,
 13119  			HTTPStatusCode: res.StatusCode,
 13120  		},
 13121  	}
 13122  	target := &ret
 13123  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13124  		return nil, err
 13125  	}
 13126  	return ret, nil
 13127  }
 13128  
 13129  type ProjectsLocationsCollectionsDataConnectorOperationsGetCall struct {
 13130  	s            *Service
 13131  	name         string
 13132  	urlParams_   gensupport.URLParams
 13133  	ifNoneMatch_ string
 13134  	ctx_         context.Context
 13135  	header_      http.Header
 13136  }
 13137  
 13138  // Get: Gets the latest state of a long-running operation. Clients can use this
 13139  // method to poll the operation result at intervals as recommended by the API
 13140  // service.
 13141  //
 13142  // - name: The name of the operation resource.
 13143  func (r *ProjectsLocationsCollectionsDataConnectorOperationsService) Get(name string) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
 13144  	c := &ProjectsLocationsCollectionsDataConnectorOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13145  	c.name = name
 13146  	return c
 13147  }
 13148  
 13149  // Fields allows partial responses to be retrieved. See
 13150  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13151  // details.
 13152  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
 13153  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13154  	return c
 13155  }
 13156  
 13157  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13158  // object's ETag matches the given value. This is useful for getting updates
 13159  // only after the object has changed since the last request.
 13160  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
 13161  	c.ifNoneMatch_ = entityTag
 13162  	return c
 13163  }
 13164  
 13165  // Context sets the context to be used in this call's Do method.
 13166  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
 13167  	c.ctx_ = ctx
 13168  	return c
 13169  }
 13170  
 13171  // Header returns a http.Header that can be modified by the caller to add
 13172  // headers to the request.
 13173  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Header() http.Header {
 13174  	if c.header_ == nil {
 13175  		c.header_ = make(http.Header)
 13176  	}
 13177  	return c.header_
 13178  }
 13179  
 13180  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 13181  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13182  	if c.ifNoneMatch_ != "" {
 13183  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13184  	}
 13185  	var body io.Reader = nil
 13186  	c.urlParams_.Set("alt", alt)
 13187  	c.urlParams_.Set("prettyPrint", "false")
 13188  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 13189  	urls += "?" + c.urlParams_.Encode()
 13190  	req, err := http.NewRequest("GET", urls, body)
 13191  	if err != nil {
 13192  		return nil, err
 13193  	}
 13194  	req.Header = reqHeaders
 13195  	googleapi.Expand(req.URL, map[string]string{
 13196  		"name": c.name,
 13197  	})
 13198  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13199  }
 13200  
 13201  // Do executes the "discoveryengine.projects.locations.collections.dataConnector.operations.get" call.
 13202  // Any non-2xx status code is an error. Response headers are in either
 13203  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13204  // returned at all) in error.(*googleapi.Error).Header. Use
 13205  // googleapi.IsNotModified to check whether the returned error was because
 13206  // http.StatusNotModified was returned.
 13207  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13208  	gensupport.SetOptions(c.urlParams_, opts...)
 13209  	res, err := c.doRequest("json")
 13210  	if res != nil && res.StatusCode == http.StatusNotModified {
 13211  		if res.Body != nil {
 13212  			res.Body.Close()
 13213  		}
 13214  		return nil, gensupport.WrapError(&googleapi.Error{
 13215  			Code:   res.StatusCode,
 13216  			Header: res.Header,
 13217  		})
 13218  	}
 13219  	if err != nil {
 13220  		return nil, err
 13221  	}
 13222  	defer googleapi.CloseBody(res)
 13223  	if err := googleapi.CheckResponse(res); err != nil {
 13224  		return nil, gensupport.WrapError(err)
 13225  	}
 13226  	ret := &GoogleLongrunningOperation{
 13227  		ServerResponse: googleapi.ServerResponse{
 13228  			Header:         res.Header,
 13229  			HTTPStatusCode: res.StatusCode,
 13230  		},
 13231  	}
 13232  	target := &ret
 13233  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13234  		return nil, err
 13235  	}
 13236  	return ret, nil
 13237  }
 13238  
 13239  type ProjectsLocationsCollectionsDataConnectorOperationsListCall struct {
 13240  	s            *Service
 13241  	name         string
 13242  	urlParams_   gensupport.URLParams
 13243  	ifNoneMatch_ string
 13244  	ctx_         context.Context
 13245  	header_      http.Header
 13246  }
 13247  
 13248  // List: Lists operations that match the specified filter in the request. If
 13249  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 13250  //
 13251  // - name: The name of the operation's parent resource.
 13252  func (r *ProjectsLocationsCollectionsDataConnectorOperationsService) List(name string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 13253  	c := &ProjectsLocationsCollectionsDataConnectorOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13254  	c.name = name
 13255  	return c
 13256  }
 13257  
 13258  // Filter sets the optional parameter "filter": The standard list filter.
 13259  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 13260  	c.urlParams_.Set("filter", filter)
 13261  	return c
 13262  }
 13263  
 13264  // PageSize sets the optional parameter "pageSize": The standard list page
 13265  // size.
 13266  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 13267  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13268  	return c
 13269  }
 13270  
 13271  // PageToken sets the optional parameter "pageToken": The standard list page
 13272  // token.
 13273  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 13274  	c.urlParams_.Set("pageToken", pageToken)
 13275  	return c
 13276  }
 13277  
 13278  // Fields allows partial responses to be retrieved. See
 13279  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13280  // details.
 13281  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 13282  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13283  	return c
 13284  }
 13285  
 13286  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13287  // object's ETag matches the given value. This is useful for getting updates
 13288  // only after the object has changed since the last request.
 13289  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 13290  	c.ifNoneMatch_ = entityTag
 13291  	return c
 13292  }
 13293  
 13294  // Context sets the context to be used in this call's Do method.
 13295  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 13296  	c.ctx_ = ctx
 13297  	return c
 13298  }
 13299  
 13300  // Header returns a http.Header that can be modified by the caller to add
 13301  // headers to the request.
 13302  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Header() http.Header {
 13303  	if c.header_ == nil {
 13304  		c.header_ = make(http.Header)
 13305  	}
 13306  	return c.header_
 13307  }
 13308  
 13309  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) doRequest(alt string) (*http.Response, error) {
 13310  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13311  	if c.ifNoneMatch_ != "" {
 13312  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13313  	}
 13314  	var body io.Reader = nil
 13315  	c.urlParams_.Set("alt", alt)
 13316  	c.urlParams_.Set("prettyPrint", "false")
 13317  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 13318  	urls += "?" + c.urlParams_.Encode()
 13319  	req, err := http.NewRequest("GET", urls, body)
 13320  	if err != nil {
 13321  		return nil, err
 13322  	}
 13323  	req.Header = reqHeaders
 13324  	googleapi.Expand(req.URL, map[string]string{
 13325  		"name": c.name,
 13326  	})
 13327  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13328  }
 13329  
 13330  // Do executes the "discoveryengine.projects.locations.collections.dataConnector.operations.list" call.
 13331  // Any non-2xx status code is an error. Response headers are in either
 13332  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 13333  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13334  // googleapi.IsNotModified to check whether the returned error was because
 13335  // http.StatusNotModified was returned.
 13336  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 13337  	gensupport.SetOptions(c.urlParams_, opts...)
 13338  	res, err := c.doRequest("json")
 13339  	if res != nil && res.StatusCode == http.StatusNotModified {
 13340  		if res.Body != nil {
 13341  			res.Body.Close()
 13342  		}
 13343  		return nil, gensupport.WrapError(&googleapi.Error{
 13344  			Code:   res.StatusCode,
 13345  			Header: res.Header,
 13346  		})
 13347  	}
 13348  	if err != nil {
 13349  		return nil, err
 13350  	}
 13351  	defer googleapi.CloseBody(res)
 13352  	if err := googleapi.CheckResponse(res); err != nil {
 13353  		return nil, gensupport.WrapError(err)
 13354  	}
 13355  	ret := &GoogleLongrunningListOperationsResponse{
 13356  		ServerResponse: googleapi.ServerResponse{
 13357  			Header:         res.Header,
 13358  			HTTPStatusCode: res.StatusCode,
 13359  		},
 13360  	}
 13361  	target := &ret
 13362  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13363  		return nil, err
 13364  	}
 13365  	return ret, nil
 13366  }
 13367  
 13368  // Pages invokes f for each page of results.
 13369  // A non-nil error returned from f will halt the iteration.
 13370  // The provided context supersedes any context provided to the Context method.
 13371  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 13372  	c.ctx_ = ctx
 13373  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13374  	for {
 13375  		x, err := c.Do()
 13376  		if err != nil {
 13377  			return err
 13378  		}
 13379  		if err := f(x); err != nil {
 13380  			return err
 13381  		}
 13382  		if x.NextPageToken == "" {
 13383  			return nil
 13384  		}
 13385  		c.PageToken(x.NextPageToken)
 13386  	}
 13387  }
 13388  
 13389  type ProjectsLocationsCollectionsDataStoresCompleteQueryCall struct {
 13390  	s            *Service
 13391  	dataStore    string
 13392  	urlParams_   gensupport.URLParams
 13393  	ifNoneMatch_ string
 13394  	ctx_         context.Context
 13395  	header_      http.Header
 13396  }
 13397  
 13398  // CompleteQuery: Completes the specified user input with keyword suggestions.
 13399  //
 13400  //   - dataStore: The parent data store resource name for which the completion is
 13401  //     performed, such as
 13402  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 13403  //     ult_data_store`.
 13404  func (r *ProjectsLocationsCollectionsDataStoresService) CompleteQuery(dataStore string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 13405  	c := &ProjectsLocationsCollectionsDataStoresCompleteQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13406  	c.dataStore = dataStore
 13407  	return c
 13408  }
 13409  
 13410  // IncludeTailSuggestions sets the optional parameter "includeTailSuggestions":
 13411  // Indicates if tail suggestions should be returned if there are no suggestions
 13412  // that match the full query. Even if set to true, if there are suggestions
 13413  // that match the full query, those are returned and no tail suggestions are
 13414  // returned.
 13415  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) IncludeTailSuggestions(includeTailSuggestions bool) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 13416  	c.urlParams_.Set("includeTailSuggestions", fmt.Sprint(includeTailSuggestions))
 13417  	return c
 13418  }
 13419  
 13420  // Query sets the optional parameter "query": Required. The typeahead input
 13421  // used to fetch suggestions. Maximum length is 128 characters.
 13422  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Query(query string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 13423  	c.urlParams_.Set("query", query)
 13424  	return c
 13425  }
 13426  
 13427  // QueryModel sets the optional parameter "queryModel": Specifies the
 13428  // autocomplete data model. This overrides any model specified in the
 13429  // Configuration > Autocomplete section of the Cloud console. Currently
 13430  // supported values: * `document` - Using suggestions generated from
 13431  // user-imported documents. * `search-history` - Using suggestions generated
 13432  // from the past history of SearchService.Search API calls. Do not use it when
 13433  // there is no traffic for Search API. * `user-event` - Using suggestions
 13434  // generated from user-imported search events. * `document-completable` - Using
 13435  // suggestions taken directly from user-imported document fields marked as
 13436  // completable. Default values: * `document` is the default model for regular
 13437  // dataStores. * `search-history` is the default model for site search
 13438  // dataStores.
 13439  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 13440  	c.urlParams_.Set("queryModel", queryModel)
 13441  	return c
 13442  }
 13443  
 13444  // UserPseudoId sets the optional parameter "userPseudoId": A unique identifier
 13445  // for tracking visitors. For example, this could be implemented with an HTTP
 13446  // cookie, which should be able to uniquely identify a visitor on a single
 13447  // device. This unique identifier should not change if the visitor logs in or
 13448  // out of the website. This field should NOT have a fixed value such as
 13449  // `unknown_visitor`. This should be the same identifier as
 13450  // UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be
 13451  // a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
 13452  // `INVALID_ARGUMENT` error is returned.
 13453  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) UserPseudoId(userPseudoId string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 13454  	c.urlParams_.Set("userPseudoId", userPseudoId)
 13455  	return c
 13456  }
 13457  
 13458  // Fields allows partial responses to be retrieved. See
 13459  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13460  // details.
 13461  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 13462  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13463  	return c
 13464  }
 13465  
 13466  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13467  // object's ETag matches the given value. This is useful for getting updates
 13468  // only after the object has changed since the last request.
 13469  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 13470  	c.ifNoneMatch_ = entityTag
 13471  	return c
 13472  }
 13473  
 13474  // Context sets the context to be used in this call's Do method.
 13475  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 13476  	c.ctx_ = ctx
 13477  	return c
 13478  }
 13479  
 13480  // Header returns a http.Header that can be modified by the caller to add
 13481  // headers to the request.
 13482  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Header() http.Header {
 13483  	if c.header_ == nil {
 13484  		c.header_ = make(http.Header)
 13485  	}
 13486  	return c.header_
 13487  }
 13488  
 13489  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) doRequest(alt string) (*http.Response, error) {
 13490  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13491  	if c.ifNoneMatch_ != "" {
 13492  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13493  	}
 13494  	var body io.Reader = nil
 13495  	c.urlParams_.Set("alt", alt)
 13496  	c.urlParams_.Set("prettyPrint", "false")
 13497  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+dataStore}:completeQuery")
 13498  	urls += "?" + c.urlParams_.Encode()
 13499  	req, err := http.NewRequest("GET", urls, body)
 13500  	if err != nil {
 13501  		return nil, err
 13502  	}
 13503  	req.Header = reqHeaders
 13504  	googleapi.Expand(req.URL, map[string]string{
 13505  		"dataStore": c.dataStore,
 13506  	})
 13507  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13508  }
 13509  
 13510  // Do executes the "discoveryengine.projects.locations.collections.dataStores.completeQuery" call.
 13511  // Any non-2xx status code is an error. Response headers are in either
 13512  // *GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse.ServerResponse.Header
 13513  //
 13514  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 13515  //
 13516  // Use googleapi.IsNotModified to check whether the returned error was because
 13517  // http.StatusNotModified was returned.
 13518  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse, error) {
 13519  	gensupport.SetOptions(c.urlParams_, opts...)
 13520  	res, err := c.doRequest("json")
 13521  	if res != nil && res.StatusCode == http.StatusNotModified {
 13522  		if res.Body != nil {
 13523  			res.Body.Close()
 13524  		}
 13525  		return nil, gensupport.WrapError(&googleapi.Error{
 13526  			Code:   res.StatusCode,
 13527  			Header: res.Header,
 13528  		})
 13529  	}
 13530  	if err != nil {
 13531  		return nil, err
 13532  	}
 13533  	defer googleapi.CloseBody(res)
 13534  	if err := googleapi.CheckResponse(res); err != nil {
 13535  		return nil, gensupport.WrapError(err)
 13536  	}
 13537  	ret := &GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse{
 13538  		ServerResponse: googleapi.ServerResponse{
 13539  			Header:         res.Header,
 13540  			HTTPStatusCode: res.StatusCode,
 13541  		},
 13542  	}
 13543  	target := &ret
 13544  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13545  		return nil, err
 13546  	}
 13547  	return ret, nil
 13548  }
 13549  
 13550  type ProjectsLocationsCollectionsDataStoresCreateCall struct {
 13551  	s                                          *Service
 13552  	parent                                     string
 13553  	googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore
 13554  	urlParams_                                 gensupport.URLParams
 13555  	ctx_                                       context.Context
 13556  	header_                                    http.Header
 13557  }
 13558  
 13559  // Create: Creates a DataStore. DataStore is for storing Documents. To serve
 13560  // these documents for Search, or Recommendation use case, an Engine needs to
 13561  // be created separately.
 13562  //
 13563  //   - parent: The parent resource name, such as
 13564  //     `projects/{project}/locations/{location}/collections/{collection}`.
 13565  func (r *ProjectsLocationsCollectionsDataStoresService) Create(parent string, googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore) *ProjectsLocationsCollectionsDataStoresCreateCall {
 13566  	c := &ProjectsLocationsCollectionsDataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13567  	c.parent = parent
 13568  	c.googleclouddiscoveryenginev1alphadatastore = googleclouddiscoveryenginev1alphadatastore
 13569  	return c
 13570  }
 13571  
 13572  // CreateAdvancedSiteSearch sets the optional parameter
 13573  // "createAdvancedSiteSearch": A boolean flag indicating whether user want to
 13574  // directly create an advanced data store for site search. If the data store is
 13575  // not configured as site search (GENERIC vertical and PUBLIC_WEBSITE
 13576  // content_config), this flag will be ignored.
 13577  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) CreateAdvancedSiteSearch(createAdvancedSiteSearch bool) *ProjectsLocationsCollectionsDataStoresCreateCall {
 13578  	c.urlParams_.Set("createAdvancedSiteSearch", fmt.Sprint(createAdvancedSiteSearch))
 13579  	return c
 13580  }
 13581  
 13582  // DataStoreId sets the optional parameter "dataStoreId": Required. The ID to
 13583  // use for the DataStore, which will become the final component of the
 13584  // DataStore's resource name. This field must conform to RFC-1034
 13585  // (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
 13586  // characters. Otherwise, an INVALID_ARGUMENT error is returned.
 13587  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) DataStoreId(dataStoreId string) *ProjectsLocationsCollectionsDataStoresCreateCall {
 13588  	c.urlParams_.Set("dataStoreId", dataStoreId)
 13589  	return c
 13590  }
 13591  
 13592  // Fields allows partial responses to be retrieved. See
 13593  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13594  // details.
 13595  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCreateCall {
 13596  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13597  	return c
 13598  }
 13599  
 13600  // Context sets the context to be used in this call's Do method.
 13601  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCreateCall {
 13602  	c.ctx_ = ctx
 13603  	return c
 13604  }
 13605  
 13606  // Header returns a http.Header that can be modified by the caller to add
 13607  // headers to the request.
 13608  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Header() http.Header {
 13609  	if c.header_ == nil {
 13610  		c.header_ = make(http.Header)
 13611  	}
 13612  	return c.header_
 13613  }
 13614  
 13615  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) doRequest(alt string) (*http.Response, error) {
 13616  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13617  	var body io.Reader = nil
 13618  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadatastore)
 13619  	if err != nil {
 13620  		return nil, err
 13621  	}
 13622  	c.urlParams_.Set("alt", alt)
 13623  	c.urlParams_.Set("prettyPrint", "false")
 13624  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/dataStores")
 13625  	urls += "?" + c.urlParams_.Encode()
 13626  	req, err := http.NewRequest("POST", urls, body)
 13627  	if err != nil {
 13628  		return nil, err
 13629  	}
 13630  	req.Header = reqHeaders
 13631  	googleapi.Expand(req.URL, map[string]string{
 13632  		"parent": c.parent,
 13633  	})
 13634  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13635  }
 13636  
 13637  // Do executes the "discoveryengine.projects.locations.collections.dataStores.create" call.
 13638  // Any non-2xx status code is an error. Response headers are in either
 13639  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13640  // returned at all) in error.(*googleapi.Error).Header. Use
 13641  // googleapi.IsNotModified to check whether the returned error was because
 13642  // http.StatusNotModified was returned.
 13643  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13644  	gensupport.SetOptions(c.urlParams_, opts...)
 13645  	res, err := c.doRequest("json")
 13646  	if res != nil && res.StatusCode == http.StatusNotModified {
 13647  		if res.Body != nil {
 13648  			res.Body.Close()
 13649  		}
 13650  		return nil, gensupport.WrapError(&googleapi.Error{
 13651  			Code:   res.StatusCode,
 13652  			Header: res.Header,
 13653  		})
 13654  	}
 13655  	if err != nil {
 13656  		return nil, err
 13657  	}
 13658  	defer googleapi.CloseBody(res)
 13659  	if err := googleapi.CheckResponse(res); err != nil {
 13660  		return nil, gensupport.WrapError(err)
 13661  	}
 13662  	ret := &GoogleLongrunningOperation{
 13663  		ServerResponse: googleapi.ServerResponse{
 13664  			Header:         res.Header,
 13665  			HTTPStatusCode: res.StatusCode,
 13666  		},
 13667  	}
 13668  	target := &ret
 13669  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13670  		return nil, err
 13671  	}
 13672  	return ret, nil
 13673  }
 13674  
 13675  type ProjectsLocationsCollectionsDataStoresDeleteCall struct {
 13676  	s          *Service
 13677  	name       string
 13678  	urlParams_ gensupport.URLParams
 13679  	ctx_       context.Context
 13680  	header_    http.Header
 13681  }
 13682  
 13683  // Delete: Deletes a DataStore.
 13684  //
 13685  //   - name: Full resource name of DataStore, such as
 13686  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 13687  //     ores/{data_store_id}`. If the caller does not have permission to delete
 13688  //     the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED
 13689  //     error is returned. If the DataStore to delete does not exist, a NOT_FOUND
 13690  //     error is returned.
 13691  func (r *ProjectsLocationsCollectionsDataStoresService) Delete(name string) *ProjectsLocationsCollectionsDataStoresDeleteCall {
 13692  	c := &ProjectsLocationsCollectionsDataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13693  	c.name = name
 13694  	return c
 13695  }
 13696  
 13697  // Fields allows partial responses to be retrieved. See
 13698  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13699  // details.
 13700  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresDeleteCall {
 13701  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13702  	return c
 13703  }
 13704  
 13705  // Context sets the context to be used in this call's Do method.
 13706  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresDeleteCall {
 13707  	c.ctx_ = ctx
 13708  	return c
 13709  }
 13710  
 13711  // Header returns a http.Header that can be modified by the caller to add
 13712  // headers to the request.
 13713  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Header() http.Header {
 13714  	if c.header_ == nil {
 13715  		c.header_ = make(http.Header)
 13716  	}
 13717  	return c.header_
 13718  }
 13719  
 13720  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 13721  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13722  	var body io.Reader = nil
 13723  	c.urlParams_.Set("alt", alt)
 13724  	c.urlParams_.Set("prettyPrint", "false")
 13725  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 13726  	urls += "?" + c.urlParams_.Encode()
 13727  	req, err := http.NewRequest("DELETE", urls, body)
 13728  	if err != nil {
 13729  		return nil, err
 13730  	}
 13731  	req.Header = reqHeaders
 13732  	googleapi.Expand(req.URL, map[string]string{
 13733  		"name": c.name,
 13734  	})
 13735  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13736  }
 13737  
 13738  // Do executes the "discoveryengine.projects.locations.collections.dataStores.delete" call.
 13739  // Any non-2xx status code is an error. Response headers are in either
 13740  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13741  // returned at all) in error.(*googleapi.Error).Header. Use
 13742  // googleapi.IsNotModified to check whether the returned error was because
 13743  // http.StatusNotModified was returned.
 13744  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13745  	gensupport.SetOptions(c.urlParams_, opts...)
 13746  	res, err := c.doRequest("json")
 13747  	if res != nil && res.StatusCode == http.StatusNotModified {
 13748  		if res.Body != nil {
 13749  			res.Body.Close()
 13750  		}
 13751  		return nil, gensupport.WrapError(&googleapi.Error{
 13752  			Code:   res.StatusCode,
 13753  			Header: res.Header,
 13754  		})
 13755  	}
 13756  	if err != nil {
 13757  		return nil, err
 13758  	}
 13759  	defer googleapi.CloseBody(res)
 13760  	if err := googleapi.CheckResponse(res); err != nil {
 13761  		return nil, gensupport.WrapError(err)
 13762  	}
 13763  	ret := &GoogleLongrunningOperation{
 13764  		ServerResponse: googleapi.ServerResponse{
 13765  			Header:         res.Header,
 13766  			HTTPStatusCode: res.StatusCode,
 13767  		},
 13768  	}
 13769  	target := &ret
 13770  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13771  		return nil, err
 13772  	}
 13773  	return ret, nil
 13774  }
 13775  
 13776  type ProjectsLocationsCollectionsDataStoresGetCall struct {
 13777  	s            *Service
 13778  	name         string
 13779  	urlParams_   gensupport.URLParams
 13780  	ifNoneMatch_ string
 13781  	ctx_         context.Context
 13782  	header_      http.Header
 13783  }
 13784  
 13785  // Get: Gets a DataStore.
 13786  //
 13787  //   - name: Full resource name of DataStore, such as
 13788  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 13789  //     ores/{data_store_id}`. If the caller does not have permission to access
 13790  //     the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED
 13791  //     error is returned. If the requested DataStore does not exist, a NOT_FOUND
 13792  //     error is returned.
 13793  func (r *ProjectsLocationsCollectionsDataStoresService) Get(name string) *ProjectsLocationsCollectionsDataStoresGetCall {
 13794  	c := &ProjectsLocationsCollectionsDataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13795  	c.name = name
 13796  	return c
 13797  }
 13798  
 13799  // Fields allows partial responses to be retrieved. See
 13800  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13801  // details.
 13802  func (c *ProjectsLocationsCollectionsDataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetCall {
 13803  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13804  	return c
 13805  }
 13806  
 13807  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13808  // object's ETag matches the given value. This is useful for getting updates
 13809  // only after the object has changed since the last request.
 13810  func (c *ProjectsLocationsCollectionsDataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetCall {
 13811  	c.ifNoneMatch_ = entityTag
 13812  	return c
 13813  }
 13814  
 13815  // Context sets the context to be used in this call's Do method.
 13816  func (c *ProjectsLocationsCollectionsDataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetCall {
 13817  	c.ctx_ = ctx
 13818  	return c
 13819  }
 13820  
 13821  // Header returns a http.Header that can be modified by the caller to add
 13822  // headers to the request.
 13823  func (c *ProjectsLocationsCollectionsDataStoresGetCall) Header() http.Header {
 13824  	if c.header_ == nil {
 13825  		c.header_ = make(http.Header)
 13826  	}
 13827  	return c.header_
 13828  }
 13829  
 13830  func (c *ProjectsLocationsCollectionsDataStoresGetCall) doRequest(alt string) (*http.Response, error) {
 13831  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13832  	if c.ifNoneMatch_ != "" {
 13833  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13834  	}
 13835  	var body io.Reader = nil
 13836  	c.urlParams_.Set("alt", alt)
 13837  	c.urlParams_.Set("prettyPrint", "false")
 13838  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 13839  	urls += "?" + c.urlParams_.Encode()
 13840  	req, err := http.NewRequest("GET", urls, body)
 13841  	if err != nil {
 13842  		return nil, err
 13843  	}
 13844  	req.Header = reqHeaders
 13845  	googleapi.Expand(req.URL, map[string]string{
 13846  		"name": c.name,
 13847  	})
 13848  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13849  }
 13850  
 13851  // Do executes the "discoveryengine.projects.locations.collections.dataStores.get" call.
 13852  // Any non-2xx status code is an error. Response headers are in either
 13853  // *GoogleCloudDiscoveryengineV1alphaDataStore.ServerResponse.Header or (if a
 13854  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13855  // googleapi.IsNotModified to check whether the returned error was because
 13856  // http.StatusNotModified was returned.
 13857  func (c *ProjectsLocationsCollectionsDataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDataStore, error) {
 13858  	gensupport.SetOptions(c.urlParams_, opts...)
 13859  	res, err := c.doRequest("json")
 13860  	if res != nil && res.StatusCode == http.StatusNotModified {
 13861  		if res.Body != nil {
 13862  			res.Body.Close()
 13863  		}
 13864  		return nil, gensupport.WrapError(&googleapi.Error{
 13865  			Code:   res.StatusCode,
 13866  			Header: res.Header,
 13867  		})
 13868  	}
 13869  	if err != nil {
 13870  		return nil, err
 13871  	}
 13872  	defer googleapi.CloseBody(res)
 13873  	if err := googleapi.CheckResponse(res); err != nil {
 13874  		return nil, gensupport.WrapError(err)
 13875  	}
 13876  	ret := &GoogleCloudDiscoveryengineV1alphaDataStore{
 13877  		ServerResponse: googleapi.ServerResponse{
 13878  			Header:         res.Header,
 13879  			HTTPStatusCode: res.StatusCode,
 13880  		},
 13881  	}
 13882  	target := &ret
 13883  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13884  		return nil, err
 13885  	}
 13886  	return ret, nil
 13887  }
 13888  
 13889  type ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall struct {
 13890  	s            *Service
 13891  	name         string
 13892  	urlParams_   gensupport.URLParams
 13893  	ifNoneMatch_ string
 13894  	ctx_         context.Context
 13895  	header_      http.Header
 13896  }
 13897  
 13898  // GetDocumentProcessingConfig: Gets a DocumentProcessingConfig.
 13899  //
 13900  //   - name: Full DocumentProcessingConfig resource name. Format:
 13901  //     `projects/{project_number}/locations/{location_id}/collections/{collection_
 13902  //     id}/dataStores/{data_store_id}/documentProcessingConfig`.
 13903  func (r *ProjectsLocationsCollectionsDataStoresService) GetDocumentProcessingConfig(name string) *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall {
 13904  	c := &ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13905  	c.name = name
 13906  	return c
 13907  }
 13908  
 13909  // Fields allows partial responses to be retrieved. See
 13910  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13911  // details.
 13912  func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall {
 13913  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13914  	return c
 13915  }
 13916  
 13917  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13918  // object's ETag matches the given value. This is useful for getting updates
 13919  // only after the object has changed since the last request.
 13920  func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall {
 13921  	c.ifNoneMatch_ = entityTag
 13922  	return c
 13923  }
 13924  
 13925  // Context sets the context to be used in this call's Do method.
 13926  func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall {
 13927  	c.ctx_ = ctx
 13928  	return c
 13929  }
 13930  
 13931  // Header returns a http.Header that can be modified by the caller to add
 13932  // headers to the request.
 13933  func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) Header() http.Header {
 13934  	if c.header_ == nil {
 13935  		c.header_ = make(http.Header)
 13936  	}
 13937  	return c.header_
 13938  }
 13939  
 13940  func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) doRequest(alt string) (*http.Response, error) {
 13941  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13942  	if c.ifNoneMatch_ != "" {
 13943  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13944  	}
 13945  	var body io.Reader = nil
 13946  	c.urlParams_.Set("alt", alt)
 13947  	c.urlParams_.Set("prettyPrint", "false")
 13948  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 13949  	urls += "?" + c.urlParams_.Encode()
 13950  	req, err := http.NewRequest("GET", urls, body)
 13951  	if err != nil {
 13952  		return nil, err
 13953  	}
 13954  	req.Header = reqHeaders
 13955  	googleapi.Expand(req.URL, map[string]string{
 13956  		"name": c.name,
 13957  	})
 13958  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13959  }
 13960  
 13961  // Do executes the "discoveryengine.projects.locations.collections.dataStores.getDocumentProcessingConfig" call.
 13962  // Any non-2xx status code is an error. Response headers are in either
 13963  // *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig.ServerResponse.Hea
 13964  // der or (if a response was returned at all) in
 13965  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 13966  // whether the returned error was because http.StatusNotModified was returned.
 13967  func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig, error) {
 13968  	gensupport.SetOptions(c.urlParams_, opts...)
 13969  	res, err := c.doRequest("json")
 13970  	if res != nil && res.StatusCode == http.StatusNotModified {
 13971  		if res.Body != nil {
 13972  			res.Body.Close()
 13973  		}
 13974  		return nil, gensupport.WrapError(&googleapi.Error{
 13975  			Code:   res.StatusCode,
 13976  			Header: res.Header,
 13977  		})
 13978  	}
 13979  	if err != nil {
 13980  		return nil, err
 13981  	}
 13982  	defer googleapi.CloseBody(res)
 13983  	if err := googleapi.CheckResponse(res); err != nil {
 13984  		return nil, gensupport.WrapError(err)
 13985  	}
 13986  	ret := &GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig{
 13987  		ServerResponse: googleapi.ServerResponse{
 13988  			Header:         res.Header,
 13989  			HTTPStatusCode: res.StatusCode,
 13990  		},
 13991  	}
 13992  	target := &ret
 13993  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13994  		return nil, err
 13995  	}
 13996  	return ret, nil
 13997  }
 13998  
 13999  type ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall struct {
 14000  	s            *Service
 14001  	name         string
 14002  	urlParams_   gensupport.URLParams
 14003  	ifNoneMatch_ string
 14004  	ctx_         context.Context
 14005  	header_      http.Header
 14006  }
 14007  
 14008  // GetSiteSearchEngine: Gets the SiteSearchEngine.
 14009  //
 14010  //   - name: Resource name of SiteSearchEngine, such as
 14011  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 14012  //     s/{data_store}/siteSearchEngine`. If the caller does not have permission
 14013  //     to access the [SiteSearchEngine], regardless of whether or not it exists,
 14014  //     a PERMISSION_DENIED error is returned.
 14015  func (r *ProjectsLocationsCollectionsDataStoresService) GetSiteSearchEngine(name string) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
 14016  	c := &ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14017  	c.name = name
 14018  	return c
 14019  }
 14020  
 14021  // Fields allows partial responses to be retrieved. See
 14022  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14023  // details.
 14024  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
 14025  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14026  	return c
 14027  }
 14028  
 14029  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14030  // object's ETag matches the given value. This is useful for getting updates
 14031  // only after the object has changed since the last request.
 14032  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
 14033  	c.ifNoneMatch_ = entityTag
 14034  	return c
 14035  }
 14036  
 14037  // Context sets the context to be used in this call's Do method.
 14038  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
 14039  	c.ctx_ = ctx
 14040  	return c
 14041  }
 14042  
 14043  // Header returns a http.Header that can be modified by the caller to add
 14044  // headers to the request.
 14045  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Header() http.Header {
 14046  	if c.header_ == nil {
 14047  		c.header_ = make(http.Header)
 14048  	}
 14049  	return c.header_
 14050  }
 14051  
 14052  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) doRequest(alt string) (*http.Response, error) {
 14053  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14054  	if c.ifNoneMatch_ != "" {
 14055  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14056  	}
 14057  	var body io.Reader = nil
 14058  	c.urlParams_.Set("alt", alt)
 14059  	c.urlParams_.Set("prettyPrint", "false")
 14060  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 14061  	urls += "?" + c.urlParams_.Encode()
 14062  	req, err := http.NewRequest("GET", urls, body)
 14063  	if err != nil {
 14064  		return nil, err
 14065  	}
 14066  	req.Header = reqHeaders
 14067  	googleapi.Expand(req.URL, map[string]string{
 14068  		"name": c.name,
 14069  	})
 14070  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14071  }
 14072  
 14073  // Do executes the "discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine" call.
 14074  // Any non-2xx status code is an error. Response headers are in either
 14075  // *GoogleCloudDiscoveryengineV1alphaSiteSearchEngine.ServerResponse.Header or
 14076  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 14077  // googleapi.IsNotModified to check whether the returned error was because
 14078  // http.StatusNotModified was returned.
 14079  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSiteSearchEngine, error) {
 14080  	gensupport.SetOptions(c.urlParams_, opts...)
 14081  	res, err := c.doRequest("json")
 14082  	if res != nil && res.StatusCode == http.StatusNotModified {
 14083  		if res.Body != nil {
 14084  			res.Body.Close()
 14085  		}
 14086  		return nil, gensupport.WrapError(&googleapi.Error{
 14087  			Code:   res.StatusCode,
 14088  			Header: res.Header,
 14089  		})
 14090  	}
 14091  	if err != nil {
 14092  		return nil, err
 14093  	}
 14094  	defer googleapi.CloseBody(res)
 14095  	if err := googleapi.CheckResponse(res); err != nil {
 14096  		return nil, gensupport.WrapError(err)
 14097  	}
 14098  	ret := &GoogleCloudDiscoveryengineV1alphaSiteSearchEngine{
 14099  		ServerResponse: googleapi.ServerResponse{
 14100  			Header:         res.Header,
 14101  			HTTPStatusCode: res.StatusCode,
 14102  		},
 14103  	}
 14104  	target := &ret
 14105  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14106  		return nil, err
 14107  	}
 14108  	return ret, nil
 14109  }
 14110  
 14111  type ProjectsLocationsCollectionsDataStoresListCall struct {
 14112  	s            *Service
 14113  	parent       string
 14114  	urlParams_   gensupport.URLParams
 14115  	ifNoneMatch_ string
 14116  	ctx_         context.Context
 14117  	header_      http.Header
 14118  }
 14119  
 14120  // List: Lists all the DataStores associated with the project.
 14121  //
 14122  //   - parent: The parent branch resource name, such as
 14123  //     `projects/{project}/locations/{location}/collections/{collection_id}`. If
 14124  //     the caller does not have permission to list DataStores under this
 14125  //     location, regardless of whether or not this data store exists, a
 14126  //     PERMISSION_DENIED error is returned.
 14127  func (r *ProjectsLocationsCollectionsDataStoresService) List(parent string) *ProjectsLocationsCollectionsDataStoresListCall {
 14128  	c := &ProjectsLocationsCollectionsDataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14129  	c.parent = parent
 14130  	return c
 14131  }
 14132  
 14133  // Filter sets the optional parameter "filter": Filter by solution type . For
 14134  // example: filter = 'solution_type:SOLUTION_TYPE_SEARCH'
 14135  func (c *ProjectsLocationsCollectionsDataStoresListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresListCall {
 14136  	c.urlParams_.Set("filter", filter)
 14137  	return c
 14138  }
 14139  
 14140  // PageSize sets the optional parameter "pageSize": Maximum number of
 14141  // DataStores to return. If unspecified, defaults to 10. The maximum allowed
 14142  // value is 50. Values above 50 will be coerced to 50. If this field is
 14143  // negative, an INVALID_ARGUMENT is returned.
 14144  func (c *ProjectsLocationsCollectionsDataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresListCall {
 14145  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14146  	return c
 14147  }
 14148  
 14149  // PageToken sets the optional parameter "pageToken": A page token
 14150  // ListDataStoresResponse.next_page_token, received from a previous
 14151  // DataStoreService.ListDataStores call. Provide this to retrieve the
 14152  // subsequent page. When paginating, all other parameters provided to
 14153  // DataStoreService.ListDataStores must match the call that provided the page
 14154  // token. Otherwise, an INVALID_ARGUMENT error is returned.
 14155  func (c *ProjectsLocationsCollectionsDataStoresListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresListCall {
 14156  	c.urlParams_.Set("pageToken", pageToken)
 14157  	return c
 14158  }
 14159  
 14160  // Fields allows partial responses to be retrieved. See
 14161  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14162  // details.
 14163  func (c *ProjectsLocationsCollectionsDataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresListCall {
 14164  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14165  	return c
 14166  }
 14167  
 14168  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14169  // object's ETag matches the given value. This is useful for getting updates
 14170  // only after the object has changed since the last request.
 14171  func (c *ProjectsLocationsCollectionsDataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresListCall {
 14172  	c.ifNoneMatch_ = entityTag
 14173  	return c
 14174  }
 14175  
 14176  // Context sets the context to be used in this call's Do method.
 14177  func (c *ProjectsLocationsCollectionsDataStoresListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresListCall {
 14178  	c.ctx_ = ctx
 14179  	return c
 14180  }
 14181  
 14182  // Header returns a http.Header that can be modified by the caller to add
 14183  // headers to the request.
 14184  func (c *ProjectsLocationsCollectionsDataStoresListCall) Header() http.Header {
 14185  	if c.header_ == nil {
 14186  		c.header_ = make(http.Header)
 14187  	}
 14188  	return c.header_
 14189  }
 14190  
 14191  func (c *ProjectsLocationsCollectionsDataStoresListCall) doRequest(alt string) (*http.Response, error) {
 14192  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14193  	if c.ifNoneMatch_ != "" {
 14194  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14195  	}
 14196  	var body io.Reader = nil
 14197  	c.urlParams_.Set("alt", alt)
 14198  	c.urlParams_.Set("prettyPrint", "false")
 14199  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/dataStores")
 14200  	urls += "?" + c.urlParams_.Encode()
 14201  	req, err := http.NewRequest("GET", urls, body)
 14202  	if err != nil {
 14203  		return nil, err
 14204  	}
 14205  	req.Header = reqHeaders
 14206  	googleapi.Expand(req.URL, map[string]string{
 14207  		"parent": c.parent,
 14208  	})
 14209  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14210  }
 14211  
 14212  // Do executes the "discoveryengine.projects.locations.collections.dataStores.list" call.
 14213  // Any non-2xx status code is an error. Response headers are in either
 14214  // *GoogleCloudDiscoveryengineV1alphaListDataStoresResponse.ServerResponse.Heade
 14215  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 14216  // Use googleapi.IsNotModified to check whether the returned error was because
 14217  // http.StatusNotModified was returned.
 14218  func (c *ProjectsLocationsCollectionsDataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListDataStoresResponse, error) {
 14219  	gensupport.SetOptions(c.urlParams_, opts...)
 14220  	res, err := c.doRequest("json")
 14221  	if res != nil && res.StatusCode == http.StatusNotModified {
 14222  		if res.Body != nil {
 14223  			res.Body.Close()
 14224  		}
 14225  		return nil, gensupport.WrapError(&googleapi.Error{
 14226  			Code:   res.StatusCode,
 14227  			Header: res.Header,
 14228  		})
 14229  	}
 14230  	if err != nil {
 14231  		return nil, err
 14232  	}
 14233  	defer googleapi.CloseBody(res)
 14234  	if err := googleapi.CheckResponse(res); err != nil {
 14235  		return nil, gensupport.WrapError(err)
 14236  	}
 14237  	ret := &GoogleCloudDiscoveryengineV1alphaListDataStoresResponse{
 14238  		ServerResponse: googleapi.ServerResponse{
 14239  			Header:         res.Header,
 14240  			HTTPStatusCode: res.StatusCode,
 14241  		},
 14242  	}
 14243  	target := &ret
 14244  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14245  		return nil, err
 14246  	}
 14247  	return ret, nil
 14248  }
 14249  
 14250  // Pages invokes f for each page of results.
 14251  // A non-nil error returned from f will halt the iteration.
 14252  // The provided context supersedes any context provided to the Context method.
 14253  func (c *ProjectsLocationsCollectionsDataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListDataStoresResponse) error) error {
 14254  	c.ctx_ = ctx
 14255  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14256  	for {
 14257  		x, err := c.Do()
 14258  		if err != nil {
 14259  			return err
 14260  		}
 14261  		if err := f(x); err != nil {
 14262  			return err
 14263  		}
 14264  		if x.NextPageToken == "" {
 14265  			return nil
 14266  		}
 14267  		c.PageToken(x.NextPageToken)
 14268  	}
 14269  }
 14270  
 14271  type ProjectsLocationsCollectionsDataStoresPatchCall struct {
 14272  	s                                          *Service
 14273  	name                                       string
 14274  	googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore
 14275  	urlParams_                                 gensupport.URLParams
 14276  	ctx_                                       context.Context
 14277  	header_                                    http.Header
 14278  }
 14279  
 14280  // Patch: Updates a DataStore
 14281  //
 14282  //   - name: Immutable. The full resource name of the data store. Format:
 14283  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 14284  //     ores/{data_store_id}`. This field must be a UTF-8 encoded string with a
 14285  //     length limit of 1024 characters.
 14286  func (r *ProjectsLocationsCollectionsDataStoresService) Patch(name string, googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore) *ProjectsLocationsCollectionsDataStoresPatchCall {
 14287  	c := &ProjectsLocationsCollectionsDataStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14288  	c.name = name
 14289  	c.googleclouddiscoveryenginev1alphadatastore = googleclouddiscoveryenginev1alphadatastore
 14290  	return c
 14291  }
 14292  
 14293  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 14294  // in the provided DataStore to update. If an unsupported or unknown field is
 14295  // provided, an INVALID_ARGUMENT error is returned.
 14296  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresPatchCall {
 14297  	c.urlParams_.Set("updateMask", updateMask)
 14298  	return c
 14299  }
 14300  
 14301  // Fields allows partial responses to be retrieved. See
 14302  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14303  // details.
 14304  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresPatchCall {
 14305  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14306  	return c
 14307  }
 14308  
 14309  // Context sets the context to be used in this call's Do method.
 14310  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresPatchCall {
 14311  	c.ctx_ = ctx
 14312  	return c
 14313  }
 14314  
 14315  // Header returns a http.Header that can be modified by the caller to add
 14316  // headers to the request.
 14317  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Header() http.Header {
 14318  	if c.header_ == nil {
 14319  		c.header_ = make(http.Header)
 14320  	}
 14321  	return c.header_
 14322  }
 14323  
 14324  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) doRequest(alt string) (*http.Response, error) {
 14325  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14326  	var body io.Reader = nil
 14327  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadatastore)
 14328  	if err != nil {
 14329  		return nil, err
 14330  	}
 14331  	c.urlParams_.Set("alt", alt)
 14332  	c.urlParams_.Set("prettyPrint", "false")
 14333  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 14334  	urls += "?" + c.urlParams_.Encode()
 14335  	req, err := http.NewRequest("PATCH", urls, body)
 14336  	if err != nil {
 14337  		return nil, err
 14338  	}
 14339  	req.Header = reqHeaders
 14340  	googleapi.Expand(req.URL, map[string]string{
 14341  		"name": c.name,
 14342  	})
 14343  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14344  }
 14345  
 14346  // Do executes the "discoveryengine.projects.locations.collections.dataStores.patch" call.
 14347  // Any non-2xx status code is an error. Response headers are in either
 14348  // *GoogleCloudDiscoveryengineV1alphaDataStore.ServerResponse.Header or (if a
 14349  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14350  // googleapi.IsNotModified to check whether the returned error was because
 14351  // http.StatusNotModified was returned.
 14352  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDataStore, error) {
 14353  	gensupport.SetOptions(c.urlParams_, opts...)
 14354  	res, err := c.doRequest("json")
 14355  	if res != nil && res.StatusCode == http.StatusNotModified {
 14356  		if res.Body != nil {
 14357  			res.Body.Close()
 14358  		}
 14359  		return nil, gensupport.WrapError(&googleapi.Error{
 14360  			Code:   res.StatusCode,
 14361  			Header: res.Header,
 14362  		})
 14363  	}
 14364  	if err != nil {
 14365  		return nil, err
 14366  	}
 14367  	defer googleapi.CloseBody(res)
 14368  	if err := googleapi.CheckResponse(res); err != nil {
 14369  		return nil, gensupport.WrapError(err)
 14370  	}
 14371  	ret := &GoogleCloudDiscoveryengineV1alphaDataStore{
 14372  		ServerResponse: googleapi.ServerResponse{
 14373  			Header:         res.Header,
 14374  			HTTPStatusCode: res.StatusCode,
 14375  		},
 14376  	}
 14377  	target := &ret
 14378  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14379  		return nil, err
 14380  	}
 14381  	return ret, nil
 14382  }
 14383  
 14384  type ProjectsLocationsCollectionsDataStoresTrainCustomModelCall struct {
 14385  	s                                                        *Service
 14386  	dataStore                                                string
 14387  	googleclouddiscoveryenginev1alphatraincustommodelrequest *GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest
 14388  	urlParams_                                               gensupport.URLParams
 14389  	ctx_                                                     context.Context
 14390  	header_                                                  http.Header
 14391  }
 14392  
 14393  // TrainCustomModel: Trains a custom model.
 14394  //
 14395  //   - dataStore: The resource name of the Data Store, such as
 14396  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 14397  //     ult_data_store`. This field is used to identify the data store where to
 14398  //     train the models.
 14399  func (r *ProjectsLocationsCollectionsDataStoresService) TrainCustomModel(dataStore string, googleclouddiscoveryenginev1alphatraincustommodelrequest *GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest) *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall {
 14400  	c := &ProjectsLocationsCollectionsDataStoresTrainCustomModelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14401  	c.dataStore = dataStore
 14402  	c.googleclouddiscoveryenginev1alphatraincustommodelrequest = googleclouddiscoveryenginev1alphatraincustommodelrequest
 14403  	return c
 14404  }
 14405  
 14406  // Fields allows partial responses to be retrieved. See
 14407  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14408  // details.
 14409  func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall {
 14410  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14411  	return c
 14412  }
 14413  
 14414  // Context sets the context to be used in this call's Do method.
 14415  func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall {
 14416  	c.ctx_ = ctx
 14417  	return c
 14418  }
 14419  
 14420  // Header returns a http.Header that can be modified by the caller to add
 14421  // headers to the request.
 14422  func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Header() http.Header {
 14423  	if c.header_ == nil {
 14424  		c.header_ = make(http.Header)
 14425  	}
 14426  	return c.header_
 14427  }
 14428  
 14429  func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) doRequest(alt string) (*http.Response, error) {
 14430  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14431  	var body io.Reader = nil
 14432  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatraincustommodelrequest)
 14433  	if err != nil {
 14434  		return nil, err
 14435  	}
 14436  	c.urlParams_.Set("alt", alt)
 14437  	c.urlParams_.Set("prettyPrint", "false")
 14438  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+dataStore}:trainCustomModel")
 14439  	urls += "?" + c.urlParams_.Encode()
 14440  	req, err := http.NewRequest("POST", urls, body)
 14441  	if err != nil {
 14442  		return nil, err
 14443  	}
 14444  	req.Header = reqHeaders
 14445  	googleapi.Expand(req.URL, map[string]string{
 14446  		"dataStore": c.dataStore,
 14447  	})
 14448  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14449  }
 14450  
 14451  // Do executes the "discoveryengine.projects.locations.collections.dataStores.trainCustomModel" call.
 14452  // Any non-2xx status code is an error. Response headers are in either
 14453  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14454  // returned at all) in error.(*googleapi.Error).Header. Use
 14455  // googleapi.IsNotModified to check whether the returned error was because
 14456  // http.StatusNotModified was returned.
 14457  func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14458  	gensupport.SetOptions(c.urlParams_, opts...)
 14459  	res, err := c.doRequest("json")
 14460  	if res != nil && res.StatusCode == http.StatusNotModified {
 14461  		if res.Body != nil {
 14462  			res.Body.Close()
 14463  		}
 14464  		return nil, gensupport.WrapError(&googleapi.Error{
 14465  			Code:   res.StatusCode,
 14466  			Header: res.Header,
 14467  		})
 14468  	}
 14469  	if err != nil {
 14470  		return nil, err
 14471  	}
 14472  	defer googleapi.CloseBody(res)
 14473  	if err := googleapi.CheckResponse(res); err != nil {
 14474  		return nil, gensupport.WrapError(err)
 14475  	}
 14476  	ret := &GoogleLongrunningOperation{
 14477  		ServerResponse: googleapi.ServerResponse{
 14478  			Header:         res.Header,
 14479  			HTTPStatusCode: res.StatusCode,
 14480  		},
 14481  	}
 14482  	target := &ret
 14483  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14484  		return nil, err
 14485  	}
 14486  	return ret, nil
 14487  }
 14488  
 14489  type ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall struct {
 14490  	s                                                         *Service
 14491  	name                                                      string
 14492  	googleclouddiscoveryenginev1alphadocumentprocessingconfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
 14493  	urlParams_                                                gensupport.URLParams
 14494  	ctx_                                                      context.Context
 14495  	header_                                                   http.Header
 14496  }
 14497  
 14498  // UpdateDocumentProcessingConfig: Updates the DocumentProcessingConfig.
 14499  // DocumentProcessingConfig is a singleon resource of DataStore. It's empty
 14500  // when DataStore is created. The first call to this method will set up
 14501  // DocumentProcessingConfig.
 14502  //
 14503  //   - name: The full resource name of the Document Processing Config. Format:
 14504  //     `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig
 14505  //     `.
 14506  func (r *ProjectsLocationsCollectionsDataStoresService) UpdateDocumentProcessingConfig(name string, googleclouddiscoveryenginev1alphadocumentprocessingconfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig) *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall {
 14507  	c := &ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14508  	c.name = name
 14509  	c.googleclouddiscoveryenginev1alphadocumentprocessingconfig = googleclouddiscoveryenginev1alphadocumentprocessingconfig
 14510  	return c
 14511  }
 14512  
 14513  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 14514  // in the provided DocumentProcessingConfig to update. The following are the
 14515  // only supported fields: * DocumentProcessingConfig.ocr_config If not set, all
 14516  // supported fields are updated.
 14517  func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall {
 14518  	c.urlParams_.Set("updateMask", updateMask)
 14519  	return c
 14520  }
 14521  
 14522  // Fields allows partial responses to be retrieved. See
 14523  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14524  // details.
 14525  func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall {
 14526  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14527  	return c
 14528  }
 14529  
 14530  // Context sets the context to be used in this call's Do method.
 14531  func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall {
 14532  	c.ctx_ = ctx
 14533  	return c
 14534  }
 14535  
 14536  // Header returns a http.Header that can be modified by the caller to add
 14537  // headers to the request.
 14538  func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall) Header() http.Header {
 14539  	if c.header_ == nil {
 14540  		c.header_ = make(http.Header)
 14541  	}
 14542  	return c.header_
 14543  }
 14544  
 14545  func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall) doRequest(alt string) (*http.Response, error) {
 14546  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14547  	var body io.Reader = nil
 14548  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadocumentprocessingconfig)
 14549  	if err != nil {
 14550  		return nil, err
 14551  	}
 14552  	c.urlParams_.Set("alt", alt)
 14553  	c.urlParams_.Set("prettyPrint", "false")
 14554  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 14555  	urls += "?" + c.urlParams_.Encode()
 14556  	req, err := http.NewRequest("PATCH", 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.updateDocumentProcessingConfig" call.
 14568  // Any non-2xx status code is an error. Response headers are in either
 14569  // *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig.ServerResponse.Hea
 14570  // der or (if a response was returned at all) in
 14571  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14572  // whether the returned error was because http.StatusNotModified was returned.
 14573  func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig, 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 := &GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig{
 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  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall struct {
 14606  	s                                         *Service
 14607  	parent                                    string
 14608  	googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument
 14609  	urlParams_                                gensupport.URLParams
 14610  	ctx_                                      context.Context
 14611  	header_                                   http.Header
 14612  }
 14613  
 14614  // Create: Creates a Document.
 14615  //
 14616  //   - parent: The parent resource name, such as
 14617  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 14618  //     s/{data_store}/branches/{branch}`.
 14619  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Create(parent string, googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
 14620  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14621  	c.parent = parent
 14622  	c.googleclouddiscoveryenginev1alphadocument = googleclouddiscoveryenginev1alphadocument
 14623  	return c
 14624  }
 14625  
 14626  // DocumentId sets the optional parameter "documentId": Required. The ID to use
 14627  // for the Document, which will become the final component of the
 14628  // Document.name. If the caller does not have permission to create the
 14629  // Document, regardless of whether or not it exists, a `PERMISSION_DENIED`
 14630  // error is returned. This field must be unique among all Documents with the
 14631  // same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field
 14632  // must conform to RFC-1034 (https://tools.ietf.org/html/rfc1034) standard with
 14633  // a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is
 14634  // returned.
 14635  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) DocumentId(documentId string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
 14636  	c.urlParams_.Set("documentId", documentId)
 14637  	return c
 14638  }
 14639  
 14640  // Fields allows partial responses to be retrieved. See
 14641  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14642  // details.
 14643  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
 14644  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14645  	return c
 14646  }
 14647  
 14648  // Context sets the context to be used in this call's Do method.
 14649  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
 14650  	c.ctx_ = ctx
 14651  	return c
 14652  }
 14653  
 14654  // Header returns a http.Header that can be modified by the caller to add
 14655  // headers to the request.
 14656  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Header() http.Header {
 14657  	if c.header_ == nil {
 14658  		c.header_ = make(http.Header)
 14659  	}
 14660  	return c.header_
 14661  }
 14662  
 14663  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
 14664  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14665  	var body io.Reader = nil
 14666  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadocument)
 14667  	if err != nil {
 14668  		return nil, err
 14669  	}
 14670  	c.urlParams_.Set("alt", alt)
 14671  	c.urlParams_.Set("prettyPrint", "false")
 14672  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents")
 14673  	urls += "?" + c.urlParams_.Encode()
 14674  	req, err := http.NewRequest("POST", urls, body)
 14675  	if err != nil {
 14676  		return nil, err
 14677  	}
 14678  	req.Header = reqHeaders
 14679  	googleapi.Expand(req.URL, map[string]string{
 14680  		"parent": c.parent,
 14681  	})
 14682  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14683  }
 14684  
 14685  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.create" call.
 14686  // Any non-2xx status code is an error. Response headers are in either
 14687  // *GoogleCloudDiscoveryengineV1alphaDocument.ServerResponse.Header or (if a
 14688  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14689  // googleapi.IsNotModified to check whether the returned error was because
 14690  // http.StatusNotModified was returned.
 14691  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocument, error) {
 14692  	gensupport.SetOptions(c.urlParams_, opts...)
 14693  	res, err := c.doRequest("json")
 14694  	if res != nil && res.StatusCode == http.StatusNotModified {
 14695  		if res.Body != nil {
 14696  			res.Body.Close()
 14697  		}
 14698  		return nil, gensupport.WrapError(&googleapi.Error{
 14699  			Code:   res.StatusCode,
 14700  			Header: res.Header,
 14701  		})
 14702  	}
 14703  	if err != nil {
 14704  		return nil, err
 14705  	}
 14706  	defer googleapi.CloseBody(res)
 14707  	if err := googleapi.CheckResponse(res); err != nil {
 14708  		return nil, gensupport.WrapError(err)
 14709  	}
 14710  	ret := &GoogleCloudDiscoveryengineV1alphaDocument{
 14711  		ServerResponse: googleapi.ServerResponse{
 14712  			Header:         res.Header,
 14713  			HTTPStatusCode: res.StatusCode,
 14714  		},
 14715  	}
 14716  	target := &ret
 14717  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14718  		return nil, err
 14719  	}
 14720  	return ret, nil
 14721  }
 14722  
 14723  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall struct {
 14724  	s          *Service
 14725  	name       string
 14726  	urlParams_ gensupport.URLParams
 14727  	ctx_       context.Context
 14728  	header_    http.Header
 14729  }
 14730  
 14731  // Delete: Deletes a Document.
 14732  //
 14733  //   - name: Full resource name of Document, such as
 14734  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 14735  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 14736  //     not have permission to delete the Document, regardless of whether or not
 14737  //     it exists, a `PERMISSION_DENIED` error is returned. If the Document to
 14738  //     delete does not exist, a `NOT_FOUND` error is returned.
 14739  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
 14740  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14741  	c.name = name
 14742  	return c
 14743  }
 14744  
 14745  // Fields allows partial responses to be retrieved. See
 14746  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14747  // details.
 14748  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
 14749  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14750  	return c
 14751  }
 14752  
 14753  // Context sets the context to be used in this call's Do method.
 14754  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
 14755  	c.ctx_ = ctx
 14756  	return c
 14757  }
 14758  
 14759  // Header returns a http.Header that can be modified by the caller to add
 14760  // headers to the request.
 14761  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Header() http.Header {
 14762  	if c.header_ == nil {
 14763  		c.header_ = make(http.Header)
 14764  	}
 14765  	return c.header_
 14766  }
 14767  
 14768  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 14769  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14770  	var body io.Reader = nil
 14771  	c.urlParams_.Set("alt", alt)
 14772  	c.urlParams_.Set("prettyPrint", "false")
 14773  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 14774  	urls += "?" + c.urlParams_.Encode()
 14775  	req, err := http.NewRequest("DELETE", urls, body)
 14776  	if err != nil {
 14777  		return nil, err
 14778  	}
 14779  	req.Header = reqHeaders
 14780  	googleapi.Expand(req.URL, map[string]string{
 14781  		"name": c.name,
 14782  	})
 14783  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14784  }
 14785  
 14786  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.delete" call.
 14787  // Any non-2xx status code is an error. Response headers are in either
 14788  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 14789  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 14790  // check whether the returned error was because http.StatusNotModified was
 14791  // returned.
 14792  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 14793  	gensupport.SetOptions(c.urlParams_, opts...)
 14794  	res, err := c.doRequest("json")
 14795  	if res != nil && res.StatusCode == http.StatusNotModified {
 14796  		if res.Body != nil {
 14797  			res.Body.Close()
 14798  		}
 14799  		return nil, gensupport.WrapError(&googleapi.Error{
 14800  			Code:   res.StatusCode,
 14801  			Header: res.Header,
 14802  		})
 14803  	}
 14804  	if err != nil {
 14805  		return nil, err
 14806  	}
 14807  	defer googleapi.CloseBody(res)
 14808  	if err := googleapi.CheckResponse(res); err != nil {
 14809  		return nil, gensupport.WrapError(err)
 14810  	}
 14811  	ret := &GoogleProtobufEmpty{
 14812  		ServerResponse: googleapi.ServerResponse{
 14813  			Header:         res.Header,
 14814  			HTTPStatusCode: res.StatusCode,
 14815  		},
 14816  	}
 14817  	target := &ret
 14818  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14819  		return nil, err
 14820  	}
 14821  	return ret, nil
 14822  }
 14823  
 14824  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall struct {
 14825  	s            *Service
 14826  	name         string
 14827  	urlParams_   gensupport.URLParams
 14828  	ifNoneMatch_ string
 14829  	ctx_         context.Context
 14830  	header_      http.Header
 14831  }
 14832  
 14833  // Get: Gets a Document.
 14834  //
 14835  //   - name: Full resource name of Document, such as
 14836  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 14837  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 14838  //     not have permission to access the Document, regardless of whether or not
 14839  //     it exists, a `PERMISSION_DENIED` error is returned. If the requested
 14840  //     Document does not exist, a `NOT_FOUND` error is returned.
 14841  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
 14842  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14843  	c.name = name
 14844  	return c
 14845  }
 14846  
 14847  // Fields allows partial responses to be retrieved. See
 14848  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14849  // details.
 14850  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
 14851  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14852  	return c
 14853  }
 14854  
 14855  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14856  // object's ETag matches the given value. This is useful for getting updates
 14857  // only after the object has changed since the last request.
 14858  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
 14859  	c.ifNoneMatch_ = entityTag
 14860  	return c
 14861  }
 14862  
 14863  // Context sets the context to be used in this call's Do method.
 14864  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
 14865  	c.ctx_ = ctx
 14866  	return c
 14867  }
 14868  
 14869  // Header returns a http.Header that can be modified by the caller to add
 14870  // headers to the request.
 14871  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Header() http.Header {
 14872  	if c.header_ == nil {
 14873  		c.header_ = make(http.Header)
 14874  	}
 14875  	return c.header_
 14876  }
 14877  
 14878  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
 14879  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14880  	if c.ifNoneMatch_ != "" {
 14881  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14882  	}
 14883  	var body io.Reader = nil
 14884  	c.urlParams_.Set("alt", alt)
 14885  	c.urlParams_.Set("prettyPrint", "false")
 14886  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 14887  	urls += "?" + c.urlParams_.Encode()
 14888  	req, err := http.NewRequest("GET", urls, body)
 14889  	if err != nil {
 14890  		return nil, err
 14891  	}
 14892  	req.Header = reqHeaders
 14893  	googleapi.Expand(req.URL, map[string]string{
 14894  		"name": c.name,
 14895  	})
 14896  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14897  }
 14898  
 14899  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.get" call.
 14900  // Any non-2xx status code is an error. Response headers are in either
 14901  // *GoogleCloudDiscoveryengineV1alphaDocument.ServerResponse.Header or (if a
 14902  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14903  // googleapi.IsNotModified to check whether the returned error was because
 14904  // http.StatusNotModified was returned.
 14905  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocument, error) {
 14906  	gensupport.SetOptions(c.urlParams_, opts...)
 14907  	res, err := c.doRequest("json")
 14908  	if res != nil && res.StatusCode == http.StatusNotModified {
 14909  		if res.Body != nil {
 14910  			res.Body.Close()
 14911  		}
 14912  		return nil, gensupport.WrapError(&googleapi.Error{
 14913  			Code:   res.StatusCode,
 14914  			Header: res.Header,
 14915  		})
 14916  	}
 14917  	if err != nil {
 14918  		return nil, err
 14919  	}
 14920  	defer googleapi.CloseBody(res)
 14921  	if err := googleapi.CheckResponse(res); err != nil {
 14922  		return nil, gensupport.WrapError(err)
 14923  	}
 14924  	ret := &GoogleCloudDiscoveryengineV1alphaDocument{
 14925  		ServerResponse: googleapi.ServerResponse{
 14926  			Header:         res.Header,
 14927  			HTTPStatusCode: res.StatusCode,
 14928  		},
 14929  	}
 14930  	target := &ret
 14931  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14932  		return nil, err
 14933  	}
 14934  	return ret, nil
 14935  }
 14936  
 14937  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall struct {
 14938  	s            *Service
 14939  	name         string
 14940  	urlParams_   gensupport.URLParams
 14941  	ifNoneMatch_ string
 14942  	ctx_         context.Context
 14943  	header_      http.Header
 14944  }
 14945  
 14946  // GetProcessedDocument: Gets the parsed layout information for a Document.
 14947  //
 14948  //   - name: Full resource name of Document, such as
 14949  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 14950  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 14951  //     not have permission to access the Document, regardless of whether or not
 14952  //     it exists, a `PERMISSION_DENIED` error is returned. If the requested
 14953  //     Document does not exist, a `NOT_FOUND` error is returned.
 14954  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) GetProcessedDocument(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
 14955  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14956  	c.name = name
 14957  	return c
 14958  }
 14959  
 14960  // ProcessedDocumentFormat sets the optional parameter
 14961  // "processedDocumentFormat": What format output should be. If unspecified,
 14962  // defaults to JSON.
 14963  //
 14964  // Possible values:
 14965  //
 14966  //	"PROCESSED_DOCUMENT_FORMAT_UNSPECIFIED" - Default value.
 14967  //	"JSON" - output format will be a JSON string representation of processed
 14968  //
 14969  // document.
 14970  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) ProcessedDocumentFormat(processedDocumentFormat string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
 14971  	c.urlParams_.Set("processedDocumentFormat", processedDocumentFormat)
 14972  	return c
 14973  }
 14974  
 14975  // ProcessedDocumentType sets the optional parameter "processedDocumentType":
 14976  // Required. What type of processing to return.
 14977  //
 14978  // Possible values:
 14979  //
 14980  //	"PROCESSED_DOCUMENT_TYPE_UNSPECIFIED" - Default value.
 14981  //	"PARSED_DOCUMENT" - Available for all data store parsing configs.
 14982  //	"CHUNKED_DOCUMENT" - Only available if ChunkingConfig is enabled on the
 14983  //
 14984  // data store.
 14985  //
 14986  //	"PNG_CONVERTED_DOCUMENT" - Returns the converted PNG Image bytes if
 14987  //
 14988  // available.
 14989  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) ProcessedDocumentType(processedDocumentType string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
 14990  	c.urlParams_.Set("processedDocumentType", processedDocumentType)
 14991  	return c
 14992  }
 14993  
 14994  // Fields allows partial responses to be retrieved. See
 14995  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14996  // details.
 14997  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
 14998  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14999  	return c
 15000  }
 15001  
 15002  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15003  // object's ETag matches the given value. This is useful for getting updates
 15004  // only after the object has changed since the last request.
 15005  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
 15006  	c.ifNoneMatch_ = entityTag
 15007  	return c
 15008  }
 15009  
 15010  // Context sets the context to be used in this call's Do method.
 15011  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
 15012  	c.ctx_ = ctx
 15013  	return c
 15014  }
 15015  
 15016  // Header returns a http.Header that can be modified by the caller to add
 15017  // headers to the request.
 15018  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) Header() http.Header {
 15019  	if c.header_ == nil {
 15020  		c.header_ = make(http.Header)
 15021  	}
 15022  	return c.header_
 15023  }
 15024  
 15025  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) doRequest(alt string) (*http.Response, error) {
 15026  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15027  	if c.ifNoneMatch_ != "" {
 15028  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15029  	}
 15030  	var body io.Reader = nil
 15031  	c.urlParams_.Set("alt", alt)
 15032  	c.urlParams_.Set("prettyPrint", "false")
 15033  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:getProcessedDocument")
 15034  	urls += "?" + c.urlParams_.Encode()
 15035  	req, err := http.NewRequest("GET", urls, body)
 15036  	if err != nil {
 15037  		return nil, err
 15038  	}
 15039  	req.Header = reqHeaders
 15040  	googleapi.Expand(req.URL, map[string]string{
 15041  		"name": c.name,
 15042  	})
 15043  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15044  }
 15045  
 15046  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.getProcessedDocument" call.
 15047  // Any non-2xx status code is an error. Response headers are in either
 15048  // *GoogleCloudDiscoveryengineV1alphaProcessedDocument.ServerResponse.Header or
 15049  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 15050  // googleapi.IsNotModified to check whether the returned error was because
 15051  // http.StatusNotModified was returned.
 15052  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaProcessedDocument, error) {
 15053  	gensupport.SetOptions(c.urlParams_, opts...)
 15054  	res, err := c.doRequest("json")
 15055  	if res != nil && res.StatusCode == http.StatusNotModified {
 15056  		if res.Body != nil {
 15057  			res.Body.Close()
 15058  		}
 15059  		return nil, gensupport.WrapError(&googleapi.Error{
 15060  			Code:   res.StatusCode,
 15061  			Header: res.Header,
 15062  		})
 15063  	}
 15064  	if err != nil {
 15065  		return nil, err
 15066  	}
 15067  	defer googleapi.CloseBody(res)
 15068  	if err := googleapi.CheckResponse(res); err != nil {
 15069  		return nil, gensupport.WrapError(err)
 15070  	}
 15071  	ret := &GoogleCloudDiscoveryengineV1alphaProcessedDocument{
 15072  		ServerResponse: googleapi.ServerResponse{
 15073  			Header:         res.Header,
 15074  			HTTPStatusCode: res.StatusCode,
 15075  		},
 15076  	}
 15077  	target := &ret
 15078  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15079  		return nil, err
 15080  	}
 15081  	return ret, nil
 15082  }
 15083  
 15084  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall struct {
 15085  	s                                                       *Service
 15086  	parent                                                  string
 15087  	googleclouddiscoveryenginev1alphaimportdocumentsrequest *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest
 15088  	urlParams_                                              gensupport.URLParams
 15089  	ctx_                                                    context.Context
 15090  	header_                                                 http.Header
 15091  }
 15092  
 15093  // Import: Bulk import of multiple Documents. Request processing may be
 15094  // synchronous. Non-existing items will be created. Note: It is possible for a
 15095  // subset of the Documents to be successfully updated.
 15096  //
 15097  //   - parent: The parent branch resource name, such as
 15098  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 15099  //     s/{data_store}/branches/{branch}`. Requires create/update permission.
 15100  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Import(parent string, googleclouddiscoveryenginev1alphaimportdocumentsrequest *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
 15101  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15102  	c.parent = parent
 15103  	c.googleclouddiscoveryenginev1alphaimportdocumentsrequest = googleclouddiscoveryenginev1alphaimportdocumentsrequest
 15104  	return c
 15105  }
 15106  
 15107  // Fields allows partial responses to be retrieved. See
 15108  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15109  // details.
 15110  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
 15111  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15112  	return c
 15113  }
 15114  
 15115  // Context sets the context to be used in this call's Do method.
 15116  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
 15117  	c.ctx_ = ctx
 15118  	return c
 15119  }
 15120  
 15121  // Header returns a http.Header that can be modified by the caller to add
 15122  // headers to the request.
 15123  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Header() http.Header {
 15124  	if c.header_ == nil {
 15125  		c.header_ = make(http.Header)
 15126  	}
 15127  	return c.header_
 15128  }
 15129  
 15130  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
 15131  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15132  	var body io.Reader = nil
 15133  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaimportdocumentsrequest)
 15134  	if err != nil {
 15135  		return nil, err
 15136  	}
 15137  	c.urlParams_.Set("alt", alt)
 15138  	c.urlParams_.Set("prettyPrint", "false")
 15139  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents:import")
 15140  	urls += "?" + c.urlParams_.Encode()
 15141  	req, err := http.NewRequest("POST", urls, body)
 15142  	if err != nil {
 15143  		return nil, err
 15144  	}
 15145  	req.Header = reqHeaders
 15146  	googleapi.Expand(req.URL, map[string]string{
 15147  		"parent": c.parent,
 15148  	})
 15149  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15150  }
 15151  
 15152  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.import" call.
 15153  // Any non-2xx status code is an error. Response headers are in either
 15154  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15155  // returned at all) in error.(*googleapi.Error).Header. Use
 15156  // googleapi.IsNotModified to check whether the returned error was because
 15157  // http.StatusNotModified was returned.
 15158  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15159  	gensupport.SetOptions(c.urlParams_, opts...)
 15160  	res, err := c.doRequest("json")
 15161  	if res != nil && res.StatusCode == http.StatusNotModified {
 15162  		if res.Body != nil {
 15163  			res.Body.Close()
 15164  		}
 15165  		return nil, gensupport.WrapError(&googleapi.Error{
 15166  			Code:   res.StatusCode,
 15167  			Header: res.Header,
 15168  		})
 15169  	}
 15170  	if err != nil {
 15171  		return nil, err
 15172  	}
 15173  	defer googleapi.CloseBody(res)
 15174  	if err := googleapi.CheckResponse(res); err != nil {
 15175  		return nil, gensupport.WrapError(err)
 15176  	}
 15177  	ret := &GoogleLongrunningOperation{
 15178  		ServerResponse: googleapi.ServerResponse{
 15179  			Header:         res.Header,
 15180  			HTTPStatusCode: res.StatusCode,
 15181  		},
 15182  	}
 15183  	target := &ret
 15184  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15185  		return nil, err
 15186  	}
 15187  	return ret, nil
 15188  }
 15189  
 15190  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall struct {
 15191  	s            *Service
 15192  	parent       string
 15193  	urlParams_   gensupport.URLParams
 15194  	ifNoneMatch_ string
 15195  	ctx_         context.Context
 15196  	header_      http.Header
 15197  }
 15198  
 15199  // List: Gets a list of Documents.
 15200  //
 15201  //   - parent: The parent branch resource name, such as
 15202  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 15203  //     s/{data_store}/branches/{branch}`. Use `default_branch` as the branch ID,
 15204  //     to list documents under the default branch. If the caller does not have
 15205  //     permission to list Documents under this branch, regardless of whether or
 15206  //     not this branch exists, a `PERMISSION_DENIED` error is returned.
 15207  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) List(parent string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 15208  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15209  	c.parent = parent
 15210  	return c
 15211  }
 15212  
 15213  // PageSize sets the optional parameter "pageSize": Maximum number of Documents
 15214  // to return. If unspecified, defaults to 100. The maximum allowed value is
 15215  // 1000. Values above 1000 will be coerced to 1000. If this field is negative,
 15216  // an `INVALID_ARGUMENT` error is returned.
 15217  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 15218  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15219  	return c
 15220  }
 15221  
 15222  // PageToken sets the optional parameter "pageToken": A page token
 15223  // ListDocumentsResponse.next_page_token, received from a previous
 15224  // DocumentService.ListDocuments call. Provide this to retrieve the subsequent
 15225  // page. When paginating, all other parameters provided to
 15226  // DocumentService.ListDocuments must match the call that provided the page
 15227  // token. Otherwise, an `INVALID_ARGUMENT` error is returned.
 15228  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 15229  	c.urlParams_.Set("pageToken", pageToken)
 15230  	return c
 15231  }
 15232  
 15233  // Fields allows partial responses to be retrieved. See
 15234  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15235  // details.
 15236  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 15237  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15238  	return c
 15239  }
 15240  
 15241  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15242  // object's ETag matches the given value. This is useful for getting updates
 15243  // only after the object has changed since the last request.
 15244  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 15245  	c.ifNoneMatch_ = entityTag
 15246  	return c
 15247  }
 15248  
 15249  // Context sets the context to be used in this call's Do method.
 15250  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 15251  	c.ctx_ = ctx
 15252  	return c
 15253  }
 15254  
 15255  // Header returns a http.Header that can be modified by the caller to add
 15256  // headers to the request.
 15257  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Header() http.Header {
 15258  	if c.header_ == nil {
 15259  		c.header_ = make(http.Header)
 15260  	}
 15261  	return c.header_
 15262  }
 15263  
 15264  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
 15265  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15266  	if c.ifNoneMatch_ != "" {
 15267  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15268  	}
 15269  	var body io.Reader = nil
 15270  	c.urlParams_.Set("alt", alt)
 15271  	c.urlParams_.Set("prettyPrint", "false")
 15272  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents")
 15273  	urls += "?" + c.urlParams_.Encode()
 15274  	req, err := http.NewRequest("GET", urls, body)
 15275  	if err != nil {
 15276  		return nil, err
 15277  	}
 15278  	req.Header = reqHeaders
 15279  	googleapi.Expand(req.URL, map[string]string{
 15280  		"parent": c.parent,
 15281  	})
 15282  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15283  }
 15284  
 15285  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.list" call.
 15286  // Any non-2xx status code is an error. Response headers are in either
 15287  // *GoogleCloudDiscoveryengineV1alphaListDocumentsResponse.ServerResponse.Header
 15288  //
 15289  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 15290  //
 15291  // Use googleapi.IsNotModified to check whether the returned error was because
 15292  // http.StatusNotModified was returned.
 15293  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListDocumentsResponse, error) {
 15294  	gensupport.SetOptions(c.urlParams_, opts...)
 15295  	res, err := c.doRequest("json")
 15296  	if res != nil && res.StatusCode == http.StatusNotModified {
 15297  		if res.Body != nil {
 15298  			res.Body.Close()
 15299  		}
 15300  		return nil, gensupport.WrapError(&googleapi.Error{
 15301  			Code:   res.StatusCode,
 15302  			Header: res.Header,
 15303  		})
 15304  	}
 15305  	if err != nil {
 15306  		return nil, err
 15307  	}
 15308  	defer googleapi.CloseBody(res)
 15309  	if err := googleapi.CheckResponse(res); err != nil {
 15310  		return nil, gensupport.WrapError(err)
 15311  	}
 15312  	ret := &GoogleCloudDiscoveryengineV1alphaListDocumentsResponse{
 15313  		ServerResponse: googleapi.ServerResponse{
 15314  			Header:         res.Header,
 15315  			HTTPStatusCode: res.StatusCode,
 15316  		},
 15317  	}
 15318  	target := &ret
 15319  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15320  		return nil, err
 15321  	}
 15322  	return ret, nil
 15323  }
 15324  
 15325  // Pages invokes f for each page of results.
 15326  // A non-nil error returned from f will halt the iteration.
 15327  // The provided context supersedes any context provided to the Context method.
 15328  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListDocumentsResponse) error) error {
 15329  	c.ctx_ = ctx
 15330  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15331  	for {
 15332  		x, err := c.Do()
 15333  		if err != nil {
 15334  			return err
 15335  		}
 15336  		if err := f(x); err != nil {
 15337  			return err
 15338  		}
 15339  		if x.NextPageToken == "" {
 15340  			return nil
 15341  		}
 15342  		c.PageToken(x.NextPageToken)
 15343  	}
 15344  }
 15345  
 15346  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall struct {
 15347  	s                                         *Service
 15348  	name                                      string
 15349  	googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument
 15350  	urlParams_                                gensupport.URLParams
 15351  	ctx_                                      context.Context
 15352  	header_                                   http.Header
 15353  }
 15354  
 15355  // Patch: Updates a Document.
 15356  //
 15357  //   - name: Immutable. The full resource name of the document. Format:
 15358  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 15359  //     s/{data_store}/branches/{branch}/documents/{document_id}`. This field must
 15360  //     be a UTF-8 encoded string with a length limit of 1024 characters.
 15361  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Patch(name string, googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 15362  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15363  	c.name = name
 15364  	c.googleclouddiscoveryenginev1alphadocument = googleclouddiscoveryenginev1alphadocument
 15365  	return c
 15366  }
 15367  
 15368  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 15369  // the Document is not found, a new Document will be created.
 15370  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 15371  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 15372  	return c
 15373  }
 15374  
 15375  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 15376  // in the provided imported 'document' to update. If not set, will by default
 15377  // update all fields.
 15378  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 15379  	c.urlParams_.Set("updateMask", updateMask)
 15380  	return c
 15381  }
 15382  
 15383  // Fields allows partial responses to be retrieved. See
 15384  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15385  // details.
 15386  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 15387  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15388  	return c
 15389  }
 15390  
 15391  // Context sets the context to be used in this call's Do method.
 15392  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 15393  	c.ctx_ = ctx
 15394  	return c
 15395  }
 15396  
 15397  // Header returns a http.Header that can be modified by the caller to add
 15398  // headers to the request.
 15399  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Header() http.Header {
 15400  	if c.header_ == nil {
 15401  		c.header_ = make(http.Header)
 15402  	}
 15403  	return c.header_
 15404  }
 15405  
 15406  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
 15407  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15408  	var body io.Reader = nil
 15409  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadocument)
 15410  	if err != nil {
 15411  		return nil, err
 15412  	}
 15413  	c.urlParams_.Set("alt", alt)
 15414  	c.urlParams_.Set("prettyPrint", "false")
 15415  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 15416  	urls += "?" + c.urlParams_.Encode()
 15417  	req, err := http.NewRequest("PATCH", urls, body)
 15418  	if err != nil {
 15419  		return nil, err
 15420  	}
 15421  	req.Header = reqHeaders
 15422  	googleapi.Expand(req.URL, map[string]string{
 15423  		"name": c.name,
 15424  	})
 15425  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15426  }
 15427  
 15428  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.patch" call.
 15429  // Any non-2xx status code is an error. Response headers are in either
 15430  // *GoogleCloudDiscoveryengineV1alphaDocument.ServerResponse.Header or (if a
 15431  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15432  // googleapi.IsNotModified to check whether the returned error was because
 15433  // http.StatusNotModified was returned.
 15434  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocument, error) {
 15435  	gensupport.SetOptions(c.urlParams_, opts...)
 15436  	res, err := c.doRequest("json")
 15437  	if res != nil && res.StatusCode == http.StatusNotModified {
 15438  		if res.Body != nil {
 15439  			res.Body.Close()
 15440  		}
 15441  		return nil, gensupport.WrapError(&googleapi.Error{
 15442  			Code:   res.StatusCode,
 15443  			Header: res.Header,
 15444  		})
 15445  	}
 15446  	if err != nil {
 15447  		return nil, err
 15448  	}
 15449  	defer googleapi.CloseBody(res)
 15450  	if err := googleapi.CheckResponse(res); err != nil {
 15451  		return nil, gensupport.WrapError(err)
 15452  	}
 15453  	ret := &GoogleCloudDiscoveryengineV1alphaDocument{
 15454  		ServerResponse: googleapi.ServerResponse{
 15455  			Header:         res.Header,
 15456  			HTTPStatusCode: res.StatusCode,
 15457  		},
 15458  	}
 15459  	target := &ret
 15460  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15461  		return nil, err
 15462  	}
 15463  	return ret, nil
 15464  }
 15465  
 15466  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall struct {
 15467  	s                                                      *Service
 15468  	parent                                                 string
 15469  	googleclouddiscoveryenginev1alphapurgedocumentsrequest *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest
 15470  	urlParams_                                             gensupport.URLParams
 15471  	ctx_                                                   context.Context
 15472  	header_                                                http.Header
 15473  }
 15474  
 15475  // Purge: Permanently deletes all selected Documents in a branch. This process
 15476  // is asynchronous. Depending on the number of Documents to be deleted, this
 15477  // operation can take hours to complete. Before the delete operation completes,
 15478  // some Documents might still be returned by DocumentService.GetDocument or
 15479  // DocumentService.ListDocuments. To get a list of the Documents to be deleted,
 15480  // set PurgeDocumentsRequest.force to false.
 15481  //
 15482  //   - parent: The parent resource name, such as
 15483  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 15484  //     s/{data_store}/branches/{branch}`.
 15485  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Purge(parent string, googleclouddiscoveryenginev1alphapurgedocumentsrequest *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
 15486  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15487  	c.parent = parent
 15488  	c.googleclouddiscoveryenginev1alphapurgedocumentsrequest = googleclouddiscoveryenginev1alphapurgedocumentsrequest
 15489  	return c
 15490  }
 15491  
 15492  // Fields allows partial responses to be retrieved. See
 15493  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15494  // details.
 15495  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
 15496  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15497  	return c
 15498  }
 15499  
 15500  // Context sets the context to be used in this call's Do method.
 15501  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
 15502  	c.ctx_ = ctx
 15503  	return c
 15504  }
 15505  
 15506  // Header returns a http.Header that can be modified by the caller to add
 15507  // headers to the request.
 15508  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Header() http.Header {
 15509  	if c.header_ == nil {
 15510  		c.header_ = make(http.Header)
 15511  	}
 15512  	return c.header_
 15513  }
 15514  
 15515  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) doRequest(alt string) (*http.Response, error) {
 15516  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15517  	var body io.Reader = nil
 15518  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapurgedocumentsrequest)
 15519  	if err != nil {
 15520  		return nil, err
 15521  	}
 15522  	c.urlParams_.Set("alt", alt)
 15523  	c.urlParams_.Set("prettyPrint", "false")
 15524  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents:purge")
 15525  	urls += "?" + c.urlParams_.Encode()
 15526  	req, err := http.NewRequest("POST", urls, body)
 15527  	if err != nil {
 15528  		return nil, err
 15529  	}
 15530  	req.Header = reqHeaders
 15531  	googleapi.Expand(req.URL, map[string]string{
 15532  		"parent": c.parent,
 15533  	})
 15534  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15535  }
 15536  
 15537  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.purge" call.
 15538  // Any non-2xx status code is an error. Response headers are in either
 15539  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15540  // returned at all) in error.(*googleapi.Error).Header. Use
 15541  // googleapi.IsNotModified to check whether the returned error was because
 15542  // http.StatusNotModified was returned.
 15543  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15544  	gensupport.SetOptions(c.urlParams_, opts...)
 15545  	res, err := c.doRequest("json")
 15546  	if res != nil && res.StatusCode == http.StatusNotModified {
 15547  		if res.Body != nil {
 15548  			res.Body.Close()
 15549  		}
 15550  		return nil, gensupport.WrapError(&googleapi.Error{
 15551  			Code:   res.StatusCode,
 15552  			Header: res.Header,
 15553  		})
 15554  	}
 15555  	if err != nil {
 15556  		return nil, err
 15557  	}
 15558  	defer googleapi.CloseBody(res)
 15559  	if err := googleapi.CheckResponse(res); err != nil {
 15560  		return nil, gensupport.WrapError(err)
 15561  	}
 15562  	ret := &GoogleLongrunningOperation{
 15563  		ServerResponse: googleapi.ServerResponse{
 15564  			Header:         res.Header,
 15565  			HTTPStatusCode: res.StatusCode,
 15566  		},
 15567  	}
 15568  	target := &ret
 15569  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15570  		return nil, err
 15571  	}
 15572  	return ret, nil
 15573  }
 15574  
 15575  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall struct {
 15576  	s            *Service
 15577  	name         string
 15578  	urlParams_   gensupport.URLParams
 15579  	ifNoneMatch_ string
 15580  	ctx_         context.Context
 15581  	header_      http.Header
 15582  }
 15583  
 15584  // Get: Gets a Document.
 15585  //
 15586  //   - name: Full resource name of Chunk, such as
 15587  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 15588  //     s/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`. If
 15589  //     the caller does not have permission to access the Chunk, regardless of
 15590  //     whether or not it exists, a `PERMISSION_DENIED` error is returned. If the
 15591  //     requested Chunk does not exist, a `NOT_FOUND` error is returned.
 15592  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall {
 15593  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15594  	c.name = name
 15595  	return c
 15596  }
 15597  
 15598  // Fields allows partial responses to be retrieved. See
 15599  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15600  // details.
 15601  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall {
 15602  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15603  	return c
 15604  }
 15605  
 15606  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15607  // object's ETag matches the given value. This is useful for getting updates
 15608  // only after the object has changed since the last request.
 15609  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall {
 15610  	c.ifNoneMatch_ = entityTag
 15611  	return c
 15612  }
 15613  
 15614  // Context sets the context to be used in this call's Do method.
 15615  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall {
 15616  	c.ctx_ = ctx
 15617  	return c
 15618  }
 15619  
 15620  // Header returns a http.Header that can be modified by the caller to add
 15621  // headers to the request.
 15622  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) Header() http.Header {
 15623  	if c.header_ == nil {
 15624  		c.header_ = make(http.Header)
 15625  	}
 15626  	return c.header_
 15627  }
 15628  
 15629  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) doRequest(alt string) (*http.Response, error) {
 15630  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15631  	if c.ifNoneMatch_ != "" {
 15632  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15633  	}
 15634  	var body io.Reader = nil
 15635  	c.urlParams_.Set("alt", alt)
 15636  	c.urlParams_.Set("prettyPrint", "false")
 15637  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 15638  	urls += "?" + c.urlParams_.Encode()
 15639  	req, err := http.NewRequest("GET", urls, body)
 15640  	if err != nil {
 15641  		return nil, err
 15642  	}
 15643  	req.Header = reqHeaders
 15644  	googleapi.Expand(req.URL, map[string]string{
 15645  		"name": c.name,
 15646  	})
 15647  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15648  }
 15649  
 15650  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.chunks.get" call.
 15651  // Any non-2xx status code is an error. Response headers are in either
 15652  // *GoogleCloudDiscoveryengineV1alphaChunk.ServerResponse.Header or (if a
 15653  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15654  // googleapi.IsNotModified to check whether the returned error was because
 15655  // http.StatusNotModified was returned.
 15656  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaChunk, error) {
 15657  	gensupport.SetOptions(c.urlParams_, opts...)
 15658  	res, err := c.doRequest("json")
 15659  	if res != nil && res.StatusCode == http.StatusNotModified {
 15660  		if res.Body != nil {
 15661  			res.Body.Close()
 15662  		}
 15663  		return nil, gensupport.WrapError(&googleapi.Error{
 15664  			Code:   res.StatusCode,
 15665  			Header: res.Header,
 15666  		})
 15667  	}
 15668  	if err != nil {
 15669  		return nil, err
 15670  	}
 15671  	defer googleapi.CloseBody(res)
 15672  	if err := googleapi.CheckResponse(res); err != nil {
 15673  		return nil, gensupport.WrapError(err)
 15674  	}
 15675  	ret := &GoogleCloudDiscoveryengineV1alphaChunk{
 15676  		ServerResponse: googleapi.ServerResponse{
 15677  			Header:         res.Header,
 15678  			HTTPStatusCode: res.StatusCode,
 15679  		},
 15680  	}
 15681  	target := &ret
 15682  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15683  		return nil, err
 15684  	}
 15685  	return ret, nil
 15686  }
 15687  
 15688  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall struct {
 15689  	s            *Service
 15690  	parent       string
 15691  	urlParams_   gensupport.URLParams
 15692  	ifNoneMatch_ string
 15693  	ctx_         context.Context
 15694  	header_      http.Header
 15695  }
 15696  
 15697  // List: Gets a list of Chunks.
 15698  //
 15699  //   - parent: The parent document resource name, such as
 15700  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 15701  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 15702  //     not have permission to list Chunks under this document, regardless of
 15703  //     whether or not this document exists, a `PERMISSION_DENIED` error is
 15704  //     returned.
 15705  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService) List(parent string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall {
 15706  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15707  	c.parent = parent
 15708  	return c
 15709  }
 15710  
 15711  // PageSize sets the optional parameter "pageSize": Maximum number of Chunks to
 15712  // return. If unspecified, defaults to 100. The maximum allowed value is 1000.
 15713  // Values above 1000 will be coerced to 1000. If this field is negative, an
 15714  // `INVALID_ARGUMENT` error is returned.
 15715  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall {
 15716  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15717  	return c
 15718  }
 15719  
 15720  // PageToken sets the optional parameter "pageToken": A page token
 15721  // ListChunksResponse.next_page_token, received from a previous
 15722  // ChunkService.ListChunks call. Provide this to retrieve the subsequent page.
 15723  // When paginating, all other parameters provided to ChunkService.ListChunks
 15724  // must match the call that provided the page token. Otherwise, an
 15725  // `INVALID_ARGUMENT` error is returned.
 15726  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall {
 15727  	c.urlParams_.Set("pageToken", pageToken)
 15728  	return c
 15729  }
 15730  
 15731  // Fields allows partial responses to be retrieved. See
 15732  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15733  // details.
 15734  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall {
 15735  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15736  	return c
 15737  }
 15738  
 15739  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15740  // object's ETag matches the given value. This is useful for getting updates
 15741  // only after the object has changed since the last request.
 15742  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall {
 15743  	c.ifNoneMatch_ = entityTag
 15744  	return c
 15745  }
 15746  
 15747  // Context sets the context to be used in this call's Do method.
 15748  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall {
 15749  	c.ctx_ = ctx
 15750  	return c
 15751  }
 15752  
 15753  // Header returns a http.Header that can be modified by the caller to add
 15754  // headers to the request.
 15755  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Header() http.Header {
 15756  	if c.header_ == nil {
 15757  		c.header_ = make(http.Header)
 15758  	}
 15759  	return c.header_
 15760  }
 15761  
 15762  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) doRequest(alt string) (*http.Response, error) {
 15763  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15764  	if c.ifNoneMatch_ != "" {
 15765  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15766  	}
 15767  	var body io.Reader = nil
 15768  	c.urlParams_.Set("alt", alt)
 15769  	c.urlParams_.Set("prettyPrint", "false")
 15770  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/chunks")
 15771  	urls += "?" + c.urlParams_.Encode()
 15772  	req, err := http.NewRequest("GET", urls, body)
 15773  	if err != nil {
 15774  		return nil, err
 15775  	}
 15776  	req.Header = reqHeaders
 15777  	googleapi.Expand(req.URL, map[string]string{
 15778  		"parent": c.parent,
 15779  	})
 15780  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15781  }
 15782  
 15783  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.chunks.list" call.
 15784  // Any non-2xx status code is an error. Response headers are in either
 15785  // *GoogleCloudDiscoveryengineV1alphaListChunksResponse.ServerResponse.Header
 15786  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 15787  // Use googleapi.IsNotModified to check whether the returned error was because
 15788  // http.StatusNotModified was returned.
 15789  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListChunksResponse, error) {
 15790  	gensupport.SetOptions(c.urlParams_, opts...)
 15791  	res, err := c.doRequest("json")
 15792  	if res != nil && res.StatusCode == http.StatusNotModified {
 15793  		if res.Body != nil {
 15794  			res.Body.Close()
 15795  		}
 15796  		return nil, gensupport.WrapError(&googleapi.Error{
 15797  			Code:   res.StatusCode,
 15798  			Header: res.Header,
 15799  		})
 15800  	}
 15801  	if err != nil {
 15802  		return nil, err
 15803  	}
 15804  	defer googleapi.CloseBody(res)
 15805  	if err := googleapi.CheckResponse(res); err != nil {
 15806  		return nil, gensupport.WrapError(err)
 15807  	}
 15808  	ret := &GoogleCloudDiscoveryengineV1alphaListChunksResponse{
 15809  		ServerResponse: googleapi.ServerResponse{
 15810  			Header:         res.Header,
 15811  			HTTPStatusCode: res.StatusCode,
 15812  		},
 15813  	}
 15814  	target := &ret
 15815  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15816  		return nil, err
 15817  	}
 15818  	return ret, nil
 15819  }
 15820  
 15821  // Pages invokes f for each page of results.
 15822  // A non-nil error returned from f will halt the iteration.
 15823  // The provided context supersedes any context provided to the Context method.
 15824  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListChunksResponse) error) error {
 15825  	c.ctx_ = ctx
 15826  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15827  	for {
 15828  		x, err := c.Do()
 15829  		if err != nil {
 15830  			return err
 15831  		}
 15832  		if err := f(x); err != nil {
 15833  			return err
 15834  		}
 15835  		if x.NextPageToken == "" {
 15836  			return nil
 15837  		}
 15838  		c.PageToken(x.NextPageToken)
 15839  	}
 15840  }
 15841  
 15842  type ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall struct {
 15843  	s                                       *Service
 15844  	name                                    string
 15845  	googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
 15846  	urlParams_                              gensupport.URLParams
 15847  	ctx_                                    context.Context
 15848  	header_                                 http.Header
 15849  }
 15850  
 15851  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 15852  // server makes a best effort to cancel the operation, but success is not
 15853  // guaranteed. If the server doesn't support this method, it returns
 15854  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 15855  // other methods to check whether the cancellation succeeded or whether the
 15856  // operation completed despite cancellation. On successful cancellation, the
 15857  // operation is not deleted; instead, it becomes an operation with an
 15858  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 15859  // `Code.CANCELLED`.
 15860  //
 15861  // - name: The name of the operation resource to be cancelled.
 15862  func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
 15863  	c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15864  	c.name = name
 15865  	c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
 15866  	return c
 15867  }
 15868  
 15869  // Fields allows partial responses to be retrieved. See
 15870  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15871  // details.
 15872  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
 15873  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15874  	return c
 15875  }
 15876  
 15877  // Context sets the context to be used in this call's Do method.
 15878  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
 15879  	c.ctx_ = ctx
 15880  	return c
 15881  }
 15882  
 15883  // Header returns a http.Header that can be modified by the caller to add
 15884  // headers to the request.
 15885  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Header() http.Header {
 15886  	if c.header_ == nil {
 15887  		c.header_ = make(http.Header)
 15888  	}
 15889  	return c.header_
 15890  }
 15891  
 15892  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 15893  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15894  	var body io.Reader = nil
 15895  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
 15896  	if err != nil {
 15897  		return nil, err
 15898  	}
 15899  	c.urlParams_.Set("alt", alt)
 15900  	c.urlParams_.Set("prettyPrint", "false")
 15901  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:cancel")
 15902  	urls += "?" + c.urlParams_.Encode()
 15903  	req, err := http.NewRequest("POST", urls, body)
 15904  	if err != nil {
 15905  		return nil, err
 15906  	}
 15907  	req.Header = reqHeaders
 15908  	googleapi.Expand(req.URL, map[string]string{
 15909  		"name": c.name,
 15910  	})
 15911  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15912  }
 15913  
 15914  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.cancel" call.
 15915  // Any non-2xx status code is an error. Response headers are in either
 15916  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 15917  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 15918  // check whether the returned error was because http.StatusNotModified was
 15919  // returned.
 15920  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 15921  	gensupport.SetOptions(c.urlParams_, opts...)
 15922  	res, err := c.doRequest("json")
 15923  	if res != nil && res.StatusCode == http.StatusNotModified {
 15924  		if res.Body != nil {
 15925  			res.Body.Close()
 15926  		}
 15927  		return nil, gensupport.WrapError(&googleapi.Error{
 15928  			Code:   res.StatusCode,
 15929  			Header: res.Header,
 15930  		})
 15931  	}
 15932  	if err != nil {
 15933  		return nil, err
 15934  	}
 15935  	defer googleapi.CloseBody(res)
 15936  	if err := googleapi.CheckResponse(res); err != nil {
 15937  		return nil, gensupport.WrapError(err)
 15938  	}
 15939  	ret := &GoogleProtobufEmpty{
 15940  		ServerResponse: googleapi.ServerResponse{
 15941  			Header:         res.Header,
 15942  			HTTPStatusCode: res.StatusCode,
 15943  		},
 15944  	}
 15945  	target := &ret
 15946  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15947  		return nil, err
 15948  	}
 15949  	return ret, nil
 15950  }
 15951  
 15952  type ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall struct {
 15953  	s            *Service
 15954  	name         string
 15955  	urlParams_   gensupport.URLParams
 15956  	ifNoneMatch_ string
 15957  	ctx_         context.Context
 15958  	header_      http.Header
 15959  }
 15960  
 15961  // Get: Gets the latest state of a long-running operation. Clients can use this
 15962  // method to poll the operation result at intervals as recommended by the API
 15963  // service.
 15964  //
 15965  // - name: The name of the operation resource.
 15966  func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
 15967  	c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15968  	c.name = name
 15969  	return c
 15970  }
 15971  
 15972  // Fields allows partial responses to be retrieved. See
 15973  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15974  // details.
 15975  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
 15976  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15977  	return c
 15978  }
 15979  
 15980  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15981  // object's ETag matches the given value. This is useful for getting updates
 15982  // only after the object has changed since the last request.
 15983  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
 15984  	c.ifNoneMatch_ = entityTag
 15985  	return c
 15986  }
 15987  
 15988  // Context sets the context to be used in this call's Do method.
 15989  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
 15990  	c.ctx_ = ctx
 15991  	return c
 15992  }
 15993  
 15994  // Header returns a http.Header that can be modified by the caller to add
 15995  // headers to the request.
 15996  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Header() http.Header {
 15997  	if c.header_ == nil {
 15998  		c.header_ = make(http.Header)
 15999  	}
 16000  	return c.header_
 16001  }
 16002  
 16003  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 16004  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16005  	if c.ifNoneMatch_ != "" {
 16006  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16007  	}
 16008  	var body io.Reader = nil
 16009  	c.urlParams_.Set("alt", alt)
 16010  	c.urlParams_.Set("prettyPrint", "false")
 16011  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 16012  	urls += "?" + c.urlParams_.Encode()
 16013  	req, err := http.NewRequest("GET", urls, body)
 16014  	if err != nil {
 16015  		return nil, err
 16016  	}
 16017  	req.Header = reqHeaders
 16018  	googleapi.Expand(req.URL, map[string]string{
 16019  		"name": c.name,
 16020  	})
 16021  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16022  }
 16023  
 16024  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.get" call.
 16025  // Any non-2xx status code is an error. Response headers are in either
 16026  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 16027  // returned at all) in error.(*googleapi.Error).Header. Use
 16028  // googleapi.IsNotModified to check whether the returned error was because
 16029  // http.StatusNotModified was returned.
 16030  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 16031  	gensupport.SetOptions(c.urlParams_, opts...)
 16032  	res, err := c.doRequest("json")
 16033  	if res != nil && res.StatusCode == http.StatusNotModified {
 16034  		if res.Body != nil {
 16035  			res.Body.Close()
 16036  		}
 16037  		return nil, gensupport.WrapError(&googleapi.Error{
 16038  			Code:   res.StatusCode,
 16039  			Header: res.Header,
 16040  		})
 16041  	}
 16042  	if err != nil {
 16043  		return nil, err
 16044  	}
 16045  	defer googleapi.CloseBody(res)
 16046  	if err := googleapi.CheckResponse(res); err != nil {
 16047  		return nil, gensupport.WrapError(err)
 16048  	}
 16049  	ret := &GoogleLongrunningOperation{
 16050  		ServerResponse: googleapi.ServerResponse{
 16051  			Header:         res.Header,
 16052  			HTTPStatusCode: res.StatusCode,
 16053  		},
 16054  	}
 16055  	target := &ret
 16056  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16057  		return nil, err
 16058  	}
 16059  	return ret, nil
 16060  }
 16061  
 16062  type ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall struct {
 16063  	s            *Service
 16064  	name         string
 16065  	urlParams_   gensupport.URLParams
 16066  	ifNoneMatch_ string
 16067  	ctx_         context.Context
 16068  	header_      http.Header
 16069  }
 16070  
 16071  // List: Lists operations that match the specified filter in the request. If
 16072  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 16073  //
 16074  // - name: The name of the operation's parent resource.
 16075  func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 16076  	c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16077  	c.name = name
 16078  	return c
 16079  }
 16080  
 16081  // Filter sets the optional parameter "filter": The standard list filter.
 16082  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 16083  	c.urlParams_.Set("filter", filter)
 16084  	return c
 16085  }
 16086  
 16087  // PageSize sets the optional parameter "pageSize": The standard list page
 16088  // size.
 16089  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 16090  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 16091  	return c
 16092  }
 16093  
 16094  // PageToken sets the optional parameter "pageToken": The standard list page
 16095  // token.
 16096  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 16097  	c.urlParams_.Set("pageToken", pageToken)
 16098  	return c
 16099  }
 16100  
 16101  // Fields allows partial responses to be retrieved. See
 16102  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16103  // details.
 16104  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 16105  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16106  	return c
 16107  }
 16108  
 16109  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16110  // object's ETag matches the given value. This is useful for getting updates
 16111  // only after the object has changed since the last request.
 16112  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 16113  	c.ifNoneMatch_ = entityTag
 16114  	return c
 16115  }
 16116  
 16117  // Context sets the context to be used in this call's Do method.
 16118  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 16119  	c.ctx_ = ctx
 16120  	return c
 16121  }
 16122  
 16123  // Header returns a http.Header that can be modified by the caller to add
 16124  // headers to the request.
 16125  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Header() http.Header {
 16126  	if c.header_ == nil {
 16127  		c.header_ = make(http.Header)
 16128  	}
 16129  	return c.header_
 16130  }
 16131  
 16132  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) doRequest(alt string) (*http.Response, error) {
 16133  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16134  	if c.ifNoneMatch_ != "" {
 16135  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16136  	}
 16137  	var body io.Reader = nil
 16138  	c.urlParams_.Set("alt", alt)
 16139  	c.urlParams_.Set("prettyPrint", "false")
 16140  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 16141  	urls += "?" + c.urlParams_.Encode()
 16142  	req, err := http.NewRequest("GET", urls, body)
 16143  	if err != nil {
 16144  		return nil, err
 16145  	}
 16146  	req.Header = reqHeaders
 16147  	googleapi.Expand(req.URL, map[string]string{
 16148  		"name": c.name,
 16149  	})
 16150  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16151  }
 16152  
 16153  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.list" call.
 16154  // Any non-2xx status code is an error. Response headers are in either
 16155  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 16156  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16157  // googleapi.IsNotModified to check whether the returned error was because
 16158  // http.StatusNotModified was returned.
 16159  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 16160  	gensupport.SetOptions(c.urlParams_, opts...)
 16161  	res, err := c.doRequest("json")
 16162  	if res != nil && res.StatusCode == http.StatusNotModified {
 16163  		if res.Body != nil {
 16164  			res.Body.Close()
 16165  		}
 16166  		return nil, gensupport.WrapError(&googleapi.Error{
 16167  			Code:   res.StatusCode,
 16168  			Header: res.Header,
 16169  		})
 16170  	}
 16171  	if err != nil {
 16172  		return nil, err
 16173  	}
 16174  	defer googleapi.CloseBody(res)
 16175  	if err := googleapi.CheckResponse(res); err != nil {
 16176  		return nil, gensupport.WrapError(err)
 16177  	}
 16178  	ret := &GoogleLongrunningListOperationsResponse{
 16179  		ServerResponse: googleapi.ServerResponse{
 16180  			Header:         res.Header,
 16181  			HTTPStatusCode: res.StatusCode,
 16182  		},
 16183  	}
 16184  	target := &ret
 16185  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16186  		return nil, err
 16187  	}
 16188  	return ret, nil
 16189  }
 16190  
 16191  // Pages invokes f for each page of results.
 16192  // A non-nil error returned from f will halt the iteration.
 16193  // The provided context supersedes any context provided to the Context method.
 16194  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 16195  	c.ctx_ = ctx
 16196  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 16197  	for {
 16198  		x, err := c.Do()
 16199  		if err != nil {
 16200  			return err
 16201  		}
 16202  		if err := f(x); err != nil {
 16203  			return err
 16204  		}
 16205  		if x.NextPageToken == "" {
 16206  			return nil
 16207  		}
 16208  		c.PageToken(x.NextPageToken)
 16209  	}
 16210  }
 16211  
 16212  type ProjectsLocationsCollectionsDataStoresConversationsConverseCall struct {
 16213  	s                                                            *Service
 16214  	name                                                         string
 16215  	googleclouddiscoveryenginev1alphaconverseconversationrequest *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest
 16216  	urlParams_                                                   gensupport.URLParams
 16217  	ctx_                                                         context.Context
 16218  	header_                                                      http.Header
 16219  }
 16220  
 16221  // Converse: Converses a conversation.
 16222  //
 16223  //   - name: The resource name of the Conversation to get. Format:
 16224  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 16225  //     /dataStores/{data_store_id}/conversations/{conversation_id}`. Use
 16226  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 16227  //     /dataStores/{data_store_id}/conversations/-` to activate auto session
 16228  //     mode, which automatically creates a new conversation inside a
 16229  //     ConverseConversation session.
 16230  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Converse(name string, googleclouddiscoveryenginev1alphaconverseconversationrequest *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
 16231  	c := &ProjectsLocationsCollectionsDataStoresConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16232  	c.name = name
 16233  	c.googleclouddiscoveryenginev1alphaconverseconversationrequest = googleclouddiscoveryenginev1alphaconverseconversationrequest
 16234  	return c
 16235  }
 16236  
 16237  // Fields allows partial responses to be retrieved. See
 16238  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16239  // details.
 16240  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
 16241  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16242  	return c
 16243  }
 16244  
 16245  // Context sets the context to be used in this call's Do method.
 16246  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
 16247  	c.ctx_ = ctx
 16248  	return c
 16249  }
 16250  
 16251  // Header returns a http.Header that can be modified by the caller to add
 16252  // headers to the request.
 16253  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Header() http.Header {
 16254  	if c.header_ == nil {
 16255  		c.header_ = make(http.Header)
 16256  	}
 16257  	return c.header_
 16258  }
 16259  
 16260  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
 16261  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16262  	var body io.Reader = nil
 16263  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconverseconversationrequest)
 16264  	if err != nil {
 16265  		return nil, err
 16266  	}
 16267  	c.urlParams_.Set("alt", alt)
 16268  	c.urlParams_.Set("prettyPrint", "false")
 16269  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:converse")
 16270  	urls += "?" + c.urlParams_.Encode()
 16271  	req, err := http.NewRequest("POST", urls, body)
 16272  	if err != nil {
 16273  		return nil, err
 16274  	}
 16275  	req.Header = reqHeaders
 16276  	googleapi.Expand(req.URL, map[string]string{
 16277  		"name": c.name,
 16278  	})
 16279  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16280  }
 16281  
 16282  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.converse" call.
 16283  // Any non-2xx status code is an error. Response headers are in either
 16284  // *GoogleCloudDiscoveryengineV1alphaConverseConversationResponse.ServerResponse
 16285  // .Header or (if a response was returned at all) in
 16286  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16287  // whether the returned error was because http.StatusNotModified was returned.
 16288  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConverseConversationResponse, error) {
 16289  	gensupport.SetOptions(c.urlParams_, opts...)
 16290  	res, err := c.doRequest("json")
 16291  	if res != nil && res.StatusCode == http.StatusNotModified {
 16292  		if res.Body != nil {
 16293  			res.Body.Close()
 16294  		}
 16295  		return nil, gensupport.WrapError(&googleapi.Error{
 16296  			Code:   res.StatusCode,
 16297  			Header: res.Header,
 16298  		})
 16299  	}
 16300  	if err != nil {
 16301  		return nil, err
 16302  	}
 16303  	defer googleapi.CloseBody(res)
 16304  	if err := googleapi.CheckResponse(res); err != nil {
 16305  		return nil, gensupport.WrapError(err)
 16306  	}
 16307  	ret := &GoogleCloudDiscoveryengineV1alphaConverseConversationResponse{
 16308  		ServerResponse: googleapi.ServerResponse{
 16309  			Header:         res.Header,
 16310  			HTTPStatusCode: res.StatusCode,
 16311  		},
 16312  	}
 16313  	target := &ret
 16314  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16315  		return nil, err
 16316  	}
 16317  	return ret, nil
 16318  }
 16319  
 16320  type ProjectsLocationsCollectionsDataStoresConversationsCreateCall struct {
 16321  	s                                             *Service
 16322  	parent                                        string
 16323  	googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation
 16324  	urlParams_                                    gensupport.URLParams
 16325  	ctx_                                          context.Context
 16326  	header_                                       http.Header
 16327  }
 16328  
 16329  // Create: Creates a Conversation. If the Conversation to create already
 16330  // exists, an ALREADY_EXISTS error is returned.
 16331  //
 16332  //   - parent: Full resource name of parent data store. Format:
 16333  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 16334  //     /dataStores/{data_store_id}`.
 16335  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Create(parent string, googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
 16336  	c := &ProjectsLocationsCollectionsDataStoresConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16337  	c.parent = parent
 16338  	c.googleclouddiscoveryenginev1alphaconversation = googleclouddiscoveryenginev1alphaconversation
 16339  	return c
 16340  }
 16341  
 16342  // Fields allows partial responses to be retrieved. See
 16343  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16344  // details.
 16345  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
 16346  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16347  	return c
 16348  }
 16349  
 16350  // Context sets the context to be used in this call's Do method.
 16351  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
 16352  	c.ctx_ = ctx
 16353  	return c
 16354  }
 16355  
 16356  // Header returns a http.Header that can be modified by the caller to add
 16357  // headers to the request.
 16358  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Header() http.Header {
 16359  	if c.header_ == nil {
 16360  		c.header_ = make(http.Header)
 16361  	}
 16362  	return c.header_
 16363  }
 16364  
 16365  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 16366  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16367  	var body io.Reader = nil
 16368  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconversation)
 16369  	if err != nil {
 16370  		return nil, err
 16371  	}
 16372  	c.urlParams_.Set("alt", alt)
 16373  	c.urlParams_.Set("prettyPrint", "false")
 16374  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversations")
 16375  	urls += "?" + c.urlParams_.Encode()
 16376  	req, err := http.NewRequest("POST", urls, body)
 16377  	if err != nil {
 16378  		return nil, err
 16379  	}
 16380  	req.Header = reqHeaders
 16381  	googleapi.Expand(req.URL, map[string]string{
 16382  		"parent": c.parent,
 16383  	})
 16384  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16385  }
 16386  
 16387  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.create" call.
 16388  // Any non-2xx status code is an error. Response headers are in either
 16389  // *GoogleCloudDiscoveryengineV1alphaConversation.ServerResponse.Header or (if
 16390  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 16391  // googleapi.IsNotModified to check whether the returned error was because
 16392  // http.StatusNotModified was returned.
 16393  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
 16394  	gensupport.SetOptions(c.urlParams_, opts...)
 16395  	res, err := c.doRequest("json")
 16396  	if res != nil && res.StatusCode == http.StatusNotModified {
 16397  		if res.Body != nil {
 16398  			res.Body.Close()
 16399  		}
 16400  		return nil, gensupport.WrapError(&googleapi.Error{
 16401  			Code:   res.StatusCode,
 16402  			Header: res.Header,
 16403  		})
 16404  	}
 16405  	if err != nil {
 16406  		return nil, err
 16407  	}
 16408  	defer googleapi.CloseBody(res)
 16409  	if err := googleapi.CheckResponse(res); err != nil {
 16410  		return nil, gensupport.WrapError(err)
 16411  	}
 16412  	ret := &GoogleCloudDiscoveryengineV1alphaConversation{
 16413  		ServerResponse: googleapi.ServerResponse{
 16414  			Header:         res.Header,
 16415  			HTTPStatusCode: res.StatusCode,
 16416  		},
 16417  	}
 16418  	target := &ret
 16419  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16420  		return nil, err
 16421  	}
 16422  	return ret, nil
 16423  }
 16424  
 16425  type ProjectsLocationsCollectionsDataStoresConversationsDeleteCall struct {
 16426  	s          *Service
 16427  	name       string
 16428  	urlParams_ gensupport.URLParams
 16429  	ctx_       context.Context
 16430  	header_    http.Header
 16431  }
 16432  
 16433  // Delete: Deletes a Conversation. If the Conversation to delete does not
 16434  // exist, a NOT_FOUND error is returned.
 16435  //
 16436  //   - name: The resource name of the Conversation to delete. Format:
 16437  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 16438  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 16439  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
 16440  	c := &ProjectsLocationsCollectionsDataStoresConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16441  	c.name = name
 16442  	return c
 16443  }
 16444  
 16445  // Fields allows partial responses to be retrieved. See
 16446  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16447  // details.
 16448  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
 16449  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16450  	return c
 16451  }
 16452  
 16453  // Context sets the context to be used in this call's Do method.
 16454  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
 16455  	c.ctx_ = ctx
 16456  	return c
 16457  }
 16458  
 16459  // Header returns a http.Header that can be modified by the caller to add
 16460  // headers to the request.
 16461  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Header() http.Header {
 16462  	if c.header_ == nil {
 16463  		c.header_ = make(http.Header)
 16464  	}
 16465  	return c.header_
 16466  }
 16467  
 16468  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 16469  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16470  	var body io.Reader = nil
 16471  	c.urlParams_.Set("alt", alt)
 16472  	c.urlParams_.Set("prettyPrint", "false")
 16473  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 16474  	urls += "?" + c.urlParams_.Encode()
 16475  	req, err := http.NewRequest("DELETE", urls, body)
 16476  	if err != nil {
 16477  		return nil, err
 16478  	}
 16479  	req.Header = reqHeaders
 16480  	googleapi.Expand(req.URL, map[string]string{
 16481  		"name": c.name,
 16482  	})
 16483  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16484  }
 16485  
 16486  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.delete" call.
 16487  // Any non-2xx status code is an error. Response headers are in either
 16488  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 16489  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 16490  // check whether the returned error was because http.StatusNotModified was
 16491  // returned.
 16492  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 16493  	gensupport.SetOptions(c.urlParams_, opts...)
 16494  	res, err := c.doRequest("json")
 16495  	if res != nil && res.StatusCode == http.StatusNotModified {
 16496  		if res.Body != nil {
 16497  			res.Body.Close()
 16498  		}
 16499  		return nil, gensupport.WrapError(&googleapi.Error{
 16500  			Code:   res.StatusCode,
 16501  			Header: res.Header,
 16502  		})
 16503  	}
 16504  	if err != nil {
 16505  		return nil, err
 16506  	}
 16507  	defer googleapi.CloseBody(res)
 16508  	if err := googleapi.CheckResponse(res); err != nil {
 16509  		return nil, gensupport.WrapError(err)
 16510  	}
 16511  	ret := &GoogleProtobufEmpty{
 16512  		ServerResponse: googleapi.ServerResponse{
 16513  			Header:         res.Header,
 16514  			HTTPStatusCode: res.StatusCode,
 16515  		},
 16516  	}
 16517  	target := &ret
 16518  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16519  		return nil, err
 16520  	}
 16521  	return ret, nil
 16522  }
 16523  
 16524  type ProjectsLocationsCollectionsDataStoresConversationsGetCall struct {
 16525  	s            *Service
 16526  	name         string
 16527  	urlParams_   gensupport.URLParams
 16528  	ifNoneMatch_ string
 16529  	ctx_         context.Context
 16530  	header_      http.Header
 16531  }
 16532  
 16533  // Get: Gets a Conversation.
 16534  //
 16535  //   - name: The resource name of the Conversation to get. Format:
 16536  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 16537  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 16538  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
 16539  	c := &ProjectsLocationsCollectionsDataStoresConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16540  	c.name = name
 16541  	return c
 16542  }
 16543  
 16544  // Fields allows partial responses to be retrieved. See
 16545  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16546  // details.
 16547  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
 16548  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16549  	return c
 16550  }
 16551  
 16552  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16553  // object's ETag matches the given value. This is useful for getting updates
 16554  // only after the object has changed since the last request.
 16555  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
 16556  	c.ifNoneMatch_ = entityTag
 16557  	return c
 16558  }
 16559  
 16560  // Context sets the context to be used in this call's Do method.
 16561  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
 16562  	c.ctx_ = ctx
 16563  	return c
 16564  }
 16565  
 16566  // Header returns a http.Header that can be modified by the caller to add
 16567  // headers to the request.
 16568  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Header() http.Header {
 16569  	if c.header_ == nil {
 16570  		c.header_ = make(http.Header)
 16571  	}
 16572  	return c.header_
 16573  }
 16574  
 16575  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 16576  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16577  	if c.ifNoneMatch_ != "" {
 16578  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16579  	}
 16580  	var body io.Reader = nil
 16581  	c.urlParams_.Set("alt", alt)
 16582  	c.urlParams_.Set("prettyPrint", "false")
 16583  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 16584  	urls += "?" + c.urlParams_.Encode()
 16585  	req, err := http.NewRequest("GET", urls, body)
 16586  	if err != nil {
 16587  		return nil, err
 16588  	}
 16589  	req.Header = reqHeaders
 16590  	googleapi.Expand(req.URL, map[string]string{
 16591  		"name": c.name,
 16592  	})
 16593  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16594  }
 16595  
 16596  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.get" call.
 16597  // Any non-2xx status code is an error. Response headers are in either
 16598  // *GoogleCloudDiscoveryengineV1alphaConversation.ServerResponse.Header or (if
 16599  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 16600  // googleapi.IsNotModified to check whether the returned error was because
 16601  // http.StatusNotModified was returned.
 16602  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
 16603  	gensupport.SetOptions(c.urlParams_, opts...)
 16604  	res, err := c.doRequest("json")
 16605  	if res != nil && res.StatusCode == http.StatusNotModified {
 16606  		if res.Body != nil {
 16607  			res.Body.Close()
 16608  		}
 16609  		return nil, gensupport.WrapError(&googleapi.Error{
 16610  			Code:   res.StatusCode,
 16611  			Header: res.Header,
 16612  		})
 16613  	}
 16614  	if err != nil {
 16615  		return nil, err
 16616  	}
 16617  	defer googleapi.CloseBody(res)
 16618  	if err := googleapi.CheckResponse(res); err != nil {
 16619  		return nil, gensupport.WrapError(err)
 16620  	}
 16621  	ret := &GoogleCloudDiscoveryengineV1alphaConversation{
 16622  		ServerResponse: googleapi.ServerResponse{
 16623  			Header:         res.Header,
 16624  			HTTPStatusCode: res.StatusCode,
 16625  		},
 16626  	}
 16627  	target := &ret
 16628  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16629  		return nil, err
 16630  	}
 16631  	return ret, nil
 16632  }
 16633  
 16634  type ProjectsLocationsCollectionsDataStoresConversationsListCall struct {
 16635  	s            *Service
 16636  	parent       string
 16637  	urlParams_   gensupport.URLParams
 16638  	ifNoneMatch_ string
 16639  	ctx_         context.Context
 16640  	header_      http.Header
 16641  }
 16642  
 16643  // List: Lists all Conversations by their parent DataStore.
 16644  //
 16645  //   - parent: The data store resource name. Format:
 16646  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 16647  //     /dataStores/{data_store_id}`.
 16648  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) List(parent string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 16649  	c := &ProjectsLocationsCollectionsDataStoresConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16650  	c.parent = parent
 16651  	return c
 16652  }
 16653  
 16654  // Filter sets the optional parameter "filter": A filter to apply on the list
 16655  // results. The supported features are: user_pseudo_id, state. Example:
 16656  // "user_pseudo_id = some_id"
 16657  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 16658  	c.urlParams_.Set("filter", filter)
 16659  	return c
 16660  }
 16661  
 16662  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 16663  // fields to order by, sorted in ascending order. Use "desc" after a field name
 16664  // for descending. Supported fields: * `update_time` * `create_time` *
 16665  // `conversation_name` Example: "update_time desc" "create_time"
 16666  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 16667  	c.urlParams_.Set("orderBy", orderBy)
 16668  	return c
 16669  }
 16670  
 16671  // PageSize sets the optional parameter "pageSize": Maximum number of results
 16672  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 16673  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 16674  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 16675  	return c
 16676  }
 16677  
 16678  // PageToken sets the optional parameter "pageToken": A page token, received
 16679  // from a previous `ListConversations` call. Provide this to retrieve the
 16680  // subsequent page.
 16681  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 16682  	c.urlParams_.Set("pageToken", pageToken)
 16683  	return c
 16684  }
 16685  
 16686  // Fields allows partial responses to be retrieved. See
 16687  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16688  // details.
 16689  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 16690  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16691  	return c
 16692  }
 16693  
 16694  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16695  // object's ETag matches the given value. This is useful for getting updates
 16696  // only after the object has changed since the last request.
 16697  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 16698  	c.ifNoneMatch_ = entityTag
 16699  	return c
 16700  }
 16701  
 16702  // Context sets the context to be used in this call's Do method.
 16703  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 16704  	c.ctx_ = ctx
 16705  	return c
 16706  }
 16707  
 16708  // Header returns a http.Header that can be modified by the caller to add
 16709  // headers to the request.
 16710  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Header() http.Header {
 16711  	if c.header_ == nil {
 16712  		c.header_ = make(http.Header)
 16713  	}
 16714  	return c.header_
 16715  }
 16716  
 16717  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) doRequest(alt string) (*http.Response, error) {
 16718  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16719  	if c.ifNoneMatch_ != "" {
 16720  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16721  	}
 16722  	var body io.Reader = nil
 16723  	c.urlParams_.Set("alt", alt)
 16724  	c.urlParams_.Set("prettyPrint", "false")
 16725  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversations")
 16726  	urls += "?" + c.urlParams_.Encode()
 16727  	req, err := http.NewRequest("GET", urls, body)
 16728  	if err != nil {
 16729  		return nil, err
 16730  	}
 16731  	req.Header = reqHeaders
 16732  	googleapi.Expand(req.URL, map[string]string{
 16733  		"parent": c.parent,
 16734  	})
 16735  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16736  }
 16737  
 16738  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.list" call.
 16739  // Any non-2xx status code is an error. Response headers are in either
 16740  // *GoogleCloudDiscoveryengineV1alphaListConversationsResponse.ServerResponse.He
 16741  // ader or (if a response was returned at all) in
 16742  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16743  // whether the returned error was because http.StatusNotModified was returned.
 16744  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListConversationsResponse, error) {
 16745  	gensupport.SetOptions(c.urlParams_, opts...)
 16746  	res, err := c.doRequest("json")
 16747  	if res != nil && res.StatusCode == http.StatusNotModified {
 16748  		if res.Body != nil {
 16749  			res.Body.Close()
 16750  		}
 16751  		return nil, gensupport.WrapError(&googleapi.Error{
 16752  			Code:   res.StatusCode,
 16753  			Header: res.Header,
 16754  		})
 16755  	}
 16756  	if err != nil {
 16757  		return nil, err
 16758  	}
 16759  	defer googleapi.CloseBody(res)
 16760  	if err := googleapi.CheckResponse(res); err != nil {
 16761  		return nil, gensupport.WrapError(err)
 16762  	}
 16763  	ret := &GoogleCloudDiscoveryengineV1alphaListConversationsResponse{
 16764  		ServerResponse: googleapi.ServerResponse{
 16765  			Header:         res.Header,
 16766  			HTTPStatusCode: res.StatusCode,
 16767  		},
 16768  	}
 16769  	target := &ret
 16770  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16771  		return nil, err
 16772  	}
 16773  	return ret, nil
 16774  }
 16775  
 16776  // Pages invokes f for each page of results.
 16777  // A non-nil error returned from f will halt the iteration.
 16778  // The provided context supersedes any context provided to the Context method.
 16779  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListConversationsResponse) error) error {
 16780  	c.ctx_ = ctx
 16781  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 16782  	for {
 16783  		x, err := c.Do()
 16784  		if err != nil {
 16785  			return err
 16786  		}
 16787  		if err := f(x); err != nil {
 16788  			return err
 16789  		}
 16790  		if x.NextPageToken == "" {
 16791  			return nil
 16792  		}
 16793  		c.PageToken(x.NextPageToken)
 16794  	}
 16795  }
 16796  
 16797  type ProjectsLocationsCollectionsDataStoresConversationsPatchCall struct {
 16798  	s                                             *Service
 16799  	name                                          string
 16800  	googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation
 16801  	urlParams_                                    gensupport.URLParams
 16802  	ctx_                                          context.Context
 16803  	header_                                       http.Header
 16804  }
 16805  
 16806  // Patch: Updates a Conversation. Conversation action type cannot be changed.
 16807  // If the Conversation to update does not exist, a NOT_FOUND error is returned.
 16808  //
 16809  //   - name: Immutable. Fully qualified name
 16810  //     `projects/{project}/locations/global/collections/{collection}/dataStore/*/c
 16811  //     onversations/*` or
 16812  //     `projects/{project}/locations/global/collections/{collection}/engines/*/con
 16813  //     versations/*`.
 16814  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Patch(name string, googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
 16815  	c := &ProjectsLocationsCollectionsDataStoresConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16816  	c.name = name
 16817  	c.googleclouddiscoveryenginev1alphaconversation = googleclouddiscoveryenginev1alphaconversation
 16818  	return c
 16819  }
 16820  
 16821  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 16822  // in the provided Conversation to update. The following are NOT supported: *
 16823  // Conversation.name If not set or empty, all supported fields are updated.
 16824  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
 16825  	c.urlParams_.Set("updateMask", updateMask)
 16826  	return c
 16827  }
 16828  
 16829  // Fields allows partial responses to be retrieved. See
 16830  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16831  // details.
 16832  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
 16833  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16834  	return c
 16835  }
 16836  
 16837  // Context sets the context to be used in this call's Do method.
 16838  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
 16839  	c.ctx_ = ctx
 16840  	return c
 16841  }
 16842  
 16843  // Header returns a http.Header that can be modified by the caller to add
 16844  // headers to the request.
 16845  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Header() http.Header {
 16846  	if c.header_ == nil {
 16847  		c.header_ = make(http.Header)
 16848  	}
 16849  	return c.header_
 16850  }
 16851  
 16852  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
 16853  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16854  	var body io.Reader = nil
 16855  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconversation)
 16856  	if err != nil {
 16857  		return nil, err
 16858  	}
 16859  	c.urlParams_.Set("alt", alt)
 16860  	c.urlParams_.Set("prettyPrint", "false")
 16861  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 16862  	urls += "?" + c.urlParams_.Encode()
 16863  	req, err := http.NewRequest("PATCH", urls, body)
 16864  	if err != nil {
 16865  		return nil, err
 16866  	}
 16867  	req.Header = reqHeaders
 16868  	googleapi.Expand(req.URL, map[string]string{
 16869  		"name": c.name,
 16870  	})
 16871  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16872  }
 16873  
 16874  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.patch" call.
 16875  // Any non-2xx status code is an error. Response headers are in either
 16876  // *GoogleCloudDiscoveryengineV1alphaConversation.ServerResponse.Header or (if
 16877  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 16878  // googleapi.IsNotModified to check whether the returned error was because
 16879  // http.StatusNotModified was returned.
 16880  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
 16881  	gensupport.SetOptions(c.urlParams_, opts...)
 16882  	res, err := c.doRequest("json")
 16883  	if res != nil && res.StatusCode == http.StatusNotModified {
 16884  		if res.Body != nil {
 16885  			res.Body.Close()
 16886  		}
 16887  		return nil, gensupport.WrapError(&googleapi.Error{
 16888  			Code:   res.StatusCode,
 16889  			Header: res.Header,
 16890  		})
 16891  	}
 16892  	if err != nil {
 16893  		return nil, err
 16894  	}
 16895  	defer googleapi.CloseBody(res)
 16896  	if err := googleapi.CheckResponse(res); err != nil {
 16897  		return nil, gensupport.WrapError(err)
 16898  	}
 16899  	ret := &GoogleCloudDiscoveryengineV1alphaConversation{
 16900  		ServerResponse: googleapi.ServerResponse{
 16901  			Header:         res.Header,
 16902  			HTTPStatusCode: res.StatusCode,
 16903  		},
 16904  	}
 16905  	target := &ret
 16906  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16907  		return nil, err
 16908  	}
 16909  	return ret, nil
 16910  }
 16911  
 16912  type ProjectsLocationsCollectionsDataStoresCustomModelsListCall struct {
 16913  	s            *Service
 16914  	dataStore    string
 16915  	urlParams_   gensupport.URLParams
 16916  	ifNoneMatch_ string
 16917  	ctx_         context.Context
 16918  	header_      http.Header
 16919  }
 16920  
 16921  // List: Gets a list of all the custom models.
 16922  //
 16923  //   - dataStore: The resource name of the parent Data Store, such as
 16924  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 16925  //     ult_data_store`. This field is used to identify the data store where to
 16926  //     fetch the models from.
 16927  func (r *ProjectsLocationsCollectionsDataStoresCustomModelsService) List(dataStore string) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
 16928  	c := &ProjectsLocationsCollectionsDataStoresCustomModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16929  	c.dataStore = dataStore
 16930  	return c
 16931  }
 16932  
 16933  // Fields allows partial responses to be retrieved. See
 16934  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16935  // details.
 16936  func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
 16937  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16938  	return c
 16939  }
 16940  
 16941  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16942  // object's ETag matches the given value. This is useful for getting updates
 16943  // only after the object has changed since the last request.
 16944  func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
 16945  	c.ifNoneMatch_ = entityTag
 16946  	return c
 16947  }
 16948  
 16949  // Context sets the context to be used in this call's Do method.
 16950  func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
 16951  	c.ctx_ = ctx
 16952  	return c
 16953  }
 16954  
 16955  // Header returns a http.Header that can be modified by the caller to add
 16956  // headers to the request.
 16957  func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Header() http.Header {
 16958  	if c.header_ == nil {
 16959  		c.header_ = make(http.Header)
 16960  	}
 16961  	return c.header_
 16962  }
 16963  
 16964  func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) doRequest(alt string) (*http.Response, error) {
 16965  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16966  	if c.ifNoneMatch_ != "" {
 16967  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16968  	}
 16969  	var body io.Reader = nil
 16970  	c.urlParams_.Set("alt", alt)
 16971  	c.urlParams_.Set("prettyPrint", "false")
 16972  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+dataStore}/customModels")
 16973  	urls += "?" + c.urlParams_.Encode()
 16974  	req, err := http.NewRequest("GET", urls, body)
 16975  	if err != nil {
 16976  		return nil, err
 16977  	}
 16978  	req.Header = reqHeaders
 16979  	googleapi.Expand(req.URL, map[string]string{
 16980  		"dataStore": c.dataStore,
 16981  	})
 16982  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16983  }
 16984  
 16985  // Do executes the "discoveryengine.projects.locations.collections.dataStores.customModels.list" call.
 16986  // Any non-2xx status code is an error. Response headers are in either
 16987  // *GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse.ServerResponse.Hea
 16988  // der or (if a response was returned at all) in
 16989  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 16990  // whether the returned error was because http.StatusNotModified was returned.
 16991  func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse, error) {
 16992  	gensupport.SetOptions(c.urlParams_, opts...)
 16993  	res, err := c.doRequest("json")
 16994  	if res != nil && res.StatusCode == http.StatusNotModified {
 16995  		if res.Body != nil {
 16996  			res.Body.Close()
 16997  		}
 16998  		return nil, gensupport.WrapError(&googleapi.Error{
 16999  			Code:   res.StatusCode,
 17000  			Header: res.Header,
 17001  		})
 17002  	}
 17003  	if err != nil {
 17004  		return nil, err
 17005  	}
 17006  	defer googleapi.CloseBody(res)
 17007  	if err := googleapi.CheckResponse(res); err != nil {
 17008  		return nil, gensupport.WrapError(err)
 17009  	}
 17010  	ret := &GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse{
 17011  		ServerResponse: googleapi.ServerResponse{
 17012  			Header:         res.Header,
 17013  			HTTPStatusCode: res.StatusCode,
 17014  		},
 17015  	}
 17016  	target := &ret
 17017  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17018  		return nil, err
 17019  	}
 17020  	return ret, nil
 17021  }
 17022  
 17023  type ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall struct {
 17024  	s            *Service
 17025  	name         string
 17026  	urlParams_   gensupport.URLParams
 17027  	ifNoneMatch_ string
 17028  	ctx_         context.Context
 17029  	header_      http.Header
 17030  }
 17031  
 17032  // Get: Gets the latest state of a long-running operation. Clients can use this
 17033  // method to poll the operation result at intervals as recommended by the API
 17034  // service.
 17035  //
 17036  // - name: The name of the operation resource.
 17037  func (r *ProjectsLocationsCollectionsDataStoresModelsOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
 17038  	c := &ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17039  	c.name = name
 17040  	return c
 17041  }
 17042  
 17043  // Fields allows partial responses to be retrieved. See
 17044  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17045  // details.
 17046  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
 17047  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17048  	return c
 17049  }
 17050  
 17051  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17052  // object's ETag matches the given value. This is useful for getting updates
 17053  // only after the object has changed since the last request.
 17054  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
 17055  	c.ifNoneMatch_ = entityTag
 17056  	return c
 17057  }
 17058  
 17059  // Context sets the context to be used in this call's Do method.
 17060  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
 17061  	c.ctx_ = ctx
 17062  	return c
 17063  }
 17064  
 17065  // Header returns a http.Header that can be modified by the caller to add
 17066  // headers to the request.
 17067  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Header() http.Header {
 17068  	if c.header_ == nil {
 17069  		c.header_ = make(http.Header)
 17070  	}
 17071  	return c.header_
 17072  }
 17073  
 17074  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 17075  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17076  	if c.ifNoneMatch_ != "" {
 17077  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17078  	}
 17079  	var body io.Reader = nil
 17080  	c.urlParams_.Set("alt", alt)
 17081  	c.urlParams_.Set("prettyPrint", "false")
 17082  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 17083  	urls += "?" + c.urlParams_.Encode()
 17084  	req, err := http.NewRequest("GET", urls, body)
 17085  	if err != nil {
 17086  		return nil, err
 17087  	}
 17088  	req.Header = reqHeaders
 17089  	googleapi.Expand(req.URL, map[string]string{
 17090  		"name": c.name,
 17091  	})
 17092  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17093  }
 17094  
 17095  // Do executes the "discoveryengine.projects.locations.collections.dataStores.models.operations.get" call.
 17096  // Any non-2xx status code is an error. Response headers are in either
 17097  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 17098  // returned at all) in error.(*googleapi.Error).Header. Use
 17099  // googleapi.IsNotModified to check whether the returned error was because
 17100  // http.StatusNotModified was returned.
 17101  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 17102  	gensupport.SetOptions(c.urlParams_, opts...)
 17103  	res, err := c.doRequest("json")
 17104  	if res != nil && res.StatusCode == http.StatusNotModified {
 17105  		if res.Body != nil {
 17106  			res.Body.Close()
 17107  		}
 17108  		return nil, gensupport.WrapError(&googleapi.Error{
 17109  			Code:   res.StatusCode,
 17110  			Header: res.Header,
 17111  		})
 17112  	}
 17113  	if err != nil {
 17114  		return nil, err
 17115  	}
 17116  	defer googleapi.CloseBody(res)
 17117  	if err := googleapi.CheckResponse(res); err != nil {
 17118  		return nil, gensupport.WrapError(err)
 17119  	}
 17120  	ret := &GoogleLongrunningOperation{
 17121  		ServerResponse: googleapi.ServerResponse{
 17122  			Header:         res.Header,
 17123  			HTTPStatusCode: res.StatusCode,
 17124  		},
 17125  	}
 17126  	target := &ret
 17127  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17128  		return nil, err
 17129  	}
 17130  	return ret, nil
 17131  }
 17132  
 17133  type ProjectsLocationsCollectionsDataStoresModelsOperationsListCall struct {
 17134  	s            *Service
 17135  	name         string
 17136  	urlParams_   gensupport.URLParams
 17137  	ifNoneMatch_ string
 17138  	ctx_         context.Context
 17139  	header_      http.Header
 17140  }
 17141  
 17142  // List: Lists operations that match the specified filter in the request. If
 17143  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 17144  //
 17145  // - name: The name of the operation's parent resource.
 17146  func (r *ProjectsLocationsCollectionsDataStoresModelsOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 17147  	c := &ProjectsLocationsCollectionsDataStoresModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17148  	c.name = name
 17149  	return c
 17150  }
 17151  
 17152  // Filter sets the optional parameter "filter": The standard list filter.
 17153  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 17154  	c.urlParams_.Set("filter", filter)
 17155  	return c
 17156  }
 17157  
 17158  // PageSize sets the optional parameter "pageSize": The standard list page
 17159  // size.
 17160  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 17161  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 17162  	return c
 17163  }
 17164  
 17165  // PageToken sets the optional parameter "pageToken": The standard list page
 17166  // token.
 17167  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 17168  	c.urlParams_.Set("pageToken", pageToken)
 17169  	return c
 17170  }
 17171  
 17172  // Fields allows partial responses to be retrieved. See
 17173  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17174  // details.
 17175  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 17176  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17177  	return c
 17178  }
 17179  
 17180  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17181  // object's ETag matches the given value. This is useful for getting updates
 17182  // only after the object has changed since the last request.
 17183  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 17184  	c.ifNoneMatch_ = entityTag
 17185  	return c
 17186  }
 17187  
 17188  // Context sets the context to be used in this call's Do method.
 17189  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 17190  	c.ctx_ = ctx
 17191  	return c
 17192  }
 17193  
 17194  // Header returns a http.Header that can be modified by the caller to add
 17195  // headers to the request.
 17196  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Header() http.Header {
 17197  	if c.header_ == nil {
 17198  		c.header_ = make(http.Header)
 17199  	}
 17200  	return c.header_
 17201  }
 17202  
 17203  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 17204  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17205  	if c.ifNoneMatch_ != "" {
 17206  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17207  	}
 17208  	var body io.Reader = nil
 17209  	c.urlParams_.Set("alt", alt)
 17210  	c.urlParams_.Set("prettyPrint", "false")
 17211  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 17212  	urls += "?" + c.urlParams_.Encode()
 17213  	req, err := http.NewRequest("GET", urls, body)
 17214  	if err != nil {
 17215  		return nil, err
 17216  	}
 17217  	req.Header = reqHeaders
 17218  	googleapi.Expand(req.URL, map[string]string{
 17219  		"name": c.name,
 17220  	})
 17221  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17222  }
 17223  
 17224  // Do executes the "discoveryengine.projects.locations.collections.dataStores.models.operations.list" call.
 17225  // Any non-2xx status code is an error. Response headers are in either
 17226  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 17227  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17228  // googleapi.IsNotModified to check whether the returned error was because
 17229  // http.StatusNotModified was returned.
 17230  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 17231  	gensupport.SetOptions(c.urlParams_, opts...)
 17232  	res, err := c.doRequest("json")
 17233  	if res != nil && res.StatusCode == http.StatusNotModified {
 17234  		if res.Body != nil {
 17235  			res.Body.Close()
 17236  		}
 17237  		return nil, gensupport.WrapError(&googleapi.Error{
 17238  			Code:   res.StatusCode,
 17239  			Header: res.Header,
 17240  		})
 17241  	}
 17242  	if err != nil {
 17243  		return nil, err
 17244  	}
 17245  	defer googleapi.CloseBody(res)
 17246  	if err := googleapi.CheckResponse(res); err != nil {
 17247  		return nil, gensupport.WrapError(err)
 17248  	}
 17249  	ret := &GoogleLongrunningListOperationsResponse{
 17250  		ServerResponse: googleapi.ServerResponse{
 17251  			Header:         res.Header,
 17252  			HTTPStatusCode: res.StatusCode,
 17253  		},
 17254  	}
 17255  	target := &ret
 17256  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17257  		return nil, err
 17258  	}
 17259  	return ret, nil
 17260  }
 17261  
 17262  // Pages invokes f for each page of results.
 17263  // A non-nil error returned from f will halt the iteration.
 17264  // The provided context supersedes any context provided to the Context method.
 17265  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 17266  	c.ctx_ = ctx
 17267  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 17268  	for {
 17269  		x, err := c.Do()
 17270  		if err != nil {
 17271  			return err
 17272  		}
 17273  		if err := f(x); err != nil {
 17274  			return err
 17275  		}
 17276  		if x.NextPageToken == "" {
 17277  			return nil
 17278  		}
 17279  		c.PageToken(x.NextPageToken)
 17280  	}
 17281  }
 17282  
 17283  type ProjectsLocationsCollectionsDataStoresOperationsGetCall struct {
 17284  	s            *Service
 17285  	name         string
 17286  	urlParams_   gensupport.URLParams
 17287  	ifNoneMatch_ string
 17288  	ctx_         context.Context
 17289  	header_      http.Header
 17290  }
 17291  
 17292  // Get: Gets the latest state of a long-running operation. Clients can use this
 17293  // method to poll the operation result at intervals as recommended by the API
 17294  // service.
 17295  //
 17296  // - name: The name of the operation resource.
 17297  func (r *ProjectsLocationsCollectionsDataStoresOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
 17298  	c := &ProjectsLocationsCollectionsDataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17299  	c.name = name
 17300  	return c
 17301  }
 17302  
 17303  // Fields allows partial responses to be retrieved. See
 17304  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17305  // details.
 17306  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
 17307  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17308  	return c
 17309  }
 17310  
 17311  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17312  // object's ETag matches the given value. This is useful for getting updates
 17313  // only after the object has changed since the last request.
 17314  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
 17315  	c.ifNoneMatch_ = entityTag
 17316  	return c
 17317  }
 17318  
 17319  // Context sets the context to be used in this call's Do method.
 17320  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
 17321  	c.ctx_ = ctx
 17322  	return c
 17323  }
 17324  
 17325  // Header returns a http.Header that can be modified by the caller to add
 17326  // headers to the request.
 17327  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Header() http.Header {
 17328  	if c.header_ == nil {
 17329  		c.header_ = make(http.Header)
 17330  	}
 17331  	return c.header_
 17332  }
 17333  
 17334  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 17335  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17336  	if c.ifNoneMatch_ != "" {
 17337  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17338  	}
 17339  	var body io.Reader = nil
 17340  	c.urlParams_.Set("alt", alt)
 17341  	c.urlParams_.Set("prettyPrint", "false")
 17342  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 17343  	urls += "?" + c.urlParams_.Encode()
 17344  	req, err := http.NewRequest("GET", urls, body)
 17345  	if err != nil {
 17346  		return nil, err
 17347  	}
 17348  	req.Header = reqHeaders
 17349  	googleapi.Expand(req.URL, map[string]string{
 17350  		"name": c.name,
 17351  	})
 17352  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17353  }
 17354  
 17355  // Do executes the "discoveryengine.projects.locations.collections.dataStores.operations.get" call.
 17356  // Any non-2xx status code is an error. Response headers are in either
 17357  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 17358  // returned at all) in error.(*googleapi.Error).Header. Use
 17359  // googleapi.IsNotModified to check whether the returned error was because
 17360  // http.StatusNotModified was returned.
 17361  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 17362  	gensupport.SetOptions(c.urlParams_, opts...)
 17363  	res, err := c.doRequest("json")
 17364  	if res != nil && res.StatusCode == http.StatusNotModified {
 17365  		if res.Body != nil {
 17366  			res.Body.Close()
 17367  		}
 17368  		return nil, gensupport.WrapError(&googleapi.Error{
 17369  			Code:   res.StatusCode,
 17370  			Header: res.Header,
 17371  		})
 17372  	}
 17373  	if err != nil {
 17374  		return nil, err
 17375  	}
 17376  	defer googleapi.CloseBody(res)
 17377  	if err := googleapi.CheckResponse(res); err != nil {
 17378  		return nil, gensupport.WrapError(err)
 17379  	}
 17380  	ret := &GoogleLongrunningOperation{
 17381  		ServerResponse: googleapi.ServerResponse{
 17382  			Header:         res.Header,
 17383  			HTTPStatusCode: res.StatusCode,
 17384  		},
 17385  	}
 17386  	target := &ret
 17387  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17388  		return nil, err
 17389  	}
 17390  	return ret, nil
 17391  }
 17392  
 17393  type ProjectsLocationsCollectionsDataStoresOperationsListCall struct {
 17394  	s            *Service
 17395  	name         string
 17396  	urlParams_   gensupport.URLParams
 17397  	ifNoneMatch_ string
 17398  	ctx_         context.Context
 17399  	header_      http.Header
 17400  }
 17401  
 17402  // List: Lists operations that match the specified filter in the request. If
 17403  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 17404  //
 17405  // - name: The name of the operation's parent resource.
 17406  func (r *ProjectsLocationsCollectionsDataStoresOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 17407  	c := &ProjectsLocationsCollectionsDataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17408  	c.name = name
 17409  	return c
 17410  }
 17411  
 17412  // Filter sets the optional parameter "filter": The standard list filter.
 17413  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 17414  	c.urlParams_.Set("filter", filter)
 17415  	return c
 17416  }
 17417  
 17418  // PageSize sets the optional parameter "pageSize": The standard list page
 17419  // size.
 17420  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 17421  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 17422  	return c
 17423  }
 17424  
 17425  // PageToken sets the optional parameter "pageToken": The standard list page
 17426  // token.
 17427  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 17428  	c.urlParams_.Set("pageToken", pageToken)
 17429  	return c
 17430  }
 17431  
 17432  // Fields allows partial responses to be retrieved. See
 17433  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17434  // details.
 17435  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 17436  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17437  	return c
 17438  }
 17439  
 17440  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17441  // object's ETag matches the given value. This is useful for getting updates
 17442  // only after the object has changed since the last request.
 17443  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 17444  	c.ifNoneMatch_ = entityTag
 17445  	return c
 17446  }
 17447  
 17448  // Context sets the context to be used in this call's Do method.
 17449  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 17450  	c.ctx_ = ctx
 17451  	return c
 17452  }
 17453  
 17454  // Header returns a http.Header that can be modified by the caller to add
 17455  // headers to the request.
 17456  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Header() http.Header {
 17457  	if c.header_ == nil {
 17458  		c.header_ = make(http.Header)
 17459  	}
 17460  	return c.header_
 17461  }
 17462  
 17463  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) {
 17464  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17465  	if c.ifNoneMatch_ != "" {
 17466  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17467  	}
 17468  	var body io.Reader = nil
 17469  	c.urlParams_.Set("alt", alt)
 17470  	c.urlParams_.Set("prettyPrint", "false")
 17471  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 17472  	urls += "?" + c.urlParams_.Encode()
 17473  	req, err := http.NewRequest("GET", urls, body)
 17474  	if err != nil {
 17475  		return nil, err
 17476  	}
 17477  	req.Header = reqHeaders
 17478  	googleapi.Expand(req.URL, map[string]string{
 17479  		"name": c.name,
 17480  	})
 17481  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17482  }
 17483  
 17484  // Do executes the "discoveryengine.projects.locations.collections.dataStores.operations.list" call.
 17485  // Any non-2xx status code is an error. Response headers are in either
 17486  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 17487  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17488  // googleapi.IsNotModified to check whether the returned error was because
 17489  // http.StatusNotModified was returned.
 17490  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 17491  	gensupport.SetOptions(c.urlParams_, opts...)
 17492  	res, err := c.doRequest("json")
 17493  	if res != nil && res.StatusCode == http.StatusNotModified {
 17494  		if res.Body != nil {
 17495  			res.Body.Close()
 17496  		}
 17497  		return nil, gensupport.WrapError(&googleapi.Error{
 17498  			Code:   res.StatusCode,
 17499  			Header: res.Header,
 17500  		})
 17501  	}
 17502  	if err != nil {
 17503  		return nil, err
 17504  	}
 17505  	defer googleapi.CloseBody(res)
 17506  	if err := googleapi.CheckResponse(res); err != nil {
 17507  		return nil, gensupport.WrapError(err)
 17508  	}
 17509  	ret := &GoogleLongrunningListOperationsResponse{
 17510  		ServerResponse: googleapi.ServerResponse{
 17511  			Header:         res.Header,
 17512  			HTTPStatusCode: res.StatusCode,
 17513  		},
 17514  	}
 17515  	target := &ret
 17516  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17517  		return nil, err
 17518  	}
 17519  	return ret, nil
 17520  }
 17521  
 17522  // Pages invokes f for each page of results.
 17523  // A non-nil error returned from f will halt the iteration.
 17524  // The provided context supersedes any context provided to the Context method.
 17525  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 17526  	c.ctx_ = ctx
 17527  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 17528  	for {
 17529  		x, err := c.Do()
 17530  		if err != nil {
 17531  			return err
 17532  		}
 17533  		if err := f(x); err != nil {
 17534  			return err
 17535  		}
 17536  		if x.NextPageToken == "" {
 17537  			return nil
 17538  		}
 17539  		c.PageToken(x.NextPageToken)
 17540  	}
 17541  }
 17542  
 17543  type ProjectsLocationsCollectionsDataStoresSchemasCreateCall struct {
 17544  	s                                       *Service
 17545  	parent                                  string
 17546  	googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema
 17547  	urlParams_                              gensupport.URLParams
 17548  	ctx_                                    context.Context
 17549  	header_                                 http.Header
 17550  }
 17551  
 17552  // Create: Creates a Schema.
 17553  //
 17554  //   - parent: The parent data store resource name, in the format of
 17555  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 17556  //     s/{data_store}`.
 17557  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Create(parent string, googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
 17558  	c := &ProjectsLocationsCollectionsDataStoresSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17559  	c.parent = parent
 17560  	c.googleclouddiscoveryenginev1alphaschema = googleclouddiscoveryenginev1alphaschema
 17561  	return c
 17562  }
 17563  
 17564  // SchemaId sets the optional parameter "schemaId": Required. The ID to use for
 17565  // the Schema, which will become the final component of the Schema.name. This
 17566  // field should conform to RFC-1034 (https://tools.ietf.org/html/rfc1034)
 17567  // standard with a length limit of 63 characters.
 17568  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) SchemaId(schemaId string) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
 17569  	c.urlParams_.Set("schemaId", schemaId)
 17570  	return c
 17571  }
 17572  
 17573  // Fields allows partial responses to be retrieved. See
 17574  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17575  // details.
 17576  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
 17577  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17578  	return c
 17579  }
 17580  
 17581  // Context sets the context to be used in this call's Do method.
 17582  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
 17583  	c.ctx_ = ctx
 17584  	return c
 17585  }
 17586  
 17587  // Header returns a http.Header that can be modified by the caller to add
 17588  // headers to the request.
 17589  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Header() http.Header {
 17590  	if c.header_ == nil {
 17591  		c.header_ = make(http.Header)
 17592  	}
 17593  	return c.header_
 17594  }
 17595  
 17596  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) doRequest(alt string) (*http.Response, error) {
 17597  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17598  	var body io.Reader = nil
 17599  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaschema)
 17600  	if err != nil {
 17601  		return nil, err
 17602  	}
 17603  	c.urlParams_.Set("alt", alt)
 17604  	c.urlParams_.Set("prettyPrint", "false")
 17605  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/schemas")
 17606  	urls += "?" + c.urlParams_.Encode()
 17607  	req, err := http.NewRequest("POST", urls, body)
 17608  	if err != nil {
 17609  		return nil, err
 17610  	}
 17611  	req.Header = reqHeaders
 17612  	googleapi.Expand(req.URL, map[string]string{
 17613  		"parent": c.parent,
 17614  	})
 17615  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17616  }
 17617  
 17618  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.create" call.
 17619  // Any non-2xx status code is an error. Response headers are in either
 17620  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 17621  // returned at all) in error.(*googleapi.Error).Header. Use
 17622  // googleapi.IsNotModified to check whether the returned error was because
 17623  // http.StatusNotModified was returned.
 17624  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 17625  	gensupport.SetOptions(c.urlParams_, opts...)
 17626  	res, err := c.doRequest("json")
 17627  	if res != nil && res.StatusCode == http.StatusNotModified {
 17628  		if res.Body != nil {
 17629  			res.Body.Close()
 17630  		}
 17631  		return nil, gensupport.WrapError(&googleapi.Error{
 17632  			Code:   res.StatusCode,
 17633  			Header: res.Header,
 17634  		})
 17635  	}
 17636  	if err != nil {
 17637  		return nil, err
 17638  	}
 17639  	defer googleapi.CloseBody(res)
 17640  	if err := googleapi.CheckResponse(res); err != nil {
 17641  		return nil, gensupport.WrapError(err)
 17642  	}
 17643  	ret := &GoogleLongrunningOperation{
 17644  		ServerResponse: googleapi.ServerResponse{
 17645  			Header:         res.Header,
 17646  			HTTPStatusCode: res.StatusCode,
 17647  		},
 17648  	}
 17649  	target := &ret
 17650  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17651  		return nil, err
 17652  	}
 17653  	return ret, nil
 17654  }
 17655  
 17656  type ProjectsLocationsCollectionsDataStoresSchemasDeleteCall struct {
 17657  	s          *Service
 17658  	name       string
 17659  	urlParams_ gensupport.URLParams
 17660  	ctx_       context.Context
 17661  	header_    http.Header
 17662  }
 17663  
 17664  // Delete: Deletes a Schema.
 17665  //
 17666  //   - name: The full resource name of the schema, in the format of
 17667  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 17668  //     s/{data_store}/schemas/{schema}`.
 17669  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
 17670  	c := &ProjectsLocationsCollectionsDataStoresSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17671  	c.name = name
 17672  	return c
 17673  }
 17674  
 17675  // Fields allows partial responses to be retrieved. See
 17676  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17677  // details.
 17678  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
 17679  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17680  	return c
 17681  }
 17682  
 17683  // Context sets the context to be used in this call's Do method.
 17684  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
 17685  	c.ctx_ = ctx
 17686  	return c
 17687  }
 17688  
 17689  // Header returns a http.Header that can be modified by the caller to add
 17690  // headers to the request.
 17691  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Header() http.Header {
 17692  	if c.header_ == nil {
 17693  		c.header_ = make(http.Header)
 17694  	}
 17695  	return c.header_
 17696  }
 17697  
 17698  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) doRequest(alt string) (*http.Response, error) {
 17699  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17700  	var body io.Reader = nil
 17701  	c.urlParams_.Set("alt", alt)
 17702  	c.urlParams_.Set("prettyPrint", "false")
 17703  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 17704  	urls += "?" + c.urlParams_.Encode()
 17705  	req, err := http.NewRequest("DELETE", urls, body)
 17706  	if err != nil {
 17707  		return nil, err
 17708  	}
 17709  	req.Header = reqHeaders
 17710  	googleapi.Expand(req.URL, map[string]string{
 17711  		"name": c.name,
 17712  	})
 17713  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17714  }
 17715  
 17716  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.delete" call.
 17717  // Any non-2xx status code is an error. Response headers are in either
 17718  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 17719  // returned at all) in error.(*googleapi.Error).Header. Use
 17720  // googleapi.IsNotModified to check whether the returned error was because
 17721  // http.StatusNotModified was returned.
 17722  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 17723  	gensupport.SetOptions(c.urlParams_, opts...)
 17724  	res, err := c.doRequest("json")
 17725  	if res != nil && res.StatusCode == http.StatusNotModified {
 17726  		if res.Body != nil {
 17727  			res.Body.Close()
 17728  		}
 17729  		return nil, gensupport.WrapError(&googleapi.Error{
 17730  			Code:   res.StatusCode,
 17731  			Header: res.Header,
 17732  		})
 17733  	}
 17734  	if err != nil {
 17735  		return nil, err
 17736  	}
 17737  	defer googleapi.CloseBody(res)
 17738  	if err := googleapi.CheckResponse(res); err != nil {
 17739  		return nil, gensupport.WrapError(err)
 17740  	}
 17741  	ret := &GoogleLongrunningOperation{
 17742  		ServerResponse: googleapi.ServerResponse{
 17743  			Header:         res.Header,
 17744  			HTTPStatusCode: res.StatusCode,
 17745  		},
 17746  	}
 17747  	target := &ret
 17748  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17749  		return nil, err
 17750  	}
 17751  	return ret, nil
 17752  }
 17753  
 17754  type ProjectsLocationsCollectionsDataStoresSchemasGetCall struct {
 17755  	s            *Service
 17756  	name         string
 17757  	urlParams_   gensupport.URLParams
 17758  	ifNoneMatch_ string
 17759  	ctx_         context.Context
 17760  	header_      http.Header
 17761  }
 17762  
 17763  // Get: Gets a Schema.
 17764  //
 17765  //   - name: The full resource name of the schema, in the format of
 17766  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 17767  //     s/{data_store}/schemas/{schema}`.
 17768  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Get(name string) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
 17769  	c := &ProjectsLocationsCollectionsDataStoresSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17770  	c.name = name
 17771  	return c
 17772  }
 17773  
 17774  // Fields allows partial responses to be retrieved. See
 17775  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17776  // details.
 17777  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
 17778  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17779  	return c
 17780  }
 17781  
 17782  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17783  // object's ETag matches the given value. This is useful for getting updates
 17784  // only after the object has changed since the last request.
 17785  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
 17786  	c.ifNoneMatch_ = entityTag
 17787  	return c
 17788  }
 17789  
 17790  // Context sets the context to be used in this call's Do method.
 17791  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
 17792  	c.ctx_ = ctx
 17793  	return c
 17794  }
 17795  
 17796  // Header returns a http.Header that can be modified by the caller to add
 17797  // headers to the request.
 17798  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Header() http.Header {
 17799  	if c.header_ == nil {
 17800  		c.header_ = make(http.Header)
 17801  	}
 17802  	return c.header_
 17803  }
 17804  
 17805  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) doRequest(alt string) (*http.Response, error) {
 17806  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17807  	if c.ifNoneMatch_ != "" {
 17808  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17809  	}
 17810  	var body io.Reader = nil
 17811  	c.urlParams_.Set("alt", alt)
 17812  	c.urlParams_.Set("prettyPrint", "false")
 17813  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 17814  	urls += "?" + c.urlParams_.Encode()
 17815  	req, err := http.NewRequest("GET", urls, body)
 17816  	if err != nil {
 17817  		return nil, err
 17818  	}
 17819  	req.Header = reqHeaders
 17820  	googleapi.Expand(req.URL, map[string]string{
 17821  		"name": c.name,
 17822  	})
 17823  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17824  }
 17825  
 17826  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.get" call.
 17827  // Any non-2xx status code is an error. Response headers are in either
 17828  // *GoogleCloudDiscoveryengineV1alphaSchema.ServerResponse.Header or (if a
 17829  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17830  // googleapi.IsNotModified to check whether the returned error was because
 17831  // http.StatusNotModified was returned.
 17832  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSchema, error) {
 17833  	gensupport.SetOptions(c.urlParams_, opts...)
 17834  	res, err := c.doRequest("json")
 17835  	if res != nil && res.StatusCode == http.StatusNotModified {
 17836  		if res.Body != nil {
 17837  			res.Body.Close()
 17838  		}
 17839  		return nil, gensupport.WrapError(&googleapi.Error{
 17840  			Code:   res.StatusCode,
 17841  			Header: res.Header,
 17842  		})
 17843  	}
 17844  	if err != nil {
 17845  		return nil, err
 17846  	}
 17847  	defer googleapi.CloseBody(res)
 17848  	if err := googleapi.CheckResponse(res); err != nil {
 17849  		return nil, gensupport.WrapError(err)
 17850  	}
 17851  	ret := &GoogleCloudDiscoveryengineV1alphaSchema{
 17852  		ServerResponse: googleapi.ServerResponse{
 17853  			Header:         res.Header,
 17854  			HTTPStatusCode: res.StatusCode,
 17855  		},
 17856  	}
 17857  	target := &ret
 17858  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17859  		return nil, err
 17860  	}
 17861  	return ret, nil
 17862  }
 17863  
 17864  type ProjectsLocationsCollectionsDataStoresSchemasListCall struct {
 17865  	s            *Service
 17866  	parent       string
 17867  	urlParams_   gensupport.URLParams
 17868  	ifNoneMatch_ string
 17869  	ctx_         context.Context
 17870  	header_      http.Header
 17871  }
 17872  
 17873  // List: Gets a list of Schemas.
 17874  //
 17875  //   - parent: The parent data store resource name, in the format of
 17876  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 17877  //     s/{data_store}`.
 17878  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) List(parent string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 17879  	c := &ProjectsLocationsCollectionsDataStoresSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17880  	c.parent = parent
 17881  	return c
 17882  }
 17883  
 17884  // PageSize sets the optional parameter "pageSize": The maximum number of
 17885  // Schemas to return. The service may return fewer than this value. If
 17886  // unspecified, at most 100 Schemas will be returned. The maximum value is
 17887  // 1000; values above 1000 will be coerced to 1000.
 17888  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 17889  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 17890  	return c
 17891  }
 17892  
 17893  // PageToken sets the optional parameter "pageToken": A page token, received
 17894  // from a previous SchemaService.ListSchemas call. Provide this to retrieve the
 17895  // subsequent page. When paginating, all other parameters provided to
 17896  // SchemaService.ListSchemas must match the call that provided the page token.
 17897  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 17898  	c.urlParams_.Set("pageToken", pageToken)
 17899  	return c
 17900  }
 17901  
 17902  // Fields allows partial responses to be retrieved. See
 17903  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17904  // details.
 17905  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 17906  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17907  	return c
 17908  }
 17909  
 17910  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17911  // object's ETag matches the given value. This is useful for getting updates
 17912  // only after the object has changed since the last request.
 17913  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 17914  	c.ifNoneMatch_ = entityTag
 17915  	return c
 17916  }
 17917  
 17918  // Context sets the context to be used in this call's Do method.
 17919  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 17920  	c.ctx_ = ctx
 17921  	return c
 17922  }
 17923  
 17924  // Header returns a http.Header that can be modified by the caller to add
 17925  // headers to the request.
 17926  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Header() http.Header {
 17927  	if c.header_ == nil {
 17928  		c.header_ = make(http.Header)
 17929  	}
 17930  	return c.header_
 17931  }
 17932  
 17933  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) doRequest(alt string) (*http.Response, error) {
 17934  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17935  	if c.ifNoneMatch_ != "" {
 17936  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17937  	}
 17938  	var body io.Reader = nil
 17939  	c.urlParams_.Set("alt", alt)
 17940  	c.urlParams_.Set("prettyPrint", "false")
 17941  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/schemas")
 17942  	urls += "?" + c.urlParams_.Encode()
 17943  	req, err := http.NewRequest("GET", urls, body)
 17944  	if err != nil {
 17945  		return nil, err
 17946  	}
 17947  	req.Header = reqHeaders
 17948  	googleapi.Expand(req.URL, map[string]string{
 17949  		"parent": c.parent,
 17950  	})
 17951  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17952  }
 17953  
 17954  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.list" call.
 17955  // Any non-2xx status code is an error. Response headers are in either
 17956  // *GoogleCloudDiscoveryengineV1alphaListSchemasResponse.ServerResponse.Header
 17957  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 17958  // Use googleapi.IsNotModified to check whether the returned error was because
 17959  // http.StatusNotModified was returned.
 17960  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListSchemasResponse, error) {
 17961  	gensupport.SetOptions(c.urlParams_, opts...)
 17962  	res, err := c.doRequest("json")
 17963  	if res != nil && res.StatusCode == http.StatusNotModified {
 17964  		if res.Body != nil {
 17965  			res.Body.Close()
 17966  		}
 17967  		return nil, gensupport.WrapError(&googleapi.Error{
 17968  			Code:   res.StatusCode,
 17969  			Header: res.Header,
 17970  		})
 17971  	}
 17972  	if err != nil {
 17973  		return nil, err
 17974  	}
 17975  	defer googleapi.CloseBody(res)
 17976  	if err := googleapi.CheckResponse(res); err != nil {
 17977  		return nil, gensupport.WrapError(err)
 17978  	}
 17979  	ret := &GoogleCloudDiscoveryengineV1alphaListSchemasResponse{
 17980  		ServerResponse: googleapi.ServerResponse{
 17981  			Header:         res.Header,
 17982  			HTTPStatusCode: res.StatusCode,
 17983  		},
 17984  	}
 17985  	target := &ret
 17986  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17987  		return nil, err
 17988  	}
 17989  	return ret, nil
 17990  }
 17991  
 17992  // Pages invokes f for each page of results.
 17993  // A non-nil error returned from f will halt the iteration.
 17994  // The provided context supersedes any context provided to the Context method.
 17995  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListSchemasResponse) error) error {
 17996  	c.ctx_ = ctx
 17997  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 17998  	for {
 17999  		x, err := c.Do()
 18000  		if err != nil {
 18001  			return err
 18002  		}
 18003  		if err := f(x); err != nil {
 18004  			return err
 18005  		}
 18006  		if x.NextPageToken == "" {
 18007  			return nil
 18008  		}
 18009  		c.PageToken(x.NextPageToken)
 18010  	}
 18011  }
 18012  
 18013  type ProjectsLocationsCollectionsDataStoresSchemasPatchCall struct {
 18014  	s                                       *Service
 18015  	name                                    string
 18016  	googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema
 18017  	urlParams_                              gensupport.URLParams
 18018  	ctx_                                    context.Context
 18019  	header_                                 http.Header
 18020  }
 18021  
 18022  // Patch: Updates a Schema.
 18023  //
 18024  //   - name: Immutable. The full resource name of the schema, in the format of
 18025  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 18026  //     s/{data_store}/schemas/{schema}`. This field must be a UTF-8 encoded
 18027  //     string with a length limit of 1024 characters.
 18028  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Patch(name string, googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
 18029  	c := &ProjectsLocationsCollectionsDataStoresSchemasPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18030  	c.name = name
 18031  	c.googleclouddiscoveryenginev1alphaschema = googleclouddiscoveryenginev1alphaschema
 18032  	return c
 18033  }
 18034  
 18035  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 18036  // the Schema is not found, a new Schema will be created. In this situation,
 18037  // `update_mask` is ignored.
 18038  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
 18039  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 18040  	return c
 18041  }
 18042  
 18043  // Fields allows partial responses to be retrieved. See
 18044  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18045  // details.
 18046  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
 18047  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18048  	return c
 18049  }
 18050  
 18051  // Context sets the context to be used in this call's Do method.
 18052  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
 18053  	c.ctx_ = ctx
 18054  	return c
 18055  }
 18056  
 18057  // Header returns a http.Header that can be modified by the caller to add
 18058  // headers to the request.
 18059  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Header() http.Header {
 18060  	if c.header_ == nil {
 18061  		c.header_ = make(http.Header)
 18062  	}
 18063  	return c.header_
 18064  }
 18065  
 18066  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) doRequest(alt string) (*http.Response, error) {
 18067  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18068  	var body io.Reader = nil
 18069  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaschema)
 18070  	if err != nil {
 18071  		return nil, err
 18072  	}
 18073  	c.urlParams_.Set("alt", alt)
 18074  	c.urlParams_.Set("prettyPrint", "false")
 18075  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 18076  	urls += "?" + c.urlParams_.Encode()
 18077  	req, err := http.NewRequest("PATCH", urls, body)
 18078  	if err != nil {
 18079  		return nil, err
 18080  	}
 18081  	req.Header = reqHeaders
 18082  	googleapi.Expand(req.URL, map[string]string{
 18083  		"name": c.name,
 18084  	})
 18085  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18086  }
 18087  
 18088  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.patch" call.
 18089  // Any non-2xx status code is an error. Response headers are in either
 18090  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 18091  // returned at all) in error.(*googleapi.Error).Header. Use
 18092  // googleapi.IsNotModified to check whether the returned error was because
 18093  // http.StatusNotModified was returned.
 18094  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 18095  	gensupport.SetOptions(c.urlParams_, opts...)
 18096  	res, err := c.doRequest("json")
 18097  	if res != nil && res.StatusCode == http.StatusNotModified {
 18098  		if res.Body != nil {
 18099  			res.Body.Close()
 18100  		}
 18101  		return nil, gensupport.WrapError(&googleapi.Error{
 18102  			Code:   res.StatusCode,
 18103  			Header: res.Header,
 18104  		})
 18105  	}
 18106  	if err != nil {
 18107  		return nil, err
 18108  	}
 18109  	defer googleapi.CloseBody(res)
 18110  	if err := googleapi.CheckResponse(res); err != nil {
 18111  		return nil, gensupport.WrapError(err)
 18112  	}
 18113  	ret := &GoogleLongrunningOperation{
 18114  		ServerResponse: googleapi.ServerResponse{
 18115  			Header:         res.Header,
 18116  			HTTPStatusCode: res.StatusCode,
 18117  		},
 18118  	}
 18119  	target := &ret
 18120  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18121  		return nil, err
 18122  	}
 18123  	return ret, nil
 18124  }
 18125  
 18126  type ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall struct {
 18127  	s            *Service
 18128  	name         string
 18129  	urlParams_   gensupport.URLParams
 18130  	ifNoneMatch_ string
 18131  	ctx_         context.Context
 18132  	header_      http.Header
 18133  }
 18134  
 18135  // Get: Gets the latest state of a long-running operation. Clients can use this
 18136  // method to poll the operation result at intervals as recommended by the API
 18137  // service.
 18138  //
 18139  // - name: The name of the operation resource.
 18140  func (r *ProjectsLocationsCollectionsDataStoresSchemasOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
 18141  	c := &ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18142  	c.name = name
 18143  	return c
 18144  }
 18145  
 18146  // Fields allows partial responses to be retrieved. See
 18147  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18148  // details.
 18149  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
 18150  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18151  	return c
 18152  }
 18153  
 18154  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18155  // object's ETag matches the given value. This is useful for getting updates
 18156  // only after the object has changed since the last request.
 18157  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
 18158  	c.ifNoneMatch_ = entityTag
 18159  	return c
 18160  }
 18161  
 18162  // Context sets the context to be used in this call's Do method.
 18163  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
 18164  	c.ctx_ = ctx
 18165  	return c
 18166  }
 18167  
 18168  // Header returns a http.Header that can be modified by the caller to add
 18169  // headers to the request.
 18170  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Header() http.Header {
 18171  	if c.header_ == nil {
 18172  		c.header_ = make(http.Header)
 18173  	}
 18174  	return c.header_
 18175  }
 18176  
 18177  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 18178  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18179  	if c.ifNoneMatch_ != "" {
 18180  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18181  	}
 18182  	var body io.Reader = nil
 18183  	c.urlParams_.Set("alt", alt)
 18184  	c.urlParams_.Set("prettyPrint", "false")
 18185  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 18186  	urls += "?" + c.urlParams_.Encode()
 18187  	req, err := http.NewRequest("GET", urls, body)
 18188  	if err != nil {
 18189  		return nil, err
 18190  	}
 18191  	req.Header = reqHeaders
 18192  	googleapi.Expand(req.URL, map[string]string{
 18193  		"name": c.name,
 18194  	})
 18195  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18196  }
 18197  
 18198  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.operations.get" call.
 18199  // Any non-2xx status code is an error. Response headers are in either
 18200  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 18201  // returned at all) in error.(*googleapi.Error).Header. Use
 18202  // googleapi.IsNotModified to check whether the returned error was because
 18203  // http.StatusNotModified was returned.
 18204  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 18205  	gensupport.SetOptions(c.urlParams_, opts...)
 18206  	res, err := c.doRequest("json")
 18207  	if res != nil && res.StatusCode == http.StatusNotModified {
 18208  		if res.Body != nil {
 18209  			res.Body.Close()
 18210  		}
 18211  		return nil, gensupport.WrapError(&googleapi.Error{
 18212  			Code:   res.StatusCode,
 18213  			Header: res.Header,
 18214  		})
 18215  	}
 18216  	if err != nil {
 18217  		return nil, err
 18218  	}
 18219  	defer googleapi.CloseBody(res)
 18220  	if err := googleapi.CheckResponse(res); err != nil {
 18221  		return nil, gensupport.WrapError(err)
 18222  	}
 18223  	ret := &GoogleLongrunningOperation{
 18224  		ServerResponse: googleapi.ServerResponse{
 18225  			Header:         res.Header,
 18226  			HTTPStatusCode: res.StatusCode,
 18227  		},
 18228  	}
 18229  	target := &ret
 18230  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18231  		return nil, err
 18232  	}
 18233  	return ret, nil
 18234  }
 18235  
 18236  type ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall struct {
 18237  	s            *Service
 18238  	name         string
 18239  	urlParams_   gensupport.URLParams
 18240  	ifNoneMatch_ string
 18241  	ctx_         context.Context
 18242  	header_      http.Header
 18243  }
 18244  
 18245  // List: Lists operations that match the specified filter in the request. If
 18246  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 18247  //
 18248  // - name: The name of the operation's parent resource.
 18249  func (r *ProjectsLocationsCollectionsDataStoresSchemasOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 18250  	c := &ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18251  	c.name = name
 18252  	return c
 18253  }
 18254  
 18255  // Filter sets the optional parameter "filter": The standard list filter.
 18256  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 18257  	c.urlParams_.Set("filter", filter)
 18258  	return c
 18259  }
 18260  
 18261  // PageSize sets the optional parameter "pageSize": The standard list page
 18262  // size.
 18263  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 18264  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18265  	return c
 18266  }
 18267  
 18268  // PageToken sets the optional parameter "pageToken": The standard list page
 18269  // token.
 18270  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 18271  	c.urlParams_.Set("pageToken", pageToken)
 18272  	return c
 18273  }
 18274  
 18275  // Fields allows partial responses to be retrieved. See
 18276  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18277  // details.
 18278  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 18279  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18280  	return c
 18281  }
 18282  
 18283  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18284  // object's ETag matches the given value. This is useful for getting updates
 18285  // only after the object has changed since the last request.
 18286  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 18287  	c.ifNoneMatch_ = entityTag
 18288  	return c
 18289  }
 18290  
 18291  // Context sets the context to be used in this call's Do method.
 18292  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 18293  	c.ctx_ = ctx
 18294  	return c
 18295  }
 18296  
 18297  // Header returns a http.Header that can be modified by the caller to add
 18298  // headers to the request.
 18299  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Header() http.Header {
 18300  	if c.header_ == nil {
 18301  		c.header_ = make(http.Header)
 18302  	}
 18303  	return c.header_
 18304  }
 18305  
 18306  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) doRequest(alt string) (*http.Response, error) {
 18307  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18308  	if c.ifNoneMatch_ != "" {
 18309  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18310  	}
 18311  	var body io.Reader = nil
 18312  	c.urlParams_.Set("alt", alt)
 18313  	c.urlParams_.Set("prettyPrint", "false")
 18314  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 18315  	urls += "?" + c.urlParams_.Encode()
 18316  	req, err := http.NewRequest("GET", urls, body)
 18317  	if err != nil {
 18318  		return nil, err
 18319  	}
 18320  	req.Header = reqHeaders
 18321  	googleapi.Expand(req.URL, map[string]string{
 18322  		"name": c.name,
 18323  	})
 18324  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18325  }
 18326  
 18327  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.operations.list" call.
 18328  // Any non-2xx status code is an error. Response headers are in either
 18329  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 18330  // response was returned at all) in error.(*googleapi.Error).Header. Use
 18331  // googleapi.IsNotModified to check whether the returned error was because
 18332  // http.StatusNotModified was returned.
 18333  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 18334  	gensupport.SetOptions(c.urlParams_, opts...)
 18335  	res, err := c.doRequest("json")
 18336  	if res != nil && res.StatusCode == http.StatusNotModified {
 18337  		if res.Body != nil {
 18338  			res.Body.Close()
 18339  		}
 18340  		return nil, gensupport.WrapError(&googleapi.Error{
 18341  			Code:   res.StatusCode,
 18342  			Header: res.Header,
 18343  		})
 18344  	}
 18345  	if err != nil {
 18346  		return nil, err
 18347  	}
 18348  	defer googleapi.CloseBody(res)
 18349  	if err := googleapi.CheckResponse(res); err != nil {
 18350  		return nil, gensupport.WrapError(err)
 18351  	}
 18352  	ret := &GoogleLongrunningListOperationsResponse{
 18353  		ServerResponse: googleapi.ServerResponse{
 18354  			Header:         res.Header,
 18355  			HTTPStatusCode: res.StatusCode,
 18356  		},
 18357  	}
 18358  	target := &ret
 18359  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18360  		return nil, err
 18361  	}
 18362  	return ret, nil
 18363  }
 18364  
 18365  // Pages invokes f for each page of results.
 18366  // A non-nil error returned from f will halt the iteration.
 18367  // The provided context supersedes any context provided to the Context method.
 18368  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 18369  	c.ctx_ = ctx
 18370  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 18371  	for {
 18372  		x, err := c.Do()
 18373  		if err != nil {
 18374  			return err
 18375  		}
 18376  		if err := f(x); err != nil {
 18377  			return err
 18378  		}
 18379  		if x.NextPageToken == "" {
 18380  			return nil
 18381  		}
 18382  		c.PageToken(x.NextPageToken)
 18383  	}
 18384  }
 18385  
 18386  type ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall struct {
 18387  	s                                                   *Service
 18388  	servingConfig                                       string
 18389  	googleclouddiscoveryenginev1alphaanswerqueryrequest *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
 18390  	urlParams_                                          gensupport.URLParams
 18391  	ctx_                                                context.Context
 18392  	header_                                             http.Header
 18393  }
 18394  
 18395  // Answer: Answer query method.
 18396  //
 18397  //   - servingConfig: The resource name of the Search serving config, such as
 18398  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 18399  //     ngConfigs/default_serving_config`, or
 18400  //     `projects/*/locations/global/collections/default_collection/dataStores/*/se
 18401  //     rvingConfigs/default_serving_config`. This field is used to identify the
 18402  //     serving configuration name, set of models used to make the search.
 18403  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Answer(servingConfig string, googleclouddiscoveryenginev1alphaanswerqueryrequest *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall {
 18404  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18405  	c.servingConfig = servingConfig
 18406  	c.googleclouddiscoveryenginev1alphaanswerqueryrequest = googleclouddiscoveryenginev1alphaanswerqueryrequest
 18407  	return c
 18408  }
 18409  
 18410  // Fields allows partial responses to be retrieved. See
 18411  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18412  // details.
 18413  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall {
 18414  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18415  	return c
 18416  }
 18417  
 18418  // Context sets the context to be used in this call's Do method.
 18419  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall {
 18420  	c.ctx_ = ctx
 18421  	return c
 18422  }
 18423  
 18424  // Header returns a http.Header that can be modified by the caller to add
 18425  // headers to the request.
 18426  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Header() http.Header {
 18427  	if c.header_ == nil {
 18428  		c.header_ = make(http.Header)
 18429  	}
 18430  	return c.header_
 18431  }
 18432  
 18433  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) doRequest(alt string) (*http.Response, error) {
 18434  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18435  	var body io.Reader = nil
 18436  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaanswerqueryrequest)
 18437  	if err != nil {
 18438  		return nil, err
 18439  	}
 18440  	c.urlParams_.Set("alt", alt)
 18441  	c.urlParams_.Set("prettyPrint", "false")
 18442  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:answer")
 18443  	urls += "?" + c.urlParams_.Encode()
 18444  	req, err := http.NewRequest("POST", urls, body)
 18445  	if err != nil {
 18446  		return nil, err
 18447  	}
 18448  	req.Header = reqHeaders
 18449  	googleapi.Expand(req.URL, map[string]string{
 18450  		"servingConfig": c.servingConfig,
 18451  	})
 18452  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18453  }
 18454  
 18455  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.answer" call.
 18456  // Any non-2xx status code is an error. Response headers are in either
 18457  // *GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse.ServerResponse.Header
 18458  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 18459  // Use googleapi.IsNotModified to check whether the returned error was because
 18460  // http.StatusNotModified was returned.
 18461  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse, error) {
 18462  	gensupport.SetOptions(c.urlParams_, opts...)
 18463  	res, err := c.doRequest("json")
 18464  	if res != nil && res.StatusCode == http.StatusNotModified {
 18465  		if res.Body != nil {
 18466  			res.Body.Close()
 18467  		}
 18468  		return nil, gensupport.WrapError(&googleapi.Error{
 18469  			Code:   res.StatusCode,
 18470  			Header: res.Header,
 18471  		})
 18472  	}
 18473  	if err != nil {
 18474  		return nil, err
 18475  	}
 18476  	defer googleapi.CloseBody(res)
 18477  	if err := googleapi.CheckResponse(res); err != nil {
 18478  		return nil, gensupport.WrapError(err)
 18479  	}
 18480  	ret := &GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse{
 18481  		ServerResponse: googleapi.ServerResponse{
 18482  			Header:         res.Header,
 18483  			HTTPStatusCode: res.StatusCode,
 18484  		},
 18485  	}
 18486  	target := &ret
 18487  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18488  		return nil, err
 18489  	}
 18490  	return ret, nil
 18491  }
 18492  
 18493  type ProjectsLocationsCollectionsDataStoresServingConfigsGetCall struct {
 18494  	s            *Service
 18495  	name         string
 18496  	urlParams_   gensupport.URLParams
 18497  	ifNoneMatch_ string
 18498  	ctx_         context.Context
 18499  	header_      http.Header
 18500  }
 18501  
 18502  // Get: Gets a ServingConfig. Returns a NotFound error if the ServingConfig
 18503  // does not exist.
 18504  //
 18505  //   - name: The resource name of the ServingConfig to get. Format:
 18506  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 18507  //     gines/{engine}/servingConfigs/{serving_config_id}`.
 18508  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Get(name string) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
 18509  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18510  	c.name = name
 18511  	return c
 18512  }
 18513  
 18514  // Fields allows partial responses to be retrieved. See
 18515  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18516  // details.
 18517  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
 18518  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18519  	return c
 18520  }
 18521  
 18522  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18523  // object's ETag matches the given value. This is useful for getting updates
 18524  // only after the object has changed since the last request.
 18525  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
 18526  	c.ifNoneMatch_ = entityTag
 18527  	return c
 18528  }
 18529  
 18530  // Context sets the context to be used in this call's Do method.
 18531  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
 18532  	c.ctx_ = ctx
 18533  	return c
 18534  }
 18535  
 18536  // Header returns a http.Header that can be modified by the caller to add
 18537  // headers to the request.
 18538  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Header() http.Header {
 18539  	if c.header_ == nil {
 18540  		c.header_ = make(http.Header)
 18541  	}
 18542  	return c.header_
 18543  }
 18544  
 18545  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) doRequest(alt string) (*http.Response, error) {
 18546  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18547  	if c.ifNoneMatch_ != "" {
 18548  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18549  	}
 18550  	var body io.Reader = nil
 18551  	c.urlParams_.Set("alt", alt)
 18552  	c.urlParams_.Set("prettyPrint", "false")
 18553  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 18554  	urls += "?" + c.urlParams_.Encode()
 18555  	req, err := http.NewRequest("GET", urls, body)
 18556  	if err != nil {
 18557  		return nil, err
 18558  	}
 18559  	req.Header = reqHeaders
 18560  	googleapi.Expand(req.URL, map[string]string{
 18561  		"name": c.name,
 18562  	})
 18563  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18564  }
 18565  
 18566  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.get" call.
 18567  // Any non-2xx status code is an error. Response headers are in either
 18568  // *GoogleCloudDiscoveryengineV1alphaServingConfig.ServerResponse.Header or (if
 18569  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 18570  // googleapi.IsNotModified to check whether the returned error was because
 18571  // http.StatusNotModified was returned.
 18572  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaServingConfig, error) {
 18573  	gensupport.SetOptions(c.urlParams_, opts...)
 18574  	res, err := c.doRequest("json")
 18575  	if res != nil && res.StatusCode == http.StatusNotModified {
 18576  		if res.Body != nil {
 18577  			res.Body.Close()
 18578  		}
 18579  		return nil, gensupport.WrapError(&googleapi.Error{
 18580  			Code:   res.StatusCode,
 18581  			Header: res.Header,
 18582  		})
 18583  	}
 18584  	if err != nil {
 18585  		return nil, err
 18586  	}
 18587  	defer googleapi.CloseBody(res)
 18588  	if err := googleapi.CheckResponse(res); err != nil {
 18589  		return nil, gensupport.WrapError(err)
 18590  	}
 18591  	ret := &GoogleCloudDiscoveryengineV1alphaServingConfig{
 18592  		ServerResponse: googleapi.ServerResponse{
 18593  			Header:         res.Header,
 18594  			HTTPStatusCode: res.StatusCode,
 18595  		},
 18596  	}
 18597  	target := &ret
 18598  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18599  		return nil, err
 18600  	}
 18601  	return ret, nil
 18602  }
 18603  
 18604  type ProjectsLocationsCollectionsDataStoresServingConfigsListCall struct {
 18605  	s            *Service
 18606  	parent       string
 18607  	urlParams_   gensupport.URLParams
 18608  	ifNoneMatch_ string
 18609  	ctx_         context.Context
 18610  	header_      http.Header
 18611  }
 18612  
 18613  // List: Lists all ServingConfigs linked to this dataStore.
 18614  //
 18615  //   - parent: Full resource name of the parent resource. Format:
 18616  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 18617  //     gines/{engine}`.
 18618  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) List(parent string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
 18619  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18620  	c.parent = parent
 18621  	return c
 18622  }
 18623  
 18624  // PageSize sets the optional parameter "pageSize": Maximum number of results
 18625  // to return. If unspecified, defaults to 100. If a value greater than 100 is
 18626  // provided, at most 100 results are returned.
 18627  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
 18628  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18629  	return c
 18630  }
 18631  
 18632  // PageToken sets the optional parameter "pageToken": A page token, received
 18633  // from a previous `ListServingConfigs` call. Provide this to retrieve the
 18634  // subsequent page.
 18635  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
 18636  	c.urlParams_.Set("pageToken", pageToken)
 18637  	return c
 18638  }
 18639  
 18640  // Fields allows partial responses to be retrieved. See
 18641  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18642  // details.
 18643  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
 18644  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18645  	return c
 18646  }
 18647  
 18648  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18649  // object's ETag matches the given value. This is useful for getting updates
 18650  // only after the object has changed since the last request.
 18651  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
 18652  	c.ifNoneMatch_ = entityTag
 18653  	return c
 18654  }
 18655  
 18656  // Context sets the context to be used in this call's Do method.
 18657  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
 18658  	c.ctx_ = ctx
 18659  	return c
 18660  }
 18661  
 18662  // Header returns a http.Header that can be modified by the caller to add
 18663  // headers to the request.
 18664  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Header() http.Header {
 18665  	if c.header_ == nil {
 18666  		c.header_ = make(http.Header)
 18667  	}
 18668  	return c.header_
 18669  }
 18670  
 18671  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) doRequest(alt string) (*http.Response, error) {
 18672  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18673  	if c.ifNoneMatch_ != "" {
 18674  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18675  	}
 18676  	var body io.Reader = nil
 18677  	c.urlParams_.Set("alt", alt)
 18678  	c.urlParams_.Set("prettyPrint", "false")
 18679  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/servingConfigs")
 18680  	urls += "?" + c.urlParams_.Encode()
 18681  	req, err := http.NewRequest("GET", urls, body)
 18682  	if err != nil {
 18683  		return nil, err
 18684  	}
 18685  	req.Header = reqHeaders
 18686  	googleapi.Expand(req.URL, map[string]string{
 18687  		"parent": c.parent,
 18688  	})
 18689  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18690  }
 18691  
 18692  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.list" call.
 18693  // Any non-2xx status code is an error. Response headers are in either
 18694  // *GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse.ServerResponse.H
 18695  // eader or (if a response was returned at all) in
 18696  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18697  // whether the returned error was because http.StatusNotModified was returned.
 18698  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse, error) {
 18699  	gensupport.SetOptions(c.urlParams_, opts...)
 18700  	res, err := c.doRequest("json")
 18701  	if res != nil && res.StatusCode == http.StatusNotModified {
 18702  		if res.Body != nil {
 18703  			res.Body.Close()
 18704  		}
 18705  		return nil, gensupport.WrapError(&googleapi.Error{
 18706  			Code:   res.StatusCode,
 18707  			Header: res.Header,
 18708  		})
 18709  	}
 18710  	if err != nil {
 18711  		return nil, err
 18712  	}
 18713  	defer googleapi.CloseBody(res)
 18714  	if err := googleapi.CheckResponse(res); err != nil {
 18715  		return nil, gensupport.WrapError(err)
 18716  	}
 18717  	ret := &GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse{
 18718  		ServerResponse: googleapi.ServerResponse{
 18719  			Header:         res.Header,
 18720  			HTTPStatusCode: res.StatusCode,
 18721  		},
 18722  	}
 18723  	target := &ret
 18724  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18725  		return nil, err
 18726  	}
 18727  	return ret, nil
 18728  }
 18729  
 18730  // Pages invokes f for each page of results.
 18731  // A non-nil error returned from f will halt the iteration.
 18732  // The provided context supersedes any context provided to the Context method.
 18733  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse) error) error {
 18734  	c.ctx_ = ctx
 18735  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 18736  	for {
 18737  		x, err := c.Do()
 18738  		if err != nil {
 18739  			return err
 18740  		}
 18741  		if err := f(x); err != nil {
 18742  			return err
 18743  		}
 18744  		if x.NextPageToken == "" {
 18745  			return nil
 18746  		}
 18747  		c.PageToken(x.NextPageToken)
 18748  	}
 18749  }
 18750  
 18751  type ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall struct {
 18752  	s                                              *Service
 18753  	name                                           string
 18754  	googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig
 18755  	urlParams_                                     gensupport.URLParams
 18756  	ctx_                                           context.Context
 18757  	header_                                        http.Header
 18758  }
 18759  
 18760  // Patch: Updates a ServingConfig. Returns a NOT_FOUND error if the
 18761  // ServingConfig does not exist.
 18762  //
 18763  //   - name: Immutable. Fully qualified name
 18764  //     `projects/{project}/locations/{location}/collections/{collection_id}/engine
 18765  //     s/{engine_id}/servingConfigs/{serving_config_id}`.
 18766  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Patch(name string, googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
 18767  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18768  	c.name = name
 18769  	c.googleclouddiscoveryenginev1alphaservingconfig = googleclouddiscoveryenginev1alphaservingconfig
 18770  	return c
 18771  }
 18772  
 18773  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 18774  // in the provided ServingConfig to update. The following are NOT supported: *
 18775  // ServingConfig.name If not set, all supported fields are updated.
 18776  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
 18777  	c.urlParams_.Set("updateMask", updateMask)
 18778  	return c
 18779  }
 18780  
 18781  // Fields allows partial responses to be retrieved. See
 18782  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18783  // details.
 18784  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
 18785  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18786  	return c
 18787  }
 18788  
 18789  // Context sets the context to be used in this call's Do method.
 18790  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
 18791  	c.ctx_ = ctx
 18792  	return c
 18793  }
 18794  
 18795  // Header returns a http.Header that can be modified by the caller to add
 18796  // headers to the request.
 18797  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Header() http.Header {
 18798  	if c.header_ == nil {
 18799  		c.header_ = make(http.Header)
 18800  	}
 18801  	return c.header_
 18802  }
 18803  
 18804  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
 18805  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18806  	var body io.Reader = nil
 18807  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaservingconfig)
 18808  	if err != nil {
 18809  		return nil, err
 18810  	}
 18811  	c.urlParams_.Set("alt", alt)
 18812  	c.urlParams_.Set("prettyPrint", "false")
 18813  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 18814  	urls += "?" + c.urlParams_.Encode()
 18815  	req, err := http.NewRequest("PATCH", urls, body)
 18816  	if err != nil {
 18817  		return nil, err
 18818  	}
 18819  	req.Header = reqHeaders
 18820  	googleapi.Expand(req.URL, map[string]string{
 18821  		"name": c.name,
 18822  	})
 18823  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18824  }
 18825  
 18826  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.patch" call.
 18827  // Any non-2xx status code is an error. Response headers are in either
 18828  // *GoogleCloudDiscoveryengineV1alphaServingConfig.ServerResponse.Header or (if
 18829  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 18830  // googleapi.IsNotModified to check whether the returned error was because
 18831  // http.StatusNotModified was returned.
 18832  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaServingConfig, error) {
 18833  	gensupport.SetOptions(c.urlParams_, opts...)
 18834  	res, err := c.doRequest("json")
 18835  	if res != nil && res.StatusCode == http.StatusNotModified {
 18836  		if res.Body != nil {
 18837  			res.Body.Close()
 18838  		}
 18839  		return nil, gensupport.WrapError(&googleapi.Error{
 18840  			Code:   res.StatusCode,
 18841  			Header: res.Header,
 18842  		})
 18843  	}
 18844  	if err != nil {
 18845  		return nil, err
 18846  	}
 18847  	defer googleapi.CloseBody(res)
 18848  	if err := googleapi.CheckResponse(res); err != nil {
 18849  		return nil, gensupport.WrapError(err)
 18850  	}
 18851  	ret := &GoogleCloudDiscoveryengineV1alphaServingConfig{
 18852  		ServerResponse: googleapi.ServerResponse{
 18853  			Header:         res.Header,
 18854  			HTTPStatusCode: res.StatusCode,
 18855  		},
 18856  	}
 18857  	target := &ret
 18858  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18859  		return nil, err
 18860  	}
 18861  	return ret, nil
 18862  }
 18863  
 18864  type ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall struct {
 18865  	s                                                 *Service
 18866  	servingConfig                                     string
 18867  	googleclouddiscoveryenginev1alpharecommendrequest *GoogleCloudDiscoveryengineV1alphaRecommendRequest
 18868  	urlParams_                                        gensupport.URLParams
 18869  	ctx_                                              context.Context
 18870  	header_                                           http.Header
 18871  }
 18872  
 18873  // Recommend: Makes a recommendation, which requires a contextual user event.
 18874  //
 18875  //   - servingConfig: Full resource name of a ServingConfig:
 18876  //     `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
 18877  //     `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
 18878  //     One default serving config is created along with your recommendation
 18879  //     engine creation. The engine ID will be used as the ID of the default
 18880  //     serving config. For example, for Engine
 18881  //     `projects/*/locations/global/collections/*/engines/my-engine`, you can use
 18882  //     `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs
 18883  //     /my-engine` for your RecommendationService.Recommend requests.
 18884  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1alpharecommendrequest *GoogleCloudDiscoveryengineV1alphaRecommendRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
 18885  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18886  	c.servingConfig = servingConfig
 18887  	c.googleclouddiscoveryenginev1alpharecommendrequest = googleclouddiscoveryenginev1alpharecommendrequest
 18888  	return c
 18889  }
 18890  
 18891  // Fields allows partial responses to be retrieved. See
 18892  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18893  // details.
 18894  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
 18895  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18896  	return c
 18897  }
 18898  
 18899  // Context sets the context to be used in this call's Do method.
 18900  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
 18901  	c.ctx_ = ctx
 18902  	return c
 18903  }
 18904  
 18905  // Header returns a http.Header that can be modified by the caller to add
 18906  // headers to the request.
 18907  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Header() http.Header {
 18908  	if c.header_ == nil {
 18909  		c.header_ = make(http.Header)
 18910  	}
 18911  	return c.header_
 18912  }
 18913  
 18914  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
 18915  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18916  	var body io.Reader = nil
 18917  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharecommendrequest)
 18918  	if err != nil {
 18919  		return nil, err
 18920  	}
 18921  	c.urlParams_.Set("alt", alt)
 18922  	c.urlParams_.Set("prettyPrint", "false")
 18923  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:recommend")
 18924  	urls += "?" + c.urlParams_.Encode()
 18925  	req, err := http.NewRequest("POST", urls, body)
 18926  	if err != nil {
 18927  		return nil, err
 18928  	}
 18929  	req.Header = reqHeaders
 18930  	googleapi.Expand(req.URL, map[string]string{
 18931  		"servingConfig": c.servingConfig,
 18932  	})
 18933  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18934  }
 18935  
 18936  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.recommend" call.
 18937  // Any non-2xx status code is an error. Response headers are in either
 18938  // *GoogleCloudDiscoveryengineV1alphaRecommendResponse.ServerResponse.Header or
 18939  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 18940  // googleapi.IsNotModified to check whether the returned error was because
 18941  // http.StatusNotModified was returned.
 18942  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaRecommendResponse, error) {
 18943  	gensupport.SetOptions(c.urlParams_, opts...)
 18944  	res, err := c.doRequest("json")
 18945  	if res != nil && res.StatusCode == http.StatusNotModified {
 18946  		if res.Body != nil {
 18947  			res.Body.Close()
 18948  		}
 18949  		return nil, gensupport.WrapError(&googleapi.Error{
 18950  			Code:   res.StatusCode,
 18951  			Header: res.Header,
 18952  		})
 18953  	}
 18954  	if err != nil {
 18955  		return nil, err
 18956  	}
 18957  	defer googleapi.CloseBody(res)
 18958  	if err := googleapi.CheckResponse(res); err != nil {
 18959  		return nil, gensupport.WrapError(err)
 18960  	}
 18961  	ret := &GoogleCloudDiscoveryengineV1alphaRecommendResponse{
 18962  		ServerResponse: googleapi.ServerResponse{
 18963  			Header:         res.Header,
 18964  			HTTPStatusCode: res.StatusCode,
 18965  		},
 18966  	}
 18967  	target := &ret
 18968  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18969  		return nil, err
 18970  	}
 18971  	return ret, nil
 18972  }
 18973  
 18974  type ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall struct {
 18975  	s                                              *Service
 18976  	servingConfig                                  string
 18977  	googleclouddiscoveryenginev1alphasearchrequest *GoogleCloudDiscoveryengineV1alphaSearchRequest
 18978  	urlParams_                                     gensupport.URLParams
 18979  	ctx_                                           context.Context
 18980  	header_                                        http.Header
 18981  }
 18982  
 18983  // Search: Performs a search.
 18984  //
 18985  //   - servingConfig: The resource name of the Search serving config, such as
 18986  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 18987  //     ngConfigs/default_serving_config`, or
 18988  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 18989  //     ult_data_store/servingConfigs/default_serving_config`. This field is used
 18990  //     to identify the serving configuration name, set of models used to make the
 18991  //     search.
 18992  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1alphasearchrequest *GoogleCloudDiscoveryengineV1alphaSearchRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
 18993  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18994  	c.servingConfig = servingConfig
 18995  	c.googleclouddiscoveryenginev1alphasearchrequest = googleclouddiscoveryenginev1alphasearchrequest
 18996  	return c
 18997  }
 18998  
 18999  // Fields allows partial responses to be retrieved. See
 19000  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19001  // details.
 19002  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
 19003  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19004  	return c
 19005  }
 19006  
 19007  // Context sets the context to be used in this call's Do method.
 19008  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
 19009  	c.ctx_ = ctx
 19010  	return c
 19011  }
 19012  
 19013  // Header returns a http.Header that can be modified by the caller to add
 19014  // headers to the request.
 19015  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Header() http.Header {
 19016  	if c.header_ == nil {
 19017  		c.header_ = make(http.Header)
 19018  	}
 19019  	return c.header_
 19020  }
 19021  
 19022  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
 19023  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19024  	var body io.Reader = nil
 19025  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasearchrequest)
 19026  	if err != nil {
 19027  		return nil, err
 19028  	}
 19029  	c.urlParams_.Set("alt", alt)
 19030  	c.urlParams_.Set("prettyPrint", "false")
 19031  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:search")
 19032  	urls += "?" + c.urlParams_.Encode()
 19033  	req, err := http.NewRequest("POST", urls, body)
 19034  	if err != nil {
 19035  		return nil, err
 19036  	}
 19037  	req.Header = reqHeaders
 19038  	googleapi.Expand(req.URL, map[string]string{
 19039  		"servingConfig": c.servingConfig,
 19040  	})
 19041  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19042  }
 19043  
 19044  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.search" call.
 19045  // Any non-2xx status code is an error. Response headers are in either
 19046  // *GoogleCloudDiscoveryengineV1alphaSearchResponse.ServerResponse.Header or
 19047  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 19048  // googleapi.IsNotModified to check whether the returned error was because
 19049  // http.StatusNotModified was returned.
 19050  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSearchResponse, error) {
 19051  	gensupport.SetOptions(c.urlParams_, opts...)
 19052  	res, err := c.doRequest("json")
 19053  	if res != nil && res.StatusCode == http.StatusNotModified {
 19054  		if res.Body != nil {
 19055  			res.Body.Close()
 19056  		}
 19057  		return nil, gensupport.WrapError(&googleapi.Error{
 19058  			Code:   res.StatusCode,
 19059  			Header: res.Header,
 19060  		})
 19061  	}
 19062  	if err != nil {
 19063  		return nil, err
 19064  	}
 19065  	defer googleapi.CloseBody(res)
 19066  	if err := googleapi.CheckResponse(res); err != nil {
 19067  		return nil, gensupport.WrapError(err)
 19068  	}
 19069  	ret := &GoogleCloudDiscoveryengineV1alphaSearchResponse{
 19070  		ServerResponse: googleapi.ServerResponse{
 19071  			Header:         res.Header,
 19072  			HTTPStatusCode: res.StatusCode,
 19073  		},
 19074  	}
 19075  	target := &ret
 19076  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19077  		return nil, err
 19078  	}
 19079  	return ret, nil
 19080  }
 19081  
 19082  // Pages invokes f for each page of results.
 19083  // A non-nil error returned from f will halt the iteration.
 19084  // The provided context supersedes any context provided to the Context method.
 19085  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaSearchResponse) error) error {
 19086  	c.ctx_ = ctx
 19087  	defer func(pt string) { c.googleclouddiscoveryenginev1alphasearchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1alphasearchrequest.PageToken)
 19088  	for {
 19089  		x, err := c.Do()
 19090  		if err != nil {
 19091  			return err
 19092  		}
 19093  		if err := f(x); err != nil {
 19094  			return err
 19095  		}
 19096  		if x.NextPageToken == "" {
 19097  			return nil
 19098  		}
 19099  		c.googleclouddiscoveryenginev1alphasearchrequest.PageToken = x.NextPageToken
 19100  	}
 19101  }
 19102  
 19103  type ProjectsLocationsCollectionsDataStoresSessionsCreateCall struct {
 19104  	s                                        *Service
 19105  	parent                                   string
 19106  	googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession
 19107  	urlParams_                               gensupport.URLParams
 19108  	ctx_                                     context.Context
 19109  	header_                                  http.Header
 19110  }
 19111  
 19112  // Create: Creates a Session. If the Session to create already exists, an
 19113  // ALREADY_EXISTS error is returned.
 19114  //
 19115  //   - parent: Full resource name of parent data store. Format:
 19116  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 19117  //     /dataStores/{data_store_id}`.
 19118  func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Create(parent string, googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession) *ProjectsLocationsCollectionsDataStoresSessionsCreateCall {
 19119  	c := &ProjectsLocationsCollectionsDataStoresSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19120  	c.parent = parent
 19121  	c.googleclouddiscoveryenginev1alphasession = googleclouddiscoveryenginev1alphasession
 19122  	return c
 19123  }
 19124  
 19125  // Fields allows partial responses to be retrieved. See
 19126  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19127  // details.
 19128  func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsCreateCall {
 19129  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19130  	return c
 19131  }
 19132  
 19133  // Context sets the context to be used in this call's Do method.
 19134  func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsCreateCall {
 19135  	c.ctx_ = ctx
 19136  	return c
 19137  }
 19138  
 19139  // Header returns a http.Header that can be modified by the caller to add
 19140  // headers to the request.
 19141  func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Header() http.Header {
 19142  	if c.header_ == nil {
 19143  		c.header_ = make(http.Header)
 19144  	}
 19145  	return c.header_
 19146  }
 19147  
 19148  func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) doRequest(alt string) (*http.Response, error) {
 19149  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19150  	var body io.Reader = nil
 19151  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasession)
 19152  	if err != nil {
 19153  		return nil, err
 19154  	}
 19155  	c.urlParams_.Set("alt", alt)
 19156  	c.urlParams_.Set("prettyPrint", "false")
 19157  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sessions")
 19158  	urls += "?" + c.urlParams_.Encode()
 19159  	req, err := http.NewRequest("POST", urls, body)
 19160  	if err != nil {
 19161  		return nil, err
 19162  	}
 19163  	req.Header = reqHeaders
 19164  	googleapi.Expand(req.URL, map[string]string{
 19165  		"parent": c.parent,
 19166  	})
 19167  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19168  }
 19169  
 19170  // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.create" call.
 19171  // Any non-2xx status code is an error. Response headers are in either
 19172  // *GoogleCloudDiscoveryengineV1alphaSession.ServerResponse.Header or (if a
 19173  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19174  // googleapi.IsNotModified to check whether the returned error was because
 19175  // http.StatusNotModified was returned.
 19176  func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
 19177  	gensupport.SetOptions(c.urlParams_, opts...)
 19178  	res, err := c.doRequest("json")
 19179  	if res != nil && res.StatusCode == http.StatusNotModified {
 19180  		if res.Body != nil {
 19181  			res.Body.Close()
 19182  		}
 19183  		return nil, gensupport.WrapError(&googleapi.Error{
 19184  			Code:   res.StatusCode,
 19185  			Header: res.Header,
 19186  		})
 19187  	}
 19188  	if err != nil {
 19189  		return nil, err
 19190  	}
 19191  	defer googleapi.CloseBody(res)
 19192  	if err := googleapi.CheckResponse(res); err != nil {
 19193  		return nil, gensupport.WrapError(err)
 19194  	}
 19195  	ret := &GoogleCloudDiscoveryengineV1alphaSession{
 19196  		ServerResponse: googleapi.ServerResponse{
 19197  			Header:         res.Header,
 19198  			HTTPStatusCode: res.StatusCode,
 19199  		},
 19200  	}
 19201  	target := &ret
 19202  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19203  		return nil, err
 19204  	}
 19205  	return ret, nil
 19206  }
 19207  
 19208  type ProjectsLocationsCollectionsDataStoresSessionsDeleteCall struct {
 19209  	s          *Service
 19210  	name       string
 19211  	urlParams_ gensupport.URLParams
 19212  	ctx_       context.Context
 19213  	header_    http.Header
 19214  }
 19215  
 19216  // Delete: Deletes a Session. If the Session to delete does not exist, a
 19217  // NOT_FOUND error is returned.
 19218  //
 19219  //   - name: The resource name of the Session to delete. Format:
 19220  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 19221  //     /dataStores/{data_store_id}/sessions/{session_id}`.
 19222  func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall {
 19223  	c := &ProjectsLocationsCollectionsDataStoresSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19224  	c.name = name
 19225  	return c
 19226  }
 19227  
 19228  // Fields allows partial responses to be retrieved. See
 19229  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19230  // details.
 19231  func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall {
 19232  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19233  	return c
 19234  }
 19235  
 19236  // Context sets the context to be used in this call's Do method.
 19237  func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall {
 19238  	c.ctx_ = ctx
 19239  	return c
 19240  }
 19241  
 19242  // Header returns a http.Header that can be modified by the caller to add
 19243  // headers to the request.
 19244  func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Header() http.Header {
 19245  	if c.header_ == nil {
 19246  		c.header_ = make(http.Header)
 19247  	}
 19248  	return c.header_
 19249  }
 19250  
 19251  func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 19252  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19253  	var body io.Reader = nil
 19254  	c.urlParams_.Set("alt", alt)
 19255  	c.urlParams_.Set("prettyPrint", "false")
 19256  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 19257  	urls += "?" + c.urlParams_.Encode()
 19258  	req, err := http.NewRequest("DELETE", urls, body)
 19259  	if err != nil {
 19260  		return nil, err
 19261  	}
 19262  	req.Header = reqHeaders
 19263  	googleapi.Expand(req.URL, map[string]string{
 19264  		"name": c.name,
 19265  	})
 19266  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19267  }
 19268  
 19269  // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.delete" call.
 19270  // Any non-2xx status code is an error. Response headers are in either
 19271  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 19272  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 19273  // check whether the returned error was because http.StatusNotModified was
 19274  // returned.
 19275  func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 19276  	gensupport.SetOptions(c.urlParams_, opts...)
 19277  	res, err := c.doRequest("json")
 19278  	if res != nil && res.StatusCode == http.StatusNotModified {
 19279  		if res.Body != nil {
 19280  			res.Body.Close()
 19281  		}
 19282  		return nil, gensupport.WrapError(&googleapi.Error{
 19283  			Code:   res.StatusCode,
 19284  			Header: res.Header,
 19285  		})
 19286  	}
 19287  	if err != nil {
 19288  		return nil, err
 19289  	}
 19290  	defer googleapi.CloseBody(res)
 19291  	if err := googleapi.CheckResponse(res); err != nil {
 19292  		return nil, gensupport.WrapError(err)
 19293  	}
 19294  	ret := &GoogleProtobufEmpty{
 19295  		ServerResponse: googleapi.ServerResponse{
 19296  			Header:         res.Header,
 19297  			HTTPStatusCode: res.StatusCode,
 19298  		},
 19299  	}
 19300  	target := &ret
 19301  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19302  		return nil, err
 19303  	}
 19304  	return ret, nil
 19305  }
 19306  
 19307  type ProjectsLocationsCollectionsDataStoresSessionsGetCall struct {
 19308  	s            *Service
 19309  	name         string
 19310  	urlParams_   gensupport.URLParams
 19311  	ifNoneMatch_ string
 19312  	ctx_         context.Context
 19313  	header_      http.Header
 19314  }
 19315  
 19316  // Get: Gets a Session.
 19317  //
 19318  //   - name: The resource name of the Session to get. Format:
 19319  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 19320  //     /dataStores/{data_store_id}/sessions/{session_id}`.
 19321  func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
 19322  	c := &ProjectsLocationsCollectionsDataStoresSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19323  	c.name = name
 19324  	return c
 19325  }
 19326  
 19327  // Fields allows partial responses to be retrieved. See
 19328  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19329  // details.
 19330  func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
 19331  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19332  	return c
 19333  }
 19334  
 19335  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19336  // object's ETag matches the given value. This is useful for getting updates
 19337  // only after the object has changed since the last request.
 19338  func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
 19339  	c.ifNoneMatch_ = entityTag
 19340  	return c
 19341  }
 19342  
 19343  // Context sets the context to be used in this call's Do method.
 19344  func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
 19345  	c.ctx_ = ctx
 19346  	return c
 19347  }
 19348  
 19349  // Header returns a http.Header that can be modified by the caller to add
 19350  // headers to the request.
 19351  func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Header() http.Header {
 19352  	if c.header_ == nil {
 19353  		c.header_ = make(http.Header)
 19354  	}
 19355  	return c.header_
 19356  }
 19357  
 19358  func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) doRequest(alt string) (*http.Response, error) {
 19359  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19360  	if c.ifNoneMatch_ != "" {
 19361  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19362  	}
 19363  	var body io.Reader = nil
 19364  	c.urlParams_.Set("alt", alt)
 19365  	c.urlParams_.Set("prettyPrint", "false")
 19366  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 19367  	urls += "?" + c.urlParams_.Encode()
 19368  	req, err := http.NewRequest("GET", urls, body)
 19369  	if err != nil {
 19370  		return nil, err
 19371  	}
 19372  	req.Header = reqHeaders
 19373  	googleapi.Expand(req.URL, map[string]string{
 19374  		"name": c.name,
 19375  	})
 19376  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19377  }
 19378  
 19379  // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.get" call.
 19380  // Any non-2xx status code is an error. Response headers are in either
 19381  // *GoogleCloudDiscoveryengineV1alphaSession.ServerResponse.Header or (if a
 19382  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19383  // googleapi.IsNotModified to check whether the returned error was because
 19384  // http.StatusNotModified was returned.
 19385  func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
 19386  	gensupport.SetOptions(c.urlParams_, opts...)
 19387  	res, err := c.doRequest("json")
 19388  	if res != nil && res.StatusCode == http.StatusNotModified {
 19389  		if res.Body != nil {
 19390  			res.Body.Close()
 19391  		}
 19392  		return nil, gensupport.WrapError(&googleapi.Error{
 19393  			Code:   res.StatusCode,
 19394  			Header: res.Header,
 19395  		})
 19396  	}
 19397  	if err != nil {
 19398  		return nil, err
 19399  	}
 19400  	defer googleapi.CloseBody(res)
 19401  	if err := googleapi.CheckResponse(res); err != nil {
 19402  		return nil, gensupport.WrapError(err)
 19403  	}
 19404  	ret := &GoogleCloudDiscoveryengineV1alphaSession{
 19405  		ServerResponse: googleapi.ServerResponse{
 19406  			Header:         res.Header,
 19407  			HTTPStatusCode: res.StatusCode,
 19408  		},
 19409  	}
 19410  	target := &ret
 19411  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19412  		return nil, err
 19413  	}
 19414  	return ret, nil
 19415  }
 19416  
 19417  type ProjectsLocationsCollectionsDataStoresSessionsListCall struct {
 19418  	s            *Service
 19419  	parent       string
 19420  	urlParams_   gensupport.URLParams
 19421  	ifNoneMatch_ string
 19422  	ctx_         context.Context
 19423  	header_      http.Header
 19424  }
 19425  
 19426  // List: Lists all Sessions by their parent DataStore.
 19427  //
 19428  //   - parent: The data store resource name. Format:
 19429  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 19430  //     /dataStores/{data_store_id}`.
 19431  func (r *ProjectsLocationsCollectionsDataStoresSessionsService) List(parent string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 19432  	c := &ProjectsLocationsCollectionsDataStoresSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19433  	c.parent = parent
 19434  	return c
 19435  }
 19436  
 19437  // Filter sets the optional parameter "filter": A filter to apply on the list
 19438  // results. The supported features are: user_pseudo_id, state. Example:
 19439  // "user_pseudo_id = some_id"
 19440  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 19441  	c.urlParams_.Set("filter", filter)
 19442  	return c
 19443  }
 19444  
 19445  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 19446  // fields to order by, sorted in ascending order. Use "desc" after a field name
 19447  // for descending. Supported fields: * `update_time` * `create_time` *
 19448  // `session_name` Example: "update_time desc" "create_time"
 19449  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 19450  	c.urlParams_.Set("orderBy", orderBy)
 19451  	return c
 19452  }
 19453  
 19454  // PageSize sets the optional parameter "pageSize": Maximum number of results
 19455  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 19456  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 19457  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19458  	return c
 19459  }
 19460  
 19461  // PageToken sets the optional parameter "pageToken": A page token, received
 19462  // from a previous `ListSessions` call. Provide this to retrieve the subsequent
 19463  // page.
 19464  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 19465  	c.urlParams_.Set("pageToken", pageToken)
 19466  	return c
 19467  }
 19468  
 19469  // Fields allows partial responses to be retrieved. See
 19470  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19471  // details.
 19472  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 19473  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19474  	return c
 19475  }
 19476  
 19477  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19478  // object's ETag matches the given value. This is useful for getting updates
 19479  // only after the object has changed since the last request.
 19480  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 19481  	c.ifNoneMatch_ = entityTag
 19482  	return c
 19483  }
 19484  
 19485  // Context sets the context to be used in this call's Do method.
 19486  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 19487  	c.ctx_ = ctx
 19488  	return c
 19489  }
 19490  
 19491  // Header returns a http.Header that can be modified by the caller to add
 19492  // headers to the request.
 19493  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Header() http.Header {
 19494  	if c.header_ == nil {
 19495  		c.header_ = make(http.Header)
 19496  	}
 19497  	return c.header_
 19498  }
 19499  
 19500  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) doRequest(alt string) (*http.Response, error) {
 19501  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19502  	if c.ifNoneMatch_ != "" {
 19503  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19504  	}
 19505  	var body io.Reader = nil
 19506  	c.urlParams_.Set("alt", alt)
 19507  	c.urlParams_.Set("prettyPrint", "false")
 19508  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sessions")
 19509  	urls += "?" + c.urlParams_.Encode()
 19510  	req, err := http.NewRequest("GET", urls, body)
 19511  	if err != nil {
 19512  		return nil, err
 19513  	}
 19514  	req.Header = reqHeaders
 19515  	googleapi.Expand(req.URL, map[string]string{
 19516  		"parent": c.parent,
 19517  	})
 19518  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19519  }
 19520  
 19521  // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.list" call.
 19522  // Any non-2xx status code is an error. Response headers are in either
 19523  // *GoogleCloudDiscoveryengineV1alphaListSessionsResponse.ServerResponse.Header
 19524  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 19525  // Use googleapi.IsNotModified to check whether the returned error was because
 19526  // http.StatusNotModified was returned.
 19527  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListSessionsResponse, error) {
 19528  	gensupport.SetOptions(c.urlParams_, opts...)
 19529  	res, err := c.doRequest("json")
 19530  	if res != nil && res.StatusCode == http.StatusNotModified {
 19531  		if res.Body != nil {
 19532  			res.Body.Close()
 19533  		}
 19534  		return nil, gensupport.WrapError(&googleapi.Error{
 19535  			Code:   res.StatusCode,
 19536  			Header: res.Header,
 19537  		})
 19538  	}
 19539  	if err != nil {
 19540  		return nil, err
 19541  	}
 19542  	defer googleapi.CloseBody(res)
 19543  	if err := googleapi.CheckResponse(res); err != nil {
 19544  		return nil, gensupport.WrapError(err)
 19545  	}
 19546  	ret := &GoogleCloudDiscoveryengineV1alphaListSessionsResponse{
 19547  		ServerResponse: googleapi.ServerResponse{
 19548  			Header:         res.Header,
 19549  			HTTPStatusCode: res.StatusCode,
 19550  		},
 19551  	}
 19552  	target := &ret
 19553  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19554  		return nil, err
 19555  	}
 19556  	return ret, nil
 19557  }
 19558  
 19559  // Pages invokes f for each page of results.
 19560  // A non-nil error returned from f will halt the iteration.
 19561  // The provided context supersedes any context provided to the Context method.
 19562  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListSessionsResponse) error) error {
 19563  	c.ctx_ = ctx
 19564  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19565  	for {
 19566  		x, err := c.Do()
 19567  		if err != nil {
 19568  			return err
 19569  		}
 19570  		if err := f(x); err != nil {
 19571  			return err
 19572  		}
 19573  		if x.NextPageToken == "" {
 19574  			return nil
 19575  		}
 19576  		c.PageToken(x.NextPageToken)
 19577  	}
 19578  }
 19579  
 19580  type ProjectsLocationsCollectionsDataStoresSessionsPatchCall struct {
 19581  	s                                        *Service
 19582  	name                                     string
 19583  	googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession
 19584  	urlParams_                               gensupport.URLParams
 19585  	ctx_                                     context.Context
 19586  	header_                                  http.Header
 19587  }
 19588  
 19589  // Patch: Updates a Session. Session action type cannot be changed. If the
 19590  // Session to update does not exist, a NOT_FOUND error is returned.
 19591  //
 19592  //   - name: Immutable. Fully qualified name
 19593  //     `projects/{project}/locations/global/collections/{collection}/engines/{engi
 19594  //     ne}/sessions/*`.
 19595  func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Patch(name string, googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
 19596  	c := &ProjectsLocationsCollectionsDataStoresSessionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19597  	c.name = name
 19598  	c.googleclouddiscoveryenginev1alphasession = googleclouddiscoveryenginev1alphasession
 19599  	return c
 19600  }
 19601  
 19602  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 19603  // in the provided Session to update. The following are NOT supported: *
 19604  // Session.name If not set or empty, all supported fields are updated.
 19605  func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
 19606  	c.urlParams_.Set("updateMask", updateMask)
 19607  	return c
 19608  }
 19609  
 19610  // Fields allows partial responses to be retrieved. See
 19611  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19612  // details.
 19613  func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
 19614  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19615  	return c
 19616  }
 19617  
 19618  // Context sets the context to be used in this call's Do method.
 19619  func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
 19620  	c.ctx_ = ctx
 19621  	return c
 19622  }
 19623  
 19624  // Header returns a http.Header that can be modified by the caller to add
 19625  // headers to the request.
 19626  func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Header() http.Header {
 19627  	if c.header_ == nil {
 19628  		c.header_ = make(http.Header)
 19629  	}
 19630  	return c.header_
 19631  }
 19632  
 19633  func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) doRequest(alt string) (*http.Response, error) {
 19634  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19635  	var body io.Reader = nil
 19636  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasession)
 19637  	if err != nil {
 19638  		return nil, err
 19639  	}
 19640  	c.urlParams_.Set("alt", alt)
 19641  	c.urlParams_.Set("prettyPrint", "false")
 19642  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 19643  	urls += "?" + c.urlParams_.Encode()
 19644  	req, err := http.NewRequest("PATCH", urls, body)
 19645  	if err != nil {
 19646  		return nil, err
 19647  	}
 19648  	req.Header = reqHeaders
 19649  	googleapi.Expand(req.URL, map[string]string{
 19650  		"name": c.name,
 19651  	})
 19652  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19653  }
 19654  
 19655  // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.patch" call.
 19656  // Any non-2xx status code is an error. Response headers are in either
 19657  // *GoogleCloudDiscoveryengineV1alphaSession.ServerResponse.Header or (if a
 19658  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19659  // googleapi.IsNotModified to check whether the returned error was because
 19660  // http.StatusNotModified was returned.
 19661  func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
 19662  	gensupport.SetOptions(c.urlParams_, opts...)
 19663  	res, err := c.doRequest("json")
 19664  	if res != nil && res.StatusCode == http.StatusNotModified {
 19665  		if res.Body != nil {
 19666  			res.Body.Close()
 19667  		}
 19668  		return nil, gensupport.WrapError(&googleapi.Error{
 19669  			Code:   res.StatusCode,
 19670  			Header: res.Header,
 19671  		})
 19672  	}
 19673  	if err != nil {
 19674  		return nil, err
 19675  	}
 19676  	defer googleapi.CloseBody(res)
 19677  	if err := googleapi.CheckResponse(res); err != nil {
 19678  		return nil, gensupport.WrapError(err)
 19679  	}
 19680  	ret := &GoogleCloudDiscoveryengineV1alphaSession{
 19681  		ServerResponse: googleapi.ServerResponse{
 19682  			Header:         res.Header,
 19683  			HTTPStatusCode: res.StatusCode,
 19684  		},
 19685  	}
 19686  	target := &ret
 19687  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19688  		return nil, err
 19689  	}
 19690  	return ret, nil
 19691  }
 19692  
 19693  type ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall struct {
 19694  	s            *Service
 19695  	name         string
 19696  	urlParams_   gensupport.URLParams
 19697  	ifNoneMatch_ string
 19698  	ctx_         context.Context
 19699  	header_      http.Header
 19700  }
 19701  
 19702  // Get: Gets a Answer.
 19703  //
 19704  //   - name: The resource name of the Answer to get. Format:
 19705  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 19706  //     /engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`.
 19707  func (r *ProjectsLocationsCollectionsDataStoresSessionsAnswersService) Get(name string) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
 19708  	c := &ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19709  	c.name = name
 19710  	return c
 19711  }
 19712  
 19713  // Fields allows partial responses to be retrieved. See
 19714  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19715  // details.
 19716  func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
 19717  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19718  	return c
 19719  }
 19720  
 19721  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19722  // object's ETag matches the given value. This is useful for getting updates
 19723  // only after the object has changed since the last request.
 19724  func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
 19725  	c.ifNoneMatch_ = entityTag
 19726  	return c
 19727  }
 19728  
 19729  // Context sets the context to be used in this call's Do method.
 19730  func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
 19731  	c.ctx_ = ctx
 19732  	return c
 19733  }
 19734  
 19735  // Header returns a http.Header that can be modified by the caller to add
 19736  // headers to the request.
 19737  func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Header() http.Header {
 19738  	if c.header_ == nil {
 19739  		c.header_ = make(http.Header)
 19740  	}
 19741  	return c.header_
 19742  }
 19743  
 19744  func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) doRequest(alt string) (*http.Response, error) {
 19745  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19746  	if c.ifNoneMatch_ != "" {
 19747  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19748  	}
 19749  	var body io.Reader = nil
 19750  	c.urlParams_.Set("alt", alt)
 19751  	c.urlParams_.Set("prettyPrint", "false")
 19752  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 19753  	urls += "?" + c.urlParams_.Encode()
 19754  	req, err := http.NewRequest("GET", urls, body)
 19755  	if err != nil {
 19756  		return nil, err
 19757  	}
 19758  	req.Header = reqHeaders
 19759  	googleapi.Expand(req.URL, map[string]string{
 19760  		"name": c.name,
 19761  	})
 19762  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19763  }
 19764  
 19765  // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.answers.get" call.
 19766  // Any non-2xx status code is an error. Response headers are in either
 19767  // *GoogleCloudDiscoveryengineV1alphaAnswer.ServerResponse.Header or (if a
 19768  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19769  // googleapi.IsNotModified to check whether the returned error was because
 19770  // http.StatusNotModified was returned.
 19771  func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAnswer, error) {
 19772  	gensupport.SetOptions(c.urlParams_, opts...)
 19773  	res, err := c.doRequest("json")
 19774  	if res != nil && res.StatusCode == http.StatusNotModified {
 19775  		if res.Body != nil {
 19776  			res.Body.Close()
 19777  		}
 19778  		return nil, gensupport.WrapError(&googleapi.Error{
 19779  			Code:   res.StatusCode,
 19780  			Header: res.Header,
 19781  		})
 19782  	}
 19783  	if err != nil {
 19784  		return nil, err
 19785  	}
 19786  	defer googleapi.CloseBody(res)
 19787  	if err := googleapi.CheckResponse(res); err != nil {
 19788  		return nil, gensupport.WrapError(err)
 19789  	}
 19790  	ret := &GoogleCloudDiscoveryengineV1alphaAnswer{
 19791  		ServerResponse: googleapi.ServerResponse{
 19792  			Header:         res.Header,
 19793  			HTTPStatusCode: res.StatusCode,
 19794  		},
 19795  	}
 19796  	target := &ret
 19797  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19798  		return nil, err
 19799  	}
 19800  	return ret, nil
 19801  }
 19802  
 19803  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall struct {
 19804  	s                                                              *Service
 19805  	parent                                                         string
 19806  	googleclouddiscoveryenginev1alphabatchverifytargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchVerifyTargetSitesRequest
 19807  	urlParams_                                                     gensupport.URLParams
 19808  	ctx_                                                           context.Context
 19809  	header_                                                        http.Header
 19810  }
 19811  
 19812  // BatchVerifyTargetSites: Verify target sites' ownership and validity. This
 19813  // API sends all the target sites under site search engine for verification.
 19814  //
 19815  //   - parent: The parent resource shared by all TargetSites being verified.
 19816  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 19817  //     s/{data_store}/siteSearchEngine`.
 19818  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) BatchVerifyTargetSites(parent string, googleclouddiscoveryenginev1alphabatchverifytargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchVerifyTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
 19819  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19820  	c.parent = parent
 19821  	c.googleclouddiscoveryenginev1alphabatchverifytargetsitesrequest = googleclouddiscoveryenginev1alphabatchverifytargetsitesrequest
 19822  	return c
 19823  }
 19824  
 19825  // Fields allows partial responses to be retrieved. See
 19826  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19827  // details.
 19828  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
 19829  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19830  	return c
 19831  }
 19832  
 19833  // Context sets the context to be used in this call's Do method.
 19834  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
 19835  	c.ctx_ = ctx
 19836  	return c
 19837  }
 19838  
 19839  // Header returns a http.Header that can be modified by the caller to add
 19840  // headers to the request.
 19841  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Header() http.Header {
 19842  	if c.header_ == nil {
 19843  		c.header_ = make(http.Header)
 19844  	}
 19845  	return c.header_
 19846  }
 19847  
 19848  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) doRequest(alt string) (*http.Response, error) {
 19849  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19850  	var body io.Reader = nil
 19851  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphabatchverifytargetsitesrequest)
 19852  	if err != nil {
 19853  		return nil, err
 19854  	}
 19855  	c.urlParams_.Set("alt", alt)
 19856  	c.urlParams_.Set("prettyPrint", "false")
 19857  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}:batchVerifyTargetSites")
 19858  	urls += "?" + c.urlParams_.Encode()
 19859  	req, err := http.NewRequest("POST", urls, body)
 19860  	if err != nil {
 19861  		return nil, err
 19862  	}
 19863  	req.Header = reqHeaders
 19864  	googleapi.Expand(req.URL, map[string]string{
 19865  		"parent": c.parent,
 19866  	})
 19867  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19868  }
 19869  
 19870  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.batchVerifyTargetSites" call.
 19871  // Any non-2xx status code is an error. Response headers are in either
 19872  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19873  // returned at all) in error.(*googleapi.Error).Header. Use
 19874  // googleapi.IsNotModified to check whether the returned error was because
 19875  // http.StatusNotModified was returned.
 19876  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19877  	gensupport.SetOptions(c.urlParams_, opts...)
 19878  	res, err := c.doRequest("json")
 19879  	if res != nil && res.StatusCode == http.StatusNotModified {
 19880  		if res.Body != nil {
 19881  			res.Body.Close()
 19882  		}
 19883  		return nil, gensupport.WrapError(&googleapi.Error{
 19884  			Code:   res.StatusCode,
 19885  			Header: res.Header,
 19886  		})
 19887  	}
 19888  	if err != nil {
 19889  		return nil, err
 19890  	}
 19891  	defer googleapi.CloseBody(res)
 19892  	if err := googleapi.CheckResponse(res); err != nil {
 19893  		return nil, gensupport.WrapError(err)
 19894  	}
 19895  	ret := &GoogleLongrunningOperation{
 19896  		ServerResponse: googleapi.ServerResponse{
 19897  			Header:         res.Header,
 19898  			HTTPStatusCode: res.StatusCode,
 19899  		},
 19900  	}
 19901  	target := &ret
 19902  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19903  		return nil, err
 19904  	}
 19905  	return ret, nil
 19906  }
 19907  
 19908  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall struct {
 19909  	s                                                                 *Service
 19910  	siteSearchEngine                                                  string
 19911  	googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchRequest
 19912  	urlParams_                                                        gensupport.URLParams
 19913  	ctx_                                                              context.Context
 19914  	header_                                                           http.Header
 19915  }
 19916  
 19917  // DisableAdvancedSiteSearch: Downgrade from advanced site search to basic site
 19918  // search.
 19919  //
 19920  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 19921  //     `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSea
 19922  //     rchEngine`.
 19923  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) DisableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 19924  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19925  	c.siteSearchEngine = siteSearchEngine
 19926  	c.googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest = googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest
 19927  	return c
 19928  }
 19929  
 19930  // Fields allows partial responses to be retrieved. See
 19931  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19932  // details.
 19933  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 19934  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19935  	return c
 19936  }
 19937  
 19938  // Context sets the context to be used in this call's Do method.
 19939  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 19940  	c.ctx_ = ctx
 19941  	return c
 19942  }
 19943  
 19944  // Header returns a http.Header that can be modified by the caller to add
 19945  // headers to the request.
 19946  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Header() http.Header {
 19947  	if c.header_ == nil {
 19948  		c.header_ = make(http.Header)
 19949  	}
 19950  	return c.header_
 19951  }
 19952  
 19953  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
 19954  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19955  	var body io.Reader = nil
 19956  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest)
 19957  	if err != nil {
 19958  		return nil, err
 19959  	}
 19960  	c.urlParams_.Set("alt", alt)
 19961  	c.urlParams_.Set("prettyPrint", "false")
 19962  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:disableAdvancedSiteSearch")
 19963  	urls += "?" + c.urlParams_.Encode()
 19964  	req, err := http.NewRequest("POST", urls, body)
 19965  	if err != nil {
 19966  		return nil, err
 19967  	}
 19968  	req.Header = reqHeaders
 19969  	googleapi.Expand(req.URL, map[string]string{
 19970  		"siteSearchEngine": c.siteSearchEngine,
 19971  	})
 19972  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19973  }
 19974  
 19975  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.disableAdvancedSiteSearch" call.
 19976  // Any non-2xx status code is an error. Response headers are in either
 19977  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19978  // returned at all) in error.(*googleapi.Error).Header. Use
 19979  // googleapi.IsNotModified to check whether the returned error was because
 19980  // http.StatusNotModified was returned.
 19981  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19982  	gensupport.SetOptions(c.urlParams_, opts...)
 19983  	res, err := c.doRequest("json")
 19984  	if res != nil && res.StatusCode == http.StatusNotModified {
 19985  		if res.Body != nil {
 19986  			res.Body.Close()
 19987  		}
 19988  		return nil, gensupport.WrapError(&googleapi.Error{
 19989  			Code:   res.StatusCode,
 19990  			Header: res.Header,
 19991  		})
 19992  	}
 19993  	if err != nil {
 19994  		return nil, err
 19995  	}
 19996  	defer googleapi.CloseBody(res)
 19997  	if err := googleapi.CheckResponse(res); err != nil {
 19998  		return nil, gensupport.WrapError(err)
 19999  	}
 20000  	ret := &GoogleLongrunningOperation{
 20001  		ServerResponse: googleapi.ServerResponse{
 20002  			Header:         res.Header,
 20003  			HTTPStatusCode: res.StatusCode,
 20004  		},
 20005  	}
 20006  	target := &ret
 20007  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20008  		return nil, err
 20009  	}
 20010  	return ret, nil
 20011  }
 20012  
 20013  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall struct {
 20014  	s                                                                *Service
 20015  	siteSearchEngine                                                 string
 20016  	googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchRequest
 20017  	urlParams_                                                       gensupport.URLParams
 20018  	ctx_                                                             context.Context
 20019  	header_                                                          http.Header
 20020  }
 20021  
 20022  // EnableAdvancedSiteSearch: Upgrade from basic site search to advanced site
 20023  // search.
 20024  //
 20025  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 20026  //     `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSea
 20027  //     rchEngine`.
 20028  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) EnableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 20029  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20030  	c.siteSearchEngine = siteSearchEngine
 20031  	c.googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest = googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest
 20032  	return c
 20033  }
 20034  
 20035  // Fields allows partial responses to be retrieved. See
 20036  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20037  // details.
 20038  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 20039  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20040  	return c
 20041  }
 20042  
 20043  // Context sets the context to be used in this call's Do method.
 20044  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 20045  	c.ctx_ = ctx
 20046  	return c
 20047  }
 20048  
 20049  // Header returns a http.Header that can be modified by the caller to add
 20050  // headers to the request.
 20051  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Header() http.Header {
 20052  	if c.header_ == nil {
 20053  		c.header_ = make(http.Header)
 20054  	}
 20055  	return c.header_
 20056  }
 20057  
 20058  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
 20059  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20060  	var body io.Reader = nil
 20061  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest)
 20062  	if err != nil {
 20063  		return nil, err
 20064  	}
 20065  	c.urlParams_.Set("alt", alt)
 20066  	c.urlParams_.Set("prettyPrint", "false")
 20067  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:enableAdvancedSiteSearch")
 20068  	urls += "?" + c.urlParams_.Encode()
 20069  	req, err := http.NewRequest("POST", urls, body)
 20070  	if err != nil {
 20071  		return nil, err
 20072  	}
 20073  	req.Header = reqHeaders
 20074  	googleapi.Expand(req.URL, map[string]string{
 20075  		"siteSearchEngine": c.siteSearchEngine,
 20076  	})
 20077  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20078  }
 20079  
 20080  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.enableAdvancedSiteSearch" call.
 20081  // Any non-2xx status code is an error. Response headers are in either
 20082  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20083  // returned at all) in error.(*googleapi.Error).Header. Use
 20084  // googleapi.IsNotModified to check whether the returned error was because
 20085  // http.StatusNotModified was returned.
 20086  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20087  	gensupport.SetOptions(c.urlParams_, opts...)
 20088  	res, err := c.doRequest("json")
 20089  	if res != nil && res.StatusCode == http.StatusNotModified {
 20090  		if res.Body != nil {
 20091  			res.Body.Close()
 20092  		}
 20093  		return nil, gensupport.WrapError(&googleapi.Error{
 20094  			Code:   res.StatusCode,
 20095  			Header: res.Header,
 20096  		})
 20097  	}
 20098  	if err != nil {
 20099  		return nil, err
 20100  	}
 20101  	defer googleapi.CloseBody(res)
 20102  	if err := googleapi.CheckResponse(res); err != nil {
 20103  		return nil, gensupport.WrapError(err)
 20104  	}
 20105  	ret := &GoogleLongrunningOperation{
 20106  		ServerResponse: googleapi.ServerResponse{
 20107  			Header:         res.Header,
 20108  			HTTPStatusCode: res.StatusCode,
 20109  		},
 20110  	}
 20111  	target := &ret
 20112  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20113  		return nil, err
 20114  	}
 20115  	return ret, nil
 20116  }
 20117  
 20118  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall struct {
 20119  	s                *Service
 20120  	siteSearchEngine string
 20121  	urlParams_       gensupport.URLParams
 20122  	ifNoneMatch_     string
 20123  	ctx_             context.Context
 20124  	header_          http.Header
 20125  }
 20126  
 20127  // FetchDomainVerificationStatus: Returns list of target sites with its domain
 20128  // verification status. This method can only be called under data store with
 20129  // BASIC_SITE_SEARCH state at the moment.
 20130  //
 20131  //   - siteSearchEngine: The site search engine resource under which we fetch all
 20132  //     the domain verification status.
 20133  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20134  //     s/{data_store}/siteSearchEngine`.
 20135  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) FetchDomainVerificationStatus(siteSearchEngine string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 20136  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20137  	c.siteSearchEngine = siteSearchEngine
 20138  	return c
 20139  }
 20140  
 20141  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 20142  // may return fewer items than requested. If unspecified, server will pick an
 20143  // appropriate default. The maximum value is 1000; values above 1000 will be
 20144  // coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is
 20145  // returned.
 20146  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 20147  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20148  	return c
 20149  }
 20150  
 20151  // PageToken sets the optional parameter "pageToken": A page token, received
 20152  // from a previous `FetchDomainVerificationStatus` call. Provide this to
 20153  // retrieve the subsequent page. When paginating, all other parameters provided
 20154  // to `FetchDomainVerificationStatus` must match the call that provided the
 20155  // page token.
 20156  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 20157  	c.urlParams_.Set("pageToken", pageToken)
 20158  	return c
 20159  }
 20160  
 20161  // Fields allows partial responses to be retrieved. See
 20162  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20163  // details.
 20164  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 20165  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20166  	return c
 20167  }
 20168  
 20169  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20170  // object's ETag matches the given value. This is useful for getting updates
 20171  // only after the object has changed since the last request.
 20172  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 20173  	c.ifNoneMatch_ = entityTag
 20174  	return c
 20175  }
 20176  
 20177  // Context sets the context to be used in this call's Do method.
 20178  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 20179  	c.ctx_ = ctx
 20180  	return c
 20181  }
 20182  
 20183  // Header returns a http.Header that can be modified by the caller to add
 20184  // headers to the request.
 20185  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Header() http.Header {
 20186  	if c.header_ == nil {
 20187  		c.header_ = make(http.Header)
 20188  	}
 20189  	return c.header_
 20190  }
 20191  
 20192  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) doRequest(alt string) (*http.Response, error) {
 20193  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20194  	if c.ifNoneMatch_ != "" {
 20195  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20196  	}
 20197  	var body io.Reader = nil
 20198  	c.urlParams_.Set("alt", alt)
 20199  	c.urlParams_.Set("prettyPrint", "false")
 20200  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:fetchDomainVerificationStatus")
 20201  	urls += "?" + c.urlParams_.Encode()
 20202  	req, err := http.NewRequest("GET", urls, body)
 20203  	if err != nil {
 20204  		return nil, err
 20205  	}
 20206  	req.Header = reqHeaders
 20207  	googleapi.Expand(req.URL, map[string]string{
 20208  		"siteSearchEngine": c.siteSearchEngine,
 20209  	})
 20210  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20211  }
 20212  
 20213  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.fetchDomainVerificationStatus" call.
 20214  // Any non-2xx status code is an error. Response headers are in either
 20215  // *GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse.Serve
 20216  // rResponse.Header or (if a response was returned at all) in
 20217  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 20218  // whether the returned error was because http.StatusNotModified was returned.
 20219  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse, error) {
 20220  	gensupport.SetOptions(c.urlParams_, opts...)
 20221  	res, err := c.doRequest("json")
 20222  	if res != nil && res.StatusCode == http.StatusNotModified {
 20223  		if res.Body != nil {
 20224  			res.Body.Close()
 20225  		}
 20226  		return nil, gensupport.WrapError(&googleapi.Error{
 20227  			Code:   res.StatusCode,
 20228  			Header: res.Header,
 20229  		})
 20230  	}
 20231  	if err != nil {
 20232  		return nil, err
 20233  	}
 20234  	defer googleapi.CloseBody(res)
 20235  	if err := googleapi.CheckResponse(res); err != nil {
 20236  		return nil, gensupport.WrapError(err)
 20237  	}
 20238  	ret := &GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse{
 20239  		ServerResponse: googleapi.ServerResponse{
 20240  			Header:         res.Header,
 20241  			HTTPStatusCode: res.StatusCode,
 20242  		},
 20243  	}
 20244  	target := &ret
 20245  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20246  		return nil, err
 20247  	}
 20248  	return ret, nil
 20249  }
 20250  
 20251  // Pages invokes f for each page of results.
 20252  // A non-nil error returned from f will halt the iteration.
 20253  // The provided context supersedes any context provided to the Context method.
 20254  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse) error) error {
 20255  	c.ctx_ = ctx
 20256  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20257  	for {
 20258  		x, err := c.Do()
 20259  		if err != nil {
 20260  			return err
 20261  		}
 20262  		if err := f(x); err != nil {
 20263  			return err
 20264  		}
 20265  		if x.NextPageToken == "" {
 20266  			return nil
 20267  		}
 20268  		c.PageToken(x.NextPageToken)
 20269  	}
 20270  }
 20271  
 20272  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall struct {
 20273  	s                                                   *Service
 20274  	siteSearchEngine                                    string
 20275  	googleclouddiscoveryenginev1alpharecrawlurisrequest *GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest
 20276  	urlParams_                                          gensupport.URLParams
 20277  	ctx_                                                context.Context
 20278  	header_                                             http.Header
 20279  }
 20280  
 20281  // RecrawlUris: Request on-demand recrawl for a list of URIs.
 20282  //
 20283  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 20284  //     `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
 20285  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) RecrawlUris(siteSearchEngine string, googleclouddiscoveryenginev1alpharecrawlurisrequest *GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
 20286  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20287  	c.siteSearchEngine = siteSearchEngine
 20288  	c.googleclouddiscoveryenginev1alpharecrawlurisrequest = googleclouddiscoveryenginev1alpharecrawlurisrequest
 20289  	return c
 20290  }
 20291  
 20292  // Fields allows partial responses to be retrieved. See
 20293  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20294  // details.
 20295  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
 20296  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20297  	return c
 20298  }
 20299  
 20300  // Context sets the context to be used in this call's Do method.
 20301  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
 20302  	c.ctx_ = ctx
 20303  	return c
 20304  }
 20305  
 20306  // Header returns a http.Header that can be modified by the caller to add
 20307  // headers to the request.
 20308  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Header() http.Header {
 20309  	if c.header_ == nil {
 20310  		c.header_ = make(http.Header)
 20311  	}
 20312  	return c.header_
 20313  }
 20314  
 20315  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(alt string) (*http.Response, error) {
 20316  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20317  	var body io.Reader = nil
 20318  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharecrawlurisrequest)
 20319  	if err != nil {
 20320  		return nil, err
 20321  	}
 20322  	c.urlParams_.Set("alt", alt)
 20323  	c.urlParams_.Set("prettyPrint", "false")
 20324  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:recrawlUris")
 20325  	urls += "?" + c.urlParams_.Encode()
 20326  	req, err := http.NewRequest("POST", urls, body)
 20327  	if err != nil {
 20328  		return nil, err
 20329  	}
 20330  	req.Header = reqHeaders
 20331  	googleapi.Expand(req.URL, map[string]string{
 20332  		"siteSearchEngine": c.siteSearchEngine,
 20333  	})
 20334  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20335  }
 20336  
 20337  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.recrawlUris" call.
 20338  // Any non-2xx status code is an error. Response headers are in either
 20339  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20340  // returned at all) in error.(*googleapi.Error).Header. Use
 20341  // googleapi.IsNotModified to check whether the returned error was because
 20342  // http.StatusNotModified was returned.
 20343  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20344  	gensupport.SetOptions(c.urlParams_, opts...)
 20345  	res, err := c.doRequest("json")
 20346  	if res != nil && res.StatusCode == http.StatusNotModified {
 20347  		if res.Body != nil {
 20348  			res.Body.Close()
 20349  		}
 20350  		return nil, gensupport.WrapError(&googleapi.Error{
 20351  			Code:   res.StatusCode,
 20352  			Header: res.Header,
 20353  		})
 20354  	}
 20355  	if err != nil {
 20356  		return nil, err
 20357  	}
 20358  	defer googleapi.CloseBody(res)
 20359  	if err := googleapi.CheckResponse(res); err != nil {
 20360  		return nil, gensupport.WrapError(err)
 20361  	}
 20362  	ret := &GoogleLongrunningOperation{
 20363  		ServerResponse: googleapi.ServerResponse{
 20364  			Header:         res.Header,
 20365  			HTTPStatusCode: res.StatusCode,
 20366  		},
 20367  	}
 20368  	target := &ret
 20369  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20370  		return nil, err
 20371  	}
 20372  	return ret, nil
 20373  }
 20374  
 20375  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall struct {
 20376  	s            *Service
 20377  	name         string
 20378  	urlParams_   gensupport.URLParams
 20379  	ifNoneMatch_ string
 20380  	ctx_         context.Context
 20381  	header_      http.Header
 20382  }
 20383  
 20384  // Get: Gets the latest state of a long-running operation. Clients can use this
 20385  // method to poll the operation result at intervals as recommended by the API
 20386  // service.
 20387  //
 20388  // - name: The name of the operation resource.
 20389  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
 20390  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20391  	c.name = name
 20392  	return c
 20393  }
 20394  
 20395  // Fields allows partial responses to be retrieved. See
 20396  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20397  // details.
 20398  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
 20399  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20400  	return c
 20401  }
 20402  
 20403  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20404  // object's ETag matches the given value. This is useful for getting updates
 20405  // only after the object has changed since the last request.
 20406  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
 20407  	c.ifNoneMatch_ = entityTag
 20408  	return c
 20409  }
 20410  
 20411  // Context sets the context to be used in this call's Do method.
 20412  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
 20413  	c.ctx_ = ctx
 20414  	return c
 20415  }
 20416  
 20417  // Header returns a http.Header that can be modified by the caller to add
 20418  // headers to the request.
 20419  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Header() http.Header {
 20420  	if c.header_ == nil {
 20421  		c.header_ = make(http.Header)
 20422  	}
 20423  	return c.header_
 20424  }
 20425  
 20426  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 20427  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20428  	if c.ifNoneMatch_ != "" {
 20429  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20430  	}
 20431  	var body io.Reader = nil
 20432  	c.urlParams_.Set("alt", alt)
 20433  	c.urlParams_.Set("prettyPrint", "false")
 20434  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 20435  	urls += "?" + c.urlParams_.Encode()
 20436  	req, err := http.NewRequest("GET", urls, body)
 20437  	if err != nil {
 20438  		return nil, err
 20439  	}
 20440  	req.Header = reqHeaders
 20441  	googleapi.Expand(req.URL, map[string]string{
 20442  		"name": c.name,
 20443  	})
 20444  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20445  }
 20446  
 20447  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.get" call.
 20448  // Any non-2xx status code is an error. Response headers are in either
 20449  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20450  // returned at all) in error.(*googleapi.Error).Header. Use
 20451  // googleapi.IsNotModified to check whether the returned error was because
 20452  // http.StatusNotModified was returned.
 20453  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20454  	gensupport.SetOptions(c.urlParams_, opts...)
 20455  	res, err := c.doRequest("json")
 20456  	if res != nil && res.StatusCode == http.StatusNotModified {
 20457  		if res.Body != nil {
 20458  			res.Body.Close()
 20459  		}
 20460  		return nil, gensupport.WrapError(&googleapi.Error{
 20461  			Code:   res.StatusCode,
 20462  			Header: res.Header,
 20463  		})
 20464  	}
 20465  	if err != nil {
 20466  		return nil, err
 20467  	}
 20468  	defer googleapi.CloseBody(res)
 20469  	if err := googleapi.CheckResponse(res); err != nil {
 20470  		return nil, gensupport.WrapError(err)
 20471  	}
 20472  	ret := &GoogleLongrunningOperation{
 20473  		ServerResponse: googleapi.ServerResponse{
 20474  			Header:         res.Header,
 20475  			HTTPStatusCode: res.StatusCode,
 20476  		},
 20477  	}
 20478  	target := &ret
 20479  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20480  		return nil, err
 20481  	}
 20482  	return ret, nil
 20483  }
 20484  
 20485  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall struct {
 20486  	s            *Service
 20487  	name         string
 20488  	urlParams_   gensupport.URLParams
 20489  	ifNoneMatch_ string
 20490  	ctx_         context.Context
 20491  	header_      http.Header
 20492  }
 20493  
 20494  // List: Lists operations that match the specified filter in the request. If
 20495  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 20496  //
 20497  // - name: The name of the operation's parent resource.
 20498  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 20499  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20500  	c.name = name
 20501  	return c
 20502  }
 20503  
 20504  // Filter sets the optional parameter "filter": The standard list filter.
 20505  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 20506  	c.urlParams_.Set("filter", filter)
 20507  	return c
 20508  }
 20509  
 20510  // PageSize sets the optional parameter "pageSize": The standard list page
 20511  // size.
 20512  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 20513  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20514  	return c
 20515  }
 20516  
 20517  // PageToken sets the optional parameter "pageToken": The standard list page
 20518  // token.
 20519  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 20520  	c.urlParams_.Set("pageToken", pageToken)
 20521  	return c
 20522  }
 20523  
 20524  // Fields allows partial responses to be retrieved. See
 20525  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20526  // details.
 20527  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 20528  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20529  	return c
 20530  }
 20531  
 20532  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20533  // object's ETag matches the given value. This is useful for getting updates
 20534  // only after the object has changed since the last request.
 20535  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 20536  	c.ifNoneMatch_ = entityTag
 20537  	return c
 20538  }
 20539  
 20540  // Context sets the context to be used in this call's Do method.
 20541  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 20542  	c.ctx_ = ctx
 20543  	return c
 20544  }
 20545  
 20546  // Header returns a http.Header that can be modified by the caller to add
 20547  // headers to the request.
 20548  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Header() http.Header {
 20549  	if c.header_ == nil {
 20550  		c.header_ = make(http.Header)
 20551  	}
 20552  	return c.header_
 20553  }
 20554  
 20555  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) doRequest(alt string) (*http.Response, error) {
 20556  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20557  	if c.ifNoneMatch_ != "" {
 20558  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20559  	}
 20560  	var body io.Reader = nil
 20561  	c.urlParams_.Set("alt", alt)
 20562  	c.urlParams_.Set("prettyPrint", "false")
 20563  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 20564  	urls += "?" + c.urlParams_.Encode()
 20565  	req, err := http.NewRequest("GET", urls, body)
 20566  	if err != nil {
 20567  		return nil, err
 20568  	}
 20569  	req.Header = reqHeaders
 20570  	googleapi.Expand(req.URL, map[string]string{
 20571  		"name": c.name,
 20572  	})
 20573  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20574  }
 20575  
 20576  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.list" call.
 20577  // Any non-2xx status code is an error. Response headers are in either
 20578  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 20579  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20580  // googleapi.IsNotModified to check whether the returned error was because
 20581  // http.StatusNotModified was returned.
 20582  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 20583  	gensupport.SetOptions(c.urlParams_, opts...)
 20584  	res, err := c.doRequest("json")
 20585  	if res != nil && res.StatusCode == http.StatusNotModified {
 20586  		if res.Body != nil {
 20587  			res.Body.Close()
 20588  		}
 20589  		return nil, gensupport.WrapError(&googleapi.Error{
 20590  			Code:   res.StatusCode,
 20591  			Header: res.Header,
 20592  		})
 20593  	}
 20594  	if err != nil {
 20595  		return nil, err
 20596  	}
 20597  	defer googleapi.CloseBody(res)
 20598  	if err := googleapi.CheckResponse(res); err != nil {
 20599  		return nil, gensupport.WrapError(err)
 20600  	}
 20601  	ret := &GoogleLongrunningListOperationsResponse{
 20602  		ServerResponse: googleapi.ServerResponse{
 20603  			Header:         res.Header,
 20604  			HTTPStatusCode: res.StatusCode,
 20605  		},
 20606  	}
 20607  	target := &ret
 20608  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20609  		return nil, err
 20610  	}
 20611  	return ret, nil
 20612  }
 20613  
 20614  // Pages invokes f for each page of results.
 20615  // A non-nil error returned from f will halt the iteration.
 20616  // The provided context supersedes any context provided to the Context method.
 20617  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 20618  	c.ctx_ = ctx
 20619  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20620  	for {
 20621  		x, err := c.Do()
 20622  		if err != nil {
 20623  			return err
 20624  		}
 20625  		if err := f(x); err != nil {
 20626  			return err
 20627  		}
 20628  		if x.NextPageToken == "" {
 20629  			return nil
 20630  		}
 20631  		c.PageToken(x.NextPageToken)
 20632  	}
 20633  }
 20634  
 20635  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct {
 20636  	s                                                              *Service
 20637  	parent                                                         string
 20638  	googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest
 20639  	urlParams_                                                     gensupport.URLParams
 20640  	ctx_                                                           context.Context
 20641  	header_                                                        http.Header
 20642  }
 20643  
 20644  // BatchCreate: Creates TargetSite in a batch.
 20645  //
 20646  //   - parent: The parent resource shared by all TargetSites being created.
 20647  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20648  //     s/{data_store}/siteSearchEngine`. The parent field in the
 20649  //     CreateBookRequest messages must either be empty or match this field.
 20650  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 20651  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20652  	c.parent = parent
 20653  	c.googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest = googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest
 20654  	return c
 20655  }
 20656  
 20657  // Fields allows partial responses to be retrieved. See
 20658  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20659  // details.
 20660  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 20661  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20662  	return c
 20663  }
 20664  
 20665  // Context sets the context to be used in this call's Do method.
 20666  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 20667  	c.ctx_ = ctx
 20668  	return c
 20669  }
 20670  
 20671  // Header returns a http.Header that can be modified by the caller to add
 20672  // headers to the request.
 20673  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header {
 20674  	if c.header_ == nil {
 20675  		c.header_ = make(http.Header)
 20676  	}
 20677  	return c.header_
 20678  }
 20679  
 20680  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 20681  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20682  	var body io.Reader = nil
 20683  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest)
 20684  	if err != nil {
 20685  		return nil, err
 20686  	}
 20687  	c.urlParams_.Set("alt", alt)
 20688  	c.urlParams_.Set("prettyPrint", "false")
 20689  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites:batchCreate")
 20690  	urls += "?" + c.urlParams_.Encode()
 20691  	req, err := http.NewRequest("POST", urls, body)
 20692  	if err != nil {
 20693  		return nil, err
 20694  	}
 20695  	req.Header = reqHeaders
 20696  	googleapi.Expand(req.URL, map[string]string{
 20697  		"parent": c.parent,
 20698  	})
 20699  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20700  }
 20701  
 20702  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.batchCreate" call.
 20703  // Any non-2xx status code is an error. Response headers are in either
 20704  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20705  // returned at all) in error.(*googleapi.Error).Header. Use
 20706  // googleapi.IsNotModified to check whether the returned error was because
 20707  // http.StatusNotModified was returned.
 20708  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20709  	gensupport.SetOptions(c.urlParams_, opts...)
 20710  	res, err := c.doRequest("json")
 20711  	if res != nil && res.StatusCode == http.StatusNotModified {
 20712  		if res.Body != nil {
 20713  			res.Body.Close()
 20714  		}
 20715  		return nil, gensupport.WrapError(&googleapi.Error{
 20716  			Code:   res.StatusCode,
 20717  			Header: res.Header,
 20718  		})
 20719  	}
 20720  	if err != nil {
 20721  		return nil, err
 20722  	}
 20723  	defer googleapi.CloseBody(res)
 20724  	if err := googleapi.CheckResponse(res); err != nil {
 20725  		return nil, gensupport.WrapError(err)
 20726  	}
 20727  	ret := &GoogleLongrunningOperation{
 20728  		ServerResponse: googleapi.ServerResponse{
 20729  			Header:         res.Header,
 20730  			HTTPStatusCode: res.StatusCode,
 20731  		},
 20732  	}
 20733  	target := &ret
 20734  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20735  		return nil, err
 20736  	}
 20737  	return ret, nil
 20738  }
 20739  
 20740  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall struct {
 20741  	s                                           *Service
 20742  	parent                                      string
 20743  	googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite
 20744  	urlParams_                                  gensupport.URLParams
 20745  	ctx_                                        context.Context
 20746  	header_                                     http.Header
 20747  }
 20748  
 20749  // Create: Creates a TargetSite.
 20750  //
 20751  //   - parent: Parent resource name of TargetSite, such as
 20752  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20753  //     s/{data_store}/siteSearchEngine`.
 20754  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
 20755  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20756  	c.parent = parent
 20757  	c.googleclouddiscoveryenginev1alphatargetsite = googleclouddiscoveryenginev1alphatargetsite
 20758  	return c
 20759  }
 20760  
 20761  // Fields allows partial responses to be retrieved. See
 20762  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20763  // details.
 20764  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
 20765  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20766  	return c
 20767  }
 20768  
 20769  // Context sets the context to be used in this call's Do method.
 20770  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
 20771  	c.ctx_ = ctx
 20772  	return c
 20773  }
 20774  
 20775  // Header returns a http.Header that can be modified by the caller to add
 20776  // headers to the request.
 20777  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header {
 20778  	if c.header_ == nil {
 20779  		c.header_ = make(http.Header)
 20780  	}
 20781  	return c.header_
 20782  }
 20783  
 20784  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) {
 20785  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20786  	var body io.Reader = nil
 20787  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatargetsite)
 20788  	if err != nil {
 20789  		return nil, err
 20790  	}
 20791  	c.urlParams_.Set("alt", alt)
 20792  	c.urlParams_.Set("prettyPrint", "false")
 20793  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites")
 20794  	urls += "?" + c.urlParams_.Encode()
 20795  	req, err := http.NewRequest("POST", urls, body)
 20796  	if err != nil {
 20797  		return nil, err
 20798  	}
 20799  	req.Header = reqHeaders
 20800  	googleapi.Expand(req.URL, map[string]string{
 20801  		"parent": c.parent,
 20802  	})
 20803  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20804  }
 20805  
 20806  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.create" call.
 20807  // Any non-2xx status code is an error. Response headers are in either
 20808  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20809  // returned at all) in error.(*googleapi.Error).Header. Use
 20810  // googleapi.IsNotModified to check whether the returned error was because
 20811  // http.StatusNotModified was returned.
 20812  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20813  	gensupport.SetOptions(c.urlParams_, opts...)
 20814  	res, err := c.doRequest("json")
 20815  	if res != nil && res.StatusCode == http.StatusNotModified {
 20816  		if res.Body != nil {
 20817  			res.Body.Close()
 20818  		}
 20819  		return nil, gensupport.WrapError(&googleapi.Error{
 20820  			Code:   res.StatusCode,
 20821  			Header: res.Header,
 20822  		})
 20823  	}
 20824  	if err != nil {
 20825  		return nil, err
 20826  	}
 20827  	defer googleapi.CloseBody(res)
 20828  	if err := googleapi.CheckResponse(res); err != nil {
 20829  		return nil, gensupport.WrapError(err)
 20830  	}
 20831  	ret := &GoogleLongrunningOperation{
 20832  		ServerResponse: googleapi.ServerResponse{
 20833  			Header:         res.Header,
 20834  			HTTPStatusCode: res.StatusCode,
 20835  		},
 20836  	}
 20837  	target := &ret
 20838  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20839  		return nil, err
 20840  	}
 20841  	return ret, nil
 20842  }
 20843  
 20844  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall struct {
 20845  	s          *Service
 20846  	name       string
 20847  	urlParams_ gensupport.URLParams
 20848  	ctx_       context.Context
 20849  	header_    http.Header
 20850  }
 20851  
 20852  // Delete: Deletes a TargetSite.
 20853  //
 20854  //   - name: Full resource name of TargetSite, such as
 20855  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20856  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}`. If the caller
 20857  //     does not have permission to access the TargetSite, regardless of whether
 20858  //     or not it exists, a PERMISSION_DENIED error is returned. If the requested
 20859  //     TargetSite does not exist, a NOT_FOUND error is returned.
 20860  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 20861  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20862  	c.name = name
 20863  	return c
 20864  }
 20865  
 20866  // Fields allows partial responses to be retrieved. See
 20867  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20868  // details.
 20869  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 20870  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20871  	return c
 20872  }
 20873  
 20874  // Context sets the context to be used in this call's Do method.
 20875  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 20876  	c.ctx_ = ctx
 20877  	return c
 20878  }
 20879  
 20880  // Header returns a http.Header that can be modified by the caller to add
 20881  // headers to the request.
 20882  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Header() http.Header {
 20883  	if c.header_ == nil {
 20884  		c.header_ = make(http.Header)
 20885  	}
 20886  	return c.header_
 20887  }
 20888  
 20889  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) doRequest(alt string) (*http.Response, error) {
 20890  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20891  	var body io.Reader = nil
 20892  	c.urlParams_.Set("alt", alt)
 20893  	c.urlParams_.Set("prettyPrint", "false")
 20894  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 20895  	urls += "?" + c.urlParams_.Encode()
 20896  	req, err := http.NewRequest("DELETE", urls, body)
 20897  	if err != nil {
 20898  		return nil, err
 20899  	}
 20900  	req.Header = reqHeaders
 20901  	googleapi.Expand(req.URL, map[string]string{
 20902  		"name": c.name,
 20903  	})
 20904  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20905  }
 20906  
 20907  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.delete" call.
 20908  // Any non-2xx status code is an error. Response headers are in either
 20909  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20910  // returned at all) in error.(*googleapi.Error).Header. Use
 20911  // googleapi.IsNotModified to check whether the returned error was because
 20912  // http.StatusNotModified was returned.
 20913  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20914  	gensupport.SetOptions(c.urlParams_, opts...)
 20915  	res, err := c.doRequest("json")
 20916  	if res != nil && res.StatusCode == http.StatusNotModified {
 20917  		if res.Body != nil {
 20918  			res.Body.Close()
 20919  		}
 20920  		return nil, gensupport.WrapError(&googleapi.Error{
 20921  			Code:   res.StatusCode,
 20922  			Header: res.Header,
 20923  		})
 20924  	}
 20925  	if err != nil {
 20926  		return nil, err
 20927  	}
 20928  	defer googleapi.CloseBody(res)
 20929  	if err := googleapi.CheckResponse(res); err != nil {
 20930  		return nil, gensupport.WrapError(err)
 20931  	}
 20932  	ret := &GoogleLongrunningOperation{
 20933  		ServerResponse: googleapi.ServerResponse{
 20934  			Header:         res.Header,
 20935  			HTTPStatusCode: res.StatusCode,
 20936  		},
 20937  	}
 20938  	target := &ret
 20939  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20940  		return nil, err
 20941  	}
 20942  	return ret, nil
 20943  }
 20944  
 20945  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall struct {
 20946  	s            *Service
 20947  	name         string
 20948  	urlParams_   gensupport.URLParams
 20949  	ifNoneMatch_ string
 20950  	ctx_         context.Context
 20951  	header_      http.Header
 20952  }
 20953  
 20954  // Get: Gets a TargetSite.
 20955  //
 20956  //   - name: Full resource name of TargetSite, such as
 20957  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20958  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}`. If the caller
 20959  //     does not have permission to access the TargetSite, regardless of whether
 20960  //     or not it exists, a PERMISSION_DENIED error is returned. If the requested
 20961  //     TargetSite does not exist, a NOT_FOUND error is returned.
 20962  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
 20963  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20964  	c.name = name
 20965  	return c
 20966  }
 20967  
 20968  // Fields allows partial responses to be retrieved. See
 20969  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20970  // details.
 20971  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
 20972  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20973  	return c
 20974  }
 20975  
 20976  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20977  // object's ETag matches the given value. This is useful for getting updates
 20978  // only after the object has changed since the last request.
 20979  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
 20980  	c.ifNoneMatch_ = entityTag
 20981  	return c
 20982  }
 20983  
 20984  // Context sets the context to be used in this call's Do method.
 20985  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
 20986  	c.ctx_ = ctx
 20987  	return c
 20988  }
 20989  
 20990  // Header returns a http.Header that can be modified by the caller to add
 20991  // headers to the request.
 20992  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Header() http.Header {
 20993  	if c.header_ == nil {
 20994  		c.header_ = make(http.Header)
 20995  	}
 20996  	return c.header_
 20997  }
 20998  
 20999  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) doRequest(alt string) (*http.Response, error) {
 21000  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21001  	if c.ifNoneMatch_ != "" {
 21002  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21003  	}
 21004  	var body io.Reader = nil
 21005  	c.urlParams_.Set("alt", alt)
 21006  	c.urlParams_.Set("prettyPrint", "false")
 21007  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 21008  	urls += "?" + c.urlParams_.Encode()
 21009  	req, err := http.NewRequest("GET", 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.collections.dataStores.siteSearchEngine.targetSites.get" call.
 21021  // Any non-2xx status code is an error. Response headers are in either
 21022  // *GoogleCloudDiscoveryengineV1alphaTargetSite.ServerResponse.Header or (if a
 21023  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21024  // googleapi.IsNotModified to check whether the returned error was because
 21025  // http.StatusNotModified was returned.
 21026  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaTargetSite, 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 := &GoogleCloudDiscoveryengineV1alphaTargetSite{
 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 ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall struct {
 21059  	s            *Service
 21060  	parent       string
 21061  	urlParams_   gensupport.URLParams
 21062  	ifNoneMatch_ string
 21063  	ctx_         context.Context
 21064  	header_      http.Header
 21065  }
 21066  
 21067  // List: Gets a list of TargetSites.
 21068  //
 21069  //   - parent: The parent site search engine resource name, such as
 21070  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 21071  //     s/{data_store}/siteSearchEngine`. If the caller does not have permission
 21072  //     to list TargetSites under this site search engine, regardless of whether
 21073  //     or not this branch exists, a PERMISSION_DENIED error is returned.
 21074  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) List(parent string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 21075  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21076  	c.parent = parent
 21077  	return c
 21078  }
 21079  
 21080  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 21081  // may return fewer items than requested. If unspecified, server will pick an
 21082  // appropriate default. The maximum value is 1000; values above 1000 will be
 21083  // coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is
 21084  // returned.
 21085  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 21086  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21087  	return c
 21088  }
 21089  
 21090  // PageToken sets the optional parameter "pageToken": A page token, received
 21091  // from a previous `ListTargetSites` call. Provide this to retrieve the
 21092  // subsequent page. When paginating, all other parameters provided to
 21093  // `ListTargetSites` must match the call that provided the page token.
 21094  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 21095  	c.urlParams_.Set("pageToken", pageToken)
 21096  	return c
 21097  }
 21098  
 21099  // Fields allows partial responses to be retrieved. See
 21100  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21101  // details.
 21102  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 21103  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21104  	return c
 21105  }
 21106  
 21107  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21108  // object's ETag matches the given value. This is useful for getting updates
 21109  // only after the object has changed since the last request.
 21110  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 21111  	c.ifNoneMatch_ = entityTag
 21112  	return c
 21113  }
 21114  
 21115  // Context sets the context to be used in this call's Do method.
 21116  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 21117  	c.ctx_ = ctx
 21118  	return c
 21119  }
 21120  
 21121  // Header returns a http.Header that can be modified by the caller to add
 21122  // headers to the request.
 21123  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Header() http.Header {
 21124  	if c.header_ == nil {
 21125  		c.header_ = make(http.Header)
 21126  	}
 21127  	return c.header_
 21128  }
 21129  
 21130  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) doRequest(alt string) (*http.Response, error) {
 21131  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21132  	if c.ifNoneMatch_ != "" {
 21133  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21134  	}
 21135  	var body io.Reader = nil
 21136  	c.urlParams_.Set("alt", alt)
 21137  	c.urlParams_.Set("prettyPrint", "false")
 21138  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites")
 21139  	urls += "?" + c.urlParams_.Encode()
 21140  	req, err := http.NewRequest("GET", urls, body)
 21141  	if err != nil {
 21142  		return nil, err
 21143  	}
 21144  	req.Header = reqHeaders
 21145  	googleapi.Expand(req.URL, map[string]string{
 21146  		"parent": c.parent,
 21147  	})
 21148  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21149  }
 21150  
 21151  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.list" call.
 21152  // Any non-2xx status code is an error. Response headers are in either
 21153  // *GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse.ServerResponse.Head
 21154  // er or (if a response was returned at all) in
 21155  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 21156  // whether the returned error was because http.StatusNotModified was returned.
 21157  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse, error) {
 21158  	gensupport.SetOptions(c.urlParams_, opts...)
 21159  	res, err := c.doRequest("json")
 21160  	if res != nil && res.StatusCode == http.StatusNotModified {
 21161  		if res.Body != nil {
 21162  			res.Body.Close()
 21163  		}
 21164  		return nil, gensupport.WrapError(&googleapi.Error{
 21165  			Code:   res.StatusCode,
 21166  			Header: res.Header,
 21167  		})
 21168  	}
 21169  	if err != nil {
 21170  		return nil, err
 21171  	}
 21172  	defer googleapi.CloseBody(res)
 21173  	if err := googleapi.CheckResponse(res); err != nil {
 21174  		return nil, gensupport.WrapError(err)
 21175  	}
 21176  	ret := &GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse{
 21177  		ServerResponse: googleapi.ServerResponse{
 21178  			Header:         res.Header,
 21179  			HTTPStatusCode: res.StatusCode,
 21180  		},
 21181  	}
 21182  	target := &ret
 21183  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21184  		return nil, err
 21185  	}
 21186  	return ret, nil
 21187  }
 21188  
 21189  // Pages invokes f for each page of results.
 21190  // A non-nil error returned from f will halt the iteration.
 21191  // The provided context supersedes any context provided to the Context method.
 21192  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse) error) error {
 21193  	c.ctx_ = ctx
 21194  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21195  	for {
 21196  		x, err := c.Do()
 21197  		if err != nil {
 21198  			return err
 21199  		}
 21200  		if err := f(x); err != nil {
 21201  			return err
 21202  		}
 21203  		if x.NextPageToken == "" {
 21204  			return nil
 21205  		}
 21206  		c.PageToken(x.NextPageToken)
 21207  	}
 21208  }
 21209  
 21210  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall struct {
 21211  	s                                           *Service
 21212  	name                                        string
 21213  	googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite
 21214  	urlParams_                                  gensupport.URLParams
 21215  	ctx_                                        context.Context
 21216  	header_                                     http.Header
 21217  }
 21218  
 21219  // Patch: Updates a TargetSite.
 21220  //
 21221  //   - name: Output only. The fully qualified resource name of the target site.
 21222  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 21223  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}` The
 21224  //     `target_site_id` is system-generated.
 21225  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Patch(name string, googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
 21226  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21227  	c.name = name
 21228  	c.googleclouddiscoveryenginev1alphatargetsite = googleclouddiscoveryenginev1alphatargetsite
 21229  	return c
 21230  }
 21231  
 21232  // Fields allows partial responses to be retrieved. See
 21233  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21234  // details.
 21235  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
 21236  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21237  	return c
 21238  }
 21239  
 21240  // Context sets the context to be used in this call's Do method.
 21241  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
 21242  	c.ctx_ = ctx
 21243  	return c
 21244  }
 21245  
 21246  // Header returns a http.Header that can be modified by the caller to add
 21247  // headers to the request.
 21248  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Header() http.Header {
 21249  	if c.header_ == nil {
 21250  		c.header_ = make(http.Header)
 21251  	}
 21252  	return c.header_
 21253  }
 21254  
 21255  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequest(alt string) (*http.Response, error) {
 21256  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21257  	var body io.Reader = nil
 21258  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatargetsite)
 21259  	if err != nil {
 21260  		return nil, err
 21261  	}
 21262  	c.urlParams_.Set("alt", alt)
 21263  	c.urlParams_.Set("prettyPrint", "false")
 21264  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 21265  	urls += "?" + c.urlParams_.Encode()
 21266  	req, err := http.NewRequest("PATCH", urls, body)
 21267  	if err != nil {
 21268  		return nil, err
 21269  	}
 21270  	req.Header = reqHeaders
 21271  	googleapi.Expand(req.URL, map[string]string{
 21272  		"name": c.name,
 21273  	})
 21274  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21275  }
 21276  
 21277  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.patch" call.
 21278  // Any non-2xx status code is an error. Response headers are in either
 21279  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21280  // returned at all) in error.(*googleapi.Error).Header. Use
 21281  // googleapi.IsNotModified to check whether the returned error was because
 21282  // http.StatusNotModified was returned.
 21283  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21284  	gensupport.SetOptions(c.urlParams_, opts...)
 21285  	res, err := c.doRequest("json")
 21286  	if res != nil && res.StatusCode == http.StatusNotModified {
 21287  		if res.Body != nil {
 21288  			res.Body.Close()
 21289  		}
 21290  		return nil, gensupport.WrapError(&googleapi.Error{
 21291  			Code:   res.StatusCode,
 21292  			Header: res.Header,
 21293  		})
 21294  	}
 21295  	if err != nil {
 21296  		return nil, err
 21297  	}
 21298  	defer googleapi.CloseBody(res)
 21299  	if err := googleapi.CheckResponse(res); err != nil {
 21300  		return nil, gensupport.WrapError(err)
 21301  	}
 21302  	ret := &GoogleLongrunningOperation{
 21303  		ServerResponse: googleapi.ServerResponse{
 21304  			Header:         res.Header,
 21305  			HTTPStatusCode: res.StatusCode,
 21306  		},
 21307  	}
 21308  	target := &ret
 21309  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21310  		return nil, err
 21311  	}
 21312  	return ret, nil
 21313  }
 21314  
 21315  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall struct {
 21316  	s            *Service
 21317  	name         string
 21318  	urlParams_   gensupport.URLParams
 21319  	ifNoneMatch_ string
 21320  	ctx_         context.Context
 21321  	header_      http.Header
 21322  }
 21323  
 21324  // Get: Gets the latest state of a long-running operation. Clients can use this
 21325  // method to poll the operation result at intervals as recommended by the API
 21326  // service.
 21327  //
 21328  // - name: The name of the operation resource.
 21329  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
 21330  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21331  	c.name = name
 21332  	return c
 21333  }
 21334  
 21335  // Fields allows partial responses to be retrieved. See
 21336  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21337  // details.
 21338  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
 21339  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21340  	return c
 21341  }
 21342  
 21343  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21344  // object's ETag matches the given value. This is useful for getting updates
 21345  // only after the object has changed since the last request.
 21346  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
 21347  	c.ifNoneMatch_ = entityTag
 21348  	return c
 21349  }
 21350  
 21351  // Context sets the context to be used in this call's Do method.
 21352  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
 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 *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Header() http.Header {
 21360  	if c.header_ == nil {
 21361  		c.header_ = make(http.Header)
 21362  	}
 21363  	return c.header_
 21364  }
 21365  
 21366  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 21367  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21368  	if c.ifNoneMatch_ != "" {
 21369  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21370  	}
 21371  	var body io.Reader = nil
 21372  	c.urlParams_.Set("alt", alt)
 21373  	c.urlParams_.Set("prettyPrint", "false")
 21374  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 21375  	urls += "?" + c.urlParams_.Encode()
 21376  	req, err := http.NewRequest("GET", urls, body)
 21377  	if err != nil {
 21378  		return nil, err
 21379  	}
 21380  	req.Header = reqHeaders
 21381  	googleapi.Expand(req.URL, map[string]string{
 21382  		"name": c.name,
 21383  	})
 21384  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21385  }
 21386  
 21387  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.get" call.
 21388  // Any non-2xx status code is an error. Response headers are in either
 21389  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21390  // returned at all) in error.(*googleapi.Error).Header. Use
 21391  // googleapi.IsNotModified to check whether the returned error was because
 21392  // http.StatusNotModified was returned.
 21393  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21394  	gensupport.SetOptions(c.urlParams_, opts...)
 21395  	res, err := c.doRequest("json")
 21396  	if res != nil && res.StatusCode == http.StatusNotModified {
 21397  		if res.Body != nil {
 21398  			res.Body.Close()
 21399  		}
 21400  		return nil, gensupport.WrapError(&googleapi.Error{
 21401  			Code:   res.StatusCode,
 21402  			Header: res.Header,
 21403  		})
 21404  	}
 21405  	if err != nil {
 21406  		return nil, err
 21407  	}
 21408  	defer googleapi.CloseBody(res)
 21409  	if err := googleapi.CheckResponse(res); err != nil {
 21410  		return nil, gensupport.WrapError(err)
 21411  	}
 21412  	ret := &GoogleLongrunningOperation{
 21413  		ServerResponse: googleapi.ServerResponse{
 21414  			Header:         res.Header,
 21415  			HTTPStatusCode: res.StatusCode,
 21416  		},
 21417  	}
 21418  	target := &ret
 21419  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21420  		return nil, err
 21421  	}
 21422  	return ret, nil
 21423  }
 21424  
 21425  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall struct {
 21426  	s            *Service
 21427  	name         string
 21428  	urlParams_   gensupport.URLParams
 21429  	ifNoneMatch_ string
 21430  	ctx_         context.Context
 21431  	header_      http.Header
 21432  }
 21433  
 21434  // List: Lists operations that match the specified filter in the request. If
 21435  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 21436  //
 21437  // - name: The name of the operation's parent resource.
 21438  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 21439  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21440  	c.name = name
 21441  	return c
 21442  }
 21443  
 21444  // Filter sets the optional parameter "filter": The standard list filter.
 21445  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 21446  	c.urlParams_.Set("filter", filter)
 21447  	return c
 21448  }
 21449  
 21450  // PageSize sets the optional parameter "pageSize": The standard list page
 21451  // size.
 21452  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 21453  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21454  	return c
 21455  }
 21456  
 21457  // PageToken sets the optional parameter "pageToken": The standard list page
 21458  // token.
 21459  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 21460  	c.urlParams_.Set("pageToken", pageToken)
 21461  	return c
 21462  }
 21463  
 21464  // Fields allows partial responses to be retrieved. See
 21465  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21466  // details.
 21467  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 21468  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21469  	return c
 21470  }
 21471  
 21472  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21473  // object's ETag matches the given value. This is useful for getting updates
 21474  // only after the object has changed since the last request.
 21475  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 21476  	c.ifNoneMatch_ = entityTag
 21477  	return c
 21478  }
 21479  
 21480  // Context sets the context to be used in this call's Do method.
 21481  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 21482  	c.ctx_ = ctx
 21483  	return c
 21484  }
 21485  
 21486  // Header returns a http.Header that can be modified by the caller to add
 21487  // headers to the request.
 21488  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Header() http.Header {
 21489  	if c.header_ == nil {
 21490  		c.header_ = make(http.Header)
 21491  	}
 21492  	return c.header_
 21493  }
 21494  
 21495  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) doRequest(alt string) (*http.Response, error) {
 21496  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21497  	if c.ifNoneMatch_ != "" {
 21498  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21499  	}
 21500  	var body io.Reader = nil
 21501  	c.urlParams_.Set("alt", alt)
 21502  	c.urlParams_.Set("prettyPrint", "false")
 21503  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 21504  	urls += "?" + c.urlParams_.Encode()
 21505  	req, err := http.NewRequest("GET", urls, body)
 21506  	if err != nil {
 21507  		return nil, err
 21508  	}
 21509  	req.Header = reqHeaders
 21510  	googleapi.Expand(req.URL, map[string]string{
 21511  		"name": c.name,
 21512  	})
 21513  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21514  }
 21515  
 21516  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.list" call.
 21517  // Any non-2xx status code is an error. Response headers are in either
 21518  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 21519  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21520  // googleapi.IsNotModified to check whether the returned error was because
 21521  // http.StatusNotModified was returned.
 21522  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 21523  	gensupport.SetOptions(c.urlParams_, opts...)
 21524  	res, err := c.doRequest("json")
 21525  	if res != nil && res.StatusCode == http.StatusNotModified {
 21526  		if res.Body != nil {
 21527  			res.Body.Close()
 21528  		}
 21529  		return nil, gensupport.WrapError(&googleapi.Error{
 21530  			Code:   res.StatusCode,
 21531  			Header: res.Header,
 21532  		})
 21533  	}
 21534  	if err != nil {
 21535  		return nil, err
 21536  	}
 21537  	defer googleapi.CloseBody(res)
 21538  	if err := googleapi.CheckResponse(res); err != nil {
 21539  		return nil, gensupport.WrapError(err)
 21540  	}
 21541  	ret := &GoogleLongrunningListOperationsResponse{
 21542  		ServerResponse: googleapi.ServerResponse{
 21543  			Header:         res.Header,
 21544  			HTTPStatusCode: res.StatusCode,
 21545  		},
 21546  	}
 21547  	target := &ret
 21548  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21549  		return nil, err
 21550  	}
 21551  	return ret, nil
 21552  }
 21553  
 21554  // Pages invokes f for each page of results.
 21555  // A non-nil error returned from f will halt the iteration.
 21556  // The provided context supersedes any context provided to the Context method.
 21557  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 21558  	c.ctx_ = ctx
 21559  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21560  	for {
 21561  		x, err := c.Do()
 21562  		if err != nil {
 21563  			return err
 21564  		}
 21565  		if err := f(x); err != nil {
 21566  			return err
 21567  		}
 21568  		if x.NextPageToken == "" {
 21569  			return nil
 21570  		}
 21571  		c.PageToken(x.NextPageToken)
 21572  	}
 21573  }
 21574  
 21575  type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall struct {
 21576  	s                                                                       *Service
 21577  	parent                                                                  string
 21578  	googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest
 21579  	urlParams_                                                              gensupport.URLParams
 21580  	ctx_                                                                    context.Context
 21581  	header_                                                                 http.Header
 21582  }
 21583  
 21584  // Import: Imports all SuggestionDenyListEntry for a DataStore.
 21585  //
 21586  //   - parent: The parent data store resource name for which to import denylist
 21587  //     entries. Follows pattern
 21588  //     projects/*/locations/*/collections/*/dataStores/*.
 21589  func (r *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService) Import(parent string, googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
 21590  	c := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21591  	c.parent = parent
 21592  	c.googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest = googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest
 21593  	return c
 21594  }
 21595  
 21596  // Fields allows partial responses to be retrieved. See
 21597  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21598  // details.
 21599  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
 21600  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21601  	return c
 21602  }
 21603  
 21604  // Context sets the context to be used in this call's Do method.
 21605  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
 21606  	c.ctx_ = ctx
 21607  	return c
 21608  }
 21609  
 21610  // Header returns a http.Header that can be modified by the caller to add
 21611  // headers to the request.
 21612  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Header() http.Header {
 21613  	if c.header_ == nil {
 21614  		c.header_ = make(http.Header)
 21615  	}
 21616  	return c.header_
 21617  }
 21618  
 21619  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) doRequest(alt string) (*http.Response, error) {
 21620  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21621  	var body io.Reader = nil
 21622  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest)
 21623  	if err != nil {
 21624  		return nil, err
 21625  	}
 21626  	c.urlParams_.Set("alt", alt)
 21627  	c.urlParams_.Set("prettyPrint", "false")
 21628  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/suggestionDenyListEntries:import")
 21629  	urls += "?" + c.urlParams_.Encode()
 21630  	req, err := http.NewRequest("POST", urls, body)
 21631  	if err != nil {
 21632  		return nil, err
 21633  	}
 21634  	req.Header = reqHeaders
 21635  	googleapi.Expand(req.URL, map[string]string{
 21636  		"parent": c.parent,
 21637  	})
 21638  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21639  }
 21640  
 21641  // Do executes the "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.import" call.
 21642  // Any non-2xx status code is an error. Response headers are in either
 21643  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21644  // returned at all) in error.(*googleapi.Error).Header. Use
 21645  // googleapi.IsNotModified to check whether the returned error was because
 21646  // http.StatusNotModified was returned.
 21647  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21648  	gensupport.SetOptions(c.urlParams_, opts...)
 21649  	res, err := c.doRequest("json")
 21650  	if res != nil && res.StatusCode == http.StatusNotModified {
 21651  		if res.Body != nil {
 21652  			res.Body.Close()
 21653  		}
 21654  		return nil, gensupport.WrapError(&googleapi.Error{
 21655  			Code:   res.StatusCode,
 21656  			Header: res.Header,
 21657  		})
 21658  	}
 21659  	if err != nil {
 21660  		return nil, err
 21661  	}
 21662  	defer googleapi.CloseBody(res)
 21663  	if err := googleapi.CheckResponse(res); err != nil {
 21664  		return nil, gensupport.WrapError(err)
 21665  	}
 21666  	ret := &GoogleLongrunningOperation{
 21667  		ServerResponse: googleapi.ServerResponse{
 21668  			Header:         res.Header,
 21669  			HTTPStatusCode: res.StatusCode,
 21670  		},
 21671  	}
 21672  	target := &ret
 21673  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21674  		return nil, err
 21675  	}
 21676  	return ret, nil
 21677  }
 21678  
 21679  type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall struct {
 21680  	s                                                                      *Service
 21681  	parent                                                                 string
 21682  	googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest
 21683  	urlParams_                                                             gensupport.URLParams
 21684  	ctx_                                                                   context.Context
 21685  	header_                                                                http.Header
 21686  }
 21687  
 21688  // Purge: Permanently deletes all SuggestionDenyListEntry for a DataStore.
 21689  //
 21690  //   - parent: The parent data store resource name for which to import denylist
 21691  //     entries. Follows pattern
 21692  //     projects/*/locations/*/collections/*/dataStores/*.
 21693  func (r *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService) Purge(parent string, googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
 21694  	c := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21695  	c.parent = parent
 21696  	c.googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest = googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest
 21697  	return c
 21698  }
 21699  
 21700  // Fields allows partial responses to be retrieved. See
 21701  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21702  // details.
 21703  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
 21704  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21705  	return c
 21706  }
 21707  
 21708  // Context sets the context to be used in this call's Do method.
 21709  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
 21710  	c.ctx_ = ctx
 21711  	return c
 21712  }
 21713  
 21714  // Header returns a http.Header that can be modified by the caller to add
 21715  // headers to the request.
 21716  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Header() http.Header {
 21717  	if c.header_ == nil {
 21718  		c.header_ = make(http.Header)
 21719  	}
 21720  	return c.header_
 21721  }
 21722  
 21723  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) doRequest(alt string) (*http.Response, error) {
 21724  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21725  	var body io.Reader = nil
 21726  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest)
 21727  	if err != nil {
 21728  		return nil, err
 21729  	}
 21730  	c.urlParams_.Set("alt", alt)
 21731  	c.urlParams_.Set("prettyPrint", "false")
 21732  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/suggestionDenyListEntries:purge")
 21733  	urls += "?" + c.urlParams_.Encode()
 21734  	req, err := http.NewRequest("POST", urls, body)
 21735  	if err != nil {
 21736  		return nil, err
 21737  	}
 21738  	req.Header = reqHeaders
 21739  	googleapi.Expand(req.URL, map[string]string{
 21740  		"parent": c.parent,
 21741  	})
 21742  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21743  }
 21744  
 21745  // Do executes the "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.purge" call.
 21746  // Any non-2xx status code is an error. Response headers are in either
 21747  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21748  // returned at all) in error.(*googleapi.Error).Header. Use
 21749  // googleapi.IsNotModified to check whether the returned error was because
 21750  // http.StatusNotModified was returned.
 21751  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21752  	gensupport.SetOptions(c.urlParams_, opts...)
 21753  	res, err := c.doRequest("json")
 21754  	if res != nil && res.StatusCode == http.StatusNotModified {
 21755  		if res.Body != nil {
 21756  			res.Body.Close()
 21757  		}
 21758  		return nil, gensupport.WrapError(&googleapi.Error{
 21759  			Code:   res.StatusCode,
 21760  			Header: res.Header,
 21761  		})
 21762  	}
 21763  	if err != nil {
 21764  		return nil, err
 21765  	}
 21766  	defer googleapi.CloseBody(res)
 21767  	if err := googleapi.CheckResponse(res); err != nil {
 21768  		return nil, gensupport.WrapError(err)
 21769  	}
 21770  	ret := &GoogleLongrunningOperation{
 21771  		ServerResponse: googleapi.ServerResponse{
 21772  			Header:         res.Header,
 21773  			HTTPStatusCode: res.StatusCode,
 21774  		},
 21775  	}
 21776  	target := &ret
 21777  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21778  		return nil, err
 21779  	}
 21780  	return ret, nil
 21781  }
 21782  
 21783  type ProjectsLocationsCollectionsDataStoresUserEventsCollectCall struct {
 21784  	s            *Service
 21785  	parent       string
 21786  	urlParams_   gensupport.URLParams
 21787  	ifNoneMatch_ string
 21788  	ctx_         context.Context
 21789  	header_      http.Header
 21790  }
 21791  
 21792  // Collect: Writes a single user event from the browser. This uses a GET
 21793  // request to due to browser restriction of POST-ing to a third-party domain.
 21794  // This method is used only by the Discovery Engine API JavaScript pixel and
 21795  // Google Tag Manager. Users should not call this method directly.
 21796  //
 21797  //   - parent: The parent DataStore resource name, such as
 21798  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 21799  //     s/{data_store}`.
 21800  func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Collect(parent string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 21801  	c := &ProjectsLocationsCollectionsDataStoresUserEventsCollectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21802  	c.parent = parent
 21803  	return c
 21804  }
 21805  
 21806  // Ets sets the optional parameter "ets": The event timestamp in milliseconds.
 21807  // This prevents browser caching of otherwise identical get requests. The name
 21808  // is abbreviated to reduce the payload bytes.
 21809  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Ets(ets int64) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 21810  	c.urlParams_.Set("ets", fmt.Sprint(ets))
 21811  	return c
 21812  }
 21813  
 21814  // Uri sets the optional parameter "uri": The URL including cgi-parameters but
 21815  // excluding the hash fragment with a length limit of 5,000 characters. This is
 21816  // often more useful than the referer URL, because many browsers only send the
 21817  // domain for third-party requests.
 21818  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Uri(uri string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 21819  	c.urlParams_.Set("uri", uri)
 21820  	return c
 21821  }
 21822  
 21823  // UserEvent sets the optional parameter "userEvent": Required. URL encoded
 21824  // UserEvent proto with a length limit of 2,000,000 characters.
 21825  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) UserEvent(userEvent string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 21826  	c.urlParams_.Set("userEvent", userEvent)
 21827  	return c
 21828  }
 21829  
 21830  // Fields allows partial responses to be retrieved. See
 21831  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21832  // details.
 21833  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 21834  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21835  	return c
 21836  }
 21837  
 21838  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21839  // object's ETag matches the given value. This is useful for getting updates
 21840  // only after the object has changed since the last request.
 21841  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 21842  	c.ifNoneMatch_ = entityTag
 21843  	return c
 21844  }
 21845  
 21846  // Context sets the context to be used in this call's Do method.
 21847  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 21848  	c.ctx_ = ctx
 21849  	return c
 21850  }
 21851  
 21852  // Header returns a http.Header that can be modified by the caller to add
 21853  // headers to the request.
 21854  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Header() http.Header {
 21855  	if c.header_ == nil {
 21856  		c.header_ = make(http.Header)
 21857  	}
 21858  	return c.header_
 21859  }
 21860  
 21861  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) {
 21862  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21863  	if c.ifNoneMatch_ != "" {
 21864  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21865  	}
 21866  	var body io.Reader = nil
 21867  	c.urlParams_.Set("alt", alt)
 21868  	c.urlParams_.Set("prettyPrint", "false")
 21869  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:collect")
 21870  	urls += "?" + c.urlParams_.Encode()
 21871  	req, err := http.NewRequest("GET", urls, body)
 21872  	if err != nil {
 21873  		return nil, err
 21874  	}
 21875  	req.Header = reqHeaders
 21876  	googleapi.Expand(req.URL, map[string]string{
 21877  		"parent": c.parent,
 21878  	})
 21879  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21880  }
 21881  
 21882  // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.collect" call.
 21883  // Any non-2xx status code is an error. Response headers are in either
 21884  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 21885  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21886  // check whether the returned error was because http.StatusNotModified was
 21887  // returned.
 21888  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 21889  	gensupport.SetOptions(c.urlParams_, opts...)
 21890  	res, err := c.doRequest("json")
 21891  	if res != nil && res.StatusCode == http.StatusNotModified {
 21892  		if res.Body != nil {
 21893  			res.Body.Close()
 21894  		}
 21895  		return nil, gensupport.WrapError(&googleapi.Error{
 21896  			Code:   res.StatusCode,
 21897  			Header: res.Header,
 21898  		})
 21899  	}
 21900  	if err != nil {
 21901  		return nil, err
 21902  	}
 21903  	defer googleapi.CloseBody(res)
 21904  	if err := googleapi.CheckResponse(res); err != nil {
 21905  		return nil, gensupport.WrapError(err)
 21906  	}
 21907  	ret := &GoogleApiHttpBody{
 21908  		ServerResponse: googleapi.ServerResponse{
 21909  			Header:         res.Header,
 21910  			HTTPStatusCode: res.StatusCode,
 21911  		},
 21912  	}
 21913  	target := &ret
 21914  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21915  		return nil, err
 21916  	}
 21917  	return ret, nil
 21918  }
 21919  
 21920  type ProjectsLocationsCollectionsDataStoresUserEventsImportCall struct {
 21921  	s                                                        *Service
 21922  	parent                                                   string
 21923  	googleclouddiscoveryenginev1alphaimportusereventsrequest *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest
 21924  	urlParams_                                               gensupport.URLParams
 21925  	ctx_                                                     context.Context
 21926  	header_                                                  http.Header
 21927  }
 21928  
 21929  // Import: Bulk import of User events. Request processing might be synchronous.
 21930  // Events that already exist are skipped. Use this method for backfilling
 21931  // historical user events. Operation.response is of type ImportResponse. Note
 21932  // that it is possible for a subset of the items to be successfully inserted.
 21933  // Operation.metadata is of type ImportMetadata.
 21934  //
 21935  //   - parent: Parent DataStore resource name, of the form
 21936  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 21937  //     s/{data_store}`.
 21938  func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Import(parent string, googleclouddiscoveryenginev1alphaimportusereventsrequest *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
 21939  	c := &ProjectsLocationsCollectionsDataStoresUserEventsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21940  	c.parent = parent
 21941  	c.googleclouddiscoveryenginev1alphaimportusereventsrequest = googleclouddiscoveryenginev1alphaimportusereventsrequest
 21942  	return c
 21943  }
 21944  
 21945  // Fields allows partial responses to be retrieved. See
 21946  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21947  // details.
 21948  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
 21949  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21950  	return c
 21951  }
 21952  
 21953  // Context sets the context to be used in this call's Do method.
 21954  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
 21955  	c.ctx_ = ctx
 21956  	return c
 21957  }
 21958  
 21959  // Header returns a http.Header that can be modified by the caller to add
 21960  // headers to the request.
 21961  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Header() http.Header {
 21962  	if c.header_ == nil {
 21963  		c.header_ = make(http.Header)
 21964  	}
 21965  	return c.header_
 21966  }
 21967  
 21968  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) {
 21969  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21970  	var body io.Reader = nil
 21971  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaimportusereventsrequest)
 21972  	if err != nil {
 21973  		return nil, err
 21974  	}
 21975  	c.urlParams_.Set("alt", alt)
 21976  	c.urlParams_.Set("prettyPrint", "false")
 21977  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:import")
 21978  	urls += "?" + c.urlParams_.Encode()
 21979  	req, err := http.NewRequest("POST", urls, body)
 21980  	if err != nil {
 21981  		return nil, err
 21982  	}
 21983  	req.Header = reqHeaders
 21984  	googleapi.Expand(req.URL, map[string]string{
 21985  		"parent": c.parent,
 21986  	})
 21987  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21988  }
 21989  
 21990  // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.import" call.
 21991  // Any non-2xx status code is an error. Response headers are in either
 21992  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21993  // returned at all) in error.(*googleapi.Error).Header. Use
 21994  // googleapi.IsNotModified to check whether the returned error was because
 21995  // http.StatusNotModified was returned.
 21996  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21997  	gensupport.SetOptions(c.urlParams_, opts...)
 21998  	res, err := c.doRequest("json")
 21999  	if res != nil && res.StatusCode == http.StatusNotModified {
 22000  		if res.Body != nil {
 22001  			res.Body.Close()
 22002  		}
 22003  		return nil, gensupport.WrapError(&googleapi.Error{
 22004  			Code:   res.StatusCode,
 22005  			Header: res.Header,
 22006  		})
 22007  	}
 22008  	if err != nil {
 22009  		return nil, err
 22010  	}
 22011  	defer googleapi.CloseBody(res)
 22012  	if err := googleapi.CheckResponse(res); err != nil {
 22013  		return nil, gensupport.WrapError(err)
 22014  	}
 22015  	ret := &GoogleLongrunningOperation{
 22016  		ServerResponse: googleapi.ServerResponse{
 22017  			Header:         res.Header,
 22018  			HTTPStatusCode: res.StatusCode,
 22019  		},
 22020  	}
 22021  	target := &ret
 22022  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22023  		return nil, err
 22024  	}
 22025  	return ret, nil
 22026  }
 22027  
 22028  type ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall struct {
 22029  	s                                                       *Service
 22030  	parent                                                  string
 22031  	googleclouddiscoveryenginev1alphapurgeusereventsrequest *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest
 22032  	urlParams_                                              gensupport.URLParams
 22033  	ctx_                                                    context.Context
 22034  	header_                                                 http.Header
 22035  }
 22036  
 22037  // Purge: Deletes permanently all user events specified by the filter provided.
 22038  // Depending on the number of events specified by the filter, this operation
 22039  // could take hours or days to complete. To test a filter, use the list command
 22040  // first.
 22041  //
 22042  //   - parent: The resource name of the catalog under which the events are
 22043  //     created. The format is
 22044  //     `projects/${projectId}/locations/global/collections/{$collectionId}/dataSto
 22045  //     res/${dataStoreId}`.
 22046  func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Purge(parent string, googleclouddiscoveryenginev1alphapurgeusereventsrequest *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest) *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall {
 22047  	c := &ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22048  	c.parent = parent
 22049  	c.googleclouddiscoveryenginev1alphapurgeusereventsrequest = googleclouddiscoveryenginev1alphapurgeusereventsrequest
 22050  	return c
 22051  }
 22052  
 22053  // Fields allows partial responses to be retrieved. See
 22054  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22055  // details.
 22056  func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall {
 22057  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22058  	return c
 22059  }
 22060  
 22061  // Context sets the context to be used in this call's Do method.
 22062  func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall {
 22063  	c.ctx_ = ctx
 22064  	return c
 22065  }
 22066  
 22067  // Header returns a http.Header that can be modified by the caller to add
 22068  // headers to the request.
 22069  func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) Header() http.Header {
 22070  	if c.header_ == nil {
 22071  		c.header_ = make(http.Header)
 22072  	}
 22073  	return c.header_
 22074  }
 22075  
 22076  func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) doRequest(alt string) (*http.Response, error) {
 22077  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22078  	var body io.Reader = nil
 22079  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapurgeusereventsrequest)
 22080  	if err != nil {
 22081  		return nil, err
 22082  	}
 22083  	c.urlParams_.Set("alt", alt)
 22084  	c.urlParams_.Set("prettyPrint", "false")
 22085  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:purge")
 22086  	urls += "?" + c.urlParams_.Encode()
 22087  	req, err := http.NewRequest("POST", urls, body)
 22088  	if err != nil {
 22089  		return nil, err
 22090  	}
 22091  	req.Header = reqHeaders
 22092  	googleapi.Expand(req.URL, map[string]string{
 22093  		"parent": c.parent,
 22094  	})
 22095  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22096  }
 22097  
 22098  // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.purge" call.
 22099  // Any non-2xx status code is an error. Response headers are in either
 22100  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22101  // returned at all) in error.(*googleapi.Error).Header. Use
 22102  // googleapi.IsNotModified to check whether the returned error was because
 22103  // http.StatusNotModified was returned.
 22104  func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22105  	gensupport.SetOptions(c.urlParams_, opts...)
 22106  	res, err := c.doRequest("json")
 22107  	if res != nil && res.StatusCode == http.StatusNotModified {
 22108  		if res.Body != nil {
 22109  			res.Body.Close()
 22110  		}
 22111  		return nil, gensupport.WrapError(&googleapi.Error{
 22112  			Code:   res.StatusCode,
 22113  			Header: res.Header,
 22114  		})
 22115  	}
 22116  	if err != nil {
 22117  		return nil, err
 22118  	}
 22119  	defer googleapi.CloseBody(res)
 22120  	if err := googleapi.CheckResponse(res); err != nil {
 22121  		return nil, gensupport.WrapError(err)
 22122  	}
 22123  	ret := &GoogleLongrunningOperation{
 22124  		ServerResponse: googleapi.ServerResponse{
 22125  			Header:         res.Header,
 22126  			HTTPStatusCode: res.StatusCode,
 22127  		},
 22128  	}
 22129  	target := &ret
 22130  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22131  		return nil, err
 22132  	}
 22133  	return ret, nil
 22134  }
 22135  
 22136  type ProjectsLocationsCollectionsDataStoresUserEventsWriteCall struct {
 22137  	s                                          *Service
 22138  	parent                                     string
 22139  	googleclouddiscoveryenginev1alphauserevent *GoogleCloudDiscoveryengineV1alphaUserEvent
 22140  	urlParams_                                 gensupport.URLParams
 22141  	ctx_                                       context.Context
 22142  	header_                                    http.Header
 22143  }
 22144  
 22145  // Write: Writes a single user event.
 22146  //
 22147  //   - parent: The parent resource name. If the write user event action is
 22148  //     applied in DataStore level, the format is:
 22149  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 22150  //     s/{data_store}`. If the write user event action is applied in Location
 22151  //     level, for example, the event with Document across multiple DataStore, the
 22152  //     format is: `projects/{project}/locations/{location}`.
 22153  func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Write(parent string, googleclouddiscoveryenginev1alphauserevent *GoogleCloudDiscoveryengineV1alphaUserEvent) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
 22154  	c := &ProjectsLocationsCollectionsDataStoresUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22155  	c.parent = parent
 22156  	c.googleclouddiscoveryenginev1alphauserevent = googleclouddiscoveryenginev1alphauserevent
 22157  	return c
 22158  }
 22159  
 22160  // Fields allows partial responses to be retrieved. See
 22161  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22162  // details.
 22163  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
 22164  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22165  	return c
 22166  }
 22167  
 22168  // Context sets the context to be used in this call's Do method.
 22169  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
 22170  	c.ctx_ = ctx
 22171  	return c
 22172  }
 22173  
 22174  // Header returns a http.Header that can be modified by the caller to add
 22175  // headers to the request.
 22176  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Header() http.Header {
 22177  	if c.header_ == nil {
 22178  		c.header_ = make(http.Header)
 22179  	}
 22180  	return c.header_
 22181  }
 22182  
 22183  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
 22184  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22185  	var body io.Reader = nil
 22186  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphauserevent)
 22187  	if err != nil {
 22188  		return nil, err
 22189  	}
 22190  	c.urlParams_.Set("alt", alt)
 22191  	c.urlParams_.Set("prettyPrint", "false")
 22192  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:write")
 22193  	urls += "?" + c.urlParams_.Encode()
 22194  	req, err := http.NewRequest("POST", urls, body)
 22195  	if err != nil {
 22196  		return nil, err
 22197  	}
 22198  	req.Header = reqHeaders
 22199  	googleapi.Expand(req.URL, map[string]string{
 22200  		"parent": c.parent,
 22201  	})
 22202  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22203  }
 22204  
 22205  // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.write" call.
 22206  // Any non-2xx status code is an error. Response headers are in either
 22207  // *GoogleCloudDiscoveryengineV1alphaUserEvent.ServerResponse.Header or (if a
 22208  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22209  // googleapi.IsNotModified to check whether the returned error was because
 22210  // http.StatusNotModified was returned.
 22211  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaUserEvent, error) {
 22212  	gensupport.SetOptions(c.urlParams_, opts...)
 22213  	res, err := c.doRequest("json")
 22214  	if res != nil && res.StatusCode == http.StatusNotModified {
 22215  		if res.Body != nil {
 22216  			res.Body.Close()
 22217  		}
 22218  		return nil, gensupport.WrapError(&googleapi.Error{
 22219  			Code:   res.StatusCode,
 22220  			Header: res.Header,
 22221  		})
 22222  	}
 22223  	if err != nil {
 22224  		return nil, err
 22225  	}
 22226  	defer googleapi.CloseBody(res)
 22227  	if err := googleapi.CheckResponse(res); err != nil {
 22228  		return nil, gensupport.WrapError(err)
 22229  	}
 22230  	ret := &GoogleCloudDiscoveryengineV1alphaUserEvent{
 22231  		ServerResponse: googleapi.ServerResponse{
 22232  			Header:         res.Header,
 22233  			HTTPStatusCode: res.StatusCode,
 22234  		},
 22235  	}
 22236  	target := &ret
 22237  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22238  		return nil, err
 22239  	}
 22240  	return ret, nil
 22241  }
 22242  
 22243  type ProjectsLocationsCollectionsEnginesCreateCall struct {
 22244  	s                                       *Service
 22245  	parent                                  string
 22246  	googleclouddiscoveryenginev1alphaengine *GoogleCloudDiscoveryengineV1alphaEngine
 22247  	urlParams_                              gensupport.URLParams
 22248  	ctx_                                    context.Context
 22249  	header_                                 http.Header
 22250  }
 22251  
 22252  // Create: Creates a Engine.
 22253  //
 22254  //   - parent: The parent resource name, such as
 22255  //     `projects/{project}/locations/{location}/collections/{collection}`.
 22256  func (r *ProjectsLocationsCollectionsEnginesService) Create(parent string, googleclouddiscoveryenginev1alphaengine *GoogleCloudDiscoveryengineV1alphaEngine) *ProjectsLocationsCollectionsEnginesCreateCall {
 22257  	c := &ProjectsLocationsCollectionsEnginesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22258  	c.parent = parent
 22259  	c.googleclouddiscoveryenginev1alphaengine = googleclouddiscoveryenginev1alphaengine
 22260  	return c
 22261  }
 22262  
 22263  // EngineId sets the optional parameter "engineId": Required. The ID to use for
 22264  // the Engine, which will become the final component of the Engine's resource
 22265  // name. This field must conform to RFC-1034
 22266  // (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
 22267  // characters. Otherwise, an INVALID_ARGUMENT error is returned.
 22268  func (c *ProjectsLocationsCollectionsEnginesCreateCall) EngineId(engineId string) *ProjectsLocationsCollectionsEnginesCreateCall {
 22269  	c.urlParams_.Set("engineId", engineId)
 22270  	return c
 22271  }
 22272  
 22273  // Fields allows partial responses to be retrieved. See
 22274  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22275  // details.
 22276  func (c *ProjectsLocationsCollectionsEnginesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesCreateCall {
 22277  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22278  	return c
 22279  }
 22280  
 22281  // Context sets the context to be used in this call's Do method.
 22282  func (c *ProjectsLocationsCollectionsEnginesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesCreateCall {
 22283  	c.ctx_ = ctx
 22284  	return c
 22285  }
 22286  
 22287  // Header returns a http.Header that can be modified by the caller to add
 22288  // headers to the request.
 22289  func (c *ProjectsLocationsCollectionsEnginesCreateCall) Header() http.Header {
 22290  	if c.header_ == nil {
 22291  		c.header_ = make(http.Header)
 22292  	}
 22293  	return c.header_
 22294  }
 22295  
 22296  func (c *ProjectsLocationsCollectionsEnginesCreateCall) doRequest(alt string) (*http.Response, error) {
 22297  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22298  	var body io.Reader = nil
 22299  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaengine)
 22300  	if err != nil {
 22301  		return nil, err
 22302  	}
 22303  	c.urlParams_.Set("alt", alt)
 22304  	c.urlParams_.Set("prettyPrint", "false")
 22305  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/engines")
 22306  	urls += "?" + c.urlParams_.Encode()
 22307  	req, err := http.NewRequest("POST", urls, body)
 22308  	if err != nil {
 22309  		return nil, err
 22310  	}
 22311  	req.Header = reqHeaders
 22312  	googleapi.Expand(req.URL, map[string]string{
 22313  		"parent": c.parent,
 22314  	})
 22315  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22316  }
 22317  
 22318  // Do executes the "discoveryengine.projects.locations.collections.engines.create" call.
 22319  // Any non-2xx status code is an error. Response headers are in either
 22320  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22321  // returned at all) in error.(*googleapi.Error).Header. Use
 22322  // googleapi.IsNotModified to check whether the returned error was because
 22323  // http.StatusNotModified was returned.
 22324  func (c *ProjectsLocationsCollectionsEnginesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22325  	gensupport.SetOptions(c.urlParams_, opts...)
 22326  	res, err := c.doRequest("json")
 22327  	if res != nil && res.StatusCode == http.StatusNotModified {
 22328  		if res.Body != nil {
 22329  			res.Body.Close()
 22330  		}
 22331  		return nil, gensupport.WrapError(&googleapi.Error{
 22332  			Code:   res.StatusCode,
 22333  			Header: res.Header,
 22334  		})
 22335  	}
 22336  	if err != nil {
 22337  		return nil, err
 22338  	}
 22339  	defer googleapi.CloseBody(res)
 22340  	if err := googleapi.CheckResponse(res); err != nil {
 22341  		return nil, gensupport.WrapError(err)
 22342  	}
 22343  	ret := &GoogleLongrunningOperation{
 22344  		ServerResponse: googleapi.ServerResponse{
 22345  			Header:         res.Header,
 22346  			HTTPStatusCode: res.StatusCode,
 22347  		},
 22348  	}
 22349  	target := &ret
 22350  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22351  		return nil, err
 22352  	}
 22353  	return ret, nil
 22354  }
 22355  
 22356  type ProjectsLocationsCollectionsEnginesDeleteCall struct {
 22357  	s          *Service
 22358  	name       string
 22359  	urlParams_ gensupport.URLParams
 22360  	ctx_       context.Context
 22361  	header_    http.Header
 22362  }
 22363  
 22364  // Delete: Deletes a Engine.
 22365  //
 22366  //   - name: Full resource name of Engine, such as
 22367  //     `projects/{project}/locations/{location}/collections/{collection_id}/engine
 22368  //     s/{engine_id}`. If the caller does not have permission to delete the
 22369  //     Engine, regardless of whether or not it exists, a PERMISSION_DENIED error
 22370  //     is returned. If the Engine to delete does not exist, a NOT_FOUND error is
 22371  //     returned.
 22372  func (r *ProjectsLocationsCollectionsEnginesService) Delete(name string) *ProjectsLocationsCollectionsEnginesDeleteCall {
 22373  	c := &ProjectsLocationsCollectionsEnginesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22374  	c.name = name
 22375  	return c
 22376  }
 22377  
 22378  // Fields allows partial responses to be retrieved. See
 22379  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22380  // details.
 22381  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesDeleteCall {
 22382  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22383  	return c
 22384  }
 22385  
 22386  // Context sets the context to be used in this call's Do method.
 22387  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesDeleteCall {
 22388  	c.ctx_ = ctx
 22389  	return c
 22390  }
 22391  
 22392  // Header returns a http.Header that can be modified by the caller to add
 22393  // headers to the request.
 22394  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Header() http.Header {
 22395  	if c.header_ == nil {
 22396  		c.header_ = make(http.Header)
 22397  	}
 22398  	return c.header_
 22399  }
 22400  
 22401  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) doRequest(alt string) (*http.Response, error) {
 22402  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22403  	var body io.Reader = nil
 22404  	c.urlParams_.Set("alt", alt)
 22405  	c.urlParams_.Set("prettyPrint", "false")
 22406  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 22407  	urls += "?" + c.urlParams_.Encode()
 22408  	req, err := http.NewRequest("DELETE", urls, body)
 22409  	if err != nil {
 22410  		return nil, err
 22411  	}
 22412  	req.Header = reqHeaders
 22413  	googleapi.Expand(req.URL, map[string]string{
 22414  		"name": c.name,
 22415  	})
 22416  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22417  }
 22418  
 22419  // Do executes the "discoveryengine.projects.locations.collections.engines.delete" call.
 22420  // Any non-2xx status code is an error. Response headers are in either
 22421  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22422  // returned at all) in error.(*googleapi.Error).Header. Use
 22423  // googleapi.IsNotModified to check whether the returned error was because
 22424  // http.StatusNotModified was returned.
 22425  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22426  	gensupport.SetOptions(c.urlParams_, opts...)
 22427  	res, err := c.doRequest("json")
 22428  	if res != nil && res.StatusCode == http.StatusNotModified {
 22429  		if res.Body != nil {
 22430  			res.Body.Close()
 22431  		}
 22432  		return nil, gensupport.WrapError(&googleapi.Error{
 22433  			Code:   res.StatusCode,
 22434  			Header: res.Header,
 22435  		})
 22436  	}
 22437  	if err != nil {
 22438  		return nil, err
 22439  	}
 22440  	defer googleapi.CloseBody(res)
 22441  	if err := googleapi.CheckResponse(res); err != nil {
 22442  		return nil, gensupport.WrapError(err)
 22443  	}
 22444  	ret := &GoogleLongrunningOperation{
 22445  		ServerResponse: googleapi.ServerResponse{
 22446  			Header:         res.Header,
 22447  			HTTPStatusCode: res.StatusCode,
 22448  		},
 22449  	}
 22450  	target := &ret
 22451  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22452  		return nil, err
 22453  	}
 22454  	return ret, nil
 22455  }
 22456  
 22457  type ProjectsLocationsCollectionsEnginesGetCall struct {
 22458  	s            *Service
 22459  	name         string
 22460  	urlParams_   gensupport.URLParams
 22461  	ifNoneMatch_ string
 22462  	ctx_         context.Context
 22463  	header_      http.Header
 22464  }
 22465  
 22466  // Get: Gets a Engine.
 22467  //
 22468  //   - name: Full resource name of Engine, such as
 22469  //     `projects/{project}/locations/{location}/collections/{collection_id}/engine
 22470  //     s/{engine_id}`.
 22471  func (r *ProjectsLocationsCollectionsEnginesService) Get(name string) *ProjectsLocationsCollectionsEnginesGetCall {
 22472  	c := &ProjectsLocationsCollectionsEnginesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22473  	c.name = name
 22474  	return c
 22475  }
 22476  
 22477  // Fields allows partial responses to be retrieved. See
 22478  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22479  // details.
 22480  func (c *ProjectsLocationsCollectionsEnginesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesGetCall {
 22481  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22482  	return c
 22483  }
 22484  
 22485  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22486  // object's ETag matches the given value. This is useful for getting updates
 22487  // only after the object has changed since the last request.
 22488  func (c *ProjectsLocationsCollectionsEnginesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesGetCall {
 22489  	c.ifNoneMatch_ = entityTag
 22490  	return c
 22491  }
 22492  
 22493  // Context sets the context to be used in this call's Do method.
 22494  func (c *ProjectsLocationsCollectionsEnginesGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesGetCall {
 22495  	c.ctx_ = ctx
 22496  	return c
 22497  }
 22498  
 22499  // Header returns a http.Header that can be modified by the caller to add
 22500  // headers to the request.
 22501  func (c *ProjectsLocationsCollectionsEnginesGetCall) Header() http.Header {
 22502  	if c.header_ == nil {
 22503  		c.header_ = make(http.Header)
 22504  	}
 22505  	return c.header_
 22506  }
 22507  
 22508  func (c *ProjectsLocationsCollectionsEnginesGetCall) doRequest(alt string) (*http.Response, error) {
 22509  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22510  	if c.ifNoneMatch_ != "" {
 22511  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22512  	}
 22513  	var body io.Reader = nil
 22514  	c.urlParams_.Set("alt", alt)
 22515  	c.urlParams_.Set("prettyPrint", "false")
 22516  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 22517  	urls += "?" + c.urlParams_.Encode()
 22518  	req, err := http.NewRequest("GET", urls, body)
 22519  	if err != nil {
 22520  		return nil, err
 22521  	}
 22522  	req.Header = reqHeaders
 22523  	googleapi.Expand(req.URL, map[string]string{
 22524  		"name": c.name,
 22525  	})
 22526  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22527  }
 22528  
 22529  // Do executes the "discoveryengine.projects.locations.collections.engines.get" call.
 22530  // Any non-2xx status code is an error. Response headers are in either
 22531  // *GoogleCloudDiscoveryengineV1alphaEngine.ServerResponse.Header or (if a
 22532  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22533  // googleapi.IsNotModified to check whether the returned error was because
 22534  // http.StatusNotModified was returned.
 22535  func (c *ProjectsLocationsCollectionsEnginesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaEngine, error) {
 22536  	gensupport.SetOptions(c.urlParams_, opts...)
 22537  	res, err := c.doRequest("json")
 22538  	if res != nil && res.StatusCode == http.StatusNotModified {
 22539  		if res.Body != nil {
 22540  			res.Body.Close()
 22541  		}
 22542  		return nil, gensupport.WrapError(&googleapi.Error{
 22543  			Code:   res.StatusCode,
 22544  			Header: res.Header,
 22545  		})
 22546  	}
 22547  	if err != nil {
 22548  		return nil, err
 22549  	}
 22550  	defer googleapi.CloseBody(res)
 22551  	if err := googleapi.CheckResponse(res); err != nil {
 22552  		return nil, gensupport.WrapError(err)
 22553  	}
 22554  	ret := &GoogleCloudDiscoveryengineV1alphaEngine{
 22555  		ServerResponse: googleapi.ServerResponse{
 22556  			Header:         res.Header,
 22557  			HTTPStatusCode: res.StatusCode,
 22558  		},
 22559  	}
 22560  	target := &ret
 22561  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22562  		return nil, err
 22563  	}
 22564  	return ret, nil
 22565  }
 22566  
 22567  type ProjectsLocationsCollectionsEnginesListCall struct {
 22568  	s            *Service
 22569  	parent       string
 22570  	urlParams_   gensupport.URLParams
 22571  	ifNoneMatch_ string
 22572  	ctx_         context.Context
 22573  	header_      http.Header
 22574  }
 22575  
 22576  // List: Lists all the Engines associated with the project.
 22577  //
 22578  //   - parent: The parent resource name, such as
 22579  //     `projects/{project}/locations/{location}/collections/{collection_id}`.
 22580  func (r *ProjectsLocationsCollectionsEnginesService) List(parent string) *ProjectsLocationsCollectionsEnginesListCall {
 22581  	c := &ProjectsLocationsCollectionsEnginesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22582  	c.parent = parent
 22583  	return c
 22584  }
 22585  
 22586  // Filter sets the optional parameter "filter": Filter by solution type. For
 22587  // example: solution_type=SOLUTION_TYPE_SEARCH
 22588  func (c *ProjectsLocationsCollectionsEnginesListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesListCall {
 22589  	c.urlParams_.Set("filter", filter)
 22590  	return c
 22591  }
 22592  
 22593  // PageSize sets the optional parameter "pageSize": Not supported.
 22594  func (c *ProjectsLocationsCollectionsEnginesListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesListCall {
 22595  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22596  	return c
 22597  }
 22598  
 22599  // PageToken sets the optional parameter "pageToken": Not supported.
 22600  func (c *ProjectsLocationsCollectionsEnginesListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesListCall {
 22601  	c.urlParams_.Set("pageToken", pageToken)
 22602  	return c
 22603  }
 22604  
 22605  // Fields allows partial responses to be retrieved. See
 22606  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22607  // details.
 22608  func (c *ProjectsLocationsCollectionsEnginesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesListCall {
 22609  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22610  	return c
 22611  }
 22612  
 22613  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22614  // object's ETag matches the given value. This is useful for getting updates
 22615  // only after the object has changed since the last request.
 22616  func (c *ProjectsLocationsCollectionsEnginesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesListCall {
 22617  	c.ifNoneMatch_ = entityTag
 22618  	return c
 22619  }
 22620  
 22621  // Context sets the context to be used in this call's Do method.
 22622  func (c *ProjectsLocationsCollectionsEnginesListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesListCall {
 22623  	c.ctx_ = ctx
 22624  	return c
 22625  }
 22626  
 22627  // Header returns a http.Header that can be modified by the caller to add
 22628  // headers to the request.
 22629  func (c *ProjectsLocationsCollectionsEnginesListCall) Header() http.Header {
 22630  	if c.header_ == nil {
 22631  		c.header_ = make(http.Header)
 22632  	}
 22633  	return c.header_
 22634  }
 22635  
 22636  func (c *ProjectsLocationsCollectionsEnginesListCall) doRequest(alt string) (*http.Response, error) {
 22637  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22638  	if c.ifNoneMatch_ != "" {
 22639  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22640  	}
 22641  	var body io.Reader = nil
 22642  	c.urlParams_.Set("alt", alt)
 22643  	c.urlParams_.Set("prettyPrint", "false")
 22644  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/engines")
 22645  	urls += "?" + c.urlParams_.Encode()
 22646  	req, err := http.NewRequest("GET", urls, body)
 22647  	if err != nil {
 22648  		return nil, err
 22649  	}
 22650  	req.Header = reqHeaders
 22651  	googleapi.Expand(req.URL, map[string]string{
 22652  		"parent": c.parent,
 22653  	})
 22654  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22655  }
 22656  
 22657  // Do executes the "discoveryengine.projects.locations.collections.engines.list" call.
 22658  // Any non-2xx status code is an error. Response headers are in either
 22659  // *GoogleCloudDiscoveryengineV1alphaListEnginesResponse.ServerResponse.Header
 22660  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 22661  // Use googleapi.IsNotModified to check whether the returned error was because
 22662  // http.StatusNotModified was returned.
 22663  func (c *ProjectsLocationsCollectionsEnginesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListEnginesResponse, error) {
 22664  	gensupport.SetOptions(c.urlParams_, opts...)
 22665  	res, err := c.doRequest("json")
 22666  	if res != nil && res.StatusCode == http.StatusNotModified {
 22667  		if res.Body != nil {
 22668  			res.Body.Close()
 22669  		}
 22670  		return nil, gensupport.WrapError(&googleapi.Error{
 22671  			Code:   res.StatusCode,
 22672  			Header: res.Header,
 22673  		})
 22674  	}
 22675  	if err != nil {
 22676  		return nil, err
 22677  	}
 22678  	defer googleapi.CloseBody(res)
 22679  	if err := googleapi.CheckResponse(res); err != nil {
 22680  		return nil, gensupport.WrapError(err)
 22681  	}
 22682  	ret := &GoogleCloudDiscoveryengineV1alphaListEnginesResponse{
 22683  		ServerResponse: googleapi.ServerResponse{
 22684  			Header:         res.Header,
 22685  			HTTPStatusCode: res.StatusCode,
 22686  		},
 22687  	}
 22688  	target := &ret
 22689  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22690  		return nil, err
 22691  	}
 22692  	return ret, nil
 22693  }
 22694  
 22695  // Pages invokes f for each page of results.
 22696  // A non-nil error returned from f will halt the iteration.
 22697  // The provided context supersedes any context provided to the Context method.
 22698  func (c *ProjectsLocationsCollectionsEnginesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListEnginesResponse) error) error {
 22699  	c.ctx_ = ctx
 22700  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22701  	for {
 22702  		x, err := c.Do()
 22703  		if err != nil {
 22704  			return err
 22705  		}
 22706  		if err := f(x); err != nil {
 22707  			return err
 22708  		}
 22709  		if x.NextPageToken == "" {
 22710  			return nil
 22711  		}
 22712  		c.PageToken(x.NextPageToken)
 22713  	}
 22714  }
 22715  
 22716  type ProjectsLocationsCollectionsEnginesPatchCall struct {
 22717  	s                                       *Service
 22718  	name                                    string
 22719  	googleclouddiscoveryenginev1alphaengine *GoogleCloudDiscoveryengineV1alphaEngine
 22720  	urlParams_                              gensupport.URLParams
 22721  	ctx_                                    context.Context
 22722  	header_                                 http.Header
 22723  }
 22724  
 22725  // Patch: Updates an Engine
 22726  //
 22727  //   - name: Immutable. The fully qualified resource name of the engine. This
 22728  //     field must be a UTF-8 encoded string with a length limit of 1024
 22729  //     characters. Format:
 22730  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 22731  //     gines/{engine}` engine should be 1-63 characters, and valid characters are
 22732  //     /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
 22733  func (r *ProjectsLocationsCollectionsEnginesService) Patch(name string, googleclouddiscoveryenginev1alphaengine *GoogleCloudDiscoveryengineV1alphaEngine) *ProjectsLocationsCollectionsEnginesPatchCall {
 22734  	c := &ProjectsLocationsCollectionsEnginesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22735  	c.name = name
 22736  	c.googleclouddiscoveryenginev1alphaengine = googleclouddiscoveryenginev1alphaengine
 22737  	return c
 22738  }
 22739  
 22740  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 22741  // in the provided Engine to update. If an unsupported or unknown field is
 22742  // provided, an INVALID_ARGUMENT error is returned.
 22743  func (c *ProjectsLocationsCollectionsEnginesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesPatchCall {
 22744  	c.urlParams_.Set("updateMask", updateMask)
 22745  	return c
 22746  }
 22747  
 22748  // Fields allows partial responses to be retrieved. See
 22749  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22750  // details.
 22751  func (c *ProjectsLocationsCollectionsEnginesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesPatchCall {
 22752  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22753  	return c
 22754  }
 22755  
 22756  // Context sets the context to be used in this call's Do method.
 22757  func (c *ProjectsLocationsCollectionsEnginesPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesPatchCall {
 22758  	c.ctx_ = ctx
 22759  	return c
 22760  }
 22761  
 22762  // Header returns a http.Header that can be modified by the caller to add
 22763  // headers to the request.
 22764  func (c *ProjectsLocationsCollectionsEnginesPatchCall) Header() http.Header {
 22765  	if c.header_ == nil {
 22766  		c.header_ = make(http.Header)
 22767  	}
 22768  	return c.header_
 22769  }
 22770  
 22771  func (c *ProjectsLocationsCollectionsEnginesPatchCall) doRequest(alt string) (*http.Response, error) {
 22772  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22773  	var body io.Reader = nil
 22774  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaengine)
 22775  	if err != nil {
 22776  		return nil, err
 22777  	}
 22778  	c.urlParams_.Set("alt", alt)
 22779  	c.urlParams_.Set("prettyPrint", "false")
 22780  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 22781  	urls += "?" + c.urlParams_.Encode()
 22782  	req, err := http.NewRequest("PATCH", urls, body)
 22783  	if err != nil {
 22784  		return nil, err
 22785  	}
 22786  	req.Header = reqHeaders
 22787  	googleapi.Expand(req.URL, map[string]string{
 22788  		"name": c.name,
 22789  	})
 22790  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22791  }
 22792  
 22793  // Do executes the "discoveryengine.projects.locations.collections.engines.patch" call.
 22794  // Any non-2xx status code is an error. Response headers are in either
 22795  // *GoogleCloudDiscoveryengineV1alphaEngine.ServerResponse.Header or (if a
 22796  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22797  // googleapi.IsNotModified to check whether the returned error was because
 22798  // http.StatusNotModified was returned.
 22799  func (c *ProjectsLocationsCollectionsEnginesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaEngine, error) {
 22800  	gensupport.SetOptions(c.urlParams_, opts...)
 22801  	res, err := c.doRequest("json")
 22802  	if res != nil && res.StatusCode == http.StatusNotModified {
 22803  		if res.Body != nil {
 22804  			res.Body.Close()
 22805  		}
 22806  		return nil, gensupport.WrapError(&googleapi.Error{
 22807  			Code:   res.StatusCode,
 22808  			Header: res.Header,
 22809  		})
 22810  	}
 22811  	if err != nil {
 22812  		return nil, err
 22813  	}
 22814  	defer googleapi.CloseBody(res)
 22815  	if err := googleapi.CheckResponse(res); err != nil {
 22816  		return nil, gensupport.WrapError(err)
 22817  	}
 22818  	ret := &GoogleCloudDiscoveryengineV1alphaEngine{
 22819  		ServerResponse: googleapi.ServerResponse{
 22820  			Header:         res.Header,
 22821  			HTTPStatusCode: res.StatusCode,
 22822  		},
 22823  	}
 22824  	target := &ret
 22825  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22826  		return nil, err
 22827  	}
 22828  	return ret, nil
 22829  }
 22830  
 22831  type ProjectsLocationsCollectionsEnginesPauseCall struct {
 22832  	s                                                   *Service
 22833  	name                                                string
 22834  	googleclouddiscoveryenginev1alphapauseenginerequest *GoogleCloudDiscoveryengineV1alphaPauseEngineRequest
 22835  	urlParams_                                          gensupport.URLParams
 22836  	ctx_                                                context.Context
 22837  	header_                                             http.Header
 22838  }
 22839  
 22840  // Pause: Pauses the training of an existing engine. Only applicable if
 22841  // SolutionType is SOLUTION_TYPE_RECOMMENDATION.
 22842  //
 22843  //   - name: The name of the engine to pause. Format:
 22844  //     `projects/{project_number}/locations/{location_id}/collections/{collection_
 22845  //     id}/engines/{engine_id}`.
 22846  func (r *ProjectsLocationsCollectionsEnginesService) Pause(name string, googleclouddiscoveryenginev1alphapauseenginerequest *GoogleCloudDiscoveryengineV1alphaPauseEngineRequest) *ProjectsLocationsCollectionsEnginesPauseCall {
 22847  	c := &ProjectsLocationsCollectionsEnginesPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22848  	c.name = name
 22849  	c.googleclouddiscoveryenginev1alphapauseenginerequest = googleclouddiscoveryenginev1alphapauseenginerequest
 22850  	return c
 22851  }
 22852  
 22853  // Fields allows partial responses to be retrieved. See
 22854  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22855  // details.
 22856  func (c *ProjectsLocationsCollectionsEnginesPauseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesPauseCall {
 22857  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22858  	return c
 22859  }
 22860  
 22861  // Context sets the context to be used in this call's Do method.
 22862  func (c *ProjectsLocationsCollectionsEnginesPauseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesPauseCall {
 22863  	c.ctx_ = ctx
 22864  	return c
 22865  }
 22866  
 22867  // Header returns a http.Header that can be modified by the caller to add
 22868  // headers to the request.
 22869  func (c *ProjectsLocationsCollectionsEnginesPauseCall) Header() http.Header {
 22870  	if c.header_ == nil {
 22871  		c.header_ = make(http.Header)
 22872  	}
 22873  	return c.header_
 22874  }
 22875  
 22876  func (c *ProjectsLocationsCollectionsEnginesPauseCall) doRequest(alt string) (*http.Response, error) {
 22877  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22878  	var body io.Reader = nil
 22879  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapauseenginerequest)
 22880  	if err != nil {
 22881  		return nil, err
 22882  	}
 22883  	c.urlParams_.Set("alt", alt)
 22884  	c.urlParams_.Set("prettyPrint", "false")
 22885  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:pause")
 22886  	urls += "?" + c.urlParams_.Encode()
 22887  	req, err := http.NewRequest("POST", urls, body)
 22888  	if err != nil {
 22889  		return nil, err
 22890  	}
 22891  	req.Header = reqHeaders
 22892  	googleapi.Expand(req.URL, map[string]string{
 22893  		"name": c.name,
 22894  	})
 22895  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22896  }
 22897  
 22898  // Do executes the "discoveryengine.projects.locations.collections.engines.pause" call.
 22899  // Any non-2xx status code is an error. Response headers are in either
 22900  // *GoogleCloudDiscoveryengineV1alphaEngine.ServerResponse.Header or (if a
 22901  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22902  // googleapi.IsNotModified to check whether the returned error was because
 22903  // http.StatusNotModified was returned.
 22904  func (c *ProjectsLocationsCollectionsEnginesPauseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaEngine, error) {
 22905  	gensupport.SetOptions(c.urlParams_, opts...)
 22906  	res, err := c.doRequest("json")
 22907  	if res != nil && res.StatusCode == http.StatusNotModified {
 22908  		if res.Body != nil {
 22909  			res.Body.Close()
 22910  		}
 22911  		return nil, gensupport.WrapError(&googleapi.Error{
 22912  			Code:   res.StatusCode,
 22913  			Header: res.Header,
 22914  		})
 22915  	}
 22916  	if err != nil {
 22917  		return nil, err
 22918  	}
 22919  	defer googleapi.CloseBody(res)
 22920  	if err := googleapi.CheckResponse(res); err != nil {
 22921  		return nil, gensupport.WrapError(err)
 22922  	}
 22923  	ret := &GoogleCloudDiscoveryengineV1alphaEngine{
 22924  		ServerResponse: googleapi.ServerResponse{
 22925  			Header:         res.Header,
 22926  			HTTPStatusCode: res.StatusCode,
 22927  		},
 22928  	}
 22929  	target := &ret
 22930  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22931  		return nil, err
 22932  	}
 22933  	return ret, nil
 22934  }
 22935  
 22936  type ProjectsLocationsCollectionsEnginesResumeCall struct {
 22937  	s                                                    *Service
 22938  	name                                                 string
 22939  	googleclouddiscoveryenginev1alpharesumeenginerequest *GoogleCloudDiscoveryengineV1alphaResumeEngineRequest
 22940  	urlParams_                                           gensupport.URLParams
 22941  	ctx_                                                 context.Context
 22942  	header_                                              http.Header
 22943  }
 22944  
 22945  // Resume: Resumes the training of an existing engine. Only applicable if
 22946  // SolutionType is SOLUTION_TYPE_RECOMMENDATION.
 22947  //
 22948  //   - name: The name of the engine to resume. Format:
 22949  //     `projects/{project_number}/locations/{location_id}/collections/{collection_
 22950  //     id}/engines/{engine_id}`.
 22951  func (r *ProjectsLocationsCollectionsEnginesService) Resume(name string, googleclouddiscoveryenginev1alpharesumeenginerequest *GoogleCloudDiscoveryengineV1alphaResumeEngineRequest) *ProjectsLocationsCollectionsEnginesResumeCall {
 22952  	c := &ProjectsLocationsCollectionsEnginesResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22953  	c.name = name
 22954  	c.googleclouddiscoveryenginev1alpharesumeenginerequest = googleclouddiscoveryenginev1alpharesumeenginerequest
 22955  	return c
 22956  }
 22957  
 22958  // Fields allows partial responses to be retrieved. See
 22959  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22960  // details.
 22961  func (c *ProjectsLocationsCollectionsEnginesResumeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesResumeCall {
 22962  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22963  	return c
 22964  }
 22965  
 22966  // Context sets the context to be used in this call's Do method.
 22967  func (c *ProjectsLocationsCollectionsEnginesResumeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesResumeCall {
 22968  	c.ctx_ = ctx
 22969  	return c
 22970  }
 22971  
 22972  // Header returns a http.Header that can be modified by the caller to add
 22973  // headers to the request.
 22974  func (c *ProjectsLocationsCollectionsEnginesResumeCall) Header() http.Header {
 22975  	if c.header_ == nil {
 22976  		c.header_ = make(http.Header)
 22977  	}
 22978  	return c.header_
 22979  }
 22980  
 22981  func (c *ProjectsLocationsCollectionsEnginesResumeCall) doRequest(alt string) (*http.Response, error) {
 22982  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22983  	var body io.Reader = nil
 22984  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharesumeenginerequest)
 22985  	if err != nil {
 22986  		return nil, err
 22987  	}
 22988  	c.urlParams_.Set("alt", alt)
 22989  	c.urlParams_.Set("prettyPrint", "false")
 22990  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:resume")
 22991  	urls += "?" + c.urlParams_.Encode()
 22992  	req, err := http.NewRequest("POST", urls, body)
 22993  	if err != nil {
 22994  		return nil, err
 22995  	}
 22996  	req.Header = reqHeaders
 22997  	googleapi.Expand(req.URL, map[string]string{
 22998  		"name": c.name,
 22999  	})
 23000  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23001  }
 23002  
 23003  // Do executes the "discoveryengine.projects.locations.collections.engines.resume" call.
 23004  // Any non-2xx status code is an error. Response headers are in either
 23005  // *GoogleCloudDiscoveryengineV1alphaEngine.ServerResponse.Header or (if a
 23006  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23007  // googleapi.IsNotModified to check whether the returned error was because
 23008  // http.StatusNotModified was returned.
 23009  func (c *ProjectsLocationsCollectionsEnginesResumeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaEngine, error) {
 23010  	gensupport.SetOptions(c.urlParams_, opts...)
 23011  	res, err := c.doRequest("json")
 23012  	if res != nil && res.StatusCode == http.StatusNotModified {
 23013  		if res.Body != nil {
 23014  			res.Body.Close()
 23015  		}
 23016  		return nil, gensupport.WrapError(&googleapi.Error{
 23017  			Code:   res.StatusCode,
 23018  			Header: res.Header,
 23019  		})
 23020  	}
 23021  	if err != nil {
 23022  		return nil, err
 23023  	}
 23024  	defer googleapi.CloseBody(res)
 23025  	if err := googleapi.CheckResponse(res); err != nil {
 23026  		return nil, gensupport.WrapError(err)
 23027  	}
 23028  	ret := &GoogleCloudDiscoveryengineV1alphaEngine{
 23029  		ServerResponse: googleapi.ServerResponse{
 23030  			Header:         res.Header,
 23031  			HTTPStatusCode: res.StatusCode,
 23032  		},
 23033  	}
 23034  	target := &ret
 23035  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23036  		return nil, err
 23037  	}
 23038  	return ret, nil
 23039  }
 23040  
 23041  type ProjectsLocationsCollectionsEnginesTuneCall struct {
 23042  	s                                                  *Service
 23043  	name                                               string
 23044  	googleclouddiscoveryenginev1alphatuneenginerequest *GoogleCloudDiscoveryengineV1alphaTuneEngineRequest
 23045  	urlParams_                                         gensupport.URLParams
 23046  	ctx_                                               context.Context
 23047  	header_                                            http.Header
 23048  }
 23049  
 23050  // Tune: Tunes an existing engine. Only applicable if SolutionType is
 23051  // SOLUTION_TYPE_RECOMMENDATION.
 23052  //
 23053  //   - name: The resource name of the engine to tune. Format:
 23054  //     `projects/{project_number}/locations/{location_id}/collections/{collection_
 23055  //     id}/engines/{engine_id}`.
 23056  func (r *ProjectsLocationsCollectionsEnginesService) Tune(name string, googleclouddiscoveryenginev1alphatuneenginerequest *GoogleCloudDiscoveryengineV1alphaTuneEngineRequest) *ProjectsLocationsCollectionsEnginesTuneCall {
 23057  	c := &ProjectsLocationsCollectionsEnginesTuneCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23058  	c.name = name
 23059  	c.googleclouddiscoveryenginev1alphatuneenginerequest = googleclouddiscoveryenginev1alphatuneenginerequest
 23060  	return c
 23061  }
 23062  
 23063  // Fields allows partial responses to be retrieved. See
 23064  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23065  // details.
 23066  func (c *ProjectsLocationsCollectionsEnginesTuneCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesTuneCall {
 23067  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23068  	return c
 23069  }
 23070  
 23071  // Context sets the context to be used in this call's Do method.
 23072  func (c *ProjectsLocationsCollectionsEnginesTuneCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesTuneCall {
 23073  	c.ctx_ = ctx
 23074  	return c
 23075  }
 23076  
 23077  // Header returns a http.Header that can be modified by the caller to add
 23078  // headers to the request.
 23079  func (c *ProjectsLocationsCollectionsEnginesTuneCall) Header() http.Header {
 23080  	if c.header_ == nil {
 23081  		c.header_ = make(http.Header)
 23082  	}
 23083  	return c.header_
 23084  }
 23085  
 23086  func (c *ProjectsLocationsCollectionsEnginesTuneCall) doRequest(alt string) (*http.Response, error) {
 23087  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23088  	var body io.Reader = nil
 23089  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatuneenginerequest)
 23090  	if err != nil {
 23091  		return nil, err
 23092  	}
 23093  	c.urlParams_.Set("alt", alt)
 23094  	c.urlParams_.Set("prettyPrint", "false")
 23095  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:tune")
 23096  	urls += "?" + c.urlParams_.Encode()
 23097  	req, err := http.NewRequest("POST", urls, body)
 23098  	if err != nil {
 23099  		return nil, err
 23100  	}
 23101  	req.Header = reqHeaders
 23102  	googleapi.Expand(req.URL, map[string]string{
 23103  		"name": c.name,
 23104  	})
 23105  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23106  }
 23107  
 23108  // Do executes the "discoveryengine.projects.locations.collections.engines.tune" call.
 23109  // Any non-2xx status code is an error. Response headers are in either
 23110  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23111  // returned at all) in error.(*googleapi.Error).Header. Use
 23112  // googleapi.IsNotModified to check whether the returned error was because
 23113  // http.StatusNotModified was returned.
 23114  func (c *ProjectsLocationsCollectionsEnginesTuneCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23115  	gensupport.SetOptions(c.urlParams_, opts...)
 23116  	res, err := c.doRequest("json")
 23117  	if res != nil && res.StatusCode == http.StatusNotModified {
 23118  		if res.Body != nil {
 23119  			res.Body.Close()
 23120  		}
 23121  		return nil, gensupport.WrapError(&googleapi.Error{
 23122  			Code:   res.StatusCode,
 23123  			Header: res.Header,
 23124  		})
 23125  	}
 23126  	if err != nil {
 23127  		return nil, err
 23128  	}
 23129  	defer googleapi.CloseBody(res)
 23130  	if err := googleapi.CheckResponse(res); err != nil {
 23131  		return nil, gensupport.WrapError(err)
 23132  	}
 23133  	ret := &GoogleLongrunningOperation{
 23134  		ServerResponse: googleapi.ServerResponse{
 23135  			Header:         res.Header,
 23136  			HTTPStatusCode: res.StatusCode,
 23137  		},
 23138  	}
 23139  	target := &ret
 23140  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23141  		return nil, err
 23142  	}
 23143  	return ret, nil
 23144  }
 23145  
 23146  type ProjectsLocationsCollectionsEnginesConversationsConverseCall struct {
 23147  	s                                                            *Service
 23148  	name                                                         string
 23149  	googleclouddiscoveryenginev1alphaconverseconversationrequest *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest
 23150  	urlParams_                                                   gensupport.URLParams
 23151  	ctx_                                                         context.Context
 23152  	header_                                                      http.Header
 23153  }
 23154  
 23155  // Converse: Converses a conversation.
 23156  //
 23157  //   - name: The resource name of the Conversation to get. Format:
 23158  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 23159  //     /dataStores/{data_store_id}/conversations/{conversation_id}`. Use
 23160  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 23161  //     /dataStores/{data_store_id}/conversations/-` to activate auto session
 23162  //     mode, which automatically creates a new conversation inside a
 23163  //     ConverseConversation session.
 23164  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Converse(name string, googleclouddiscoveryenginev1alphaconverseconversationrequest *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
 23165  	c := &ProjectsLocationsCollectionsEnginesConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23166  	c.name = name
 23167  	c.googleclouddiscoveryenginev1alphaconverseconversationrequest = googleclouddiscoveryenginev1alphaconverseconversationrequest
 23168  	return c
 23169  }
 23170  
 23171  // Fields allows partial responses to be retrieved. See
 23172  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23173  // details.
 23174  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
 23175  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23176  	return c
 23177  }
 23178  
 23179  // Context sets the context to be used in this call's Do method.
 23180  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
 23181  	c.ctx_ = ctx
 23182  	return c
 23183  }
 23184  
 23185  // Header returns a http.Header that can be modified by the caller to add
 23186  // headers to the request.
 23187  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Header() http.Header {
 23188  	if c.header_ == nil {
 23189  		c.header_ = make(http.Header)
 23190  	}
 23191  	return c.header_
 23192  }
 23193  
 23194  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
 23195  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23196  	var body io.Reader = nil
 23197  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconverseconversationrequest)
 23198  	if err != nil {
 23199  		return nil, err
 23200  	}
 23201  	c.urlParams_.Set("alt", alt)
 23202  	c.urlParams_.Set("prettyPrint", "false")
 23203  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:converse")
 23204  	urls += "?" + c.urlParams_.Encode()
 23205  	req, err := http.NewRequest("POST", urls, body)
 23206  	if err != nil {
 23207  		return nil, err
 23208  	}
 23209  	req.Header = reqHeaders
 23210  	googleapi.Expand(req.URL, map[string]string{
 23211  		"name": c.name,
 23212  	})
 23213  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23214  }
 23215  
 23216  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.converse" call.
 23217  // Any non-2xx status code is an error. Response headers are in either
 23218  // *GoogleCloudDiscoveryengineV1alphaConverseConversationResponse.ServerResponse
 23219  // .Header or (if a response was returned at all) in
 23220  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 23221  // whether the returned error was because http.StatusNotModified was returned.
 23222  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConverseConversationResponse, error) {
 23223  	gensupport.SetOptions(c.urlParams_, opts...)
 23224  	res, err := c.doRequest("json")
 23225  	if res != nil && res.StatusCode == http.StatusNotModified {
 23226  		if res.Body != nil {
 23227  			res.Body.Close()
 23228  		}
 23229  		return nil, gensupport.WrapError(&googleapi.Error{
 23230  			Code:   res.StatusCode,
 23231  			Header: res.Header,
 23232  		})
 23233  	}
 23234  	if err != nil {
 23235  		return nil, err
 23236  	}
 23237  	defer googleapi.CloseBody(res)
 23238  	if err := googleapi.CheckResponse(res); err != nil {
 23239  		return nil, gensupport.WrapError(err)
 23240  	}
 23241  	ret := &GoogleCloudDiscoveryengineV1alphaConverseConversationResponse{
 23242  		ServerResponse: googleapi.ServerResponse{
 23243  			Header:         res.Header,
 23244  			HTTPStatusCode: res.StatusCode,
 23245  		},
 23246  	}
 23247  	target := &ret
 23248  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23249  		return nil, err
 23250  	}
 23251  	return ret, nil
 23252  }
 23253  
 23254  type ProjectsLocationsCollectionsEnginesConversationsCreateCall struct {
 23255  	s                                             *Service
 23256  	parent                                        string
 23257  	googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation
 23258  	urlParams_                                    gensupport.URLParams
 23259  	ctx_                                          context.Context
 23260  	header_                                       http.Header
 23261  }
 23262  
 23263  // Create: Creates a Conversation. If the Conversation to create already
 23264  // exists, an ALREADY_EXISTS error is returned.
 23265  //
 23266  //   - parent: Full resource name of parent data store. Format:
 23267  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 23268  //     /dataStores/{data_store_id}`.
 23269  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Create(parent string, googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
 23270  	c := &ProjectsLocationsCollectionsEnginesConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23271  	c.parent = parent
 23272  	c.googleclouddiscoveryenginev1alphaconversation = googleclouddiscoveryenginev1alphaconversation
 23273  	return c
 23274  }
 23275  
 23276  // Fields allows partial responses to be retrieved. See
 23277  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23278  // details.
 23279  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
 23280  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23281  	return c
 23282  }
 23283  
 23284  // Context sets the context to be used in this call's Do method.
 23285  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
 23286  	c.ctx_ = ctx
 23287  	return c
 23288  }
 23289  
 23290  // Header returns a http.Header that can be modified by the caller to add
 23291  // headers to the request.
 23292  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Header() http.Header {
 23293  	if c.header_ == nil {
 23294  		c.header_ = make(http.Header)
 23295  	}
 23296  	return c.header_
 23297  }
 23298  
 23299  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 23300  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23301  	var body io.Reader = nil
 23302  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconversation)
 23303  	if err != nil {
 23304  		return nil, err
 23305  	}
 23306  	c.urlParams_.Set("alt", alt)
 23307  	c.urlParams_.Set("prettyPrint", "false")
 23308  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversations")
 23309  	urls += "?" + c.urlParams_.Encode()
 23310  	req, err := http.NewRequest("POST", urls, body)
 23311  	if err != nil {
 23312  		return nil, err
 23313  	}
 23314  	req.Header = reqHeaders
 23315  	googleapi.Expand(req.URL, map[string]string{
 23316  		"parent": c.parent,
 23317  	})
 23318  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23319  }
 23320  
 23321  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.create" call.
 23322  // Any non-2xx status code is an error. Response headers are in either
 23323  // *GoogleCloudDiscoveryengineV1alphaConversation.ServerResponse.Header or (if
 23324  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 23325  // googleapi.IsNotModified to check whether the returned error was because
 23326  // http.StatusNotModified was returned.
 23327  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
 23328  	gensupport.SetOptions(c.urlParams_, opts...)
 23329  	res, err := c.doRequest("json")
 23330  	if res != nil && res.StatusCode == http.StatusNotModified {
 23331  		if res.Body != nil {
 23332  			res.Body.Close()
 23333  		}
 23334  		return nil, gensupport.WrapError(&googleapi.Error{
 23335  			Code:   res.StatusCode,
 23336  			Header: res.Header,
 23337  		})
 23338  	}
 23339  	if err != nil {
 23340  		return nil, err
 23341  	}
 23342  	defer googleapi.CloseBody(res)
 23343  	if err := googleapi.CheckResponse(res); err != nil {
 23344  		return nil, gensupport.WrapError(err)
 23345  	}
 23346  	ret := &GoogleCloudDiscoveryengineV1alphaConversation{
 23347  		ServerResponse: googleapi.ServerResponse{
 23348  			Header:         res.Header,
 23349  			HTTPStatusCode: res.StatusCode,
 23350  		},
 23351  	}
 23352  	target := &ret
 23353  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23354  		return nil, err
 23355  	}
 23356  	return ret, nil
 23357  }
 23358  
 23359  type ProjectsLocationsCollectionsEnginesConversationsDeleteCall struct {
 23360  	s          *Service
 23361  	name       string
 23362  	urlParams_ gensupport.URLParams
 23363  	ctx_       context.Context
 23364  	header_    http.Header
 23365  }
 23366  
 23367  // Delete: Deletes a Conversation. If the Conversation to delete does not
 23368  // exist, a NOT_FOUND error is returned.
 23369  //
 23370  //   - name: The resource name of the Conversation to delete. Format:
 23371  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 23372  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 23373  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Delete(name string) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
 23374  	c := &ProjectsLocationsCollectionsEnginesConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23375  	c.name = name
 23376  	return c
 23377  }
 23378  
 23379  // Fields allows partial responses to be retrieved. See
 23380  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23381  // details.
 23382  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
 23383  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23384  	return c
 23385  }
 23386  
 23387  // Context sets the context to be used in this call's Do method.
 23388  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
 23389  	c.ctx_ = ctx
 23390  	return c
 23391  }
 23392  
 23393  // Header returns a http.Header that can be modified by the caller to add
 23394  // headers to the request.
 23395  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Header() http.Header {
 23396  	if c.header_ == nil {
 23397  		c.header_ = make(http.Header)
 23398  	}
 23399  	return c.header_
 23400  }
 23401  
 23402  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 23403  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23404  	var body io.Reader = nil
 23405  	c.urlParams_.Set("alt", alt)
 23406  	c.urlParams_.Set("prettyPrint", "false")
 23407  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 23408  	urls += "?" + c.urlParams_.Encode()
 23409  	req, err := http.NewRequest("DELETE", urls, body)
 23410  	if err != nil {
 23411  		return nil, err
 23412  	}
 23413  	req.Header = reqHeaders
 23414  	googleapi.Expand(req.URL, map[string]string{
 23415  		"name": c.name,
 23416  	})
 23417  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23418  }
 23419  
 23420  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.delete" call.
 23421  // Any non-2xx status code is an error. Response headers are in either
 23422  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 23423  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 23424  // check whether the returned error was because http.StatusNotModified was
 23425  // returned.
 23426  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 23427  	gensupport.SetOptions(c.urlParams_, opts...)
 23428  	res, err := c.doRequest("json")
 23429  	if res != nil && res.StatusCode == http.StatusNotModified {
 23430  		if res.Body != nil {
 23431  			res.Body.Close()
 23432  		}
 23433  		return nil, gensupport.WrapError(&googleapi.Error{
 23434  			Code:   res.StatusCode,
 23435  			Header: res.Header,
 23436  		})
 23437  	}
 23438  	if err != nil {
 23439  		return nil, err
 23440  	}
 23441  	defer googleapi.CloseBody(res)
 23442  	if err := googleapi.CheckResponse(res); err != nil {
 23443  		return nil, gensupport.WrapError(err)
 23444  	}
 23445  	ret := &GoogleProtobufEmpty{
 23446  		ServerResponse: googleapi.ServerResponse{
 23447  			Header:         res.Header,
 23448  			HTTPStatusCode: res.StatusCode,
 23449  		},
 23450  	}
 23451  	target := &ret
 23452  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23453  		return nil, err
 23454  	}
 23455  	return ret, nil
 23456  }
 23457  
 23458  type ProjectsLocationsCollectionsEnginesConversationsGetCall struct {
 23459  	s            *Service
 23460  	name         string
 23461  	urlParams_   gensupport.URLParams
 23462  	ifNoneMatch_ string
 23463  	ctx_         context.Context
 23464  	header_      http.Header
 23465  }
 23466  
 23467  // Get: Gets a Conversation.
 23468  //
 23469  //   - name: The resource name of the Conversation to get. Format:
 23470  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 23471  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 23472  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Get(name string) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
 23473  	c := &ProjectsLocationsCollectionsEnginesConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23474  	c.name = name
 23475  	return c
 23476  }
 23477  
 23478  // Fields allows partial responses to be retrieved. See
 23479  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23480  // details.
 23481  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
 23482  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23483  	return c
 23484  }
 23485  
 23486  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23487  // object's ETag matches the given value. This is useful for getting updates
 23488  // only after the object has changed since the last request.
 23489  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
 23490  	c.ifNoneMatch_ = entityTag
 23491  	return c
 23492  }
 23493  
 23494  // Context sets the context to be used in this call's Do method.
 23495  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
 23496  	c.ctx_ = ctx
 23497  	return c
 23498  }
 23499  
 23500  // Header returns a http.Header that can be modified by the caller to add
 23501  // headers to the request.
 23502  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Header() http.Header {
 23503  	if c.header_ == nil {
 23504  		c.header_ = make(http.Header)
 23505  	}
 23506  	return c.header_
 23507  }
 23508  
 23509  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 23510  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23511  	if c.ifNoneMatch_ != "" {
 23512  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23513  	}
 23514  	var body io.Reader = nil
 23515  	c.urlParams_.Set("alt", alt)
 23516  	c.urlParams_.Set("prettyPrint", "false")
 23517  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 23518  	urls += "?" + c.urlParams_.Encode()
 23519  	req, err := http.NewRequest("GET", urls, body)
 23520  	if err != nil {
 23521  		return nil, err
 23522  	}
 23523  	req.Header = reqHeaders
 23524  	googleapi.Expand(req.URL, map[string]string{
 23525  		"name": c.name,
 23526  	})
 23527  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23528  }
 23529  
 23530  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.get" call.
 23531  // Any non-2xx status code is an error. Response headers are in either
 23532  // *GoogleCloudDiscoveryengineV1alphaConversation.ServerResponse.Header or (if
 23533  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 23534  // googleapi.IsNotModified to check whether the returned error was because
 23535  // http.StatusNotModified was returned.
 23536  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
 23537  	gensupport.SetOptions(c.urlParams_, opts...)
 23538  	res, err := c.doRequest("json")
 23539  	if res != nil && res.StatusCode == http.StatusNotModified {
 23540  		if res.Body != nil {
 23541  			res.Body.Close()
 23542  		}
 23543  		return nil, gensupport.WrapError(&googleapi.Error{
 23544  			Code:   res.StatusCode,
 23545  			Header: res.Header,
 23546  		})
 23547  	}
 23548  	if err != nil {
 23549  		return nil, err
 23550  	}
 23551  	defer googleapi.CloseBody(res)
 23552  	if err := googleapi.CheckResponse(res); err != nil {
 23553  		return nil, gensupport.WrapError(err)
 23554  	}
 23555  	ret := &GoogleCloudDiscoveryengineV1alphaConversation{
 23556  		ServerResponse: googleapi.ServerResponse{
 23557  			Header:         res.Header,
 23558  			HTTPStatusCode: res.StatusCode,
 23559  		},
 23560  	}
 23561  	target := &ret
 23562  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23563  		return nil, err
 23564  	}
 23565  	return ret, nil
 23566  }
 23567  
 23568  type ProjectsLocationsCollectionsEnginesConversationsListCall struct {
 23569  	s            *Service
 23570  	parent       string
 23571  	urlParams_   gensupport.URLParams
 23572  	ifNoneMatch_ string
 23573  	ctx_         context.Context
 23574  	header_      http.Header
 23575  }
 23576  
 23577  // List: Lists all Conversations by their parent DataStore.
 23578  //
 23579  //   - parent: The data store resource name. Format:
 23580  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 23581  //     /dataStores/{data_store_id}`.
 23582  func (r *ProjectsLocationsCollectionsEnginesConversationsService) List(parent string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 23583  	c := &ProjectsLocationsCollectionsEnginesConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23584  	c.parent = parent
 23585  	return c
 23586  }
 23587  
 23588  // Filter sets the optional parameter "filter": A filter to apply on the list
 23589  // results. The supported features are: user_pseudo_id, state. Example:
 23590  // "user_pseudo_id = some_id"
 23591  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 23592  	c.urlParams_.Set("filter", filter)
 23593  	return c
 23594  }
 23595  
 23596  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 23597  // fields to order by, sorted in ascending order. Use "desc" after a field name
 23598  // for descending. Supported fields: * `update_time` * `create_time` *
 23599  // `conversation_name` Example: "update_time desc" "create_time"
 23600  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 23601  	c.urlParams_.Set("orderBy", orderBy)
 23602  	return c
 23603  }
 23604  
 23605  // PageSize sets the optional parameter "pageSize": Maximum number of results
 23606  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 23607  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 23608  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 23609  	return c
 23610  }
 23611  
 23612  // PageToken sets the optional parameter "pageToken": A page token, received
 23613  // from a previous `ListConversations` call. Provide this to retrieve the
 23614  // subsequent page.
 23615  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 23616  	c.urlParams_.Set("pageToken", pageToken)
 23617  	return c
 23618  }
 23619  
 23620  // Fields allows partial responses to be retrieved. See
 23621  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23622  // details.
 23623  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 23624  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23625  	return c
 23626  }
 23627  
 23628  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23629  // object's ETag matches the given value. This is useful for getting updates
 23630  // only after the object has changed since the last request.
 23631  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 23632  	c.ifNoneMatch_ = entityTag
 23633  	return c
 23634  }
 23635  
 23636  // Context sets the context to be used in this call's Do method.
 23637  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 23638  	c.ctx_ = ctx
 23639  	return c
 23640  }
 23641  
 23642  // Header returns a http.Header that can be modified by the caller to add
 23643  // headers to the request.
 23644  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Header() http.Header {
 23645  	if c.header_ == nil {
 23646  		c.header_ = make(http.Header)
 23647  	}
 23648  	return c.header_
 23649  }
 23650  
 23651  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) doRequest(alt string) (*http.Response, error) {
 23652  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23653  	if c.ifNoneMatch_ != "" {
 23654  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23655  	}
 23656  	var body io.Reader = nil
 23657  	c.urlParams_.Set("alt", alt)
 23658  	c.urlParams_.Set("prettyPrint", "false")
 23659  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversations")
 23660  	urls += "?" + c.urlParams_.Encode()
 23661  	req, err := http.NewRequest("GET", urls, body)
 23662  	if err != nil {
 23663  		return nil, err
 23664  	}
 23665  	req.Header = reqHeaders
 23666  	googleapi.Expand(req.URL, map[string]string{
 23667  		"parent": c.parent,
 23668  	})
 23669  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23670  }
 23671  
 23672  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.list" call.
 23673  // Any non-2xx status code is an error. Response headers are in either
 23674  // *GoogleCloudDiscoveryengineV1alphaListConversationsResponse.ServerResponse.He
 23675  // ader or (if a response was returned at all) in
 23676  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 23677  // whether the returned error was because http.StatusNotModified was returned.
 23678  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListConversationsResponse, error) {
 23679  	gensupport.SetOptions(c.urlParams_, opts...)
 23680  	res, err := c.doRequest("json")
 23681  	if res != nil && res.StatusCode == http.StatusNotModified {
 23682  		if res.Body != nil {
 23683  			res.Body.Close()
 23684  		}
 23685  		return nil, gensupport.WrapError(&googleapi.Error{
 23686  			Code:   res.StatusCode,
 23687  			Header: res.Header,
 23688  		})
 23689  	}
 23690  	if err != nil {
 23691  		return nil, err
 23692  	}
 23693  	defer googleapi.CloseBody(res)
 23694  	if err := googleapi.CheckResponse(res); err != nil {
 23695  		return nil, gensupport.WrapError(err)
 23696  	}
 23697  	ret := &GoogleCloudDiscoveryengineV1alphaListConversationsResponse{
 23698  		ServerResponse: googleapi.ServerResponse{
 23699  			Header:         res.Header,
 23700  			HTTPStatusCode: res.StatusCode,
 23701  		},
 23702  	}
 23703  	target := &ret
 23704  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23705  		return nil, err
 23706  	}
 23707  	return ret, nil
 23708  }
 23709  
 23710  // Pages invokes f for each page of results.
 23711  // A non-nil error returned from f will halt the iteration.
 23712  // The provided context supersedes any context provided to the Context method.
 23713  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListConversationsResponse) error) error {
 23714  	c.ctx_ = ctx
 23715  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23716  	for {
 23717  		x, err := c.Do()
 23718  		if err != nil {
 23719  			return err
 23720  		}
 23721  		if err := f(x); err != nil {
 23722  			return err
 23723  		}
 23724  		if x.NextPageToken == "" {
 23725  			return nil
 23726  		}
 23727  		c.PageToken(x.NextPageToken)
 23728  	}
 23729  }
 23730  
 23731  type ProjectsLocationsCollectionsEnginesConversationsPatchCall struct {
 23732  	s                                             *Service
 23733  	name                                          string
 23734  	googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation
 23735  	urlParams_                                    gensupport.URLParams
 23736  	ctx_                                          context.Context
 23737  	header_                                       http.Header
 23738  }
 23739  
 23740  // Patch: Updates a Conversation. Conversation action type cannot be changed.
 23741  // If the Conversation to update does not exist, a NOT_FOUND error is returned.
 23742  //
 23743  //   - name: Immutable. Fully qualified name
 23744  //     `projects/{project}/locations/global/collections/{collection}/dataStore/*/c
 23745  //     onversations/*` or
 23746  //     `projects/{project}/locations/global/collections/{collection}/engines/*/con
 23747  //     versations/*`.
 23748  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Patch(name string, googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
 23749  	c := &ProjectsLocationsCollectionsEnginesConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23750  	c.name = name
 23751  	c.googleclouddiscoveryenginev1alphaconversation = googleclouddiscoveryenginev1alphaconversation
 23752  	return c
 23753  }
 23754  
 23755  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 23756  // in the provided Conversation to update. The following are NOT supported: *
 23757  // Conversation.name If not set or empty, all supported fields are updated.
 23758  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
 23759  	c.urlParams_.Set("updateMask", updateMask)
 23760  	return c
 23761  }
 23762  
 23763  // Fields allows partial responses to be retrieved. See
 23764  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23765  // details.
 23766  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
 23767  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23768  	return c
 23769  }
 23770  
 23771  // Context sets the context to be used in this call's Do method.
 23772  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
 23773  	c.ctx_ = ctx
 23774  	return c
 23775  }
 23776  
 23777  // Header returns a http.Header that can be modified by the caller to add
 23778  // headers to the request.
 23779  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Header() http.Header {
 23780  	if c.header_ == nil {
 23781  		c.header_ = make(http.Header)
 23782  	}
 23783  	return c.header_
 23784  }
 23785  
 23786  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
 23787  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23788  	var body io.Reader = nil
 23789  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconversation)
 23790  	if err != nil {
 23791  		return nil, err
 23792  	}
 23793  	c.urlParams_.Set("alt", alt)
 23794  	c.urlParams_.Set("prettyPrint", "false")
 23795  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 23796  	urls += "?" + c.urlParams_.Encode()
 23797  	req, err := http.NewRequest("PATCH", urls, body)
 23798  	if err != nil {
 23799  		return nil, err
 23800  	}
 23801  	req.Header = reqHeaders
 23802  	googleapi.Expand(req.URL, map[string]string{
 23803  		"name": c.name,
 23804  	})
 23805  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23806  }
 23807  
 23808  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.patch" call.
 23809  // Any non-2xx status code is an error. Response headers are in either
 23810  // *GoogleCloudDiscoveryengineV1alphaConversation.ServerResponse.Header or (if
 23811  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 23812  // googleapi.IsNotModified to check whether the returned error was because
 23813  // http.StatusNotModified was returned.
 23814  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
 23815  	gensupport.SetOptions(c.urlParams_, opts...)
 23816  	res, err := c.doRequest("json")
 23817  	if res != nil && res.StatusCode == http.StatusNotModified {
 23818  		if res.Body != nil {
 23819  			res.Body.Close()
 23820  		}
 23821  		return nil, gensupport.WrapError(&googleapi.Error{
 23822  			Code:   res.StatusCode,
 23823  			Header: res.Header,
 23824  		})
 23825  	}
 23826  	if err != nil {
 23827  		return nil, err
 23828  	}
 23829  	defer googleapi.CloseBody(res)
 23830  	if err := googleapi.CheckResponse(res); err != nil {
 23831  		return nil, gensupport.WrapError(err)
 23832  	}
 23833  	ret := &GoogleCloudDiscoveryengineV1alphaConversation{
 23834  		ServerResponse: googleapi.ServerResponse{
 23835  			Header:         res.Header,
 23836  			HTTPStatusCode: res.StatusCode,
 23837  		},
 23838  	}
 23839  	target := &ret
 23840  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23841  		return nil, err
 23842  	}
 23843  	return ret, nil
 23844  }
 23845  
 23846  type ProjectsLocationsCollectionsEnginesOperationsGetCall struct {
 23847  	s            *Service
 23848  	name         string
 23849  	urlParams_   gensupport.URLParams
 23850  	ifNoneMatch_ string
 23851  	ctx_         context.Context
 23852  	header_      http.Header
 23853  }
 23854  
 23855  // Get: Gets the latest state of a long-running operation. Clients can use this
 23856  // method to poll the operation result at intervals as recommended by the API
 23857  // service.
 23858  //
 23859  // - name: The name of the operation resource.
 23860  func (r *ProjectsLocationsCollectionsEnginesOperationsService) Get(name string) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
 23861  	c := &ProjectsLocationsCollectionsEnginesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23862  	c.name = name
 23863  	return c
 23864  }
 23865  
 23866  // Fields allows partial responses to be retrieved. See
 23867  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23868  // details.
 23869  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
 23870  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23871  	return c
 23872  }
 23873  
 23874  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23875  // object's ETag matches the given value. This is useful for getting updates
 23876  // only after the object has changed since the last request.
 23877  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
 23878  	c.ifNoneMatch_ = entityTag
 23879  	return c
 23880  }
 23881  
 23882  // Context sets the context to be used in this call's Do method.
 23883  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
 23884  	c.ctx_ = ctx
 23885  	return c
 23886  }
 23887  
 23888  // Header returns a http.Header that can be modified by the caller to add
 23889  // headers to the request.
 23890  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Header() http.Header {
 23891  	if c.header_ == nil {
 23892  		c.header_ = make(http.Header)
 23893  	}
 23894  	return c.header_
 23895  }
 23896  
 23897  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 23898  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23899  	if c.ifNoneMatch_ != "" {
 23900  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23901  	}
 23902  	var body io.Reader = nil
 23903  	c.urlParams_.Set("alt", alt)
 23904  	c.urlParams_.Set("prettyPrint", "false")
 23905  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 23906  	urls += "?" + c.urlParams_.Encode()
 23907  	req, err := http.NewRequest("GET", urls, body)
 23908  	if err != nil {
 23909  		return nil, err
 23910  	}
 23911  	req.Header = reqHeaders
 23912  	googleapi.Expand(req.URL, map[string]string{
 23913  		"name": c.name,
 23914  	})
 23915  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23916  }
 23917  
 23918  // Do executes the "discoveryengine.projects.locations.collections.engines.operations.get" call.
 23919  // Any non-2xx status code is an error. Response headers are in either
 23920  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 23921  // returned at all) in error.(*googleapi.Error).Header. Use
 23922  // googleapi.IsNotModified to check whether the returned error was because
 23923  // http.StatusNotModified was returned.
 23924  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 23925  	gensupport.SetOptions(c.urlParams_, opts...)
 23926  	res, err := c.doRequest("json")
 23927  	if res != nil && res.StatusCode == http.StatusNotModified {
 23928  		if res.Body != nil {
 23929  			res.Body.Close()
 23930  		}
 23931  		return nil, gensupport.WrapError(&googleapi.Error{
 23932  			Code:   res.StatusCode,
 23933  			Header: res.Header,
 23934  		})
 23935  	}
 23936  	if err != nil {
 23937  		return nil, err
 23938  	}
 23939  	defer googleapi.CloseBody(res)
 23940  	if err := googleapi.CheckResponse(res); err != nil {
 23941  		return nil, gensupport.WrapError(err)
 23942  	}
 23943  	ret := &GoogleLongrunningOperation{
 23944  		ServerResponse: googleapi.ServerResponse{
 23945  			Header:         res.Header,
 23946  			HTTPStatusCode: res.StatusCode,
 23947  		},
 23948  	}
 23949  	target := &ret
 23950  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23951  		return nil, err
 23952  	}
 23953  	return ret, nil
 23954  }
 23955  
 23956  type ProjectsLocationsCollectionsEnginesOperationsListCall struct {
 23957  	s            *Service
 23958  	name         string
 23959  	urlParams_   gensupport.URLParams
 23960  	ifNoneMatch_ string
 23961  	ctx_         context.Context
 23962  	header_      http.Header
 23963  }
 23964  
 23965  // List: Lists operations that match the specified filter in the request. If
 23966  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 23967  //
 23968  // - name: The name of the operation's parent resource.
 23969  func (r *ProjectsLocationsCollectionsEnginesOperationsService) List(name string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 23970  	c := &ProjectsLocationsCollectionsEnginesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23971  	c.name = name
 23972  	return c
 23973  }
 23974  
 23975  // Filter sets the optional parameter "filter": The standard list filter.
 23976  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 23977  	c.urlParams_.Set("filter", filter)
 23978  	return c
 23979  }
 23980  
 23981  // PageSize sets the optional parameter "pageSize": The standard list page
 23982  // size.
 23983  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 23984  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 23985  	return c
 23986  }
 23987  
 23988  // PageToken sets the optional parameter "pageToken": The standard list page
 23989  // token.
 23990  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 23991  	c.urlParams_.Set("pageToken", pageToken)
 23992  	return c
 23993  }
 23994  
 23995  // Fields allows partial responses to be retrieved. See
 23996  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23997  // details.
 23998  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 23999  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24000  	return c
 24001  }
 24002  
 24003  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24004  // object's ETag matches the given value. This is useful for getting updates
 24005  // only after the object has changed since the last request.
 24006  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 24007  	c.ifNoneMatch_ = entityTag
 24008  	return c
 24009  }
 24010  
 24011  // Context sets the context to be used in this call's Do method.
 24012  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 24013  	c.ctx_ = ctx
 24014  	return c
 24015  }
 24016  
 24017  // Header returns a http.Header that can be modified by the caller to add
 24018  // headers to the request.
 24019  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Header() http.Header {
 24020  	if c.header_ == nil {
 24021  		c.header_ = make(http.Header)
 24022  	}
 24023  	return c.header_
 24024  }
 24025  
 24026  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) doRequest(alt string) (*http.Response, error) {
 24027  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24028  	if c.ifNoneMatch_ != "" {
 24029  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24030  	}
 24031  	var body io.Reader = nil
 24032  	c.urlParams_.Set("alt", alt)
 24033  	c.urlParams_.Set("prettyPrint", "false")
 24034  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 24035  	urls += "?" + c.urlParams_.Encode()
 24036  	req, err := http.NewRequest("GET", urls, body)
 24037  	if err != nil {
 24038  		return nil, err
 24039  	}
 24040  	req.Header = reqHeaders
 24041  	googleapi.Expand(req.URL, map[string]string{
 24042  		"name": c.name,
 24043  	})
 24044  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24045  }
 24046  
 24047  // Do executes the "discoveryengine.projects.locations.collections.engines.operations.list" call.
 24048  // Any non-2xx status code is an error. Response headers are in either
 24049  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 24050  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24051  // googleapi.IsNotModified to check whether the returned error was because
 24052  // http.StatusNotModified was returned.
 24053  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 24054  	gensupport.SetOptions(c.urlParams_, opts...)
 24055  	res, err := c.doRequest("json")
 24056  	if res != nil && res.StatusCode == http.StatusNotModified {
 24057  		if res.Body != nil {
 24058  			res.Body.Close()
 24059  		}
 24060  		return nil, gensupport.WrapError(&googleapi.Error{
 24061  			Code:   res.StatusCode,
 24062  			Header: res.Header,
 24063  		})
 24064  	}
 24065  	if err != nil {
 24066  		return nil, err
 24067  	}
 24068  	defer googleapi.CloseBody(res)
 24069  	if err := googleapi.CheckResponse(res); err != nil {
 24070  		return nil, gensupport.WrapError(err)
 24071  	}
 24072  	ret := &GoogleLongrunningListOperationsResponse{
 24073  		ServerResponse: googleapi.ServerResponse{
 24074  			Header:         res.Header,
 24075  			HTTPStatusCode: res.StatusCode,
 24076  		},
 24077  	}
 24078  	target := &ret
 24079  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24080  		return nil, err
 24081  	}
 24082  	return ret, nil
 24083  }
 24084  
 24085  // Pages invokes f for each page of results.
 24086  // A non-nil error returned from f will halt the iteration.
 24087  // The provided context supersedes any context provided to the Context method.
 24088  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 24089  	c.ctx_ = ctx
 24090  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24091  	for {
 24092  		x, err := c.Do()
 24093  		if err != nil {
 24094  			return err
 24095  		}
 24096  		if err := f(x); err != nil {
 24097  			return err
 24098  		}
 24099  		if x.NextPageToken == "" {
 24100  			return nil
 24101  		}
 24102  		c.PageToken(x.NextPageToken)
 24103  	}
 24104  }
 24105  
 24106  type ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall struct {
 24107  	s                                                   *Service
 24108  	servingConfig                                       string
 24109  	googleclouddiscoveryenginev1alphaanswerqueryrequest *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
 24110  	urlParams_                                          gensupport.URLParams
 24111  	ctx_                                                context.Context
 24112  	header_                                             http.Header
 24113  }
 24114  
 24115  // Answer: Answer query method.
 24116  //
 24117  //   - servingConfig: The resource name of the Search serving config, such as
 24118  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 24119  //     ngConfigs/default_serving_config`, or
 24120  //     `projects/*/locations/global/collections/default_collection/dataStores/*/se
 24121  //     rvingConfigs/default_serving_config`. This field is used to identify the
 24122  //     serving configuration name, set of models used to make the search.
 24123  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Answer(servingConfig string, googleclouddiscoveryenginev1alphaanswerqueryrequest *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest) *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall {
 24124  	c := &ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24125  	c.servingConfig = servingConfig
 24126  	c.googleclouddiscoveryenginev1alphaanswerqueryrequest = googleclouddiscoveryenginev1alphaanswerqueryrequest
 24127  	return c
 24128  }
 24129  
 24130  // Fields allows partial responses to be retrieved. See
 24131  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24132  // details.
 24133  func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall {
 24134  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24135  	return c
 24136  }
 24137  
 24138  // Context sets the context to be used in this call's Do method.
 24139  func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall {
 24140  	c.ctx_ = ctx
 24141  	return c
 24142  }
 24143  
 24144  // Header returns a http.Header that can be modified by the caller to add
 24145  // headers to the request.
 24146  func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Header() http.Header {
 24147  	if c.header_ == nil {
 24148  		c.header_ = make(http.Header)
 24149  	}
 24150  	return c.header_
 24151  }
 24152  
 24153  func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) doRequest(alt string) (*http.Response, error) {
 24154  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24155  	var body io.Reader = nil
 24156  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaanswerqueryrequest)
 24157  	if err != nil {
 24158  		return nil, err
 24159  	}
 24160  	c.urlParams_.Set("alt", alt)
 24161  	c.urlParams_.Set("prettyPrint", "false")
 24162  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:answer")
 24163  	urls += "?" + c.urlParams_.Encode()
 24164  	req, err := http.NewRequest("POST", urls, body)
 24165  	if err != nil {
 24166  		return nil, err
 24167  	}
 24168  	req.Header = reqHeaders
 24169  	googleapi.Expand(req.URL, map[string]string{
 24170  		"servingConfig": c.servingConfig,
 24171  	})
 24172  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24173  }
 24174  
 24175  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.answer" call.
 24176  // Any non-2xx status code is an error. Response headers are in either
 24177  // *GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse.ServerResponse.Header
 24178  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 24179  // Use googleapi.IsNotModified to check whether the returned error was because
 24180  // http.StatusNotModified was returned.
 24181  func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse, error) {
 24182  	gensupport.SetOptions(c.urlParams_, opts...)
 24183  	res, err := c.doRequest("json")
 24184  	if res != nil && res.StatusCode == http.StatusNotModified {
 24185  		if res.Body != nil {
 24186  			res.Body.Close()
 24187  		}
 24188  		return nil, gensupport.WrapError(&googleapi.Error{
 24189  			Code:   res.StatusCode,
 24190  			Header: res.Header,
 24191  		})
 24192  	}
 24193  	if err != nil {
 24194  		return nil, err
 24195  	}
 24196  	defer googleapi.CloseBody(res)
 24197  	if err := googleapi.CheckResponse(res); err != nil {
 24198  		return nil, gensupport.WrapError(err)
 24199  	}
 24200  	ret := &GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse{
 24201  		ServerResponse: googleapi.ServerResponse{
 24202  			Header:         res.Header,
 24203  			HTTPStatusCode: res.StatusCode,
 24204  		},
 24205  	}
 24206  	target := &ret
 24207  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24208  		return nil, err
 24209  	}
 24210  	return ret, nil
 24211  }
 24212  
 24213  type ProjectsLocationsCollectionsEnginesServingConfigsGetCall struct {
 24214  	s            *Service
 24215  	name         string
 24216  	urlParams_   gensupport.URLParams
 24217  	ifNoneMatch_ string
 24218  	ctx_         context.Context
 24219  	header_      http.Header
 24220  }
 24221  
 24222  // Get: Gets a ServingConfig. Returns a NotFound error if the ServingConfig
 24223  // does not exist.
 24224  //
 24225  //   - name: The resource name of the ServingConfig to get. Format:
 24226  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 24227  //     gines/{engine}/servingConfigs/{serving_config_id}`.
 24228  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Get(name string) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
 24229  	c := &ProjectsLocationsCollectionsEnginesServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24230  	c.name = name
 24231  	return c
 24232  }
 24233  
 24234  // Fields allows partial responses to be retrieved. See
 24235  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24236  // details.
 24237  func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
 24238  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24239  	return c
 24240  }
 24241  
 24242  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24243  // object's ETag matches the given value. This is useful for getting updates
 24244  // only after the object has changed since the last request.
 24245  func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
 24246  	c.ifNoneMatch_ = entityTag
 24247  	return c
 24248  }
 24249  
 24250  // Context sets the context to be used in this call's Do method.
 24251  func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
 24252  	c.ctx_ = ctx
 24253  	return c
 24254  }
 24255  
 24256  // Header returns a http.Header that can be modified by the caller to add
 24257  // headers to the request.
 24258  func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Header() http.Header {
 24259  	if c.header_ == nil {
 24260  		c.header_ = make(http.Header)
 24261  	}
 24262  	return c.header_
 24263  }
 24264  
 24265  func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) doRequest(alt string) (*http.Response, error) {
 24266  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24267  	if c.ifNoneMatch_ != "" {
 24268  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24269  	}
 24270  	var body io.Reader = nil
 24271  	c.urlParams_.Set("alt", alt)
 24272  	c.urlParams_.Set("prettyPrint", "false")
 24273  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 24274  	urls += "?" + c.urlParams_.Encode()
 24275  	req, err := http.NewRequest("GET", urls, body)
 24276  	if err != nil {
 24277  		return nil, err
 24278  	}
 24279  	req.Header = reqHeaders
 24280  	googleapi.Expand(req.URL, map[string]string{
 24281  		"name": c.name,
 24282  	})
 24283  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24284  }
 24285  
 24286  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.get" call.
 24287  // Any non-2xx status code is an error. Response headers are in either
 24288  // *GoogleCloudDiscoveryengineV1alphaServingConfig.ServerResponse.Header or (if
 24289  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 24290  // googleapi.IsNotModified to check whether the returned error was because
 24291  // http.StatusNotModified was returned.
 24292  func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaServingConfig, error) {
 24293  	gensupport.SetOptions(c.urlParams_, opts...)
 24294  	res, err := c.doRequest("json")
 24295  	if res != nil && res.StatusCode == http.StatusNotModified {
 24296  		if res.Body != nil {
 24297  			res.Body.Close()
 24298  		}
 24299  		return nil, gensupport.WrapError(&googleapi.Error{
 24300  			Code:   res.StatusCode,
 24301  			Header: res.Header,
 24302  		})
 24303  	}
 24304  	if err != nil {
 24305  		return nil, err
 24306  	}
 24307  	defer googleapi.CloseBody(res)
 24308  	if err := googleapi.CheckResponse(res); err != nil {
 24309  		return nil, gensupport.WrapError(err)
 24310  	}
 24311  	ret := &GoogleCloudDiscoveryengineV1alphaServingConfig{
 24312  		ServerResponse: googleapi.ServerResponse{
 24313  			Header:         res.Header,
 24314  			HTTPStatusCode: res.StatusCode,
 24315  		},
 24316  	}
 24317  	target := &ret
 24318  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24319  		return nil, err
 24320  	}
 24321  	return ret, nil
 24322  }
 24323  
 24324  type ProjectsLocationsCollectionsEnginesServingConfigsListCall struct {
 24325  	s            *Service
 24326  	parent       string
 24327  	urlParams_   gensupport.URLParams
 24328  	ifNoneMatch_ string
 24329  	ctx_         context.Context
 24330  	header_      http.Header
 24331  }
 24332  
 24333  // List: Lists all ServingConfigs linked to this dataStore.
 24334  //
 24335  //   - parent: Full resource name of the parent resource. Format:
 24336  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 24337  //     gines/{engine}`.
 24338  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) List(parent string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
 24339  	c := &ProjectsLocationsCollectionsEnginesServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24340  	c.parent = parent
 24341  	return c
 24342  }
 24343  
 24344  // PageSize sets the optional parameter "pageSize": Maximum number of results
 24345  // to return. If unspecified, defaults to 100. If a value greater than 100 is
 24346  // provided, at most 100 results are returned.
 24347  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
 24348  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24349  	return c
 24350  }
 24351  
 24352  // PageToken sets the optional parameter "pageToken": A page token, received
 24353  // from a previous `ListServingConfigs` call. Provide this to retrieve the
 24354  // subsequent page.
 24355  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
 24356  	c.urlParams_.Set("pageToken", pageToken)
 24357  	return c
 24358  }
 24359  
 24360  // Fields allows partial responses to be retrieved. See
 24361  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24362  // details.
 24363  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
 24364  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24365  	return c
 24366  }
 24367  
 24368  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24369  // object's ETag matches the given value. This is useful for getting updates
 24370  // only after the object has changed since the last request.
 24371  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
 24372  	c.ifNoneMatch_ = entityTag
 24373  	return c
 24374  }
 24375  
 24376  // Context sets the context to be used in this call's Do method.
 24377  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
 24378  	c.ctx_ = ctx
 24379  	return c
 24380  }
 24381  
 24382  // Header returns a http.Header that can be modified by the caller to add
 24383  // headers to the request.
 24384  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Header() http.Header {
 24385  	if c.header_ == nil {
 24386  		c.header_ = make(http.Header)
 24387  	}
 24388  	return c.header_
 24389  }
 24390  
 24391  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) doRequest(alt string) (*http.Response, error) {
 24392  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24393  	if c.ifNoneMatch_ != "" {
 24394  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24395  	}
 24396  	var body io.Reader = nil
 24397  	c.urlParams_.Set("alt", alt)
 24398  	c.urlParams_.Set("prettyPrint", "false")
 24399  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/servingConfigs")
 24400  	urls += "?" + c.urlParams_.Encode()
 24401  	req, err := http.NewRequest("GET", urls, body)
 24402  	if err != nil {
 24403  		return nil, err
 24404  	}
 24405  	req.Header = reqHeaders
 24406  	googleapi.Expand(req.URL, map[string]string{
 24407  		"parent": c.parent,
 24408  	})
 24409  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24410  }
 24411  
 24412  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.list" call.
 24413  // Any non-2xx status code is an error. Response headers are in either
 24414  // *GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse.ServerResponse.H
 24415  // eader or (if a response was returned at all) in
 24416  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 24417  // whether the returned error was because http.StatusNotModified was returned.
 24418  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse, error) {
 24419  	gensupport.SetOptions(c.urlParams_, opts...)
 24420  	res, err := c.doRequest("json")
 24421  	if res != nil && res.StatusCode == http.StatusNotModified {
 24422  		if res.Body != nil {
 24423  			res.Body.Close()
 24424  		}
 24425  		return nil, gensupport.WrapError(&googleapi.Error{
 24426  			Code:   res.StatusCode,
 24427  			Header: res.Header,
 24428  		})
 24429  	}
 24430  	if err != nil {
 24431  		return nil, err
 24432  	}
 24433  	defer googleapi.CloseBody(res)
 24434  	if err := googleapi.CheckResponse(res); err != nil {
 24435  		return nil, gensupport.WrapError(err)
 24436  	}
 24437  	ret := &GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse{
 24438  		ServerResponse: googleapi.ServerResponse{
 24439  			Header:         res.Header,
 24440  			HTTPStatusCode: res.StatusCode,
 24441  		},
 24442  	}
 24443  	target := &ret
 24444  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24445  		return nil, err
 24446  	}
 24447  	return ret, nil
 24448  }
 24449  
 24450  // Pages invokes f for each page of results.
 24451  // A non-nil error returned from f will halt the iteration.
 24452  // The provided context supersedes any context provided to the Context method.
 24453  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse) error) error {
 24454  	c.ctx_ = ctx
 24455  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24456  	for {
 24457  		x, err := c.Do()
 24458  		if err != nil {
 24459  			return err
 24460  		}
 24461  		if err := f(x); err != nil {
 24462  			return err
 24463  		}
 24464  		if x.NextPageToken == "" {
 24465  			return nil
 24466  		}
 24467  		c.PageToken(x.NextPageToken)
 24468  	}
 24469  }
 24470  
 24471  type ProjectsLocationsCollectionsEnginesServingConfigsPatchCall struct {
 24472  	s                                              *Service
 24473  	name                                           string
 24474  	googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig
 24475  	urlParams_                                     gensupport.URLParams
 24476  	ctx_                                           context.Context
 24477  	header_                                        http.Header
 24478  }
 24479  
 24480  // Patch: Updates a ServingConfig. Returns a NOT_FOUND error if the
 24481  // ServingConfig does not exist.
 24482  //
 24483  //   - name: Immutable. Fully qualified name
 24484  //     `projects/{project}/locations/{location}/collections/{collection_id}/engine
 24485  //     s/{engine_id}/servingConfigs/{serving_config_id}`.
 24486  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Patch(name string, googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
 24487  	c := &ProjectsLocationsCollectionsEnginesServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24488  	c.name = name
 24489  	c.googleclouddiscoveryenginev1alphaservingconfig = googleclouddiscoveryenginev1alphaservingconfig
 24490  	return c
 24491  }
 24492  
 24493  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 24494  // in the provided ServingConfig to update. The following are NOT supported: *
 24495  // ServingConfig.name If not set, all supported fields are updated.
 24496  func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
 24497  	c.urlParams_.Set("updateMask", updateMask)
 24498  	return c
 24499  }
 24500  
 24501  // Fields allows partial responses to be retrieved. See
 24502  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24503  // details.
 24504  func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
 24505  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24506  	return c
 24507  }
 24508  
 24509  // Context sets the context to be used in this call's Do method.
 24510  func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
 24511  	c.ctx_ = ctx
 24512  	return c
 24513  }
 24514  
 24515  // Header returns a http.Header that can be modified by the caller to add
 24516  // headers to the request.
 24517  func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Header() http.Header {
 24518  	if c.header_ == nil {
 24519  		c.header_ = make(http.Header)
 24520  	}
 24521  	return c.header_
 24522  }
 24523  
 24524  func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
 24525  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24526  	var body io.Reader = nil
 24527  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaservingconfig)
 24528  	if err != nil {
 24529  		return nil, err
 24530  	}
 24531  	c.urlParams_.Set("alt", alt)
 24532  	c.urlParams_.Set("prettyPrint", "false")
 24533  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 24534  	urls += "?" + c.urlParams_.Encode()
 24535  	req, err := http.NewRequest("PATCH", urls, body)
 24536  	if err != nil {
 24537  		return nil, err
 24538  	}
 24539  	req.Header = reqHeaders
 24540  	googleapi.Expand(req.URL, map[string]string{
 24541  		"name": c.name,
 24542  	})
 24543  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24544  }
 24545  
 24546  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.patch" call.
 24547  // Any non-2xx status code is an error. Response headers are in either
 24548  // *GoogleCloudDiscoveryengineV1alphaServingConfig.ServerResponse.Header or (if
 24549  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 24550  // googleapi.IsNotModified to check whether the returned error was because
 24551  // http.StatusNotModified was returned.
 24552  func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaServingConfig, error) {
 24553  	gensupport.SetOptions(c.urlParams_, opts...)
 24554  	res, err := c.doRequest("json")
 24555  	if res != nil && res.StatusCode == http.StatusNotModified {
 24556  		if res.Body != nil {
 24557  			res.Body.Close()
 24558  		}
 24559  		return nil, gensupport.WrapError(&googleapi.Error{
 24560  			Code:   res.StatusCode,
 24561  			Header: res.Header,
 24562  		})
 24563  	}
 24564  	if err != nil {
 24565  		return nil, err
 24566  	}
 24567  	defer googleapi.CloseBody(res)
 24568  	if err := googleapi.CheckResponse(res); err != nil {
 24569  		return nil, gensupport.WrapError(err)
 24570  	}
 24571  	ret := &GoogleCloudDiscoveryengineV1alphaServingConfig{
 24572  		ServerResponse: googleapi.ServerResponse{
 24573  			Header:         res.Header,
 24574  			HTTPStatusCode: res.StatusCode,
 24575  		},
 24576  	}
 24577  	target := &ret
 24578  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24579  		return nil, err
 24580  	}
 24581  	return ret, nil
 24582  }
 24583  
 24584  type ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall struct {
 24585  	s                                                 *Service
 24586  	servingConfig                                     string
 24587  	googleclouddiscoveryenginev1alpharecommendrequest *GoogleCloudDiscoveryengineV1alphaRecommendRequest
 24588  	urlParams_                                        gensupport.URLParams
 24589  	ctx_                                              context.Context
 24590  	header_                                           http.Header
 24591  }
 24592  
 24593  // Recommend: Makes a recommendation, which requires a contextual user event.
 24594  //
 24595  //   - servingConfig: Full resource name of a ServingConfig:
 24596  //     `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
 24597  //     `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
 24598  //     One default serving config is created along with your recommendation
 24599  //     engine creation. The engine ID will be used as the ID of the default
 24600  //     serving config. For example, for Engine
 24601  //     `projects/*/locations/global/collections/*/engines/my-engine`, you can use
 24602  //     `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs
 24603  //     /my-engine` for your RecommendationService.Recommend requests.
 24604  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1alpharecommendrequest *GoogleCloudDiscoveryengineV1alphaRecommendRequest) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
 24605  	c := &ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24606  	c.servingConfig = servingConfig
 24607  	c.googleclouddiscoveryenginev1alpharecommendrequest = googleclouddiscoveryenginev1alpharecommendrequest
 24608  	return c
 24609  }
 24610  
 24611  // Fields allows partial responses to be retrieved. See
 24612  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24613  // details.
 24614  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
 24615  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24616  	return c
 24617  }
 24618  
 24619  // Context sets the context to be used in this call's Do method.
 24620  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
 24621  	c.ctx_ = ctx
 24622  	return c
 24623  }
 24624  
 24625  // Header returns a http.Header that can be modified by the caller to add
 24626  // headers to the request.
 24627  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Header() http.Header {
 24628  	if c.header_ == nil {
 24629  		c.header_ = make(http.Header)
 24630  	}
 24631  	return c.header_
 24632  }
 24633  
 24634  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
 24635  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24636  	var body io.Reader = nil
 24637  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharecommendrequest)
 24638  	if err != nil {
 24639  		return nil, err
 24640  	}
 24641  	c.urlParams_.Set("alt", alt)
 24642  	c.urlParams_.Set("prettyPrint", "false")
 24643  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:recommend")
 24644  	urls += "?" + c.urlParams_.Encode()
 24645  	req, err := http.NewRequest("POST", urls, body)
 24646  	if err != nil {
 24647  		return nil, err
 24648  	}
 24649  	req.Header = reqHeaders
 24650  	googleapi.Expand(req.URL, map[string]string{
 24651  		"servingConfig": c.servingConfig,
 24652  	})
 24653  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24654  }
 24655  
 24656  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.recommend" call.
 24657  // Any non-2xx status code is an error. Response headers are in either
 24658  // *GoogleCloudDiscoveryengineV1alphaRecommendResponse.ServerResponse.Header or
 24659  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24660  // googleapi.IsNotModified to check whether the returned error was because
 24661  // http.StatusNotModified was returned.
 24662  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaRecommendResponse, error) {
 24663  	gensupport.SetOptions(c.urlParams_, opts...)
 24664  	res, err := c.doRequest("json")
 24665  	if res != nil && res.StatusCode == http.StatusNotModified {
 24666  		if res.Body != nil {
 24667  			res.Body.Close()
 24668  		}
 24669  		return nil, gensupport.WrapError(&googleapi.Error{
 24670  			Code:   res.StatusCode,
 24671  			Header: res.Header,
 24672  		})
 24673  	}
 24674  	if err != nil {
 24675  		return nil, err
 24676  	}
 24677  	defer googleapi.CloseBody(res)
 24678  	if err := googleapi.CheckResponse(res); err != nil {
 24679  		return nil, gensupport.WrapError(err)
 24680  	}
 24681  	ret := &GoogleCloudDiscoveryengineV1alphaRecommendResponse{
 24682  		ServerResponse: googleapi.ServerResponse{
 24683  			Header:         res.Header,
 24684  			HTTPStatusCode: res.StatusCode,
 24685  		},
 24686  	}
 24687  	target := &ret
 24688  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24689  		return nil, err
 24690  	}
 24691  	return ret, nil
 24692  }
 24693  
 24694  type ProjectsLocationsCollectionsEnginesServingConfigsSearchCall struct {
 24695  	s                                              *Service
 24696  	servingConfig                                  string
 24697  	googleclouddiscoveryenginev1alphasearchrequest *GoogleCloudDiscoveryengineV1alphaSearchRequest
 24698  	urlParams_                                     gensupport.URLParams
 24699  	ctx_                                           context.Context
 24700  	header_                                        http.Header
 24701  }
 24702  
 24703  // Search: Performs a search.
 24704  //
 24705  //   - servingConfig: The resource name of the Search serving config, such as
 24706  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 24707  //     ngConfigs/default_serving_config`, or
 24708  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 24709  //     ult_data_store/servingConfigs/default_serving_config`. This field is used
 24710  //     to identify the serving configuration name, set of models used to make the
 24711  //     search.
 24712  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1alphasearchrequest *GoogleCloudDiscoveryengineV1alphaSearchRequest) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
 24713  	c := &ProjectsLocationsCollectionsEnginesServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24714  	c.servingConfig = servingConfig
 24715  	c.googleclouddiscoveryenginev1alphasearchrequest = googleclouddiscoveryenginev1alphasearchrequest
 24716  	return c
 24717  }
 24718  
 24719  // Fields allows partial responses to be retrieved. See
 24720  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24721  // details.
 24722  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
 24723  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24724  	return c
 24725  }
 24726  
 24727  // Context sets the context to be used in this call's Do method.
 24728  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
 24729  	c.ctx_ = ctx
 24730  	return c
 24731  }
 24732  
 24733  // Header returns a http.Header that can be modified by the caller to add
 24734  // headers to the request.
 24735  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Header() http.Header {
 24736  	if c.header_ == nil {
 24737  		c.header_ = make(http.Header)
 24738  	}
 24739  	return c.header_
 24740  }
 24741  
 24742  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
 24743  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24744  	var body io.Reader = nil
 24745  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasearchrequest)
 24746  	if err != nil {
 24747  		return nil, err
 24748  	}
 24749  	c.urlParams_.Set("alt", alt)
 24750  	c.urlParams_.Set("prettyPrint", "false")
 24751  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:search")
 24752  	urls += "?" + c.urlParams_.Encode()
 24753  	req, err := http.NewRequest("POST", urls, body)
 24754  	if err != nil {
 24755  		return nil, err
 24756  	}
 24757  	req.Header = reqHeaders
 24758  	googleapi.Expand(req.URL, map[string]string{
 24759  		"servingConfig": c.servingConfig,
 24760  	})
 24761  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24762  }
 24763  
 24764  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.search" call.
 24765  // Any non-2xx status code is an error. Response headers are in either
 24766  // *GoogleCloudDiscoveryengineV1alphaSearchResponse.ServerResponse.Header or
 24767  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24768  // googleapi.IsNotModified to check whether the returned error was because
 24769  // http.StatusNotModified was returned.
 24770  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSearchResponse, error) {
 24771  	gensupport.SetOptions(c.urlParams_, opts...)
 24772  	res, err := c.doRequest("json")
 24773  	if res != nil && res.StatusCode == http.StatusNotModified {
 24774  		if res.Body != nil {
 24775  			res.Body.Close()
 24776  		}
 24777  		return nil, gensupport.WrapError(&googleapi.Error{
 24778  			Code:   res.StatusCode,
 24779  			Header: res.Header,
 24780  		})
 24781  	}
 24782  	if err != nil {
 24783  		return nil, err
 24784  	}
 24785  	defer googleapi.CloseBody(res)
 24786  	if err := googleapi.CheckResponse(res); err != nil {
 24787  		return nil, gensupport.WrapError(err)
 24788  	}
 24789  	ret := &GoogleCloudDiscoveryengineV1alphaSearchResponse{
 24790  		ServerResponse: googleapi.ServerResponse{
 24791  			Header:         res.Header,
 24792  			HTTPStatusCode: res.StatusCode,
 24793  		},
 24794  	}
 24795  	target := &ret
 24796  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24797  		return nil, err
 24798  	}
 24799  	return ret, nil
 24800  }
 24801  
 24802  // Pages invokes f for each page of results.
 24803  // A non-nil error returned from f will halt the iteration.
 24804  // The provided context supersedes any context provided to the Context method.
 24805  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaSearchResponse) error) error {
 24806  	c.ctx_ = ctx
 24807  	defer func(pt string) { c.googleclouddiscoveryenginev1alphasearchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1alphasearchrequest.PageToken)
 24808  	for {
 24809  		x, err := c.Do()
 24810  		if err != nil {
 24811  			return err
 24812  		}
 24813  		if err := f(x); err != nil {
 24814  			return err
 24815  		}
 24816  		if x.NextPageToken == "" {
 24817  			return nil
 24818  		}
 24819  		c.googleclouddiscoveryenginev1alphasearchrequest.PageToken = x.NextPageToken
 24820  	}
 24821  }
 24822  
 24823  type ProjectsLocationsCollectionsEnginesSessionsCreateCall struct {
 24824  	s                                        *Service
 24825  	parent                                   string
 24826  	googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession
 24827  	urlParams_                               gensupport.URLParams
 24828  	ctx_                                     context.Context
 24829  	header_                                  http.Header
 24830  }
 24831  
 24832  // Create: Creates a Session. If the Session to create already exists, an
 24833  // ALREADY_EXISTS error is returned.
 24834  //
 24835  //   - parent: Full resource name of parent data store. Format:
 24836  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 24837  //     /dataStores/{data_store_id}`.
 24838  func (r *ProjectsLocationsCollectionsEnginesSessionsService) Create(parent string, googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession) *ProjectsLocationsCollectionsEnginesSessionsCreateCall {
 24839  	c := &ProjectsLocationsCollectionsEnginesSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24840  	c.parent = parent
 24841  	c.googleclouddiscoveryenginev1alphasession = googleclouddiscoveryenginev1alphasession
 24842  	return c
 24843  }
 24844  
 24845  // Fields allows partial responses to be retrieved. See
 24846  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24847  // details.
 24848  func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsCreateCall {
 24849  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24850  	return c
 24851  }
 24852  
 24853  // Context sets the context to be used in this call's Do method.
 24854  func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsCreateCall {
 24855  	c.ctx_ = ctx
 24856  	return c
 24857  }
 24858  
 24859  // Header returns a http.Header that can be modified by the caller to add
 24860  // headers to the request.
 24861  func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Header() http.Header {
 24862  	if c.header_ == nil {
 24863  		c.header_ = make(http.Header)
 24864  	}
 24865  	return c.header_
 24866  }
 24867  
 24868  func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) doRequest(alt string) (*http.Response, error) {
 24869  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24870  	var body io.Reader = nil
 24871  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasession)
 24872  	if err != nil {
 24873  		return nil, err
 24874  	}
 24875  	c.urlParams_.Set("alt", alt)
 24876  	c.urlParams_.Set("prettyPrint", "false")
 24877  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sessions")
 24878  	urls += "?" + c.urlParams_.Encode()
 24879  	req, err := http.NewRequest("POST", urls, body)
 24880  	if err != nil {
 24881  		return nil, err
 24882  	}
 24883  	req.Header = reqHeaders
 24884  	googleapi.Expand(req.URL, map[string]string{
 24885  		"parent": c.parent,
 24886  	})
 24887  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24888  }
 24889  
 24890  // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.create" call.
 24891  // Any non-2xx status code is an error. Response headers are in either
 24892  // *GoogleCloudDiscoveryengineV1alphaSession.ServerResponse.Header or (if a
 24893  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24894  // googleapi.IsNotModified to check whether the returned error was because
 24895  // http.StatusNotModified was returned.
 24896  func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
 24897  	gensupport.SetOptions(c.urlParams_, opts...)
 24898  	res, err := c.doRequest("json")
 24899  	if res != nil && res.StatusCode == http.StatusNotModified {
 24900  		if res.Body != nil {
 24901  			res.Body.Close()
 24902  		}
 24903  		return nil, gensupport.WrapError(&googleapi.Error{
 24904  			Code:   res.StatusCode,
 24905  			Header: res.Header,
 24906  		})
 24907  	}
 24908  	if err != nil {
 24909  		return nil, err
 24910  	}
 24911  	defer googleapi.CloseBody(res)
 24912  	if err := googleapi.CheckResponse(res); err != nil {
 24913  		return nil, gensupport.WrapError(err)
 24914  	}
 24915  	ret := &GoogleCloudDiscoveryengineV1alphaSession{
 24916  		ServerResponse: googleapi.ServerResponse{
 24917  			Header:         res.Header,
 24918  			HTTPStatusCode: res.StatusCode,
 24919  		},
 24920  	}
 24921  	target := &ret
 24922  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24923  		return nil, err
 24924  	}
 24925  	return ret, nil
 24926  }
 24927  
 24928  type ProjectsLocationsCollectionsEnginesSessionsDeleteCall struct {
 24929  	s          *Service
 24930  	name       string
 24931  	urlParams_ gensupport.URLParams
 24932  	ctx_       context.Context
 24933  	header_    http.Header
 24934  }
 24935  
 24936  // Delete: Deletes a Session. If the Session to delete does not exist, a
 24937  // NOT_FOUND error is returned.
 24938  //
 24939  //   - name: The resource name of the Session to delete. Format:
 24940  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 24941  //     /dataStores/{data_store_id}/sessions/{session_id}`.
 24942  func (r *ProjectsLocationsCollectionsEnginesSessionsService) Delete(name string) *ProjectsLocationsCollectionsEnginesSessionsDeleteCall {
 24943  	c := &ProjectsLocationsCollectionsEnginesSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24944  	c.name = name
 24945  	return c
 24946  }
 24947  
 24948  // Fields allows partial responses to be retrieved. See
 24949  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24950  // details.
 24951  func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsDeleteCall {
 24952  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24953  	return c
 24954  }
 24955  
 24956  // Context sets the context to be used in this call's Do method.
 24957  func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsDeleteCall {
 24958  	c.ctx_ = ctx
 24959  	return c
 24960  }
 24961  
 24962  // Header returns a http.Header that can be modified by the caller to add
 24963  // headers to the request.
 24964  func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Header() http.Header {
 24965  	if c.header_ == nil {
 24966  		c.header_ = make(http.Header)
 24967  	}
 24968  	return c.header_
 24969  }
 24970  
 24971  func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 24972  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24973  	var body io.Reader = nil
 24974  	c.urlParams_.Set("alt", alt)
 24975  	c.urlParams_.Set("prettyPrint", "false")
 24976  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 24977  	urls += "?" + c.urlParams_.Encode()
 24978  	req, err := http.NewRequest("DELETE", urls, body)
 24979  	if err != nil {
 24980  		return nil, err
 24981  	}
 24982  	req.Header = reqHeaders
 24983  	googleapi.Expand(req.URL, map[string]string{
 24984  		"name": c.name,
 24985  	})
 24986  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24987  }
 24988  
 24989  // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.delete" call.
 24990  // Any non-2xx status code is an error. Response headers are in either
 24991  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 24992  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 24993  // check whether the returned error was because http.StatusNotModified was
 24994  // returned.
 24995  func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 24996  	gensupport.SetOptions(c.urlParams_, opts...)
 24997  	res, err := c.doRequest("json")
 24998  	if res != nil && res.StatusCode == http.StatusNotModified {
 24999  		if res.Body != nil {
 25000  			res.Body.Close()
 25001  		}
 25002  		return nil, gensupport.WrapError(&googleapi.Error{
 25003  			Code:   res.StatusCode,
 25004  			Header: res.Header,
 25005  		})
 25006  	}
 25007  	if err != nil {
 25008  		return nil, err
 25009  	}
 25010  	defer googleapi.CloseBody(res)
 25011  	if err := googleapi.CheckResponse(res); err != nil {
 25012  		return nil, gensupport.WrapError(err)
 25013  	}
 25014  	ret := &GoogleProtobufEmpty{
 25015  		ServerResponse: googleapi.ServerResponse{
 25016  			Header:         res.Header,
 25017  			HTTPStatusCode: res.StatusCode,
 25018  		},
 25019  	}
 25020  	target := &ret
 25021  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25022  		return nil, err
 25023  	}
 25024  	return ret, nil
 25025  }
 25026  
 25027  type ProjectsLocationsCollectionsEnginesSessionsGetCall struct {
 25028  	s            *Service
 25029  	name         string
 25030  	urlParams_   gensupport.URLParams
 25031  	ifNoneMatch_ string
 25032  	ctx_         context.Context
 25033  	header_      http.Header
 25034  }
 25035  
 25036  // Get: Gets a Session.
 25037  //
 25038  //   - name: The resource name of the Session to get. Format:
 25039  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 25040  //     /dataStores/{data_store_id}/sessions/{session_id}`.
 25041  func (r *ProjectsLocationsCollectionsEnginesSessionsService) Get(name string) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
 25042  	c := &ProjectsLocationsCollectionsEnginesSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25043  	c.name = name
 25044  	return c
 25045  }
 25046  
 25047  // Fields allows partial responses to be retrieved. See
 25048  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25049  // details.
 25050  func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
 25051  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25052  	return c
 25053  }
 25054  
 25055  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25056  // object's ETag matches the given value. This is useful for getting updates
 25057  // only after the object has changed since the last request.
 25058  func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
 25059  	c.ifNoneMatch_ = entityTag
 25060  	return c
 25061  }
 25062  
 25063  // Context sets the context to be used in this call's Do method.
 25064  func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
 25065  	c.ctx_ = ctx
 25066  	return c
 25067  }
 25068  
 25069  // Header returns a http.Header that can be modified by the caller to add
 25070  // headers to the request.
 25071  func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Header() http.Header {
 25072  	if c.header_ == nil {
 25073  		c.header_ = make(http.Header)
 25074  	}
 25075  	return c.header_
 25076  }
 25077  
 25078  func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) doRequest(alt string) (*http.Response, error) {
 25079  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25080  	if c.ifNoneMatch_ != "" {
 25081  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25082  	}
 25083  	var body io.Reader = nil
 25084  	c.urlParams_.Set("alt", alt)
 25085  	c.urlParams_.Set("prettyPrint", "false")
 25086  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 25087  	urls += "?" + c.urlParams_.Encode()
 25088  	req, err := http.NewRequest("GET", urls, body)
 25089  	if err != nil {
 25090  		return nil, err
 25091  	}
 25092  	req.Header = reqHeaders
 25093  	googleapi.Expand(req.URL, map[string]string{
 25094  		"name": c.name,
 25095  	})
 25096  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25097  }
 25098  
 25099  // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.get" call.
 25100  // Any non-2xx status code is an error. Response headers are in either
 25101  // *GoogleCloudDiscoveryengineV1alphaSession.ServerResponse.Header or (if a
 25102  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25103  // googleapi.IsNotModified to check whether the returned error was because
 25104  // http.StatusNotModified was returned.
 25105  func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
 25106  	gensupport.SetOptions(c.urlParams_, opts...)
 25107  	res, err := c.doRequest("json")
 25108  	if res != nil && res.StatusCode == http.StatusNotModified {
 25109  		if res.Body != nil {
 25110  			res.Body.Close()
 25111  		}
 25112  		return nil, gensupport.WrapError(&googleapi.Error{
 25113  			Code:   res.StatusCode,
 25114  			Header: res.Header,
 25115  		})
 25116  	}
 25117  	if err != nil {
 25118  		return nil, err
 25119  	}
 25120  	defer googleapi.CloseBody(res)
 25121  	if err := googleapi.CheckResponse(res); err != nil {
 25122  		return nil, gensupport.WrapError(err)
 25123  	}
 25124  	ret := &GoogleCloudDiscoveryengineV1alphaSession{
 25125  		ServerResponse: googleapi.ServerResponse{
 25126  			Header:         res.Header,
 25127  			HTTPStatusCode: res.StatusCode,
 25128  		},
 25129  	}
 25130  	target := &ret
 25131  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25132  		return nil, err
 25133  	}
 25134  	return ret, nil
 25135  }
 25136  
 25137  type ProjectsLocationsCollectionsEnginesSessionsListCall struct {
 25138  	s            *Service
 25139  	parent       string
 25140  	urlParams_   gensupport.URLParams
 25141  	ifNoneMatch_ string
 25142  	ctx_         context.Context
 25143  	header_      http.Header
 25144  }
 25145  
 25146  // List: Lists all Sessions by their parent DataStore.
 25147  //
 25148  //   - parent: The data store resource name. Format:
 25149  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 25150  //     /dataStores/{data_store_id}`.
 25151  func (r *ProjectsLocationsCollectionsEnginesSessionsService) List(parent string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 25152  	c := &ProjectsLocationsCollectionsEnginesSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25153  	c.parent = parent
 25154  	return c
 25155  }
 25156  
 25157  // Filter sets the optional parameter "filter": A filter to apply on the list
 25158  // results. The supported features are: user_pseudo_id, state. Example:
 25159  // "user_pseudo_id = some_id"
 25160  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 25161  	c.urlParams_.Set("filter", filter)
 25162  	return c
 25163  }
 25164  
 25165  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 25166  // fields to order by, sorted in ascending order. Use "desc" after a field name
 25167  // for descending. Supported fields: * `update_time` * `create_time` *
 25168  // `session_name` Example: "update_time desc" "create_time"
 25169  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 25170  	c.urlParams_.Set("orderBy", orderBy)
 25171  	return c
 25172  }
 25173  
 25174  // PageSize sets the optional parameter "pageSize": Maximum number of results
 25175  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 25176  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 25177  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25178  	return c
 25179  }
 25180  
 25181  // PageToken sets the optional parameter "pageToken": A page token, received
 25182  // from a previous `ListSessions` call. Provide this to retrieve the subsequent
 25183  // page.
 25184  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 25185  	c.urlParams_.Set("pageToken", pageToken)
 25186  	return c
 25187  }
 25188  
 25189  // Fields allows partial responses to be retrieved. See
 25190  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25191  // details.
 25192  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 25193  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25194  	return c
 25195  }
 25196  
 25197  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25198  // object's ETag matches the given value. This is useful for getting updates
 25199  // only after the object has changed since the last request.
 25200  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 25201  	c.ifNoneMatch_ = entityTag
 25202  	return c
 25203  }
 25204  
 25205  // Context sets the context to be used in this call's Do method.
 25206  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 25207  	c.ctx_ = ctx
 25208  	return c
 25209  }
 25210  
 25211  // Header returns a http.Header that can be modified by the caller to add
 25212  // headers to the request.
 25213  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Header() http.Header {
 25214  	if c.header_ == nil {
 25215  		c.header_ = make(http.Header)
 25216  	}
 25217  	return c.header_
 25218  }
 25219  
 25220  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) doRequest(alt string) (*http.Response, error) {
 25221  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25222  	if c.ifNoneMatch_ != "" {
 25223  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25224  	}
 25225  	var body io.Reader = nil
 25226  	c.urlParams_.Set("alt", alt)
 25227  	c.urlParams_.Set("prettyPrint", "false")
 25228  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sessions")
 25229  	urls += "?" + c.urlParams_.Encode()
 25230  	req, err := http.NewRequest("GET", urls, body)
 25231  	if err != nil {
 25232  		return nil, err
 25233  	}
 25234  	req.Header = reqHeaders
 25235  	googleapi.Expand(req.URL, map[string]string{
 25236  		"parent": c.parent,
 25237  	})
 25238  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25239  }
 25240  
 25241  // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.list" call.
 25242  // Any non-2xx status code is an error. Response headers are in either
 25243  // *GoogleCloudDiscoveryengineV1alphaListSessionsResponse.ServerResponse.Header
 25244  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 25245  // Use googleapi.IsNotModified to check whether the returned error was because
 25246  // http.StatusNotModified was returned.
 25247  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListSessionsResponse, error) {
 25248  	gensupport.SetOptions(c.urlParams_, opts...)
 25249  	res, err := c.doRequest("json")
 25250  	if res != nil && res.StatusCode == http.StatusNotModified {
 25251  		if res.Body != nil {
 25252  			res.Body.Close()
 25253  		}
 25254  		return nil, gensupport.WrapError(&googleapi.Error{
 25255  			Code:   res.StatusCode,
 25256  			Header: res.Header,
 25257  		})
 25258  	}
 25259  	if err != nil {
 25260  		return nil, err
 25261  	}
 25262  	defer googleapi.CloseBody(res)
 25263  	if err := googleapi.CheckResponse(res); err != nil {
 25264  		return nil, gensupport.WrapError(err)
 25265  	}
 25266  	ret := &GoogleCloudDiscoveryengineV1alphaListSessionsResponse{
 25267  		ServerResponse: googleapi.ServerResponse{
 25268  			Header:         res.Header,
 25269  			HTTPStatusCode: res.StatusCode,
 25270  		},
 25271  	}
 25272  	target := &ret
 25273  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25274  		return nil, err
 25275  	}
 25276  	return ret, nil
 25277  }
 25278  
 25279  // Pages invokes f for each page of results.
 25280  // A non-nil error returned from f will halt the iteration.
 25281  // The provided context supersedes any context provided to the Context method.
 25282  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListSessionsResponse) error) error {
 25283  	c.ctx_ = ctx
 25284  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25285  	for {
 25286  		x, err := c.Do()
 25287  		if err != nil {
 25288  			return err
 25289  		}
 25290  		if err := f(x); err != nil {
 25291  			return err
 25292  		}
 25293  		if x.NextPageToken == "" {
 25294  			return nil
 25295  		}
 25296  		c.PageToken(x.NextPageToken)
 25297  	}
 25298  }
 25299  
 25300  type ProjectsLocationsCollectionsEnginesSessionsPatchCall struct {
 25301  	s                                        *Service
 25302  	name                                     string
 25303  	googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession
 25304  	urlParams_                               gensupport.URLParams
 25305  	ctx_                                     context.Context
 25306  	header_                                  http.Header
 25307  }
 25308  
 25309  // Patch: Updates a Session. Session action type cannot be changed. If the
 25310  // Session to update does not exist, a NOT_FOUND error is returned.
 25311  //
 25312  //   - name: Immutable. Fully qualified name
 25313  //     `projects/{project}/locations/global/collections/{collection}/engines/{engi
 25314  //     ne}/sessions/*`.
 25315  func (r *ProjectsLocationsCollectionsEnginesSessionsService) Patch(name string, googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
 25316  	c := &ProjectsLocationsCollectionsEnginesSessionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25317  	c.name = name
 25318  	c.googleclouddiscoveryenginev1alphasession = googleclouddiscoveryenginev1alphasession
 25319  	return c
 25320  }
 25321  
 25322  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 25323  // in the provided Session to update. The following are NOT supported: *
 25324  // Session.name If not set or empty, all supported fields are updated.
 25325  func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
 25326  	c.urlParams_.Set("updateMask", updateMask)
 25327  	return c
 25328  }
 25329  
 25330  // Fields allows partial responses to be retrieved. See
 25331  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25332  // details.
 25333  func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
 25334  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25335  	return c
 25336  }
 25337  
 25338  // Context sets the context to be used in this call's Do method.
 25339  func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
 25340  	c.ctx_ = ctx
 25341  	return c
 25342  }
 25343  
 25344  // Header returns a http.Header that can be modified by the caller to add
 25345  // headers to the request.
 25346  func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Header() http.Header {
 25347  	if c.header_ == nil {
 25348  		c.header_ = make(http.Header)
 25349  	}
 25350  	return c.header_
 25351  }
 25352  
 25353  func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) doRequest(alt string) (*http.Response, error) {
 25354  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25355  	var body io.Reader = nil
 25356  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasession)
 25357  	if err != nil {
 25358  		return nil, err
 25359  	}
 25360  	c.urlParams_.Set("alt", alt)
 25361  	c.urlParams_.Set("prettyPrint", "false")
 25362  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 25363  	urls += "?" + c.urlParams_.Encode()
 25364  	req, err := http.NewRequest("PATCH", urls, body)
 25365  	if err != nil {
 25366  		return nil, err
 25367  	}
 25368  	req.Header = reqHeaders
 25369  	googleapi.Expand(req.URL, map[string]string{
 25370  		"name": c.name,
 25371  	})
 25372  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25373  }
 25374  
 25375  // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.patch" call.
 25376  // Any non-2xx status code is an error. Response headers are in either
 25377  // *GoogleCloudDiscoveryengineV1alphaSession.ServerResponse.Header or (if a
 25378  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25379  // googleapi.IsNotModified to check whether the returned error was because
 25380  // http.StatusNotModified was returned.
 25381  func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
 25382  	gensupport.SetOptions(c.urlParams_, opts...)
 25383  	res, err := c.doRequest("json")
 25384  	if res != nil && res.StatusCode == http.StatusNotModified {
 25385  		if res.Body != nil {
 25386  			res.Body.Close()
 25387  		}
 25388  		return nil, gensupport.WrapError(&googleapi.Error{
 25389  			Code:   res.StatusCode,
 25390  			Header: res.Header,
 25391  		})
 25392  	}
 25393  	if err != nil {
 25394  		return nil, err
 25395  	}
 25396  	defer googleapi.CloseBody(res)
 25397  	if err := googleapi.CheckResponse(res); err != nil {
 25398  		return nil, gensupport.WrapError(err)
 25399  	}
 25400  	ret := &GoogleCloudDiscoveryengineV1alphaSession{
 25401  		ServerResponse: googleapi.ServerResponse{
 25402  			Header:         res.Header,
 25403  			HTTPStatusCode: res.StatusCode,
 25404  		},
 25405  	}
 25406  	target := &ret
 25407  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25408  		return nil, err
 25409  	}
 25410  	return ret, nil
 25411  }
 25412  
 25413  type ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall struct {
 25414  	s            *Service
 25415  	name         string
 25416  	urlParams_   gensupport.URLParams
 25417  	ifNoneMatch_ string
 25418  	ctx_         context.Context
 25419  	header_      http.Header
 25420  }
 25421  
 25422  // Get: Gets a Answer.
 25423  //
 25424  //   - name: The resource name of the Answer to get. Format:
 25425  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 25426  //     /engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`.
 25427  func (r *ProjectsLocationsCollectionsEnginesSessionsAnswersService) Get(name string) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
 25428  	c := &ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25429  	c.name = name
 25430  	return c
 25431  }
 25432  
 25433  // Fields allows partial responses to be retrieved. See
 25434  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25435  // details.
 25436  func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
 25437  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25438  	return c
 25439  }
 25440  
 25441  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25442  // object's ETag matches the given value. This is useful for getting updates
 25443  // only after the object has changed since the last request.
 25444  func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
 25445  	c.ifNoneMatch_ = entityTag
 25446  	return c
 25447  }
 25448  
 25449  // Context sets the context to be used in this call's Do method.
 25450  func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
 25451  	c.ctx_ = ctx
 25452  	return c
 25453  }
 25454  
 25455  // Header returns a http.Header that can be modified by the caller to add
 25456  // headers to the request.
 25457  func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Header() http.Header {
 25458  	if c.header_ == nil {
 25459  		c.header_ = make(http.Header)
 25460  	}
 25461  	return c.header_
 25462  }
 25463  
 25464  func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) doRequest(alt string) (*http.Response, error) {
 25465  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25466  	if c.ifNoneMatch_ != "" {
 25467  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25468  	}
 25469  	var body io.Reader = nil
 25470  	c.urlParams_.Set("alt", alt)
 25471  	c.urlParams_.Set("prettyPrint", "false")
 25472  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 25473  	urls += "?" + c.urlParams_.Encode()
 25474  	req, err := http.NewRequest("GET", urls, body)
 25475  	if err != nil {
 25476  		return nil, err
 25477  	}
 25478  	req.Header = reqHeaders
 25479  	googleapi.Expand(req.URL, map[string]string{
 25480  		"name": c.name,
 25481  	})
 25482  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25483  }
 25484  
 25485  // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.answers.get" call.
 25486  // Any non-2xx status code is an error. Response headers are in either
 25487  // *GoogleCloudDiscoveryengineV1alphaAnswer.ServerResponse.Header or (if a
 25488  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25489  // googleapi.IsNotModified to check whether the returned error was because
 25490  // http.StatusNotModified was returned.
 25491  func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAnswer, error) {
 25492  	gensupport.SetOptions(c.urlParams_, opts...)
 25493  	res, err := c.doRequest("json")
 25494  	if res != nil && res.StatusCode == http.StatusNotModified {
 25495  		if res.Body != nil {
 25496  			res.Body.Close()
 25497  		}
 25498  		return nil, gensupport.WrapError(&googleapi.Error{
 25499  			Code:   res.StatusCode,
 25500  			Header: res.Header,
 25501  		})
 25502  	}
 25503  	if err != nil {
 25504  		return nil, err
 25505  	}
 25506  	defer googleapi.CloseBody(res)
 25507  	if err := googleapi.CheckResponse(res); err != nil {
 25508  		return nil, gensupport.WrapError(err)
 25509  	}
 25510  	ret := &GoogleCloudDiscoveryengineV1alphaAnswer{
 25511  		ServerResponse: googleapi.ServerResponse{
 25512  			Header:         res.Header,
 25513  			HTTPStatusCode: res.StatusCode,
 25514  		},
 25515  	}
 25516  	target := &ret
 25517  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25518  		return nil, err
 25519  	}
 25520  	return ret, nil
 25521  }
 25522  
 25523  type ProjectsLocationsCollectionsOperationsGetCall struct {
 25524  	s            *Service
 25525  	name         string
 25526  	urlParams_   gensupport.URLParams
 25527  	ifNoneMatch_ string
 25528  	ctx_         context.Context
 25529  	header_      http.Header
 25530  }
 25531  
 25532  // Get: Gets the latest state of a long-running operation. Clients can use this
 25533  // method to poll the operation result at intervals as recommended by the API
 25534  // service.
 25535  //
 25536  // - name: The name of the operation resource.
 25537  func (r *ProjectsLocationsCollectionsOperationsService) Get(name string) *ProjectsLocationsCollectionsOperationsGetCall {
 25538  	c := &ProjectsLocationsCollectionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25539  	c.name = name
 25540  	return c
 25541  }
 25542  
 25543  // Fields allows partial responses to be retrieved. See
 25544  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25545  // details.
 25546  func (c *ProjectsLocationsCollectionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsOperationsGetCall {
 25547  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25548  	return c
 25549  }
 25550  
 25551  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25552  // object's ETag matches the given value. This is useful for getting updates
 25553  // only after the object has changed since the last request.
 25554  func (c *ProjectsLocationsCollectionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsOperationsGetCall {
 25555  	c.ifNoneMatch_ = entityTag
 25556  	return c
 25557  }
 25558  
 25559  // Context sets the context to be used in this call's Do method.
 25560  func (c *ProjectsLocationsCollectionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsOperationsGetCall {
 25561  	c.ctx_ = ctx
 25562  	return c
 25563  }
 25564  
 25565  // Header returns a http.Header that can be modified by the caller to add
 25566  // headers to the request.
 25567  func (c *ProjectsLocationsCollectionsOperationsGetCall) Header() http.Header {
 25568  	if c.header_ == nil {
 25569  		c.header_ = make(http.Header)
 25570  	}
 25571  	return c.header_
 25572  }
 25573  
 25574  func (c *ProjectsLocationsCollectionsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 25575  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25576  	if c.ifNoneMatch_ != "" {
 25577  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25578  	}
 25579  	var body io.Reader = nil
 25580  	c.urlParams_.Set("alt", alt)
 25581  	c.urlParams_.Set("prettyPrint", "false")
 25582  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 25583  	urls += "?" + c.urlParams_.Encode()
 25584  	req, err := http.NewRequest("GET", urls, body)
 25585  	if err != nil {
 25586  		return nil, err
 25587  	}
 25588  	req.Header = reqHeaders
 25589  	googleapi.Expand(req.URL, map[string]string{
 25590  		"name": c.name,
 25591  	})
 25592  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25593  }
 25594  
 25595  // Do executes the "discoveryengine.projects.locations.collections.operations.get" call.
 25596  // Any non-2xx status code is an error. Response headers are in either
 25597  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25598  // returned at all) in error.(*googleapi.Error).Header. Use
 25599  // googleapi.IsNotModified to check whether the returned error was because
 25600  // http.StatusNotModified was returned.
 25601  func (c *ProjectsLocationsCollectionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25602  	gensupport.SetOptions(c.urlParams_, opts...)
 25603  	res, err := c.doRequest("json")
 25604  	if res != nil && res.StatusCode == http.StatusNotModified {
 25605  		if res.Body != nil {
 25606  			res.Body.Close()
 25607  		}
 25608  		return nil, gensupport.WrapError(&googleapi.Error{
 25609  			Code:   res.StatusCode,
 25610  			Header: res.Header,
 25611  		})
 25612  	}
 25613  	if err != nil {
 25614  		return nil, err
 25615  	}
 25616  	defer googleapi.CloseBody(res)
 25617  	if err := googleapi.CheckResponse(res); err != nil {
 25618  		return nil, gensupport.WrapError(err)
 25619  	}
 25620  	ret := &GoogleLongrunningOperation{
 25621  		ServerResponse: googleapi.ServerResponse{
 25622  			Header:         res.Header,
 25623  			HTTPStatusCode: res.StatusCode,
 25624  		},
 25625  	}
 25626  	target := &ret
 25627  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25628  		return nil, err
 25629  	}
 25630  	return ret, nil
 25631  }
 25632  
 25633  type ProjectsLocationsCollectionsOperationsListCall struct {
 25634  	s            *Service
 25635  	name         string
 25636  	urlParams_   gensupport.URLParams
 25637  	ifNoneMatch_ string
 25638  	ctx_         context.Context
 25639  	header_      http.Header
 25640  }
 25641  
 25642  // List: Lists operations that match the specified filter in the request. If
 25643  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 25644  //
 25645  // - name: The name of the operation's parent resource.
 25646  func (r *ProjectsLocationsCollectionsOperationsService) List(name string) *ProjectsLocationsCollectionsOperationsListCall {
 25647  	c := &ProjectsLocationsCollectionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25648  	c.name = name
 25649  	return c
 25650  }
 25651  
 25652  // Filter sets the optional parameter "filter": The standard list filter.
 25653  func (c *ProjectsLocationsCollectionsOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsOperationsListCall {
 25654  	c.urlParams_.Set("filter", filter)
 25655  	return c
 25656  }
 25657  
 25658  // PageSize sets the optional parameter "pageSize": The standard list page
 25659  // size.
 25660  func (c *ProjectsLocationsCollectionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsOperationsListCall {
 25661  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25662  	return c
 25663  }
 25664  
 25665  // PageToken sets the optional parameter "pageToken": The standard list page
 25666  // token.
 25667  func (c *ProjectsLocationsCollectionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsOperationsListCall {
 25668  	c.urlParams_.Set("pageToken", pageToken)
 25669  	return c
 25670  }
 25671  
 25672  // Fields allows partial responses to be retrieved. See
 25673  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25674  // details.
 25675  func (c *ProjectsLocationsCollectionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsOperationsListCall {
 25676  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25677  	return c
 25678  }
 25679  
 25680  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25681  // object's ETag matches the given value. This is useful for getting updates
 25682  // only after the object has changed since the last request.
 25683  func (c *ProjectsLocationsCollectionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsOperationsListCall {
 25684  	c.ifNoneMatch_ = entityTag
 25685  	return c
 25686  }
 25687  
 25688  // Context sets the context to be used in this call's Do method.
 25689  func (c *ProjectsLocationsCollectionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsOperationsListCall {
 25690  	c.ctx_ = ctx
 25691  	return c
 25692  }
 25693  
 25694  // Header returns a http.Header that can be modified by the caller to add
 25695  // headers to the request.
 25696  func (c *ProjectsLocationsCollectionsOperationsListCall) Header() http.Header {
 25697  	if c.header_ == nil {
 25698  		c.header_ = make(http.Header)
 25699  	}
 25700  	return c.header_
 25701  }
 25702  
 25703  func (c *ProjectsLocationsCollectionsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 25704  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25705  	if c.ifNoneMatch_ != "" {
 25706  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25707  	}
 25708  	var body io.Reader = nil
 25709  	c.urlParams_.Set("alt", alt)
 25710  	c.urlParams_.Set("prettyPrint", "false")
 25711  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 25712  	urls += "?" + c.urlParams_.Encode()
 25713  	req, err := http.NewRequest("GET", urls, body)
 25714  	if err != nil {
 25715  		return nil, err
 25716  	}
 25717  	req.Header = reqHeaders
 25718  	googleapi.Expand(req.URL, map[string]string{
 25719  		"name": c.name,
 25720  	})
 25721  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25722  }
 25723  
 25724  // Do executes the "discoveryengine.projects.locations.collections.operations.list" call.
 25725  // Any non-2xx status code is an error. Response headers are in either
 25726  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 25727  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25728  // googleapi.IsNotModified to check whether the returned error was because
 25729  // http.StatusNotModified was returned.
 25730  func (c *ProjectsLocationsCollectionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 25731  	gensupport.SetOptions(c.urlParams_, opts...)
 25732  	res, err := c.doRequest("json")
 25733  	if res != nil && res.StatusCode == http.StatusNotModified {
 25734  		if res.Body != nil {
 25735  			res.Body.Close()
 25736  		}
 25737  		return nil, gensupport.WrapError(&googleapi.Error{
 25738  			Code:   res.StatusCode,
 25739  			Header: res.Header,
 25740  		})
 25741  	}
 25742  	if err != nil {
 25743  		return nil, err
 25744  	}
 25745  	defer googleapi.CloseBody(res)
 25746  	if err := googleapi.CheckResponse(res); err != nil {
 25747  		return nil, gensupport.WrapError(err)
 25748  	}
 25749  	ret := &GoogleLongrunningListOperationsResponse{
 25750  		ServerResponse: googleapi.ServerResponse{
 25751  			Header:         res.Header,
 25752  			HTTPStatusCode: res.StatusCode,
 25753  		},
 25754  	}
 25755  	target := &ret
 25756  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25757  		return nil, err
 25758  	}
 25759  	return ret, nil
 25760  }
 25761  
 25762  // Pages invokes f for each page of results.
 25763  // A non-nil error returned from f will halt the iteration.
 25764  // The provided context supersedes any context provided to the Context method.
 25765  func (c *ProjectsLocationsCollectionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 25766  	c.ctx_ = ctx
 25767  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25768  	for {
 25769  		x, err := c.Do()
 25770  		if err != nil {
 25771  			return err
 25772  		}
 25773  		if err := f(x); err != nil {
 25774  			return err
 25775  		}
 25776  		if x.NextPageToken == "" {
 25777  			return nil
 25778  		}
 25779  		c.PageToken(x.NextPageToken)
 25780  	}
 25781  }
 25782  
 25783  type ProjectsLocationsDataStoresCompleteQueryCall struct {
 25784  	s            *Service
 25785  	dataStore    string
 25786  	urlParams_   gensupport.URLParams
 25787  	ifNoneMatch_ string
 25788  	ctx_         context.Context
 25789  	header_      http.Header
 25790  }
 25791  
 25792  // CompleteQuery: Completes the specified user input with keyword suggestions.
 25793  //
 25794  //   - dataStore: The parent data store resource name for which the completion is
 25795  //     performed, such as
 25796  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 25797  //     ult_data_store`.
 25798  func (r *ProjectsLocationsDataStoresService) CompleteQuery(dataStore string) *ProjectsLocationsDataStoresCompleteQueryCall {
 25799  	c := &ProjectsLocationsDataStoresCompleteQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25800  	c.dataStore = dataStore
 25801  	return c
 25802  }
 25803  
 25804  // IncludeTailSuggestions sets the optional parameter "includeTailSuggestions":
 25805  // Indicates if tail suggestions should be returned if there are no suggestions
 25806  // that match the full query. Even if set to true, if there are suggestions
 25807  // that match the full query, those are returned and no tail suggestions are
 25808  // returned.
 25809  func (c *ProjectsLocationsDataStoresCompleteQueryCall) IncludeTailSuggestions(includeTailSuggestions bool) *ProjectsLocationsDataStoresCompleteQueryCall {
 25810  	c.urlParams_.Set("includeTailSuggestions", fmt.Sprint(includeTailSuggestions))
 25811  	return c
 25812  }
 25813  
 25814  // Query sets the optional parameter "query": Required. The typeahead input
 25815  // used to fetch suggestions. Maximum length is 128 characters.
 25816  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Query(query string) *ProjectsLocationsDataStoresCompleteQueryCall {
 25817  	c.urlParams_.Set("query", query)
 25818  	return c
 25819  }
 25820  
 25821  // QueryModel sets the optional parameter "queryModel": Specifies the
 25822  // autocomplete data model. This overrides any model specified in the
 25823  // Configuration > Autocomplete section of the Cloud console. Currently
 25824  // supported values: * `document` - Using suggestions generated from
 25825  // user-imported documents. * `search-history` - Using suggestions generated
 25826  // from the past history of SearchService.Search API calls. Do not use it when
 25827  // there is no traffic for Search API. * `user-event` - Using suggestions
 25828  // generated from user-imported search events. * `document-completable` - Using
 25829  // suggestions taken directly from user-imported document fields marked as
 25830  // completable. Default values: * `document` is the default model for regular
 25831  // dataStores. * `search-history` is the default model for site search
 25832  // dataStores.
 25833  func (c *ProjectsLocationsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsDataStoresCompleteQueryCall {
 25834  	c.urlParams_.Set("queryModel", queryModel)
 25835  	return c
 25836  }
 25837  
 25838  // UserPseudoId sets the optional parameter "userPseudoId": A unique identifier
 25839  // for tracking visitors. For example, this could be implemented with an HTTP
 25840  // cookie, which should be able to uniquely identify a visitor on a single
 25841  // device. This unique identifier should not change if the visitor logs in or
 25842  // out of the website. This field should NOT have a fixed value such as
 25843  // `unknown_visitor`. This should be the same identifier as
 25844  // UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be
 25845  // a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
 25846  // `INVALID_ARGUMENT` error is returned.
 25847  func (c *ProjectsLocationsDataStoresCompleteQueryCall) UserPseudoId(userPseudoId string) *ProjectsLocationsDataStoresCompleteQueryCall {
 25848  	c.urlParams_.Set("userPseudoId", userPseudoId)
 25849  	return c
 25850  }
 25851  
 25852  // Fields allows partial responses to be retrieved. See
 25853  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25854  // details.
 25855  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresCompleteQueryCall {
 25856  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25857  	return c
 25858  }
 25859  
 25860  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25861  // object's ETag matches the given value. This is useful for getting updates
 25862  // only after the object has changed since the last request.
 25863  func (c *ProjectsLocationsDataStoresCompleteQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresCompleteQueryCall {
 25864  	c.ifNoneMatch_ = entityTag
 25865  	return c
 25866  }
 25867  
 25868  // Context sets the context to be used in this call's Do method.
 25869  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Context(ctx context.Context) *ProjectsLocationsDataStoresCompleteQueryCall {
 25870  	c.ctx_ = ctx
 25871  	return c
 25872  }
 25873  
 25874  // Header returns a http.Header that can be modified by the caller to add
 25875  // headers to the request.
 25876  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Header() http.Header {
 25877  	if c.header_ == nil {
 25878  		c.header_ = make(http.Header)
 25879  	}
 25880  	return c.header_
 25881  }
 25882  
 25883  func (c *ProjectsLocationsDataStoresCompleteQueryCall) doRequest(alt string) (*http.Response, error) {
 25884  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25885  	if c.ifNoneMatch_ != "" {
 25886  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25887  	}
 25888  	var body io.Reader = nil
 25889  	c.urlParams_.Set("alt", alt)
 25890  	c.urlParams_.Set("prettyPrint", "false")
 25891  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+dataStore}:completeQuery")
 25892  	urls += "?" + c.urlParams_.Encode()
 25893  	req, err := http.NewRequest("GET", urls, body)
 25894  	if err != nil {
 25895  		return nil, err
 25896  	}
 25897  	req.Header = reqHeaders
 25898  	googleapi.Expand(req.URL, map[string]string{
 25899  		"dataStore": c.dataStore,
 25900  	})
 25901  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25902  }
 25903  
 25904  // Do executes the "discoveryengine.projects.locations.dataStores.completeQuery" call.
 25905  // Any non-2xx status code is an error. Response headers are in either
 25906  // *GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse.ServerResponse.Header
 25907  //
 25908  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 25909  //
 25910  // Use googleapi.IsNotModified to check whether the returned error was because
 25911  // http.StatusNotModified was returned.
 25912  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse, error) {
 25913  	gensupport.SetOptions(c.urlParams_, opts...)
 25914  	res, err := c.doRequest("json")
 25915  	if res != nil && res.StatusCode == http.StatusNotModified {
 25916  		if res.Body != nil {
 25917  			res.Body.Close()
 25918  		}
 25919  		return nil, gensupport.WrapError(&googleapi.Error{
 25920  			Code:   res.StatusCode,
 25921  			Header: res.Header,
 25922  		})
 25923  	}
 25924  	if err != nil {
 25925  		return nil, err
 25926  	}
 25927  	defer googleapi.CloseBody(res)
 25928  	if err := googleapi.CheckResponse(res); err != nil {
 25929  		return nil, gensupport.WrapError(err)
 25930  	}
 25931  	ret := &GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse{
 25932  		ServerResponse: googleapi.ServerResponse{
 25933  			Header:         res.Header,
 25934  			HTTPStatusCode: res.StatusCode,
 25935  		},
 25936  	}
 25937  	target := &ret
 25938  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25939  		return nil, err
 25940  	}
 25941  	return ret, nil
 25942  }
 25943  
 25944  type ProjectsLocationsDataStoresCreateCall struct {
 25945  	s                                          *Service
 25946  	parent                                     string
 25947  	googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore
 25948  	urlParams_                                 gensupport.URLParams
 25949  	ctx_                                       context.Context
 25950  	header_                                    http.Header
 25951  }
 25952  
 25953  // Create: Creates a DataStore. DataStore is for storing Documents. To serve
 25954  // these documents for Search, or Recommendation use case, an Engine needs to
 25955  // be created separately.
 25956  //
 25957  //   - parent: The parent resource name, such as
 25958  //     `projects/{project}/locations/{location}/collections/{collection}`.
 25959  func (r *ProjectsLocationsDataStoresService) Create(parent string, googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore) *ProjectsLocationsDataStoresCreateCall {
 25960  	c := &ProjectsLocationsDataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25961  	c.parent = parent
 25962  	c.googleclouddiscoveryenginev1alphadatastore = googleclouddiscoveryenginev1alphadatastore
 25963  	return c
 25964  }
 25965  
 25966  // CreateAdvancedSiteSearch sets the optional parameter
 25967  // "createAdvancedSiteSearch": A boolean flag indicating whether user want to
 25968  // directly create an advanced data store for site search. If the data store is
 25969  // not configured as site search (GENERIC vertical and PUBLIC_WEBSITE
 25970  // content_config), this flag will be ignored.
 25971  func (c *ProjectsLocationsDataStoresCreateCall) CreateAdvancedSiteSearch(createAdvancedSiteSearch bool) *ProjectsLocationsDataStoresCreateCall {
 25972  	c.urlParams_.Set("createAdvancedSiteSearch", fmt.Sprint(createAdvancedSiteSearch))
 25973  	return c
 25974  }
 25975  
 25976  // DataStoreId sets the optional parameter "dataStoreId": Required. The ID to
 25977  // use for the DataStore, which will become the final component of the
 25978  // DataStore's resource name. This field must conform to RFC-1034
 25979  // (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
 25980  // characters. Otherwise, an INVALID_ARGUMENT error is returned.
 25981  func (c *ProjectsLocationsDataStoresCreateCall) DataStoreId(dataStoreId string) *ProjectsLocationsDataStoresCreateCall {
 25982  	c.urlParams_.Set("dataStoreId", dataStoreId)
 25983  	return c
 25984  }
 25985  
 25986  // Fields allows partial responses to be retrieved. See
 25987  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25988  // details.
 25989  func (c *ProjectsLocationsDataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresCreateCall {
 25990  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25991  	return c
 25992  }
 25993  
 25994  // Context sets the context to be used in this call's Do method.
 25995  func (c *ProjectsLocationsDataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresCreateCall {
 25996  	c.ctx_ = ctx
 25997  	return c
 25998  }
 25999  
 26000  // Header returns a http.Header that can be modified by the caller to add
 26001  // headers to the request.
 26002  func (c *ProjectsLocationsDataStoresCreateCall) Header() http.Header {
 26003  	if c.header_ == nil {
 26004  		c.header_ = make(http.Header)
 26005  	}
 26006  	return c.header_
 26007  }
 26008  
 26009  func (c *ProjectsLocationsDataStoresCreateCall) doRequest(alt string) (*http.Response, error) {
 26010  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26011  	var body io.Reader = nil
 26012  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadatastore)
 26013  	if err != nil {
 26014  		return nil, err
 26015  	}
 26016  	c.urlParams_.Set("alt", alt)
 26017  	c.urlParams_.Set("prettyPrint", "false")
 26018  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/dataStores")
 26019  	urls += "?" + c.urlParams_.Encode()
 26020  	req, err := http.NewRequest("POST", urls, body)
 26021  	if err != nil {
 26022  		return nil, err
 26023  	}
 26024  	req.Header = reqHeaders
 26025  	googleapi.Expand(req.URL, map[string]string{
 26026  		"parent": c.parent,
 26027  	})
 26028  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26029  }
 26030  
 26031  // Do executes the "discoveryengine.projects.locations.dataStores.create" call.
 26032  // Any non-2xx status code is an error. Response headers are in either
 26033  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 26034  // returned at all) in error.(*googleapi.Error).Header. Use
 26035  // googleapi.IsNotModified to check whether the returned error was because
 26036  // http.StatusNotModified was returned.
 26037  func (c *ProjectsLocationsDataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 26038  	gensupport.SetOptions(c.urlParams_, opts...)
 26039  	res, err := c.doRequest("json")
 26040  	if res != nil && res.StatusCode == http.StatusNotModified {
 26041  		if res.Body != nil {
 26042  			res.Body.Close()
 26043  		}
 26044  		return nil, gensupport.WrapError(&googleapi.Error{
 26045  			Code:   res.StatusCode,
 26046  			Header: res.Header,
 26047  		})
 26048  	}
 26049  	if err != nil {
 26050  		return nil, err
 26051  	}
 26052  	defer googleapi.CloseBody(res)
 26053  	if err := googleapi.CheckResponse(res); err != nil {
 26054  		return nil, gensupport.WrapError(err)
 26055  	}
 26056  	ret := &GoogleLongrunningOperation{
 26057  		ServerResponse: googleapi.ServerResponse{
 26058  			Header:         res.Header,
 26059  			HTTPStatusCode: res.StatusCode,
 26060  		},
 26061  	}
 26062  	target := &ret
 26063  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26064  		return nil, err
 26065  	}
 26066  	return ret, nil
 26067  }
 26068  
 26069  type ProjectsLocationsDataStoresDeleteCall struct {
 26070  	s          *Service
 26071  	name       string
 26072  	urlParams_ gensupport.URLParams
 26073  	ctx_       context.Context
 26074  	header_    http.Header
 26075  }
 26076  
 26077  // Delete: Deletes a DataStore.
 26078  //
 26079  //   - name: Full resource name of DataStore, such as
 26080  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 26081  //     ores/{data_store_id}`. If the caller does not have permission to delete
 26082  //     the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED
 26083  //     error is returned. If the DataStore to delete does not exist, a NOT_FOUND
 26084  //     error is returned.
 26085  func (r *ProjectsLocationsDataStoresService) Delete(name string) *ProjectsLocationsDataStoresDeleteCall {
 26086  	c := &ProjectsLocationsDataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26087  	c.name = name
 26088  	return c
 26089  }
 26090  
 26091  // Fields allows partial responses to be retrieved. See
 26092  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26093  // details.
 26094  func (c *ProjectsLocationsDataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresDeleteCall {
 26095  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26096  	return c
 26097  }
 26098  
 26099  // Context sets the context to be used in this call's Do method.
 26100  func (c *ProjectsLocationsDataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresDeleteCall {
 26101  	c.ctx_ = ctx
 26102  	return c
 26103  }
 26104  
 26105  // Header returns a http.Header that can be modified by the caller to add
 26106  // headers to the request.
 26107  func (c *ProjectsLocationsDataStoresDeleteCall) Header() http.Header {
 26108  	if c.header_ == nil {
 26109  		c.header_ = make(http.Header)
 26110  	}
 26111  	return c.header_
 26112  }
 26113  
 26114  func (c *ProjectsLocationsDataStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 26115  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26116  	var body io.Reader = nil
 26117  	c.urlParams_.Set("alt", alt)
 26118  	c.urlParams_.Set("prettyPrint", "false")
 26119  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 26120  	urls += "?" + c.urlParams_.Encode()
 26121  	req, err := http.NewRequest("DELETE", urls, body)
 26122  	if err != nil {
 26123  		return nil, err
 26124  	}
 26125  	req.Header = reqHeaders
 26126  	googleapi.Expand(req.URL, map[string]string{
 26127  		"name": c.name,
 26128  	})
 26129  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26130  }
 26131  
 26132  // Do executes the "discoveryengine.projects.locations.dataStores.delete" call.
 26133  // Any non-2xx status code is an error. Response headers are in either
 26134  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 26135  // returned at all) in error.(*googleapi.Error).Header. Use
 26136  // googleapi.IsNotModified to check whether the returned error was because
 26137  // http.StatusNotModified was returned.
 26138  func (c *ProjectsLocationsDataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 26139  	gensupport.SetOptions(c.urlParams_, opts...)
 26140  	res, err := c.doRequest("json")
 26141  	if res != nil && res.StatusCode == http.StatusNotModified {
 26142  		if res.Body != nil {
 26143  			res.Body.Close()
 26144  		}
 26145  		return nil, gensupport.WrapError(&googleapi.Error{
 26146  			Code:   res.StatusCode,
 26147  			Header: res.Header,
 26148  		})
 26149  	}
 26150  	if err != nil {
 26151  		return nil, err
 26152  	}
 26153  	defer googleapi.CloseBody(res)
 26154  	if err := googleapi.CheckResponse(res); err != nil {
 26155  		return nil, gensupport.WrapError(err)
 26156  	}
 26157  	ret := &GoogleLongrunningOperation{
 26158  		ServerResponse: googleapi.ServerResponse{
 26159  			Header:         res.Header,
 26160  			HTTPStatusCode: res.StatusCode,
 26161  		},
 26162  	}
 26163  	target := &ret
 26164  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26165  		return nil, err
 26166  	}
 26167  	return ret, nil
 26168  }
 26169  
 26170  type ProjectsLocationsDataStoresGetCall struct {
 26171  	s            *Service
 26172  	name         string
 26173  	urlParams_   gensupport.URLParams
 26174  	ifNoneMatch_ string
 26175  	ctx_         context.Context
 26176  	header_      http.Header
 26177  }
 26178  
 26179  // Get: Gets a DataStore.
 26180  //
 26181  //   - name: Full resource name of DataStore, such as
 26182  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 26183  //     ores/{data_store_id}`. If the caller does not have permission to access
 26184  //     the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED
 26185  //     error is returned. If the requested DataStore does not exist, a NOT_FOUND
 26186  //     error is returned.
 26187  func (r *ProjectsLocationsDataStoresService) Get(name string) *ProjectsLocationsDataStoresGetCall {
 26188  	c := &ProjectsLocationsDataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26189  	c.name = name
 26190  	return c
 26191  }
 26192  
 26193  // Fields allows partial responses to be retrieved. See
 26194  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26195  // details.
 26196  func (c *ProjectsLocationsDataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetCall {
 26197  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26198  	return c
 26199  }
 26200  
 26201  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26202  // object's ETag matches the given value. This is useful for getting updates
 26203  // only after the object has changed since the last request.
 26204  func (c *ProjectsLocationsDataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetCall {
 26205  	c.ifNoneMatch_ = entityTag
 26206  	return c
 26207  }
 26208  
 26209  // Context sets the context to be used in this call's Do method.
 26210  func (c *ProjectsLocationsDataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetCall {
 26211  	c.ctx_ = ctx
 26212  	return c
 26213  }
 26214  
 26215  // Header returns a http.Header that can be modified by the caller to add
 26216  // headers to the request.
 26217  func (c *ProjectsLocationsDataStoresGetCall) Header() http.Header {
 26218  	if c.header_ == nil {
 26219  		c.header_ = make(http.Header)
 26220  	}
 26221  	return c.header_
 26222  }
 26223  
 26224  func (c *ProjectsLocationsDataStoresGetCall) doRequest(alt string) (*http.Response, error) {
 26225  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26226  	if c.ifNoneMatch_ != "" {
 26227  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26228  	}
 26229  	var body io.Reader = nil
 26230  	c.urlParams_.Set("alt", alt)
 26231  	c.urlParams_.Set("prettyPrint", "false")
 26232  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 26233  	urls += "?" + c.urlParams_.Encode()
 26234  	req, err := http.NewRequest("GET", urls, body)
 26235  	if err != nil {
 26236  		return nil, err
 26237  	}
 26238  	req.Header = reqHeaders
 26239  	googleapi.Expand(req.URL, map[string]string{
 26240  		"name": c.name,
 26241  	})
 26242  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26243  }
 26244  
 26245  // Do executes the "discoveryengine.projects.locations.dataStores.get" call.
 26246  // Any non-2xx status code is an error. Response headers are in either
 26247  // *GoogleCloudDiscoveryengineV1alphaDataStore.ServerResponse.Header or (if a
 26248  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26249  // googleapi.IsNotModified to check whether the returned error was because
 26250  // http.StatusNotModified was returned.
 26251  func (c *ProjectsLocationsDataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDataStore, error) {
 26252  	gensupport.SetOptions(c.urlParams_, opts...)
 26253  	res, err := c.doRequest("json")
 26254  	if res != nil && res.StatusCode == http.StatusNotModified {
 26255  		if res.Body != nil {
 26256  			res.Body.Close()
 26257  		}
 26258  		return nil, gensupport.WrapError(&googleapi.Error{
 26259  			Code:   res.StatusCode,
 26260  			Header: res.Header,
 26261  		})
 26262  	}
 26263  	if err != nil {
 26264  		return nil, err
 26265  	}
 26266  	defer googleapi.CloseBody(res)
 26267  	if err := googleapi.CheckResponse(res); err != nil {
 26268  		return nil, gensupport.WrapError(err)
 26269  	}
 26270  	ret := &GoogleCloudDiscoveryengineV1alphaDataStore{
 26271  		ServerResponse: googleapi.ServerResponse{
 26272  			Header:         res.Header,
 26273  			HTTPStatusCode: res.StatusCode,
 26274  		},
 26275  	}
 26276  	target := &ret
 26277  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26278  		return nil, err
 26279  	}
 26280  	return ret, nil
 26281  }
 26282  
 26283  type ProjectsLocationsDataStoresGetDocumentProcessingConfigCall struct {
 26284  	s            *Service
 26285  	name         string
 26286  	urlParams_   gensupport.URLParams
 26287  	ifNoneMatch_ string
 26288  	ctx_         context.Context
 26289  	header_      http.Header
 26290  }
 26291  
 26292  // GetDocumentProcessingConfig: Gets a DocumentProcessingConfig.
 26293  //
 26294  //   - name: Full DocumentProcessingConfig resource name. Format:
 26295  //     `projects/{project_number}/locations/{location_id}/collections/{collection_
 26296  //     id}/dataStores/{data_store_id}/documentProcessingConfig`.
 26297  func (r *ProjectsLocationsDataStoresService) GetDocumentProcessingConfig(name string) *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall {
 26298  	c := &ProjectsLocationsDataStoresGetDocumentProcessingConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26299  	c.name = name
 26300  	return c
 26301  }
 26302  
 26303  // Fields allows partial responses to be retrieved. See
 26304  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26305  // details.
 26306  func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall {
 26307  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26308  	return c
 26309  }
 26310  
 26311  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26312  // object's ETag matches the given value. This is useful for getting updates
 26313  // only after the object has changed since the last request.
 26314  func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall {
 26315  	c.ifNoneMatch_ = entityTag
 26316  	return c
 26317  }
 26318  
 26319  // Context sets the context to be used in this call's Do method.
 26320  func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall {
 26321  	c.ctx_ = ctx
 26322  	return c
 26323  }
 26324  
 26325  // Header returns a http.Header that can be modified by the caller to add
 26326  // headers to the request.
 26327  func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) Header() http.Header {
 26328  	if c.header_ == nil {
 26329  		c.header_ = make(http.Header)
 26330  	}
 26331  	return c.header_
 26332  }
 26333  
 26334  func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) doRequest(alt string) (*http.Response, error) {
 26335  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26336  	if c.ifNoneMatch_ != "" {
 26337  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26338  	}
 26339  	var body io.Reader = nil
 26340  	c.urlParams_.Set("alt", alt)
 26341  	c.urlParams_.Set("prettyPrint", "false")
 26342  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 26343  	urls += "?" + c.urlParams_.Encode()
 26344  	req, err := http.NewRequest("GET", urls, body)
 26345  	if err != nil {
 26346  		return nil, err
 26347  	}
 26348  	req.Header = reqHeaders
 26349  	googleapi.Expand(req.URL, map[string]string{
 26350  		"name": c.name,
 26351  	})
 26352  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26353  }
 26354  
 26355  // Do executes the "discoveryengine.projects.locations.dataStores.getDocumentProcessingConfig" call.
 26356  // Any non-2xx status code is an error. Response headers are in either
 26357  // *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig.ServerResponse.Hea
 26358  // der or (if a response was returned at all) in
 26359  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 26360  // whether the returned error was because http.StatusNotModified was returned.
 26361  func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig, error) {
 26362  	gensupport.SetOptions(c.urlParams_, opts...)
 26363  	res, err := c.doRequest("json")
 26364  	if res != nil && res.StatusCode == http.StatusNotModified {
 26365  		if res.Body != nil {
 26366  			res.Body.Close()
 26367  		}
 26368  		return nil, gensupport.WrapError(&googleapi.Error{
 26369  			Code:   res.StatusCode,
 26370  			Header: res.Header,
 26371  		})
 26372  	}
 26373  	if err != nil {
 26374  		return nil, err
 26375  	}
 26376  	defer googleapi.CloseBody(res)
 26377  	if err := googleapi.CheckResponse(res); err != nil {
 26378  		return nil, gensupport.WrapError(err)
 26379  	}
 26380  	ret := &GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig{
 26381  		ServerResponse: googleapi.ServerResponse{
 26382  			Header:         res.Header,
 26383  			HTTPStatusCode: res.StatusCode,
 26384  		},
 26385  	}
 26386  	target := &ret
 26387  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26388  		return nil, err
 26389  	}
 26390  	return ret, nil
 26391  }
 26392  
 26393  type ProjectsLocationsDataStoresGetSiteSearchEngineCall struct {
 26394  	s            *Service
 26395  	name         string
 26396  	urlParams_   gensupport.URLParams
 26397  	ifNoneMatch_ string
 26398  	ctx_         context.Context
 26399  	header_      http.Header
 26400  }
 26401  
 26402  // GetSiteSearchEngine: Gets the SiteSearchEngine.
 26403  //
 26404  //   - name: Resource name of SiteSearchEngine, such as
 26405  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 26406  //     s/{data_store}/siteSearchEngine`. If the caller does not have permission
 26407  //     to access the [SiteSearchEngine], regardless of whether or not it exists,
 26408  //     a PERMISSION_DENIED error is returned.
 26409  func (r *ProjectsLocationsDataStoresService) GetSiteSearchEngine(name string) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
 26410  	c := &ProjectsLocationsDataStoresGetSiteSearchEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26411  	c.name = name
 26412  	return c
 26413  }
 26414  
 26415  // Fields allows partial responses to be retrieved. See
 26416  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26417  // details.
 26418  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
 26419  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26420  	return c
 26421  }
 26422  
 26423  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26424  // object's ETag matches the given value. This is useful for getting updates
 26425  // only after the object has changed since the last request.
 26426  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
 26427  	c.ifNoneMatch_ = entityTag
 26428  	return c
 26429  }
 26430  
 26431  // Context sets the context to be used in this call's Do method.
 26432  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
 26433  	c.ctx_ = ctx
 26434  	return c
 26435  }
 26436  
 26437  // Header returns a http.Header that can be modified by the caller to add
 26438  // headers to the request.
 26439  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Header() http.Header {
 26440  	if c.header_ == nil {
 26441  		c.header_ = make(http.Header)
 26442  	}
 26443  	return c.header_
 26444  }
 26445  
 26446  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) doRequest(alt string) (*http.Response, error) {
 26447  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26448  	if c.ifNoneMatch_ != "" {
 26449  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26450  	}
 26451  	var body io.Reader = nil
 26452  	c.urlParams_.Set("alt", alt)
 26453  	c.urlParams_.Set("prettyPrint", "false")
 26454  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 26455  	urls += "?" + c.urlParams_.Encode()
 26456  	req, err := http.NewRequest("GET", urls, body)
 26457  	if err != nil {
 26458  		return nil, err
 26459  	}
 26460  	req.Header = reqHeaders
 26461  	googleapi.Expand(req.URL, map[string]string{
 26462  		"name": c.name,
 26463  	})
 26464  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26465  }
 26466  
 26467  // Do executes the "discoveryengine.projects.locations.dataStores.getSiteSearchEngine" call.
 26468  // Any non-2xx status code is an error. Response headers are in either
 26469  // *GoogleCloudDiscoveryengineV1alphaSiteSearchEngine.ServerResponse.Header or
 26470  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 26471  // googleapi.IsNotModified to check whether the returned error was because
 26472  // http.StatusNotModified was returned.
 26473  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSiteSearchEngine, error) {
 26474  	gensupport.SetOptions(c.urlParams_, opts...)
 26475  	res, err := c.doRequest("json")
 26476  	if res != nil && res.StatusCode == http.StatusNotModified {
 26477  		if res.Body != nil {
 26478  			res.Body.Close()
 26479  		}
 26480  		return nil, gensupport.WrapError(&googleapi.Error{
 26481  			Code:   res.StatusCode,
 26482  			Header: res.Header,
 26483  		})
 26484  	}
 26485  	if err != nil {
 26486  		return nil, err
 26487  	}
 26488  	defer googleapi.CloseBody(res)
 26489  	if err := googleapi.CheckResponse(res); err != nil {
 26490  		return nil, gensupport.WrapError(err)
 26491  	}
 26492  	ret := &GoogleCloudDiscoveryengineV1alphaSiteSearchEngine{
 26493  		ServerResponse: googleapi.ServerResponse{
 26494  			Header:         res.Header,
 26495  			HTTPStatusCode: res.StatusCode,
 26496  		},
 26497  	}
 26498  	target := &ret
 26499  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26500  		return nil, err
 26501  	}
 26502  	return ret, nil
 26503  }
 26504  
 26505  type ProjectsLocationsDataStoresListCall struct {
 26506  	s            *Service
 26507  	parent       string
 26508  	urlParams_   gensupport.URLParams
 26509  	ifNoneMatch_ string
 26510  	ctx_         context.Context
 26511  	header_      http.Header
 26512  }
 26513  
 26514  // List: Lists all the DataStores associated with the project.
 26515  //
 26516  //   - parent: The parent branch resource name, such as
 26517  //     `projects/{project}/locations/{location}/collections/{collection_id}`. If
 26518  //     the caller does not have permission to list DataStores under this
 26519  //     location, regardless of whether or not this data store exists, a
 26520  //     PERMISSION_DENIED error is returned.
 26521  func (r *ProjectsLocationsDataStoresService) List(parent string) *ProjectsLocationsDataStoresListCall {
 26522  	c := &ProjectsLocationsDataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26523  	c.parent = parent
 26524  	return c
 26525  }
 26526  
 26527  // Filter sets the optional parameter "filter": Filter by solution type . For
 26528  // example: filter = 'solution_type:SOLUTION_TYPE_SEARCH'
 26529  func (c *ProjectsLocationsDataStoresListCall) Filter(filter string) *ProjectsLocationsDataStoresListCall {
 26530  	c.urlParams_.Set("filter", filter)
 26531  	return c
 26532  }
 26533  
 26534  // PageSize sets the optional parameter "pageSize": Maximum number of
 26535  // DataStores to return. If unspecified, defaults to 10. The maximum allowed
 26536  // value is 50. Values above 50 will be coerced to 50. If this field is
 26537  // negative, an INVALID_ARGUMENT is returned.
 26538  func (c *ProjectsLocationsDataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresListCall {
 26539  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 26540  	return c
 26541  }
 26542  
 26543  // PageToken sets the optional parameter "pageToken": A page token
 26544  // ListDataStoresResponse.next_page_token, received from a previous
 26545  // DataStoreService.ListDataStores call. Provide this to retrieve the
 26546  // subsequent page. When paginating, all other parameters provided to
 26547  // DataStoreService.ListDataStores must match the call that provided the page
 26548  // token. Otherwise, an INVALID_ARGUMENT error is returned.
 26549  func (c *ProjectsLocationsDataStoresListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresListCall {
 26550  	c.urlParams_.Set("pageToken", pageToken)
 26551  	return c
 26552  }
 26553  
 26554  // Fields allows partial responses to be retrieved. See
 26555  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26556  // details.
 26557  func (c *ProjectsLocationsDataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresListCall {
 26558  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26559  	return c
 26560  }
 26561  
 26562  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26563  // object's ETag matches the given value. This is useful for getting updates
 26564  // only after the object has changed since the last request.
 26565  func (c *ProjectsLocationsDataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresListCall {
 26566  	c.ifNoneMatch_ = entityTag
 26567  	return c
 26568  }
 26569  
 26570  // Context sets the context to be used in this call's Do method.
 26571  func (c *ProjectsLocationsDataStoresListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresListCall {
 26572  	c.ctx_ = ctx
 26573  	return c
 26574  }
 26575  
 26576  // Header returns a http.Header that can be modified by the caller to add
 26577  // headers to the request.
 26578  func (c *ProjectsLocationsDataStoresListCall) Header() http.Header {
 26579  	if c.header_ == nil {
 26580  		c.header_ = make(http.Header)
 26581  	}
 26582  	return c.header_
 26583  }
 26584  
 26585  func (c *ProjectsLocationsDataStoresListCall) doRequest(alt string) (*http.Response, error) {
 26586  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26587  	if c.ifNoneMatch_ != "" {
 26588  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26589  	}
 26590  	var body io.Reader = nil
 26591  	c.urlParams_.Set("alt", alt)
 26592  	c.urlParams_.Set("prettyPrint", "false")
 26593  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/dataStores")
 26594  	urls += "?" + c.urlParams_.Encode()
 26595  	req, err := http.NewRequest("GET", urls, body)
 26596  	if err != nil {
 26597  		return nil, err
 26598  	}
 26599  	req.Header = reqHeaders
 26600  	googleapi.Expand(req.URL, map[string]string{
 26601  		"parent": c.parent,
 26602  	})
 26603  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26604  }
 26605  
 26606  // Do executes the "discoveryengine.projects.locations.dataStores.list" call.
 26607  // Any non-2xx status code is an error. Response headers are in either
 26608  // *GoogleCloudDiscoveryengineV1alphaListDataStoresResponse.ServerResponse.Heade
 26609  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 26610  // Use googleapi.IsNotModified to check whether the returned error was because
 26611  // http.StatusNotModified was returned.
 26612  func (c *ProjectsLocationsDataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListDataStoresResponse, error) {
 26613  	gensupport.SetOptions(c.urlParams_, opts...)
 26614  	res, err := c.doRequest("json")
 26615  	if res != nil && res.StatusCode == http.StatusNotModified {
 26616  		if res.Body != nil {
 26617  			res.Body.Close()
 26618  		}
 26619  		return nil, gensupport.WrapError(&googleapi.Error{
 26620  			Code:   res.StatusCode,
 26621  			Header: res.Header,
 26622  		})
 26623  	}
 26624  	if err != nil {
 26625  		return nil, err
 26626  	}
 26627  	defer googleapi.CloseBody(res)
 26628  	if err := googleapi.CheckResponse(res); err != nil {
 26629  		return nil, gensupport.WrapError(err)
 26630  	}
 26631  	ret := &GoogleCloudDiscoveryengineV1alphaListDataStoresResponse{
 26632  		ServerResponse: googleapi.ServerResponse{
 26633  			Header:         res.Header,
 26634  			HTTPStatusCode: res.StatusCode,
 26635  		},
 26636  	}
 26637  	target := &ret
 26638  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26639  		return nil, err
 26640  	}
 26641  	return ret, nil
 26642  }
 26643  
 26644  // Pages invokes f for each page of results.
 26645  // A non-nil error returned from f will halt the iteration.
 26646  // The provided context supersedes any context provided to the Context method.
 26647  func (c *ProjectsLocationsDataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListDataStoresResponse) error) error {
 26648  	c.ctx_ = ctx
 26649  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 26650  	for {
 26651  		x, err := c.Do()
 26652  		if err != nil {
 26653  			return err
 26654  		}
 26655  		if err := f(x); err != nil {
 26656  			return err
 26657  		}
 26658  		if x.NextPageToken == "" {
 26659  			return nil
 26660  		}
 26661  		c.PageToken(x.NextPageToken)
 26662  	}
 26663  }
 26664  
 26665  type ProjectsLocationsDataStoresPatchCall struct {
 26666  	s                                          *Service
 26667  	name                                       string
 26668  	googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore
 26669  	urlParams_                                 gensupport.URLParams
 26670  	ctx_                                       context.Context
 26671  	header_                                    http.Header
 26672  }
 26673  
 26674  // Patch: Updates a DataStore
 26675  //
 26676  //   - name: Immutable. The full resource name of the data store. Format:
 26677  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 26678  //     ores/{data_store_id}`. This field must be a UTF-8 encoded string with a
 26679  //     length limit of 1024 characters.
 26680  func (r *ProjectsLocationsDataStoresService) Patch(name string, googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore) *ProjectsLocationsDataStoresPatchCall {
 26681  	c := &ProjectsLocationsDataStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26682  	c.name = name
 26683  	c.googleclouddiscoveryenginev1alphadatastore = googleclouddiscoveryenginev1alphadatastore
 26684  	return c
 26685  }
 26686  
 26687  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 26688  // in the provided DataStore to update. If an unsupported or unknown field is
 26689  // provided, an INVALID_ARGUMENT error is returned.
 26690  func (c *ProjectsLocationsDataStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresPatchCall {
 26691  	c.urlParams_.Set("updateMask", updateMask)
 26692  	return c
 26693  }
 26694  
 26695  // Fields allows partial responses to be retrieved. See
 26696  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26697  // details.
 26698  func (c *ProjectsLocationsDataStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresPatchCall {
 26699  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26700  	return c
 26701  }
 26702  
 26703  // Context sets the context to be used in this call's Do method.
 26704  func (c *ProjectsLocationsDataStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresPatchCall {
 26705  	c.ctx_ = ctx
 26706  	return c
 26707  }
 26708  
 26709  // Header returns a http.Header that can be modified by the caller to add
 26710  // headers to the request.
 26711  func (c *ProjectsLocationsDataStoresPatchCall) Header() http.Header {
 26712  	if c.header_ == nil {
 26713  		c.header_ = make(http.Header)
 26714  	}
 26715  	return c.header_
 26716  }
 26717  
 26718  func (c *ProjectsLocationsDataStoresPatchCall) doRequest(alt string) (*http.Response, error) {
 26719  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26720  	var body io.Reader = nil
 26721  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadatastore)
 26722  	if err != nil {
 26723  		return nil, err
 26724  	}
 26725  	c.urlParams_.Set("alt", alt)
 26726  	c.urlParams_.Set("prettyPrint", "false")
 26727  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 26728  	urls += "?" + c.urlParams_.Encode()
 26729  	req, err := http.NewRequest("PATCH", urls, body)
 26730  	if err != nil {
 26731  		return nil, err
 26732  	}
 26733  	req.Header = reqHeaders
 26734  	googleapi.Expand(req.URL, map[string]string{
 26735  		"name": c.name,
 26736  	})
 26737  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26738  }
 26739  
 26740  // Do executes the "discoveryengine.projects.locations.dataStores.patch" call.
 26741  // Any non-2xx status code is an error. Response headers are in either
 26742  // *GoogleCloudDiscoveryengineV1alphaDataStore.ServerResponse.Header or (if a
 26743  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26744  // googleapi.IsNotModified to check whether the returned error was because
 26745  // http.StatusNotModified was returned.
 26746  func (c *ProjectsLocationsDataStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDataStore, error) {
 26747  	gensupport.SetOptions(c.urlParams_, opts...)
 26748  	res, err := c.doRequest("json")
 26749  	if res != nil && res.StatusCode == http.StatusNotModified {
 26750  		if res.Body != nil {
 26751  			res.Body.Close()
 26752  		}
 26753  		return nil, gensupport.WrapError(&googleapi.Error{
 26754  			Code:   res.StatusCode,
 26755  			Header: res.Header,
 26756  		})
 26757  	}
 26758  	if err != nil {
 26759  		return nil, err
 26760  	}
 26761  	defer googleapi.CloseBody(res)
 26762  	if err := googleapi.CheckResponse(res); err != nil {
 26763  		return nil, gensupport.WrapError(err)
 26764  	}
 26765  	ret := &GoogleCloudDiscoveryengineV1alphaDataStore{
 26766  		ServerResponse: googleapi.ServerResponse{
 26767  			Header:         res.Header,
 26768  			HTTPStatusCode: res.StatusCode,
 26769  		},
 26770  	}
 26771  	target := &ret
 26772  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26773  		return nil, err
 26774  	}
 26775  	return ret, nil
 26776  }
 26777  
 26778  type ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall struct {
 26779  	s                                                         *Service
 26780  	name                                                      string
 26781  	googleclouddiscoveryenginev1alphadocumentprocessingconfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
 26782  	urlParams_                                                gensupport.URLParams
 26783  	ctx_                                                      context.Context
 26784  	header_                                                   http.Header
 26785  }
 26786  
 26787  // UpdateDocumentProcessingConfig: Updates the DocumentProcessingConfig.
 26788  // DocumentProcessingConfig is a singleon resource of DataStore. It's empty
 26789  // when DataStore is created. The first call to this method will set up
 26790  // DocumentProcessingConfig.
 26791  //
 26792  //   - name: The full resource name of the Document Processing Config. Format:
 26793  //     `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig
 26794  //     `.
 26795  func (r *ProjectsLocationsDataStoresService) UpdateDocumentProcessingConfig(name string, googleclouddiscoveryenginev1alphadocumentprocessingconfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig) *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall {
 26796  	c := &ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26797  	c.name = name
 26798  	c.googleclouddiscoveryenginev1alphadocumentprocessingconfig = googleclouddiscoveryenginev1alphadocumentprocessingconfig
 26799  	return c
 26800  }
 26801  
 26802  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 26803  // in the provided DocumentProcessingConfig to update. The following are the
 26804  // only supported fields: * DocumentProcessingConfig.ocr_config If not set, all
 26805  // supported fields are updated.
 26806  func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall {
 26807  	c.urlParams_.Set("updateMask", updateMask)
 26808  	return c
 26809  }
 26810  
 26811  // Fields allows partial responses to be retrieved. See
 26812  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26813  // details.
 26814  func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall {
 26815  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26816  	return c
 26817  }
 26818  
 26819  // Context sets the context to be used in this call's Do method.
 26820  func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall {
 26821  	c.ctx_ = ctx
 26822  	return c
 26823  }
 26824  
 26825  // Header returns a http.Header that can be modified by the caller to add
 26826  // headers to the request.
 26827  func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) Header() http.Header {
 26828  	if c.header_ == nil {
 26829  		c.header_ = make(http.Header)
 26830  	}
 26831  	return c.header_
 26832  }
 26833  
 26834  func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) doRequest(alt string) (*http.Response, error) {
 26835  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26836  	var body io.Reader = nil
 26837  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadocumentprocessingconfig)
 26838  	if err != nil {
 26839  		return nil, err
 26840  	}
 26841  	c.urlParams_.Set("alt", alt)
 26842  	c.urlParams_.Set("prettyPrint", "false")
 26843  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 26844  	urls += "?" + c.urlParams_.Encode()
 26845  	req, err := http.NewRequest("PATCH", urls, body)
 26846  	if err != nil {
 26847  		return nil, err
 26848  	}
 26849  	req.Header = reqHeaders
 26850  	googleapi.Expand(req.URL, map[string]string{
 26851  		"name": c.name,
 26852  	})
 26853  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26854  }
 26855  
 26856  // Do executes the "discoveryengine.projects.locations.dataStores.updateDocumentProcessingConfig" call.
 26857  // Any non-2xx status code is an error. Response headers are in either
 26858  // *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig.ServerResponse.Hea
 26859  // der or (if a response was returned at all) in
 26860  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 26861  // whether the returned error was because http.StatusNotModified was returned.
 26862  func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig, error) {
 26863  	gensupport.SetOptions(c.urlParams_, opts...)
 26864  	res, err := c.doRequest("json")
 26865  	if res != nil && res.StatusCode == http.StatusNotModified {
 26866  		if res.Body != nil {
 26867  			res.Body.Close()
 26868  		}
 26869  		return nil, gensupport.WrapError(&googleapi.Error{
 26870  			Code:   res.StatusCode,
 26871  			Header: res.Header,
 26872  		})
 26873  	}
 26874  	if err != nil {
 26875  		return nil, err
 26876  	}
 26877  	defer googleapi.CloseBody(res)
 26878  	if err := googleapi.CheckResponse(res); err != nil {
 26879  		return nil, gensupport.WrapError(err)
 26880  	}
 26881  	ret := &GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig{
 26882  		ServerResponse: googleapi.ServerResponse{
 26883  			Header:         res.Header,
 26884  			HTTPStatusCode: res.StatusCode,
 26885  		},
 26886  	}
 26887  	target := &ret
 26888  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26889  		return nil, err
 26890  	}
 26891  	return ret, nil
 26892  }
 26893  
 26894  type ProjectsLocationsDataStoresBranchesDocumentsCreateCall struct {
 26895  	s                                         *Service
 26896  	parent                                    string
 26897  	googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument
 26898  	urlParams_                                gensupport.URLParams
 26899  	ctx_                                      context.Context
 26900  	header_                                   http.Header
 26901  }
 26902  
 26903  // Create: Creates a Document.
 26904  //
 26905  //   - parent: The parent resource name, such as
 26906  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 26907  //     s/{data_store}/branches/{branch}`.
 26908  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Create(parent string, googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
 26909  	c := &ProjectsLocationsDataStoresBranchesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26910  	c.parent = parent
 26911  	c.googleclouddiscoveryenginev1alphadocument = googleclouddiscoveryenginev1alphadocument
 26912  	return c
 26913  }
 26914  
 26915  // DocumentId sets the optional parameter "documentId": Required. The ID to use
 26916  // for the Document, which will become the final component of the
 26917  // Document.name. If the caller does not have permission to create the
 26918  // Document, regardless of whether or not it exists, a `PERMISSION_DENIED`
 26919  // error is returned. This field must be unique among all Documents with the
 26920  // same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field
 26921  // must conform to RFC-1034 (https://tools.ietf.org/html/rfc1034) standard with
 26922  // a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is
 26923  // returned.
 26924  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) DocumentId(documentId string) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
 26925  	c.urlParams_.Set("documentId", documentId)
 26926  	return c
 26927  }
 26928  
 26929  // Fields allows partial responses to be retrieved. See
 26930  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26931  // details.
 26932  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
 26933  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26934  	return c
 26935  }
 26936  
 26937  // Context sets the context to be used in this call's Do method.
 26938  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
 26939  	c.ctx_ = ctx
 26940  	return c
 26941  }
 26942  
 26943  // Header returns a http.Header that can be modified by the caller to add
 26944  // headers to the request.
 26945  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Header() http.Header {
 26946  	if c.header_ == nil {
 26947  		c.header_ = make(http.Header)
 26948  	}
 26949  	return c.header_
 26950  }
 26951  
 26952  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
 26953  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26954  	var body io.Reader = nil
 26955  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadocument)
 26956  	if err != nil {
 26957  		return nil, err
 26958  	}
 26959  	c.urlParams_.Set("alt", alt)
 26960  	c.urlParams_.Set("prettyPrint", "false")
 26961  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents")
 26962  	urls += "?" + c.urlParams_.Encode()
 26963  	req, err := http.NewRequest("POST", urls, body)
 26964  	if err != nil {
 26965  		return nil, err
 26966  	}
 26967  	req.Header = reqHeaders
 26968  	googleapi.Expand(req.URL, map[string]string{
 26969  		"parent": c.parent,
 26970  	})
 26971  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26972  }
 26973  
 26974  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.create" call.
 26975  // Any non-2xx status code is an error. Response headers are in either
 26976  // *GoogleCloudDiscoveryengineV1alphaDocument.ServerResponse.Header or (if a
 26977  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26978  // googleapi.IsNotModified to check whether the returned error was because
 26979  // http.StatusNotModified was returned.
 26980  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocument, error) {
 26981  	gensupport.SetOptions(c.urlParams_, opts...)
 26982  	res, err := c.doRequest("json")
 26983  	if res != nil && res.StatusCode == http.StatusNotModified {
 26984  		if res.Body != nil {
 26985  			res.Body.Close()
 26986  		}
 26987  		return nil, gensupport.WrapError(&googleapi.Error{
 26988  			Code:   res.StatusCode,
 26989  			Header: res.Header,
 26990  		})
 26991  	}
 26992  	if err != nil {
 26993  		return nil, err
 26994  	}
 26995  	defer googleapi.CloseBody(res)
 26996  	if err := googleapi.CheckResponse(res); err != nil {
 26997  		return nil, gensupport.WrapError(err)
 26998  	}
 26999  	ret := &GoogleCloudDiscoveryengineV1alphaDocument{
 27000  		ServerResponse: googleapi.ServerResponse{
 27001  			Header:         res.Header,
 27002  			HTTPStatusCode: res.StatusCode,
 27003  		},
 27004  	}
 27005  	target := &ret
 27006  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27007  		return nil, err
 27008  	}
 27009  	return ret, nil
 27010  }
 27011  
 27012  type ProjectsLocationsDataStoresBranchesDocumentsDeleteCall struct {
 27013  	s          *Service
 27014  	name       string
 27015  	urlParams_ gensupport.URLParams
 27016  	ctx_       context.Context
 27017  	header_    http.Header
 27018  }
 27019  
 27020  // Delete: Deletes a Document.
 27021  //
 27022  //   - name: Full resource name of Document, such as
 27023  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27024  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 27025  //     not have permission to delete the Document, regardless of whether or not
 27026  //     it exists, a `PERMISSION_DENIED` error is returned. If the Document to
 27027  //     delete does not exist, a `NOT_FOUND` error is returned.
 27028  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Delete(name string) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
 27029  	c := &ProjectsLocationsDataStoresBranchesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27030  	c.name = name
 27031  	return c
 27032  }
 27033  
 27034  // Fields allows partial responses to be retrieved. See
 27035  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27036  // details.
 27037  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
 27038  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27039  	return c
 27040  }
 27041  
 27042  // Context sets the context to be used in this call's Do method.
 27043  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
 27044  	c.ctx_ = ctx
 27045  	return c
 27046  }
 27047  
 27048  // Header returns a http.Header that can be modified by the caller to add
 27049  // headers to the request.
 27050  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Header() http.Header {
 27051  	if c.header_ == nil {
 27052  		c.header_ = make(http.Header)
 27053  	}
 27054  	return c.header_
 27055  }
 27056  
 27057  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 27058  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27059  	var body io.Reader = nil
 27060  	c.urlParams_.Set("alt", alt)
 27061  	c.urlParams_.Set("prettyPrint", "false")
 27062  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 27063  	urls += "?" + c.urlParams_.Encode()
 27064  	req, err := http.NewRequest("DELETE", urls, body)
 27065  	if err != nil {
 27066  		return nil, err
 27067  	}
 27068  	req.Header = reqHeaders
 27069  	googleapi.Expand(req.URL, map[string]string{
 27070  		"name": c.name,
 27071  	})
 27072  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27073  }
 27074  
 27075  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.delete" call.
 27076  // Any non-2xx status code is an error. Response headers are in either
 27077  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 27078  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 27079  // check whether the returned error was because http.StatusNotModified was
 27080  // returned.
 27081  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 27082  	gensupport.SetOptions(c.urlParams_, opts...)
 27083  	res, err := c.doRequest("json")
 27084  	if res != nil && res.StatusCode == http.StatusNotModified {
 27085  		if res.Body != nil {
 27086  			res.Body.Close()
 27087  		}
 27088  		return nil, gensupport.WrapError(&googleapi.Error{
 27089  			Code:   res.StatusCode,
 27090  			Header: res.Header,
 27091  		})
 27092  	}
 27093  	if err != nil {
 27094  		return nil, err
 27095  	}
 27096  	defer googleapi.CloseBody(res)
 27097  	if err := googleapi.CheckResponse(res); err != nil {
 27098  		return nil, gensupport.WrapError(err)
 27099  	}
 27100  	ret := &GoogleProtobufEmpty{
 27101  		ServerResponse: googleapi.ServerResponse{
 27102  			Header:         res.Header,
 27103  			HTTPStatusCode: res.StatusCode,
 27104  		},
 27105  	}
 27106  	target := &ret
 27107  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27108  		return nil, err
 27109  	}
 27110  	return ret, nil
 27111  }
 27112  
 27113  type ProjectsLocationsDataStoresBranchesDocumentsGetCall struct {
 27114  	s            *Service
 27115  	name         string
 27116  	urlParams_   gensupport.URLParams
 27117  	ifNoneMatch_ string
 27118  	ctx_         context.Context
 27119  	header_      http.Header
 27120  }
 27121  
 27122  // Get: Gets a Document.
 27123  //
 27124  //   - name: Full resource name of Document, such as
 27125  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27126  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 27127  //     not have permission to access the Document, regardless of whether or not
 27128  //     it exists, a `PERMISSION_DENIED` error is returned. If the requested
 27129  //     Document does not exist, a `NOT_FOUND` error is returned.
 27130  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Get(name string) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
 27131  	c := &ProjectsLocationsDataStoresBranchesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27132  	c.name = name
 27133  	return c
 27134  }
 27135  
 27136  // Fields allows partial responses to be retrieved. See
 27137  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27138  // details.
 27139  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
 27140  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27141  	return c
 27142  }
 27143  
 27144  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27145  // object's ETag matches the given value. This is useful for getting updates
 27146  // only after the object has changed since the last request.
 27147  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
 27148  	c.ifNoneMatch_ = entityTag
 27149  	return c
 27150  }
 27151  
 27152  // Context sets the context to be used in this call's Do method.
 27153  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
 27154  	c.ctx_ = ctx
 27155  	return c
 27156  }
 27157  
 27158  // Header returns a http.Header that can be modified by the caller to add
 27159  // headers to the request.
 27160  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Header() http.Header {
 27161  	if c.header_ == nil {
 27162  		c.header_ = make(http.Header)
 27163  	}
 27164  	return c.header_
 27165  }
 27166  
 27167  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
 27168  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27169  	if c.ifNoneMatch_ != "" {
 27170  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27171  	}
 27172  	var body io.Reader = nil
 27173  	c.urlParams_.Set("alt", alt)
 27174  	c.urlParams_.Set("prettyPrint", "false")
 27175  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 27176  	urls += "?" + c.urlParams_.Encode()
 27177  	req, err := http.NewRequest("GET", urls, body)
 27178  	if err != nil {
 27179  		return nil, err
 27180  	}
 27181  	req.Header = reqHeaders
 27182  	googleapi.Expand(req.URL, map[string]string{
 27183  		"name": c.name,
 27184  	})
 27185  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27186  }
 27187  
 27188  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.get" call.
 27189  // Any non-2xx status code is an error. Response headers are in either
 27190  // *GoogleCloudDiscoveryengineV1alphaDocument.ServerResponse.Header or (if a
 27191  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27192  // googleapi.IsNotModified to check whether the returned error was because
 27193  // http.StatusNotModified was returned.
 27194  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocument, error) {
 27195  	gensupport.SetOptions(c.urlParams_, opts...)
 27196  	res, err := c.doRequest("json")
 27197  	if res != nil && res.StatusCode == http.StatusNotModified {
 27198  		if res.Body != nil {
 27199  			res.Body.Close()
 27200  		}
 27201  		return nil, gensupport.WrapError(&googleapi.Error{
 27202  			Code:   res.StatusCode,
 27203  			Header: res.Header,
 27204  		})
 27205  	}
 27206  	if err != nil {
 27207  		return nil, err
 27208  	}
 27209  	defer googleapi.CloseBody(res)
 27210  	if err := googleapi.CheckResponse(res); err != nil {
 27211  		return nil, gensupport.WrapError(err)
 27212  	}
 27213  	ret := &GoogleCloudDiscoveryengineV1alphaDocument{
 27214  		ServerResponse: googleapi.ServerResponse{
 27215  			Header:         res.Header,
 27216  			HTTPStatusCode: res.StatusCode,
 27217  		},
 27218  	}
 27219  	target := &ret
 27220  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27221  		return nil, err
 27222  	}
 27223  	return ret, nil
 27224  }
 27225  
 27226  type ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall struct {
 27227  	s            *Service
 27228  	name         string
 27229  	urlParams_   gensupport.URLParams
 27230  	ifNoneMatch_ string
 27231  	ctx_         context.Context
 27232  	header_      http.Header
 27233  }
 27234  
 27235  // GetProcessedDocument: Gets the parsed layout information for a Document.
 27236  //
 27237  //   - name: Full resource name of Document, such as
 27238  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27239  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 27240  //     not have permission to access the Document, regardless of whether or not
 27241  //     it exists, a `PERMISSION_DENIED` error is returned. If the requested
 27242  //     Document does not exist, a `NOT_FOUND` error is returned.
 27243  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) GetProcessedDocument(name string) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
 27244  	c := &ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27245  	c.name = name
 27246  	return c
 27247  }
 27248  
 27249  // ProcessedDocumentFormat sets the optional parameter
 27250  // "processedDocumentFormat": What format output should be. If unspecified,
 27251  // defaults to JSON.
 27252  //
 27253  // Possible values:
 27254  //
 27255  //	"PROCESSED_DOCUMENT_FORMAT_UNSPECIFIED" - Default value.
 27256  //	"JSON" - output format will be a JSON string representation of processed
 27257  //
 27258  // document.
 27259  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) ProcessedDocumentFormat(processedDocumentFormat string) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
 27260  	c.urlParams_.Set("processedDocumentFormat", processedDocumentFormat)
 27261  	return c
 27262  }
 27263  
 27264  // ProcessedDocumentType sets the optional parameter "processedDocumentType":
 27265  // Required. What type of processing to return.
 27266  //
 27267  // Possible values:
 27268  //
 27269  //	"PROCESSED_DOCUMENT_TYPE_UNSPECIFIED" - Default value.
 27270  //	"PARSED_DOCUMENT" - Available for all data store parsing configs.
 27271  //	"CHUNKED_DOCUMENT" - Only available if ChunkingConfig is enabled on the
 27272  //
 27273  // data store.
 27274  //
 27275  //	"PNG_CONVERTED_DOCUMENT" - Returns the converted PNG Image bytes if
 27276  //
 27277  // available.
 27278  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) ProcessedDocumentType(processedDocumentType string) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
 27279  	c.urlParams_.Set("processedDocumentType", processedDocumentType)
 27280  	return c
 27281  }
 27282  
 27283  // Fields allows partial responses to be retrieved. See
 27284  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27285  // details.
 27286  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
 27287  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27288  	return c
 27289  }
 27290  
 27291  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27292  // object's ETag matches the given value. This is useful for getting updates
 27293  // only after the object has changed since the last request.
 27294  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
 27295  	c.ifNoneMatch_ = entityTag
 27296  	return c
 27297  }
 27298  
 27299  // Context sets the context to be used in this call's Do method.
 27300  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
 27301  	c.ctx_ = ctx
 27302  	return c
 27303  }
 27304  
 27305  // Header returns a http.Header that can be modified by the caller to add
 27306  // headers to the request.
 27307  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) Header() http.Header {
 27308  	if c.header_ == nil {
 27309  		c.header_ = make(http.Header)
 27310  	}
 27311  	return c.header_
 27312  }
 27313  
 27314  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) doRequest(alt string) (*http.Response, error) {
 27315  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27316  	if c.ifNoneMatch_ != "" {
 27317  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27318  	}
 27319  	var body io.Reader = nil
 27320  	c.urlParams_.Set("alt", alt)
 27321  	c.urlParams_.Set("prettyPrint", "false")
 27322  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:getProcessedDocument")
 27323  	urls += "?" + c.urlParams_.Encode()
 27324  	req, err := http.NewRequest("GET", urls, body)
 27325  	if err != nil {
 27326  		return nil, err
 27327  	}
 27328  	req.Header = reqHeaders
 27329  	googleapi.Expand(req.URL, map[string]string{
 27330  		"name": c.name,
 27331  	})
 27332  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27333  }
 27334  
 27335  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.getProcessedDocument" call.
 27336  // Any non-2xx status code is an error. Response headers are in either
 27337  // *GoogleCloudDiscoveryengineV1alphaProcessedDocument.ServerResponse.Header or
 27338  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 27339  // googleapi.IsNotModified to check whether the returned error was because
 27340  // http.StatusNotModified was returned.
 27341  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaProcessedDocument, error) {
 27342  	gensupport.SetOptions(c.urlParams_, opts...)
 27343  	res, err := c.doRequest("json")
 27344  	if res != nil && res.StatusCode == http.StatusNotModified {
 27345  		if res.Body != nil {
 27346  			res.Body.Close()
 27347  		}
 27348  		return nil, gensupport.WrapError(&googleapi.Error{
 27349  			Code:   res.StatusCode,
 27350  			Header: res.Header,
 27351  		})
 27352  	}
 27353  	if err != nil {
 27354  		return nil, err
 27355  	}
 27356  	defer googleapi.CloseBody(res)
 27357  	if err := googleapi.CheckResponse(res); err != nil {
 27358  		return nil, gensupport.WrapError(err)
 27359  	}
 27360  	ret := &GoogleCloudDiscoveryengineV1alphaProcessedDocument{
 27361  		ServerResponse: googleapi.ServerResponse{
 27362  			Header:         res.Header,
 27363  			HTTPStatusCode: res.StatusCode,
 27364  		},
 27365  	}
 27366  	target := &ret
 27367  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27368  		return nil, err
 27369  	}
 27370  	return ret, nil
 27371  }
 27372  
 27373  type ProjectsLocationsDataStoresBranchesDocumentsImportCall struct {
 27374  	s                                                       *Service
 27375  	parent                                                  string
 27376  	googleclouddiscoveryenginev1alphaimportdocumentsrequest *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest
 27377  	urlParams_                                              gensupport.URLParams
 27378  	ctx_                                                    context.Context
 27379  	header_                                                 http.Header
 27380  }
 27381  
 27382  // Import: Bulk import of multiple Documents. Request processing may be
 27383  // synchronous. Non-existing items will be created. Note: It is possible for a
 27384  // subset of the Documents to be successfully updated.
 27385  //
 27386  //   - parent: The parent branch resource name, such as
 27387  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27388  //     s/{data_store}/branches/{branch}`. Requires create/update permission.
 27389  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Import(parent string, googleclouddiscoveryenginev1alphaimportdocumentsrequest *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
 27390  	c := &ProjectsLocationsDataStoresBranchesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27391  	c.parent = parent
 27392  	c.googleclouddiscoveryenginev1alphaimportdocumentsrequest = googleclouddiscoveryenginev1alphaimportdocumentsrequest
 27393  	return c
 27394  }
 27395  
 27396  // Fields allows partial responses to be retrieved. See
 27397  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27398  // details.
 27399  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
 27400  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27401  	return c
 27402  }
 27403  
 27404  // Context sets the context to be used in this call's Do method.
 27405  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
 27406  	c.ctx_ = ctx
 27407  	return c
 27408  }
 27409  
 27410  // Header returns a http.Header that can be modified by the caller to add
 27411  // headers to the request.
 27412  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Header() http.Header {
 27413  	if c.header_ == nil {
 27414  		c.header_ = make(http.Header)
 27415  	}
 27416  	return c.header_
 27417  }
 27418  
 27419  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
 27420  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27421  	var body io.Reader = nil
 27422  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaimportdocumentsrequest)
 27423  	if err != nil {
 27424  		return nil, err
 27425  	}
 27426  	c.urlParams_.Set("alt", alt)
 27427  	c.urlParams_.Set("prettyPrint", "false")
 27428  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents:import")
 27429  	urls += "?" + c.urlParams_.Encode()
 27430  	req, err := http.NewRequest("POST", urls, body)
 27431  	if err != nil {
 27432  		return nil, err
 27433  	}
 27434  	req.Header = reqHeaders
 27435  	googleapi.Expand(req.URL, map[string]string{
 27436  		"parent": c.parent,
 27437  	})
 27438  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27439  }
 27440  
 27441  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.import" call.
 27442  // Any non-2xx status code is an error. Response headers are in either
 27443  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 27444  // returned at all) in error.(*googleapi.Error).Header. Use
 27445  // googleapi.IsNotModified to check whether the returned error was because
 27446  // http.StatusNotModified was returned.
 27447  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 27448  	gensupport.SetOptions(c.urlParams_, opts...)
 27449  	res, err := c.doRequest("json")
 27450  	if res != nil && res.StatusCode == http.StatusNotModified {
 27451  		if res.Body != nil {
 27452  			res.Body.Close()
 27453  		}
 27454  		return nil, gensupport.WrapError(&googleapi.Error{
 27455  			Code:   res.StatusCode,
 27456  			Header: res.Header,
 27457  		})
 27458  	}
 27459  	if err != nil {
 27460  		return nil, err
 27461  	}
 27462  	defer googleapi.CloseBody(res)
 27463  	if err := googleapi.CheckResponse(res); err != nil {
 27464  		return nil, gensupport.WrapError(err)
 27465  	}
 27466  	ret := &GoogleLongrunningOperation{
 27467  		ServerResponse: googleapi.ServerResponse{
 27468  			Header:         res.Header,
 27469  			HTTPStatusCode: res.StatusCode,
 27470  		},
 27471  	}
 27472  	target := &ret
 27473  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27474  		return nil, err
 27475  	}
 27476  	return ret, nil
 27477  }
 27478  
 27479  type ProjectsLocationsDataStoresBranchesDocumentsListCall struct {
 27480  	s            *Service
 27481  	parent       string
 27482  	urlParams_   gensupport.URLParams
 27483  	ifNoneMatch_ string
 27484  	ctx_         context.Context
 27485  	header_      http.Header
 27486  }
 27487  
 27488  // List: Gets a list of Documents.
 27489  //
 27490  //   - parent: The parent branch resource name, such as
 27491  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27492  //     s/{data_store}/branches/{branch}`. Use `default_branch` as the branch ID,
 27493  //     to list documents under the default branch. If the caller does not have
 27494  //     permission to list Documents under this branch, regardless of whether or
 27495  //     not this branch exists, a `PERMISSION_DENIED` error is returned.
 27496  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) List(parent string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 27497  	c := &ProjectsLocationsDataStoresBranchesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27498  	c.parent = parent
 27499  	return c
 27500  }
 27501  
 27502  // PageSize sets the optional parameter "pageSize": Maximum number of Documents
 27503  // to return. If unspecified, defaults to 100. The maximum allowed value is
 27504  // 1000. Values above 1000 will be coerced to 1000. If this field is negative,
 27505  // an `INVALID_ARGUMENT` error is returned.
 27506  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 27507  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 27508  	return c
 27509  }
 27510  
 27511  // PageToken sets the optional parameter "pageToken": A page token
 27512  // ListDocumentsResponse.next_page_token, received from a previous
 27513  // DocumentService.ListDocuments call. Provide this to retrieve the subsequent
 27514  // page. When paginating, all other parameters provided to
 27515  // DocumentService.ListDocuments must match the call that provided the page
 27516  // token. Otherwise, an `INVALID_ARGUMENT` error is returned.
 27517  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 27518  	c.urlParams_.Set("pageToken", pageToken)
 27519  	return c
 27520  }
 27521  
 27522  // Fields allows partial responses to be retrieved. See
 27523  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27524  // details.
 27525  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 27526  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27527  	return c
 27528  }
 27529  
 27530  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27531  // object's ETag matches the given value. This is useful for getting updates
 27532  // only after the object has changed since the last request.
 27533  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 27534  	c.ifNoneMatch_ = entityTag
 27535  	return c
 27536  }
 27537  
 27538  // Context sets the context to be used in this call's Do method.
 27539  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 27540  	c.ctx_ = ctx
 27541  	return c
 27542  }
 27543  
 27544  // Header returns a http.Header that can be modified by the caller to add
 27545  // headers to the request.
 27546  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Header() http.Header {
 27547  	if c.header_ == nil {
 27548  		c.header_ = make(http.Header)
 27549  	}
 27550  	return c.header_
 27551  }
 27552  
 27553  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
 27554  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27555  	if c.ifNoneMatch_ != "" {
 27556  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27557  	}
 27558  	var body io.Reader = nil
 27559  	c.urlParams_.Set("alt", alt)
 27560  	c.urlParams_.Set("prettyPrint", "false")
 27561  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents")
 27562  	urls += "?" + c.urlParams_.Encode()
 27563  	req, err := http.NewRequest("GET", urls, body)
 27564  	if err != nil {
 27565  		return nil, err
 27566  	}
 27567  	req.Header = reqHeaders
 27568  	googleapi.Expand(req.URL, map[string]string{
 27569  		"parent": c.parent,
 27570  	})
 27571  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27572  }
 27573  
 27574  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.list" call.
 27575  // Any non-2xx status code is an error. Response headers are in either
 27576  // *GoogleCloudDiscoveryengineV1alphaListDocumentsResponse.ServerResponse.Header
 27577  //
 27578  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 27579  //
 27580  // Use googleapi.IsNotModified to check whether the returned error was because
 27581  // http.StatusNotModified was returned.
 27582  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListDocumentsResponse, error) {
 27583  	gensupport.SetOptions(c.urlParams_, opts...)
 27584  	res, err := c.doRequest("json")
 27585  	if res != nil && res.StatusCode == http.StatusNotModified {
 27586  		if res.Body != nil {
 27587  			res.Body.Close()
 27588  		}
 27589  		return nil, gensupport.WrapError(&googleapi.Error{
 27590  			Code:   res.StatusCode,
 27591  			Header: res.Header,
 27592  		})
 27593  	}
 27594  	if err != nil {
 27595  		return nil, err
 27596  	}
 27597  	defer googleapi.CloseBody(res)
 27598  	if err := googleapi.CheckResponse(res); err != nil {
 27599  		return nil, gensupport.WrapError(err)
 27600  	}
 27601  	ret := &GoogleCloudDiscoveryengineV1alphaListDocumentsResponse{
 27602  		ServerResponse: googleapi.ServerResponse{
 27603  			Header:         res.Header,
 27604  			HTTPStatusCode: res.StatusCode,
 27605  		},
 27606  	}
 27607  	target := &ret
 27608  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27609  		return nil, err
 27610  	}
 27611  	return ret, nil
 27612  }
 27613  
 27614  // Pages invokes f for each page of results.
 27615  // A non-nil error returned from f will halt the iteration.
 27616  // The provided context supersedes any context provided to the Context method.
 27617  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListDocumentsResponse) error) error {
 27618  	c.ctx_ = ctx
 27619  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 27620  	for {
 27621  		x, err := c.Do()
 27622  		if err != nil {
 27623  			return err
 27624  		}
 27625  		if err := f(x); err != nil {
 27626  			return err
 27627  		}
 27628  		if x.NextPageToken == "" {
 27629  			return nil
 27630  		}
 27631  		c.PageToken(x.NextPageToken)
 27632  	}
 27633  }
 27634  
 27635  type ProjectsLocationsDataStoresBranchesDocumentsPatchCall struct {
 27636  	s                                         *Service
 27637  	name                                      string
 27638  	googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument
 27639  	urlParams_                                gensupport.URLParams
 27640  	ctx_                                      context.Context
 27641  	header_                                   http.Header
 27642  }
 27643  
 27644  // Patch: Updates a Document.
 27645  //
 27646  //   - name: Immutable. The full resource name of the document. Format:
 27647  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27648  //     s/{data_store}/branches/{branch}/documents/{document_id}`. This field must
 27649  //     be a UTF-8 encoded string with a length limit of 1024 characters.
 27650  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Patch(name string, googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 27651  	c := &ProjectsLocationsDataStoresBranchesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27652  	c.name = name
 27653  	c.googleclouddiscoveryenginev1alphadocument = googleclouddiscoveryenginev1alphadocument
 27654  	return c
 27655  }
 27656  
 27657  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 27658  // the Document is not found, a new Document will be created.
 27659  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 27660  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 27661  	return c
 27662  }
 27663  
 27664  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 27665  // in the provided imported 'document' to update. If not set, will by default
 27666  // update all fields.
 27667  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 27668  	c.urlParams_.Set("updateMask", updateMask)
 27669  	return c
 27670  }
 27671  
 27672  // Fields allows partial responses to be retrieved. See
 27673  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27674  // details.
 27675  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 27676  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27677  	return c
 27678  }
 27679  
 27680  // Context sets the context to be used in this call's Do method.
 27681  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 27682  	c.ctx_ = ctx
 27683  	return c
 27684  }
 27685  
 27686  // Header returns a http.Header that can be modified by the caller to add
 27687  // headers to the request.
 27688  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Header() http.Header {
 27689  	if c.header_ == nil {
 27690  		c.header_ = make(http.Header)
 27691  	}
 27692  	return c.header_
 27693  }
 27694  
 27695  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
 27696  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27697  	var body io.Reader = nil
 27698  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadocument)
 27699  	if err != nil {
 27700  		return nil, err
 27701  	}
 27702  	c.urlParams_.Set("alt", alt)
 27703  	c.urlParams_.Set("prettyPrint", "false")
 27704  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 27705  	urls += "?" + c.urlParams_.Encode()
 27706  	req, err := http.NewRequest("PATCH", urls, body)
 27707  	if err != nil {
 27708  		return nil, err
 27709  	}
 27710  	req.Header = reqHeaders
 27711  	googleapi.Expand(req.URL, map[string]string{
 27712  		"name": c.name,
 27713  	})
 27714  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27715  }
 27716  
 27717  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.patch" call.
 27718  // Any non-2xx status code is an error. Response headers are in either
 27719  // *GoogleCloudDiscoveryengineV1alphaDocument.ServerResponse.Header or (if a
 27720  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27721  // googleapi.IsNotModified to check whether the returned error was because
 27722  // http.StatusNotModified was returned.
 27723  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocument, error) {
 27724  	gensupport.SetOptions(c.urlParams_, opts...)
 27725  	res, err := c.doRequest("json")
 27726  	if res != nil && res.StatusCode == http.StatusNotModified {
 27727  		if res.Body != nil {
 27728  			res.Body.Close()
 27729  		}
 27730  		return nil, gensupport.WrapError(&googleapi.Error{
 27731  			Code:   res.StatusCode,
 27732  			Header: res.Header,
 27733  		})
 27734  	}
 27735  	if err != nil {
 27736  		return nil, err
 27737  	}
 27738  	defer googleapi.CloseBody(res)
 27739  	if err := googleapi.CheckResponse(res); err != nil {
 27740  		return nil, gensupport.WrapError(err)
 27741  	}
 27742  	ret := &GoogleCloudDiscoveryengineV1alphaDocument{
 27743  		ServerResponse: googleapi.ServerResponse{
 27744  			Header:         res.Header,
 27745  			HTTPStatusCode: res.StatusCode,
 27746  		},
 27747  	}
 27748  	target := &ret
 27749  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27750  		return nil, err
 27751  	}
 27752  	return ret, nil
 27753  }
 27754  
 27755  type ProjectsLocationsDataStoresBranchesDocumentsPurgeCall struct {
 27756  	s                                                      *Service
 27757  	parent                                                 string
 27758  	googleclouddiscoveryenginev1alphapurgedocumentsrequest *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest
 27759  	urlParams_                                             gensupport.URLParams
 27760  	ctx_                                                   context.Context
 27761  	header_                                                http.Header
 27762  }
 27763  
 27764  // Purge: Permanently deletes all selected Documents in a branch. This process
 27765  // is asynchronous. Depending on the number of Documents to be deleted, this
 27766  // operation can take hours to complete. Before the delete operation completes,
 27767  // some Documents might still be returned by DocumentService.GetDocument or
 27768  // DocumentService.ListDocuments. To get a list of the Documents to be deleted,
 27769  // set PurgeDocumentsRequest.force to false.
 27770  //
 27771  //   - parent: The parent resource name, such as
 27772  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27773  //     s/{data_store}/branches/{branch}`.
 27774  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Purge(parent string, googleclouddiscoveryenginev1alphapurgedocumentsrequest *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
 27775  	c := &ProjectsLocationsDataStoresBranchesDocumentsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27776  	c.parent = parent
 27777  	c.googleclouddiscoveryenginev1alphapurgedocumentsrequest = googleclouddiscoveryenginev1alphapurgedocumentsrequest
 27778  	return c
 27779  }
 27780  
 27781  // Fields allows partial responses to be retrieved. See
 27782  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27783  // details.
 27784  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
 27785  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27786  	return c
 27787  }
 27788  
 27789  // Context sets the context to be used in this call's Do method.
 27790  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
 27791  	c.ctx_ = ctx
 27792  	return c
 27793  }
 27794  
 27795  // Header returns a http.Header that can be modified by the caller to add
 27796  // headers to the request.
 27797  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Header() http.Header {
 27798  	if c.header_ == nil {
 27799  		c.header_ = make(http.Header)
 27800  	}
 27801  	return c.header_
 27802  }
 27803  
 27804  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) doRequest(alt string) (*http.Response, error) {
 27805  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27806  	var body io.Reader = nil
 27807  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapurgedocumentsrequest)
 27808  	if err != nil {
 27809  		return nil, err
 27810  	}
 27811  	c.urlParams_.Set("alt", alt)
 27812  	c.urlParams_.Set("prettyPrint", "false")
 27813  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents:purge")
 27814  	urls += "?" + c.urlParams_.Encode()
 27815  	req, err := http.NewRequest("POST", urls, body)
 27816  	if err != nil {
 27817  		return nil, err
 27818  	}
 27819  	req.Header = reqHeaders
 27820  	googleapi.Expand(req.URL, map[string]string{
 27821  		"parent": c.parent,
 27822  	})
 27823  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27824  }
 27825  
 27826  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.purge" call.
 27827  // Any non-2xx status code is an error. Response headers are in either
 27828  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 27829  // returned at all) in error.(*googleapi.Error).Header. Use
 27830  // googleapi.IsNotModified to check whether the returned error was because
 27831  // http.StatusNotModified was returned.
 27832  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 27833  	gensupport.SetOptions(c.urlParams_, opts...)
 27834  	res, err := c.doRequest("json")
 27835  	if res != nil && res.StatusCode == http.StatusNotModified {
 27836  		if res.Body != nil {
 27837  			res.Body.Close()
 27838  		}
 27839  		return nil, gensupport.WrapError(&googleapi.Error{
 27840  			Code:   res.StatusCode,
 27841  			Header: res.Header,
 27842  		})
 27843  	}
 27844  	if err != nil {
 27845  		return nil, err
 27846  	}
 27847  	defer googleapi.CloseBody(res)
 27848  	if err := googleapi.CheckResponse(res); err != nil {
 27849  		return nil, gensupport.WrapError(err)
 27850  	}
 27851  	ret := &GoogleLongrunningOperation{
 27852  		ServerResponse: googleapi.ServerResponse{
 27853  			Header:         res.Header,
 27854  			HTTPStatusCode: res.StatusCode,
 27855  		},
 27856  	}
 27857  	target := &ret
 27858  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27859  		return nil, err
 27860  	}
 27861  	return ret, nil
 27862  }
 27863  
 27864  type ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall struct {
 27865  	s            *Service
 27866  	name         string
 27867  	urlParams_   gensupport.URLParams
 27868  	ifNoneMatch_ string
 27869  	ctx_         context.Context
 27870  	header_      http.Header
 27871  }
 27872  
 27873  // Get: Gets a Document.
 27874  //
 27875  //   - name: Full resource name of Chunk, such as
 27876  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27877  //     s/{data_store}/branches/{branch}/documents/{document}/chunks/{chunk}`. If
 27878  //     the caller does not have permission to access the Chunk, regardless of
 27879  //     whether or not it exists, a `PERMISSION_DENIED` error is returned. If the
 27880  //     requested Chunk does not exist, a `NOT_FOUND` error is returned.
 27881  func (r *ProjectsLocationsDataStoresBranchesDocumentsChunksService) Get(name string) *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall {
 27882  	c := &ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27883  	c.name = name
 27884  	return c
 27885  }
 27886  
 27887  // Fields allows partial responses to be retrieved. See
 27888  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27889  // details.
 27890  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall {
 27891  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27892  	return c
 27893  }
 27894  
 27895  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27896  // object's ETag matches the given value. This is useful for getting updates
 27897  // only after the object has changed since the last request.
 27898  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall {
 27899  	c.ifNoneMatch_ = entityTag
 27900  	return c
 27901  }
 27902  
 27903  // Context sets the context to be used in this call's Do method.
 27904  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall {
 27905  	c.ctx_ = ctx
 27906  	return c
 27907  }
 27908  
 27909  // Header returns a http.Header that can be modified by the caller to add
 27910  // headers to the request.
 27911  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) Header() http.Header {
 27912  	if c.header_ == nil {
 27913  		c.header_ = make(http.Header)
 27914  	}
 27915  	return c.header_
 27916  }
 27917  
 27918  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) doRequest(alt string) (*http.Response, error) {
 27919  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27920  	if c.ifNoneMatch_ != "" {
 27921  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27922  	}
 27923  	var body io.Reader = nil
 27924  	c.urlParams_.Set("alt", alt)
 27925  	c.urlParams_.Set("prettyPrint", "false")
 27926  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 27927  	urls += "?" + c.urlParams_.Encode()
 27928  	req, err := http.NewRequest("GET", urls, body)
 27929  	if err != nil {
 27930  		return nil, err
 27931  	}
 27932  	req.Header = reqHeaders
 27933  	googleapi.Expand(req.URL, map[string]string{
 27934  		"name": c.name,
 27935  	})
 27936  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27937  }
 27938  
 27939  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.chunks.get" call.
 27940  // Any non-2xx status code is an error. Response headers are in either
 27941  // *GoogleCloudDiscoveryengineV1alphaChunk.ServerResponse.Header or (if a
 27942  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27943  // googleapi.IsNotModified to check whether the returned error was because
 27944  // http.StatusNotModified was returned.
 27945  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaChunk, error) {
 27946  	gensupport.SetOptions(c.urlParams_, opts...)
 27947  	res, err := c.doRequest("json")
 27948  	if res != nil && res.StatusCode == http.StatusNotModified {
 27949  		if res.Body != nil {
 27950  			res.Body.Close()
 27951  		}
 27952  		return nil, gensupport.WrapError(&googleapi.Error{
 27953  			Code:   res.StatusCode,
 27954  			Header: res.Header,
 27955  		})
 27956  	}
 27957  	if err != nil {
 27958  		return nil, err
 27959  	}
 27960  	defer googleapi.CloseBody(res)
 27961  	if err := googleapi.CheckResponse(res); err != nil {
 27962  		return nil, gensupport.WrapError(err)
 27963  	}
 27964  	ret := &GoogleCloudDiscoveryengineV1alphaChunk{
 27965  		ServerResponse: googleapi.ServerResponse{
 27966  			Header:         res.Header,
 27967  			HTTPStatusCode: res.StatusCode,
 27968  		},
 27969  	}
 27970  	target := &ret
 27971  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27972  		return nil, err
 27973  	}
 27974  	return ret, nil
 27975  }
 27976  
 27977  type ProjectsLocationsDataStoresBranchesDocumentsChunksListCall struct {
 27978  	s            *Service
 27979  	parent       string
 27980  	urlParams_   gensupport.URLParams
 27981  	ifNoneMatch_ string
 27982  	ctx_         context.Context
 27983  	header_      http.Header
 27984  }
 27985  
 27986  // List: Gets a list of Chunks.
 27987  //
 27988  //   - parent: The parent document resource name, such as
 27989  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27990  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 27991  //     not have permission to list Chunks under this document, regardless of
 27992  //     whether or not this document exists, a `PERMISSION_DENIED` error is
 27993  //     returned.
 27994  func (r *ProjectsLocationsDataStoresBranchesDocumentsChunksService) List(parent string) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall {
 27995  	c := &ProjectsLocationsDataStoresBranchesDocumentsChunksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27996  	c.parent = parent
 27997  	return c
 27998  }
 27999  
 28000  // PageSize sets the optional parameter "pageSize": Maximum number of Chunks to
 28001  // return. If unspecified, defaults to 100. The maximum allowed value is 1000.
 28002  // Values above 1000 will be coerced to 1000. If this field is negative, an
 28003  // `INVALID_ARGUMENT` error is returned.
 28004  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall {
 28005  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 28006  	return c
 28007  }
 28008  
 28009  // PageToken sets the optional parameter "pageToken": A page token
 28010  // ListChunksResponse.next_page_token, received from a previous
 28011  // ChunkService.ListChunks call. Provide this to retrieve the subsequent page.
 28012  // When paginating, all other parameters provided to ChunkService.ListChunks
 28013  // must match the call that provided the page token. Otherwise, an
 28014  // `INVALID_ARGUMENT` error is returned.
 28015  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall {
 28016  	c.urlParams_.Set("pageToken", pageToken)
 28017  	return c
 28018  }
 28019  
 28020  // Fields allows partial responses to be retrieved. See
 28021  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28022  // details.
 28023  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall {
 28024  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28025  	return c
 28026  }
 28027  
 28028  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28029  // object's ETag matches the given value. This is useful for getting updates
 28030  // only after the object has changed since the last request.
 28031  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall {
 28032  	c.ifNoneMatch_ = entityTag
 28033  	return c
 28034  }
 28035  
 28036  // Context sets the context to be used in this call's Do method.
 28037  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall {
 28038  	c.ctx_ = ctx
 28039  	return c
 28040  }
 28041  
 28042  // Header returns a http.Header that can be modified by the caller to add
 28043  // headers to the request.
 28044  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Header() http.Header {
 28045  	if c.header_ == nil {
 28046  		c.header_ = make(http.Header)
 28047  	}
 28048  	return c.header_
 28049  }
 28050  
 28051  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) doRequest(alt string) (*http.Response, error) {
 28052  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28053  	if c.ifNoneMatch_ != "" {
 28054  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28055  	}
 28056  	var body io.Reader = nil
 28057  	c.urlParams_.Set("alt", alt)
 28058  	c.urlParams_.Set("prettyPrint", "false")
 28059  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/chunks")
 28060  	urls += "?" + c.urlParams_.Encode()
 28061  	req, err := http.NewRequest("GET", urls, body)
 28062  	if err != nil {
 28063  		return nil, err
 28064  	}
 28065  	req.Header = reqHeaders
 28066  	googleapi.Expand(req.URL, map[string]string{
 28067  		"parent": c.parent,
 28068  	})
 28069  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28070  }
 28071  
 28072  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.chunks.list" call.
 28073  // Any non-2xx status code is an error. Response headers are in either
 28074  // *GoogleCloudDiscoveryengineV1alphaListChunksResponse.ServerResponse.Header
 28075  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 28076  // Use googleapi.IsNotModified to check whether the returned error was because
 28077  // http.StatusNotModified was returned.
 28078  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListChunksResponse, error) {
 28079  	gensupport.SetOptions(c.urlParams_, opts...)
 28080  	res, err := c.doRequest("json")
 28081  	if res != nil && res.StatusCode == http.StatusNotModified {
 28082  		if res.Body != nil {
 28083  			res.Body.Close()
 28084  		}
 28085  		return nil, gensupport.WrapError(&googleapi.Error{
 28086  			Code:   res.StatusCode,
 28087  			Header: res.Header,
 28088  		})
 28089  	}
 28090  	if err != nil {
 28091  		return nil, err
 28092  	}
 28093  	defer googleapi.CloseBody(res)
 28094  	if err := googleapi.CheckResponse(res); err != nil {
 28095  		return nil, gensupport.WrapError(err)
 28096  	}
 28097  	ret := &GoogleCloudDiscoveryengineV1alphaListChunksResponse{
 28098  		ServerResponse: googleapi.ServerResponse{
 28099  			Header:         res.Header,
 28100  			HTTPStatusCode: res.StatusCode,
 28101  		},
 28102  	}
 28103  	target := &ret
 28104  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28105  		return nil, err
 28106  	}
 28107  	return ret, nil
 28108  }
 28109  
 28110  // Pages invokes f for each page of results.
 28111  // A non-nil error returned from f will halt the iteration.
 28112  // The provided context supersedes any context provided to the Context method.
 28113  func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListChunksResponse) error) error {
 28114  	c.ctx_ = ctx
 28115  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 28116  	for {
 28117  		x, err := c.Do()
 28118  		if err != nil {
 28119  			return err
 28120  		}
 28121  		if err := f(x); err != nil {
 28122  			return err
 28123  		}
 28124  		if x.NextPageToken == "" {
 28125  			return nil
 28126  		}
 28127  		c.PageToken(x.NextPageToken)
 28128  	}
 28129  }
 28130  
 28131  type ProjectsLocationsDataStoresBranchesOperationsCancelCall struct {
 28132  	s                                       *Service
 28133  	name                                    string
 28134  	googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
 28135  	urlParams_                              gensupport.URLParams
 28136  	ctx_                                    context.Context
 28137  	header_                                 http.Header
 28138  }
 28139  
 28140  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 28141  // server makes a best effort to cancel the operation, but success is not
 28142  // guaranteed. If the server doesn't support this method, it returns
 28143  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 28144  // other methods to check whether the cancellation succeeded or whether the
 28145  // operation completed despite cancellation. On successful cancellation, the
 28146  // operation is not deleted; instead, it becomes an operation with an
 28147  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 28148  // `Code.CANCELLED`.
 28149  //
 28150  // - name: The name of the operation resource to be cancelled.
 28151  func (r *ProjectsLocationsDataStoresBranchesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
 28152  	c := &ProjectsLocationsDataStoresBranchesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28153  	c.name = name
 28154  	c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
 28155  	return c
 28156  }
 28157  
 28158  // Fields allows partial responses to be retrieved. See
 28159  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28160  // details.
 28161  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
 28162  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28163  	return c
 28164  }
 28165  
 28166  // Context sets the context to be used in this call's Do method.
 28167  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
 28168  	c.ctx_ = ctx
 28169  	return c
 28170  }
 28171  
 28172  // Header returns a http.Header that can be modified by the caller to add
 28173  // headers to the request.
 28174  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Header() http.Header {
 28175  	if c.header_ == nil {
 28176  		c.header_ = make(http.Header)
 28177  	}
 28178  	return c.header_
 28179  }
 28180  
 28181  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 28182  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28183  	var body io.Reader = nil
 28184  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
 28185  	if err != nil {
 28186  		return nil, err
 28187  	}
 28188  	c.urlParams_.Set("alt", alt)
 28189  	c.urlParams_.Set("prettyPrint", "false")
 28190  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:cancel")
 28191  	urls += "?" + c.urlParams_.Encode()
 28192  	req, err := http.NewRequest("POST", urls, body)
 28193  	if err != nil {
 28194  		return nil, err
 28195  	}
 28196  	req.Header = reqHeaders
 28197  	googleapi.Expand(req.URL, map[string]string{
 28198  		"name": c.name,
 28199  	})
 28200  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28201  }
 28202  
 28203  // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.cancel" call.
 28204  // Any non-2xx status code is an error. Response headers are in either
 28205  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 28206  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 28207  // check whether the returned error was because http.StatusNotModified was
 28208  // returned.
 28209  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 28210  	gensupport.SetOptions(c.urlParams_, opts...)
 28211  	res, err := c.doRequest("json")
 28212  	if res != nil && res.StatusCode == http.StatusNotModified {
 28213  		if res.Body != nil {
 28214  			res.Body.Close()
 28215  		}
 28216  		return nil, gensupport.WrapError(&googleapi.Error{
 28217  			Code:   res.StatusCode,
 28218  			Header: res.Header,
 28219  		})
 28220  	}
 28221  	if err != nil {
 28222  		return nil, err
 28223  	}
 28224  	defer googleapi.CloseBody(res)
 28225  	if err := googleapi.CheckResponse(res); err != nil {
 28226  		return nil, gensupport.WrapError(err)
 28227  	}
 28228  	ret := &GoogleProtobufEmpty{
 28229  		ServerResponse: googleapi.ServerResponse{
 28230  			Header:         res.Header,
 28231  			HTTPStatusCode: res.StatusCode,
 28232  		},
 28233  	}
 28234  	target := &ret
 28235  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28236  		return nil, err
 28237  	}
 28238  	return ret, nil
 28239  }
 28240  
 28241  type ProjectsLocationsDataStoresBranchesOperationsGetCall struct {
 28242  	s            *Service
 28243  	name         string
 28244  	urlParams_   gensupport.URLParams
 28245  	ifNoneMatch_ string
 28246  	ctx_         context.Context
 28247  	header_      http.Header
 28248  }
 28249  
 28250  // Get: Gets the latest state of a long-running operation. Clients can use this
 28251  // method to poll the operation result at intervals as recommended by the API
 28252  // service.
 28253  //
 28254  // - name: The name of the operation resource.
 28255  func (r *ProjectsLocationsDataStoresBranchesOperationsService) Get(name string) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
 28256  	c := &ProjectsLocationsDataStoresBranchesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28257  	c.name = name
 28258  	return c
 28259  }
 28260  
 28261  // Fields allows partial responses to be retrieved. See
 28262  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28263  // details.
 28264  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
 28265  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28266  	return c
 28267  }
 28268  
 28269  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28270  // object's ETag matches the given value. This is useful for getting updates
 28271  // only after the object has changed since the last request.
 28272  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
 28273  	c.ifNoneMatch_ = entityTag
 28274  	return c
 28275  }
 28276  
 28277  // Context sets the context to be used in this call's Do method.
 28278  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
 28279  	c.ctx_ = ctx
 28280  	return c
 28281  }
 28282  
 28283  // Header returns a http.Header that can be modified by the caller to add
 28284  // headers to the request.
 28285  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Header() http.Header {
 28286  	if c.header_ == nil {
 28287  		c.header_ = make(http.Header)
 28288  	}
 28289  	return c.header_
 28290  }
 28291  
 28292  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 28293  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28294  	if c.ifNoneMatch_ != "" {
 28295  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28296  	}
 28297  	var body io.Reader = nil
 28298  	c.urlParams_.Set("alt", alt)
 28299  	c.urlParams_.Set("prettyPrint", "false")
 28300  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 28301  	urls += "?" + c.urlParams_.Encode()
 28302  	req, err := http.NewRequest("GET", urls, body)
 28303  	if err != nil {
 28304  		return nil, err
 28305  	}
 28306  	req.Header = reqHeaders
 28307  	googleapi.Expand(req.URL, map[string]string{
 28308  		"name": c.name,
 28309  	})
 28310  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28311  }
 28312  
 28313  // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.get" call.
 28314  // Any non-2xx status code is an error. Response headers are in either
 28315  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 28316  // returned at all) in error.(*googleapi.Error).Header. Use
 28317  // googleapi.IsNotModified to check whether the returned error was because
 28318  // http.StatusNotModified was returned.
 28319  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 28320  	gensupport.SetOptions(c.urlParams_, opts...)
 28321  	res, err := c.doRequest("json")
 28322  	if res != nil && res.StatusCode == http.StatusNotModified {
 28323  		if res.Body != nil {
 28324  			res.Body.Close()
 28325  		}
 28326  		return nil, gensupport.WrapError(&googleapi.Error{
 28327  			Code:   res.StatusCode,
 28328  			Header: res.Header,
 28329  		})
 28330  	}
 28331  	if err != nil {
 28332  		return nil, err
 28333  	}
 28334  	defer googleapi.CloseBody(res)
 28335  	if err := googleapi.CheckResponse(res); err != nil {
 28336  		return nil, gensupport.WrapError(err)
 28337  	}
 28338  	ret := &GoogleLongrunningOperation{
 28339  		ServerResponse: googleapi.ServerResponse{
 28340  			Header:         res.Header,
 28341  			HTTPStatusCode: res.StatusCode,
 28342  		},
 28343  	}
 28344  	target := &ret
 28345  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28346  		return nil, err
 28347  	}
 28348  	return ret, nil
 28349  }
 28350  
 28351  type ProjectsLocationsDataStoresBranchesOperationsListCall struct {
 28352  	s            *Service
 28353  	name         string
 28354  	urlParams_   gensupport.URLParams
 28355  	ifNoneMatch_ string
 28356  	ctx_         context.Context
 28357  	header_      http.Header
 28358  }
 28359  
 28360  // List: Lists operations that match the specified filter in the request. If
 28361  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 28362  //
 28363  // - name: The name of the operation's parent resource.
 28364  func (r *ProjectsLocationsDataStoresBranchesOperationsService) List(name string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 28365  	c := &ProjectsLocationsDataStoresBranchesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28366  	c.name = name
 28367  	return c
 28368  }
 28369  
 28370  // Filter sets the optional parameter "filter": The standard list filter.
 28371  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 28372  	c.urlParams_.Set("filter", filter)
 28373  	return c
 28374  }
 28375  
 28376  // PageSize sets the optional parameter "pageSize": The standard list page
 28377  // size.
 28378  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 28379  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 28380  	return c
 28381  }
 28382  
 28383  // PageToken sets the optional parameter "pageToken": The standard list page
 28384  // token.
 28385  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 28386  	c.urlParams_.Set("pageToken", pageToken)
 28387  	return c
 28388  }
 28389  
 28390  // Fields allows partial responses to be retrieved. See
 28391  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28392  // details.
 28393  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 28394  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28395  	return c
 28396  }
 28397  
 28398  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28399  // object's ETag matches the given value. This is useful for getting updates
 28400  // only after the object has changed since the last request.
 28401  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 28402  	c.ifNoneMatch_ = entityTag
 28403  	return c
 28404  }
 28405  
 28406  // Context sets the context to be used in this call's Do method.
 28407  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 28408  	c.ctx_ = ctx
 28409  	return c
 28410  }
 28411  
 28412  // Header returns a http.Header that can be modified by the caller to add
 28413  // headers to the request.
 28414  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Header() http.Header {
 28415  	if c.header_ == nil {
 28416  		c.header_ = make(http.Header)
 28417  	}
 28418  	return c.header_
 28419  }
 28420  
 28421  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) doRequest(alt string) (*http.Response, error) {
 28422  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28423  	if c.ifNoneMatch_ != "" {
 28424  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28425  	}
 28426  	var body io.Reader = nil
 28427  	c.urlParams_.Set("alt", alt)
 28428  	c.urlParams_.Set("prettyPrint", "false")
 28429  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 28430  	urls += "?" + c.urlParams_.Encode()
 28431  	req, err := http.NewRequest("GET", urls, body)
 28432  	if err != nil {
 28433  		return nil, err
 28434  	}
 28435  	req.Header = reqHeaders
 28436  	googleapi.Expand(req.URL, map[string]string{
 28437  		"name": c.name,
 28438  	})
 28439  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28440  }
 28441  
 28442  // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.list" call.
 28443  // Any non-2xx status code is an error. Response headers are in either
 28444  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 28445  // response was returned at all) in error.(*googleapi.Error).Header. Use
 28446  // googleapi.IsNotModified to check whether the returned error was because
 28447  // http.StatusNotModified was returned.
 28448  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 28449  	gensupport.SetOptions(c.urlParams_, opts...)
 28450  	res, err := c.doRequest("json")
 28451  	if res != nil && res.StatusCode == http.StatusNotModified {
 28452  		if res.Body != nil {
 28453  			res.Body.Close()
 28454  		}
 28455  		return nil, gensupport.WrapError(&googleapi.Error{
 28456  			Code:   res.StatusCode,
 28457  			Header: res.Header,
 28458  		})
 28459  	}
 28460  	if err != nil {
 28461  		return nil, err
 28462  	}
 28463  	defer googleapi.CloseBody(res)
 28464  	if err := googleapi.CheckResponse(res); err != nil {
 28465  		return nil, gensupport.WrapError(err)
 28466  	}
 28467  	ret := &GoogleLongrunningListOperationsResponse{
 28468  		ServerResponse: googleapi.ServerResponse{
 28469  			Header:         res.Header,
 28470  			HTTPStatusCode: res.StatusCode,
 28471  		},
 28472  	}
 28473  	target := &ret
 28474  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28475  		return nil, err
 28476  	}
 28477  	return ret, nil
 28478  }
 28479  
 28480  // Pages invokes f for each page of results.
 28481  // A non-nil error returned from f will halt the iteration.
 28482  // The provided context supersedes any context provided to the Context method.
 28483  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 28484  	c.ctx_ = ctx
 28485  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 28486  	for {
 28487  		x, err := c.Do()
 28488  		if err != nil {
 28489  			return err
 28490  		}
 28491  		if err := f(x); err != nil {
 28492  			return err
 28493  		}
 28494  		if x.NextPageToken == "" {
 28495  			return nil
 28496  		}
 28497  		c.PageToken(x.NextPageToken)
 28498  	}
 28499  }
 28500  
 28501  type ProjectsLocationsDataStoresConversationsConverseCall struct {
 28502  	s                                                            *Service
 28503  	name                                                         string
 28504  	googleclouddiscoveryenginev1alphaconverseconversationrequest *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest
 28505  	urlParams_                                                   gensupport.URLParams
 28506  	ctx_                                                         context.Context
 28507  	header_                                                      http.Header
 28508  }
 28509  
 28510  // Converse: Converses a conversation.
 28511  //
 28512  //   - name: The resource name of the Conversation to get. Format:
 28513  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 28514  //     /dataStores/{data_store_id}/conversations/{conversation_id}`. Use
 28515  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 28516  //     /dataStores/{data_store_id}/conversations/-` to activate auto session
 28517  //     mode, which automatically creates a new conversation inside a
 28518  //     ConverseConversation session.
 28519  func (r *ProjectsLocationsDataStoresConversationsService) Converse(name string, googleclouddiscoveryenginev1alphaconverseconversationrequest *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest) *ProjectsLocationsDataStoresConversationsConverseCall {
 28520  	c := &ProjectsLocationsDataStoresConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28521  	c.name = name
 28522  	c.googleclouddiscoveryenginev1alphaconverseconversationrequest = googleclouddiscoveryenginev1alphaconverseconversationrequest
 28523  	return c
 28524  }
 28525  
 28526  // Fields allows partial responses to be retrieved. See
 28527  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28528  // details.
 28529  func (c *ProjectsLocationsDataStoresConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsConverseCall {
 28530  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28531  	return c
 28532  }
 28533  
 28534  // Context sets the context to be used in this call's Do method.
 28535  func (c *ProjectsLocationsDataStoresConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsConverseCall {
 28536  	c.ctx_ = ctx
 28537  	return c
 28538  }
 28539  
 28540  // Header returns a http.Header that can be modified by the caller to add
 28541  // headers to the request.
 28542  func (c *ProjectsLocationsDataStoresConversationsConverseCall) Header() http.Header {
 28543  	if c.header_ == nil {
 28544  		c.header_ = make(http.Header)
 28545  	}
 28546  	return c.header_
 28547  }
 28548  
 28549  func (c *ProjectsLocationsDataStoresConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
 28550  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28551  	var body io.Reader = nil
 28552  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconverseconversationrequest)
 28553  	if err != nil {
 28554  		return nil, err
 28555  	}
 28556  	c.urlParams_.Set("alt", alt)
 28557  	c.urlParams_.Set("prettyPrint", "false")
 28558  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:converse")
 28559  	urls += "?" + c.urlParams_.Encode()
 28560  	req, err := http.NewRequest("POST", urls, body)
 28561  	if err != nil {
 28562  		return nil, err
 28563  	}
 28564  	req.Header = reqHeaders
 28565  	googleapi.Expand(req.URL, map[string]string{
 28566  		"name": c.name,
 28567  	})
 28568  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28569  }
 28570  
 28571  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.converse" call.
 28572  // Any non-2xx status code is an error. Response headers are in either
 28573  // *GoogleCloudDiscoveryengineV1alphaConverseConversationResponse.ServerResponse
 28574  // .Header or (if a response was returned at all) in
 28575  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 28576  // whether the returned error was because http.StatusNotModified was returned.
 28577  func (c *ProjectsLocationsDataStoresConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConverseConversationResponse, error) {
 28578  	gensupport.SetOptions(c.urlParams_, opts...)
 28579  	res, err := c.doRequest("json")
 28580  	if res != nil && res.StatusCode == http.StatusNotModified {
 28581  		if res.Body != nil {
 28582  			res.Body.Close()
 28583  		}
 28584  		return nil, gensupport.WrapError(&googleapi.Error{
 28585  			Code:   res.StatusCode,
 28586  			Header: res.Header,
 28587  		})
 28588  	}
 28589  	if err != nil {
 28590  		return nil, err
 28591  	}
 28592  	defer googleapi.CloseBody(res)
 28593  	if err := googleapi.CheckResponse(res); err != nil {
 28594  		return nil, gensupport.WrapError(err)
 28595  	}
 28596  	ret := &GoogleCloudDiscoveryengineV1alphaConverseConversationResponse{
 28597  		ServerResponse: googleapi.ServerResponse{
 28598  			Header:         res.Header,
 28599  			HTTPStatusCode: res.StatusCode,
 28600  		},
 28601  	}
 28602  	target := &ret
 28603  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28604  		return nil, err
 28605  	}
 28606  	return ret, nil
 28607  }
 28608  
 28609  type ProjectsLocationsDataStoresConversationsCreateCall struct {
 28610  	s                                             *Service
 28611  	parent                                        string
 28612  	googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation
 28613  	urlParams_                                    gensupport.URLParams
 28614  	ctx_                                          context.Context
 28615  	header_                                       http.Header
 28616  }
 28617  
 28618  // Create: Creates a Conversation. If the Conversation to create already
 28619  // exists, an ALREADY_EXISTS error is returned.
 28620  //
 28621  //   - parent: Full resource name of parent data store. Format:
 28622  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 28623  //     /dataStores/{data_store_id}`.
 28624  func (r *ProjectsLocationsDataStoresConversationsService) Create(parent string, googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation) *ProjectsLocationsDataStoresConversationsCreateCall {
 28625  	c := &ProjectsLocationsDataStoresConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28626  	c.parent = parent
 28627  	c.googleclouddiscoveryenginev1alphaconversation = googleclouddiscoveryenginev1alphaconversation
 28628  	return c
 28629  }
 28630  
 28631  // Fields allows partial responses to be retrieved. See
 28632  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28633  // details.
 28634  func (c *ProjectsLocationsDataStoresConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsCreateCall {
 28635  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28636  	return c
 28637  }
 28638  
 28639  // Context sets the context to be used in this call's Do method.
 28640  func (c *ProjectsLocationsDataStoresConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsCreateCall {
 28641  	c.ctx_ = ctx
 28642  	return c
 28643  }
 28644  
 28645  // Header returns a http.Header that can be modified by the caller to add
 28646  // headers to the request.
 28647  func (c *ProjectsLocationsDataStoresConversationsCreateCall) Header() http.Header {
 28648  	if c.header_ == nil {
 28649  		c.header_ = make(http.Header)
 28650  	}
 28651  	return c.header_
 28652  }
 28653  
 28654  func (c *ProjectsLocationsDataStoresConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 28655  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28656  	var body io.Reader = nil
 28657  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconversation)
 28658  	if err != nil {
 28659  		return nil, err
 28660  	}
 28661  	c.urlParams_.Set("alt", alt)
 28662  	c.urlParams_.Set("prettyPrint", "false")
 28663  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversations")
 28664  	urls += "?" + c.urlParams_.Encode()
 28665  	req, err := http.NewRequest("POST", urls, body)
 28666  	if err != nil {
 28667  		return nil, err
 28668  	}
 28669  	req.Header = reqHeaders
 28670  	googleapi.Expand(req.URL, map[string]string{
 28671  		"parent": c.parent,
 28672  	})
 28673  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28674  }
 28675  
 28676  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.create" call.
 28677  // Any non-2xx status code is an error. Response headers are in either
 28678  // *GoogleCloudDiscoveryengineV1alphaConversation.ServerResponse.Header or (if
 28679  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 28680  // googleapi.IsNotModified to check whether the returned error was because
 28681  // http.StatusNotModified was returned.
 28682  func (c *ProjectsLocationsDataStoresConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
 28683  	gensupport.SetOptions(c.urlParams_, opts...)
 28684  	res, err := c.doRequest("json")
 28685  	if res != nil && res.StatusCode == http.StatusNotModified {
 28686  		if res.Body != nil {
 28687  			res.Body.Close()
 28688  		}
 28689  		return nil, gensupport.WrapError(&googleapi.Error{
 28690  			Code:   res.StatusCode,
 28691  			Header: res.Header,
 28692  		})
 28693  	}
 28694  	if err != nil {
 28695  		return nil, err
 28696  	}
 28697  	defer googleapi.CloseBody(res)
 28698  	if err := googleapi.CheckResponse(res); err != nil {
 28699  		return nil, gensupport.WrapError(err)
 28700  	}
 28701  	ret := &GoogleCloudDiscoveryengineV1alphaConversation{
 28702  		ServerResponse: googleapi.ServerResponse{
 28703  			Header:         res.Header,
 28704  			HTTPStatusCode: res.StatusCode,
 28705  		},
 28706  	}
 28707  	target := &ret
 28708  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28709  		return nil, err
 28710  	}
 28711  	return ret, nil
 28712  }
 28713  
 28714  type ProjectsLocationsDataStoresConversationsDeleteCall struct {
 28715  	s          *Service
 28716  	name       string
 28717  	urlParams_ gensupport.URLParams
 28718  	ctx_       context.Context
 28719  	header_    http.Header
 28720  }
 28721  
 28722  // Delete: Deletes a Conversation. If the Conversation to delete does not
 28723  // exist, a NOT_FOUND error is returned.
 28724  //
 28725  //   - name: The resource name of the Conversation to delete. Format:
 28726  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 28727  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 28728  func (r *ProjectsLocationsDataStoresConversationsService) Delete(name string) *ProjectsLocationsDataStoresConversationsDeleteCall {
 28729  	c := &ProjectsLocationsDataStoresConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28730  	c.name = name
 28731  	return c
 28732  }
 28733  
 28734  // Fields allows partial responses to be retrieved. See
 28735  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28736  // details.
 28737  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsDeleteCall {
 28738  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28739  	return c
 28740  }
 28741  
 28742  // Context sets the context to be used in this call's Do method.
 28743  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsDeleteCall {
 28744  	c.ctx_ = ctx
 28745  	return c
 28746  }
 28747  
 28748  // Header returns a http.Header that can be modified by the caller to add
 28749  // headers to the request.
 28750  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Header() http.Header {
 28751  	if c.header_ == nil {
 28752  		c.header_ = make(http.Header)
 28753  	}
 28754  	return c.header_
 28755  }
 28756  
 28757  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 28758  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28759  	var body io.Reader = nil
 28760  	c.urlParams_.Set("alt", alt)
 28761  	c.urlParams_.Set("prettyPrint", "false")
 28762  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 28763  	urls += "?" + c.urlParams_.Encode()
 28764  	req, err := http.NewRequest("DELETE", urls, body)
 28765  	if err != nil {
 28766  		return nil, err
 28767  	}
 28768  	req.Header = reqHeaders
 28769  	googleapi.Expand(req.URL, map[string]string{
 28770  		"name": c.name,
 28771  	})
 28772  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28773  }
 28774  
 28775  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.delete" call.
 28776  // Any non-2xx status code is an error. Response headers are in either
 28777  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 28778  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 28779  // check whether the returned error was because http.StatusNotModified was
 28780  // returned.
 28781  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 28782  	gensupport.SetOptions(c.urlParams_, opts...)
 28783  	res, err := c.doRequest("json")
 28784  	if res != nil && res.StatusCode == http.StatusNotModified {
 28785  		if res.Body != nil {
 28786  			res.Body.Close()
 28787  		}
 28788  		return nil, gensupport.WrapError(&googleapi.Error{
 28789  			Code:   res.StatusCode,
 28790  			Header: res.Header,
 28791  		})
 28792  	}
 28793  	if err != nil {
 28794  		return nil, err
 28795  	}
 28796  	defer googleapi.CloseBody(res)
 28797  	if err := googleapi.CheckResponse(res); err != nil {
 28798  		return nil, gensupport.WrapError(err)
 28799  	}
 28800  	ret := &GoogleProtobufEmpty{
 28801  		ServerResponse: googleapi.ServerResponse{
 28802  			Header:         res.Header,
 28803  			HTTPStatusCode: res.StatusCode,
 28804  		},
 28805  	}
 28806  	target := &ret
 28807  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28808  		return nil, err
 28809  	}
 28810  	return ret, nil
 28811  }
 28812  
 28813  type ProjectsLocationsDataStoresConversationsGetCall struct {
 28814  	s            *Service
 28815  	name         string
 28816  	urlParams_   gensupport.URLParams
 28817  	ifNoneMatch_ string
 28818  	ctx_         context.Context
 28819  	header_      http.Header
 28820  }
 28821  
 28822  // Get: Gets a Conversation.
 28823  //
 28824  //   - name: The resource name of the Conversation to get. Format:
 28825  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 28826  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 28827  func (r *ProjectsLocationsDataStoresConversationsService) Get(name string) *ProjectsLocationsDataStoresConversationsGetCall {
 28828  	c := &ProjectsLocationsDataStoresConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28829  	c.name = name
 28830  	return c
 28831  }
 28832  
 28833  // Fields allows partial responses to be retrieved. See
 28834  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28835  // details.
 28836  func (c *ProjectsLocationsDataStoresConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsGetCall {
 28837  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28838  	return c
 28839  }
 28840  
 28841  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28842  // object's ETag matches the given value. This is useful for getting updates
 28843  // only after the object has changed since the last request.
 28844  func (c *ProjectsLocationsDataStoresConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresConversationsGetCall {
 28845  	c.ifNoneMatch_ = entityTag
 28846  	return c
 28847  }
 28848  
 28849  // Context sets the context to be used in this call's Do method.
 28850  func (c *ProjectsLocationsDataStoresConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsGetCall {
 28851  	c.ctx_ = ctx
 28852  	return c
 28853  }
 28854  
 28855  // Header returns a http.Header that can be modified by the caller to add
 28856  // headers to the request.
 28857  func (c *ProjectsLocationsDataStoresConversationsGetCall) Header() http.Header {
 28858  	if c.header_ == nil {
 28859  		c.header_ = make(http.Header)
 28860  	}
 28861  	return c.header_
 28862  }
 28863  
 28864  func (c *ProjectsLocationsDataStoresConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 28865  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28866  	if c.ifNoneMatch_ != "" {
 28867  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28868  	}
 28869  	var body io.Reader = nil
 28870  	c.urlParams_.Set("alt", alt)
 28871  	c.urlParams_.Set("prettyPrint", "false")
 28872  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 28873  	urls += "?" + c.urlParams_.Encode()
 28874  	req, err := http.NewRequest("GET", urls, body)
 28875  	if err != nil {
 28876  		return nil, err
 28877  	}
 28878  	req.Header = reqHeaders
 28879  	googleapi.Expand(req.URL, map[string]string{
 28880  		"name": c.name,
 28881  	})
 28882  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28883  }
 28884  
 28885  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.get" call.
 28886  // Any non-2xx status code is an error. Response headers are in either
 28887  // *GoogleCloudDiscoveryengineV1alphaConversation.ServerResponse.Header or (if
 28888  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 28889  // googleapi.IsNotModified to check whether the returned error was because
 28890  // http.StatusNotModified was returned.
 28891  func (c *ProjectsLocationsDataStoresConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
 28892  	gensupport.SetOptions(c.urlParams_, opts...)
 28893  	res, err := c.doRequest("json")
 28894  	if res != nil && res.StatusCode == http.StatusNotModified {
 28895  		if res.Body != nil {
 28896  			res.Body.Close()
 28897  		}
 28898  		return nil, gensupport.WrapError(&googleapi.Error{
 28899  			Code:   res.StatusCode,
 28900  			Header: res.Header,
 28901  		})
 28902  	}
 28903  	if err != nil {
 28904  		return nil, err
 28905  	}
 28906  	defer googleapi.CloseBody(res)
 28907  	if err := googleapi.CheckResponse(res); err != nil {
 28908  		return nil, gensupport.WrapError(err)
 28909  	}
 28910  	ret := &GoogleCloudDiscoveryengineV1alphaConversation{
 28911  		ServerResponse: googleapi.ServerResponse{
 28912  			Header:         res.Header,
 28913  			HTTPStatusCode: res.StatusCode,
 28914  		},
 28915  	}
 28916  	target := &ret
 28917  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28918  		return nil, err
 28919  	}
 28920  	return ret, nil
 28921  }
 28922  
 28923  type ProjectsLocationsDataStoresConversationsListCall struct {
 28924  	s            *Service
 28925  	parent       string
 28926  	urlParams_   gensupport.URLParams
 28927  	ifNoneMatch_ string
 28928  	ctx_         context.Context
 28929  	header_      http.Header
 28930  }
 28931  
 28932  // List: Lists all Conversations by their parent DataStore.
 28933  //
 28934  //   - parent: The data store resource name. Format:
 28935  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 28936  //     /dataStores/{data_store_id}`.
 28937  func (r *ProjectsLocationsDataStoresConversationsService) List(parent string) *ProjectsLocationsDataStoresConversationsListCall {
 28938  	c := &ProjectsLocationsDataStoresConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28939  	c.parent = parent
 28940  	return c
 28941  }
 28942  
 28943  // Filter sets the optional parameter "filter": A filter to apply on the list
 28944  // results. The supported features are: user_pseudo_id, state. Example:
 28945  // "user_pseudo_id = some_id"
 28946  func (c *ProjectsLocationsDataStoresConversationsListCall) Filter(filter string) *ProjectsLocationsDataStoresConversationsListCall {
 28947  	c.urlParams_.Set("filter", filter)
 28948  	return c
 28949  }
 28950  
 28951  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 28952  // fields to order by, sorted in ascending order. Use "desc" after a field name
 28953  // for descending. Supported fields: * `update_time` * `create_time` *
 28954  // `conversation_name` Example: "update_time desc" "create_time"
 28955  func (c *ProjectsLocationsDataStoresConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsDataStoresConversationsListCall {
 28956  	c.urlParams_.Set("orderBy", orderBy)
 28957  	return c
 28958  }
 28959  
 28960  // PageSize sets the optional parameter "pageSize": Maximum number of results
 28961  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 28962  func (c *ProjectsLocationsDataStoresConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresConversationsListCall {
 28963  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 28964  	return c
 28965  }
 28966  
 28967  // PageToken sets the optional parameter "pageToken": A page token, received
 28968  // from a previous `ListConversations` call. Provide this to retrieve the
 28969  // subsequent page.
 28970  func (c *ProjectsLocationsDataStoresConversationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresConversationsListCall {
 28971  	c.urlParams_.Set("pageToken", pageToken)
 28972  	return c
 28973  }
 28974  
 28975  // Fields allows partial responses to be retrieved. See
 28976  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28977  // details.
 28978  func (c *ProjectsLocationsDataStoresConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsListCall {
 28979  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28980  	return c
 28981  }
 28982  
 28983  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28984  // object's ETag matches the given value. This is useful for getting updates
 28985  // only after the object has changed since the last request.
 28986  func (c *ProjectsLocationsDataStoresConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresConversationsListCall {
 28987  	c.ifNoneMatch_ = entityTag
 28988  	return c
 28989  }
 28990  
 28991  // Context sets the context to be used in this call's Do method.
 28992  func (c *ProjectsLocationsDataStoresConversationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsListCall {
 28993  	c.ctx_ = ctx
 28994  	return c
 28995  }
 28996  
 28997  // Header returns a http.Header that can be modified by the caller to add
 28998  // headers to the request.
 28999  func (c *ProjectsLocationsDataStoresConversationsListCall) Header() http.Header {
 29000  	if c.header_ == nil {
 29001  		c.header_ = make(http.Header)
 29002  	}
 29003  	return c.header_
 29004  }
 29005  
 29006  func (c *ProjectsLocationsDataStoresConversationsListCall) doRequest(alt string) (*http.Response, error) {
 29007  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29008  	if c.ifNoneMatch_ != "" {
 29009  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29010  	}
 29011  	var body io.Reader = nil
 29012  	c.urlParams_.Set("alt", alt)
 29013  	c.urlParams_.Set("prettyPrint", "false")
 29014  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversations")
 29015  	urls += "?" + c.urlParams_.Encode()
 29016  	req, err := http.NewRequest("GET", urls, body)
 29017  	if err != nil {
 29018  		return nil, err
 29019  	}
 29020  	req.Header = reqHeaders
 29021  	googleapi.Expand(req.URL, map[string]string{
 29022  		"parent": c.parent,
 29023  	})
 29024  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29025  }
 29026  
 29027  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.list" call.
 29028  // Any non-2xx status code is an error. Response headers are in either
 29029  // *GoogleCloudDiscoveryengineV1alphaListConversationsResponse.ServerResponse.He
 29030  // ader or (if a response was returned at all) in
 29031  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 29032  // whether the returned error was because http.StatusNotModified was returned.
 29033  func (c *ProjectsLocationsDataStoresConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListConversationsResponse, error) {
 29034  	gensupport.SetOptions(c.urlParams_, opts...)
 29035  	res, err := c.doRequest("json")
 29036  	if res != nil && res.StatusCode == http.StatusNotModified {
 29037  		if res.Body != nil {
 29038  			res.Body.Close()
 29039  		}
 29040  		return nil, gensupport.WrapError(&googleapi.Error{
 29041  			Code:   res.StatusCode,
 29042  			Header: res.Header,
 29043  		})
 29044  	}
 29045  	if err != nil {
 29046  		return nil, err
 29047  	}
 29048  	defer googleapi.CloseBody(res)
 29049  	if err := googleapi.CheckResponse(res); err != nil {
 29050  		return nil, gensupport.WrapError(err)
 29051  	}
 29052  	ret := &GoogleCloudDiscoveryengineV1alphaListConversationsResponse{
 29053  		ServerResponse: googleapi.ServerResponse{
 29054  			Header:         res.Header,
 29055  			HTTPStatusCode: res.StatusCode,
 29056  		},
 29057  	}
 29058  	target := &ret
 29059  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29060  		return nil, err
 29061  	}
 29062  	return ret, nil
 29063  }
 29064  
 29065  // Pages invokes f for each page of results.
 29066  // A non-nil error returned from f will halt the iteration.
 29067  // The provided context supersedes any context provided to the Context method.
 29068  func (c *ProjectsLocationsDataStoresConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListConversationsResponse) error) error {
 29069  	c.ctx_ = ctx
 29070  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 29071  	for {
 29072  		x, err := c.Do()
 29073  		if err != nil {
 29074  			return err
 29075  		}
 29076  		if err := f(x); err != nil {
 29077  			return err
 29078  		}
 29079  		if x.NextPageToken == "" {
 29080  			return nil
 29081  		}
 29082  		c.PageToken(x.NextPageToken)
 29083  	}
 29084  }
 29085  
 29086  type ProjectsLocationsDataStoresConversationsPatchCall struct {
 29087  	s                                             *Service
 29088  	name                                          string
 29089  	googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation
 29090  	urlParams_                                    gensupport.URLParams
 29091  	ctx_                                          context.Context
 29092  	header_                                       http.Header
 29093  }
 29094  
 29095  // Patch: Updates a Conversation. Conversation action type cannot be changed.
 29096  // If the Conversation to update does not exist, a NOT_FOUND error is returned.
 29097  //
 29098  //   - name: Immutable. Fully qualified name
 29099  //     `projects/{project}/locations/global/collections/{collection}/dataStore/*/c
 29100  //     onversations/*` or
 29101  //     `projects/{project}/locations/global/collections/{collection}/engines/*/con
 29102  //     versations/*`.
 29103  func (r *ProjectsLocationsDataStoresConversationsService) Patch(name string, googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation) *ProjectsLocationsDataStoresConversationsPatchCall {
 29104  	c := &ProjectsLocationsDataStoresConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29105  	c.name = name
 29106  	c.googleclouddiscoveryenginev1alphaconversation = googleclouddiscoveryenginev1alphaconversation
 29107  	return c
 29108  }
 29109  
 29110  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 29111  // in the provided Conversation to update. The following are NOT supported: *
 29112  // Conversation.name If not set or empty, all supported fields are updated.
 29113  func (c *ProjectsLocationsDataStoresConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresConversationsPatchCall {
 29114  	c.urlParams_.Set("updateMask", updateMask)
 29115  	return c
 29116  }
 29117  
 29118  // Fields allows partial responses to be retrieved. See
 29119  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29120  // details.
 29121  func (c *ProjectsLocationsDataStoresConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsPatchCall {
 29122  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29123  	return c
 29124  }
 29125  
 29126  // Context sets the context to be used in this call's Do method.
 29127  func (c *ProjectsLocationsDataStoresConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsPatchCall {
 29128  	c.ctx_ = ctx
 29129  	return c
 29130  }
 29131  
 29132  // Header returns a http.Header that can be modified by the caller to add
 29133  // headers to the request.
 29134  func (c *ProjectsLocationsDataStoresConversationsPatchCall) Header() http.Header {
 29135  	if c.header_ == nil {
 29136  		c.header_ = make(http.Header)
 29137  	}
 29138  	return c.header_
 29139  }
 29140  
 29141  func (c *ProjectsLocationsDataStoresConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
 29142  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29143  	var body io.Reader = nil
 29144  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconversation)
 29145  	if err != nil {
 29146  		return nil, err
 29147  	}
 29148  	c.urlParams_.Set("alt", alt)
 29149  	c.urlParams_.Set("prettyPrint", "false")
 29150  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 29151  	urls += "?" + c.urlParams_.Encode()
 29152  	req, err := http.NewRequest("PATCH", urls, body)
 29153  	if err != nil {
 29154  		return nil, err
 29155  	}
 29156  	req.Header = reqHeaders
 29157  	googleapi.Expand(req.URL, map[string]string{
 29158  		"name": c.name,
 29159  	})
 29160  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29161  }
 29162  
 29163  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.patch" call.
 29164  // Any non-2xx status code is an error. Response headers are in either
 29165  // *GoogleCloudDiscoveryengineV1alphaConversation.ServerResponse.Header or (if
 29166  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 29167  // googleapi.IsNotModified to check whether the returned error was because
 29168  // http.StatusNotModified was returned.
 29169  func (c *ProjectsLocationsDataStoresConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
 29170  	gensupport.SetOptions(c.urlParams_, opts...)
 29171  	res, err := c.doRequest("json")
 29172  	if res != nil && res.StatusCode == http.StatusNotModified {
 29173  		if res.Body != nil {
 29174  			res.Body.Close()
 29175  		}
 29176  		return nil, gensupport.WrapError(&googleapi.Error{
 29177  			Code:   res.StatusCode,
 29178  			Header: res.Header,
 29179  		})
 29180  	}
 29181  	if err != nil {
 29182  		return nil, err
 29183  	}
 29184  	defer googleapi.CloseBody(res)
 29185  	if err := googleapi.CheckResponse(res); err != nil {
 29186  		return nil, gensupport.WrapError(err)
 29187  	}
 29188  	ret := &GoogleCloudDiscoveryengineV1alphaConversation{
 29189  		ServerResponse: googleapi.ServerResponse{
 29190  			Header:         res.Header,
 29191  			HTTPStatusCode: res.StatusCode,
 29192  		},
 29193  	}
 29194  	target := &ret
 29195  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29196  		return nil, err
 29197  	}
 29198  	return ret, nil
 29199  }
 29200  
 29201  type ProjectsLocationsDataStoresModelsOperationsGetCall struct {
 29202  	s            *Service
 29203  	name         string
 29204  	urlParams_   gensupport.URLParams
 29205  	ifNoneMatch_ string
 29206  	ctx_         context.Context
 29207  	header_      http.Header
 29208  }
 29209  
 29210  // Get: Gets the latest state of a long-running operation. Clients can use this
 29211  // method to poll the operation result at intervals as recommended by the API
 29212  // service.
 29213  //
 29214  // - name: The name of the operation resource.
 29215  func (r *ProjectsLocationsDataStoresModelsOperationsService) Get(name string) *ProjectsLocationsDataStoresModelsOperationsGetCall {
 29216  	c := &ProjectsLocationsDataStoresModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29217  	c.name = name
 29218  	return c
 29219  }
 29220  
 29221  // Fields allows partial responses to be retrieved. See
 29222  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29223  // details.
 29224  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresModelsOperationsGetCall {
 29225  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29226  	return c
 29227  }
 29228  
 29229  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29230  // object's ETag matches the given value. This is useful for getting updates
 29231  // only after the object has changed since the last request.
 29232  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresModelsOperationsGetCall {
 29233  	c.ifNoneMatch_ = entityTag
 29234  	return c
 29235  }
 29236  
 29237  // Context sets the context to be used in this call's Do method.
 29238  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresModelsOperationsGetCall {
 29239  	c.ctx_ = ctx
 29240  	return c
 29241  }
 29242  
 29243  // Header returns a http.Header that can be modified by the caller to add
 29244  // headers to the request.
 29245  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Header() http.Header {
 29246  	if c.header_ == nil {
 29247  		c.header_ = make(http.Header)
 29248  	}
 29249  	return c.header_
 29250  }
 29251  
 29252  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 29253  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29254  	if c.ifNoneMatch_ != "" {
 29255  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29256  	}
 29257  	var body io.Reader = nil
 29258  	c.urlParams_.Set("alt", alt)
 29259  	c.urlParams_.Set("prettyPrint", "false")
 29260  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 29261  	urls += "?" + c.urlParams_.Encode()
 29262  	req, err := http.NewRequest("GET", urls, body)
 29263  	if err != nil {
 29264  		return nil, err
 29265  	}
 29266  	req.Header = reqHeaders
 29267  	googleapi.Expand(req.URL, map[string]string{
 29268  		"name": c.name,
 29269  	})
 29270  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29271  }
 29272  
 29273  // Do executes the "discoveryengine.projects.locations.dataStores.models.operations.get" call.
 29274  // Any non-2xx status code is an error. Response headers are in either
 29275  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29276  // returned at all) in error.(*googleapi.Error).Header. Use
 29277  // googleapi.IsNotModified to check whether the returned error was because
 29278  // http.StatusNotModified was returned.
 29279  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29280  	gensupport.SetOptions(c.urlParams_, opts...)
 29281  	res, err := c.doRequest("json")
 29282  	if res != nil && res.StatusCode == http.StatusNotModified {
 29283  		if res.Body != nil {
 29284  			res.Body.Close()
 29285  		}
 29286  		return nil, gensupport.WrapError(&googleapi.Error{
 29287  			Code:   res.StatusCode,
 29288  			Header: res.Header,
 29289  		})
 29290  	}
 29291  	if err != nil {
 29292  		return nil, err
 29293  	}
 29294  	defer googleapi.CloseBody(res)
 29295  	if err := googleapi.CheckResponse(res); err != nil {
 29296  		return nil, gensupport.WrapError(err)
 29297  	}
 29298  	ret := &GoogleLongrunningOperation{
 29299  		ServerResponse: googleapi.ServerResponse{
 29300  			Header:         res.Header,
 29301  			HTTPStatusCode: res.StatusCode,
 29302  		},
 29303  	}
 29304  	target := &ret
 29305  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29306  		return nil, err
 29307  	}
 29308  	return ret, nil
 29309  }
 29310  
 29311  type ProjectsLocationsDataStoresModelsOperationsListCall struct {
 29312  	s            *Service
 29313  	name         string
 29314  	urlParams_   gensupport.URLParams
 29315  	ifNoneMatch_ string
 29316  	ctx_         context.Context
 29317  	header_      http.Header
 29318  }
 29319  
 29320  // List: Lists operations that match the specified filter in the request. If
 29321  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 29322  //
 29323  // - name: The name of the operation's parent resource.
 29324  func (r *ProjectsLocationsDataStoresModelsOperationsService) List(name string) *ProjectsLocationsDataStoresModelsOperationsListCall {
 29325  	c := &ProjectsLocationsDataStoresModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29326  	c.name = name
 29327  	return c
 29328  }
 29329  
 29330  // Filter sets the optional parameter "filter": The standard list filter.
 29331  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresModelsOperationsListCall {
 29332  	c.urlParams_.Set("filter", filter)
 29333  	return c
 29334  }
 29335  
 29336  // PageSize sets the optional parameter "pageSize": The standard list page
 29337  // size.
 29338  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresModelsOperationsListCall {
 29339  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 29340  	return c
 29341  }
 29342  
 29343  // PageToken sets the optional parameter "pageToken": The standard list page
 29344  // token.
 29345  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresModelsOperationsListCall {
 29346  	c.urlParams_.Set("pageToken", pageToken)
 29347  	return c
 29348  }
 29349  
 29350  // Fields allows partial responses to be retrieved. See
 29351  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29352  // details.
 29353  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresModelsOperationsListCall {
 29354  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29355  	return c
 29356  }
 29357  
 29358  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29359  // object's ETag matches the given value. This is useful for getting updates
 29360  // only after the object has changed since the last request.
 29361  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresModelsOperationsListCall {
 29362  	c.ifNoneMatch_ = entityTag
 29363  	return c
 29364  }
 29365  
 29366  // Context sets the context to be used in this call's Do method.
 29367  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresModelsOperationsListCall {
 29368  	c.ctx_ = ctx
 29369  	return c
 29370  }
 29371  
 29372  // Header returns a http.Header that can be modified by the caller to add
 29373  // headers to the request.
 29374  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Header() http.Header {
 29375  	if c.header_ == nil {
 29376  		c.header_ = make(http.Header)
 29377  	}
 29378  	return c.header_
 29379  }
 29380  
 29381  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 29382  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29383  	if c.ifNoneMatch_ != "" {
 29384  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29385  	}
 29386  	var body io.Reader = nil
 29387  	c.urlParams_.Set("alt", alt)
 29388  	c.urlParams_.Set("prettyPrint", "false")
 29389  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 29390  	urls += "?" + c.urlParams_.Encode()
 29391  	req, err := http.NewRequest("GET", urls, body)
 29392  	if err != nil {
 29393  		return nil, err
 29394  	}
 29395  	req.Header = reqHeaders
 29396  	googleapi.Expand(req.URL, map[string]string{
 29397  		"name": c.name,
 29398  	})
 29399  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29400  }
 29401  
 29402  // Do executes the "discoveryengine.projects.locations.dataStores.models.operations.list" call.
 29403  // Any non-2xx status code is an error. Response headers are in either
 29404  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 29405  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29406  // googleapi.IsNotModified to check whether the returned error was because
 29407  // http.StatusNotModified was returned.
 29408  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 29409  	gensupport.SetOptions(c.urlParams_, opts...)
 29410  	res, err := c.doRequest("json")
 29411  	if res != nil && res.StatusCode == http.StatusNotModified {
 29412  		if res.Body != nil {
 29413  			res.Body.Close()
 29414  		}
 29415  		return nil, gensupport.WrapError(&googleapi.Error{
 29416  			Code:   res.StatusCode,
 29417  			Header: res.Header,
 29418  		})
 29419  	}
 29420  	if err != nil {
 29421  		return nil, err
 29422  	}
 29423  	defer googleapi.CloseBody(res)
 29424  	if err := googleapi.CheckResponse(res); err != nil {
 29425  		return nil, gensupport.WrapError(err)
 29426  	}
 29427  	ret := &GoogleLongrunningListOperationsResponse{
 29428  		ServerResponse: googleapi.ServerResponse{
 29429  			Header:         res.Header,
 29430  			HTTPStatusCode: res.StatusCode,
 29431  		},
 29432  	}
 29433  	target := &ret
 29434  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29435  		return nil, err
 29436  	}
 29437  	return ret, nil
 29438  }
 29439  
 29440  // Pages invokes f for each page of results.
 29441  // A non-nil error returned from f will halt the iteration.
 29442  // The provided context supersedes any context provided to the Context method.
 29443  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 29444  	c.ctx_ = ctx
 29445  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 29446  	for {
 29447  		x, err := c.Do()
 29448  		if err != nil {
 29449  			return err
 29450  		}
 29451  		if err := f(x); err != nil {
 29452  			return err
 29453  		}
 29454  		if x.NextPageToken == "" {
 29455  			return nil
 29456  		}
 29457  		c.PageToken(x.NextPageToken)
 29458  	}
 29459  }
 29460  
 29461  type ProjectsLocationsDataStoresOperationsGetCall struct {
 29462  	s            *Service
 29463  	name         string
 29464  	urlParams_   gensupport.URLParams
 29465  	ifNoneMatch_ string
 29466  	ctx_         context.Context
 29467  	header_      http.Header
 29468  }
 29469  
 29470  // Get: Gets the latest state of a long-running operation. Clients can use this
 29471  // method to poll the operation result at intervals as recommended by the API
 29472  // service.
 29473  //
 29474  // - name: The name of the operation resource.
 29475  func (r *ProjectsLocationsDataStoresOperationsService) Get(name string) *ProjectsLocationsDataStoresOperationsGetCall {
 29476  	c := &ProjectsLocationsDataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29477  	c.name = name
 29478  	return c
 29479  }
 29480  
 29481  // Fields allows partial responses to be retrieved. See
 29482  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29483  // details.
 29484  func (c *ProjectsLocationsDataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresOperationsGetCall {
 29485  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29486  	return c
 29487  }
 29488  
 29489  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29490  // object's ETag matches the given value. This is useful for getting updates
 29491  // only after the object has changed since the last request.
 29492  func (c *ProjectsLocationsDataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresOperationsGetCall {
 29493  	c.ifNoneMatch_ = entityTag
 29494  	return c
 29495  }
 29496  
 29497  // Context sets the context to be used in this call's Do method.
 29498  func (c *ProjectsLocationsDataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresOperationsGetCall {
 29499  	c.ctx_ = ctx
 29500  	return c
 29501  }
 29502  
 29503  // Header returns a http.Header that can be modified by the caller to add
 29504  // headers to the request.
 29505  func (c *ProjectsLocationsDataStoresOperationsGetCall) Header() http.Header {
 29506  	if c.header_ == nil {
 29507  		c.header_ = make(http.Header)
 29508  	}
 29509  	return c.header_
 29510  }
 29511  
 29512  func (c *ProjectsLocationsDataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 29513  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29514  	if c.ifNoneMatch_ != "" {
 29515  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29516  	}
 29517  	var body io.Reader = nil
 29518  	c.urlParams_.Set("alt", alt)
 29519  	c.urlParams_.Set("prettyPrint", "false")
 29520  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 29521  	urls += "?" + c.urlParams_.Encode()
 29522  	req, err := http.NewRequest("GET", urls, body)
 29523  	if err != nil {
 29524  		return nil, err
 29525  	}
 29526  	req.Header = reqHeaders
 29527  	googleapi.Expand(req.URL, map[string]string{
 29528  		"name": c.name,
 29529  	})
 29530  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29531  }
 29532  
 29533  // Do executes the "discoveryengine.projects.locations.dataStores.operations.get" call.
 29534  // Any non-2xx status code is an error. Response headers are in either
 29535  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29536  // returned at all) in error.(*googleapi.Error).Header. Use
 29537  // googleapi.IsNotModified to check whether the returned error was because
 29538  // http.StatusNotModified was returned.
 29539  func (c *ProjectsLocationsDataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29540  	gensupport.SetOptions(c.urlParams_, opts...)
 29541  	res, err := c.doRequest("json")
 29542  	if res != nil && res.StatusCode == http.StatusNotModified {
 29543  		if res.Body != nil {
 29544  			res.Body.Close()
 29545  		}
 29546  		return nil, gensupport.WrapError(&googleapi.Error{
 29547  			Code:   res.StatusCode,
 29548  			Header: res.Header,
 29549  		})
 29550  	}
 29551  	if err != nil {
 29552  		return nil, err
 29553  	}
 29554  	defer googleapi.CloseBody(res)
 29555  	if err := googleapi.CheckResponse(res); err != nil {
 29556  		return nil, gensupport.WrapError(err)
 29557  	}
 29558  	ret := &GoogleLongrunningOperation{
 29559  		ServerResponse: googleapi.ServerResponse{
 29560  			Header:         res.Header,
 29561  			HTTPStatusCode: res.StatusCode,
 29562  		},
 29563  	}
 29564  	target := &ret
 29565  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29566  		return nil, err
 29567  	}
 29568  	return ret, nil
 29569  }
 29570  
 29571  type ProjectsLocationsDataStoresOperationsListCall struct {
 29572  	s            *Service
 29573  	name         string
 29574  	urlParams_   gensupport.URLParams
 29575  	ifNoneMatch_ string
 29576  	ctx_         context.Context
 29577  	header_      http.Header
 29578  }
 29579  
 29580  // List: Lists operations that match the specified filter in the request. If
 29581  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 29582  //
 29583  // - name: The name of the operation's parent resource.
 29584  func (r *ProjectsLocationsDataStoresOperationsService) List(name string) *ProjectsLocationsDataStoresOperationsListCall {
 29585  	c := &ProjectsLocationsDataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29586  	c.name = name
 29587  	return c
 29588  }
 29589  
 29590  // Filter sets the optional parameter "filter": The standard list filter.
 29591  func (c *ProjectsLocationsDataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresOperationsListCall {
 29592  	c.urlParams_.Set("filter", filter)
 29593  	return c
 29594  }
 29595  
 29596  // PageSize sets the optional parameter "pageSize": The standard list page
 29597  // size.
 29598  func (c *ProjectsLocationsDataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresOperationsListCall {
 29599  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 29600  	return c
 29601  }
 29602  
 29603  // PageToken sets the optional parameter "pageToken": The standard list page
 29604  // token.
 29605  func (c *ProjectsLocationsDataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresOperationsListCall {
 29606  	c.urlParams_.Set("pageToken", pageToken)
 29607  	return c
 29608  }
 29609  
 29610  // Fields allows partial responses to be retrieved. See
 29611  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29612  // details.
 29613  func (c *ProjectsLocationsDataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresOperationsListCall {
 29614  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29615  	return c
 29616  }
 29617  
 29618  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29619  // object's ETag matches the given value. This is useful for getting updates
 29620  // only after the object has changed since the last request.
 29621  func (c *ProjectsLocationsDataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresOperationsListCall {
 29622  	c.ifNoneMatch_ = entityTag
 29623  	return c
 29624  }
 29625  
 29626  // Context sets the context to be used in this call's Do method.
 29627  func (c *ProjectsLocationsDataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresOperationsListCall {
 29628  	c.ctx_ = ctx
 29629  	return c
 29630  }
 29631  
 29632  // Header returns a http.Header that can be modified by the caller to add
 29633  // headers to the request.
 29634  func (c *ProjectsLocationsDataStoresOperationsListCall) Header() http.Header {
 29635  	if c.header_ == nil {
 29636  		c.header_ = make(http.Header)
 29637  	}
 29638  	return c.header_
 29639  }
 29640  
 29641  func (c *ProjectsLocationsDataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) {
 29642  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29643  	if c.ifNoneMatch_ != "" {
 29644  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29645  	}
 29646  	var body io.Reader = nil
 29647  	c.urlParams_.Set("alt", alt)
 29648  	c.urlParams_.Set("prettyPrint", "false")
 29649  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 29650  	urls += "?" + c.urlParams_.Encode()
 29651  	req, err := http.NewRequest("GET", urls, body)
 29652  	if err != nil {
 29653  		return nil, err
 29654  	}
 29655  	req.Header = reqHeaders
 29656  	googleapi.Expand(req.URL, map[string]string{
 29657  		"name": c.name,
 29658  	})
 29659  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29660  }
 29661  
 29662  // Do executes the "discoveryengine.projects.locations.dataStores.operations.list" call.
 29663  // Any non-2xx status code is an error. Response headers are in either
 29664  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 29665  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29666  // googleapi.IsNotModified to check whether the returned error was because
 29667  // http.StatusNotModified was returned.
 29668  func (c *ProjectsLocationsDataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 29669  	gensupport.SetOptions(c.urlParams_, opts...)
 29670  	res, err := c.doRequest("json")
 29671  	if res != nil && res.StatusCode == http.StatusNotModified {
 29672  		if res.Body != nil {
 29673  			res.Body.Close()
 29674  		}
 29675  		return nil, gensupport.WrapError(&googleapi.Error{
 29676  			Code:   res.StatusCode,
 29677  			Header: res.Header,
 29678  		})
 29679  	}
 29680  	if err != nil {
 29681  		return nil, err
 29682  	}
 29683  	defer googleapi.CloseBody(res)
 29684  	if err := googleapi.CheckResponse(res); err != nil {
 29685  		return nil, gensupport.WrapError(err)
 29686  	}
 29687  	ret := &GoogleLongrunningListOperationsResponse{
 29688  		ServerResponse: googleapi.ServerResponse{
 29689  			Header:         res.Header,
 29690  			HTTPStatusCode: res.StatusCode,
 29691  		},
 29692  	}
 29693  	target := &ret
 29694  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29695  		return nil, err
 29696  	}
 29697  	return ret, nil
 29698  }
 29699  
 29700  // Pages invokes f for each page of results.
 29701  // A non-nil error returned from f will halt the iteration.
 29702  // The provided context supersedes any context provided to the Context method.
 29703  func (c *ProjectsLocationsDataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 29704  	c.ctx_ = ctx
 29705  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 29706  	for {
 29707  		x, err := c.Do()
 29708  		if err != nil {
 29709  			return err
 29710  		}
 29711  		if err := f(x); err != nil {
 29712  			return err
 29713  		}
 29714  		if x.NextPageToken == "" {
 29715  			return nil
 29716  		}
 29717  		c.PageToken(x.NextPageToken)
 29718  	}
 29719  }
 29720  
 29721  type ProjectsLocationsDataStoresSchemasCreateCall struct {
 29722  	s                                       *Service
 29723  	parent                                  string
 29724  	googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema
 29725  	urlParams_                              gensupport.URLParams
 29726  	ctx_                                    context.Context
 29727  	header_                                 http.Header
 29728  }
 29729  
 29730  // Create: Creates a Schema.
 29731  //
 29732  //   - parent: The parent data store resource name, in the format of
 29733  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 29734  //     s/{data_store}`.
 29735  func (r *ProjectsLocationsDataStoresSchemasService) Create(parent string, googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema) *ProjectsLocationsDataStoresSchemasCreateCall {
 29736  	c := &ProjectsLocationsDataStoresSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29737  	c.parent = parent
 29738  	c.googleclouddiscoveryenginev1alphaschema = googleclouddiscoveryenginev1alphaschema
 29739  	return c
 29740  }
 29741  
 29742  // SchemaId sets the optional parameter "schemaId": Required. The ID to use for
 29743  // the Schema, which will become the final component of the Schema.name. This
 29744  // field should conform to RFC-1034 (https://tools.ietf.org/html/rfc1034)
 29745  // standard with a length limit of 63 characters.
 29746  func (c *ProjectsLocationsDataStoresSchemasCreateCall) SchemaId(schemaId string) *ProjectsLocationsDataStoresSchemasCreateCall {
 29747  	c.urlParams_.Set("schemaId", schemaId)
 29748  	return c
 29749  }
 29750  
 29751  // Fields allows partial responses to be retrieved. See
 29752  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29753  // details.
 29754  func (c *ProjectsLocationsDataStoresSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasCreateCall {
 29755  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29756  	return c
 29757  }
 29758  
 29759  // Context sets the context to be used in this call's Do method.
 29760  func (c *ProjectsLocationsDataStoresSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasCreateCall {
 29761  	c.ctx_ = ctx
 29762  	return c
 29763  }
 29764  
 29765  // Header returns a http.Header that can be modified by the caller to add
 29766  // headers to the request.
 29767  func (c *ProjectsLocationsDataStoresSchemasCreateCall) Header() http.Header {
 29768  	if c.header_ == nil {
 29769  		c.header_ = make(http.Header)
 29770  	}
 29771  	return c.header_
 29772  }
 29773  
 29774  func (c *ProjectsLocationsDataStoresSchemasCreateCall) doRequest(alt string) (*http.Response, error) {
 29775  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29776  	var body io.Reader = nil
 29777  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaschema)
 29778  	if err != nil {
 29779  		return nil, err
 29780  	}
 29781  	c.urlParams_.Set("alt", alt)
 29782  	c.urlParams_.Set("prettyPrint", "false")
 29783  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/schemas")
 29784  	urls += "?" + c.urlParams_.Encode()
 29785  	req, err := http.NewRequest("POST", urls, body)
 29786  	if err != nil {
 29787  		return nil, err
 29788  	}
 29789  	req.Header = reqHeaders
 29790  	googleapi.Expand(req.URL, map[string]string{
 29791  		"parent": c.parent,
 29792  	})
 29793  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29794  }
 29795  
 29796  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.create" call.
 29797  // Any non-2xx status code is an error. Response headers are in either
 29798  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29799  // returned at all) in error.(*googleapi.Error).Header. Use
 29800  // googleapi.IsNotModified to check whether the returned error was because
 29801  // http.StatusNotModified was returned.
 29802  func (c *ProjectsLocationsDataStoresSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29803  	gensupport.SetOptions(c.urlParams_, opts...)
 29804  	res, err := c.doRequest("json")
 29805  	if res != nil && res.StatusCode == http.StatusNotModified {
 29806  		if res.Body != nil {
 29807  			res.Body.Close()
 29808  		}
 29809  		return nil, gensupport.WrapError(&googleapi.Error{
 29810  			Code:   res.StatusCode,
 29811  			Header: res.Header,
 29812  		})
 29813  	}
 29814  	if err != nil {
 29815  		return nil, err
 29816  	}
 29817  	defer googleapi.CloseBody(res)
 29818  	if err := googleapi.CheckResponse(res); err != nil {
 29819  		return nil, gensupport.WrapError(err)
 29820  	}
 29821  	ret := &GoogleLongrunningOperation{
 29822  		ServerResponse: googleapi.ServerResponse{
 29823  			Header:         res.Header,
 29824  			HTTPStatusCode: res.StatusCode,
 29825  		},
 29826  	}
 29827  	target := &ret
 29828  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29829  		return nil, err
 29830  	}
 29831  	return ret, nil
 29832  }
 29833  
 29834  type ProjectsLocationsDataStoresSchemasDeleteCall struct {
 29835  	s          *Service
 29836  	name       string
 29837  	urlParams_ gensupport.URLParams
 29838  	ctx_       context.Context
 29839  	header_    http.Header
 29840  }
 29841  
 29842  // Delete: Deletes a Schema.
 29843  //
 29844  //   - name: The full resource name of the schema, in the format of
 29845  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 29846  //     s/{data_store}/schemas/{schema}`.
 29847  func (r *ProjectsLocationsDataStoresSchemasService) Delete(name string) *ProjectsLocationsDataStoresSchemasDeleteCall {
 29848  	c := &ProjectsLocationsDataStoresSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29849  	c.name = name
 29850  	return c
 29851  }
 29852  
 29853  // Fields allows partial responses to be retrieved. See
 29854  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29855  // details.
 29856  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasDeleteCall {
 29857  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29858  	return c
 29859  }
 29860  
 29861  // Context sets the context to be used in this call's Do method.
 29862  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasDeleteCall {
 29863  	c.ctx_ = ctx
 29864  	return c
 29865  }
 29866  
 29867  // Header returns a http.Header that can be modified by the caller to add
 29868  // headers to the request.
 29869  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Header() http.Header {
 29870  	if c.header_ == nil {
 29871  		c.header_ = make(http.Header)
 29872  	}
 29873  	return c.header_
 29874  }
 29875  
 29876  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) doRequest(alt string) (*http.Response, error) {
 29877  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29878  	var body io.Reader = nil
 29879  	c.urlParams_.Set("alt", alt)
 29880  	c.urlParams_.Set("prettyPrint", "false")
 29881  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 29882  	urls += "?" + c.urlParams_.Encode()
 29883  	req, err := http.NewRequest("DELETE", urls, body)
 29884  	if err != nil {
 29885  		return nil, err
 29886  	}
 29887  	req.Header = reqHeaders
 29888  	googleapi.Expand(req.URL, map[string]string{
 29889  		"name": c.name,
 29890  	})
 29891  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29892  }
 29893  
 29894  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.delete" call.
 29895  // Any non-2xx status code is an error. Response headers are in either
 29896  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29897  // returned at all) in error.(*googleapi.Error).Header. Use
 29898  // googleapi.IsNotModified to check whether the returned error was because
 29899  // http.StatusNotModified was returned.
 29900  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29901  	gensupport.SetOptions(c.urlParams_, opts...)
 29902  	res, err := c.doRequest("json")
 29903  	if res != nil && res.StatusCode == http.StatusNotModified {
 29904  		if res.Body != nil {
 29905  			res.Body.Close()
 29906  		}
 29907  		return nil, gensupport.WrapError(&googleapi.Error{
 29908  			Code:   res.StatusCode,
 29909  			Header: res.Header,
 29910  		})
 29911  	}
 29912  	if err != nil {
 29913  		return nil, err
 29914  	}
 29915  	defer googleapi.CloseBody(res)
 29916  	if err := googleapi.CheckResponse(res); err != nil {
 29917  		return nil, gensupport.WrapError(err)
 29918  	}
 29919  	ret := &GoogleLongrunningOperation{
 29920  		ServerResponse: googleapi.ServerResponse{
 29921  			Header:         res.Header,
 29922  			HTTPStatusCode: res.StatusCode,
 29923  		},
 29924  	}
 29925  	target := &ret
 29926  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29927  		return nil, err
 29928  	}
 29929  	return ret, nil
 29930  }
 29931  
 29932  type ProjectsLocationsDataStoresSchemasGetCall struct {
 29933  	s            *Service
 29934  	name         string
 29935  	urlParams_   gensupport.URLParams
 29936  	ifNoneMatch_ string
 29937  	ctx_         context.Context
 29938  	header_      http.Header
 29939  }
 29940  
 29941  // Get: Gets a Schema.
 29942  //
 29943  //   - name: The full resource name of the schema, in the format of
 29944  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 29945  //     s/{data_store}/schemas/{schema}`.
 29946  func (r *ProjectsLocationsDataStoresSchemasService) Get(name string) *ProjectsLocationsDataStoresSchemasGetCall {
 29947  	c := &ProjectsLocationsDataStoresSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29948  	c.name = name
 29949  	return c
 29950  }
 29951  
 29952  // Fields allows partial responses to be retrieved. See
 29953  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29954  // details.
 29955  func (c *ProjectsLocationsDataStoresSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasGetCall {
 29956  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29957  	return c
 29958  }
 29959  
 29960  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29961  // object's ETag matches the given value. This is useful for getting updates
 29962  // only after the object has changed since the last request.
 29963  func (c *ProjectsLocationsDataStoresSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSchemasGetCall {
 29964  	c.ifNoneMatch_ = entityTag
 29965  	return c
 29966  }
 29967  
 29968  // Context sets the context to be used in this call's Do method.
 29969  func (c *ProjectsLocationsDataStoresSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasGetCall {
 29970  	c.ctx_ = ctx
 29971  	return c
 29972  }
 29973  
 29974  // Header returns a http.Header that can be modified by the caller to add
 29975  // headers to the request.
 29976  func (c *ProjectsLocationsDataStoresSchemasGetCall) Header() http.Header {
 29977  	if c.header_ == nil {
 29978  		c.header_ = make(http.Header)
 29979  	}
 29980  	return c.header_
 29981  }
 29982  
 29983  func (c *ProjectsLocationsDataStoresSchemasGetCall) doRequest(alt string) (*http.Response, error) {
 29984  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29985  	if c.ifNoneMatch_ != "" {
 29986  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29987  	}
 29988  	var body io.Reader = nil
 29989  	c.urlParams_.Set("alt", alt)
 29990  	c.urlParams_.Set("prettyPrint", "false")
 29991  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 29992  	urls += "?" + c.urlParams_.Encode()
 29993  	req, err := http.NewRequest("GET", urls, body)
 29994  	if err != nil {
 29995  		return nil, err
 29996  	}
 29997  	req.Header = reqHeaders
 29998  	googleapi.Expand(req.URL, map[string]string{
 29999  		"name": c.name,
 30000  	})
 30001  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30002  }
 30003  
 30004  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.get" call.
 30005  // Any non-2xx status code is an error. Response headers are in either
 30006  // *GoogleCloudDiscoveryengineV1alphaSchema.ServerResponse.Header or (if a
 30007  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30008  // googleapi.IsNotModified to check whether the returned error was because
 30009  // http.StatusNotModified was returned.
 30010  func (c *ProjectsLocationsDataStoresSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSchema, error) {
 30011  	gensupport.SetOptions(c.urlParams_, opts...)
 30012  	res, err := c.doRequest("json")
 30013  	if res != nil && res.StatusCode == http.StatusNotModified {
 30014  		if res.Body != nil {
 30015  			res.Body.Close()
 30016  		}
 30017  		return nil, gensupport.WrapError(&googleapi.Error{
 30018  			Code:   res.StatusCode,
 30019  			Header: res.Header,
 30020  		})
 30021  	}
 30022  	if err != nil {
 30023  		return nil, err
 30024  	}
 30025  	defer googleapi.CloseBody(res)
 30026  	if err := googleapi.CheckResponse(res); err != nil {
 30027  		return nil, gensupport.WrapError(err)
 30028  	}
 30029  	ret := &GoogleCloudDiscoveryengineV1alphaSchema{
 30030  		ServerResponse: googleapi.ServerResponse{
 30031  			Header:         res.Header,
 30032  			HTTPStatusCode: res.StatusCode,
 30033  		},
 30034  	}
 30035  	target := &ret
 30036  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30037  		return nil, err
 30038  	}
 30039  	return ret, nil
 30040  }
 30041  
 30042  type ProjectsLocationsDataStoresSchemasListCall struct {
 30043  	s            *Service
 30044  	parent       string
 30045  	urlParams_   gensupport.URLParams
 30046  	ifNoneMatch_ string
 30047  	ctx_         context.Context
 30048  	header_      http.Header
 30049  }
 30050  
 30051  // List: Gets a list of Schemas.
 30052  //
 30053  //   - parent: The parent data store resource name, in the format of
 30054  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 30055  //     s/{data_store}`.
 30056  func (r *ProjectsLocationsDataStoresSchemasService) List(parent string) *ProjectsLocationsDataStoresSchemasListCall {
 30057  	c := &ProjectsLocationsDataStoresSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30058  	c.parent = parent
 30059  	return c
 30060  }
 30061  
 30062  // PageSize sets the optional parameter "pageSize": The maximum number of
 30063  // Schemas to return. The service may return fewer than this value. If
 30064  // unspecified, at most 100 Schemas will be returned. The maximum value is
 30065  // 1000; values above 1000 will be coerced to 1000.
 30066  func (c *ProjectsLocationsDataStoresSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSchemasListCall {
 30067  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 30068  	return c
 30069  }
 30070  
 30071  // PageToken sets the optional parameter "pageToken": A page token, received
 30072  // from a previous SchemaService.ListSchemas call. Provide this to retrieve the
 30073  // subsequent page. When paginating, all other parameters provided to
 30074  // SchemaService.ListSchemas must match the call that provided the page token.
 30075  func (c *ProjectsLocationsDataStoresSchemasListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSchemasListCall {
 30076  	c.urlParams_.Set("pageToken", pageToken)
 30077  	return c
 30078  }
 30079  
 30080  // Fields allows partial responses to be retrieved. See
 30081  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30082  // details.
 30083  func (c *ProjectsLocationsDataStoresSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasListCall {
 30084  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30085  	return c
 30086  }
 30087  
 30088  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30089  // object's ETag matches the given value. This is useful for getting updates
 30090  // only after the object has changed since the last request.
 30091  func (c *ProjectsLocationsDataStoresSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSchemasListCall {
 30092  	c.ifNoneMatch_ = entityTag
 30093  	return c
 30094  }
 30095  
 30096  // Context sets the context to be used in this call's Do method.
 30097  func (c *ProjectsLocationsDataStoresSchemasListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasListCall {
 30098  	c.ctx_ = ctx
 30099  	return c
 30100  }
 30101  
 30102  // Header returns a http.Header that can be modified by the caller to add
 30103  // headers to the request.
 30104  func (c *ProjectsLocationsDataStoresSchemasListCall) Header() http.Header {
 30105  	if c.header_ == nil {
 30106  		c.header_ = make(http.Header)
 30107  	}
 30108  	return c.header_
 30109  }
 30110  
 30111  func (c *ProjectsLocationsDataStoresSchemasListCall) doRequest(alt string) (*http.Response, error) {
 30112  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30113  	if c.ifNoneMatch_ != "" {
 30114  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30115  	}
 30116  	var body io.Reader = nil
 30117  	c.urlParams_.Set("alt", alt)
 30118  	c.urlParams_.Set("prettyPrint", "false")
 30119  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/schemas")
 30120  	urls += "?" + c.urlParams_.Encode()
 30121  	req, err := http.NewRequest("GET", urls, body)
 30122  	if err != nil {
 30123  		return nil, err
 30124  	}
 30125  	req.Header = reqHeaders
 30126  	googleapi.Expand(req.URL, map[string]string{
 30127  		"parent": c.parent,
 30128  	})
 30129  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30130  }
 30131  
 30132  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.list" call.
 30133  // Any non-2xx status code is an error. Response headers are in either
 30134  // *GoogleCloudDiscoveryengineV1alphaListSchemasResponse.ServerResponse.Header
 30135  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 30136  // Use googleapi.IsNotModified to check whether the returned error was because
 30137  // http.StatusNotModified was returned.
 30138  func (c *ProjectsLocationsDataStoresSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListSchemasResponse, error) {
 30139  	gensupport.SetOptions(c.urlParams_, opts...)
 30140  	res, err := c.doRequest("json")
 30141  	if res != nil && res.StatusCode == http.StatusNotModified {
 30142  		if res.Body != nil {
 30143  			res.Body.Close()
 30144  		}
 30145  		return nil, gensupport.WrapError(&googleapi.Error{
 30146  			Code:   res.StatusCode,
 30147  			Header: res.Header,
 30148  		})
 30149  	}
 30150  	if err != nil {
 30151  		return nil, err
 30152  	}
 30153  	defer googleapi.CloseBody(res)
 30154  	if err := googleapi.CheckResponse(res); err != nil {
 30155  		return nil, gensupport.WrapError(err)
 30156  	}
 30157  	ret := &GoogleCloudDiscoveryengineV1alphaListSchemasResponse{
 30158  		ServerResponse: googleapi.ServerResponse{
 30159  			Header:         res.Header,
 30160  			HTTPStatusCode: res.StatusCode,
 30161  		},
 30162  	}
 30163  	target := &ret
 30164  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30165  		return nil, err
 30166  	}
 30167  	return ret, nil
 30168  }
 30169  
 30170  // Pages invokes f for each page of results.
 30171  // A non-nil error returned from f will halt the iteration.
 30172  // The provided context supersedes any context provided to the Context method.
 30173  func (c *ProjectsLocationsDataStoresSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListSchemasResponse) error) error {
 30174  	c.ctx_ = ctx
 30175  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 30176  	for {
 30177  		x, err := c.Do()
 30178  		if err != nil {
 30179  			return err
 30180  		}
 30181  		if err := f(x); err != nil {
 30182  			return err
 30183  		}
 30184  		if x.NextPageToken == "" {
 30185  			return nil
 30186  		}
 30187  		c.PageToken(x.NextPageToken)
 30188  	}
 30189  }
 30190  
 30191  type ProjectsLocationsDataStoresSchemasPatchCall struct {
 30192  	s                                       *Service
 30193  	name                                    string
 30194  	googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema
 30195  	urlParams_                              gensupport.URLParams
 30196  	ctx_                                    context.Context
 30197  	header_                                 http.Header
 30198  }
 30199  
 30200  // Patch: Updates a Schema.
 30201  //
 30202  //   - name: Immutable. The full resource name of the schema, in the format of
 30203  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 30204  //     s/{data_store}/schemas/{schema}`. This field must be a UTF-8 encoded
 30205  //     string with a length limit of 1024 characters.
 30206  func (r *ProjectsLocationsDataStoresSchemasService) Patch(name string, googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema) *ProjectsLocationsDataStoresSchemasPatchCall {
 30207  	c := &ProjectsLocationsDataStoresSchemasPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30208  	c.name = name
 30209  	c.googleclouddiscoveryenginev1alphaschema = googleclouddiscoveryenginev1alphaschema
 30210  	return c
 30211  }
 30212  
 30213  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 30214  // the Schema is not found, a new Schema will be created. In this situation,
 30215  // `update_mask` is ignored.
 30216  func (c *ProjectsLocationsDataStoresSchemasPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDataStoresSchemasPatchCall {
 30217  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 30218  	return c
 30219  }
 30220  
 30221  // Fields allows partial responses to be retrieved. See
 30222  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30223  // details.
 30224  func (c *ProjectsLocationsDataStoresSchemasPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasPatchCall {
 30225  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30226  	return c
 30227  }
 30228  
 30229  // Context sets the context to be used in this call's Do method.
 30230  func (c *ProjectsLocationsDataStoresSchemasPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasPatchCall {
 30231  	c.ctx_ = ctx
 30232  	return c
 30233  }
 30234  
 30235  // Header returns a http.Header that can be modified by the caller to add
 30236  // headers to the request.
 30237  func (c *ProjectsLocationsDataStoresSchemasPatchCall) Header() http.Header {
 30238  	if c.header_ == nil {
 30239  		c.header_ = make(http.Header)
 30240  	}
 30241  	return c.header_
 30242  }
 30243  
 30244  func (c *ProjectsLocationsDataStoresSchemasPatchCall) doRequest(alt string) (*http.Response, error) {
 30245  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30246  	var body io.Reader = nil
 30247  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaschema)
 30248  	if err != nil {
 30249  		return nil, err
 30250  	}
 30251  	c.urlParams_.Set("alt", alt)
 30252  	c.urlParams_.Set("prettyPrint", "false")
 30253  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 30254  	urls += "?" + c.urlParams_.Encode()
 30255  	req, err := http.NewRequest("PATCH", urls, body)
 30256  	if err != nil {
 30257  		return nil, err
 30258  	}
 30259  	req.Header = reqHeaders
 30260  	googleapi.Expand(req.URL, map[string]string{
 30261  		"name": c.name,
 30262  	})
 30263  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30264  }
 30265  
 30266  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.patch" call.
 30267  // Any non-2xx status code is an error. Response headers are in either
 30268  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 30269  // returned at all) in error.(*googleapi.Error).Header. Use
 30270  // googleapi.IsNotModified to check whether the returned error was because
 30271  // http.StatusNotModified was returned.
 30272  func (c *ProjectsLocationsDataStoresSchemasPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 30273  	gensupport.SetOptions(c.urlParams_, opts...)
 30274  	res, err := c.doRequest("json")
 30275  	if res != nil && res.StatusCode == http.StatusNotModified {
 30276  		if res.Body != nil {
 30277  			res.Body.Close()
 30278  		}
 30279  		return nil, gensupport.WrapError(&googleapi.Error{
 30280  			Code:   res.StatusCode,
 30281  			Header: res.Header,
 30282  		})
 30283  	}
 30284  	if err != nil {
 30285  		return nil, err
 30286  	}
 30287  	defer googleapi.CloseBody(res)
 30288  	if err := googleapi.CheckResponse(res); err != nil {
 30289  		return nil, gensupport.WrapError(err)
 30290  	}
 30291  	ret := &GoogleLongrunningOperation{
 30292  		ServerResponse: googleapi.ServerResponse{
 30293  			Header:         res.Header,
 30294  			HTTPStatusCode: res.StatusCode,
 30295  		},
 30296  	}
 30297  	target := &ret
 30298  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30299  		return nil, err
 30300  	}
 30301  	return ret, nil
 30302  }
 30303  
 30304  type ProjectsLocationsDataStoresServingConfigsAnswerCall struct {
 30305  	s                                                   *Service
 30306  	servingConfig                                       string
 30307  	googleclouddiscoveryenginev1alphaanswerqueryrequest *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
 30308  	urlParams_                                          gensupport.URLParams
 30309  	ctx_                                                context.Context
 30310  	header_                                             http.Header
 30311  }
 30312  
 30313  // Answer: Answer query method.
 30314  //
 30315  //   - servingConfig: The resource name of the Search serving config, such as
 30316  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 30317  //     ngConfigs/default_serving_config`, or
 30318  //     `projects/*/locations/global/collections/default_collection/dataStores/*/se
 30319  //     rvingConfigs/default_serving_config`. This field is used to identify the
 30320  //     serving configuration name, set of models used to make the search.
 30321  func (r *ProjectsLocationsDataStoresServingConfigsService) Answer(servingConfig string, googleclouddiscoveryenginev1alphaanswerqueryrequest *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest) *ProjectsLocationsDataStoresServingConfigsAnswerCall {
 30322  	c := &ProjectsLocationsDataStoresServingConfigsAnswerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30323  	c.servingConfig = servingConfig
 30324  	c.googleclouddiscoveryenginev1alphaanswerqueryrequest = googleclouddiscoveryenginev1alphaanswerqueryrequest
 30325  	return c
 30326  }
 30327  
 30328  // Fields allows partial responses to be retrieved. See
 30329  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30330  // details.
 30331  func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsAnswerCall {
 30332  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30333  	return c
 30334  }
 30335  
 30336  // Context sets the context to be used in this call's Do method.
 30337  func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsAnswerCall {
 30338  	c.ctx_ = ctx
 30339  	return c
 30340  }
 30341  
 30342  // Header returns a http.Header that can be modified by the caller to add
 30343  // headers to the request.
 30344  func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Header() http.Header {
 30345  	if c.header_ == nil {
 30346  		c.header_ = make(http.Header)
 30347  	}
 30348  	return c.header_
 30349  }
 30350  
 30351  func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) doRequest(alt string) (*http.Response, error) {
 30352  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30353  	var body io.Reader = nil
 30354  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaanswerqueryrequest)
 30355  	if err != nil {
 30356  		return nil, err
 30357  	}
 30358  	c.urlParams_.Set("alt", alt)
 30359  	c.urlParams_.Set("prettyPrint", "false")
 30360  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:answer")
 30361  	urls += "?" + c.urlParams_.Encode()
 30362  	req, err := http.NewRequest("POST", urls, body)
 30363  	if err != nil {
 30364  		return nil, err
 30365  	}
 30366  	req.Header = reqHeaders
 30367  	googleapi.Expand(req.URL, map[string]string{
 30368  		"servingConfig": c.servingConfig,
 30369  	})
 30370  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30371  }
 30372  
 30373  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.answer" call.
 30374  // Any non-2xx status code is an error. Response headers are in either
 30375  // *GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse.ServerResponse.Header
 30376  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 30377  // Use googleapi.IsNotModified to check whether the returned error was because
 30378  // http.StatusNotModified was returned.
 30379  func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse, error) {
 30380  	gensupport.SetOptions(c.urlParams_, opts...)
 30381  	res, err := c.doRequest("json")
 30382  	if res != nil && res.StatusCode == http.StatusNotModified {
 30383  		if res.Body != nil {
 30384  			res.Body.Close()
 30385  		}
 30386  		return nil, gensupport.WrapError(&googleapi.Error{
 30387  			Code:   res.StatusCode,
 30388  			Header: res.Header,
 30389  		})
 30390  	}
 30391  	if err != nil {
 30392  		return nil, err
 30393  	}
 30394  	defer googleapi.CloseBody(res)
 30395  	if err := googleapi.CheckResponse(res); err != nil {
 30396  		return nil, gensupport.WrapError(err)
 30397  	}
 30398  	ret := &GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse{
 30399  		ServerResponse: googleapi.ServerResponse{
 30400  			Header:         res.Header,
 30401  			HTTPStatusCode: res.StatusCode,
 30402  		},
 30403  	}
 30404  	target := &ret
 30405  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30406  		return nil, err
 30407  	}
 30408  	return ret, nil
 30409  }
 30410  
 30411  type ProjectsLocationsDataStoresServingConfigsGetCall struct {
 30412  	s            *Service
 30413  	name         string
 30414  	urlParams_   gensupport.URLParams
 30415  	ifNoneMatch_ string
 30416  	ctx_         context.Context
 30417  	header_      http.Header
 30418  }
 30419  
 30420  // Get: Gets a ServingConfig. Returns a NotFound error if the ServingConfig
 30421  // does not exist.
 30422  //
 30423  //   - name: The resource name of the ServingConfig to get. Format:
 30424  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 30425  //     gines/{engine}/servingConfigs/{serving_config_id}`.
 30426  func (r *ProjectsLocationsDataStoresServingConfigsService) Get(name string) *ProjectsLocationsDataStoresServingConfigsGetCall {
 30427  	c := &ProjectsLocationsDataStoresServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30428  	c.name = name
 30429  	return c
 30430  }
 30431  
 30432  // Fields allows partial responses to be retrieved. See
 30433  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30434  // details.
 30435  func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsGetCall {
 30436  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30437  	return c
 30438  }
 30439  
 30440  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30441  // object's ETag matches the given value. This is useful for getting updates
 30442  // only after the object has changed since the last request.
 30443  func (c *ProjectsLocationsDataStoresServingConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresServingConfigsGetCall {
 30444  	c.ifNoneMatch_ = entityTag
 30445  	return c
 30446  }
 30447  
 30448  // Context sets the context to be used in this call's Do method.
 30449  func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsGetCall {
 30450  	c.ctx_ = ctx
 30451  	return c
 30452  }
 30453  
 30454  // Header returns a http.Header that can be modified by the caller to add
 30455  // headers to the request.
 30456  func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Header() http.Header {
 30457  	if c.header_ == nil {
 30458  		c.header_ = make(http.Header)
 30459  	}
 30460  	return c.header_
 30461  }
 30462  
 30463  func (c *ProjectsLocationsDataStoresServingConfigsGetCall) doRequest(alt string) (*http.Response, error) {
 30464  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30465  	if c.ifNoneMatch_ != "" {
 30466  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30467  	}
 30468  	var body io.Reader = nil
 30469  	c.urlParams_.Set("alt", alt)
 30470  	c.urlParams_.Set("prettyPrint", "false")
 30471  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 30472  	urls += "?" + c.urlParams_.Encode()
 30473  	req, err := http.NewRequest("GET", urls, body)
 30474  	if err != nil {
 30475  		return nil, err
 30476  	}
 30477  	req.Header = reqHeaders
 30478  	googleapi.Expand(req.URL, map[string]string{
 30479  		"name": c.name,
 30480  	})
 30481  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30482  }
 30483  
 30484  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.get" call.
 30485  // Any non-2xx status code is an error. Response headers are in either
 30486  // *GoogleCloudDiscoveryengineV1alphaServingConfig.ServerResponse.Header or (if
 30487  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 30488  // googleapi.IsNotModified to check whether the returned error was because
 30489  // http.StatusNotModified was returned.
 30490  func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaServingConfig, error) {
 30491  	gensupport.SetOptions(c.urlParams_, opts...)
 30492  	res, err := c.doRequest("json")
 30493  	if res != nil && res.StatusCode == http.StatusNotModified {
 30494  		if res.Body != nil {
 30495  			res.Body.Close()
 30496  		}
 30497  		return nil, gensupport.WrapError(&googleapi.Error{
 30498  			Code:   res.StatusCode,
 30499  			Header: res.Header,
 30500  		})
 30501  	}
 30502  	if err != nil {
 30503  		return nil, err
 30504  	}
 30505  	defer googleapi.CloseBody(res)
 30506  	if err := googleapi.CheckResponse(res); err != nil {
 30507  		return nil, gensupport.WrapError(err)
 30508  	}
 30509  	ret := &GoogleCloudDiscoveryengineV1alphaServingConfig{
 30510  		ServerResponse: googleapi.ServerResponse{
 30511  			Header:         res.Header,
 30512  			HTTPStatusCode: res.StatusCode,
 30513  		},
 30514  	}
 30515  	target := &ret
 30516  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30517  		return nil, err
 30518  	}
 30519  	return ret, nil
 30520  }
 30521  
 30522  type ProjectsLocationsDataStoresServingConfigsListCall struct {
 30523  	s            *Service
 30524  	parent       string
 30525  	urlParams_   gensupport.URLParams
 30526  	ifNoneMatch_ string
 30527  	ctx_         context.Context
 30528  	header_      http.Header
 30529  }
 30530  
 30531  // List: Lists all ServingConfigs linked to this dataStore.
 30532  //
 30533  //   - parent: Full resource name of the parent resource. Format:
 30534  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 30535  //     gines/{engine}`.
 30536  func (r *ProjectsLocationsDataStoresServingConfigsService) List(parent string) *ProjectsLocationsDataStoresServingConfigsListCall {
 30537  	c := &ProjectsLocationsDataStoresServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30538  	c.parent = parent
 30539  	return c
 30540  }
 30541  
 30542  // PageSize sets the optional parameter "pageSize": Maximum number of results
 30543  // to return. If unspecified, defaults to 100. If a value greater than 100 is
 30544  // provided, at most 100 results are returned.
 30545  func (c *ProjectsLocationsDataStoresServingConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresServingConfigsListCall {
 30546  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 30547  	return c
 30548  }
 30549  
 30550  // PageToken sets the optional parameter "pageToken": A page token, received
 30551  // from a previous `ListServingConfigs` call. Provide this to retrieve the
 30552  // subsequent page.
 30553  func (c *ProjectsLocationsDataStoresServingConfigsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresServingConfigsListCall {
 30554  	c.urlParams_.Set("pageToken", pageToken)
 30555  	return c
 30556  }
 30557  
 30558  // Fields allows partial responses to be retrieved. See
 30559  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30560  // details.
 30561  func (c *ProjectsLocationsDataStoresServingConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsListCall {
 30562  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30563  	return c
 30564  }
 30565  
 30566  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30567  // object's ETag matches the given value. This is useful for getting updates
 30568  // only after the object has changed since the last request.
 30569  func (c *ProjectsLocationsDataStoresServingConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresServingConfigsListCall {
 30570  	c.ifNoneMatch_ = entityTag
 30571  	return c
 30572  }
 30573  
 30574  // Context sets the context to be used in this call's Do method.
 30575  func (c *ProjectsLocationsDataStoresServingConfigsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsListCall {
 30576  	c.ctx_ = ctx
 30577  	return c
 30578  }
 30579  
 30580  // Header returns a http.Header that can be modified by the caller to add
 30581  // headers to the request.
 30582  func (c *ProjectsLocationsDataStoresServingConfigsListCall) Header() http.Header {
 30583  	if c.header_ == nil {
 30584  		c.header_ = make(http.Header)
 30585  	}
 30586  	return c.header_
 30587  }
 30588  
 30589  func (c *ProjectsLocationsDataStoresServingConfigsListCall) doRequest(alt string) (*http.Response, error) {
 30590  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30591  	if c.ifNoneMatch_ != "" {
 30592  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30593  	}
 30594  	var body io.Reader = nil
 30595  	c.urlParams_.Set("alt", alt)
 30596  	c.urlParams_.Set("prettyPrint", "false")
 30597  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/servingConfigs")
 30598  	urls += "?" + c.urlParams_.Encode()
 30599  	req, err := http.NewRequest("GET", urls, body)
 30600  	if err != nil {
 30601  		return nil, err
 30602  	}
 30603  	req.Header = reqHeaders
 30604  	googleapi.Expand(req.URL, map[string]string{
 30605  		"parent": c.parent,
 30606  	})
 30607  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30608  }
 30609  
 30610  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.list" call.
 30611  // Any non-2xx status code is an error. Response headers are in either
 30612  // *GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse.ServerResponse.H
 30613  // eader or (if a response was returned at all) in
 30614  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 30615  // whether the returned error was because http.StatusNotModified was returned.
 30616  func (c *ProjectsLocationsDataStoresServingConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse, error) {
 30617  	gensupport.SetOptions(c.urlParams_, opts...)
 30618  	res, err := c.doRequest("json")
 30619  	if res != nil && res.StatusCode == http.StatusNotModified {
 30620  		if res.Body != nil {
 30621  			res.Body.Close()
 30622  		}
 30623  		return nil, gensupport.WrapError(&googleapi.Error{
 30624  			Code:   res.StatusCode,
 30625  			Header: res.Header,
 30626  		})
 30627  	}
 30628  	if err != nil {
 30629  		return nil, err
 30630  	}
 30631  	defer googleapi.CloseBody(res)
 30632  	if err := googleapi.CheckResponse(res); err != nil {
 30633  		return nil, gensupport.WrapError(err)
 30634  	}
 30635  	ret := &GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse{
 30636  		ServerResponse: googleapi.ServerResponse{
 30637  			Header:         res.Header,
 30638  			HTTPStatusCode: res.StatusCode,
 30639  		},
 30640  	}
 30641  	target := &ret
 30642  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30643  		return nil, err
 30644  	}
 30645  	return ret, nil
 30646  }
 30647  
 30648  // Pages invokes f for each page of results.
 30649  // A non-nil error returned from f will halt the iteration.
 30650  // The provided context supersedes any context provided to the Context method.
 30651  func (c *ProjectsLocationsDataStoresServingConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse) error) error {
 30652  	c.ctx_ = ctx
 30653  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 30654  	for {
 30655  		x, err := c.Do()
 30656  		if err != nil {
 30657  			return err
 30658  		}
 30659  		if err := f(x); err != nil {
 30660  			return err
 30661  		}
 30662  		if x.NextPageToken == "" {
 30663  			return nil
 30664  		}
 30665  		c.PageToken(x.NextPageToken)
 30666  	}
 30667  }
 30668  
 30669  type ProjectsLocationsDataStoresServingConfigsPatchCall struct {
 30670  	s                                              *Service
 30671  	name                                           string
 30672  	googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig
 30673  	urlParams_                                     gensupport.URLParams
 30674  	ctx_                                           context.Context
 30675  	header_                                        http.Header
 30676  }
 30677  
 30678  // Patch: Updates a ServingConfig. Returns a NOT_FOUND error if the
 30679  // ServingConfig does not exist.
 30680  //
 30681  //   - name: Immutable. Fully qualified name
 30682  //     `projects/{project}/locations/{location}/collections/{collection_id}/engine
 30683  //     s/{engine_id}/servingConfigs/{serving_config_id}`.
 30684  func (r *ProjectsLocationsDataStoresServingConfigsService) Patch(name string, googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig) *ProjectsLocationsDataStoresServingConfigsPatchCall {
 30685  	c := &ProjectsLocationsDataStoresServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30686  	c.name = name
 30687  	c.googleclouddiscoveryenginev1alphaservingconfig = googleclouddiscoveryenginev1alphaservingconfig
 30688  	return c
 30689  }
 30690  
 30691  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 30692  // in the provided ServingConfig to update. The following are NOT supported: *
 30693  // ServingConfig.name If not set, all supported fields are updated.
 30694  func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresServingConfigsPatchCall {
 30695  	c.urlParams_.Set("updateMask", updateMask)
 30696  	return c
 30697  }
 30698  
 30699  // Fields allows partial responses to be retrieved. See
 30700  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30701  // details.
 30702  func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsPatchCall {
 30703  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30704  	return c
 30705  }
 30706  
 30707  // Context sets the context to be used in this call's Do method.
 30708  func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsPatchCall {
 30709  	c.ctx_ = ctx
 30710  	return c
 30711  }
 30712  
 30713  // Header returns a http.Header that can be modified by the caller to add
 30714  // headers to the request.
 30715  func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Header() http.Header {
 30716  	if c.header_ == nil {
 30717  		c.header_ = make(http.Header)
 30718  	}
 30719  	return c.header_
 30720  }
 30721  
 30722  func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
 30723  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30724  	var body io.Reader = nil
 30725  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaservingconfig)
 30726  	if err != nil {
 30727  		return nil, err
 30728  	}
 30729  	c.urlParams_.Set("alt", alt)
 30730  	c.urlParams_.Set("prettyPrint", "false")
 30731  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 30732  	urls += "?" + c.urlParams_.Encode()
 30733  	req, err := http.NewRequest("PATCH", urls, body)
 30734  	if err != nil {
 30735  		return nil, err
 30736  	}
 30737  	req.Header = reqHeaders
 30738  	googleapi.Expand(req.URL, map[string]string{
 30739  		"name": c.name,
 30740  	})
 30741  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30742  }
 30743  
 30744  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.patch" call.
 30745  // Any non-2xx status code is an error. Response headers are in either
 30746  // *GoogleCloudDiscoveryengineV1alphaServingConfig.ServerResponse.Header or (if
 30747  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 30748  // googleapi.IsNotModified to check whether the returned error was because
 30749  // http.StatusNotModified was returned.
 30750  func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaServingConfig, error) {
 30751  	gensupport.SetOptions(c.urlParams_, opts...)
 30752  	res, err := c.doRequest("json")
 30753  	if res != nil && res.StatusCode == http.StatusNotModified {
 30754  		if res.Body != nil {
 30755  			res.Body.Close()
 30756  		}
 30757  		return nil, gensupport.WrapError(&googleapi.Error{
 30758  			Code:   res.StatusCode,
 30759  			Header: res.Header,
 30760  		})
 30761  	}
 30762  	if err != nil {
 30763  		return nil, err
 30764  	}
 30765  	defer googleapi.CloseBody(res)
 30766  	if err := googleapi.CheckResponse(res); err != nil {
 30767  		return nil, gensupport.WrapError(err)
 30768  	}
 30769  	ret := &GoogleCloudDiscoveryengineV1alphaServingConfig{
 30770  		ServerResponse: googleapi.ServerResponse{
 30771  			Header:         res.Header,
 30772  			HTTPStatusCode: res.StatusCode,
 30773  		},
 30774  	}
 30775  	target := &ret
 30776  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30777  		return nil, err
 30778  	}
 30779  	return ret, nil
 30780  }
 30781  
 30782  type ProjectsLocationsDataStoresServingConfigsRecommendCall struct {
 30783  	s                                                 *Service
 30784  	servingConfig                                     string
 30785  	googleclouddiscoveryenginev1alpharecommendrequest *GoogleCloudDiscoveryengineV1alphaRecommendRequest
 30786  	urlParams_                                        gensupport.URLParams
 30787  	ctx_                                              context.Context
 30788  	header_                                           http.Header
 30789  }
 30790  
 30791  // Recommend: Makes a recommendation, which requires a contextual user event.
 30792  //
 30793  //   - servingConfig: Full resource name of a ServingConfig:
 30794  //     `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
 30795  //     `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
 30796  //     One default serving config is created along with your recommendation
 30797  //     engine creation. The engine ID will be used as the ID of the default
 30798  //     serving config. For example, for Engine
 30799  //     `projects/*/locations/global/collections/*/engines/my-engine`, you can use
 30800  //     `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs
 30801  //     /my-engine` for your RecommendationService.Recommend requests.
 30802  func (r *ProjectsLocationsDataStoresServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1alpharecommendrequest *GoogleCloudDiscoveryengineV1alphaRecommendRequest) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
 30803  	c := &ProjectsLocationsDataStoresServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30804  	c.servingConfig = servingConfig
 30805  	c.googleclouddiscoveryenginev1alpharecommendrequest = googleclouddiscoveryenginev1alpharecommendrequest
 30806  	return c
 30807  }
 30808  
 30809  // Fields allows partial responses to be retrieved. See
 30810  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30811  // details.
 30812  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
 30813  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30814  	return c
 30815  }
 30816  
 30817  // Context sets the context to be used in this call's Do method.
 30818  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
 30819  	c.ctx_ = ctx
 30820  	return c
 30821  }
 30822  
 30823  // Header returns a http.Header that can be modified by the caller to add
 30824  // headers to the request.
 30825  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Header() http.Header {
 30826  	if c.header_ == nil {
 30827  		c.header_ = make(http.Header)
 30828  	}
 30829  	return c.header_
 30830  }
 30831  
 30832  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
 30833  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30834  	var body io.Reader = nil
 30835  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharecommendrequest)
 30836  	if err != nil {
 30837  		return nil, err
 30838  	}
 30839  	c.urlParams_.Set("alt", alt)
 30840  	c.urlParams_.Set("prettyPrint", "false")
 30841  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:recommend")
 30842  	urls += "?" + c.urlParams_.Encode()
 30843  	req, err := http.NewRequest("POST", urls, body)
 30844  	if err != nil {
 30845  		return nil, err
 30846  	}
 30847  	req.Header = reqHeaders
 30848  	googleapi.Expand(req.URL, map[string]string{
 30849  		"servingConfig": c.servingConfig,
 30850  	})
 30851  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30852  }
 30853  
 30854  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.recommend" call.
 30855  // Any non-2xx status code is an error. Response headers are in either
 30856  // *GoogleCloudDiscoveryengineV1alphaRecommendResponse.ServerResponse.Header or
 30857  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 30858  // googleapi.IsNotModified to check whether the returned error was because
 30859  // http.StatusNotModified was returned.
 30860  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaRecommendResponse, error) {
 30861  	gensupport.SetOptions(c.urlParams_, opts...)
 30862  	res, err := c.doRequest("json")
 30863  	if res != nil && res.StatusCode == http.StatusNotModified {
 30864  		if res.Body != nil {
 30865  			res.Body.Close()
 30866  		}
 30867  		return nil, gensupport.WrapError(&googleapi.Error{
 30868  			Code:   res.StatusCode,
 30869  			Header: res.Header,
 30870  		})
 30871  	}
 30872  	if err != nil {
 30873  		return nil, err
 30874  	}
 30875  	defer googleapi.CloseBody(res)
 30876  	if err := googleapi.CheckResponse(res); err != nil {
 30877  		return nil, gensupport.WrapError(err)
 30878  	}
 30879  	ret := &GoogleCloudDiscoveryengineV1alphaRecommendResponse{
 30880  		ServerResponse: googleapi.ServerResponse{
 30881  			Header:         res.Header,
 30882  			HTTPStatusCode: res.StatusCode,
 30883  		},
 30884  	}
 30885  	target := &ret
 30886  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30887  		return nil, err
 30888  	}
 30889  	return ret, nil
 30890  }
 30891  
 30892  type ProjectsLocationsDataStoresServingConfigsSearchCall struct {
 30893  	s                                              *Service
 30894  	servingConfig                                  string
 30895  	googleclouddiscoveryenginev1alphasearchrequest *GoogleCloudDiscoveryengineV1alphaSearchRequest
 30896  	urlParams_                                     gensupport.URLParams
 30897  	ctx_                                           context.Context
 30898  	header_                                        http.Header
 30899  }
 30900  
 30901  // Search: Performs a search.
 30902  //
 30903  //   - servingConfig: The resource name of the Search serving config, such as
 30904  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 30905  //     ngConfigs/default_serving_config`, or
 30906  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 30907  //     ult_data_store/servingConfigs/default_serving_config`. This field is used
 30908  //     to identify the serving configuration name, set of models used to make the
 30909  //     search.
 30910  func (r *ProjectsLocationsDataStoresServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1alphasearchrequest *GoogleCloudDiscoveryengineV1alphaSearchRequest) *ProjectsLocationsDataStoresServingConfigsSearchCall {
 30911  	c := &ProjectsLocationsDataStoresServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30912  	c.servingConfig = servingConfig
 30913  	c.googleclouddiscoveryenginev1alphasearchrequest = googleclouddiscoveryenginev1alphasearchrequest
 30914  	return c
 30915  }
 30916  
 30917  // Fields allows partial responses to be retrieved. See
 30918  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30919  // details.
 30920  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsSearchCall {
 30921  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30922  	return c
 30923  }
 30924  
 30925  // Context sets the context to be used in this call's Do method.
 30926  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsSearchCall {
 30927  	c.ctx_ = ctx
 30928  	return c
 30929  }
 30930  
 30931  // Header returns a http.Header that can be modified by the caller to add
 30932  // headers to the request.
 30933  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Header() http.Header {
 30934  	if c.header_ == nil {
 30935  		c.header_ = make(http.Header)
 30936  	}
 30937  	return c.header_
 30938  }
 30939  
 30940  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
 30941  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30942  	var body io.Reader = nil
 30943  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasearchrequest)
 30944  	if err != nil {
 30945  		return nil, err
 30946  	}
 30947  	c.urlParams_.Set("alt", alt)
 30948  	c.urlParams_.Set("prettyPrint", "false")
 30949  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:search")
 30950  	urls += "?" + c.urlParams_.Encode()
 30951  	req, err := http.NewRequest("POST", urls, body)
 30952  	if err != nil {
 30953  		return nil, err
 30954  	}
 30955  	req.Header = reqHeaders
 30956  	googleapi.Expand(req.URL, map[string]string{
 30957  		"servingConfig": c.servingConfig,
 30958  	})
 30959  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30960  }
 30961  
 30962  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.search" call.
 30963  // Any non-2xx status code is an error. Response headers are in either
 30964  // *GoogleCloudDiscoveryengineV1alphaSearchResponse.ServerResponse.Header or
 30965  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 30966  // googleapi.IsNotModified to check whether the returned error was because
 30967  // http.StatusNotModified was returned.
 30968  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSearchResponse, error) {
 30969  	gensupport.SetOptions(c.urlParams_, opts...)
 30970  	res, err := c.doRequest("json")
 30971  	if res != nil && res.StatusCode == http.StatusNotModified {
 30972  		if res.Body != nil {
 30973  			res.Body.Close()
 30974  		}
 30975  		return nil, gensupport.WrapError(&googleapi.Error{
 30976  			Code:   res.StatusCode,
 30977  			Header: res.Header,
 30978  		})
 30979  	}
 30980  	if err != nil {
 30981  		return nil, err
 30982  	}
 30983  	defer googleapi.CloseBody(res)
 30984  	if err := googleapi.CheckResponse(res); err != nil {
 30985  		return nil, gensupport.WrapError(err)
 30986  	}
 30987  	ret := &GoogleCloudDiscoveryengineV1alphaSearchResponse{
 30988  		ServerResponse: googleapi.ServerResponse{
 30989  			Header:         res.Header,
 30990  			HTTPStatusCode: res.StatusCode,
 30991  		},
 30992  	}
 30993  	target := &ret
 30994  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30995  		return nil, err
 30996  	}
 30997  	return ret, nil
 30998  }
 30999  
 31000  // Pages invokes f for each page of results.
 31001  // A non-nil error returned from f will halt the iteration.
 31002  // The provided context supersedes any context provided to the Context method.
 31003  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaSearchResponse) error) error {
 31004  	c.ctx_ = ctx
 31005  	defer func(pt string) { c.googleclouddiscoveryenginev1alphasearchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1alphasearchrequest.PageToken)
 31006  	for {
 31007  		x, err := c.Do()
 31008  		if err != nil {
 31009  			return err
 31010  		}
 31011  		if err := f(x); err != nil {
 31012  			return err
 31013  		}
 31014  		if x.NextPageToken == "" {
 31015  			return nil
 31016  		}
 31017  		c.googleclouddiscoveryenginev1alphasearchrequest.PageToken = x.NextPageToken
 31018  	}
 31019  }
 31020  
 31021  type ProjectsLocationsDataStoresSessionsCreateCall struct {
 31022  	s                                        *Service
 31023  	parent                                   string
 31024  	googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession
 31025  	urlParams_                               gensupport.URLParams
 31026  	ctx_                                     context.Context
 31027  	header_                                  http.Header
 31028  }
 31029  
 31030  // Create: Creates a Session. If the Session to create already exists, an
 31031  // ALREADY_EXISTS error is returned.
 31032  //
 31033  //   - parent: Full resource name of parent data store. Format:
 31034  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 31035  //     /dataStores/{data_store_id}`.
 31036  func (r *ProjectsLocationsDataStoresSessionsService) Create(parent string, googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession) *ProjectsLocationsDataStoresSessionsCreateCall {
 31037  	c := &ProjectsLocationsDataStoresSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31038  	c.parent = parent
 31039  	c.googleclouddiscoveryenginev1alphasession = googleclouddiscoveryenginev1alphasession
 31040  	return c
 31041  }
 31042  
 31043  // Fields allows partial responses to be retrieved. See
 31044  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31045  // details.
 31046  func (c *ProjectsLocationsDataStoresSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsCreateCall {
 31047  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31048  	return c
 31049  }
 31050  
 31051  // Context sets the context to be used in this call's Do method.
 31052  func (c *ProjectsLocationsDataStoresSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsCreateCall {
 31053  	c.ctx_ = ctx
 31054  	return c
 31055  }
 31056  
 31057  // Header returns a http.Header that can be modified by the caller to add
 31058  // headers to the request.
 31059  func (c *ProjectsLocationsDataStoresSessionsCreateCall) Header() http.Header {
 31060  	if c.header_ == nil {
 31061  		c.header_ = make(http.Header)
 31062  	}
 31063  	return c.header_
 31064  }
 31065  
 31066  func (c *ProjectsLocationsDataStoresSessionsCreateCall) doRequest(alt string) (*http.Response, error) {
 31067  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31068  	var body io.Reader = nil
 31069  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasession)
 31070  	if err != nil {
 31071  		return nil, err
 31072  	}
 31073  	c.urlParams_.Set("alt", alt)
 31074  	c.urlParams_.Set("prettyPrint", "false")
 31075  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sessions")
 31076  	urls += "?" + c.urlParams_.Encode()
 31077  	req, err := http.NewRequest("POST", urls, body)
 31078  	if err != nil {
 31079  		return nil, err
 31080  	}
 31081  	req.Header = reqHeaders
 31082  	googleapi.Expand(req.URL, map[string]string{
 31083  		"parent": c.parent,
 31084  	})
 31085  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31086  }
 31087  
 31088  // Do executes the "discoveryengine.projects.locations.dataStores.sessions.create" call.
 31089  // Any non-2xx status code is an error. Response headers are in either
 31090  // *GoogleCloudDiscoveryengineV1alphaSession.ServerResponse.Header or (if a
 31091  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31092  // googleapi.IsNotModified to check whether the returned error was because
 31093  // http.StatusNotModified was returned.
 31094  func (c *ProjectsLocationsDataStoresSessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
 31095  	gensupport.SetOptions(c.urlParams_, opts...)
 31096  	res, err := c.doRequest("json")
 31097  	if res != nil && res.StatusCode == http.StatusNotModified {
 31098  		if res.Body != nil {
 31099  			res.Body.Close()
 31100  		}
 31101  		return nil, gensupport.WrapError(&googleapi.Error{
 31102  			Code:   res.StatusCode,
 31103  			Header: res.Header,
 31104  		})
 31105  	}
 31106  	if err != nil {
 31107  		return nil, err
 31108  	}
 31109  	defer googleapi.CloseBody(res)
 31110  	if err := googleapi.CheckResponse(res); err != nil {
 31111  		return nil, gensupport.WrapError(err)
 31112  	}
 31113  	ret := &GoogleCloudDiscoveryengineV1alphaSession{
 31114  		ServerResponse: googleapi.ServerResponse{
 31115  			Header:         res.Header,
 31116  			HTTPStatusCode: res.StatusCode,
 31117  		},
 31118  	}
 31119  	target := &ret
 31120  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31121  		return nil, err
 31122  	}
 31123  	return ret, nil
 31124  }
 31125  
 31126  type ProjectsLocationsDataStoresSessionsDeleteCall struct {
 31127  	s          *Service
 31128  	name       string
 31129  	urlParams_ gensupport.URLParams
 31130  	ctx_       context.Context
 31131  	header_    http.Header
 31132  }
 31133  
 31134  // Delete: Deletes a Session. If the Session to delete does not exist, a
 31135  // NOT_FOUND error is returned.
 31136  //
 31137  //   - name: The resource name of the Session to delete. Format:
 31138  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 31139  //     /dataStores/{data_store_id}/sessions/{session_id}`.
 31140  func (r *ProjectsLocationsDataStoresSessionsService) Delete(name string) *ProjectsLocationsDataStoresSessionsDeleteCall {
 31141  	c := &ProjectsLocationsDataStoresSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31142  	c.name = name
 31143  	return c
 31144  }
 31145  
 31146  // Fields allows partial responses to be retrieved. See
 31147  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31148  // details.
 31149  func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsDeleteCall {
 31150  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31151  	return c
 31152  }
 31153  
 31154  // Context sets the context to be used in this call's Do method.
 31155  func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsDeleteCall {
 31156  	c.ctx_ = ctx
 31157  	return c
 31158  }
 31159  
 31160  // Header returns a http.Header that can be modified by the caller to add
 31161  // headers to the request.
 31162  func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Header() http.Header {
 31163  	if c.header_ == nil {
 31164  		c.header_ = make(http.Header)
 31165  	}
 31166  	return c.header_
 31167  }
 31168  
 31169  func (c *ProjectsLocationsDataStoresSessionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 31170  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31171  	var body io.Reader = nil
 31172  	c.urlParams_.Set("alt", alt)
 31173  	c.urlParams_.Set("prettyPrint", "false")
 31174  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 31175  	urls += "?" + c.urlParams_.Encode()
 31176  	req, err := http.NewRequest("DELETE", urls, body)
 31177  	if err != nil {
 31178  		return nil, err
 31179  	}
 31180  	req.Header = reqHeaders
 31181  	googleapi.Expand(req.URL, map[string]string{
 31182  		"name": c.name,
 31183  	})
 31184  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31185  }
 31186  
 31187  // Do executes the "discoveryengine.projects.locations.dataStores.sessions.delete" call.
 31188  // Any non-2xx status code is an error. Response headers are in either
 31189  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 31190  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 31191  // check whether the returned error was because http.StatusNotModified was
 31192  // returned.
 31193  func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 31194  	gensupport.SetOptions(c.urlParams_, opts...)
 31195  	res, err := c.doRequest("json")
 31196  	if res != nil && res.StatusCode == http.StatusNotModified {
 31197  		if res.Body != nil {
 31198  			res.Body.Close()
 31199  		}
 31200  		return nil, gensupport.WrapError(&googleapi.Error{
 31201  			Code:   res.StatusCode,
 31202  			Header: res.Header,
 31203  		})
 31204  	}
 31205  	if err != nil {
 31206  		return nil, err
 31207  	}
 31208  	defer googleapi.CloseBody(res)
 31209  	if err := googleapi.CheckResponse(res); err != nil {
 31210  		return nil, gensupport.WrapError(err)
 31211  	}
 31212  	ret := &GoogleProtobufEmpty{
 31213  		ServerResponse: googleapi.ServerResponse{
 31214  			Header:         res.Header,
 31215  			HTTPStatusCode: res.StatusCode,
 31216  		},
 31217  	}
 31218  	target := &ret
 31219  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31220  		return nil, err
 31221  	}
 31222  	return ret, nil
 31223  }
 31224  
 31225  type ProjectsLocationsDataStoresSessionsGetCall struct {
 31226  	s            *Service
 31227  	name         string
 31228  	urlParams_   gensupport.URLParams
 31229  	ifNoneMatch_ string
 31230  	ctx_         context.Context
 31231  	header_      http.Header
 31232  }
 31233  
 31234  // Get: Gets a Session.
 31235  //
 31236  //   - name: The resource name of the Session to get. Format:
 31237  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 31238  //     /dataStores/{data_store_id}/sessions/{session_id}`.
 31239  func (r *ProjectsLocationsDataStoresSessionsService) Get(name string) *ProjectsLocationsDataStoresSessionsGetCall {
 31240  	c := &ProjectsLocationsDataStoresSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31241  	c.name = name
 31242  	return c
 31243  }
 31244  
 31245  // Fields allows partial responses to be retrieved. See
 31246  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31247  // details.
 31248  func (c *ProjectsLocationsDataStoresSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsGetCall {
 31249  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31250  	return c
 31251  }
 31252  
 31253  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31254  // object's ETag matches the given value. This is useful for getting updates
 31255  // only after the object has changed since the last request.
 31256  func (c *ProjectsLocationsDataStoresSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSessionsGetCall {
 31257  	c.ifNoneMatch_ = entityTag
 31258  	return c
 31259  }
 31260  
 31261  // Context sets the context to be used in this call's Do method.
 31262  func (c *ProjectsLocationsDataStoresSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsGetCall {
 31263  	c.ctx_ = ctx
 31264  	return c
 31265  }
 31266  
 31267  // Header returns a http.Header that can be modified by the caller to add
 31268  // headers to the request.
 31269  func (c *ProjectsLocationsDataStoresSessionsGetCall) Header() http.Header {
 31270  	if c.header_ == nil {
 31271  		c.header_ = make(http.Header)
 31272  	}
 31273  	return c.header_
 31274  }
 31275  
 31276  func (c *ProjectsLocationsDataStoresSessionsGetCall) doRequest(alt string) (*http.Response, error) {
 31277  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31278  	if c.ifNoneMatch_ != "" {
 31279  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31280  	}
 31281  	var body io.Reader = nil
 31282  	c.urlParams_.Set("alt", alt)
 31283  	c.urlParams_.Set("prettyPrint", "false")
 31284  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 31285  	urls += "?" + c.urlParams_.Encode()
 31286  	req, err := http.NewRequest("GET", urls, body)
 31287  	if err != nil {
 31288  		return nil, err
 31289  	}
 31290  	req.Header = reqHeaders
 31291  	googleapi.Expand(req.URL, map[string]string{
 31292  		"name": c.name,
 31293  	})
 31294  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31295  }
 31296  
 31297  // Do executes the "discoveryengine.projects.locations.dataStores.sessions.get" call.
 31298  // Any non-2xx status code is an error. Response headers are in either
 31299  // *GoogleCloudDiscoveryengineV1alphaSession.ServerResponse.Header or (if a
 31300  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31301  // googleapi.IsNotModified to check whether the returned error was because
 31302  // http.StatusNotModified was returned.
 31303  func (c *ProjectsLocationsDataStoresSessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
 31304  	gensupport.SetOptions(c.urlParams_, opts...)
 31305  	res, err := c.doRequest("json")
 31306  	if res != nil && res.StatusCode == http.StatusNotModified {
 31307  		if res.Body != nil {
 31308  			res.Body.Close()
 31309  		}
 31310  		return nil, gensupport.WrapError(&googleapi.Error{
 31311  			Code:   res.StatusCode,
 31312  			Header: res.Header,
 31313  		})
 31314  	}
 31315  	if err != nil {
 31316  		return nil, err
 31317  	}
 31318  	defer googleapi.CloseBody(res)
 31319  	if err := googleapi.CheckResponse(res); err != nil {
 31320  		return nil, gensupport.WrapError(err)
 31321  	}
 31322  	ret := &GoogleCloudDiscoveryengineV1alphaSession{
 31323  		ServerResponse: googleapi.ServerResponse{
 31324  			Header:         res.Header,
 31325  			HTTPStatusCode: res.StatusCode,
 31326  		},
 31327  	}
 31328  	target := &ret
 31329  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31330  		return nil, err
 31331  	}
 31332  	return ret, nil
 31333  }
 31334  
 31335  type ProjectsLocationsDataStoresSessionsListCall struct {
 31336  	s            *Service
 31337  	parent       string
 31338  	urlParams_   gensupport.URLParams
 31339  	ifNoneMatch_ string
 31340  	ctx_         context.Context
 31341  	header_      http.Header
 31342  }
 31343  
 31344  // List: Lists all Sessions by their parent DataStore.
 31345  //
 31346  //   - parent: The data store resource name. Format:
 31347  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 31348  //     /dataStores/{data_store_id}`.
 31349  func (r *ProjectsLocationsDataStoresSessionsService) List(parent string) *ProjectsLocationsDataStoresSessionsListCall {
 31350  	c := &ProjectsLocationsDataStoresSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31351  	c.parent = parent
 31352  	return c
 31353  }
 31354  
 31355  // Filter sets the optional parameter "filter": A filter to apply on the list
 31356  // results. The supported features are: user_pseudo_id, state. Example:
 31357  // "user_pseudo_id = some_id"
 31358  func (c *ProjectsLocationsDataStoresSessionsListCall) Filter(filter string) *ProjectsLocationsDataStoresSessionsListCall {
 31359  	c.urlParams_.Set("filter", filter)
 31360  	return c
 31361  }
 31362  
 31363  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 31364  // fields to order by, sorted in ascending order. Use "desc" after a field name
 31365  // for descending. Supported fields: * `update_time` * `create_time` *
 31366  // `session_name` Example: "update_time desc" "create_time"
 31367  func (c *ProjectsLocationsDataStoresSessionsListCall) OrderBy(orderBy string) *ProjectsLocationsDataStoresSessionsListCall {
 31368  	c.urlParams_.Set("orderBy", orderBy)
 31369  	return c
 31370  }
 31371  
 31372  // PageSize sets the optional parameter "pageSize": Maximum number of results
 31373  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 31374  func (c *ProjectsLocationsDataStoresSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSessionsListCall {
 31375  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 31376  	return c
 31377  }
 31378  
 31379  // PageToken sets the optional parameter "pageToken": A page token, received
 31380  // from a previous `ListSessions` call. Provide this to retrieve the subsequent
 31381  // page.
 31382  func (c *ProjectsLocationsDataStoresSessionsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSessionsListCall {
 31383  	c.urlParams_.Set("pageToken", pageToken)
 31384  	return c
 31385  }
 31386  
 31387  // Fields allows partial responses to be retrieved. See
 31388  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31389  // details.
 31390  func (c *ProjectsLocationsDataStoresSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsListCall {
 31391  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31392  	return c
 31393  }
 31394  
 31395  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31396  // object's ETag matches the given value. This is useful for getting updates
 31397  // only after the object has changed since the last request.
 31398  func (c *ProjectsLocationsDataStoresSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSessionsListCall {
 31399  	c.ifNoneMatch_ = entityTag
 31400  	return c
 31401  }
 31402  
 31403  // Context sets the context to be used in this call's Do method.
 31404  func (c *ProjectsLocationsDataStoresSessionsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsListCall {
 31405  	c.ctx_ = ctx
 31406  	return c
 31407  }
 31408  
 31409  // Header returns a http.Header that can be modified by the caller to add
 31410  // headers to the request.
 31411  func (c *ProjectsLocationsDataStoresSessionsListCall) Header() http.Header {
 31412  	if c.header_ == nil {
 31413  		c.header_ = make(http.Header)
 31414  	}
 31415  	return c.header_
 31416  }
 31417  
 31418  func (c *ProjectsLocationsDataStoresSessionsListCall) doRequest(alt string) (*http.Response, error) {
 31419  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31420  	if c.ifNoneMatch_ != "" {
 31421  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31422  	}
 31423  	var body io.Reader = nil
 31424  	c.urlParams_.Set("alt", alt)
 31425  	c.urlParams_.Set("prettyPrint", "false")
 31426  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sessions")
 31427  	urls += "?" + c.urlParams_.Encode()
 31428  	req, err := http.NewRequest("GET", urls, body)
 31429  	if err != nil {
 31430  		return nil, err
 31431  	}
 31432  	req.Header = reqHeaders
 31433  	googleapi.Expand(req.URL, map[string]string{
 31434  		"parent": c.parent,
 31435  	})
 31436  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31437  }
 31438  
 31439  // Do executes the "discoveryengine.projects.locations.dataStores.sessions.list" call.
 31440  // Any non-2xx status code is an error. Response headers are in either
 31441  // *GoogleCloudDiscoveryengineV1alphaListSessionsResponse.ServerResponse.Header
 31442  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 31443  // Use googleapi.IsNotModified to check whether the returned error was because
 31444  // http.StatusNotModified was returned.
 31445  func (c *ProjectsLocationsDataStoresSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListSessionsResponse, error) {
 31446  	gensupport.SetOptions(c.urlParams_, opts...)
 31447  	res, err := c.doRequest("json")
 31448  	if res != nil && res.StatusCode == http.StatusNotModified {
 31449  		if res.Body != nil {
 31450  			res.Body.Close()
 31451  		}
 31452  		return nil, gensupport.WrapError(&googleapi.Error{
 31453  			Code:   res.StatusCode,
 31454  			Header: res.Header,
 31455  		})
 31456  	}
 31457  	if err != nil {
 31458  		return nil, err
 31459  	}
 31460  	defer googleapi.CloseBody(res)
 31461  	if err := googleapi.CheckResponse(res); err != nil {
 31462  		return nil, gensupport.WrapError(err)
 31463  	}
 31464  	ret := &GoogleCloudDiscoveryengineV1alphaListSessionsResponse{
 31465  		ServerResponse: googleapi.ServerResponse{
 31466  			Header:         res.Header,
 31467  			HTTPStatusCode: res.StatusCode,
 31468  		},
 31469  	}
 31470  	target := &ret
 31471  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31472  		return nil, err
 31473  	}
 31474  	return ret, nil
 31475  }
 31476  
 31477  // Pages invokes f for each page of results.
 31478  // A non-nil error returned from f will halt the iteration.
 31479  // The provided context supersedes any context provided to the Context method.
 31480  func (c *ProjectsLocationsDataStoresSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListSessionsResponse) error) error {
 31481  	c.ctx_ = ctx
 31482  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 31483  	for {
 31484  		x, err := c.Do()
 31485  		if err != nil {
 31486  			return err
 31487  		}
 31488  		if err := f(x); err != nil {
 31489  			return err
 31490  		}
 31491  		if x.NextPageToken == "" {
 31492  			return nil
 31493  		}
 31494  		c.PageToken(x.NextPageToken)
 31495  	}
 31496  }
 31497  
 31498  type ProjectsLocationsDataStoresSessionsPatchCall struct {
 31499  	s                                        *Service
 31500  	name                                     string
 31501  	googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession
 31502  	urlParams_                               gensupport.URLParams
 31503  	ctx_                                     context.Context
 31504  	header_                                  http.Header
 31505  }
 31506  
 31507  // Patch: Updates a Session. Session action type cannot be changed. If the
 31508  // Session to update does not exist, a NOT_FOUND error is returned.
 31509  //
 31510  //   - name: Immutable. Fully qualified name
 31511  //     `projects/{project}/locations/global/collections/{collection}/engines/{engi
 31512  //     ne}/sessions/*`.
 31513  func (r *ProjectsLocationsDataStoresSessionsService) Patch(name string, googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession) *ProjectsLocationsDataStoresSessionsPatchCall {
 31514  	c := &ProjectsLocationsDataStoresSessionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31515  	c.name = name
 31516  	c.googleclouddiscoveryenginev1alphasession = googleclouddiscoveryenginev1alphasession
 31517  	return c
 31518  }
 31519  
 31520  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 31521  // in the provided Session to update. The following are NOT supported: *
 31522  // Session.name If not set or empty, all supported fields are updated.
 31523  func (c *ProjectsLocationsDataStoresSessionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresSessionsPatchCall {
 31524  	c.urlParams_.Set("updateMask", updateMask)
 31525  	return c
 31526  }
 31527  
 31528  // Fields allows partial responses to be retrieved. See
 31529  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31530  // details.
 31531  func (c *ProjectsLocationsDataStoresSessionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsPatchCall {
 31532  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31533  	return c
 31534  }
 31535  
 31536  // Context sets the context to be used in this call's Do method.
 31537  func (c *ProjectsLocationsDataStoresSessionsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsPatchCall {
 31538  	c.ctx_ = ctx
 31539  	return c
 31540  }
 31541  
 31542  // Header returns a http.Header that can be modified by the caller to add
 31543  // headers to the request.
 31544  func (c *ProjectsLocationsDataStoresSessionsPatchCall) Header() http.Header {
 31545  	if c.header_ == nil {
 31546  		c.header_ = make(http.Header)
 31547  	}
 31548  	return c.header_
 31549  }
 31550  
 31551  func (c *ProjectsLocationsDataStoresSessionsPatchCall) doRequest(alt string) (*http.Response, error) {
 31552  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31553  	var body io.Reader = nil
 31554  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasession)
 31555  	if err != nil {
 31556  		return nil, err
 31557  	}
 31558  	c.urlParams_.Set("alt", alt)
 31559  	c.urlParams_.Set("prettyPrint", "false")
 31560  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 31561  	urls += "?" + c.urlParams_.Encode()
 31562  	req, err := http.NewRequest("PATCH", urls, body)
 31563  	if err != nil {
 31564  		return nil, err
 31565  	}
 31566  	req.Header = reqHeaders
 31567  	googleapi.Expand(req.URL, map[string]string{
 31568  		"name": c.name,
 31569  	})
 31570  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31571  }
 31572  
 31573  // Do executes the "discoveryengine.projects.locations.dataStores.sessions.patch" call.
 31574  // Any non-2xx status code is an error. Response headers are in either
 31575  // *GoogleCloudDiscoveryengineV1alphaSession.ServerResponse.Header or (if a
 31576  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31577  // googleapi.IsNotModified to check whether the returned error was because
 31578  // http.StatusNotModified was returned.
 31579  func (c *ProjectsLocationsDataStoresSessionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
 31580  	gensupport.SetOptions(c.urlParams_, opts...)
 31581  	res, err := c.doRequest("json")
 31582  	if res != nil && res.StatusCode == http.StatusNotModified {
 31583  		if res.Body != nil {
 31584  			res.Body.Close()
 31585  		}
 31586  		return nil, gensupport.WrapError(&googleapi.Error{
 31587  			Code:   res.StatusCode,
 31588  			Header: res.Header,
 31589  		})
 31590  	}
 31591  	if err != nil {
 31592  		return nil, err
 31593  	}
 31594  	defer googleapi.CloseBody(res)
 31595  	if err := googleapi.CheckResponse(res); err != nil {
 31596  		return nil, gensupport.WrapError(err)
 31597  	}
 31598  	ret := &GoogleCloudDiscoveryengineV1alphaSession{
 31599  		ServerResponse: googleapi.ServerResponse{
 31600  			Header:         res.Header,
 31601  			HTTPStatusCode: res.StatusCode,
 31602  		},
 31603  	}
 31604  	target := &ret
 31605  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31606  		return nil, err
 31607  	}
 31608  	return ret, nil
 31609  }
 31610  
 31611  type ProjectsLocationsDataStoresSessionsAnswersGetCall struct {
 31612  	s            *Service
 31613  	name         string
 31614  	urlParams_   gensupport.URLParams
 31615  	ifNoneMatch_ string
 31616  	ctx_         context.Context
 31617  	header_      http.Header
 31618  }
 31619  
 31620  // Get: Gets a Answer.
 31621  //
 31622  //   - name: The resource name of the Answer to get. Format:
 31623  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 31624  //     /engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`.
 31625  func (r *ProjectsLocationsDataStoresSessionsAnswersService) Get(name string) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
 31626  	c := &ProjectsLocationsDataStoresSessionsAnswersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31627  	c.name = name
 31628  	return c
 31629  }
 31630  
 31631  // Fields allows partial responses to be retrieved. See
 31632  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31633  // details.
 31634  func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
 31635  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31636  	return c
 31637  }
 31638  
 31639  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31640  // object's ETag matches the given value. This is useful for getting updates
 31641  // only after the object has changed since the last request.
 31642  func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
 31643  	c.ifNoneMatch_ = entityTag
 31644  	return c
 31645  }
 31646  
 31647  // Context sets the context to be used in this call's Do method.
 31648  func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
 31649  	c.ctx_ = ctx
 31650  	return c
 31651  }
 31652  
 31653  // Header returns a http.Header that can be modified by the caller to add
 31654  // headers to the request.
 31655  func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Header() http.Header {
 31656  	if c.header_ == nil {
 31657  		c.header_ = make(http.Header)
 31658  	}
 31659  	return c.header_
 31660  }
 31661  
 31662  func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) doRequest(alt string) (*http.Response, error) {
 31663  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31664  	if c.ifNoneMatch_ != "" {
 31665  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31666  	}
 31667  	var body io.Reader = nil
 31668  	c.urlParams_.Set("alt", alt)
 31669  	c.urlParams_.Set("prettyPrint", "false")
 31670  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 31671  	urls += "?" + c.urlParams_.Encode()
 31672  	req, err := http.NewRequest("GET", urls, body)
 31673  	if err != nil {
 31674  		return nil, err
 31675  	}
 31676  	req.Header = reqHeaders
 31677  	googleapi.Expand(req.URL, map[string]string{
 31678  		"name": c.name,
 31679  	})
 31680  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31681  }
 31682  
 31683  // Do executes the "discoveryengine.projects.locations.dataStores.sessions.answers.get" call.
 31684  // Any non-2xx status code is an error. Response headers are in either
 31685  // *GoogleCloudDiscoveryengineV1alphaAnswer.ServerResponse.Header or (if a
 31686  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31687  // googleapi.IsNotModified to check whether the returned error was because
 31688  // http.StatusNotModified was returned.
 31689  func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAnswer, error) {
 31690  	gensupport.SetOptions(c.urlParams_, opts...)
 31691  	res, err := c.doRequest("json")
 31692  	if res != nil && res.StatusCode == http.StatusNotModified {
 31693  		if res.Body != nil {
 31694  			res.Body.Close()
 31695  		}
 31696  		return nil, gensupport.WrapError(&googleapi.Error{
 31697  			Code:   res.StatusCode,
 31698  			Header: res.Header,
 31699  		})
 31700  	}
 31701  	if err != nil {
 31702  		return nil, err
 31703  	}
 31704  	defer googleapi.CloseBody(res)
 31705  	if err := googleapi.CheckResponse(res); err != nil {
 31706  		return nil, gensupport.WrapError(err)
 31707  	}
 31708  	ret := &GoogleCloudDiscoveryengineV1alphaAnswer{
 31709  		ServerResponse: googleapi.ServerResponse{
 31710  			Header:         res.Header,
 31711  			HTTPStatusCode: res.StatusCode,
 31712  		},
 31713  	}
 31714  	target := &ret
 31715  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31716  		return nil, err
 31717  	}
 31718  	return ret, nil
 31719  }
 31720  
 31721  type ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall struct {
 31722  	s                                                                 *Service
 31723  	siteSearchEngine                                                  string
 31724  	googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchRequest
 31725  	urlParams_                                                        gensupport.URLParams
 31726  	ctx_                                                              context.Context
 31727  	header_                                                           http.Header
 31728  }
 31729  
 31730  // DisableAdvancedSiteSearch: Downgrade from advanced site search to basic site
 31731  // search.
 31732  //
 31733  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 31734  //     `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSea
 31735  //     rchEngine`.
 31736  func (r *ProjectsLocationsDataStoresSiteSearchEngineService) DisableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchRequest) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 31737  	c := &ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31738  	c.siteSearchEngine = siteSearchEngine
 31739  	c.googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest = googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest
 31740  	return c
 31741  }
 31742  
 31743  // Fields allows partial responses to be retrieved. See
 31744  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31745  // details.
 31746  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 31747  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31748  	return c
 31749  }
 31750  
 31751  // Context sets the context to be used in this call's Do method.
 31752  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 31753  	c.ctx_ = ctx
 31754  	return c
 31755  }
 31756  
 31757  // Header returns a http.Header that can be modified by the caller to add
 31758  // headers to the request.
 31759  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Header() http.Header {
 31760  	if c.header_ == nil {
 31761  		c.header_ = make(http.Header)
 31762  	}
 31763  	return c.header_
 31764  }
 31765  
 31766  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
 31767  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31768  	var body io.Reader = nil
 31769  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest)
 31770  	if err != nil {
 31771  		return nil, err
 31772  	}
 31773  	c.urlParams_.Set("alt", alt)
 31774  	c.urlParams_.Set("prettyPrint", "false")
 31775  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:disableAdvancedSiteSearch")
 31776  	urls += "?" + c.urlParams_.Encode()
 31777  	req, err := http.NewRequest("POST", urls, body)
 31778  	if err != nil {
 31779  		return nil, err
 31780  	}
 31781  	req.Header = reqHeaders
 31782  	googleapi.Expand(req.URL, map[string]string{
 31783  		"siteSearchEngine": c.siteSearchEngine,
 31784  	})
 31785  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31786  }
 31787  
 31788  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.disableAdvancedSiteSearch" call.
 31789  // Any non-2xx status code is an error. Response headers are in either
 31790  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 31791  // returned at all) in error.(*googleapi.Error).Header. Use
 31792  // googleapi.IsNotModified to check whether the returned error was because
 31793  // http.StatusNotModified was returned.
 31794  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 31795  	gensupport.SetOptions(c.urlParams_, opts...)
 31796  	res, err := c.doRequest("json")
 31797  	if res != nil && res.StatusCode == http.StatusNotModified {
 31798  		if res.Body != nil {
 31799  			res.Body.Close()
 31800  		}
 31801  		return nil, gensupport.WrapError(&googleapi.Error{
 31802  			Code:   res.StatusCode,
 31803  			Header: res.Header,
 31804  		})
 31805  	}
 31806  	if err != nil {
 31807  		return nil, err
 31808  	}
 31809  	defer googleapi.CloseBody(res)
 31810  	if err := googleapi.CheckResponse(res); err != nil {
 31811  		return nil, gensupport.WrapError(err)
 31812  	}
 31813  	ret := &GoogleLongrunningOperation{
 31814  		ServerResponse: googleapi.ServerResponse{
 31815  			Header:         res.Header,
 31816  			HTTPStatusCode: res.StatusCode,
 31817  		},
 31818  	}
 31819  	target := &ret
 31820  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31821  		return nil, err
 31822  	}
 31823  	return ret, nil
 31824  }
 31825  
 31826  type ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall struct {
 31827  	s                                                                *Service
 31828  	siteSearchEngine                                                 string
 31829  	googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchRequest
 31830  	urlParams_                                                       gensupport.URLParams
 31831  	ctx_                                                             context.Context
 31832  	header_                                                          http.Header
 31833  }
 31834  
 31835  // EnableAdvancedSiteSearch: Upgrade from basic site search to advanced site
 31836  // search.
 31837  //
 31838  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 31839  //     `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSea
 31840  //     rchEngine`.
 31841  func (r *ProjectsLocationsDataStoresSiteSearchEngineService) EnableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchRequest) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 31842  	c := &ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31843  	c.siteSearchEngine = siteSearchEngine
 31844  	c.googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest = googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest
 31845  	return c
 31846  }
 31847  
 31848  // Fields allows partial responses to be retrieved. See
 31849  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31850  // details.
 31851  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 31852  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31853  	return c
 31854  }
 31855  
 31856  // Context sets the context to be used in this call's Do method.
 31857  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 31858  	c.ctx_ = ctx
 31859  	return c
 31860  }
 31861  
 31862  // Header returns a http.Header that can be modified by the caller to add
 31863  // headers to the request.
 31864  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Header() http.Header {
 31865  	if c.header_ == nil {
 31866  		c.header_ = make(http.Header)
 31867  	}
 31868  	return c.header_
 31869  }
 31870  
 31871  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
 31872  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31873  	var body io.Reader = nil
 31874  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest)
 31875  	if err != nil {
 31876  		return nil, err
 31877  	}
 31878  	c.urlParams_.Set("alt", alt)
 31879  	c.urlParams_.Set("prettyPrint", "false")
 31880  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:enableAdvancedSiteSearch")
 31881  	urls += "?" + c.urlParams_.Encode()
 31882  	req, err := http.NewRequest("POST", urls, body)
 31883  	if err != nil {
 31884  		return nil, err
 31885  	}
 31886  	req.Header = reqHeaders
 31887  	googleapi.Expand(req.URL, map[string]string{
 31888  		"siteSearchEngine": c.siteSearchEngine,
 31889  	})
 31890  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31891  }
 31892  
 31893  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.enableAdvancedSiteSearch" call.
 31894  // Any non-2xx status code is an error. Response headers are in either
 31895  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 31896  // returned at all) in error.(*googleapi.Error).Header. Use
 31897  // googleapi.IsNotModified to check whether the returned error was because
 31898  // http.StatusNotModified was returned.
 31899  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 31900  	gensupport.SetOptions(c.urlParams_, opts...)
 31901  	res, err := c.doRequest("json")
 31902  	if res != nil && res.StatusCode == http.StatusNotModified {
 31903  		if res.Body != nil {
 31904  			res.Body.Close()
 31905  		}
 31906  		return nil, gensupport.WrapError(&googleapi.Error{
 31907  			Code:   res.StatusCode,
 31908  			Header: res.Header,
 31909  		})
 31910  	}
 31911  	if err != nil {
 31912  		return nil, err
 31913  	}
 31914  	defer googleapi.CloseBody(res)
 31915  	if err := googleapi.CheckResponse(res); err != nil {
 31916  		return nil, gensupport.WrapError(err)
 31917  	}
 31918  	ret := &GoogleLongrunningOperation{
 31919  		ServerResponse: googleapi.ServerResponse{
 31920  			Header:         res.Header,
 31921  			HTTPStatusCode: res.StatusCode,
 31922  		},
 31923  	}
 31924  	target := &ret
 31925  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31926  		return nil, err
 31927  	}
 31928  	return ret, nil
 31929  }
 31930  
 31931  type ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall struct {
 31932  	s                                                   *Service
 31933  	siteSearchEngine                                    string
 31934  	googleclouddiscoveryenginev1alpharecrawlurisrequest *GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest
 31935  	urlParams_                                          gensupport.URLParams
 31936  	ctx_                                                context.Context
 31937  	header_                                             http.Header
 31938  }
 31939  
 31940  // RecrawlUris: Request on-demand recrawl for a list of URIs.
 31941  //
 31942  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 31943  //     `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
 31944  func (r *ProjectsLocationsDataStoresSiteSearchEngineService) RecrawlUris(siteSearchEngine string, googleclouddiscoveryenginev1alpharecrawlurisrequest *GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
 31945  	c := &ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31946  	c.siteSearchEngine = siteSearchEngine
 31947  	c.googleclouddiscoveryenginev1alpharecrawlurisrequest = googleclouddiscoveryenginev1alpharecrawlurisrequest
 31948  	return c
 31949  }
 31950  
 31951  // Fields allows partial responses to be retrieved. See
 31952  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31953  // details.
 31954  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
 31955  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31956  	return c
 31957  }
 31958  
 31959  // Context sets the context to be used in this call's Do method.
 31960  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
 31961  	c.ctx_ = ctx
 31962  	return c
 31963  }
 31964  
 31965  // Header returns a http.Header that can be modified by the caller to add
 31966  // headers to the request.
 31967  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Header() http.Header {
 31968  	if c.header_ == nil {
 31969  		c.header_ = make(http.Header)
 31970  	}
 31971  	return c.header_
 31972  }
 31973  
 31974  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(alt string) (*http.Response, error) {
 31975  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31976  	var body io.Reader = nil
 31977  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharecrawlurisrequest)
 31978  	if err != nil {
 31979  		return nil, err
 31980  	}
 31981  	c.urlParams_.Set("alt", alt)
 31982  	c.urlParams_.Set("prettyPrint", "false")
 31983  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:recrawlUris")
 31984  	urls += "?" + c.urlParams_.Encode()
 31985  	req, err := http.NewRequest("POST", urls, body)
 31986  	if err != nil {
 31987  		return nil, err
 31988  	}
 31989  	req.Header = reqHeaders
 31990  	googleapi.Expand(req.URL, map[string]string{
 31991  		"siteSearchEngine": c.siteSearchEngine,
 31992  	})
 31993  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31994  }
 31995  
 31996  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.recrawlUris" call.
 31997  // Any non-2xx status code is an error. Response headers are in either
 31998  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 31999  // returned at all) in error.(*googleapi.Error).Header. Use
 32000  // googleapi.IsNotModified to check whether the returned error was because
 32001  // http.StatusNotModified was returned.
 32002  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32003  	gensupport.SetOptions(c.urlParams_, opts...)
 32004  	res, err := c.doRequest("json")
 32005  	if res != nil && res.StatusCode == http.StatusNotModified {
 32006  		if res.Body != nil {
 32007  			res.Body.Close()
 32008  		}
 32009  		return nil, gensupport.WrapError(&googleapi.Error{
 32010  			Code:   res.StatusCode,
 32011  			Header: res.Header,
 32012  		})
 32013  	}
 32014  	if err != nil {
 32015  		return nil, err
 32016  	}
 32017  	defer googleapi.CloseBody(res)
 32018  	if err := googleapi.CheckResponse(res); err != nil {
 32019  		return nil, gensupport.WrapError(err)
 32020  	}
 32021  	ret := &GoogleLongrunningOperation{
 32022  		ServerResponse: googleapi.ServerResponse{
 32023  			Header:         res.Header,
 32024  			HTTPStatusCode: res.StatusCode,
 32025  		},
 32026  	}
 32027  	target := &ret
 32028  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32029  		return nil, err
 32030  	}
 32031  	return ret, nil
 32032  }
 32033  
 32034  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct {
 32035  	s                                                              *Service
 32036  	parent                                                         string
 32037  	googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest
 32038  	urlParams_                                                     gensupport.URLParams
 32039  	ctx_                                                           context.Context
 32040  	header_                                                        http.Header
 32041  }
 32042  
 32043  // BatchCreate: Creates TargetSite in a batch.
 32044  //
 32045  //   - parent: The parent resource shared by all TargetSites being created.
 32046  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 32047  //     s/{data_store}/siteSearchEngine`. The parent field in the
 32048  //     CreateBookRequest messages must either be empty or match this field.
 32049  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 32050  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32051  	c.parent = parent
 32052  	c.googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest = googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest
 32053  	return c
 32054  }
 32055  
 32056  // Fields allows partial responses to be retrieved. See
 32057  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32058  // details.
 32059  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 32060  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32061  	return c
 32062  }
 32063  
 32064  // Context sets the context to be used in this call's Do method.
 32065  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 32066  	c.ctx_ = ctx
 32067  	return c
 32068  }
 32069  
 32070  // Header returns a http.Header that can be modified by the caller to add
 32071  // headers to the request.
 32072  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header {
 32073  	if c.header_ == nil {
 32074  		c.header_ = make(http.Header)
 32075  	}
 32076  	return c.header_
 32077  }
 32078  
 32079  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 32080  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32081  	var body io.Reader = nil
 32082  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest)
 32083  	if err != nil {
 32084  		return nil, err
 32085  	}
 32086  	c.urlParams_.Set("alt", alt)
 32087  	c.urlParams_.Set("prettyPrint", "false")
 32088  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites:batchCreate")
 32089  	urls += "?" + c.urlParams_.Encode()
 32090  	req, err := http.NewRequest("POST", urls, body)
 32091  	if err != nil {
 32092  		return nil, err
 32093  	}
 32094  	req.Header = reqHeaders
 32095  	googleapi.Expand(req.URL, map[string]string{
 32096  		"parent": c.parent,
 32097  	})
 32098  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32099  }
 32100  
 32101  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.batchCreate" call.
 32102  // Any non-2xx status code is an error. Response headers are in either
 32103  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32104  // returned at all) in error.(*googleapi.Error).Header. Use
 32105  // googleapi.IsNotModified to check whether the returned error was because
 32106  // http.StatusNotModified was returned.
 32107  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32108  	gensupport.SetOptions(c.urlParams_, opts...)
 32109  	res, err := c.doRequest("json")
 32110  	if res != nil && res.StatusCode == http.StatusNotModified {
 32111  		if res.Body != nil {
 32112  			res.Body.Close()
 32113  		}
 32114  		return nil, gensupport.WrapError(&googleapi.Error{
 32115  			Code:   res.StatusCode,
 32116  			Header: res.Header,
 32117  		})
 32118  	}
 32119  	if err != nil {
 32120  		return nil, err
 32121  	}
 32122  	defer googleapi.CloseBody(res)
 32123  	if err := googleapi.CheckResponse(res); err != nil {
 32124  		return nil, gensupport.WrapError(err)
 32125  	}
 32126  	ret := &GoogleLongrunningOperation{
 32127  		ServerResponse: googleapi.ServerResponse{
 32128  			Header:         res.Header,
 32129  			HTTPStatusCode: res.StatusCode,
 32130  		},
 32131  	}
 32132  	target := &ret
 32133  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32134  		return nil, err
 32135  	}
 32136  	return ret, nil
 32137  }
 32138  
 32139  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall struct {
 32140  	s                                           *Service
 32141  	parent                                      string
 32142  	googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite
 32143  	urlParams_                                  gensupport.URLParams
 32144  	ctx_                                        context.Context
 32145  	header_                                     http.Header
 32146  }
 32147  
 32148  // Create: Creates a TargetSite.
 32149  //
 32150  //   - parent: Parent resource name of TargetSite, such as
 32151  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 32152  //     s/{data_store}/siteSearchEngine`.
 32153  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
 32154  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32155  	c.parent = parent
 32156  	c.googleclouddiscoveryenginev1alphatargetsite = googleclouddiscoveryenginev1alphatargetsite
 32157  	return c
 32158  }
 32159  
 32160  // Fields allows partial responses to be retrieved. See
 32161  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32162  // details.
 32163  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
 32164  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32165  	return c
 32166  }
 32167  
 32168  // Context sets the context to be used in this call's Do method.
 32169  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
 32170  	c.ctx_ = ctx
 32171  	return c
 32172  }
 32173  
 32174  // Header returns a http.Header that can be modified by the caller to add
 32175  // headers to the request.
 32176  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header {
 32177  	if c.header_ == nil {
 32178  		c.header_ = make(http.Header)
 32179  	}
 32180  	return c.header_
 32181  }
 32182  
 32183  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) {
 32184  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32185  	var body io.Reader = nil
 32186  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatargetsite)
 32187  	if err != nil {
 32188  		return nil, err
 32189  	}
 32190  	c.urlParams_.Set("alt", alt)
 32191  	c.urlParams_.Set("prettyPrint", "false")
 32192  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites")
 32193  	urls += "?" + c.urlParams_.Encode()
 32194  	req, err := http.NewRequest("POST", urls, body)
 32195  	if err != nil {
 32196  		return nil, err
 32197  	}
 32198  	req.Header = reqHeaders
 32199  	googleapi.Expand(req.URL, map[string]string{
 32200  		"parent": c.parent,
 32201  	})
 32202  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32203  }
 32204  
 32205  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.create" call.
 32206  // Any non-2xx status code is an error. Response headers are in either
 32207  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32208  // returned at all) in error.(*googleapi.Error).Header. Use
 32209  // googleapi.IsNotModified to check whether the returned error was because
 32210  // http.StatusNotModified was returned.
 32211  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32212  	gensupport.SetOptions(c.urlParams_, opts...)
 32213  	res, err := c.doRequest("json")
 32214  	if res != nil && res.StatusCode == http.StatusNotModified {
 32215  		if res.Body != nil {
 32216  			res.Body.Close()
 32217  		}
 32218  		return nil, gensupport.WrapError(&googleapi.Error{
 32219  			Code:   res.StatusCode,
 32220  			Header: res.Header,
 32221  		})
 32222  	}
 32223  	if err != nil {
 32224  		return nil, err
 32225  	}
 32226  	defer googleapi.CloseBody(res)
 32227  	if err := googleapi.CheckResponse(res); err != nil {
 32228  		return nil, gensupport.WrapError(err)
 32229  	}
 32230  	ret := &GoogleLongrunningOperation{
 32231  		ServerResponse: googleapi.ServerResponse{
 32232  			Header:         res.Header,
 32233  			HTTPStatusCode: res.StatusCode,
 32234  		},
 32235  	}
 32236  	target := &ret
 32237  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32238  		return nil, err
 32239  	}
 32240  	return ret, nil
 32241  }
 32242  
 32243  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall struct {
 32244  	s          *Service
 32245  	name       string
 32246  	urlParams_ gensupport.URLParams
 32247  	ctx_       context.Context
 32248  	header_    http.Header
 32249  }
 32250  
 32251  // Delete: Deletes a TargetSite.
 32252  //
 32253  //   - name: Full resource name of TargetSite, such as
 32254  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 32255  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}`. If the caller
 32256  //     does not have permission to access the TargetSite, regardless of whether
 32257  //     or not it exists, a PERMISSION_DENIED error is returned. If the requested
 32258  //     TargetSite does not exist, a NOT_FOUND error is returned.
 32259  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Delete(name string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 32260  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32261  	c.name = name
 32262  	return c
 32263  }
 32264  
 32265  // Fields allows partial responses to be retrieved. See
 32266  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32267  // details.
 32268  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 32269  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32270  	return c
 32271  }
 32272  
 32273  // Context sets the context to be used in this call's Do method.
 32274  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 32275  	c.ctx_ = ctx
 32276  	return c
 32277  }
 32278  
 32279  // Header returns a http.Header that can be modified by the caller to add
 32280  // headers to the request.
 32281  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Header() http.Header {
 32282  	if c.header_ == nil {
 32283  		c.header_ = make(http.Header)
 32284  	}
 32285  	return c.header_
 32286  }
 32287  
 32288  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) doRequest(alt string) (*http.Response, error) {
 32289  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32290  	var body io.Reader = nil
 32291  	c.urlParams_.Set("alt", alt)
 32292  	c.urlParams_.Set("prettyPrint", "false")
 32293  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 32294  	urls += "?" + c.urlParams_.Encode()
 32295  	req, err := http.NewRequest("DELETE", urls, body)
 32296  	if err != nil {
 32297  		return nil, err
 32298  	}
 32299  	req.Header = reqHeaders
 32300  	googleapi.Expand(req.URL, map[string]string{
 32301  		"name": c.name,
 32302  	})
 32303  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32304  }
 32305  
 32306  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.delete" call.
 32307  // Any non-2xx status code is an error. Response headers are in either
 32308  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32309  // returned at all) in error.(*googleapi.Error).Header. Use
 32310  // googleapi.IsNotModified to check whether the returned error was because
 32311  // http.StatusNotModified was returned.
 32312  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32313  	gensupport.SetOptions(c.urlParams_, opts...)
 32314  	res, err := c.doRequest("json")
 32315  	if res != nil && res.StatusCode == http.StatusNotModified {
 32316  		if res.Body != nil {
 32317  			res.Body.Close()
 32318  		}
 32319  		return nil, gensupport.WrapError(&googleapi.Error{
 32320  			Code:   res.StatusCode,
 32321  			Header: res.Header,
 32322  		})
 32323  	}
 32324  	if err != nil {
 32325  		return nil, err
 32326  	}
 32327  	defer googleapi.CloseBody(res)
 32328  	if err := googleapi.CheckResponse(res); err != nil {
 32329  		return nil, gensupport.WrapError(err)
 32330  	}
 32331  	ret := &GoogleLongrunningOperation{
 32332  		ServerResponse: googleapi.ServerResponse{
 32333  			Header:         res.Header,
 32334  			HTTPStatusCode: res.StatusCode,
 32335  		},
 32336  	}
 32337  	target := &ret
 32338  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32339  		return nil, err
 32340  	}
 32341  	return ret, nil
 32342  }
 32343  
 32344  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall struct {
 32345  	s            *Service
 32346  	name         string
 32347  	urlParams_   gensupport.URLParams
 32348  	ifNoneMatch_ string
 32349  	ctx_         context.Context
 32350  	header_      http.Header
 32351  }
 32352  
 32353  // Get: Gets a TargetSite.
 32354  //
 32355  //   - name: Full resource name of TargetSite, such as
 32356  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 32357  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}`. If the caller
 32358  //     does not have permission to access the TargetSite, regardless of whether
 32359  //     or not it exists, a PERMISSION_DENIED error is returned. If the requested
 32360  //     TargetSite does not exist, a NOT_FOUND error is returned.
 32361  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Get(name string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
 32362  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32363  	c.name = name
 32364  	return c
 32365  }
 32366  
 32367  // Fields allows partial responses to be retrieved. See
 32368  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32369  // details.
 32370  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
 32371  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32372  	return c
 32373  }
 32374  
 32375  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32376  // object's ETag matches the given value. This is useful for getting updates
 32377  // only after the object has changed since the last request.
 32378  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
 32379  	c.ifNoneMatch_ = entityTag
 32380  	return c
 32381  }
 32382  
 32383  // Context sets the context to be used in this call's Do method.
 32384  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
 32385  	c.ctx_ = ctx
 32386  	return c
 32387  }
 32388  
 32389  // Header returns a http.Header that can be modified by the caller to add
 32390  // headers to the request.
 32391  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Header() http.Header {
 32392  	if c.header_ == nil {
 32393  		c.header_ = make(http.Header)
 32394  	}
 32395  	return c.header_
 32396  }
 32397  
 32398  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) doRequest(alt string) (*http.Response, error) {
 32399  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32400  	if c.ifNoneMatch_ != "" {
 32401  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32402  	}
 32403  	var body io.Reader = nil
 32404  	c.urlParams_.Set("alt", alt)
 32405  	c.urlParams_.Set("prettyPrint", "false")
 32406  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 32407  	urls += "?" + c.urlParams_.Encode()
 32408  	req, err := http.NewRequest("GET", urls, body)
 32409  	if err != nil {
 32410  		return nil, err
 32411  	}
 32412  	req.Header = reqHeaders
 32413  	googleapi.Expand(req.URL, map[string]string{
 32414  		"name": c.name,
 32415  	})
 32416  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32417  }
 32418  
 32419  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.get" call.
 32420  // Any non-2xx status code is an error. Response headers are in either
 32421  // *GoogleCloudDiscoveryengineV1alphaTargetSite.ServerResponse.Header or (if a
 32422  // response was returned at all) in error.(*googleapi.Error).Header. Use
 32423  // googleapi.IsNotModified to check whether the returned error was because
 32424  // http.StatusNotModified was returned.
 32425  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaTargetSite, error) {
 32426  	gensupport.SetOptions(c.urlParams_, opts...)
 32427  	res, err := c.doRequest("json")
 32428  	if res != nil && res.StatusCode == http.StatusNotModified {
 32429  		if res.Body != nil {
 32430  			res.Body.Close()
 32431  		}
 32432  		return nil, gensupport.WrapError(&googleapi.Error{
 32433  			Code:   res.StatusCode,
 32434  			Header: res.Header,
 32435  		})
 32436  	}
 32437  	if err != nil {
 32438  		return nil, err
 32439  	}
 32440  	defer googleapi.CloseBody(res)
 32441  	if err := googleapi.CheckResponse(res); err != nil {
 32442  		return nil, gensupport.WrapError(err)
 32443  	}
 32444  	ret := &GoogleCloudDiscoveryengineV1alphaTargetSite{
 32445  		ServerResponse: googleapi.ServerResponse{
 32446  			Header:         res.Header,
 32447  			HTTPStatusCode: res.StatusCode,
 32448  		},
 32449  	}
 32450  	target := &ret
 32451  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32452  		return nil, err
 32453  	}
 32454  	return ret, nil
 32455  }
 32456  
 32457  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall struct {
 32458  	s            *Service
 32459  	parent       string
 32460  	urlParams_   gensupport.URLParams
 32461  	ifNoneMatch_ string
 32462  	ctx_         context.Context
 32463  	header_      http.Header
 32464  }
 32465  
 32466  // List: Gets a list of TargetSites.
 32467  //
 32468  //   - parent: The parent site search engine resource name, such as
 32469  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 32470  //     s/{data_store}/siteSearchEngine`. If the caller does not have permission
 32471  //     to list TargetSites under this site search engine, regardless of whether
 32472  //     or not this branch exists, a PERMISSION_DENIED error is returned.
 32473  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) List(parent string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 32474  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32475  	c.parent = parent
 32476  	return c
 32477  }
 32478  
 32479  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 32480  // may return fewer items than requested. If unspecified, server will pick an
 32481  // appropriate default. The maximum value is 1000; values above 1000 will be
 32482  // coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is
 32483  // returned.
 32484  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 32485  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 32486  	return c
 32487  }
 32488  
 32489  // PageToken sets the optional parameter "pageToken": A page token, received
 32490  // from a previous `ListTargetSites` call. Provide this to retrieve the
 32491  // subsequent page. When paginating, all other parameters provided to
 32492  // `ListTargetSites` must match the call that provided the page token.
 32493  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 32494  	c.urlParams_.Set("pageToken", pageToken)
 32495  	return c
 32496  }
 32497  
 32498  // Fields allows partial responses to be retrieved. See
 32499  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32500  // details.
 32501  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 32502  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32503  	return c
 32504  }
 32505  
 32506  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32507  // object's ETag matches the given value. This is useful for getting updates
 32508  // only after the object has changed since the last request.
 32509  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 32510  	c.ifNoneMatch_ = entityTag
 32511  	return c
 32512  }
 32513  
 32514  // Context sets the context to be used in this call's Do method.
 32515  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 32516  	c.ctx_ = ctx
 32517  	return c
 32518  }
 32519  
 32520  // Header returns a http.Header that can be modified by the caller to add
 32521  // headers to the request.
 32522  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Header() http.Header {
 32523  	if c.header_ == nil {
 32524  		c.header_ = make(http.Header)
 32525  	}
 32526  	return c.header_
 32527  }
 32528  
 32529  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) doRequest(alt string) (*http.Response, error) {
 32530  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 32531  	if c.ifNoneMatch_ != "" {
 32532  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 32533  	}
 32534  	var body io.Reader = nil
 32535  	c.urlParams_.Set("alt", alt)
 32536  	c.urlParams_.Set("prettyPrint", "false")
 32537  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites")
 32538  	urls += "?" + c.urlParams_.Encode()
 32539  	req, err := http.NewRequest("GET", urls, body)
 32540  	if err != nil {
 32541  		return nil, err
 32542  	}
 32543  	req.Header = reqHeaders
 32544  	googleapi.Expand(req.URL, map[string]string{
 32545  		"parent": c.parent,
 32546  	})
 32547  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32548  }
 32549  
 32550  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.list" call.
 32551  // Any non-2xx status code is an error. Response headers are in either
 32552  // *GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse.ServerResponse.Head
 32553  // er or (if a response was returned at all) in
 32554  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 32555  // whether the returned error was because http.StatusNotModified was returned.
 32556  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse, error) {
 32557  	gensupport.SetOptions(c.urlParams_, opts...)
 32558  	res, err := c.doRequest("json")
 32559  	if res != nil && res.StatusCode == http.StatusNotModified {
 32560  		if res.Body != nil {
 32561  			res.Body.Close()
 32562  		}
 32563  		return nil, gensupport.WrapError(&googleapi.Error{
 32564  			Code:   res.StatusCode,
 32565  			Header: res.Header,
 32566  		})
 32567  	}
 32568  	if err != nil {
 32569  		return nil, err
 32570  	}
 32571  	defer googleapi.CloseBody(res)
 32572  	if err := googleapi.CheckResponse(res); err != nil {
 32573  		return nil, gensupport.WrapError(err)
 32574  	}
 32575  	ret := &GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse{
 32576  		ServerResponse: googleapi.ServerResponse{
 32577  			Header:         res.Header,
 32578  			HTTPStatusCode: res.StatusCode,
 32579  		},
 32580  	}
 32581  	target := &ret
 32582  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32583  		return nil, err
 32584  	}
 32585  	return ret, nil
 32586  }
 32587  
 32588  // Pages invokes f for each page of results.
 32589  // A non-nil error returned from f will halt the iteration.
 32590  // The provided context supersedes any context provided to the Context method.
 32591  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse) error) error {
 32592  	c.ctx_ = ctx
 32593  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 32594  	for {
 32595  		x, err := c.Do()
 32596  		if err != nil {
 32597  			return err
 32598  		}
 32599  		if err := f(x); err != nil {
 32600  			return err
 32601  		}
 32602  		if x.NextPageToken == "" {
 32603  			return nil
 32604  		}
 32605  		c.PageToken(x.NextPageToken)
 32606  	}
 32607  }
 32608  
 32609  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall struct {
 32610  	s                                           *Service
 32611  	name                                        string
 32612  	googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite
 32613  	urlParams_                                  gensupport.URLParams
 32614  	ctx_                                        context.Context
 32615  	header_                                     http.Header
 32616  }
 32617  
 32618  // Patch: Updates a TargetSite.
 32619  //
 32620  //   - name: Output only. The fully qualified resource name of the target site.
 32621  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 32622  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}` The
 32623  //     `target_site_id` is system-generated.
 32624  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Patch(name string, googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
 32625  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32626  	c.name = name
 32627  	c.googleclouddiscoveryenginev1alphatargetsite = googleclouddiscoveryenginev1alphatargetsite
 32628  	return c
 32629  }
 32630  
 32631  // Fields allows partial responses to be retrieved. See
 32632  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32633  // details.
 32634  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
 32635  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32636  	return c
 32637  }
 32638  
 32639  // Context sets the context to be used in this call's Do method.
 32640  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
 32641  	c.ctx_ = ctx
 32642  	return c
 32643  }
 32644  
 32645  // Header returns a http.Header that can be modified by the caller to add
 32646  // headers to the request.
 32647  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Header() http.Header {
 32648  	if c.header_ == nil {
 32649  		c.header_ = make(http.Header)
 32650  	}
 32651  	return c.header_
 32652  }
 32653  
 32654  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequest(alt string) (*http.Response, error) {
 32655  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32656  	var body io.Reader = nil
 32657  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatargetsite)
 32658  	if err != nil {
 32659  		return nil, err
 32660  	}
 32661  	c.urlParams_.Set("alt", alt)
 32662  	c.urlParams_.Set("prettyPrint", "false")
 32663  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 32664  	urls += "?" + c.urlParams_.Encode()
 32665  	req, err := http.NewRequest("PATCH", urls, body)
 32666  	if err != nil {
 32667  		return nil, err
 32668  	}
 32669  	req.Header = reqHeaders
 32670  	googleapi.Expand(req.URL, map[string]string{
 32671  		"name": c.name,
 32672  	})
 32673  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32674  }
 32675  
 32676  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.patch" call.
 32677  // Any non-2xx status code is an error. Response headers are in either
 32678  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32679  // returned at all) in error.(*googleapi.Error).Header. Use
 32680  // googleapi.IsNotModified to check whether the returned error was because
 32681  // http.StatusNotModified was returned.
 32682  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32683  	gensupport.SetOptions(c.urlParams_, opts...)
 32684  	res, err := c.doRequest("json")
 32685  	if res != nil && res.StatusCode == http.StatusNotModified {
 32686  		if res.Body != nil {
 32687  			res.Body.Close()
 32688  		}
 32689  		return nil, gensupport.WrapError(&googleapi.Error{
 32690  			Code:   res.StatusCode,
 32691  			Header: res.Header,
 32692  		})
 32693  	}
 32694  	if err != nil {
 32695  		return nil, err
 32696  	}
 32697  	defer googleapi.CloseBody(res)
 32698  	if err := googleapi.CheckResponse(res); err != nil {
 32699  		return nil, gensupport.WrapError(err)
 32700  	}
 32701  	ret := &GoogleLongrunningOperation{
 32702  		ServerResponse: googleapi.ServerResponse{
 32703  			Header:         res.Header,
 32704  			HTTPStatusCode: res.StatusCode,
 32705  		},
 32706  	}
 32707  	target := &ret
 32708  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32709  		return nil, err
 32710  	}
 32711  	return ret, nil
 32712  }
 32713  
 32714  type ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall struct {
 32715  	s                                                                       *Service
 32716  	parent                                                                  string
 32717  	googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest
 32718  	urlParams_                                                              gensupport.URLParams
 32719  	ctx_                                                                    context.Context
 32720  	header_                                                                 http.Header
 32721  }
 32722  
 32723  // Import: Imports all SuggestionDenyListEntry for a DataStore.
 32724  //
 32725  //   - parent: The parent data store resource name for which to import denylist
 32726  //     entries. Follows pattern
 32727  //     projects/*/locations/*/collections/*/dataStores/*.
 32728  func (r *ProjectsLocationsDataStoresSuggestionDenyListEntriesService) Import(parent string, googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
 32729  	c := &ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32730  	c.parent = parent
 32731  	c.googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest = googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest
 32732  	return c
 32733  }
 32734  
 32735  // Fields allows partial responses to be retrieved. See
 32736  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32737  // details.
 32738  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
 32739  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32740  	return c
 32741  }
 32742  
 32743  // Context sets the context to be used in this call's Do method.
 32744  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
 32745  	c.ctx_ = ctx
 32746  	return c
 32747  }
 32748  
 32749  // Header returns a http.Header that can be modified by the caller to add
 32750  // headers to the request.
 32751  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Header() http.Header {
 32752  	if c.header_ == nil {
 32753  		c.header_ = make(http.Header)
 32754  	}
 32755  	return c.header_
 32756  }
 32757  
 32758  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) doRequest(alt string) (*http.Response, error) {
 32759  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32760  	var body io.Reader = nil
 32761  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest)
 32762  	if err != nil {
 32763  		return nil, err
 32764  	}
 32765  	c.urlParams_.Set("alt", alt)
 32766  	c.urlParams_.Set("prettyPrint", "false")
 32767  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/suggestionDenyListEntries:import")
 32768  	urls += "?" + c.urlParams_.Encode()
 32769  	req, err := http.NewRequest("POST", urls, body)
 32770  	if err != nil {
 32771  		return nil, err
 32772  	}
 32773  	req.Header = reqHeaders
 32774  	googleapi.Expand(req.URL, map[string]string{
 32775  		"parent": c.parent,
 32776  	})
 32777  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32778  }
 32779  
 32780  // Do executes the "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.import" call.
 32781  // Any non-2xx status code is an error. Response headers are in either
 32782  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32783  // returned at all) in error.(*googleapi.Error).Header. Use
 32784  // googleapi.IsNotModified to check whether the returned error was because
 32785  // http.StatusNotModified was returned.
 32786  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32787  	gensupport.SetOptions(c.urlParams_, opts...)
 32788  	res, err := c.doRequest("json")
 32789  	if res != nil && res.StatusCode == http.StatusNotModified {
 32790  		if res.Body != nil {
 32791  			res.Body.Close()
 32792  		}
 32793  		return nil, gensupport.WrapError(&googleapi.Error{
 32794  			Code:   res.StatusCode,
 32795  			Header: res.Header,
 32796  		})
 32797  	}
 32798  	if err != nil {
 32799  		return nil, err
 32800  	}
 32801  	defer googleapi.CloseBody(res)
 32802  	if err := googleapi.CheckResponse(res); err != nil {
 32803  		return nil, gensupport.WrapError(err)
 32804  	}
 32805  	ret := &GoogleLongrunningOperation{
 32806  		ServerResponse: googleapi.ServerResponse{
 32807  			Header:         res.Header,
 32808  			HTTPStatusCode: res.StatusCode,
 32809  		},
 32810  	}
 32811  	target := &ret
 32812  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32813  		return nil, err
 32814  	}
 32815  	return ret, nil
 32816  }
 32817  
 32818  type ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall struct {
 32819  	s                                                                      *Service
 32820  	parent                                                                 string
 32821  	googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest
 32822  	urlParams_                                                             gensupport.URLParams
 32823  	ctx_                                                                   context.Context
 32824  	header_                                                                http.Header
 32825  }
 32826  
 32827  // Purge: Permanently deletes all SuggestionDenyListEntry for a DataStore.
 32828  //
 32829  //   - parent: The parent data store resource name for which to import denylist
 32830  //     entries. Follows pattern
 32831  //     projects/*/locations/*/collections/*/dataStores/*.
 32832  func (r *ProjectsLocationsDataStoresSuggestionDenyListEntriesService) Purge(parent string, googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
 32833  	c := &ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32834  	c.parent = parent
 32835  	c.googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest = googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest
 32836  	return c
 32837  }
 32838  
 32839  // Fields allows partial responses to be retrieved. See
 32840  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32841  // details.
 32842  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
 32843  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32844  	return c
 32845  }
 32846  
 32847  // Context sets the context to be used in this call's Do method.
 32848  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
 32849  	c.ctx_ = ctx
 32850  	return c
 32851  }
 32852  
 32853  // Header returns a http.Header that can be modified by the caller to add
 32854  // headers to the request.
 32855  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Header() http.Header {
 32856  	if c.header_ == nil {
 32857  		c.header_ = make(http.Header)
 32858  	}
 32859  	return c.header_
 32860  }
 32861  
 32862  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) doRequest(alt string) (*http.Response, error) {
 32863  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 32864  	var body io.Reader = nil
 32865  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest)
 32866  	if err != nil {
 32867  		return nil, err
 32868  	}
 32869  	c.urlParams_.Set("alt", alt)
 32870  	c.urlParams_.Set("prettyPrint", "false")
 32871  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/suggestionDenyListEntries:purge")
 32872  	urls += "?" + c.urlParams_.Encode()
 32873  	req, err := http.NewRequest("POST", urls, body)
 32874  	if err != nil {
 32875  		return nil, err
 32876  	}
 32877  	req.Header = reqHeaders
 32878  	googleapi.Expand(req.URL, map[string]string{
 32879  		"parent": c.parent,
 32880  	})
 32881  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 32882  }
 32883  
 32884  // Do executes the "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.purge" call.
 32885  // Any non-2xx status code is an error. Response headers are in either
 32886  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 32887  // returned at all) in error.(*googleapi.Error).Header. Use
 32888  // googleapi.IsNotModified to check whether the returned error was because
 32889  // http.StatusNotModified was returned.
 32890  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 32891  	gensupport.SetOptions(c.urlParams_, opts...)
 32892  	res, err := c.doRequest("json")
 32893  	if res != nil && res.StatusCode == http.StatusNotModified {
 32894  		if res.Body != nil {
 32895  			res.Body.Close()
 32896  		}
 32897  		return nil, gensupport.WrapError(&googleapi.Error{
 32898  			Code:   res.StatusCode,
 32899  			Header: res.Header,
 32900  		})
 32901  	}
 32902  	if err != nil {
 32903  		return nil, err
 32904  	}
 32905  	defer googleapi.CloseBody(res)
 32906  	if err := googleapi.CheckResponse(res); err != nil {
 32907  		return nil, gensupport.WrapError(err)
 32908  	}
 32909  	ret := &GoogleLongrunningOperation{
 32910  		ServerResponse: googleapi.ServerResponse{
 32911  			Header:         res.Header,
 32912  			HTTPStatusCode: res.StatusCode,
 32913  		},
 32914  	}
 32915  	target := &ret
 32916  	if err := gensupport.DecodeResponse(target, res); err != nil {
 32917  		return nil, err
 32918  	}
 32919  	return ret, nil
 32920  }
 32921  
 32922  type ProjectsLocationsDataStoresUserEventsCollectCall struct {
 32923  	s            *Service
 32924  	parent       string
 32925  	urlParams_   gensupport.URLParams
 32926  	ifNoneMatch_ string
 32927  	ctx_         context.Context
 32928  	header_      http.Header
 32929  }
 32930  
 32931  // Collect: Writes a single user event from the browser. This uses a GET
 32932  // request to due to browser restriction of POST-ing to a third-party domain.
 32933  // This method is used only by the Discovery Engine API JavaScript pixel and
 32934  // Google Tag Manager. Users should not call this method directly.
 32935  //
 32936  //   - parent: The parent DataStore resource name, such as
 32937  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 32938  //     s/{data_store}`.
 32939  func (r *ProjectsLocationsDataStoresUserEventsService) Collect(parent string) *ProjectsLocationsDataStoresUserEventsCollectCall {
 32940  	c := &ProjectsLocationsDataStoresUserEventsCollectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 32941  	c.parent = parent
 32942  	return c
 32943  }
 32944  
 32945  // Ets sets the optional parameter "ets": The event timestamp in milliseconds.
 32946  // This prevents browser caching of otherwise identical get requests. The name
 32947  // is abbreviated to reduce the payload bytes.
 32948  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Ets(ets int64) *ProjectsLocationsDataStoresUserEventsCollectCall {
 32949  	c.urlParams_.Set("ets", fmt.Sprint(ets))
 32950  	return c
 32951  }
 32952  
 32953  // Uri sets the optional parameter "uri": The URL including cgi-parameters but
 32954  // excluding the hash fragment with a length limit of 5,000 characters. This is
 32955  // often more useful than the referer URL, because many browsers only send the
 32956  // domain for third-party requests.
 32957  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Uri(uri string) *ProjectsLocationsDataStoresUserEventsCollectCall {
 32958  	c.urlParams_.Set("uri", uri)
 32959  	return c
 32960  }
 32961  
 32962  // UserEvent sets the optional parameter "userEvent": Required. URL encoded
 32963  // UserEvent proto with a length limit of 2,000,000 characters.
 32964  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) UserEvent(userEvent string) *ProjectsLocationsDataStoresUserEventsCollectCall {
 32965  	c.urlParams_.Set("userEvent", userEvent)
 32966  	return c
 32967  }
 32968  
 32969  // Fields allows partial responses to be retrieved. See
 32970  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 32971  // details.
 32972  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsCollectCall {
 32973  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 32974  	return c
 32975  }
 32976  
 32977  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 32978  // object's ETag matches the given value. This is useful for getting updates
 32979  // only after the object has changed since the last request.
 32980  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresUserEventsCollectCall {
 32981  	c.ifNoneMatch_ = entityTag
 32982  	return c
 32983  }
 32984  
 32985  // Context sets the context to be used in this call's Do method.
 32986  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsCollectCall {
 32987  	c.ctx_ = ctx
 32988  	return c
 32989  }
 32990  
 32991  // Header returns a http.Header that can be modified by the caller to add
 32992  // headers to the request.
 32993  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Header() http.Header {
 32994  	if c.header_ == nil {
 32995  		c.header_ = make(http.Header)
 32996  	}
 32997  	return c.header_
 32998  }
 32999  
 33000  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) {
 33001  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33002  	if c.ifNoneMatch_ != "" {
 33003  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33004  	}
 33005  	var body io.Reader = nil
 33006  	c.urlParams_.Set("alt", alt)
 33007  	c.urlParams_.Set("prettyPrint", "false")
 33008  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:collect")
 33009  	urls += "?" + c.urlParams_.Encode()
 33010  	req, err := http.NewRequest("GET", urls, body)
 33011  	if err != nil {
 33012  		return nil, err
 33013  	}
 33014  	req.Header = reqHeaders
 33015  	googleapi.Expand(req.URL, map[string]string{
 33016  		"parent": c.parent,
 33017  	})
 33018  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33019  }
 33020  
 33021  // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.collect" call.
 33022  // Any non-2xx status code is an error. Response headers are in either
 33023  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 33024  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 33025  // check whether the returned error was because http.StatusNotModified was
 33026  // returned.
 33027  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 33028  	gensupport.SetOptions(c.urlParams_, opts...)
 33029  	res, err := c.doRequest("json")
 33030  	if res != nil && res.StatusCode == http.StatusNotModified {
 33031  		if res.Body != nil {
 33032  			res.Body.Close()
 33033  		}
 33034  		return nil, gensupport.WrapError(&googleapi.Error{
 33035  			Code:   res.StatusCode,
 33036  			Header: res.Header,
 33037  		})
 33038  	}
 33039  	if err != nil {
 33040  		return nil, err
 33041  	}
 33042  	defer googleapi.CloseBody(res)
 33043  	if err := googleapi.CheckResponse(res); err != nil {
 33044  		return nil, gensupport.WrapError(err)
 33045  	}
 33046  	ret := &GoogleApiHttpBody{
 33047  		ServerResponse: googleapi.ServerResponse{
 33048  			Header:         res.Header,
 33049  			HTTPStatusCode: res.StatusCode,
 33050  		},
 33051  	}
 33052  	target := &ret
 33053  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33054  		return nil, err
 33055  	}
 33056  	return ret, nil
 33057  }
 33058  
 33059  type ProjectsLocationsDataStoresUserEventsImportCall struct {
 33060  	s                                                        *Service
 33061  	parent                                                   string
 33062  	googleclouddiscoveryenginev1alphaimportusereventsrequest *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest
 33063  	urlParams_                                               gensupport.URLParams
 33064  	ctx_                                                     context.Context
 33065  	header_                                                  http.Header
 33066  }
 33067  
 33068  // Import: Bulk import of User events. Request processing might be synchronous.
 33069  // Events that already exist are skipped. Use this method for backfilling
 33070  // historical user events. Operation.response is of type ImportResponse. Note
 33071  // that it is possible for a subset of the items to be successfully inserted.
 33072  // Operation.metadata is of type ImportMetadata.
 33073  //
 33074  //   - parent: Parent DataStore resource name, of the form
 33075  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 33076  //     s/{data_store}`.
 33077  func (r *ProjectsLocationsDataStoresUserEventsService) Import(parent string, googleclouddiscoveryenginev1alphaimportusereventsrequest *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest) *ProjectsLocationsDataStoresUserEventsImportCall {
 33078  	c := &ProjectsLocationsDataStoresUserEventsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33079  	c.parent = parent
 33080  	c.googleclouddiscoveryenginev1alphaimportusereventsrequest = googleclouddiscoveryenginev1alphaimportusereventsrequest
 33081  	return c
 33082  }
 33083  
 33084  // Fields allows partial responses to be retrieved. See
 33085  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33086  // details.
 33087  func (c *ProjectsLocationsDataStoresUserEventsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsImportCall {
 33088  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33089  	return c
 33090  }
 33091  
 33092  // Context sets the context to be used in this call's Do method.
 33093  func (c *ProjectsLocationsDataStoresUserEventsImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsImportCall {
 33094  	c.ctx_ = ctx
 33095  	return c
 33096  }
 33097  
 33098  // Header returns a http.Header that can be modified by the caller to add
 33099  // headers to the request.
 33100  func (c *ProjectsLocationsDataStoresUserEventsImportCall) Header() http.Header {
 33101  	if c.header_ == nil {
 33102  		c.header_ = make(http.Header)
 33103  	}
 33104  	return c.header_
 33105  }
 33106  
 33107  func (c *ProjectsLocationsDataStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) {
 33108  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33109  	var body io.Reader = nil
 33110  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaimportusereventsrequest)
 33111  	if err != nil {
 33112  		return nil, err
 33113  	}
 33114  	c.urlParams_.Set("alt", alt)
 33115  	c.urlParams_.Set("prettyPrint", "false")
 33116  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:import")
 33117  	urls += "?" + c.urlParams_.Encode()
 33118  	req, err := http.NewRequest("POST", urls, body)
 33119  	if err != nil {
 33120  		return nil, err
 33121  	}
 33122  	req.Header = reqHeaders
 33123  	googleapi.Expand(req.URL, map[string]string{
 33124  		"parent": c.parent,
 33125  	})
 33126  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33127  }
 33128  
 33129  // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.import" call.
 33130  // Any non-2xx status code is an error. Response headers are in either
 33131  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 33132  // returned at all) in error.(*googleapi.Error).Header. Use
 33133  // googleapi.IsNotModified to check whether the returned error was because
 33134  // http.StatusNotModified was returned.
 33135  func (c *ProjectsLocationsDataStoresUserEventsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 33136  	gensupport.SetOptions(c.urlParams_, opts...)
 33137  	res, err := c.doRequest("json")
 33138  	if res != nil && res.StatusCode == http.StatusNotModified {
 33139  		if res.Body != nil {
 33140  			res.Body.Close()
 33141  		}
 33142  		return nil, gensupport.WrapError(&googleapi.Error{
 33143  			Code:   res.StatusCode,
 33144  			Header: res.Header,
 33145  		})
 33146  	}
 33147  	if err != nil {
 33148  		return nil, err
 33149  	}
 33150  	defer googleapi.CloseBody(res)
 33151  	if err := googleapi.CheckResponse(res); err != nil {
 33152  		return nil, gensupport.WrapError(err)
 33153  	}
 33154  	ret := &GoogleLongrunningOperation{
 33155  		ServerResponse: googleapi.ServerResponse{
 33156  			Header:         res.Header,
 33157  			HTTPStatusCode: res.StatusCode,
 33158  		},
 33159  	}
 33160  	target := &ret
 33161  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33162  		return nil, err
 33163  	}
 33164  	return ret, nil
 33165  }
 33166  
 33167  type ProjectsLocationsDataStoresUserEventsPurgeCall struct {
 33168  	s                                                       *Service
 33169  	parent                                                  string
 33170  	googleclouddiscoveryenginev1alphapurgeusereventsrequest *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest
 33171  	urlParams_                                              gensupport.URLParams
 33172  	ctx_                                                    context.Context
 33173  	header_                                                 http.Header
 33174  }
 33175  
 33176  // Purge: Deletes permanently all user events specified by the filter provided.
 33177  // Depending on the number of events specified by the filter, this operation
 33178  // could take hours or days to complete. To test a filter, use the list command
 33179  // first.
 33180  //
 33181  //   - parent: The resource name of the catalog under which the events are
 33182  //     created. The format is
 33183  //     `projects/${projectId}/locations/global/collections/{$collectionId}/dataSto
 33184  //     res/${dataStoreId}`.
 33185  func (r *ProjectsLocationsDataStoresUserEventsService) Purge(parent string, googleclouddiscoveryenginev1alphapurgeusereventsrequest *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest) *ProjectsLocationsDataStoresUserEventsPurgeCall {
 33186  	c := &ProjectsLocationsDataStoresUserEventsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33187  	c.parent = parent
 33188  	c.googleclouddiscoveryenginev1alphapurgeusereventsrequest = googleclouddiscoveryenginev1alphapurgeusereventsrequest
 33189  	return c
 33190  }
 33191  
 33192  // Fields allows partial responses to be retrieved. See
 33193  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33194  // details.
 33195  func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsPurgeCall {
 33196  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33197  	return c
 33198  }
 33199  
 33200  // Context sets the context to be used in this call's Do method.
 33201  func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsPurgeCall {
 33202  	c.ctx_ = ctx
 33203  	return c
 33204  }
 33205  
 33206  // Header returns a http.Header that can be modified by the caller to add
 33207  // headers to the request.
 33208  func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) Header() http.Header {
 33209  	if c.header_ == nil {
 33210  		c.header_ = make(http.Header)
 33211  	}
 33212  	return c.header_
 33213  }
 33214  
 33215  func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) doRequest(alt string) (*http.Response, error) {
 33216  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33217  	var body io.Reader = nil
 33218  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapurgeusereventsrequest)
 33219  	if err != nil {
 33220  		return nil, err
 33221  	}
 33222  	c.urlParams_.Set("alt", alt)
 33223  	c.urlParams_.Set("prettyPrint", "false")
 33224  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:purge")
 33225  	urls += "?" + c.urlParams_.Encode()
 33226  	req, err := http.NewRequest("POST", urls, body)
 33227  	if err != nil {
 33228  		return nil, err
 33229  	}
 33230  	req.Header = reqHeaders
 33231  	googleapi.Expand(req.URL, map[string]string{
 33232  		"parent": c.parent,
 33233  	})
 33234  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33235  }
 33236  
 33237  // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.purge" call.
 33238  // Any non-2xx status code is an error. Response headers are in either
 33239  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 33240  // returned at all) in error.(*googleapi.Error).Header. Use
 33241  // googleapi.IsNotModified to check whether the returned error was because
 33242  // http.StatusNotModified was returned.
 33243  func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 33244  	gensupport.SetOptions(c.urlParams_, opts...)
 33245  	res, err := c.doRequest("json")
 33246  	if res != nil && res.StatusCode == http.StatusNotModified {
 33247  		if res.Body != nil {
 33248  			res.Body.Close()
 33249  		}
 33250  		return nil, gensupport.WrapError(&googleapi.Error{
 33251  			Code:   res.StatusCode,
 33252  			Header: res.Header,
 33253  		})
 33254  	}
 33255  	if err != nil {
 33256  		return nil, err
 33257  	}
 33258  	defer googleapi.CloseBody(res)
 33259  	if err := googleapi.CheckResponse(res); err != nil {
 33260  		return nil, gensupport.WrapError(err)
 33261  	}
 33262  	ret := &GoogleLongrunningOperation{
 33263  		ServerResponse: googleapi.ServerResponse{
 33264  			Header:         res.Header,
 33265  			HTTPStatusCode: res.StatusCode,
 33266  		},
 33267  	}
 33268  	target := &ret
 33269  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33270  		return nil, err
 33271  	}
 33272  	return ret, nil
 33273  }
 33274  
 33275  type ProjectsLocationsDataStoresUserEventsWriteCall struct {
 33276  	s                                          *Service
 33277  	parent                                     string
 33278  	googleclouddiscoveryenginev1alphauserevent *GoogleCloudDiscoveryengineV1alphaUserEvent
 33279  	urlParams_                                 gensupport.URLParams
 33280  	ctx_                                       context.Context
 33281  	header_                                    http.Header
 33282  }
 33283  
 33284  // Write: Writes a single user event.
 33285  //
 33286  //   - parent: The parent resource name. If the write user event action is
 33287  //     applied in DataStore level, the format is:
 33288  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 33289  //     s/{data_store}`. If the write user event action is applied in Location
 33290  //     level, for example, the event with Document across multiple DataStore, the
 33291  //     format is: `projects/{project}/locations/{location}`.
 33292  func (r *ProjectsLocationsDataStoresUserEventsService) Write(parent string, googleclouddiscoveryenginev1alphauserevent *GoogleCloudDiscoveryengineV1alphaUserEvent) *ProjectsLocationsDataStoresUserEventsWriteCall {
 33293  	c := &ProjectsLocationsDataStoresUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33294  	c.parent = parent
 33295  	c.googleclouddiscoveryenginev1alphauserevent = googleclouddiscoveryenginev1alphauserevent
 33296  	return c
 33297  }
 33298  
 33299  // Fields allows partial responses to be retrieved. See
 33300  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33301  // details.
 33302  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsWriteCall {
 33303  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33304  	return c
 33305  }
 33306  
 33307  // Context sets the context to be used in this call's Do method.
 33308  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsWriteCall {
 33309  	c.ctx_ = ctx
 33310  	return c
 33311  }
 33312  
 33313  // Header returns a http.Header that can be modified by the caller to add
 33314  // headers to the request.
 33315  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Header() http.Header {
 33316  	if c.header_ == nil {
 33317  		c.header_ = make(http.Header)
 33318  	}
 33319  	return c.header_
 33320  }
 33321  
 33322  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
 33323  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33324  	var body io.Reader = nil
 33325  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphauserevent)
 33326  	if err != nil {
 33327  		return nil, err
 33328  	}
 33329  	c.urlParams_.Set("alt", alt)
 33330  	c.urlParams_.Set("prettyPrint", "false")
 33331  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:write")
 33332  	urls += "?" + c.urlParams_.Encode()
 33333  	req, err := http.NewRequest("POST", urls, body)
 33334  	if err != nil {
 33335  		return nil, err
 33336  	}
 33337  	req.Header = reqHeaders
 33338  	googleapi.Expand(req.URL, map[string]string{
 33339  		"parent": c.parent,
 33340  	})
 33341  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33342  }
 33343  
 33344  // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.write" call.
 33345  // Any non-2xx status code is an error. Response headers are in either
 33346  // *GoogleCloudDiscoveryengineV1alphaUserEvent.ServerResponse.Header or (if a
 33347  // response was returned at all) in error.(*googleapi.Error).Header. Use
 33348  // googleapi.IsNotModified to check whether the returned error was because
 33349  // http.StatusNotModified was returned.
 33350  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaUserEvent, error) {
 33351  	gensupport.SetOptions(c.urlParams_, opts...)
 33352  	res, err := c.doRequest("json")
 33353  	if res != nil && res.StatusCode == http.StatusNotModified {
 33354  		if res.Body != nil {
 33355  			res.Body.Close()
 33356  		}
 33357  		return nil, gensupport.WrapError(&googleapi.Error{
 33358  			Code:   res.StatusCode,
 33359  			Header: res.Header,
 33360  		})
 33361  	}
 33362  	if err != nil {
 33363  		return nil, err
 33364  	}
 33365  	defer googleapi.CloseBody(res)
 33366  	if err := googleapi.CheckResponse(res); err != nil {
 33367  		return nil, gensupport.WrapError(err)
 33368  	}
 33369  	ret := &GoogleCloudDiscoveryengineV1alphaUserEvent{
 33370  		ServerResponse: googleapi.ServerResponse{
 33371  			Header:         res.Header,
 33372  			HTTPStatusCode: res.StatusCode,
 33373  		},
 33374  	}
 33375  	target := &ret
 33376  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33377  		return nil, err
 33378  	}
 33379  	return ret, nil
 33380  }
 33381  
 33382  type ProjectsLocationsEvaluationsOperationsGetCall struct {
 33383  	s            *Service
 33384  	name         string
 33385  	urlParams_   gensupport.URLParams
 33386  	ifNoneMatch_ string
 33387  	ctx_         context.Context
 33388  	header_      http.Header
 33389  }
 33390  
 33391  // Get: Gets the latest state of a long-running operation. Clients can use this
 33392  // method to poll the operation result at intervals as recommended by the API
 33393  // service.
 33394  //
 33395  // - name: The name of the operation resource.
 33396  func (r *ProjectsLocationsEvaluationsOperationsService) Get(name string) *ProjectsLocationsEvaluationsOperationsGetCall {
 33397  	c := &ProjectsLocationsEvaluationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33398  	c.name = name
 33399  	return c
 33400  }
 33401  
 33402  // Fields allows partial responses to be retrieved. See
 33403  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33404  // details.
 33405  func (c *ProjectsLocationsEvaluationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsOperationsGetCall {
 33406  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33407  	return c
 33408  }
 33409  
 33410  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33411  // object's ETag matches the given value. This is useful for getting updates
 33412  // only after the object has changed since the last request.
 33413  func (c *ProjectsLocationsEvaluationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsOperationsGetCall {
 33414  	c.ifNoneMatch_ = entityTag
 33415  	return c
 33416  }
 33417  
 33418  // Context sets the context to be used in this call's Do method.
 33419  func (c *ProjectsLocationsEvaluationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsOperationsGetCall {
 33420  	c.ctx_ = ctx
 33421  	return c
 33422  }
 33423  
 33424  // Header returns a http.Header that can be modified by the caller to add
 33425  // headers to the request.
 33426  func (c *ProjectsLocationsEvaluationsOperationsGetCall) Header() http.Header {
 33427  	if c.header_ == nil {
 33428  		c.header_ = make(http.Header)
 33429  	}
 33430  	return c.header_
 33431  }
 33432  
 33433  func (c *ProjectsLocationsEvaluationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 33434  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33435  	if c.ifNoneMatch_ != "" {
 33436  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33437  	}
 33438  	var body io.Reader = nil
 33439  	c.urlParams_.Set("alt", alt)
 33440  	c.urlParams_.Set("prettyPrint", "false")
 33441  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 33442  	urls += "?" + c.urlParams_.Encode()
 33443  	req, err := http.NewRequest("GET", urls, body)
 33444  	if err != nil {
 33445  		return nil, err
 33446  	}
 33447  	req.Header = reqHeaders
 33448  	googleapi.Expand(req.URL, map[string]string{
 33449  		"name": c.name,
 33450  	})
 33451  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33452  }
 33453  
 33454  // Do executes the "discoveryengine.projects.locations.evaluations.operations.get" call.
 33455  // Any non-2xx status code is an error. Response headers are in either
 33456  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 33457  // returned at all) in error.(*googleapi.Error).Header. Use
 33458  // googleapi.IsNotModified to check whether the returned error was because
 33459  // http.StatusNotModified was returned.
 33460  func (c *ProjectsLocationsEvaluationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 33461  	gensupport.SetOptions(c.urlParams_, opts...)
 33462  	res, err := c.doRequest("json")
 33463  	if res != nil && res.StatusCode == http.StatusNotModified {
 33464  		if res.Body != nil {
 33465  			res.Body.Close()
 33466  		}
 33467  		return nil, gensupport.WrapError(&googleapi.Error{
 33468  			Code:   res.StatusCode,
 33469  			Header: res.Header,
 33470  		})
 33471  	}
 33472  	if err != nil {
 33473  		return nil, err
 33474  	}
 33475  	defer googleapi.CloseBody(res)
 33476  	if err := googleapi.CheckResponse(res); err != nil {
 33477  		return nil, gensupport.WrapError(err)
 33478  	}
 33479  	ret := &GoogleLongrunningOperation{
 33480  		ServerResponse: googleapi.ServerResponse{
 33481  			Header:         res.Header,
 33482  			HTTPStatusCode: res.StatusCode,
 33483  		},
 33484  	}
 33485  	target := &ret
 33486  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33487  		return nil, err
 33488  	}
 33489  	return ret, nil
 33490  }
 33491  
 33492  type ProjectsLocationsGroundingConfigsCheckCall struct {
 33493  	s                                                      *Service
 33494  	groundingConfig                                        string
 33495  	googleclouddiscoveryenginev1alphacheckgroundingrequest *GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest
 33496  	urlParams_                                             gensupport.URLParams
 33497  	ctx_                                                   context.Context
 33498  	header_                                                http.Header
 33499  }
 33500  
 33501  // Check: Performs a grounding check.
 33502  //
 33503  //   - groundingConfig: The resource name of the grounding config, such as
 33504  //     `projects/*/locations/global/groundingConfigs/default_grounding_config`.
 33505  func (r *ProjectsLocationsGroundingConfigsService) Check(groundingConfig string, googleclouddiscoveryenginev1alphacheckgroundingrequest *GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest) *ProjectsLocationsGroundingConfigsCheckCall {
 33506  	c := &ProjectsLocationsGroundingConfigsCheckCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33507  	c.groundingConfig = groundingConfig
 33508  	c.googleclouddiscoveryenginev1alphacheckgroundingrequest = googleclouddiscoveryenginev1alphacheckgroundingrequest
 33509  	return c
 33510  }
 33511  
 33512  // Fields allows partial responses to be retrieved. See
 33513  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33514  // details.
 33515  func (c *ProjectsLocationsGroundingConfigsCheckCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroundingConfigsCheckCall {
 33516  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33517  	return c
 33518  }
 33519  
 33520  // Context sets the context to be used in this call's Do method.
 33521  func (c *ProjectsLocationsGroundingConfigsCheckCall) Context(ctx context.Context) *ProjectsLocationsGroundingConfigsCheckCall {
 33522  	c.ctx_ = ctx
 33523  	return c
 33524  }
 33525  
 33526  // Header returns a http.Header that can be modified by the caller to add
 33527  // headers to the request.
 33528  func (c *ProjectsLocationsGroundingConfigsCheckCall) Header() http.Header {
 33529  	if c.header_ == nil {
 33530  		c.header_ = make(http.Header)
 33531  	}
 33532  	return c.header_
 33533  }
 33534  
 33535  func (c *ProjectsLocationsGroundingConfigsCheckCall) doRequest(alt string) (*http.Response, error) {
 33536  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33537  	var body io.Reader = nil
 33538  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphacheckgroundingrequest)
 33539  	if err != nil {
 33540  		return nil, err
 33541  	}
 33542  	c.urlParams_.Set("alt", alt)
 33543  	c.urlParams_.Set("prettyPrint", "false")
 33544  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+groundingConfig}:check")
 33545  	urls += "?" + c.urlParams_.Encode()
 33546  	req, err := http.NewRequest("POST", urls, body)
 33547  	if err != nil {
 33548  		return nil, err
 33549  	}
 33550  	req.Header = reqHeaders
 33551  	googleapi.Expand(req.URL, map[string]string{
 33552  		"groundingConfig": c.groundingConfig,
 33553  	})
 33554  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33555  }
 33556  
 33557  // Do executes the "discoveryengine.projects.locations.groundingConfigs.check" call.
 33558  // Any non-2xx status code is an error. Response headers are in either
 33559  // *GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse.ServerResponse.Heade
 33560  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 33561  // Use googleapi.IsNotModified to check whether the returned error was because
 33562  // http.StatusNotModified was returned.
 33563  func (c *ProjectsLocationsGroundingConfigsCheckCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse, error) {
 33564  	gensupport.SetOptions(c.urlParams_, opts...)
 33565  	res, err := c.doRequest("json")
 33566  	if res != nil && res.StatusCode == http.StatusNotModified {
 33567  		if res.Body != nil {
 33568  			res.Body.Close()
 33569  		}
 33570  		return nil, gensupport.WrapError(&googleapi.Error{
 33571  			Code:   res.StatusCode,
 33572  			Header: res.Header,
 33573  		})
 33574  	}
 33575  	if err != nil {
 33576  		return nil, err
 33577  	}
 33578  	defer googleapi.CloseBody(res)
 33579  	if err := googleapi.CheckResponse(res); err != nil {
 33580  		return nil, gensupport.WrapError(err)
 33581  	}
 33582  	ret := &GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse{
 33583  		ServerResponse: googleapi.ServerResponse{
 33584  			Header:         res.Header,
 33585  			HTTPStatusCode: res.StatusCode,
 33586  		},
 33587  	}
 33588  	target := &ret
 33589  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33590  		return nil, err
 33591  	}
 33592  	return ret, nil
 33593  }
 33594  
 33595  type ProjectsLocationsOperationsGetCall struct {
 33596  	s            *Service
 33597  	name         string
 33598  	urlParams_   gensupport.URLParams
 33599  	ifNoneMatch_ string
 33600  	ctx_         context.Context
 33601  	header_      http.Header
 33602  }
 33603  
 33604  // Get: Gets the latest state of a long-running operation. Clients can use this
 33605  // method to poll the operation result at intervals as recommended by the API
 33606  // service.
 33607  //
 33608  // - name: The name of the operation resource.
 33609  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
 33610  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33611  	c.name = name
 33612  	return c
 33613  }
 33614  
 33615  // Fields allows partial responses to be retrieved. See
 33616  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33617  // details.
 33618  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
 33619  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33620  	return c
 33621  }
 33622  
 33623  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33624  // object's ETag matches the given value. This is useful for getting updates
 33625  // only after the object has changed since the last request.
 33626  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
 33627  	c.ifNoneMatch_ = entityTag
 33628  	return c
 33629  }
 33630  
 33631  // Context sets the context to be used in this call's Do method.
 33632  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
 33633  	c.ctx_ = ctx
 33634  	return c
 33635  }
 33636  
 33637  // Header returns a http.Header that can be modified by the caller to add
 33638  // headers to the request.
 33639  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
 33640  	if c.header_ == nil {
 33641  		c.header_ = make(http.Header)
 33642  	}
 33643  	return c.header_
 33644  }
 33645  
 33646  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 33647  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33648  	if c.ifNoneMatch_ != "" {
 33649  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33650  	}
 33651  	var body io.Reader = nil
 33652  	c.urlParams_.Set("alt", alt)
 33653  	c.urlParams_.Set("prettyPrint", "false")
 33654  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 33655  	urls += "?" + c.urlParams_.Encode()
 33656  	req, err := http.NewRequest("GET", urls, body)
 33657  	if err != nil {
 33658  		return nil, err
 33659  	}
 33660  	req.Header = reqHeaders
 33661  	googleapi.Expand(req.URL, map[string]string{
 33662  		"name": c.name,
 33663  	})
 33664  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33665  }
 33666  
 33667  // Do executes the "discoveryengine.projects.locations.operations.get" call.
 33668  // Any non-2xx status code is an error. Response headers are in either
 33669  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 33670  // returned at all) in error.(*googleapi.Error).Header. Use
 33671  // googleapi.IsNotModified to check whether the returned error was because
 33672  // http.StatusNotModified was returned.
 33673  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 33674  	gensupport.SetOptions(c.urlParams_, opts...)
 33675  	res, err := c.doRequest("json")
 33676  	if res != nil && res.StatusCode == http.StatusNotModified {
 33677  		if res.Body != nil {
 33678  			res.Body.Close()
 33679  		}
 33680  		return nil, gensupport.WrapError(&googleapi.Error{
 33681  			Code:   res.StatusCode,
 33682  			Header: res.Header,
 33683  		})
 33684  	}
 33685  	if err != nil {
 33686  		return nil, err
 33687  	}
 33688  	defer googleapi.CloseBody(res)
 33689  	if err := googleapi.CheckResponse(res); err != nil {
 33690  		return nil, gensupport.WrapError(err)
 33691  	}
 33692  	ret := &GoogleLongrunningOperation{
 33693  		ServerResponse: googleapi.ServerResponse{
 33694  			Header:         res.Header,
 33695  			HTTPStatusCode: res.StatusCode,
 33696  		},
 33697  	}
 33698  	target := &ret
 33699  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33700  		return nil, err
 33701  	}
 33702  	return ret, nil
 33703  }
 33704  
 33705  type ProjectsLocationsOperationsListCall struct {
 33706  	s            *Service
 33707  	name         string
 33708  	urlParams_   gensupport.URLParams
 33709  	ifNoneMatch_ string
 33710  	ctx_         context.Context
 33711  	header_      http.Header
 33712  }
 33713  
 33714  // List: Lists operations that match the specified filter in the request. If
 33715  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 33716  //
 33717  // - name: The name of the operation's parent resource.
 33718  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
 33719  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33720  	c.name = name
 33721  	return c
 33722  }
 33723  
 33724  // Filter sets the optional parameter "filter": The standard list filter.
 33725  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
 33726  	c.urlParams_.Set("filter", filter)
 33727  	return c
 33728  }
 33729  
 33730  // PageSize sets the optional parameter "pageSize": The standard list page
 33731  // size.
 33732  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
 33733  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 33734  	return c
 33735  }
 33736  
 33737  // PageToken sets the optional parameter "pageToken": The standard list page
 33738  // token.
 33739  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
 33740  	c.urlParams_.Set("pageToken", pageToken)
 33741  	return c
 33742  }
 33743  
 33744  // Fields allows partial responses to be retrieved. See
 33745  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33746  // details.
 33747  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
 33748  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33749  	return c
 33750  }
 33751  
 33752  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33753  // object's ETag matches the given value. This is useful for getting updates
 33754  // only after the object has changed since the last request.
 33755  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
 33756  	c.ifNoneMatch_ = entityTag
 33757  	return c
 33758  }
 33759  
 33760  // Context sets the context to be used in this call's Do method.
 33761  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
 33762  	c.ctx_ = ctx
 33763  	return c
 33764  }
 33765  
 33766  // Header returns a http.Header that can be modified by the caller to add
 33767  // headers to the request.
 33768  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
 33769  	if c.header_ == nil {
 33770  		c.header_ = make(http.Header)
 33771  	}
 33772  	return c.header_
 33773  }
 33774  
 33775  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 33776  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 33777  	if c.ifNoneMatch_ != "" {
 33778  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 33779  	}
 33780  	var body io.Reader = nil
 33781  	c.urlParams_.Set("alt", alt)
 33782  	c.urlParams_.Set("prettyPrint", "false")
 33783  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 33784  	urls += "?" + c.urlParams_.Encode()
 33785  	req, err := http.NewRequest("GET", urls, body)
 33786  	if err != nil {
 33787  		return nil, err
 33788  	}
 33789  	req.Header = reqHeaders
 33790  	googleapi.Expand(req.URL, map[string]string{
 33791  		"name": c.name,
 33792  	})
 33793  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33794  }
 33795  
 33796  // Do executes the "discoveryengine.projects.locations.operations.list" call.
 33797  // Any non-2xx status code is an error. Response headers are in either
 33798  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 33799  // response was returned at all) in error.(*googleapi.Error).Header. Use
 33800  // googleapi.IsNotModified to check whether the returned error was because
 33801  // http.StatusNotModified was returned.
 33802  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 33803  	gensupport.SetOptions(c.urlParams_, opts...)
 33804  	res, err := c.doRequest("json")
 33805  	if res != nil && res.StatusCode == http.StatusNotModified {
 33806  		if res.Body != nil {
 33807  			res.Body.Close()
 33808  		}
 33809  		return nil, gensupport.WrapError(&googleapi.Error{
 33810  			Code:   res.StatusCode,
 33811  			Header: res.Header,
 33812  		})
 33813  	}
 33814  	if err != nil {
 33815  		return nil, err
 33816  	}
 33817  	defer googleapi.CloseBody(res)
 33818  	if err := googleapi.CheckResponse(res); err != nil {
 33819  		return nil, gensupport.WrapError(err)
 33820  	}
 33821  	ret := &GoogleLongrunningListOperationsResponse{
 33822  		ServerResponse: googleapi.ServerResponse{
 33823  			Header:         res.Header,
 33824  			HTTPStatusCode: res.StatusCode,
 33825  		},
 33826  	}
 33827  	target := &ret
 33828  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33829  		return nil, err
 33830  	}
 33831  	return ret, nil
 33832  }
 33833  
 33834  // Pages invokes f for each page of results.
 33835  // A non-nil error returned from f will halt the iteration.
 33836  // The provided context supersedes any context provided to the Context method.
 33837  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 33838  	c.ctx_ = ctx
 33839  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 33840  	for {
 33841  		x, err := c.Do()
 33842  		if err != nil {
 33843  			return err
 33844  		}
 33845  		if err := f(x); err != nil {
 33846  			return err
 33847  		}
 33848  		if x.NextPageToken == "" {
 33849  			return nil
 33850  		}
 33851  		c.PageToken(x.NextPageToken)
 33852  	}
 33853  }
 33854  
 33855  type ProjectsLocationsRankingConfigsRankCall struct {
 33856  	s                                            *Service
 33857  	rankingConfig                                string
 33858  	googleclouddiscoveryenginev1alpharankrequest *GoogleCloudDiscoveryengineV1alphaRankRequest
 33859  	urlParams_                                   gensupport.URLParams
 33860  	ctx_                                         context.Context
 33861  	header_                                      http.Header
 33862  }
 33863  
 33864  // Rank: Ranks a list of text records based on the given input query.
 33865  //
 33866  //   - rankingConfig: The resource name of the rank service config, such as
 33867  //     `projects/{project_num}/locations/{location_id}/rankingConfigs/default_rank
 33868  //     ing_config`.
 33869  func (r *ProjectsLocationsRankingConfigsService) Rank(rankingConfig string, googleclouddiscoveryenginev1alpharankrequest *GoogleCloudDiscoveryengineV1alphaRankRequest) *ProjectsLocationsRankingConfigsRankCall {
 33870  	c := &ProjectsLocationsRankingConfigsRankCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33871  	c.rankingConfig = rankingConfig
 33872  	c.googleclouddiscoveryenginev1alpharankrequest = googleclouddiscoveryenginev1alpharankrequest
 33873  	return c
 33874  }
 33875  
 33876  // Fields allows partial responses to be retrieved. See
 33877  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33878  // details.
 33879  func (c *ProjectsLocationsRankingConfigsRankCall) Fields(s ...googleapi.Field) *ProjectsLocationsRankingConfigsRankCall {
 33880  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33881  	return c
 33882  }
 33883  
 33884  // Context sets the context to be used in this call's Do method.
 33885  func (c *ProjectsLocationsRankingConfigsRankCall) Context(ctx context.Context) *ProjectsLocationsRankingConfigsRankCall {
 33886  	c.ctx_ = ctx
 33887  	return c
 33888  }
 33889  
 33890  // Header returns a http.Header that can be modified by the caller to add
 33891  // headers to the request.
 33892  func (c *ProjectsLocationsRankingConfigsRankCall) Header() http.Header {
 33893  	if c.header_ == nil {
 33894  		c.header_ = make(http.Header)
 33895  	}
 33896  	return c.header_
 33897  }
 33898  
 33899  func (c *ProjectsLocationsRankingConfigsRankCall) doRequest(alt string) (*http.Response, error) {
 33900  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 33901  	var body io.Reader = nil
 33902  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharankrequest)
 33903  	if err != nil {
 33904  		return nil, err
 33905  	}
 33906  	c.urlParams_.Set("alt", alt)
 33907  	c.urlParams_.Set("prettyPrint", "false")
 33908  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+rankingConfig}:rank")
 33909  	urls += "?" + c.urlParams_.Encode()
 33910  	req, err := http.NewRequest("POST", urls, body)
 33911  	if err != nil {
 33912  		return nil, err
 33913  	}
 33914  	req.Header = reqHeaders
 33915  	googleapi.Expand(req.URL, map[string]string{
 33916  		"rankingConfig": c.rankingConfig,
 33917  	})
 33918  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 33919  }
 33920  
 33921  // Do executes the "discoveryengine.projects.locations.rankingConfigs.rank" call.
 33922  // Any non-2xx status code is an error. Response headers are in either
 33923  // *GoogleCloudDiscoveryengineV1alphaRankResponse.ServerResponse.Header or (if
 33924  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 33925  // googleapi.IsNotModified to check whether the returned error was because
 33926  // http.StatusNotModified was returned.
 33927  func (c *ProjectsLocationsRankingConfigsRankCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaRankResponse, error) {
 33928  	gensupport.SetOptions(c.urlParams_, opts...)
 33929  	res, err := c.doRequest("json")
 33930  	if res != nil && res.StatusCode == http.StatusNotModified {
 33931  		if res.Body != nil {
 33932  			res.Body.Close()
 33933  		}
 33934  		return nil, gensupport.WrapError(&googleapi.Error{
 33935  			Code:   res.StatusCode,
 33936  			Header: res.Header,
 33937  		})
 33938  	}
 33939  	if err != nil {
 33940  		return nil, err
 33941  	}
 33942  	defer googleapi.CloseBody(res)
 33943  	if err := googleapi.CheckResponse(res); err != nil {
 33944  		return nil, gensupport.WrapError(err)
 33945  	}
 33946  	ret := &GoogleCloudDiscoveryengineV1alphaRankResponse{
 33947  		ServerResponse: googleapi.ServerResponse{
 33948  			Header:         res.Header,
 33949  			HTTPStatusCode: res.StatusCode,
 33950  		},
 33951  	}
 33952  	target := &ret
 33953  	if err := gensupport.DecodeResponse(target, res); err != nil {
 33954  		return nil, err
 33955  	}
 33956  	return ret, nil
 33957  }
 33958  
 33959  type ProjectsLocationsSampleQuerySetsOperationsGetCall struct {
 33960  	s            *Service
 33961  	name         string
 33962  	urlParams_   gensupport.URLParams
 33963  	ifNoneMatch_ string
 33964  	ctx_         context.Context
 33965  	header_      http.Header
 33966  }
 33967  
 33968  // Get: Gets the latest state of a long-running operation. Clients can use this
 33969  // method to poll the operation result at intervals as recommended by the API
 33970  // service.
 33971  //
 33972  // - name: The name of the operation resource.
 33973  func (r *ProjectsLocationsSampleQuerySetsOperationsService) Get(name string) *ProjectsLocationsSampleQuerySetsOperationsGetCall {
 33974  	c := &ProjectsLocationsSampleQuerySetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 33975  	c.name = name
 33976  	return c
 33977  }
 33978  
 33979  // Fields allows partial responses to be retrieved. See
 33980  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 33981  // details.
 33982  func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSampleQuerySetsOperationsGetCall {
 33983  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 33984  	return c
 33985  }
 33986  
 33987  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 33988  // object's ETag matches the given value. This is useful for getting updates
 33989  // only after the object has changed since the last request.
 33990  func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSampleQuerySetsOperationsGetCall {
 33991  	c.ifNoneMatch_ = entityTag
 33992  	return c
 33993  }
 33994  
 33995  // Context sets the context to be used in this call's Do method.
 33996  func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsSampleQuerySetsOperationsGetCall {
 33997  	c.ctx_ = ctx
 33998  	return c
 33999  }
 34000  
 34001  // Header returns a http.Header that can be modified by the caller to add
 34002  // headers to the request.
 34003  func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) Header() http.Header {
 34004  	if c.header_ == nil {
 34005  		c.header_ = make(http.Header)
 34006  	}
 34007  	return c.header_
 34008  }
 34009  
 34010  func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 34011  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34012  	if c.ifNoneMatch_ != "" {
 34013  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34014  	}
 34015  	var body io.Reader = nil
 34016  	c.urlParams_.Set("alt", alt)
 34017  	c.urlParams_.Set("prettyPrint", "false")
 34018  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 34019  	urls += "?" + c.urlParams_.Encode()
 34020  	req, err := http.NewRequest("GET", urls, body)
 34021  	if err != nil {
 34022  		return nil, err
 34023  	}
 34024  	req.Header = reqHeaders
 34025  	googleapi.Expand(req.URL, map[string]string{
 34026  		"name": c.name,
 34027  	})
 34028  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34029  }
 34030  
 34031  // Do executes the "discoveryengine.projects.locations.sampleQuerySets.operations.get" call.
 34032  // Any non-2xx status code is an error. Response headers are in either
 34033  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 34034  // returned at all) in error.(*googleapi.Error).Header. Use
 34035  // googleapi.IsNotModified to check whether the returned error was because
 34036  // http.StatusNotModified was returned.
 34037  func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 34038  	gensupport.SetOptions(c.urlParams_, opts...)
 34039  	res, err := c.doRequest("json")
 34040  	if res != nil && res.StatusCode == http.StatusNotModified {
 34041  		if res.Body != nil {
 34042  			res.Body.Close()
 34043  		}
 34044  		return nil, gensupport.WrapError(&googleapi.Error{
 34045  			Code:   res.StatusCode,
 34046  			Header: res.Header,
 34047  		})
 34048  	}
 34049  	if err != nil {
 34050  		return nil, err
 34051  	}
 34052  	defer googleapi.CloseBody(res)
 34053  	if err := googleapi.CheckResponse(res); err != nil {
 34054  		return nil, gensupport.WrapError(err)
 34055  	}
 34056  	ret := &GoogleLongrunningOperation{
 34057  		ServerResponse: googleapi.ServerResponse{
 34058  			Header:         res.Header,
 34059  			HTTPStatusCode: res.StatusCode,
 34060  		},
 34061  	}
 34062  	target := &ret
 34063  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34064  		return nil, err
 34065  	}
 34066  	return ret, nil
 34067  }
 34068  
 34069  type ProjectsLocationsUserEventsWriteCall struct {
 34070  	s                                          *Service
 34071  	parent                                     string
 34072  	googleclouddiscoveryenginev1alphauserevent *GoogleCloudDiscoveryengineV1alphaUserEvent
 34073  	urlParams_                                 gensupport.URLParams
 34074  	ctx_                                       context.Context
 34075  	header_                                    http.Header
 34076  }
 34077  
 34078  // Write: Writes a single user event.
 34079  //
 34080  //   - parent: The parent resource name. If the write user event action is
 34081  //     applied in DataStore level, the format is:
 34082  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 34083  //     s/{data_store}`. If the write user event action is applied in Location
 34084  //     level, for example, the event with Document across multiple DataStore, the
 34085  //     format is: `projects/{project}/locations/{location}`.
 34086  func (r *ProjectsLocationsUserEventsService) Write(parent string, googleclouddiscoveryenginev1alphauserevent *GoogleCloudDiscoveryengineV1alphaUserEvent) *ProjectsLocationsUserEventsWriteCall {
 34087  	c := &ProjectsLocationsUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34088  	c.parent = parent
 34089  	c.googleclouddiscoveryenginev1alphauserevent = googleclouddiscoveryenginev1alphauserevent
 34090  	return c
 34091  }
 34092  
 34093  // Fields allows partial responses to be retrieved. See
 34094  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34095  // details.
 34096  func (c *ProjectsLocationsUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsUserEventsWriteCall {
 34097  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34098  	return c
 34099  }
 34100  
 34101  // Context sets the context to be used in this call's Do method.
 34102  func (c *ProjectsLocationsUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsUserEventsWriteCall {
 34103  	c.ctx_ = ctx
 34104  	return c
 34105  }
 34106  
 34107  // Header returns a http.Header that can be modified by the caller to add
 34108  // headers to the request.
 34109  func (c *ProjectsLocationsUserEventsWriteCall) Header() http.Header {
 34110  	if c.header_ == nil {
 34111  		c.header_ = make(http.Header)
 34112  	}
 34113  	return c.header_
 34114  }
 34115  
 34116  func (c *ProjectsLocationsUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
 34117  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 34118  	var body io.Reader = nil
 34119  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphauserevent)
 34120  	if err != nil {
 34121  		return nil, err
 34122  	}
 34123  	c.urlParams_.Set("alt", alt)
 34124  	c.urlParams_.Set("prettyPrint", "false")
 34125  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:write")
 34126  	urls += "?" + c.urlParams_.Encode()
 34127  	req, err := http.NewRequest("POST", urls, body)
 34128  	if err != nil {
 34129  		return nil, err
 34130  	}
 34131  	req.Header = reqHeaders
 34132  	googleapi.Expand(req.URL, map[string]string{
 34133  		"parent": c.parent,
 34134  	})
 34135  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34136  }
 34137  
 34138  // Do executes the "discoveryengine.projects.locations.userEvents.write" call.
 34139  // Any non-2xx status code is an error. Response headers are in either
 34140  // *GoogleCloudDiscoveryengineV1alphaUserEvent.ServerResponse.Header or (if a
 34141  // response was returned at all) in error.(*googleapi.Error).Header. Use
 34142  // googleapi.IsNotModified to check whether the returned error was because
 34143  // http.StatusNotModified was returned.
 34144  func (c *ProjectsLocationsUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaUserEvent, error) {
 34145  	gensupport.SetOptions(c.urlParams_, opts...)
 34146  	res, err := c.doRequest("json")
 34147  	if res != nil && res.StatusCode == http.StatusNotModified {
 34148  		if res.Body != nil {
 34149  			res.Body.Close()
 34150  		}
 34151  		return nil, gensupport.WrapError(&googleapi.Error{
 34152  			Code:   res.StatusCode,
 34153  			Header: res.Header,
 34154  		})
 34155  	}
 34156  	if err != nil {
 34157  		return nil, err
 34158  	}
 34159  	defer googleapi.CloseBody(res)
 34160  	if err := googleapi.CheckResponse(res); err != nil {
 34161  		return nil, gensupport.WrapError(err)
 34162  	}
 34163  	ret := &GoogleCloudDiscoveryengineV1alphaUserEvent{
 34164  		ServerResponse: googleapi.ServerResponse{
 34165  			Header:         res.Header,
 34166  			HTTPStatusCode: res.StatusCode,
 34167  		},
 34168  	}
 34169  	target := &ret
 34170  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34171  		return nil, err
 34172  	}
 34173  	return ret, nil
 34174  }
 34175  
 34176  type ProjectsOperationsGetCall struct {
 34177  	s            *Service
 34178  	name         string
 34179  	urlParams_   gensupport.URLParams
 34180  	ifNoneMatch_ string
 34181  	ctx_         context.Context
 34182  	header_      http.Header
 34183  }
 34184  
 34185  // Get: Gets the latest state of a long-running operation. Clients can use this
 34186  // method to poll the operation result at intervals as recommended by the API
 34187  // service.
 34188  //
 34189  // - name: The name of the operation resource.
 34190  func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
 34191  	c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34192  	c.name = name
 34193  	return c
 34194  }
 34195  
 34196  // Fields allows partial responses to be retrieved. See
 34197  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34198  // details.
 34199  func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
 34200  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34201  	return c
 34202  }
 34203  
 34204  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34205  // object's ETag matches the given value. This is useful for getting updates
 34206  // only after the object has changed since the last request.
 34207  func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
 34208  	c.ifNoneMatch_ = entityTag
 34209  	return c
 34210  }
 34211  
 34212  // Context sets the context to be used in this call's Do method.
 34213  func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
 34214  	c.ctx_ = ctx
 34215  	return c
 34216  }
 34217  
 34218  // Header returns a http.Header that can be modified by the caller to add
 34219  // headers to the request.
 34220  func (c *ProjectsOperationsGetCall) Header() http.Header {
 34221  	if c.header_ == nil {
 34222  		c.header_ = make(http.Header)
 34223  	}
 34224  	return c.header_
 34225  }
 34226  
 34227  func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 34228  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34229  	if c.ifNoneMatch_ != "" {
 34230  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34231  	}
 34232  	var body io.Reader = nil
 34233  	c.urlParams_.Set("alt", alt)
 34234  	c.urlParams_.Set("prettyPrint", "false")
 34235  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
 34236  	urls += "?" + c.urlParams_.Encode()
 34237  	req, err := http.NewRequest("GET", urls, body)
 34238  	if err != nil {
 34239  		return nil, err
 34240  	}
 34241  	req.Header = reqHeaders
 34242  	googleapi.Expand(req.URL, map[string]string{
 34243  		"name": c.name,
 34244  	})
 34245  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34246  }
 34247  
 34248  // Do executes the "discoveryengine.projects.operations.get" call.
 34249  // Any non-2xx status code is an error. Response headers are in either
 34250  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 34251  // returned at all) in error.(*googleapi.Error).Header. Use
 34252  // googleapi.IsNotModified to check whether the returned error was because
 34253  // http.StatusNotModified was returned.
 34254  func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 34255  	gensupport.SetOptions(c.urlParams_, opts...)
 34256  	res, err := c.doRequest("json")
 34257  	if res != nil && res.StatusCode == http.StatusNotModified {
 34258  		if res.Body != nil {
 34259  			res.Body.Close()
 34260  		}
 34261  		return nil, gensupport.WrapError(&googleapi.Error{
 34262  			Code:   res.StatusCode,
 34263  			Header: res.Header,
 34264  		})
 34265  	}
 34266  	if err != nil {
 34267  		return nil, err
 34268  	}
 34269  	defer googleapi.CloseBody(res)
 34270  	if err := googleapi.CheckResponse(res); err != nil {
 34271  		return nil, gensupport.WrapError(err)
 34272  	}
 34273  	ret := &GoogleLongrunningOperation{
 34274  		ServerResponse: googleapi.ServerResponse{
 34275  			Header:         res.Header,
 34276  			HTTPStatusCode: res.StatusCode,
 34277  		},
 34278  	}
 34279  	target := &ret
 34280  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34281  		return nil, err
 34282  	}
 34283  	return ret, nil
 34284  }
 34285  
 34286  type ProjectsOperationsListCall struct {
 34287  	s            *Service
 34288  	name         string
 34289  	urlParams_   gensupport.URLParams
 34290  	ifNoneMatch_ string
 34291  	ctx_         context.Context
 34292  	header_      http.Header
 34293  }
 34294  
 34295  // List: Lists operations that match the specified filter in the request. If
 34296  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 34297  //
 34298  // - name: The name of the operation's parent resource.
 34299  func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
 34300  	c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 34301  	c.name = name
 34302  	return c
 34303  }
 34304  
 34305  // Filter sets the optional parameter "filter": The standard list filter.
 34306  func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
 34307  	c.urlParams_.Set("filter", filter)
 34308  	return c
 34309  }
 34310  
 34311  // PageSize sets the optional parameter "pageSize": The standard list page
 34312  // size.
 34313  func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
 34314  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 34315  	return c
 34316  }
 34317  
 34318  // PageToken sets the optional parameter "pageToken": The standard list page
 34319  // token.
 34320  func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
 34321  	c.urlParams_.Set("pageToken", pageToken)
 34322  	return c
 34323  }
 34324  
 34325  // Fields allows partial responses to be retrieved. See
 34326  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 34327  // details.
 34328  func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
 34329  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 34330  	return c
 34331  }
 34332  
 34333  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 34334  // object's ETag matches the given value. This is useful for getting updates
 34335  // only after the object has changed since the last request.
 34336  func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
 34337  	c.ifNoneMatch_ = entityTag
 34338  	return c
 34339  }
 34340  
 34341  // Context sets the context to be used in this call's Do method.
 34342  func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
 34343  	c.ctx_ = ctx
 34344  	return c
 34345  }
 34346  
 34347  // Header returns a http.Header that can be modified by the caller to add
 34348  // headers to the request.
 34349  func (c *ProjectsOperationsListCall) Header() http.Header {
 34350  	if c.header_ == nil {
 34351  		c.header_ = make(http.Header)
 34352  	}
 34353  	return c.header_
 34354  }
 34355  
 34356  func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 34357  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 34358  	if c.ifNoneMatch_ != "" {
 34359  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 34360  	}
 34361  	var body io.Reader = nil
 34362  	c.urlParams_.Set("alt", alt)
 34363  	c.urlParams_.Set("prettyPrint", "false")
 34364  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
 34365  	urls += "?" + c.urlParams_.Encode()
 34366  	req, err := http.NewRequest("GET", urls, body)
 34367  	if err != nil {
 34368  		return nil, err
 34369  	}
 34370  	req.Header = reqHeaders
 34371  	googleapi.Expand(req.URL, map[string]string{
 34372  		"name": c.name,
 34373  	})
 34374  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 34375  }
 34376  
 34377  // Do executes the "discoveryengine.projects.operations.list" call.
 34378  // Any non-2xx status code is an error. Response headers are in either
 34379  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 34380  // response was returned at all) in error.(*googleapi.Error).Header. Use
 34381  // googleapi.IsNotModified to check whether the returned error was because
 34382  // http.StatusNotModified was returned.
 34383  func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 34384  	gensupport.SetOptions(c.urlParams_, opts...)
 34385  	res, err := c.doRequest("json")
 34386  	if res != nil && res.StatusCode == http.StatusNotModified {
 34387  		if res.Body != nil {
 34388  			res.Body.Close()
 34389  		}
 34390  		return nil, gensupport.WrapError(&googleapi.Error{
 34391  			Code:   res.StatusCode,
 34392  			Header: res.Header,
 34393  		})
 34394  	}
 34395  	if err != nil {
 34396  		return nil, err
 34397  	}
 34398  	defer googleapi.CloseBody(res)
 34399  	if err := googleapi.CheckResponse(res); err != nil {
 34400  		return nil, gensupport.WrapError(err)
 34401  	}
 34402  	ret := &GoogleLongrunningListOperationsResponse{
 34403  		ServerResponse: googleapi.ServerResponse{
 34404  			Header:         res.Header,
 34405  			HTTPStatusCode: res.StatusCode,
 34406  		},
 34407  	}
 34408  	target := &ret
 34409  	if err := gensupport.DecodeResponse(target, res); err != nil {
 34410  		return nil, err
 34411  	}
 34412  	return ret, nil
 34413  }
 34414  
 34415  // Pages invokes f for each page of results.
 34416  // A non-nil error returned from f will halt the iteration.
 34417  // The provided context supersedes any context provided to the Context method.
 34418  func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 34419  	c.ctx_ = ctx
 34420  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 34421  	for {
 34422  		x, err := c.Do()
 34423  		if err != nil {
 34424  			return err
 34425  		}
 34426  		if err := f(x); err != nil {
 34427  			return err
 34428  		}
 34429  		if x.NextPageToken == "" {
 34430  			return nil
 34431  		}
 34432  		c.PageToken(x.NextPageToken)
 34433  	}
 34434  }
 34435  

View as plain text