...

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

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

     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/v1beta"
    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/v1beta"
    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:v1beta"
    90  const apiName = "discoveryengine"
    91  const apiVersion = "v1beta"
    92  const basePath = "https://discoveryengine.googleapis.com/"
    93  const basePathTemplate = "https://discoveryengine.UNIVERSE_DOMAIN/"
    94  const mtlsBasePath = "https://discoveryengine.mtls.googleapis.com/"
    95  
    96  // OAuth2 scopes used by this API.
    97  const (
    98  	// See, edit, configure, and delete your Google Cloud data and see the email
    99  	// address for your Google Account.
   100  	CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
   101  )
   102  
   103  // NewService creates a new Service.
   104  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   105  	scopesOption := internaloption.WithDefaultScopes(
   106  		"https://www.googleapis.com/auth/cloud-platform",
   107  	)
   108  	// NOTE: prepend, so we don't override user-specified scopes.
   109  	opts = append([]option.ClientOption{scopesOption}, opts...)
   110  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   111  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   112  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   113  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   114  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   115  	if err != nil {
   116  		return nil, err
   117  	}
   118  	s, err := New(client)
   119  	if err != nil {
   120  		return nil, err
   121  	}
   122  	if endpoint != "" {
   123  		s.BasePath = endpoint
   124  	}
   125  	return s, nil
   126  }
   127  
   128  // New creates a new Service. It uses the provided http.Client for requests.
   129  //
   130  // Deprecated: please use NewService instead.
   131  // To provide a custom HTTP client, use option.WithHTTPClient.
   132  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   133  func New(client *http.Client) (*Service, error) {
   134  	if client == nil {
   135  		return nil, errors.New("client is nil")
   136  	}
   137  	s := &Service{client: client, BasePath: basePath}
   138  	s.Projects = NewProjectsService(s)
   139  	return s, nil
   140  }
   141  
   142  type Service struct {
   143  	client    *http.Client
   144  	BasePath  string // API endpoint base URL
   145  	UserAgent string // optional additional User-Agent fragment
   146  
   147  	Projects *ProjectsService
   148  }
   149  
   150  func (s *Service) userAgent() string {
   151  	if s.UserAgent == "" {
   152  		return googleapi.UserAgent
   153  	}
   154  	return googleapi.UserAgent + " " + s.UserAgent
   155  }
   156  
   157  func NewProjectsService(s *Service) *ProjectsService {
   158  	rs := &ProjectsService{s: s}
   159  	rs.Locations = NewProjectsLocationsService(s)
   160  	rs.Operations = NewProjectsOperationsService(s)
   161  	return rs
   162  }
   163  
   164  type ProjectsService struct {
   165  	s *Service
   166  
   167  	Locations *ProjectsLocationsService
   168  
   169  	Operations *ProjectsOperationsService
   170  }
   171  
   172  func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
   173  	rs := &ProjectsLocationsService{s: s}
   174  	rs.Collections = NewProjectsLocationsCollectionsService(s)
   175  	rs.DataStores = NewProjectsLocationsDataStoresService(s)
   176  	rs.GroundingConfigs = NewProjectsLocationsGroundingConfigsService(s)
   177  	rs.Operations = NewProjectsLocationsOperationsService(s)
   178  	rs.RankingConfigs = NewProjectsLocationsRankingConfigsService(s)
   179  	rs.UserEvents = NewProjectsLocationsUserEventsService(s)
   180  	return rs
   181  }
   182  
   183  type ProjectsLocationsService struct {
   184  	s *Service
   185  
   186  	Collections *ProjectsLocationsCollectionsService
   187  
   188  	DataStores *ProjectsLocationsDataStoresService
   189  
   190  	GroundingConfigs *ProjectsLocationsGroundingConfigsService
   191  
   192  	Operations *ProjectsLocationsOperationsService
   193  
   194  	RankingConfigs *ProjectsLocationsRankingConfigsService
   195  
   196  	UserEvents *ProjectsLocationsUserEventsService
   197  }
   198  
   199  func NewProjectsLocationsCollectionsService(s *Service) *ProjectsLocationsCollectionsService {
   200  	rs := &ProjectsLocationsCollectionsService{s: s}
   201  	rs.DataConnector = NewProjectsLocationsCollectionsDataConnectorService(s)
   202  	rs.DataStores = NewProjectsLocationsCollectionsDataStoresService(s)
   203  	rs.Engines = NewProjectsLocationsCollectionsEnginesService(s)
   204  	rs.Operations = NewProjectsLocationsCollectionsOperationsService(s)
   205  	return rs
   206  }
   207  
   208  type ProjectsLocationsCollectionsService struct {
   209  	s *Service
   210  
   211  	DataConnector *ProjectsLocationsCollectionsDataConnectorService
   212  
   213  	DataStores *ProjectsLocationsCollectionsDataStoresService
   214  
   215  	Engines *ProjectsLocationsCollectionsEnginesService
   216  
   217  	Operations *ProjectsLocationsCollectionsOperationsService
   218  }
   219  
   220  func NewProjectsLocationsCollectionsDataConnectorService(s *Service) *ProjectsLocationsCollectionsDataConnectorService {
   221  	rs := &ProjectsLocationsCollectionsDataConnectorService{s: s}
   222  	rs.Operations = NewProjectsLocationsCollectionsDataConnectorOperationsService(s)
   223  	return rs
   224  }
   225  
   226  type ProjectsLocationsCollectionsDataConnectorService struct {
   227  	s *Service
   228  
   229  	Operations *ProjectsLocationsCollectionsDataConnectorOperationsService
   230  }
   231  
   232  func NewProjectsLocationsCollectionsDataConnectorOperationsService(s *Service) *ProjectsLocationsCollectionsDataConnectorOperationsService {
   233  	rs := &ProjectsLocationsCollectionsDataConnectorOperationsService{s: s}
   234  	return rs
   235  }
   236  
   237  type ProjectsLocationsCollectionsDataConnectorOperationsService struct {
   238  	s *Service
   239  }
   240  
   241  func NewProjectsLocationsCollectionsDataStoresService(s *Service) *ProjectsLocationsCollectionsDataStoresService {
   242  	rs := &ProjectsLocationsCollectionsDataStoresService{s: s}
   243  	rs.Branches = NewProjectsLocationsCollectionsDataStoresBranchesService(s)
   244  	rs.Conversations = NewProjectsLocationsCollectionsDataStoresConversationsService(s)
   245  	rs.CustomModels = NewProjectsLocationsCollectionsDataStoresCustomModelsService(s)
   246  	rs.Models = NewProjectsLocationsCollectionsDataStoresModelsService(s)
   247  	rs.Operations = NewProjectsLocationsCollectionsDataStoresOperationsService(s)
   248  	rs.Schemas = NewProjectsLocationsCollectionsDataStoresSchemasService(s)
   249  	rs.ServingConfigs = NewProjectsLocationsCollectionsDataStoresServingConfigsService(s)
   250  	rs.Sessions = NewProjectsLocationsCollectionsDataStoresSessionsService(s)
   251  	rs.SiteSearchEngine = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s)
   252  	rs.SuggestionDenyListEntries = NewProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService(s)
   253  	rs.UserEvents = NewProjectsLocationsCollectionsDataStoresUserEventsService(s)
   254  	return rs
   255  }
   256  
   257  type ProjectsLocationsCollectionsDataStoresService struct {
   258  	s *Service
   259  
   260  	Branches *ProjectsLocationsCollectionsDataStoresBranchesService
   261  
   262  	Conversations *ProjectsLocationsCollectionsDataStoresConversationsService
   263  
   264  	CustomModels *ProjectsLocationsCollectionsDataStoresCustomModelsService
   265  
   266  	Models *ProjectsLocationsCollectionsDataStoresModelsService
   267  
   268  	Operations *ProjectsLocationsCollectionsDataStoresOperationsService
   269  
   270  	Schemas *ProjectsLocationsCollectionsDataStoresSchemasService
   271  
   272  	ServingConfigs *ProjectsLocationsCollectionsDataStoresServingConfigsService
   273  
   274  	Sessions *ProjectsLocationsCollectionsDataStoresSessionsService
   275  
   276  	SiteSearchEngine *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService
   277  
   278  	SuggestionDenyListEntries *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService
   279  
   280  	UserEvents *ProjectsLocationsCollectionsDataStoresUserEventsService
   281  }
   282  
   283  func NewProjectsLocationsCollectionsDataStoresBranchesService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesService {
   284  	rs := &ProjectsLocationsCollectionsDataStoresBranchesService{s: s}
   285  	rs.Documents = NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s)
   286  	rs.Operations = NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s)
   287  	return rs
   288  }
   289  
   290  type ProjectsLocationsCollectionsDataStoresBranchesService struct {
   291  	s *Service
   292  
   293  	Documents *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService
   294  
   295  	Operations *ProjectsLocationsCollectionsDataStoresBranchesOperationsService
   296  }
   297  
   298  func NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService {
   299  	rs := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsService{s: s}
   300  	return rs
   301  }
   302  
   303  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsService struct {
   304  	s *Service
   305  }
   306  
   307  func NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesOperationsService {
   308  	rs := &ProjectsLocationsCollectionsDataStoresBranchesOperationsService{s: s}
   309  	return rs
   310  }
   311  
   312  type ProjectsLocationsCollectionsDataStoresBranchesOperationsService struct {
   313  	s *Service
   314  }
   315  
   316  func NewProjectsLocationsCollectionsDataStoresConversationsService(s *Service) *ProjectsLocationsCollectionsDataStoresConversationsService {
   317  	rs := &ProjectsLocationsCollectionsDataStoresConversationsService{s: s}
   318  	return rs
   319  }
   320  
   321  type ProjectsLocationsCollectionsDataStoresConversationsService struct {
   322  	s *Service
   323  }
   324  
   325  func NewProjectsLocationsCollectionsDataStoresCustomModelsService(s *Service) *ProjectsLocationsCollectionsDataStoresCustomModelsService {
   326  	rs := &ProjectsLocationsCollectionsDataStoresCustomModelsService{s: s}
   327  	return rs
   328  }
   329  
   330  type ProjectsLocationsCollectionsDataStoresCustomModelsService struct {
   331  	s *Service
   332  }
   333  
   334  func NewProjectsLocationsCollectionsDataStoresModelsService(s *Service) *ProjectsLocationsCollectionsDataStoresModelsService {
   335  	rs := &ProjectsLocationsCollectionsDataStoresModelsService{s: s}
   336  	rs.Operations = NewProjectsLocationsCollectionsDataStoresModelsOperationsService(s)
   337  	return rs
   338  }
   339  
   340  type ProjectsLocationsCollectionsDataStoresModelsService struct {
   341  	s *Service
   342  
   343  	Operations *ProjectsLocationsCollectionsDataStoresModelsOperationsService
   344  }
   345  
   346  func NewProjectsLocationsCollectionsDataStoresModelsOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresModelsOperationsService {
   347  	rs := &ProjectsLocationsCollectionsDataStoresModelsOperationsService{s: s}
   348  	return rs
   349  }
   350  
   351  type ProjectsLocationsCollectionsDataStoresModelsOperationsService struct {
   352  	s *Service
   353  }
   354  
   355  func NewProjectsLocationsCollectionsDataStoresOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresOperationsService {
   356  	rs := &ProjectsLocationsCollectionsDataStoresOperationsService{s: s}
   357  	return rs
   358  }
   359  
   360  type ProjectsLocationsCollectionsDataStoresOperationsService struct {
   361  	s *Service
   362  }
   363  
   364  func NewProjectsLocationsCollectionsDataStoresSchemasService(s *Service) *ProjectsLocationsCollectionsDataStoresSchemasService {
   365  	rs := &ProjectsLocationsCollectionsDataStoresSchemasService{s: s}
   366  	rs.Operations = NewProjectsLocationsCollectionsDataStoresSchemasOperationsService(s)
   367  	return rs
   368  }
   369  
   370  type ProjectsLocationsCollectionsDataStoresSchemasService struct {
   371  	s *Service
   372  
   373  	Operations *ProjectsLocationsCollectionsDataStoresSchemasOperationsService
   374  }
   375  
   376  func NewProjectsLocationsCollectionsDataStoresSchemasOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSchemasOperationsService {
   377  	rs := &ProjectsLocationsCollectionsDataStoresSchemasOperationsService{s: s}
   378  	return rs
   379  }
   380  
   381  type ProjectsLocationsCollectionsDataStoresSchemasOperationsService struct {
   382  	s *Service
   383  }
   384  
   385  func NewProjectsLocationsCollectionsDataStoresServingConfigsService(s *Service) *ProjectsLocationsCollectionsDataStoresServingConfigsService {
   386  	rs := &ProjectsLocationsCollectionsDataStoresServingConfigsService{s: s}
   387  	return rs
   388  }
   389  
   390  type ProjectsLocationsCollectionsDataStoresServingConfigsService struct {
   391  	s *Service
   392  }
   393  
   394  func NewProjectsLocationsCollectionsDataStoresSessionsService(s *Service) *ProjectsLocationsCollectionsDataStoresSessionsService {
   395  	rs := &ProjectsLocationsCollectionsDataStoresSessionsService{s: s}
   396  	rs.Answers = NewProjectsLocationsCollectionsDataStoresSessionsAnswersService(s)
   397  	return rs
   398  }
   399  
   400  type ProjectsLocationsCollectionsDataStoresSessionsService struct {
   401  	s *Service
   402  
   403  	Answers *ProjectsLocationsCollectionsDataStoresSessionsAnswersService
   404  }
   405  
   406  func NewProjectsLocationsCollectionsDataStoresSessionsAnswersService(s *Service) *ProjectsLocationsCollectionsDataStoresSessionsAnswersService {
   407  	rs := &ProjectsLocationsCollectionsDataStoresSessionsAnswersService{s: s}
   408  	return rs
   409  }
   410  
   411  type ProjectsLocationsCollectionsDataStoresSessionsAnswersService struct {
   412  	s *Service
   413  }
   414  
   415  func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService {
   416  	rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineService{s: s}
   417  	rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s)
   418  	rs.TargetSites = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s)
   419  	return rs
   420  }
   421  
   422  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineService struct {
   423  	s *Service
   424  
   425  	Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService
   426  
   427  	TargetSites *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService
   428  }
   429  
   430  func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService {
   431  	rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService{s: s}
   432  	return rs
   433  }
   434  
   435  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService struct {
   436  	s *Service
   437  }
   438  
   439  func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService {
   440  	rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService{s: s}
   441  	rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s)
   442  	return rs
   443  }
   444  
   445  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService struct {
   446  	s *Service
   447  
   448  	Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService
   449  }
   450  
   451  func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService {
   452  	rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService{s: s}
   453  	return rs
   454  }
   455  
   456  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService struct {
   457  	s *Service
   458  }
   459  
   460  func NewProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService(s *Service) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService {
   461  	rs := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService{s: s}
   462  	return rs
   463  }
   464  
   465  type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService struct {
   466  	s *Service
   467  }
   468  
   469  func NewProjectsLocationsCollectionsDataStoresUserEventsService(s *Service) *ProjectsLocationsCollectionsDataStoresUserEventsService {
   470  	rs := &ProjectsLocationsCollectionsDataStoresUserEventsService{s: s}
   471  	return rs
   472  }
   473  
   474  type ProjectsLocationsCollectionsDataStoresUserEventsService struct {
   475  	s *Service
   476  }
   477  
   478  func NewProjectsLocationsCollectionsEnginesService(s *Service) *ProjectsLocationsCollectionsEnginesService {
   479  	rs := &ProjectsLocationsCollectionsEnginesService{s: s}
   480  	rs.Conversations = NewProjectsLocationsCollectionsEnginesConversationsService(s)
   481  	rs.Operations = NewProjectsLocationsCollectionsEnginesOperationsService(s)
   482  	rs.ServingConfigs = NewProjectsLocationsCollectionsEnginesServingConfigsService(s)
   483  	rs.Sessions = NewProjectsLocationsCollectionsEnginesSessionsService(s)
   484  	return rs
   485  }
   486  
   487  type ProjectsLocationsCollectionsEnginesService struct {
   488  	s *Service
   489  
   490  	Conversations *ProjectsLocationsCollectionsEnginesConversationsService
   491  
   492  	Operations *ProjectsLocationsCollectionsEnginesOperationsService
   493  
   494  	ServingConfigs *ProjectsLocationsCollectionsEnginesServingConfigsService
   495  
   496  	Sessions *ProjectsLocationsCollectionsEnginesSessionsService
   497  }
   498  
   499  func NewProjectsLocationsCollectionsEnginesConversationsService(s *Service) *ProjectsLocationsCollectionsEnginesConversationsService {
   500  	rs := &ProjectsLocationsCollectionsEnginesConversationsService{s: s}
   501  	return rs
   502  }
   503  
   504  type ProjectsLocationsCollectionsEnginesConversationsService struct {
   505  	s *Service
   506  }
   507  
   508  func NewProjectsLocationsCollectionsEnginesOperationsService(s *Service) *ProjectsLocationsCollectionsEnginesOperationsService {
   509  	rs := &ProjectsLocationsCollectionsEnginesOperationsService{s: s}
   510  	return rs
   511  }
   512  
   513  type ProjectsLocationsCollectionsEnginesOperationsService struct {
   514  	s *Service
   515  }
   516  
   517  func NewProjectsLocationsCollectionsEnginesServingConfigsService(s *Service) *ProjectsLocationsCollectionsEnginesServingConfigsService {
   518  	rs := &ProjectsLocationsCollectionsEnginesServingConfigsService{s: s}
   519  	return rs
   520  }
   521  
   522  type ProjectsLocationsCollectionsEnginesServingConfigsService struct {
   523  	s *Service
   524  }
   525  
   526  func NewProjectsLocationsCollectionsEnginesSessionsService(s *Service) *ProjectsLocationsCollectionsEnginesSessionsService {
   527  	rs := &ProjectsLocationsCollectionsEnginesSessionsService{s: s}
   528  	rs.Answers = NewProjectsLocationsCollectionsEnginesSessionsAnswersService(s)
   529  	return rs
   530  }
   531  
   532  type ProjectsLocationsCollectionsEnginesSessionsService struct {
   533  	s *Service
   534  
   535  	Answers *ProjectsLocationsCollectionsEnginesSessionsAnswersService
   536  }
   537  
   538  func NewProjectsLocationsCollectionsEnginesSessionsAnswersService(s *Service) *ProjectsLocationsCollectionsEnginesSessionsAnswersService {
   539  	rs := &ProjectsLocationsCollectionsEnginesSessionsAnswersService{s: s}
   540  	return rs
   541  }
   542  
   543  type ProjectsLocationsCollectionsEnginesSessionsAnswersService struct {
   544  	s *Service
   545  }
   546  
   547  func NewProjectsLocationsCollectionsOperationsService(s *Service) *ProjectsLocationsCollectionsOperationsService {
   548  	rs := &ProjectsLocationsCollectionsOperationsService{s: s}
   549  	return rs
   550  }
   551  
   552  type ProjectsLocationsCollectionsOperationsService struct {
   553  	s *Service
   554  }
   555  
   556  func NewProjectsLocationsDataStoresService(s *Service) *ProjectsLocationsDataStoresService {
   557  	rs := &ProjectsLocationsDataStoresService{s: s}
   558  	rs.Branches = NewProjectsLocationsDataStoresBranchesService(s)
   559  	rs.Conversations = NewProjectsLocationsDataStoresConversationsService(s)
   560  	rs.Models = NewProjectsLocationsDataStoresModelsService(s)
   561  	rs.Operations = NewProjectsLocationsDataStoresOperationsService(s)
   562  	rs.Schemas = NewProjectsLocationsDataStoresSchemasService(s)
   563  	rs.ServingConfigs = NewProjectsLocationsDataStoresServingConfigsService(s)
   564  	rs.Sessions = NewProjectsLocationsDataStoresSessionsService(s)
   565  	rs.SiteSearchEngine = NewProjectsLocationsDataStoresSiteSearchEngineService(s)
   566  	rs.SuggestionDenyListEntries = NewProjectsLocationsDataStoresSuggestionDenyListEntriesService(s)
   567  	rs.UserEvents = NewProjectsLocationsDataStoresUserEventsService(s)
   568  	return rs
   569  }
   570  
   571  type ProjectsLocationsDataStoresService struct {
   572  	s *Service
   573  
   574  	Branches *ProjectsLocationsDataStoresBranchesService
   575  
   576  	Conversations *ProjectsLocationsDataStoresConversationsService
   577  
   578  	Models *ProjectsLocationsDataStoresModelsService
   579  
   580  	Operations *ProjectsLocationsDataStoresOperationsService
   581  
   582  	Schemas *ProjectsLocationsDataStoresSchemasService
   583  
   584  	ServingConfigs *ProjectsLocationsDataStoresServingConfigsService
   585  
   586  	Sessions *ProjectsLocationsDataStoresSessionsService
   587  
   588  	SiteSearchEngine *ProjectsLocationsDataStoresSiteSearchEngineService
   589  
   590  	SuggestionDenyListEntries *ProjectsLocationsDataStoresSuggestionDenyListEntriesService
   591  
   592  	UserEvents *ProjectsLocationsDataStoresUserEventsService
   593  }
   594  
   595  func NewProjectsLocationsDataStoresBranchesService(s *Service) *ProjectsLocationsDataStoresBranchesService {
   596  	rs := &ProjectsLocationsDataStoresBranchesService{s: s}
   597  	rs.Documents = NewProjectsLocationsDataStoresBranchesDocumentsService(s)
   598  	rs.Operations = NewProjectsLocationsDataStoresBranchesOperationsService(s)
   599  	return rs
   600  }
   601  
   602  type ProjectsLocationsDataStoresBranchesService struct {
   603  	s *Service
   604  
   605  	Documents *ProjectsLocationsDataStoresBranchesDocumentsService
   606  
   607  	Operations *ProjectsLocationsDataStoresBranchesOperationsService
   608  }
   609  
   610  func NewProjectsLocationsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsDataStoresBranchesDocumentsService {
   611  	rs := &ProjectsLocationsDataStoresBranchesDocumentsService{s: s}
   612  	return rs
   613  }
   614  
   615  type ProjectsLocationsDataStoresBranchesDocumentsService struct {
   616  	s *Service
   617  }
   618  
   619  func NewProjectsLocationsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsDataStoresBranchesOperationsService {
   620  	rs := &ProjectsLocationsDataStoresBranchesOperationsService{s: s}
   621  	return rs
   622  }
   623  
   624  type ProjectsLocationsDataStoresBranchesOperationsService struct {
   625  	s *Service
   626  }
   627  
   628  func NewProjectsLocationsDataStoresConversationsService(s *Service) *ProjectsLocationsDataStoresConversationsService {
   629  	rs := &ProjectsLocationsDataStoresConversationsService{s: s}
   630  	return rs
   631  }
   632  
   633  type ProjectsLocationsDataStoresConversationsService struct {
   634  	s *Service
   635  }
   636  
   637  func NewProjectsLocationsDataStoresModelsService(s *Service) *ProjectsLocationsDataStoresModelsService {
   638  	rs := &ProjectsLocationsDataStoresModelsService{s: s}
   639  	rs.Operations = NewProjectsLocationsDataStoresModelsOperationsService(s)
   640  	return rs
   641  }
   642  
   643  type ProjectsLocationsDataStoresModelsService struct {
   644  	s *Service
   645  
   646  	Operations *ProjectsLocationsDataStoresModelsOperationsService
   647  }
   648  
   649  func NewProjectsLocationsDataStoresModelsOperationsService(s *Service) *ProjectsLocationsDataStoresModelsOperationsService {
   650  	rs := &ProjectsLocationsDataStoresModelsOperationsService{s: s}
   651  	return rs
   652  }
   653  
   654  type ProjectsLocationsDataStoresModelsOperationsService struct {
   655  	s *Service
   656  }
   657  
   658  func NewProjectsLocationsDataStoresOperationsService(s *Service) *ProjectsLocationsDataStoresOperationsService {
   659  	rs := &ProjectsLocationsDataStoresOperationsService{s: s}
   660  	return rs
   661  }
   662  
   663  type ProjectsLocationsDataStoresOperationsService struct {
   664  	s *Service
   665  }
   666  
   667  func NewProjectsLocationsDataStoresSchemasService(s *Service) *ProjectsLocationsDataStoresSchemasService {
   668  	rs := &ProjectsLocationsDataStoresSchemasService{s: s}
   669  	return rs
   670  }
   671  
   672  type ProjectsLocationsDataStoresSchemasService struct {
   673  	s *Service
   674  }
   675  
   676  func NewProjectsLocationsDataStoresServingConfigsService(s *Service) *ProjectsLocationsDataStoresServingConfigsService {
   677  	rs := &ProjectsLocationsDataStoresServingConfigsService{s: s}
   678  	return rs
   679  }
   680  
   681  type ProjectsLocationsDataStoresServingConfigsService struct {
   682  	s *Service
   683  }
   684  
   685  func NewProjectsLocationsDataStoresSessionsService(s *Service) *ProjectsLocationsDataStoresSessionsService {
   686  	rs := &ProjectsLocationsDataStoresSessionsService{s: s}
   687  	rs.Answers = NewProjectsLocationsDataStoresSessionsAnswersService(s)
   688  	return rs
   689  }
   690  
   691  type ProjectsLocationsDataStoresSessionsService struct {
   692  	s *Service
   693  
   694  	Answers *ProjectsLocationsDataStoresSessionsAnswersService
   695  }
   696  
   697  func NewProjectsLocationsDataStoresSessionsAnswersService(s *Service) *ProjectsLocationsDataStoresSessionsAnswersService {
   698  	rs := &ProjectsLocationsDataStoresSessionsAnswersService{s: s}
   699  	return rs
   700  }
   701  
   702  type ProjectsLocationsDataStoresSessionsAnswersService struct {
   703  	s *Service
   704  }
   705  
   706  func NewProjectsLocationsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineService {
   707  	rs := &ProjectsLocationsDataStoresSiteSearchEngineService{s: s}
   708  	rs.TargetSites = NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s)
   709  	return rs
   710  }
   711  
   712  type ProjectsLocationsDataStoresSiteSearchEngineService struct {
   713  	s *Service
   714  
   715  	TargetSites *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService
   716  }
   717  
   718  func NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService {
   719  	rs := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService{s: s}
   720  	return rs
   721  }
   722  
   723  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService struct {
   724  	s *Service
   725  }
   726  
   727  func NewProjectsLocationsDataStoresSuggestionDenyListEntriesService(s *Service) *ProjectsLocationsDataStoresSuggestionDenyListEntriesService {
   728  	rs := &ProjectsLocationsDataStoresSuggestionDenyListEntriesService{s: s}
   729  	return rs
   730  }
   731  
   732  type ProjectsLocationsDataStoresSuggestionDenyListEntriesService struct {
   733  	s *Service
   734  }
   735  
   736  func NewProjectsLocationsDataStoresUserEventsService(s *Service) *ProjectsLocationsDataStoresUserEventsService {
   737  	rs := &ProjectsLocationsDataStoresUserEventsService{s: s}
   738  	return rs
   739  }
   740  
   741  type ProjectsLocationsDataStoresUserEventsService struct {
   742  	s *Service
   743  }
   744  
   745  func NewProjectsLocationsGroundingConfigsService(s *Service) *ProjectsLocationsGroundingConfigsService {
   746  	rs := &ProjectsLocationsGroundingConfigsService{s: s}
   747  	return rs
   748  }
   749  
   750  type ProjectsLocationsGroundingConfigsService struct {
   751  	s *Service
   752  }
   753  
   754  func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
   755  	rs := &ProjectsLocationsOperationsService{s: s}
   756  	return rs
   757  }
   758  
   759  type ProjectsLocationsOperationsService struct {
   760  	s *Service
   761  }
   762  
   763  func NewProjectsLocationsRankingConfigsService(s *Service) *ProjectsLocationsRankingConfigsService {
   764  	rs := &ProjectsLocationsRankingConfigsService{s: s}
   765  	return rs
   766  }
   767  
   768  type ProjectsLocationsRankingConfigsService struct {
   769  	s *Service
   770  }
   771  
   772  func NewProjectsLocationsUserEventsService(s *Service) *ProjectsLocationsUserEventsService {
   773  	rs := &ProjectsLocationsUserEventsService{s: s}
   774  	return rs
   775  }
   776  
   777  type ProjectsLocationsUserEventsService struct {
   778  	s *Service
   779  }
   780  
   781  func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
   782  	rs := &ProjectsOperationsService{s: s}
   783  	return rs
   784  }
   785  
   786  type ProjectsOperationsService struct {
   787  	s *Service
   788  }
   789  
   790  // GoogleApiHttpBody: Message that represents an arbitrary HTTP body. It should
   791  // only be used for payload formats that can't be represented as JSON, such as
   792  // raw binary or an HTML page. This message can be used both in streaming and
   793  // non-streaming API methods in the request as well as the response. It can be
   794  // used as a top-level request field, which is convenient if one wants to
   795  // extract parameters from either the URL or HTTP template into the request
   796  // fields and also want access to the raw HTTP body. Example: message
   797  // GetResourceRequest { // A unique request id. string request_id = 1; // The
   798  // raw HTTP body is bound to this field. google.api.HttpBody http_body = 2; }
   799  // service ResourceService { rpc GetResource(GetResourceRequest) returns
   800  // (google.api.HttpBody); rpc UpdateResource(google.api.HttpBody) returns
   801  // (google.protobuf.Empty); } Example with streaming methods: service
   802  // CaldavService { rpc GetCalendar(stream google.api.HttpBody) returns (stream
   803  // google.api.HttpBody); rpc UpdateCalendar(stream google.api.HttpBody) returns
   804  // (stream google.api.HttpBody); } Use of this type only changes how the
   805  // request and response bodies are handled, all other features will continue to
   806  // work unchanged.
   807  type GoogleApiHttpBody struct {
   808  	// ContentType: The HTTP Content-Type header value specifying the content type
   809  	// of the body.
   810  	ContentType string `json:"contentType,omitempty"`
   811  	// Data: The HTTP request/response body as raw binary.
   812  	Data string `json:"data,omitempty"`
   813  	// Extensions: Application specific response metadata. Must be set in the first
   814  	// response for streaming APIs.
   815  	Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
   816  
   817  	// ServerResponse contains the HTTP response code and headers from the server.
   818  	googleapi.ServerResponse `json:"-"`
   819  	// ForceSendFields is a list of field names (e.g. "ContentType") to
   820  	// unconditionally include in API requests. By default, fields with empty or
   821  	// default values are omitted from API requests. See
   822  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   823  	// details.
   824  	ForceSendFields []string `json:"-"`
   825  	// NullFields is a list of field names (e.g. "ContentType") to include in API
   826  	// requests with the JSON null value. By default, fields with empty values are
   827  	// omitted from API requests. See
   828  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   829  	NullFields []string `json:"-"`
   830  }
   831  
   832  func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
   833  	type NoMethod GoogleApiHttpBody
   834  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   835  }
   836  
   837  // GoogleCloudDiscoveryengineLoggingErrorContext: A description of the context
   838  // in which an error occurred.
   839  type GoogleCloudDiscoveryengineLoggingErrorContext struct {
   840  	// HttpRequest: The HTTP request which was processed when the error was
   841  	// triggered.
   842  	HttpRequest *GoogleCloudDiscoveryengineLoggingHttpRequestContext `json:"httpRequest,omitempty"`
   843  	// ReportLocation: The location in the source code where the decision was made
   844  	// to report the error, usually the place where it was logged.
   845  	ReportLocation *GoogleCloudDiscoveryengineLoggingSourceLocation `json:"reportLocation,omitempty"`
   846  	// ForceSendFields is a list of field names (e.g. "HttpRequest") to
   847  	// unconditionally include in API requests. By default, fields with empty or
   848  	// default values are omitted from API requests. See
   849  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   850  	// details.
   851  	ForceSendFields []string `json:"-"`
   852  	// NullFields is a list of field names (e.g. "HttpRequest") to include in API
   853  	// requests with the JSON null value. By default, fields with empty values are
   854  	// omitted from API requests. See
   855  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   856  	NullFields []string `json:"-"`
   857  }
   858  
   859  func (s *GoogleCloudDiscoveryengineLoggingErrorContext) MarshalJSON() ([]byte, error) {
   860  	type NoMethod GoogleCloudDiscoveryengineLoggingErrorContext
   861  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   862  }
   863  
   864  // GoogleCloudDiscoveryengineLoggingErrorLog: An error log which is reported to
   865  // the Error Reporting system.
   866  type GoogleCloudDiscoveryengineLoggingErrorLog struct {
   867  	// Context: A description of the context in which the error occurred.
   868  	Context *GoogleCloudDiscoveryengineLoggingErrorContext `json:"context,omitempty"`
   869  	// ImportPayload: The error payload that is populated on LRO import APIs.
   870  	ImportPayload *GoogleCloudDiscoveryengineLoggingImportErrorContext `json:"importPayload,omitempty"`
   871  	// Message: A message describing the error.
   872  	Message string `json:"message,omitempty"`
   873  	// RequestPayload: The API request payload, represented as a protocol buffer.
   874  	// Most API request types are supported—for example: *
   875  	// `type.googleapis.com/google.cloud.discoveryengine.v1alpha.DocumentService.Cre
   876  	// ateDocumentRequest` *
   877  	// `type.googleapis.com/google.cloud.discoveryengine.v1alpha.UserEventService.Wr
   878  	// iteUserEventRequest`
   879  	RequestPayload googleapi.RawMessage `json:"requestPayload,omitempty"`
   880  	// ResponsePayload: The API response payload, represented as a protocol buffer.
   881  	// This is used to log some "soft errors", where the response is valid but we
   882  	// consider there are some quality issues like unjoined events. The following
   883  	// API responses are supported, and no PII is included: *
   884  	// `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend` *
   885  	// `google.cloud.discoveryengine.v1alpha.UserEventService.WriteUserEvent` *
   886  	// `google.cloud.discoveryengine.v1alpha.UserEventService.CollectUserEvent`
   887  	ResponsePayload googleapi.RawMessage `json:"responsePayload,omitempty"`
   888  	// ServiceContext: The service context in which this error has occurred.
   889  	ServiceContext *GoogleCloudDiscoveryengineLoggingServiceContext `json:"serviceContext,omitempty"`
   890  	// Status: The RPC status associated with the error log.
   891  	Status *GoogleRpcStatus `json:"status,omitempty"`
   892  	// ForceSendFields is a list of field names (e.g. "Context") to unconditionally
   893  	// include in API requests. By default, fields with empty or default values are
   894  	// omitted from API requests. See
   895  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   896  	// details.
   897  	ForceSendFields []string `json:"-"`
   898  	// NullFields is a list of field names (e.g. "Context") to include in API
   899  	// requests with the JSON null value. By default, fields with empty values are
   900  	// omitted from API requests. See
   901  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   902  	NullFields []string `json:"-"`
   903  }
   904  
   905  func (s *GoogleCloudDiscoveryengineLoggingErrorLog) MarshalJSON() ([]byte, error) {
   906  	type NoMethod GoogleCloudDiscoveryengineLoggingErrorLog
   907  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   908  }
   909  
   910  // GoogleCloudDiscoveryengineLoggingHttpRequestContext: HTTP request data that
   911  // is related to a reported error.
   912  type GoogleCloudDiscoveryengineLoggingHttpRequestContext struct {
   913  	// ResponseStatusCode: The HTTP response status code for the request.
   914  	ResponseStatusCode int64 `json:"responseStatusCode,omitempty"`
   915  	// ForceSendFields is a list of field names (e.g. "ResponseStatusCode") to
   916  	// unconditionally include in API requests. By default, fields with empty or
   917  	// default values are omitted from API requests. See
   918  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   919  	// details.
   920  	ForceSendFields []string `json:"-"`
   921  	// NullFields is a list of field names (e.g. "ResponseStatusCode") to include
   922  	// in API requests with the JSON null value. By default, fields with empty
   923  	// values are omitted from API requests. See
   924  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   925  	NullFields []string `json:"-"`
   926  }
   927  
   928  func (s *GoogleCloudDiscoveryengineLoggingHttpRequestContext) MarshalJSON() ([]byte, error) {
   929  	type NoMethod GoogleCloudDiscoveryengineLoggingHttpRequestContext
   930  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   931  }
   932  
   933  // GoogleCloudDiscoveryengineLoggingImportErrorContext: The error payload that
   934  // is populated on LRO import APIs, including the following: *
   935  // `google.cloud.discoveryengine.v1alpha.DocumentService.ImportDocuments` *
   936  // `google.cloud.discoveryengine.v1alpha.UserEventService.ImportUserEvents`
   937  type GoogleCloudDiscoveryengineLoggingImportErrorContext struct {
   938  	// Document: The detailed content which caused the error on importing a
   939  	// document.
   940  	Document string `json:"document,omitempty"`
   941  	// GcsPath: Google Cloud Storage file path of the import source. Can be set for
   942  	// batch operation error.
   943  	GcsPath string `json:"gcsPath,omitempty"`
   944  	// LineNumber: Line number of the content in file. Should be empty for
   945  	// permission or batch operation error.
   946  	LineNumber string `json:"lineNumber,omitempty"`
   947  	// Operation: The operation resource name of the LRO.
   948  	Operation string `json:"operation,omitempty"`
   949  	// UserEvent: The detailed content which caused the error on importing a user
   950  	// event.
   951  	UserEvent string `json:"userEvent,omitempty"`
   952  	// ForceSendFields is a list of field names (e.g. "Document") to
   953  	// unconditionally include in API requests. By default, fields with empty or
   954  	// default values are omitted from API requests. See
   955  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   956  	// details.
   957  	ForceSendFields []string `json:"-"`
   958  	// NullFields is a list of field names (e.g. "Document") to include in API
   959  	// requests with the JSON null value. By default, fields with empty values are
   960  	// omitted from API requests. See
   961  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   962  	NullFields []string `json:"-"`
   963  }
   964  
   965  func (s *GoogleCloudDiscoveryengineLoggingImportErrorContext) MarshalJSON() ([]byte, error) {
   966  	type NoMethod GoogleCloudDiscoveryengineLoggingImportErrorContext
   967  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   968  }
   969  
   970  // GoogleCloudDiscoveryengineLoggingServiceContext: Describes a running service
   971  // that sends errors.
   972  type GoogleCloudDiscoveryengineLoggingServiceContext struct {
   973  	// Service: An identifier of the service—for example,
   974  	// `discoveryengine.googleapis.com`.
   975  	Service string `json:"service,omitempty"`
   976  	// ForceSendFields is a list of field names (e.g. "Service") to unconditionally
   977  	// include in API requests. By default, fields with empty or default values are
   978  	// omitted from API requests. See
   979  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   980  	// details.
   981  	ForceSendFields []string `json:"-"`
   982  	// NullFields is a list of field names (e.g. "Service") to include in API
   983  	// requests with the JSON null value. By default, fields with empty values are
   984  	// omitted from API requests. See
   985  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   986  	NullFields []string `json:"-"`
   987  }
   988  
   989  func (s *GoogleCloudDiscoveryengineLoggingServiceContext) MarshalJSON() ([]byte, error) {
   990  	type NoMethod GoogleCloudDiscoveryengineLoggingServiceContext
   991  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   992  }
   993  
   994  // GoogleCloudDiscoveryengineLoggingSourceLocation: Indicates a location in the
   995  // source code of the service for which errors are reported.
   996  type GoogleCloudDiscoveryengineLoggingSourceLocation struct {
   997  	// FunctionName: Human-readable name of a function or method—for example,
   998  	// `google.cloud.discoveryengine.v1alpha.RecommendationService.Recommend`.
   999  	FunctionName string `json:"functionName,omitempty"`
  1000  	// ForceSendFields is a list of field names (e.g. "FunctionName") to
  1001  	// unconditionally include in API requests. By default, fields with empty or
  1002  	// default values are omitted from API requests. See
  1003  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1004  	// details.
  1005  	ForceSendFields []string `json:"-"`
  1006  	// NullFields is a list of field names (e.g. "FunctionName") to include in API
  1007  	// requests with the JSON null value. By default, fields with empty values are
  1008  	// omitted from API requests. See
  1009  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1010  	NullFields []string `json:"-"`
  1011  }
  1012  
  1013  func (s *GoogleCloudDiscoveryengineLoggingSourceLocation) MarshalJSON() ([]byte, error) {
  1014  	type NoMethod GoogleCloudDiscoveryengineLoggingSourceLocation
  1015  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1016  }
  1017  
  1018  // GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata: Metadata related
  1019  // to the progress of the SiteSearchEngineService.BatchCreateTargetSites
  1020  // operation. This will be returned by the
  1021  // google.longrunning.Operation.metadata field.
  1022  type GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata struct {
  1023  	// CreateTime: Operation create time.
  1024  	CreateTime string `json:"createTime,omitempty"`
  1025  	// UpdateTime: Operation last update time. If the operation is done, this is
  1026  	// also the finish time.
  1027  	UpdateTime string `json:"updateTime,omitempty"`
  1028  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1029  	// unconditionally include in API requests. By default, fields with empty or
  1030  	// default values are omitted from API requests. See
  1031  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1032  	// details.
  1033  	ForceSendFields []string `json:"-"`
  1034  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1035  	// requests with the JSON null value. By default, fields with empty values are
  1036  	// omitted from API requests. See
  1037  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1038  	NullFields []string `json:"-"`
  1039  }
  1040  
  1041  func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  1042  	type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata
  1043  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1044  }
  1045  
  1046  // GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse: Response message
  1047  // for SiteSearchEngineService.BatchCreateTargetSites method.
  1048  type GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse struct {
  1049  	// TargetSites: TargetSites created.
  1050  	TargetSites []*GoogleCloudDiscoveryengineV1TargetSite `json:"targetSites,omitempty"`
  1051  	// ForceSendFields is a list of field names (e.g. "TargetSites") to
  1052  	// unconditionally include in API requests. By default, fields with empty or
  1053  	// default values are omitted from API requests. See
  1054  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1055  	// details.
  1056  	ForceSendFields []string `json:"-"`
  1057  	// NullFields is a list of field names (e.g. "TargetSites") to include in API
  1058  	// requests with the JSON null value. By default, fields with empty values are
  1059  	// omitted from API requests. See
  1060  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1061  	NullFields []string `json:"-"`
  1062  }
  1063  
  1064  func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
  1065  	type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse
  1066  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1067  }
  1068  
  1069  // GoogleCloudDiscoveryengineV1CreateDataStoreMetadata: Metadata related to the
  1070  // progress of the DataStoreService.CreateDataStore operation. This will be
  1071  // returned by the google.longrunning.Operation.metadata field.
  1072  type GoogleCloudDiscoveryengineV1CreateDataStoreMetadata struct {
  1073  	// CreateTime: Operation create time.
  1074  	CreateTime string `json:"createTime,omitempty"`
  1075  	// UpdateTime: Operation last update time. If the operation is done, this is
  1076  	// also the finish time.
  1077  	UpdateTime string `json:"updateTime,omitempty"`
  1078  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1079  	// unconditionally include in API requests. By default, fields with empty or
  1080  	// default values are omitted from API requests. See
  1081  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1082  	// details.
  1083  	ForceSendFields []string `json:"-"`
  1084  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1085  	// requests with the JSON null value. By default, fields with empty values are
  1086  	// omitted from API requests. See
  1087  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1088  	NullFields []string `json:"-"`
  1089  }
  1090  
  1091  func (s *GoogleCloudDiscoveryengineV1CreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
  1092  	type NoMethod GoogleCloudDiscoveryengineV1CreateDataStoreMetadata
  1093  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1094  }
  1095  
  1096  // GoogleCloudDiscoveryengineV1CreateEngineMetadata: Metadata related to the
  1097  // progress of the EngineService.CreateEngine operation. This will be returned
  1098  // by the google.longrunning.Operation.metadata field.
  1099  type GoogleCloudDiscoveryengineV1CreateEngineMetadata struct {
  1100  	// CreateTime: Operation create time.
  1101  	CreateTime string `json:"createTime,omitempty"`
  1102  	// UpdateTime: Operation last update time. If the operation is done, this is
  1103  	// also the finish time.
  1104  	UpdateTime string `json:"updateTime,omitempty"`
  1105  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1106  	// unconditionally include in API requests. By default, fields with empty or
  1107  	// default values are omitted from API requests. See
  1108  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1109  	// details.
  1110  	ForceSendFields []string `json:"-"`
  1111  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1112  	// requests with the JSON null value. By default, fields with empty values are
  1113  	// omitted from API requests. See
  1114  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1115  	NullFields []string `json:"-"`
  1116  }
  1117  
  1118  func (s *GoogleCloudDiscoveryengineV1CreateEngineMetadata) MarshalJSON() ([]byte, error) {
  1119  	type NoMethod GoogleCloudDiscoveryengineV1CreateEngineMetadata
  1120  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1121  }
  1122  
  1123  // GoogleCloudDiscoveryengineV1CreateSchemaMetadata: Metadata for Create Schema
  1124  // LRO.
  1125  type GoogleCloudDiscoveryengineV1CreateSchemaMetadata struct {
  1126  	// CreateTime: Operation create time.
  1127  	CreateTime string `json:"createTime,omitempty"`
  1128  	// UpdateTime: Operation last update time. If the operation is done, this is
  1129  	// also the finish time.
  1130  	UpdateTime string `json:"updateTime,omitempty"`
  1131  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1132  	// unconditionally include in API requests. By default, fields with empty or
  1133  	// default values are omitted from API requests. See
  1134  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1135  	// details.
  1136  	ForceSendFields []string `json:"-"`
  1137  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1138  	// requests with the JSON null value. By default, fields with empty values are
  1139  	// omitted from API requests. See
  1140  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1141  	NullFields []string `json:"-"`
  1142  }
  1143  
  1144  func (s *GoogleCloudDiscoveryengineV1CreateSchemaMetadata) MarshalJSON() ([]byte, error) {
  1145  	type NoMethod GoogleCloudDiscoveryengineV1CreateSchemaMetadata
  1146  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1147  }
  1148  
  1149  // GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata: Metadata related to
  1150  // the progress of the SiteSearchEngineService.CreateTargetSite operation. This
  1151  // will be returned by the google.longrunning.Operation.metadata field.
  1152  type GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata struct {
  1153  	// CreateTime: Operation create time.
  1154  	CreateTime string `json:"createTime,omitempty"`
  1155  	// UpdateTime: Operation last update time. If the operation is done, this is
  1156  	// also the finish time.
  1157  	UpdateTime string `json:"updateTime,omitempty"`
  1158  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1159  	// unconditionally include in API requests. By default, fields with empty or
  1160  	// default values are omitted from API requests. See
  1161  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1162  	// details.
  1163  	ForceSendFields []string `json:"-"`
  1164  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1165  	// requests with the JSON null value. By default, fields with empty values are
  1166  	// omitted from API requests. See
  1167  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1168  	NullFields []string `json:"-"`
  1169  }
  1170  
  1171  func (s *GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  1172  	type NoMethod GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata
  1173  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1174  }
  1175  
  1176  // GoogleCloudDiscoveryengineV1DataStore: DataStore captures global settings
  1177  // and configs at the DataStore level.
  1178  type GoogleCloudDiscoveryengineV1DataStore struct {
  1179  	// ContentConfig: Immutable. The content config of the data store. If this
  1180  	// field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
  1181  	//
  1182  	// Possible values:
  1183  	//   "CONTENT_CONFIG_UNSPECIFIED" - Default value.
  1184  	//   "NO_CONTENT" - Only contains documents without any Document.content.
  1185  	//   "CONTENT_REQUIRED" - Only contains documents with Document.content.
  1186  	//   "PUBLIC_WEBSITE" - The data store is used for public website search.
  1187  	ContentConfig string `json:"contentConfig,omitempty"`
  1188  	// CreateTime: Output only. Timestamp the DataStore was created at.
  1189  	CreateTime string `json:"createTime,omitempty"`
  1190  	// DefaultSchemaId: Output only. The id of the default Schema asscociated to
  1191  	// this data store.
  1192  	DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
  1193  	// DisplayName: Required. The data store display name. This field must be a
  1194  	// UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
  1195  	// INVALID_ARGUMENT error is returned.
  1196  	DisplayName string `json:"displayName,omitempty"`
  1197  	// DocumentProcessingConfig: Configuration for Document understanding and
  1198  	// enrichment.
  1199  	DocumentProcessingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
  1200  	// IndustryVertical: Immutable. The industry vertical that the data store
  1201  	// registers.
  1202  	//
  1203  	// Possible values:
  1204  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  1205  	//   "GENERIC" - The generic vertical for documents that are not specific to
  1206  	// any industry vertical.
  1207  	//   "MEDIA" - The media industry vertical.
  1208  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  1209  	IndustryVertical string `json:"industryVertical,omitempty"`
  1210  	// Name: Immutable. The full resource name of the data store. Format:
  1211  	// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
  1212  	// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
  1213  	// limit of 1024 characters.
  1214  	Name string `json:"name,omitempty"`
  1215  	// SolutionTypes: The solutions that the data store enrolls. Available
  1216  	// solutions for each industry_vertical: * `MEDIA`:
  1217  	// `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`:
  1218  	// `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be
  1219  	// enrolled.
  1220  	//
  1221  	// Possible values:
  1222  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  1223  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  1224  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  1225  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  1226  	// agent.
  1227  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  1228  	// Generative Chat agent. It's used for Generative chat engine only, the
  1229  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  1230  	SolutionTypes []string `json:"solutionTypes,omitempty"`
  1231  	// StartingSchema: The start schema to use for this DataStore when provisioning
  1232  	// it. If unset, a default vertical specialized schema will be used. This field
  1233  	// is only used by CreateDataStore API, and will be ignored if used in other
  1234  	// APIs. This field will be omitted from all API responses including
  1235  	// CreateDataStore API. To retrieve a schema of a DataStore, use
  1236  	// SchemaService.GetSchema API instead. The provided schema will be validated
  1237  	// against certain rules on schema. Learn more from this doc
  1238  	// (https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
  1239  	StartingSchema *GoogleCloudDiscoveryengineV1Schema `json:"startingSchema,omitempty"`
  1240  	// ForceSendFields is a list of field names (e.g. "ContentConfig") to
  1241  	// unconditionally include in API requests. By default, fields with empty or
  1242  	// default values are omitted from API requests. See
  1243  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1244  	// details.
  1245  	ForceSendFields []string `json:"-"`
  1246  	// NullFields is a list of field names (e.g. "ContentConfig") to include in API
  1247  	// requests with the JSON null value. By default, fields with empty values are
  1248  	// omitted from API requests. See
  1249  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1250  	NullFields []string `json:"-"`
  1251  }
  1252  
  1253  func (s *GoogleCloudDiscoveryengineV1DataStore) MarshalJSON() ([]byte, error) {
  1254  	type NoMethod GoogleCloudDiscoveryengineV1DataStore
  1255  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1256  }
  1257  
  1258  // GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata: Metadata related to the
  1259  // progress of the DataStoreService.DeleteDataStore operation. This will be
  1260  // returned by the google.longrunning.Operation.metadata field.
  1261  type GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata struct {
  1262  	// CreateTime: Operation create time.
  1263  	CreateTime string `json:"createTime,omitempty"`
  1264  	// UpdateTime: Operation last update time. If the operation is done, this is
  1265  	// also the finish time.
  1266  	UpdateTime string `json:"updateTime,omitempty"`
  1267  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1268  	// unconditionally include in API requests. By default, fields with empty or
  1269  	// default values are omitted from API requests. See
  1270  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1271  	// details.
  1272  	ForceSendFields []string `json:"-"`
  1273  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1274  	// requests with the JSON null value. By default, fields with empty values are
  1275  	// omitted from API requests. See
  1276  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1277  	NullFields []string `json:"-"`
  1278  }
  1279  
  1280  func (s *GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
  1281  	type NoMethod GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata
  1282  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1283  }
  1284  
  1285  // GoogleCloudDiscoveryengineV1DeleteEngineMetadata: Metadata related to the
  1286  // progress of the EngineService.DeleteEngine operation. This will be returned
  1287  // by the google.longrunning.Operation.metadata field.
  1288  type GoogleCloudDiscoveryengineV1DeleteEngineMetadata struct {
  1289  	// CreateTime: Operation create time.
  1290  	CreateTime string `json:"createTime,omitempty"`
  1291  	// UpdateTime: Operation last update time. If the operation is done, this is
  1292  	// also the finish time.
  1293  	UpdateTime string `json:"updateTime,omitempty"`
  1294  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1295  	// unconditionally include in API requests. By default, fields with empty or
  1296  	// default values are omitted from API requests. See
  1297  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1298  	// details.
  1299  	ForceSendFields []string `json:"-"`
  1300  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1301  	// requests with the JSON null value. By default, fields with empty values are
  1302  	// omitted from API requests. See
  1303  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1304  	NullFields []string `json:"-"`
  1305  }
  1306  
  1307  func (s *GoogleCloudDiscoveryengineV1DeleteEngineMetadata) MarshalJSON() ([]byte, error) {
  1308  	type NoMethod GoogleCloudDiscoveryengineV1DeleteEngineMetadata
  1309  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1310  }
  1311  
  1312  // GoogleCloudDiscoveryengineV1DeleteSchemaMetadata: Metadata for DeleteSchema
  1313  // LRO.
  1314  type GoogleCloudDiscoveryengineV1DeleteSchemaMetadata struct {
  1315  	// CreateTime: Operation create time.
  1316  	CreateTime string `json:"createTime,omitempty"`
  1317  	// UpdateTime: Operation last update time. If the operation is done, this is
  1318  	// also the finish time.
  1319  	UpdateTime string `json:"updateTime,omitempty"`
  1320  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1321  	// unconditionally include in API requests. By default, fields with empty or
  1322  	// default values are omitted from API requests. See
  1323  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1324  	// details.
  1325  	ForceSendFields []string `json:"-"`
  1326  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1327  	// requests with the JSON null value. By default, fields with empty values are
  1328  	// omitted from API requests. See
  1329  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1330  	NullFields []string `json:"-"`
  1331  }
  1332  
  1333  func (s *GoogleCloudDiscoveryengineV1DeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
  1334  	type NoMethod GoogleCloudDiscoveryengineV1DeleteSchemaMetadata
  1335  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1336  }
  1337  
  1338  // GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata: Metadata related to
  1339  // the progress of the SiteSearchEngineService.DeleteTargetSite operation. This
  1340  // will be returned by the google.longrunning.Operation.metadata field.
  1341  type GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata struct {
  1342  	// CreateTime: Operation create time.
  1343  	CreateTime string `json:"createTime,omitempty"`
  1344  	// UpdateTime: Operation last update time. If the operation is done, this is
  1345  	// also the finish time.
  1346  	UpdateTime string `json:"updateTime,omitempty"`
  1347  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1348  	// unconditionally include in API requests. By default, fields with empty or
  1349  	// default values are omitted from API requests. See
  1350  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1351  	// details.
  1352  	ForceSendFields []string `json:"-"`
  1353  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1354  	// requests with the JSON null value. By default, fields with empty values are
  1355  	// omitted from API requests. See
  1356  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1357  	NullFields []string `json:"-"`
  1358  }
  1359  
  1360  func (s *GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  1361  	type NoMethod GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata
  1362  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1363  }
  1364  
  1365  // GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata: Metadata
  1366  // related to the progress of the
  1367  // SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be
  1368  // returned by the google.longrunning.Operation.metadata field.
  1369  type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata struct {
  1370  	// CreateTime: Operation create time.
  1371  	CreateTime string `json:"createTime,omitempty"`
  1372  	// UpdateTime: Operation last update time. If the operation is done, this is
  1373  	// also the finish time.
  1374  	UpdateTime string `json:"updateTime,omitempty"`
  1375  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1376  	// unconditionally include in API requests. By default, fields with empty or
  1377  	// default values are omitted from API requests. See
  1378  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1379  	// details.
  1380  	ForceSendFields []string `json:"-"`
  1381  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1382  	// requests with the JSON null value. By default, fields with empty values are
  1383  	// omitted from API requests. See
  1384  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1385  	NullFields []string `json:"-"`
  1386  }
  1387  
  1388  func (s *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  1389  	type NoMethod GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata
  1390  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1391  }
  1392  
  1393  // GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse: Response
  1394  // message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
  1395  type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse struct {
  1396  }
  1397  
  1398  // GoogleCloudDiscoveryengineV1DocumentProcessingConfig: A singleton resource
  1399  // of DataStore. It's empty when DataStore is created, which defaults to
  1400  // digital parser. The first call to
  1401  // DataStoreService.UpdateDocumentProcessingConfig method will initialize the
  1402  // config.
  1403  type GoogleCloudDiscoveryengineV1DocumentProcessingConfig struct {
  1404  	// DefaultParsingConfig: Configurations for default Document parser. If not
  1405  	// specified, we will configure it as default DigitalParsingConfig, and the
  1406  	// default parsing config will be applied to all file types for Document
  1407  	// parsing.
  1408  	DefaultParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
  1409  	// Name: The full resource name of the Document Processing Config. Format:
  1410  	// `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
  1411  	Name string `json:"name,omitempty"`
  1412  	// ParsingConfigOverrides: Map from file type to override the default parsing
  1413  	// configuration based on the file type. Supported keys: * `pdf`: Override
  1414  	// parsing config for PDF files, either digital parsing, ocr parsing or layout
  1415  	// parsing is supported. * `html`: Override parsing config for HTML files, only
  1416  	// digital parsing and or layout parsing are supported. * `docx`: Override
  1417  	// parsing config for DOCX files, only digital parsing and or layout parsing
  1418  	// are supported.
  1419  	ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
  1420  	// ForceSendFields is a list of field names (e.g. "DefaultParsingConfig") to
  1421  	// unconditionally include in API requests. By default, fields with empty or
  1422  	// default values are omitted from API requests. See
  1423  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1424  	// details.
  1425  	ForceSendFields []string `json:"-"`
  1426  	// NullFields is a list of field names (e.g. "DefaultParsingConfig") to include
  1427  	// in API requests with the JSON null value. By default, fields with empty
  1428  	// values are omitted from API requests. See
  1429  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1430  	NullFields []string `json:"-"`
  1431  }
  1432  
  1433  func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfig) MarshalJSON() ([]byte, error) {
  1434  	type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfig
  1435  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1436  }
  1437  
  1438  // GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig: Related
  1439  // configurations applied to a specific type of document parser.
  1440  type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig struct {
  1441  	// DigitalParsingConfig: Configurations applied to digital parser.
  1442  	DigitalParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
  1443  	// OcrParsingConfig: Configurations applied to OCR parser. Currently it only
  1444  	// applies to PDFs.
  1445  	OcrParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
  1446  	// ForceSendFields is a list of field names (e.g. "DigitalParsingConfig") to
  1447  	// unconditionally include in API requests. By default, fields with empty or
  1448  	// default values are omitted from API requests. See
  1449  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1450  	// details.
  1451  	ForceSendFields []string `json:"-"`
  1452  	// NullFields is a list of field names (e.g. "DigitalParsingConfig") to include
  1453  	// in API requests with the JSON null value. By default, fields with empty
  1454  	// values are omitted from API requests. See
  1455  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1456  	NullFields []string `json:"-"`
  1457  }
  1458  
  1459  func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
  1460  	type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig
  1461  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1462  }
  1463  
  1464  // GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsi
  1465  // ngConfig: The digital parsing configurations for documents.
  1466  type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
  1467  }
  1468  
  1469  // GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingCo
  1470  // nfig: The OCR parsing configurations for documents.
  1471  type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig struct {
  1472  	// EnhancedDocumentElements: [DEPRECATED] This field is deprecated. To use the
  1473  	// additional enhanced document elements processing, please switch to
  1474  	// `layout_parsing_config`.
  1475  	EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
  1476  	// UseNativeText: If true, will use native text instead of OCR text on pages
  1477  	// containing native text.
  1478  	UseNativeText bool `json:"useNativeText,omitempty"`
  1479  	// ForceSendFields is a list of field names (e.g. "EnhancedDocumentElements")
  1480  	// to unconditionally include in API requests. By default, fields with empty or
  1481  	// default values are omitted from API requests. See
  1482  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1483  	// details.
  1484  	ForceSendFields []string `json:"-"`
  1485  	// NullFields is a list of field names (e.g. "EnhancedDocumentElements") to
  1486  	// include in API requests with the JSON null value. By default, fields with
  1487  	// empty values are omitted from API requests. See
  1488  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1489  	NullFields []string `json:"-"`
  1490  }
  1491  
  1492  func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
  1493  	type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig
  1494  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1495  }
  1496  
  1497  // GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata: Metadata
  1498  // related to the progress of the
  1499  // SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be
  1500  // returned by the google.longrunning.Operation.metadata field.
  1501  type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata struct {
  1502  	// CreateTime: Operation create time.
  1503  	CreateTime string `json:"createTime,omitempty"`
  1504  	// UpdateTime: Operation last update time. If the operation is done, this is
  1505  	// also the finish time.
  1506  	UpdateTime string `json:"updateTime,omitempty"`
  1507  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1508  	// unconditionally include in API requests. By default, fields with empty or
  1509  	// default values are omitted from API requests. See
  1510  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1511  	// details.
  1512  	ForceSendFields []string `json:"-"`
  1513  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1514  	// requests with the JSON null value. By default, fields with empty values are
  1515  	// omitted from API requests. See
  1516  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1517  	NullFields []string `json:"-"`
  1518  }
  1519  
  1520  func (s *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  1521  	type NoMethod GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata
  1522  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1523  }
  1524  
  1525  // GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchResponse: Response
  1526  // message for SiteSearchEngineService.EnableAdvancedSiteSearch method.
  1527  type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchResponse struct {
  1528  }
  1529  
  1530  // GoogleCloudDiscoveryengineV1Engine: Metadata that describes the training and
  1531  // serving parameters of an Engine.
  1532  type GoogleCloudDiscoveryengineV1Engine struct {
  1533  	// ChatEngineConfig: Configurations for the Chat Engine. Only applicable if
  1534  	// solution_type is SOLUTION_TYPE_CHAT.
  1535  	ChatEngineConfig *GoogleCloudDiscoveryengineV1EngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
  1536  	// ChatEngineMetadata: Output only. Additional information of the Chat Engine.
  1537  	// Only applicable if solution_type is SOLUTION_TYPE_CHAT.
  1538  	ChatEngineMetadata *GoogleCloudDiscoveryengineV1EngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
  1539  	// CommonConfig: Common config spec that specifies the metadata of the engine.
  1540  	CommonConfig *GoogleCloudDiscoveryengineV1EngineCommonConfig `json:"commonConfig,omitempty"`
  1541  	// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
  1542  	CreateTime string `json:"createTime,omitempty"`
  1543  	// DataStoreIds: The data stores associated with this engine. For
  1544  	// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
  1545  	// can only associate with at most one data store. If solution_type is
  1546  	// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
  1547  	// associated here. Note that when used in CreateEngineRequest, one DataStore
  1548  	// id must be provided as the system will use it for necessary initializations.
  1549  	DataStoreIds []string `json:"dataStoreIds,omitempty"`
  1550  	// DisplayName: Required. The display name of the engine. Should be human
  1551  	// readable. UTF-8 encoded string with limit of 1024 characters.
  1552  	DisplayName string `json:"displayName,omitempty"`
  1553  	// IndustryVertical: The industry vertical that the engine registers. The
  1554  	// restriction of the Engine industry vertical is based on DataStore: If
  1555  	// unspecified, default to `GENERIC`. Vertical on Engine has to match vertical
  1556  	// of the DataStore liniked to the engine.
  1557  	//
  1558  	// Possible values:
  1559  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  1560  	//   "GENERIC" - The generic vertical for documents that are not specific to
  1561  	// any industry vertical.
  1562  	//   "MEDIA" - The media industry vertical.
  1563  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  1564  	IndustryVertical string `json:"industryVertical,omitempty"`
  1565  	// Name: Immutable. The fully qualified resource name of the engine. This field
  1566  	// must be a UTF-8 encoded string with a length limit of 1024 characters.
  1567  	// Format:
  1568  	// `projects/{project_number}/locations/{location}/collections/{collection}/engi
  1569  	// nes/{engine}` engine should be 1-63 characters, and valid characters are
  1570  	// /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
  1571  	Name string `json:"name,omitempty"`
  1572  	// SearchEngineConfig: Configurations for the Search Engine. Only applicable if
  1573  	// solution_type is SOLUTION_TYPE_SEARCH.
  1574  	SearchEngineConfig *GoogleCloudDiscoveryengineV1EngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
  1575  	// SolutionType: Required. The solutions of the engine.
  1576  	//
  1577  	// Possible values:
  1578  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  1579  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  1580  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  1581  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  1582  	// agent.
  1583  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  1584  	// Generative Chat agent. It's used for Generative chat engine only, the
  1585  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  1586  	SolutionType string `json:"solutionType,omitempty"`
  1587  	// UpdateTime: Output only. Timestamp the Recommendation Engine was last
  1588  	// updated.
  1589  	UpdateTime string `json:"updateTime,omitempty"`
  1590  	// ForceSendFields is a list of field names (e.g. "ChatEngineConfig") to
  1591  	// unconditionally include in API requests. By default, fields with empty or
  1592  	// default values are omitted from API requests. See
  1593  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1594  	// details.
  1595  	ForceSendFields []string `json:"-"`
  1596  	// NullFields is a list of field names (e.g. "ChatEngineConfig") to include in
  1597  	// API requests with the JSON null value. By default, fields with empty values
  1598  	// are omitted from API requests. See
  1599  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1600  	NullFields []string `json:"-"`
  1601  }
  1602  
  1603  func (s *GoogleCloudDiscoveryengineV1Engine) MarshalJSON() ([]byte, error) {
  1604  	type NoMethod GoogleCloudDiscoveryengineV1Engine
  1605  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1606  }
  1607  
  1608  // GoogleCloudDiscoveryengineV1EngineChatEngineConfig: Configurations for a
  1609  // Chat Engine.
  1610  type GoogleCloudDiscoveryengineV1EngineChatEngineConfig struct {
  1611  	// AgentCreationConfig: The configurationt generate the Dialogflow agent that
  1612  	// is associated to this Engine. Note that these configurations are one-time
  1613  	// consumed by and passed to Dialogflow service. It means they cannot be
  1614  	// retrieved using EngineService.GetEngine or EngineService.ListEngines API
  1615  	// after engine creation.
  1616  	AgentCreationConfig *GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
  1617  	// DialogflowAgentToLink: The resource name of an exist Dialogflow agent to
  1618  	// link to this Chat Engine. Customers can either provide
  1619  	// `agent_creation_config` to create agent or provide an agent name that links
  1620  	// the agent with the Chat engine. Format: `projects//locations//agents/`. Note
  1621  	// that the `dialogflow_agent_to_link` are one-time consumed by and passed to
  1622  	// Dialogflow service. It means they cannot be retrieved using
  1623  	// EngineService.GetEngine or EngineService.ListEngines API after engine
  1624  	// creation. Use ChatEngineMetadata.dialogflow_agent for actual agent
  1625  	// association after Engine is created.
  1626  	DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
  1627  	// ForceSendFields is a list of field names (e.g. "AgentCreationConfig") to
  1628  	// unconditionally include in API requests. By default, fields with empty or
  1629  	// default values are omitted from API requests. See
  1630  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1631  	// details.
  1632  	ForceSendFields []string `json:"-"`
  1633  	// NullFields is a list of field names (e.g. "AgentCreationConfig") to include
  1634  	// in API requests with the JSON null value. By default, fields with empty
  1635  	// values are omitted from API requests. See
  1636  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1637  	NullFields []string `json:"-"`
  1638  }
  1639  
  1640  func (s *GoogleCloudDiscoveryengineV1EngineChatEngineConfig) MarshalJSON() ([]byte, error) {
  1641  	type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineConfig
  1642  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1643  }
  1644  
  1645  // GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig:
  1646  // Configurations for generating a Dialogflow agent. Note that these
  1647  // configurations are one-time consumed by and passed to Dialogflow service. It
  1648  // means they cannot be retrieved using EngineService.GetEngine or
  1649  // EngineService.ListEngines API after engine creation.
  1650  type GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig struct {
  1651  	// Business: Name of the company, organization or other entity that the agent
  1652  	// represents. Used for knowledge connector LLM prompt and for knowledge
  1653  	// search.
  1654  	Business string `json:"business,omitempty"`
  1655  	// DefaultLanguageCode: Required. The default language of the agent as a
  1656  	// language tag. See Language Support
  1657  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
  1658  	// the currently supported language codes.
  1659  	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
  1660  	// Location: Agent location for Agent creation, supported values: global/us/eu.
  1661  	// If not provided, us Engine will create Agent using us-central-1 by default;
  1662  	// eu Engine will create Agent using eu-west-1 by default.
  1663  	Location string `json:"location,omitempty"`
  1664  	// TimeZone: Required. The time zone of the agent from the time zone database
  1665  	// (https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
  1666  	TimeZone string `json:"timeZone,omitempty"`
  1667  	// ForceSendFields is a list of field names (e.g. "Business") to
  1668  	// unconditionally include in API requests. By default, fields with empty or
  1669  	// default values are omitted from API requests. See
  1670  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1671  	// details.
  1672  	ForceSendFields []string `json:"-"`
  1673  	// NullFields is a list of field names (e.g. "Business") to include in API
  1674  	// requests with the JSON null value. By default, fields with empty values are
  1675  	// omitted from API requests. See
  1676  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1677  	NullFields []string `json:"-"`
  1678  }
  1679  
  1680  func (s *GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
  1681  	type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig
  1682  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1683  }
  1684  
  1685  // GoogleCloudDiscoveryengineV1EngineChatEngineMetadata: Additional information
  1686  // of a Chat Engine. Fields in this message are output only.
  1687  type GoogleCloudDiscoveryengineV1EngineChatEngineMetadata struct {
  1688  	// DialogflowAgent: The resource name of a Dialogflow agent, that this Chat
  1689  	// Engine refers to. Format: `projects//locations//agents/`.
  1690  	DialogflowAgent string `json:"dialogflowAgent,omitempty"`
  1691  	// ForceSendFields is a list of field names (e.g. "DialogflowAgent") to
  1692  	// unconditionally include in API requests. By default, fields with empty or
  1693  	// default values are omitted from API requests. See
  1694  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1695  	// details.
  1696  	ForceSendFields []string `json:"-"`
  1697  	// NullFields is a list of field names (e.g. "DialogflowAgent") to include in
  1698  	// API requests with the JSON null value. By default, fields with empty values
  1699  	// are omitted from API requests. See
  1700  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1701  	NullFields []string `json:"-"`
  1702  }
  1703  
  1704  func (s *GoogleCloudDiscoveryengineV1EngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
  1705  	type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineMetadata
  1706  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1707  }
  1708  
  1709  // GoogleCloudDiscoveryengineV1EngineCommonConfig: Common configurations for an
  1710  // Engine.
  1711  type GoogleCloudDiscoveryengineV1EngineCommonConfig struct {
  1712  	// CompanyName: Immutable. The name of the company, business or entity that is
  1713  	// associated with the engine. Setting this may help improve LLM related
  1714  	// features.
  1715  	CompanyName string `json:"companyName,omitempty"`
  1716  	// ForceSendFields is a list of field names (e.g. "CompanyName") to
  1717  	// unconditionally include in API requests. By default, fields with empty or
  1718  	// default values are omitted from API requests. See
  1719  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1720  	// details.
  1721  	ForceSendFields []string `json:"-"`
  1722  	// NullFields is a list of field names (e.g. "CompanyName") to include in API
  1723  	// requests with the JSON null value. By default, fields with empty values are
  1724  	// omitted from API requests. See
  1725  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1726  	NullFields []string `json:"-"`
  1727  }
  1728  
  1729  func (s *GoogleCloudDiscoveryengineV1EngineCommonConfig) MarshalJSON() ([]byte, error) {
  1730  	type NoMethod GoogleCloudDiscoveryengineV1EngineCommonConfig
  1731  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1732  }
  1733  
  1734  // GoogleCloudDiscoveryengineV1EngineSearchEngineConfig: Configurations for a
  1735  // Search Engine.
  1736  type GoogleCloudDiscoveryengineV1EngineSearchEngineConfig struct {
  1737  	// SearchAddOns: The add-on that this search engine enables.
  1738  	//
  1739  	// Possible values:
  1740  	//   "SEARCH_ADD_ON_UNSPECIFIED" - Default value when the enum is unspecified.
  1741  	// This is invalid to use.
  1742  	//   "SEARCH_ADD_ON_LLM" - Large language model add-on.
  1743  	SearchAddOns []string `json:"searchAddOns,omitempty"`
  1744  	// SearchTier: The search feature tier of this engine. Different tiers might
  1745  	// have different pricing. To learn more, check the pricing documentation.
  1746  	// Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.
  1747  	//
  1748  	// Possible values:
  1749  	//   "SEARCH_TIER_UNSPECIFIED" - Default value when the enum is unspecified.
  1750  	// This is invalid to use.
  1751  	//   "SEARCH_TIER_STANDARD" - Standard tier.
  1752  	//   "SEARCH_TIER_ENTERPRISE" - Enterprise tier.
  1753  	SearchTier string `json:"searchTier,omitempty"`
  1754  	// ForceSendFields is a list of field names (e.g. "SearchAddOns") to
  1755  	// unconditionally include in API requests. By default, fields with empty or
  1756  	// default values are omitted from API requests. See
  1757  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1758  	// details.
  1759  	ForceSendFields []string `json:"-"`
  1760  	// NullFields is a list of field names (e.g. "SearchAddOns") to include in API
  1761  	// requests with the JSON null value. By default, fields with empty values are
  1762  	// omitted from API requests. See
  1763  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1764  	NullFields []string `json:"-"`
  1765  }
  1766  
  1767  func (s *GoogleCloudDiscoveryengineV1EngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
  1768  	type NoMethod GoogleCloudDiscoveryengineV1EngineSearchEngineConfig
  1769  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1770  }
  1771  
  1772  // GoogleCloudDiscoveryengineV1ImportDocumentsMetadata: Metadata related to the
  1773  // progress of the ImportDocuments operation. This is returned by the
  1774  // google.longrunning.Operation.metadata field.
  1775  type GoogleCloudDiscoveryengineV1ImportDocumentsMetadata struct {
  1776  	// CreateTime: Operation create time.
  1777  	CreateTime string `json:"createTime,omitempty"`
  1778  	// FailureCount: Count of entries that encountered errors while processing.
  1779  	FailureCount int64 `json:"failureCount,omitempty,string"`
  1780  	// SuccessCount: Count of entries that were processed successfully.
  1781  	SuccessCount int64 `json:"successCount,omitempty,string"`
  1782  	// TotalCount: Total count of entries that were processed.
  1783  	TotalCount int64 `json:"totalCount,omitempty,string"`
  1784  	// UpdateTime: Operation last update time. If the operation is done, this is
  1785  	// also the finish time.
  1786  	UpdateTime string `json:"updateTime,omitempty"`
  1787  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1788  	// unconditionally include in API requests. By default, fields with empty or
  1789  	// default values are omitted from API requests. See
  1790  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1791  	// details.
  1792  	ForceSendFields []string `json:"-"`
  1793  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1794  	// requests with the JSON null value. By default, fields with empty values are
  1795  	// omitted from API requests. See
  1796  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1797  	NullFields []string `json:"-"`
  1798  }
  1799  
  1800  func (s *GoogleCloudDiscoveryengineV1ImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
  1801  	type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
  1802  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1803  }
  1804  
  1805  // GoogleCloudDiscoveryengineV1ImportDocumentsResponse: Response of the
  1806  // ImportDocumentsRequest. If the long running operation is done, then this
  1807  // message is returned by the google.longrunning.Operations.response field if
  1808  // the operation was successful.
  1809  type GoogleCloudDiscoveryengineV1ImportDocumentsResponse struct {
  1810  	// ErrorConfig: Echoes the destination for the complete errors in the request
  1811  	// if set.
  1812  	ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
  1813  	// ErrorSamples: A sample of errors encountered while processing the request.
  1814  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  1815  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  1816  	// unconditionally include in API requests. By default, fields with empty or
  1817  	// default values are omitted from API requests. See
  1818  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1819  	// details.
  1820  	ForceSendFields []string `json:"-"`
  1821  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  1822  	// requests with the JSON null value. By default, fields with empty values are
  1823  	// omitted from API requests. See
  1824  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1825  	NullFields []string `json:"-"`
  1826  }
  1827  
  1828  func (s *GoogleCloudDiscoveryengineV1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  1829  	type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsResponse
  1830  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1831  }
  1832  
  1833  // GoogleCloudDiscoveryengineV1ImportErrorConfig: Configuration of destination
  1834  // for Import related errors.
  1835  type GoogleCloudDiscoveryengineV1ImportErrorConfig struct {
  1836  	// GcsPrefix: Cloud Storage prefix for import errors. This must be an empty,
  1837  	// existing Cloud Storage directory. Import errors are written to sharded files
  1838  	// in this directory, one per line, as a JSON-encoded `google.rpc.Status`
  1839  	// message.
  1840  	GcsPrefix string `json:"gcsPrefix,omitempty"`
  1841  	// ForceSendFields is a list of field names (e.g. "GcsPrefix") to
  1842  	// unconditionally include in API requests. By default, fields with empty or
  1843  	// default values are omitted from API requests. See
  1844  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1845  	// details.
  1846  	ForceSendFields []string `json:"-"`
  1847  	// NullFields is a list of field names (e.g. "GcsPrefix") to include in API
  1848  	// requests with the JSON null value. By default, fields with empty values are
  1849  	// omitted from API requests. See
  1850  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1851  	NullFields []string `json:"-"`
  1852  }
  1853  
  1854  func (s *GoogleCloudDiscoveryengineV1ImportErrorConfig) MarshalJSON() ([]byte, error) {
  1855  	type NoMethod GoogleCloudDiscoveryengineV1ImportErrorConfig
  1856  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1857  }
  1858  
  1859  // GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata:
  1860  // Metadata related to the progress of the ImportSuggestionDenyListEntries
  1861  // operation. This is returned by the google.longrunning.Operation.metadata
  1862  // field.
  1863  type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata struct {
  1864  	// CreateTime: Operation create time.
  1865  	CreateTime string `json:"createTime,omitempty"`
  1866  	// UpdateTime: Operation last update time. If the operation is done, this is
  1867  	// also the finish time.
  1868  	UpdateTime string `json:"updateTime,omitempty"`
  1869  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1870  	// unconditionally include in API requests. By default, fields with empty or
  1871  	// default values are omitted from API requests. See
  1872  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1873  	// details.
  1874  	ForceSendFields []string `json:"-"`
  1875  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1876  	// requests with the JSON null value. By default, fields with empty values are
  1877  	// omitted from API requests. See
  1878  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1879  	NullFields []string `json:"-"`
  1880  }
  1881  
  1882  func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  1883  	type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata
  1884  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1885  }
  1886  
  1887  // GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse:
  1888  // Response message for CompletionService.ImportSuggestionDenyListEntries
  1889  // method.
  1890  type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse struct {
  1891  	// ErrorSamples: A sample of errors encountered while processing the request.
  1892  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  1893  	// FailedEntriesCount: Count of deny list entries that failed to be imported.
  1894  	FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
  1895  	// ImportedEntriesCount: Count of deny list entries successfully imported.
  1896  	ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
  1897  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  1898  	// unconditionally include in API requests. By default, fields with empty or
  1899  	// default values are omitted from API requests. See
  1900  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1901  	// details.
  1902  	ForceSendFields []string `json:"-"`
  1903  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  1904  	// requests with the JSON null value. By default, fields with empty values are
  1905  	// omitted from API requests. See
  1906  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1907  	NullFields []string `json:"-"`
  1908  }
  1909  
  1910  func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  1911  	type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse
  1912  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1913  }
  1914  
  1915  // GoogleCloudDiscoveryengineV1ImportUserEventsMetadata: Metadata related to
  1916  // the progress of the Import operation. This is returned by the
  1917  // google.longrunning.Operation.metadata field.
  1918  type GoogleCloudDiscoveryengineV1ImportUserEventsMetadata struct {
  1919  	// CreateTime: Operation create time.
  1920  	CreateTime string `json:"createTime,omitempty"`
  1921  	// FailureCount: Count of entries that encountered errors while processing.
  1922  	FailureCount int64 `json:"failureCount,omitempty,string"`
  1923  	// SuccessCount: Count of entries that were processed successfully.
  1924  	SuccessCount int64 `json:"successCount,omitempty,string"`
  1925  	// UpdateTime: Operation last update time. If the operation is done, this is
  1926  	// also the finish time.
  1927  	UpdateTime string `json:"updateTime,omitempty"`
  1928  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1929  	// unconditionally include in API requests. By default, fields with empty or
  1930  	// default values are omitted from API requests. See
  1931  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1932  	// details.
  1933  	ForceSendFields []string `json:"-"`
  1934  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  1935  	// requests with the JSON null value. By default, fields with empty values are
  1936  	// omitted from API requests. See
  1937  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1938  	NullFields []string `json:"-"`
  1939  }
  1940  
  1941  func (s *GoogleCloudDiscoveryengineV1ImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
  1942  	type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsMetadata
  1943  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1944  }
  1945  
  1946  // GoogleCloudDiscoveryengineV1ImportUserEventsResponse: Response of the
  1947  // ImportUserEventsRequest. If the long running operation was successful, then
  1948  // this message is returned by the google.longrunning.Operations.response field
  1949  // if the operation was successful.
  1950  type GoogleCloudDiscoveryengineV1ImportUserEventsResponse struct {
  1951  	// ErrorConfig: Echoes the destination for the complete errors if this field
  1952  	// was set in the request.
  1953  	ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
  1954  	// ErrorSamples: A sample of errors encountered while processing the request.
  1955  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  1956  	// JoinedEventsCount: Count of user events imported with complete existing
  1957  	// Documents.
  1958  	JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
  1959  	// UnjoinedEventsCount: Count of user events imported, but with Document
  1960  	// information not found in the existing Branch.
  1961  	UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
  1962  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  1963  	// unconditionally include in API requests. By default, fields with empty or
  1964  	// default values are omitted from API requests. See
  1965  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1966  	// details.
  1967  	ForceSendFields []string `json:"-"`
  1968  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  1969  	// requests with the JSON null value. By default, fields with empty values are
  1970  	// omitted from API requests. See
  1971  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1972  	NullFields []string `json:"-"`
  1973  }
  1974  
  1975  func (s *GoogleCloudDiscoveryengineV1ImportUserEventsResponse) MarshalJSON() ([]byte, error) {
  1976  	type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsResponse
  1977  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1978  }
  1979  
  1980  // GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata: Metadata related to the
  1981  // progress of the PurgeDocuments operation. This will be returned by the
  1982  // google.longrunning.Operation.metadata field.
  1983  type GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata struct {
  1984  	// CreateTime: Operation create time.
  1985  	CreateTime string `json:"createTime,omitempty"`
  1986  	// FailureCount: Count of entries that encountered errors while processing.
  1987  	FailureCount int64 `json:"failureCount,omitempty,string"`
  1988  	// IgnoredCount: Count of entries that were ignored as entries were not found.
  1989  	IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
  1990  	// SuccessCount: Count of entries that were deleted successfully.
  1991  	SuccessCount int64 `json:"successCount,omitempty,string"`
  1992  	// UpdateTime: Operation last update time. If the operation is done, this is
  1993  	// also the finish time.
  1994  	UpdateTime string `json:"updateTime,omitempty"`
  1995  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  1996  	// unconditionally include in API requests. By default, fields with empty or
  1997  	// default values are omitted from API requests. See
  1998  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1999  	// details.
  2000  	ForceSendFields []string `json:"-"`
  2001  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2002  	// requests with the JSON null value. By default, fields with empty values are
  2003  	// omitted from API requests. See
  2004  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2005  	NullFields []string `json:"-"`
  2006  }
  2007  
  2008  func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
  2009  	type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
  2010  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2011  }
  2012  
  2013  // GoogleCloudDiscoveryengineV1PurgeDocumentsResponse: Response message for
  2014  // DocumentService.PurgeDocuments method. If the long running operation is
  2015  // successfully done, then this message is returned by the
  2016  // google.longrunning.Operations.response field.
  2017  type GoogleCloudDiscoveryengineV1PurgeDocumentsResponse struct {
  2018  	// PurgeCount: The total count of documents purged as a result of the
  2019  	// operation.
  2020  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  2021  	// PurgeSample: A sample of document names that will be deleted. Only populated
  2022  	// if `force` is set to false. A max of 100 names will be returned and the
  2023  	// names are chosen at random.
  2024  	PurgeSample []string `json:"purgeSample,omitempty"`
  2025  	// ForceSendFields is a list of field names (e.g. "PurgeCount") to
  2026  	// unconditionally include in API requests. By default, fields with empty or
  2027  	// default values are omitted from API requests. See
  2028  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2029  	// details.
  2030  	ForceSendFields []string `json:"-"`
  2031  	// NullFields is a list of field names (e.g. "PurgeCount") to include in API
  2032  	// requests with the JSON null value. By default, fields with empty values are
  2033  	// omitted from API requests. See
  2034  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2035  	NullFields []string `json:"-"`
  2036  }
  2037  
  2038  func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
  2039  	type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsResponse
  2040  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2041  }
  2042  
  2043  // GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata: Metadata
  2044  // related to the progress of the PurgeSuggestionDenyListEntries operation.
  2045  // This is returned by the google.longrunning.Operation.metadata field.
  2046  type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata struct {
  2047  	// CreateTime: Operation create time.
  2048  	CreateTime string `json:"createTime,omitempty"`
  2049  	// UpdateTime: Operation last update time. If the operation is done, this is
  2050  	// also the finish time.
  2051  	UpdateTime string `json:"updateTime,omitempty"`
  2052  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2053  	// unconditionally include in API requests. By default, fields with empty or
  2054  	// default values are omitted from API requests. See
  2055  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2056  	// details.
  2057  	ForceSendFields []string `json:"-"`
  2058  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2059  	// requests with the JSON null value. By default, fields with empty values are
  2060  	// omitted from API requests. See
  2061  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2062  	NullFields []string `json:"-"`
  2063  }
  2064  
  2065  func (s *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  2066  	type NoMethod GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata
  2067  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2068  }
  2069  
  2070  // GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse: Response
  2071  // message for CompletionService.PurgeSuggestionDenyListEntries method.
  2072  type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse struct {
  2073  	// ErrorSamples: A sample of errors encountered while processing the request.
  2074  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  2075  	// PurgeCount: Number of suggestion deny list entries purged.
  2076  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  2077  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  2078  	// unconditionally include in API requests. By default, fields with empty or
  2079  	// default values are omitted from API requests. See
  2080  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2081  	// details.
  2082  	ForceSendFields []string `json:"-"`
  2083  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  2084  	// requests with the JSON null value. By default, fields with empty values are
  2085  	// omitted from API requests. See
  2086  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2087  	NullFields []string `json:"-"`
  2088  }
  2089  
  2090  func (s *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  2091  	type NoMethod GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse
  2092  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2093  }
  2094  
  2095  // GoogleCloudDiscoveryengineV1Schema: Defines the structure and layout of a
  2096  // type of document data.
  2097  type GoogleCloudDiscoveryengineV1Schema struct {
  2098  	// JsonSchema: The JSON representation of the schema.
  2099  	JsonSchema string `json:"jsonSchema,omitempty"`
  2100  	// Name: Immutable. The full resource name of the schema, in the format of
  2101  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  2102  	// {data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string
  2103  	// with a length limit of 1024 characters.
  2104  	Name string `json:"name,omitempty"`
  2105  	// StructSchema: The structured representation of the schema.
  2106  	StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
  2107  	// ForceSendFields is a list of field names (e.g. "JsonSchema") to
  2108  	// unconditionally include in API requests. By default, fields with empty or
  2109  	// default values are omitted from API requests. See
  2110  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2111  	// details.
  2112  	ForceSendFields []string `json:"-"`
  2113  	// NullFields is a list of field names (e.g. "JsonSchema") to include in API
  2114  	// requests with the JSON null value. By default, fields with empty values are
  2115  	// omitted from API requests. See
  2116  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2117  	NullFields []string `json:"-"`
  2118  }
  2119  
  2120  func (s *GoogleCloudDiscoveryengineV1Schema) MarshalJSON() ([]byte, error) {
  2121  	type NoMethod GoogleCloudDiscoveryengineV1Schema
  2122  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2123  }
  2124  
  2125  // GoogleCloudDiscoveryengineV1SiteVerificationInfo: Verification information
  2126  // for target sites in advanced site search.
  2127  type GoogleCloudDiscoveryengineV1SiteVerificationInfo struct {
  2128  	// SiteVerificationState: Site verification state indicating the ownership and
  2129  	// validity.
  2130  	//
  2131  	// Possible values:
  2132  	//   "SITE_VERIFICATION_STATE_UNSPECIFIED" - Defaults to VERIFIED.
  2133  	//   "VERIFIED" - Site ownership verified.
  2134  	//   "UNVERIFIED" - Site ownership pending verification or verification failed.
  2135  	//   "EXEMPTED" - Site exempt from verification, e.g., a public website that
  2136  	// opens to all.
  2137  	SiteVerificationState string `json:"siteVerificationState,omitempty"`
  2138  	// VerifyTime: Latest site verification time.
  2139  	VerifyTime string `json:"verifyTime,omitempty"`
  2140  	// ForceSendFields is a list of field names (e.g. "SiteVerificationState") to
  2141  	// unconditionally include in API requests. By default, fields with empty or
  2142  	// default values are omitted from API requests. See
  2143  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2144  	// details.
  2145  	ForceSendFields []string `json:"-"`
  2146  	// NullFields is a list of field names (e.g. "SiteVerificationState") to
  2147  	// include in API requests with the JSON null value. By default, fields with
  2148  	// empty values are omitted from API requests. See
  2149  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2150  	NullFields []string `json:"-"`
  2151  }
  2152  
  2153  func (s *GoogleCloudDiscoveryengineV1SiteVerificationInfo) MarshalJSON() ([]byte, error) {
  2154  	type NoMethod GoogleCloudDiscoveryengineV1SiteVerificationInfo
  2155  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2156  }
  2157  
  2158  // GoogleCloudDiscoveryengineV1TargetSite: A target site for the
  2159  // SiteSearchEngine.
  2160  type GoogleCloudDiscoveryengineV1TargetSite struct {
  2161  	// ExactMatch: Input only. If set to false, a uri_pattern is generated to
  2162  	// include all pages whose address contains the provided_uri_pattern. If set to
  2163  	// true, an uri_pattern is generated to try to be an exact match of the
  2164  	// provided_uri_pattern or just the specific page if the provided_uri_pattern
  2165  	// is a specific one. provided_uri_pattern is always normalized to generate the
  2166  	// URI pattern to be used by the search engine.
  2167  	ExactMatch bool `json:"exactMatch,omitempty"`
  2168  	// FailureReason: Output only. Failure reason.
  2169  	FailureReason *GoogleCloudDiscoveryengineV1TargetSiteFailureReason `json:"failureReason,omitempty"`
  2170  	// GeneratedUriPattern: Output only. This is system-generated based on the
  2171  	// provided_uri_pattern.
  2172  	GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
  2173  	// IndexingStatus: Output only. Indexing status.
  2174  	//
  2175  	// Possible values:
  2176  	//   "INDEXING_STATUS_UNSPECIFIED" - Defaults to SUCCEEDED.
  2177  	//   "PENDING" - The target site is in the update queue and will be picked up
  2178  	// by indexing pipeline.
  2179  	//   "FAILED" - The target site fails to be indexed.
  2180  	//   "SUCCEEDED" - The target site has been indexed.
  2181  	//   "DELETING" - The previously indexed target site has been marked to be
  2182  	// deleted. This is a transitioning state which will resulted in either: 1.
  2183  	// target site deleted if unindexing is successful; 2. state reverts to
  2184  	// SUCCEEDED if the unindexing fails.
  2185  	IndexingStatus string `json:"indexingStatus,omitempty"`
  2186  	// Name: Output only. The fully qualified resource name of the target site.
  2187  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  2188  	// {data_store}/siteSearchEngine/targetSites/{target_site}` The
  2189  	// `target_site_id` is system-generated.
  2190  	Name string `json:"name,omitempty"`
  2191  	// ProvidedUriPattern: Required. Input only. The user provided URI pattern from
  2192  	// which the `generated_uri_pattern` is generated.
  2193  	ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
  2194  	// RootDomainUri: Output only. Root domain of the provided_uri_pattern.
  2195  	RootDomainUri string `json:"rootDomainUri,omitempty"`
  2196  	// SiteVerificationInfo: Output only. Site ownership and validity verification
  2197  	// status.
  2198  	SiteVerificationInfo *GoogleCloudDiscoveryengineV1SiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
  2199  	// Type: The type of the target site, e.g., whether the site is to be included
  2200  	// or excluded.
  2201  	//
  2202  	// Possible values:
  2203  	//   "TYPE_UNSPECIFIED" - This value is unused. In this case, server behavior
  2204  	// defaults to Type.INCLUDE.
  2205  	//   "INCLUDE" - Include the target site.
  2206  	//   "EXCLUDE" - Exclude the target site.
  2207  	Type string `json:"type,omitempty"`
  2208  	// UpdateTime: Output only. The target site's last updated time.
  2209  	UpdateTime string `json:"updateTime,omitempty"`
  2210  	// ForceSendFields is a list of field names (e.g. "ExactMatch") to
  2211  	// unconditionally include in API requests. By default, fields with empty or
  2212  	// default values are omitted from API requests. See
  2213  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2214  	// details.
  2215  	ForceSendFields []string `json:"-"`
  2216  	// NullFields is a list of field names (e.g. "ExactMatch") to include in API
  2217  	// requests with the JSON null value. By default, fields with empty values are
  2218  	// omitted from API requests. See
  2219  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2220  	NullFields []string `json:"-"`
  2221  }
  2222  
  2223  func (s *GoogleCloudDiscoveryengineV1TargetSite) MarshalJSON() ([]byte, error) {
  2224  	type NoMethod GoogleCloudDiscoveryengineV1TargetSite
  2225  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2226  }
  2227  
  2228  // GoogleCloudDiscoveryengineV1TargetSiteFailureReason: Site search indexing
  2229  // failure reasons.
  2230  type GoogleCloudDiscoveryengineV1TargetSiteFailureReason struct {
  2231  	// QuotaFailure: Failed due to insufficient quota.
  2232  	QuotaFailure *GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
  2233  	// ForceSendFields is a list of field names (e.g. "QuotaFailure") to
  2234  	// unconditionally include in API requests. By default, fields with empty or
  2235  	// default values are omitted from API requests. See
  2236  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2237  	// details.
  2238  	ForceSendFields []string `json:"-"`
  2239  	// NullFields is a list of field names (e.g. "QuotaFailure") to include in API
  2240  	// requests with the JSON null value. By default, fields with empty values are
  2241  	// omitted from API requests. See
  2242  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2243  	NullFields []string `json:"-"`
  2244  }
  2245  
  2246  func (s *GoogleCloudDiscoveryengineV1TargetSiteFailureReason) MarshalJSON() ([]byte, error) {
  2247  	type NoMethod GoogleCloudDiscoveryengineV1TargetSiteFailureReason
  2248  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2249  }
  2250  
  2251  // GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure: Failed due
  2252  // to insufficient quota.
  2253  type GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure struct {
  2254  	// TotalRequiredQuota: This number is an estimation on how much total quota
  2255  	// this project needs to successfully complete indexing.
  2256  	TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
  2257  	// ForceSendFields is a list of field names (e.g. "TotalRequiredQuota") to
  2258  	// unconditionally include in API requests. By default, fields with empty or
  2259  	// default values are omitted from API requests. See
  2260  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2261  	// details.
  2262  	ForceSendFields []string `json:"-"`
  2263  	// NullFields is a list of field names (e.g. "TotalRequiredQuota") to include
  2264  	// in API requests with the JSON null value. By default, fields with empty
  2265  	// values are omitted from API requests. See
  2266  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2267  	NullFields []string `json:"-"`
  2268  }
  2269  
  2270  func (s *GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
  2271  	type NoMethod GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure
  2272  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2273  }
  2274  
  2275  // GoogleCloudDiscoveryengineV1UpdateSchemaMetadata: Metadata for UpdateSchema
  2276  // LRO.
  2277  type GoogleCloudDiscoveryengineV1UpdateSchemaMetadata struct {
  2278  	// CreateTime: Operation create time.
  2279  	CreateTime string `json:"createTime,omitempty"`
  2280  	// UpdateTime: Operation last update time. If the operation is done, this is
  2281  	// also the finish time.
  2282  	UpdateTime string `json:"updateTime,omitempty"`
  2283  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2284  	// unconditionally include in API requests. By default, fields with empty or
  2285  	// default values are omitted from API requests. See
  2286  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2287  	// details.
  2288  	ForceSendFields []string `json:"-"`
  2289  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2290  	// requests with the JSON null value. By default, fields with empty values are
  2291  	// omitted from API requests. See
  2292  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2293  	NullFields []string `json:"-"`
  2294  }
  2295  
  2296  func (s *GoogleCloudDiscoveryengineV1UpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
  2297  	type NoMethod GoogleCloudDiscoveryengineV1UpdateSchemaMetadata
  2298  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2299  }
  2300  
  2301  // GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata: Metadata related to
  2302  // the progress of the SiteSearchEngineService.UpdateTargetSite operation. This
  2303  // will be returned by the google.longrunning.Operation.metadata field.
  2304  type GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata struct {
  2305  	// CreateTime: Operation create time.
  2306  	CreateTime string `json:"createTime,omitempty"`
  2307  	// UpdateTime: Operation last update time. If the operation is done, this is
  2308  	// also the finish time.
  2309  	UpdateTime string `json:"updateTime,omitempty"`
  2310  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2311  	// unconditionally include in API requests. By default, fields with empty or
  2312  	// default values are omitted from API requests. See
  2313  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2314  	// details.
  2315  	ForceSendFields []string `json:"-"`
  2316  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2317  	// requests with the JSON null value. By default, fields with empty values are
  2318  	// omitted from API requests. See
  2319  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2320  	NullFields []string `json:"-"`
  2321  }
  2322  
  2323  func (s *GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  2324  	type NoMethod GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata
  2325  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2326  }
  2327  
  2328  // GoogleCloudDiscoveryengineV1alphaAclConfig: Access Control Configuration.
  2329  type GoogleCloudDiscoveryengineV1alphaAclConfig struct {
  2330  	// IdpConfig: Identity provider config.
  2331  	IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"`
  2332  	// Name: Immutable. The full resource name of the acl configuration. Format:
  2333  	// `projects/{project}/locations/{location}/aclConfig`. This field must be a
  2334  	// UTF-8 encoded string with a length limit of 1024 characters.
  2335  	Name string `json:"name,omitempty"`
  2336  	// ForceSendFields is a list of field names (e.g. "IdpConfig") to
  2337  	// unconditionally include in API requests. By default, fields with empty or
  2338  	// default values are omitted from API requests. See
  2339  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2340  	// details.
  2341  	ForceSendFields []string `json:"-"`
  2342  	// NullFields is a list of field names (e.g. "IdpConfig") to include in API
  2343  	// requests with the JSON null value. By default, fields with empty values are
  2344  	// omitted from API requests. See
  2345  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2346  	NullFields []string `json:"-"`
  2347  }
  2348  
  2349  func (s *GoogleCloudDiscoveryengineV1alphaAclConfig) MarshalJSON() ([]byte, error) {
  2350  	type NoMethod GoogleCloudDiscoveryengineV1alphaAclConfig
  2351  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2352  }
  2353  
  2354  // GoogleCloudDiscoveryengineV1alphaAnswer: Defines an answer.
  2355  type GoogleCloudDiscoveryengineV1alphaAnswer struct {
  2356  	// AnswerSkippedReasons: Additional answer-skipped reasons. This provides the
  2357  	// reason for ignored cases. If nothing is skipped, this field is not set.
  2358  	//
  2359  	// Possible values:
  2360  	//   "ANSWER_SKIPPED_REASON_UNSPECIFIED" - Default value. The answer skipped
  2361  	// reason is not specified.
  2362  	//   "ADVERSARIAL_QUERY_IGNORED" - The adversarial query ignored case.
  2363  	//   "NON_ANSWER_SEEKING_QUERY_IGNORED" - The non-answer seeking query ignored
  2364  	// case.
  2365  	//   "OUT_OF_DOMAIN_QUERY_IGNORED" - The out-of-domain query ignored case.
  2366  	// Google skips the answer if there are no high-relevance search results.
  2367  	//   "POTENTIAL_POLICY_VIOLATION" - The potential policy violation case. Google
  2368  	// skips the answer if there is a potential policy violation detected. This
  2369  	// includes content that may be violent or toxic.
  2370  	AnswerSkippedReasons []string `json:"answerSkippedReasons,omitempty"`
  2371  	// AnswerText: The textual answer.
  2372  	AnswerText string `json:"answerText,omitempty"`
  2373  	// Citations: Citations.
  2374  	Citations []*GoogleCloudDiscoveryengineV1alphaAnswerCitation `json:"citations,omitempty"`
  2375  	// CompleteTime: Output only. Answer completed timestamp.
  2376  	CompleteTime string `json:"completeTime,omitempty"`
  2377  	// CreateTime: Output only. Answer creation timestamp.
  2378  	CreateTime string `json:"createTime,omitempty"`
  2379  	// Name: Immutable. Fully qualified name
  2380  	// `projects/{project}/locations/global/collections/{collection}/engines/{engine
  2381  	// }/sessions/*/answers/*`
  2382  	Name string `json:"name,omitempty"`
  2383  	// QueryUnderstandingInfo: Query understanding information.
  2384  	QueryUnderstandingInfo *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo `json:"queryUnderstandingInfo,omitempty"`
  2385  	// References: References.
  2386  	References []*GoogleCloudDiscoveryengineV1alphaAnswerReference `json:"references,omitempty"`
  2387  	// RelatedQuestions: Suggested related questions.
  2388  	RelatedQuestions []string `json:"relatedQuestions,omitempty"`
  2389  	// State: The state of the answer generation.
  2390  	//
  2391  	// Possible values:
  2392  	//   "STATE_UNSPECIFIED" - Unknown.
  2393  	//   "IN_PROGRESS" - Answer generation is currently in progress.
  2394  	//   "FAILED" - Answer generation currently failed.
  2395  	//   "SUCCEEDED" - Answer generation has succeeded.
  2396  	State string `json:"state,omitempty"`
  2397  	// Steps: Answer generation steps.
  2398  	Steps []*GoogleCloudDiscoveryengineV1alphaAnswerStep `json:"steps,omitempty"`
  2399  	// ForceSendFields is a list of field names (e.g. "AnswerSkippedReasons") to
  2400  	// unconditionally include in API requests. By default, fields with empty or
  2401  	// default values are omitted from API requests. See
  2402  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2403  	// details.
  2404  	ForceSendFields []string `json:"-"`
  2405  	// NullFields is a list of field names (e.g. "AnswerSkippedReasons") to include
  2406  	// in API requests with the JSON null value. By default, fields with empty
  2407  	// values are omitted from API requests. See
  2408  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2409  	NullFields []string `json:"-"`
  2410  }
  2411  
  2412  func (s *GoogleCloudDiscoveryengineV1alphaAnswer) MarshalJSON() ([]byte, error) {
  2413  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswer
  2414  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2415  }
  2416  
  2417  // GoogleCloudDiscoveryengineV1alphaAnswerCitation: Citation info for a
  2418  // segment.
  2419  type GoogleCloudDiscoveryengineV1alphaAnswerCitation struct {
  2420  	// EndIndex: End of the attributed segment, exclusive.
  2421  	EndIndex int64 `json:"endIndex,omitempty,string"`
  2422  	// Sources: Citation sources for the attributed segment.
  2423  	Sources []*GoogleCloudDiscoveryengineV1alphaAnswerCitationSource `json:"sources,omitempty"`
  2424  	// StartIndex: Index indicates the start of the segment, measured in bytes
  2425  	// (UTF-8 unicode).
  2426  	StartIndex int64 `json:"startIndex,omitempty,string"`
  2427  	// ForceSendFields is a list of field names (e.g. "EndIndex") to
  2428  	// unconditionally include in API requests. By default, fields with empty or
  2429  	// default values are omitted from API requests. See
  2430  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2431  	// details.
  2432  	ForceSendFields []string `json:"-"`
  2433  	// NullFields is a list of field names (e.g. "EndIndex") to include in API
  2434  	// requests with the JSON null value. By default, fields with empty values are
  2435  	// omitted from API requests. See
  2436  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2437  	NullFields []string `json:"-"`
  2438  }
  2439  
  2440  func (s *GoogleCloudDiscoveryengineV1alphaAnswerCitation) MarshalJSON() ([]byte, error) {
  2441  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerCitation
  2442  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2443  }
  2444  
  2445  // GoogleCloudDiscoveryengineV1alphaAnswerCitationSource: Citation source.
  2446  type GoogleCloudDiscoveryengineV1alphaAnswerCitationSource struct {
  2447  	// ReferenceId: ID of the citation source.
  2448  	ReferenceId string `json:"referenceId,omitempty"`
  2449  	// ForceSendFields is a list of field names (e.g. "ReferenceId") to
  2450  	// unconditionally include in API requests. By default, fields with empty or
  2451  	// default values are omitted from API requests. See
  2452  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2453  	// details.
  2454  	ForceSendFields []string `json:"-"`
  2455  	// NullFields is a list of field names (e.g. "ReferenceId") to include in API
  2456  	// requests with the JSON null value. By default, fields with empty values are
  2457  	// omitted from API requests. See
  2458  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2459  	NullFields []string `json:"-"`
  2460  }
  2461  
  2462  func (s *GoogleCloudDiscoveryengineV1alphaAnswerCitationSource) MarshalJSON() ([]byte, error) {
  2463  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerCitationSource
  2464  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2465  }
  2466  
  2467  // GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo: Query
  2468  // understanding information.
  2469  type GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo struct {
  2470  	// QueryClassificationInfo: Query classification information.
  2471  	QueryClassificationInfo []*GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo `json:"queryClassificationInfo,omitempty"`
  2472  	// ForceSendFields is a list of field names (e.g. "QueryClassificationInfo") to
  2473  	// unconditionally include in API requests. By default, fields with empty or
  2474  	// default values are omitted from API requests. See
  2475  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2476  	// details.
  2477  	ForceSendFields []string `json:"-"`
  2478  	// NullFields is a list of field names (e.g. "QueryClassificationInfo") to
  2479  	// include in API requests with the JSON null value. By default, fields with
  2480  	// empty values are omitted from API requests. See
  2481  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2482  	NullFields []string `json:"-"`
  2483  }
  2484  
  2485  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo) MarshalJSON() ([]byte, error) {
  2486  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo
  2487  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2488  }
  2489  
  2490  // GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificat
  2491  // ionInfo: Query classification information.
  2492  type GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo struct {
  2493  	// Positive: Classification output.
  2494  	Positive bool `json:"positive,omitempty"`
  2495  	// Type: Query classification type.
  2496  	//
  2497  	// Possible values:
  2498  	//   "TYPE_UNSPECIFIED" - Unspecified query classification type.
  2499  	//   "ADVERSARIAL_QUERY" - Adversarial query classification type.
  2500  	//   "NON_ANSWER_SEEKING_QUERY" - Non-answer-seeking query classification type.
  2501  	Type string `json:"type,omitempty"`
  2502  	// ForceSendFields is a list of field names (e.g. "Positive") to
  2503  	// unconditionally include in API requests. By default, fields with empty or
  2504  	// default values are omitted from API requests. See
  2505  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2506  	// details.
  2507  	ForceSendFields []string `json:"-"`
  2508  	// NullFields is a list of field names (e.g. "Positive") to include in API
  2509  	// requests with the JSON null value. By default, fields with empty values are
  2510  	// omitted from API requests. See
  2511  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2512  	NullFields []string `json:"-"`
  2513  }
  2514  
  2515  func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo) MarshalJSON() ([]byte, error) {
  2516  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo
  2517  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2518  }
  2519  
  2520  // GoogleCloudDiscoveryengineV1alphaAnswerReference: Reference.
  2521  type GoogleCloudDiscoveryengineV1alphaAnswerReference struct {
  2522  	// ChunkInfo: Chunk information.
  2523  	ChunkInfo *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo `json:"chunkInfo,omitempty"`
  2524  	// UnstructuredDocumentInfo: Unstructured document information.
  2525  	UnstructuredDocumentInfo *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo `json:"unstructuredDocumentInfo,omitempty"`
  2526  	// ForceSendFields is a list of field names (e.g. "ChunkInfo") to
  2527  	// unconditionally include in API requests. By default, fields with empty or
  2528  	// default values are omitted from API requests. See
  2529  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2530  	// details.
  2531  	ForceSendFields []string `json:"-"`
  2532  	// NullFields is a list of field names (e.g. "ChunkInfo") to include in API
  2533  	// requests with the JSON null value. By default, fields with empty values are
  2534  	// omitted from API requests. See
  2535  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2536  	NullFields []string `json:"-"`
  2537  }
  2538  
  2539  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReference) MarshalJSON() ([]byte, error) {
  2540  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReference
  2541  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2542  }
  2543  
  2544  // GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo: Chunk
  2545  // information.
  2546  type GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo struct {
  2547  	// Chunk: Chunk resource name.
  2548  	Chunk string `json:"chunk,omitempty"`
  2549  	// Content: Chunk textual content.
  2550  	Content string `json:"content,omitempty"`
  2551  	// DocumentMetadata: Document metadata.
  2552  	DocumentMetadata *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata `json:"documentMetadata,omitempty"`
  2553  	// RelevanceScore: Relevance score.
  2554  	RelevanceScore float64 `json:"relevanceScore,omitempty"`
  2555  	// ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally
  2556  	// include in API requests. By default, fields with empty or default values are
  2557  	// omitted from API requests. See
  2558  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2559  	// details.
  2560  	ForceSendFields []string `json:"-"`
  2561  	// NullFields is a list of field names (e.g. "Chunk") to include in API
  2562  	// requests with the JSON null value. By default, fields with empty values are
  2563  	// omitted from API requests. See
  2564  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2565  	NullFields []string `json:"-"`
  2566  }
  2567  
  2568  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo) MarshalJSON() ([]byte, error) {
  2569  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
  2570  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2571  }
  2572  
  2573  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo) UnmarshalJSON(data []byte) error {
  2574  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
  2575  	var s1 struct {
  2576  		RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
  2577  		*NoMethod
  2578  	}
  2579  	s1.NoMethod = (*NoMethod)(s)
  2580  	if err := json.Unmarshal(data, &s1); err != nil {
  2581  		return err
  2582  	}
  2583  	s.RelevanceScore = float64(s1.RelevanceScore)
  2584  	return nil
  2585  }
  2586  
  2587  // GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata:
  2588  // Document metadata.
  2589  type GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata struct {
  2590  	// Document: Document resource name.
  2591  	Document string `json:"document,omitempty"`
  2592  	// PageIdentifier: Page identifier.
  2593  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  2594  	// Title: Title.
  2595  	Title string `json:"title,omitempty"`
  2596  	// Uri: URI for the document.
  2597  	Uri string `json:"uri,omitempty"`
  2598  	// ForceSendFields is a list of field names (e.g. "Document") to
  2599  	// unconditionally include in API requests. By default, fields with empty or
  2600  	// default values are omitted from API requests. See
  2601  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2602  	// details.
  2603  	ForceSendFields []string `json:"-"`
  2604  	// NullFields is a list of field names (e.g. "Document") to include in API
  2605  	// requests with the JSON null value. By default, fields with empty values are
  2606  	// omitted from API requests. See
  2607  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2608  	NullFields []string `json:"-"`
  2609  }
  2610  
  2611  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata) MarshalJSON() ([]byte, error) {
  2612  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata
  2613  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2614  }
  2615  
  2616  // GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo:
  2617  // Unstructured document information.
  2618  type GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo struct {
  2619  	// ChunkContents: List of cited chunk contents derived from document content.
  2620  	ChunkContents []*GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent `json:"chunkContents,omitempty"`
  2621  	// Document: Document resource name.
  2622  	Document string `json:"document,omitempty"`
  2623  	// Title: Title.
  2624  	Title string `json:"title,omitempty"`
  2625  	// Uri: URI for the document.
  2626  	Uri string `json:"uri,omitempty"`
  2627  	// ForceSendFields is a list of field names (e.g. "ChunkContents") 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. "ChunkContents") to include in API
  2634  	// requests with the JSON null value. By default, fields with empty values are
  2635  	// 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 *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo) MarshalJSON() ([]byte, error) {
  2641  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo
  2642  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2643  }
  2644  
  2645  // GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunk
  2646  // Content: Chunk content.
  2647  type GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent struct {
  2648  	// Content: Chunk textual content.
  2649  	Content string `json:"content,omitempty"`
  2650  	// PageIdentifier: Page identifier.
  2651  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  2652  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  2653  	// include in API requests. By default, fields with empty or default values are
  2654  	// omitted from API requests. See
  2655  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2656  	// details.
  2657  	ForceSendFields []string `json:"-"`
  2658  	// NullFields is a list of field names (e.g. "Content") to include in API
  2659  	// requests with the JSON null value. By default, fields with empty values are
  2660  	// omitted from API requests. See
  2661  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2662  	NullFields []string `json:"-"`
  2663  }
  2664  
  2665  func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent) MarshalJSON() ([]byte, error) {
  2666  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent
  2667  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2668  }
  2669  
  2670  // GoogleCloudDiscoveryengineV1alphaAnswerStep: Step information.
  2671  type GoogleCloudDiscoveryengineV1alphaAnswerStep struct {
  2672  	// Actions: Actions.
  2673  	Actions []*GoogleCloudDiscoveryengineV1alphaAnswerStepAction `json:"actions,omitempty"`
  2674  	// Description: The description of the step.
  2675  	Description string `json:"description,omitempty"`
  2676  	// State: The state of the step.
  2677  	//
  2678  	// Possible values:
  2679  	//   "STATE_UNSPECIFIED" - Unknown.
  2680  	//   "IN_PROGRESS" - Step is currently in progress.
  2681  	//   "FAILED" - Step currently failed.
  2682  	//   "SUCCEEDED" - Step has succeeded.
  2683  	State string `json:"state,omitempty"`
  2684  	// Thought: The thought of the step.
  2685  	Thought string `json:"thought,omitempty"`
  2686  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  2687  	// include in API requests. By default, fields with empty or default values are
  2688  	// omitted from API requests. See
  2689  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2690  	// details.
  2691  	ForceSendFields []string `json:"-"`
  2692  	// NullFields is a list of field names (e.g. "Actions") to include in API
  2693  	// requests with the JSON null value. By default, fields with empty values are
  2694  	// omitted from API requests. See
  2695  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2696  	NullFields []string `json:"-"`
  2697  }
  2698  
  2699  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStep) MarshalJSON() ([]byte, error) {
  2700  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStep
  2701  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2702  }
  2703  
  2704  // GoogleCloudDiscoveryengineV1alphaAnswerStepAction: Action.
  2705  type GoogleCloudDiscoveryengineV1alphaAnswerStepAction struct {
  2706  	// Observation: Observation.
  2707  	Observation *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation `json:"observation,omitempty"`
  2708  	// SearchAction: Search action.
  2709  	SearchAction *GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction `json:"searchAction,omitempty"`
  2710  	// ForceSendFields is a list of field names (e.g. "Observation") to
  2711  	// unconditionally include in API requests. By default, fields with empty or
  2712  	// default values are omitted from API requests. See
  2713  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2714  	// details.
  2715  	ForceSendFields []string `json:"-"`
  2716  	// NullFields is a list of field names (e.g. "Observation") to include in API
  2717  	// requests with the JSON null value. By default, fields with empty values are
  2718  	// omitted from API requests. See
  2719  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2720  	NullFields []string `json:"-"`
  2721  }
  2722  
  2723  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepAction) MarshalJSON() ([]byte, error) {
  2724  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepAction
  2725  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2726  }
  2727  
  2728  // GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation: Observation.
  2729  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation struct {
  2730  	// SearchResults: Search results observed by the search action, it can be
  2731  	// snippets info or chunk info, depending on the citation type set by the user.
  2732  	SearchResults []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult `json:"searchResults,omitempty"`
  2733  	// ForceSendFields is a list of field names (e.g. "SearchResults") to
  2734  	// unconditionally include in API requests. By default, fields with empty or
  2735  	// default values are omitted from API requests. See
  2736  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2737  	// details.
  2738  	ForceSendFields []string `json:"-"`
  2739  	// NullFields is a list of field names (e.g. "SearchResults") to include in API
  2740  	// requests with the JSON null value. By default, fields with empty values are
  2741  	// omitted from API requests. See
  2742  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2743  	NullFields []string `json:"-"`
  2744  }
  2745  
  2746  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation) MarshalJSON() ([]byte, error) {
  2747  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation
  2748  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2749  }
  2750  
  2751  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult struct {
  2752  	// ChunkInfo: If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
  2753  	// populate chunk info.
  2754  	ChunkInfo []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo `json:"chunkInfo,omitempty"`
  2755  	// Document: Document resource name.
  2756  	Document string `json:"document,omitempty"`
  2757  	// SnippetInfo: If citation_type is DOCUMENT_LEVEL_CITATION, populate document
  2758  	// level snippets.
  2759  	SnippetInfo []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo `json:"snippetInfo,omitempty"`
  2760  	// Title: Title.
  2761  	Title string `json:"title,omitempty"`
  2762  	// Uri: URI for the document.
  2763  	Uri string `json:"uri,omitempty"`
  2764  	// ForceSendFields is a list of field names (e.g. "ChunkInfo") to
  2765  	// unconditionally include in API requests. By default, fields with empty or
  2766  	// default values are omitted from API requests. See
  2767  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2768  	// details.
  2769  	ForceSendFields []string `json:"-"`
  2770  	// NullFields is a list of field names (e.g. "ChunkInfo") to include in API
  2771  	// requests with the JSON null value. By default, fields with empty values are
  2772  	// omitted from API requests. See
  2773  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2774  	NullFields []string `json:"-"`
  2775  }
  2776  
  2777  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult) MarshalJSON() ([]byte, error) {
  2778  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult
  2779  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2780  }
  2781  
  2782  // GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunk
  2783  // Info: Chunk information.
  2784  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo struct {
  2785  	// Chunk: Chunk resource name.
  2786  	Chunk string `json:"chunk,omitempty"`
  2787  	// Content: Chunk textual content.
  2788  	Content string `json:"content,omitempty"`
  2789  	// RelevanceScore: Relevance score.
  2790  	RelevanceScore float64 `json:"relevanceScore,omitempty"`
  2791  	// ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally
  2792  	// include in API requests. By default, fields with empty or default values are
  2793  	// omitted from API requests. See
  2794  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2795  	// details.
  2796  	ForceSendFields []string `json:"-"`
  2797  	// NullFields is a list of field names (e.g. "Chunk") to include in API
  2798  	// requests with the JSON null value. By default, fields with empty values are
  2799  	// omitted from API requests. See
  2800  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2801  	NullFields []string `json:"-"`
  2802  }
  2803  
  2804  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo) MarshalJSON() ([]byte, error) {
  2805  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
  2806  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2807  }
  2808  
  2809  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo) UnmarshalJSON(data []byte) error {
  2810  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
  2811  	var s1 struct {
  2812  		RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
  2813  		*NoMethod
  2814  	}
  2815  	s1.NoMethod = (*NoMethod)(s)
  2816  	if err := json.Unmarshal(data, &s1); err != nil {
  2817  		return err
  2818  	}
  2819  	s.RelevanceScore = float64(s1.RelevanceScore)
  2820  	return nil
  2821  }
  2822  
  2823  // GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnipp
  2824  // etInfo: Snippet information.
  2825  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo struct {
  2826  	// Snippet: Snippet content.
  2827  	Snippet string `json:"snippet,omitempty"`
  2828  	// SnippetStatus: Status of the snippet defined by the search team.
  2829  	SnippetStatus string `json:"snippetStatus,omitempty"`
  2830  	// ForceSendFields is a list of field names (e.g. "Snippet") to unconditionally
  2831  	// include in API requests. By default, fields with empty or default values are
  2832  	// omitted from API requests. See
  2833  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2834  	// details.
  2835  	ForceSendFields []string `json:"-"`
  2836  	// NullFields is a list of field names (e.g. "Snippet") to include in API
  2837  	// requests with the JSON null value. By default, fields with empty values are
  2838  	// omitted from API requests. See
  2839  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2840  	NullFields []string `json:"-"`
  2841  }
  2842  
  2843  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo) MarshalJSON() ([]byte, error) {
  2844  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo
  2845  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2846  }
  2847  
  2848  // GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction: Search
  2849  // action.
  2850  type GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction struct {
  2851  	// Query: The query to search.
  2852  	Query string `json:"query,omitempty"`
  2853  	// ForceSendFields is a list of field names (e.g. "Query") to unconditionally
  2854  	// include in API requests. By default, fields with empty or default values are
  2855  	// omitted from API requests. See
  2856  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2857  	// details.
  2858  	ForceSendFields []string `json:"-"`
  2859  	// NullFields is a list of field names (e.g. "Query") to include in API
  2860  	// requests with the JSON null value. By default, fields with empty values are
  2861  	// omitted from API requests. See
  2862  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2863  	NullFields []string `json:"-"`
  2864  }
  2865  
  2866  func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction) MarshalJSON() ([]byte, error) {
  2867  	type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction
  2868  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2869  }
  2870  
  2871  // GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata: Metadata
  2872  // related to the progress of the
  2873  // SiteSearchEngineService.BatchCreateTargetSites operation. This will be
  2874  // returned by the google.longrunning.Operation.metadata field.
  2875  type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata struct {
  2876  	// CreateTime: Operation create time.
  2877  	CreateTime string `json:"createTime,omitempty"`
  2878  	// UpdateTime: Operation last update time. If the operation is done, this is
  2879  	// also the finish time.
  2880  	UpdateTime string `json:"updateTime,omitempty"`
  2881  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2882  	// unconditionally include in API requests. By default, fields with empty or
  2883  	// default values are omitted from API requests. See
  2884  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2885  	// details.
  2886  	ForceSendFields []string `json:"-"`
  2887  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2888  	// requests with the JSON null value. By default, fields with empty values are
  2889  	// omitted from API requests. See
  2890  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2891  	NullFields []string `json:"-"`
  2892  }
  2893  
  2894  func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  2895  	type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata
  2896  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2897  }
  2898  
  2899  // GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse: Response
  2900  // message for SiteSearchEngineService.BatchCreateTargetSites method.
  2901  type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse struct {
  2902  	// TargetSites: TargetSites created.
  2903  	TargetSites []*GoogleCloudDiscoveryengineV1alphaTargetSite `json:"targetSites,omitempty"`
  2904  	// ForceSendFields is a list of field names (e.g. "TargetSites") to
  2905  	// unconditionally include in API requests. By default, fields with empty or
  2906  	// default values are omitted from API requests. See
  2907  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2908  	// details.
  2909  	ForceSendFields []string `json:"-"`
  2910  	// NullFields is a list of field names (e.g. "TargetSites") to include in API
  2911  	// requests with the JSON null value. By default, fields with empty values are
  2912  	// omitted from API requests. See
  2913  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2914  	NullFields []string `json:"-"`
  2915  }
  2916  
  2917  func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
  2918  	type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse
  2919  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2920  }
  2921  
  2922  // GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata: Metadata related
  2923  // to the progress of the DataStoreService.CreateDataStore operation. This will
  2924  // be returned by the google.longrunning.Operation.metadata field.
  2925  type GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata struct {
  2926  	// CreateTime: Operation create time.
  2927  	CreateTime string `json:"createTime,omitempty"`
  2928  	// UpdateTime: Operation last update time. If the operation is done, this is
  2929  	// also the finish time.
  2930  	UpdateTime string `json:"updateTime,omitempty"`
  2931  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2932  	// unconditionally include in API requests. By default, fields with empty or
  2933  	// default values are omitted from API requests. See
  2934  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2935  	// details.
  2936  	ForceSendFields []string `json:"-"`
  2937  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2938  	// requests with the JSON null value. By default, fields with empty values are
  2939  	// omitted from API requests. See
  2940  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2941  	NullFields []string `json:"-"`
  2942  }
  2943  
  2944  func (s *GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
  2945  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata
  2946  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2947  }
  2948  
  2949  // GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata: Metadata related to
  2950  // the progress of the EngineService.CreateEngine operation. This will be
  2951  // returned by the google.longrunning.Operation.metadata field.
  2952  type GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata struct {
  2953  	// CreateTime: Operation create time.
  2954  	CreateTime string `json:"createTime,omitempty"`
  2955  	// UpdateTime: Operation last update time. If the operation is done, this is
  2956  	// also the finish time.
  2957  	UpdateTime string `json:"updateTime,omitempty"`
  2958  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2959  	// unconditionally include in API requests. By default, fields with empty or
  2960  	// default values are omitted from API requests. See
  2961  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2962  	// details.
  2963  	ForceSendFields []string `json:"-"`
  2964  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2965  	// requests with the JSON null value. By default, fields with empty values are
  2966  	// omitted from API requests. See
  2967  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2968  	NullFields []string `json:"-"`
  2969  }
  2970  
  2971  func (s *GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata) MarshalJSON() ([]byte, error) {
  2972  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata
  2973  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2974  }
  2975  
  2976  // GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata: Metadata for Create
  2977  // Schema LRO.
  2978  type GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata struct {
  2979  	// CreateTime: Operation create time.
  2980  	CreateTime string `json:"createTime,omitempty"`
  2981  	// UpdateTime: Operation last update time. If the operation is done, this is
  2982  	// also the finish time.
  2983  	UpdateTime string `json:"updateTime,omitempty"`
  2984  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  2985  	// unconditionally include in API requests. By default, fields with empty or
  2986  	// default values are omitted from API requests. See
  2987  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2988  	// details.
  2989  	ForceSendFields []string `json:"-"`
  2990  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  2991  	// requests with the JSON null value. By default, fields with empty values are
  2992  	// omitted from API requests. See
  2993  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2994  	NullFields []string `json:"-"`
  2995  }
  2996  
  2997  func (s *GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata) MarshalJSON() ([]byte, error) {
  2998  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata
  2999  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3000  }
  3001  
  3002  // GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata: Metadata related
  3003  // to the progress of the SiteSearchEngineService.CreateTargetSite operation.
  3004  // This will be returned by the google.longrunning.Operation.metadata field.
  3005  type GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata struct {
  3006  	// CreateTime: Operation create time.
  3007  	CreateTime string `json:"createTime,omitempty"`
  3008  	// UpdateTime: Operation last update time. If the operation is done, this is
  3009  	// also the finish time.
  3010  	UpdateTime string `json:"updateTime,omitempty"`
  3011  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3012  	// unconditionally include in API requests. By default, fields with empty or
  3013  	// default values are omitted from API requests. See
  3014  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3015  	// details.
  3016  	ForceSendFields []string `json:"-"`
  3017  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3018  	// requests with the JSON null value. By default, fields with empty values are
  3019  	// omitted from API requests. See
  3020  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3021  	NullFields []string `json:"-"`
  3022  }
  3023  
  3024  func (s *GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  3025  	type NoMethod GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata
  3026  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3027  }
  3028  
  3029  // GoogleCloudDiscoveryengineV1alphaCustomTuningModel: Metadata that describes
  3030  // a custom tuned model.
  3031  type GoogleCloudDiscoveryengineV1alphaCustomTuningModel struct {
  3032  	// CreateTime: Timestamp the Model was created at.
  3033  	CreateTime string `json:"createTime,omitempty"`
  3034  	// DisplayName: The display name of the model.
  3035  	DisplayName string `json:"displayName,omitempty"`
  3036  	// ModelState: The state that the model is in (e.g.`TRAINING` or
  3037  	// `TRAINING_FAILED`).
  3038  	//
  3039  	// Possible values:
  3040  	//   "MODEL_STATE_UNSPECIFIED"
  3041  	//   "TRAINING_PAUSED" - The model is in a paused training state.
  3042  	//   "TRAINING" - The model is currently training.
  3043  	//   "TRAINING_COMPLETE" - The model has successfully completed training.
  3044  	//   "READY_FOR_SERVING" - The model is ready for serving.
  3045  	//   "TRAINING_FAILED" - The model training failed.
  3046  	ModelState   string `json:"modelState,omitempty"`
  3047  	ModelVersion int64  `json:"modelVersion,omitempty,string"`
  3048  	// Name: Required. The fully qualified resource name of the model. Format:
  3049  	// `projects/{project_number}/locations/{location}/collections/{collection}/data
  3050  	// Stores/{data_store}/customTuningModels/{custom_tuning_model}` model must be
  3051  	// an alpha-numerical string with limit of 40 characters.
  3052  	Name string `json:"name,omitempty"`
  3053  	// TrainingStartTime: Timestamp the model training was initiated.
  3054  	TrainingStartTime string `json:"trainingStartTime,omitempty"`
  3055  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3056  	// unconditionally include in API requests. By default, fields with empty or
  3057  	// default values are omitted from API requests. See
  3058  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3059  	// details.
  3060  	ForceSendFields []string `json:"-"`
  3061  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3062  	// requests with the JSON null value. By default, fields with empty values are
  3063  	// omitted from API requests. See
  3064  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3065  	NullFields []string `json:"-"`
  3066  }
  3067  
  3068  func (s *GoogleCloudDiscoveryengineV1alphaCustomTuningModel) MarshalJSON() ([]byte, error) {
  3069  	type NoMethod GoogleCloudDiscoveryengineV1alphaCustomTuningModel
  3070  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3071  }
  3072  
  3073  // GoogleCloudDiscoveryengineV1alphaDataStore: DataStore captures global
  3074  // settings and configs at the DataStore level.
  3075  type GoogleCloudDiscoveryengineV1alphaDataStore struct {
  3076  	// AclEnabled: Immutable. Whether data in the DataStore has ACL information. If
  3077  	// set to `true`, the source data must have ACL. ACL will be ingested when data
  3078  	// is ingested by DocumentService.ImportDocuments methods. When ACL is enabled
  3079  	// for the DataStore, Document can't be accessed by calling
  3080  	// DocumentService.GetDocument or DocumentService.ListDocuments. Currently ACL
  3081  	// is only supported in `GENERIC` industry vertical with non-`PUBLIC_WEBSITE`
  3082  	// content config.
  3083  	AclEnabled bool `json:"aclEnabled,omitempty"`
  3084  	// ContentConfig: Immutable. The content config of the data store. If this
  3085  	// field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
  3086  	//
  3087  	// Possible values:
  3088  	//   "CONTENT_CONFIG_UNSPECIFIED" - Default value.
  3089  	//   "NO_CONTENT" - Only contains documents without any Document.content.
  3090  	//   "CONTENT_REQUIRED" - Only contains documents with Document.content.
  3091  	//   "PUBLIC_WEBSITE" - The data store is used for public website search.
  3092  	ContentConfig string `json:"contentConfig,omitempty"`
  3093  	// CreateTime: Output only. Timestamp the DataStore was created at.
  3094  	CreateTime string `json:"createTime,omitempty"`
  3095  	// DefaultSchemaId: Output only. The id of the default Schema asscociated to
  3096  	// this data store.
  3097  	DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
  3098  	// DisplayName: Required. The data store display name. This field must be a
  3099  	// UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
  3100  	// INVALID_ARGUMENT error is returned.
  3101  	DisplayName string `json:"displayName,omitempty"`
  3102  	// DocumentProcessingConfig: Configuration for Document understanding and
  3103  	// enrichment.
  3104  	DocumentProcessingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
  3105  	// IdpConfig: Output only. Data store level identity provider config.
  3106  	IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"`
  3107  	// IndustryVertical: Immutable. The industry vertical that the data store
  3108  	// registers.
  3109  	//
  3110  	// Possible values:
  3111  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  3112  	//   "GENERIC" - The generic vertical for documents that are not specific to
  3113  	// any industry vertical.
  3114  	//   "MEDIA" - The media industry vertical.
  3115  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  3116  	IndustryVertical string `json:"industryVertical,omitempty"`
  3117  	// Name: Immutable. The full resource name of the data store. Format:
  3118  	// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
  3119  	// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
  3120  	// limit of 1024 characters.
  3121  	Name string `json:"name,omitempty"`
  3122  	// SolutionTypes: The solutions that the data store enrolls. Available
  3123  	// solutions for each industry_vertical: * `MEDIA`:
  3124  	// `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`:
  3125  	// `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be
  3126  	// enrolled.
  3127  	//
  3128  	// Possible values:
  3129  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  3130  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  3131  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  3132  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  3133  	// agent.
  3134  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  3135  	// Generative Chat agent. It's used for Generative chat engine only, the
  3136  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  3137  	SolutionTypes []string `json:"solutionTypes,omitempty"`
  3138  	// StartingSchema: The start schema to use for this DataStore when provisioning
  3139  	// it. If unset, a default vertical specialized schema will be used. This field
  3140  	// is only used by CreateDataStore API, and will be ignored if used in other
  3141  	// APIs. This field will be omitted from all API responses including
  3142  	// CreateDataStore API. To retrieve a schema of a DataStore, use
  3143  	// SchemaService.GetSchema API instead. The provided schema will be validated
  3144  	// against certain rules on schema. Learn more from this doc
  3145  	// (https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
  3146  	StartingSchema *GoogleCloudDiscoveryengineV1alphaSchema `json:"startingSchema,omitempty"`
  3147  	// ForceSendFields is a list of field names (e.g. "AclEnabled") to
  3148  	// unconditionally include in API requests. By default, fields with empty or
  3149  	// default values are omitted from API requests. See
  3150  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3151  	// details.
  3152  	ForceSendFields []string `json:"-"`
  3153  	// NullFields is a list of field names (e.g. "AclEnabled") to include in API
  3154  	// requests with the JSON null value. By default, fields with empty values are
  3155  	// omitted from API requests. See
  3156  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3157  	NullFields []string `json:"-"`
  3158  }
  3159  
  3160  func (s *GoogleCloudDiscoveryengineV1alphaDataStore) MarshalJSON() ([]byte, error) {
  3161  	type NoMethod GoogleCloudDiscoveryengineV1alphaDataStore
  3162  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3163  }
  3164  
  3165  // GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata: Metadata related
  3166  // to the progress of the DataStoreService.DeleteDataStore operation. This will
  3167  // be returned by the google.longrunning.Operation.metadata field.
  3168  type GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata struct {
  3169  	// CreateTime: Operation create time.
  3170  	CreateTime string `json:"createTime,omitempty"`
  3171  	// UpdateTime: Operation last update time. If the operation is done, this is
  3172  	// also the finish time.
  3173  	UpdateTime string `json:"updateTime,omitempty"`
  3174  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3175  	// unconditionally include in API requests. By default, fields with empty or
  3176  	// default values are omitted from API requests. See
  3177  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3178  	// details.
  3179  	ForceSendFields []string `json:"-"`
  3180  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3181  	// requests with the JSON null value. By default, fields with empty values are
  3182  	// omitted from API requests. See
  3183  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3184  	NullFields []string `json:"-"`
  3185  }
  3186  
  3187  func (s *GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
  3188  	type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata
  3189  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3190  }
  3191  
  3192  // GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata: Metadata related to
  3193  // the progress of the EngineService.DeleteEngine operation. This will be
  3194  // returned by the google.longrunning.Operation.metadata field.
  3195  type GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata struct {
  3196  	// CreateTime: Operation create time.
  3197  	CreateTime string `json:"createTime,omitempty"`
  3198  	// UpdateTime: Operation last update time. If the operation is done, this is
  3199  	// also the finish time.
  3200  	UpdateTime string `json:"updateTime,omitempty"`
  3201  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3202  	// unconditionally include in API requests. By default, fields with empty or
  3203  	// default values are omitted from API requests. See
  3204  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3205  	// details.
  3206  	ForceSendFields []string `json:"-"`
  3207  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3208  	// requests with the JSON null value. By default, fields with empty values are
  3209  	// omitted from API requests. See
  3210  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3211  	NullFields []string `json:"-"`
  3212  }
  3213  
  3214  func (s *GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata) MarshalJSON() ([]byte, error) {
  3215  	type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata
  3216  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3217  }
  3218  
  3219  // GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata: Metadata for
  3220  // DeleteSchema LRO.
  3221  type GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata struct {
  3222  	// CreateTime: Operation create time.
  3223  	CreateTime string `json:"createTime,omitempty"`
  3224  	// UpdateTime: Operation last update time. If the operation is done, this is
  3225  	// also the finish time.
  3226  	UpdateTime string `json:"updateTime,omitempty"`
  3227  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3228  	// unconditionally include in API requests. By default, fields with empty or
  3229  	// default values are omitted from API requests. See
  3230  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3231  	// details.
  3232  	ForceSendFields []string `json:"-"`
  3233  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3234  	// requests with the JSON null value. By default, fields with empty values are
  3235  	// omitted from API requests. See
  3236  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3237  	NullFields []string `json:"-"`
  3238  }
  3239  
  3240  func (s *GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
  3241  	type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata
  3242  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3243  }
  3244  
  3245  // GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata: Metadata related
  3246  // to the progress of the SiteSearchEngineService.DeleteTargetSite operation.
  3247  // This will be returned by the google.longrunning.Operation.metadata field.
  3248  type GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata struct {
  3249  	// CreateTime: Operation create time.
  3250  	CreateTime string `json:"createTime,omitempty"`
  3251  	// UpdateTime: Operation last update time. If the operation is done, this is
  3252  	// also the finish time.
  3253  	UpdateTime string `json:"updateTime,omitempty"`
  3254  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3255  	// unconditionally include in API requests. By default, fields with empty or
  3256  	// default values are omitted from API requests. See
  3257  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3258  	// details.
  3259  	ForceSendFields []string `json:"-"`
  3260  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3261  	// requests with the JSON null value. By default, fields with empty values are
  3262  	// omitted from API requests. See
  3263  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3264  	NullFields []string `json:"-"`
  3265  }
  3266  
  3267  func (s *GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  3268  	type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata
  3269  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3270  }
  3271  
  3272  // GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata: Metadata
  3273  // related to the progress of the
  3274  // SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be
  3275  // returned by the google.longrunning.Operation.metadata field.
  3276  type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata struct {
  3277  	// CreateTime: Operation create time.
  3278  	CreateTime string `json:"createTime,omitempty"`
  3279  	// UpdateTime: Operation last update time. If the operation is done, this is
  3280  	// also the finish time.
  3281  	UpdateTime string `json:"updateTime,omitempty"`
  3282  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3283  	// unconditionally include in API requests. By default, fields with empty or
  3284  	// default values are omitted from API requests. See
  3285  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3286  	// details.
  3287  	ForceSendFields []string `json:"-"`
  3288  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3289  	// requests with the JSON null value. By default, fields with empty values are
  3290  	// omitted from API requests. See
  3291  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3292  	NullFields []string `json:"-"`
  3293  }
  3294  
  3295  func (s *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  3296  	type NoMethod GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata
  3297  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3298  }
  3299  
  3300  // GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchResponse: Response
  3301  // message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
  3302  type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchResponse struct {
  3303  }
  3304  
  3305  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig: A singleton
  3306  // resource of DataStore. It's empty when DataStore is created, which defaults
  3307  // to digital parser. The first call to
  3308  // DataStoreService.UpdateDocumentProcessingConfig method will initialize the
  3309  // config.
  3310  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig struct {
  3311  	// ChunkingConfig: Whether chunking mode is enabled.
  3312  	ChunkingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig `json:"chunkingConfig,omitempty"`
  3313  	// DefaultParsingConfig: Configurations for default Document parser. If not
  3314  	// specified, we will configure it as default DigitalParsingConfig, and the
  3315  	// default parsing config will be applied to all file types for Document
  3316  	// parsing.
  3317  	DefaultParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
  3318  	// Name: The full resource name of the Document Processing Config. Format:
  3319  	// `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
  3320  	Name string `json:"name,omitempty"`
  3321  	// ParsingConfigOverrides: Map from file type to override the default parsing
  3322  	// configuration based on the file type. Supported keys: * `pdf`: Override
  3323  	// parsing config for PDF files, either digital parsing, ocr parsing or layout
  3324  	// parsing is supported. * `html`: Override parsing config for HTML files, only
  3325  	// digital parsing and or layout parsing are supported. * `docx`: Override
  3326  	// parsing config for DOCX files, only digital parsing and or layout parsing
  3327  	// are supported.
  3328  	ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
  3329  	// ForceSendFields is a list of field names (e.g. "ChunkingConfig") to
  3330  	// unconditionally include in API requests. By default, fields with empty or
  3331  	// default values are omitted from API requests. See
  3332  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3333  	// details.
  3334  	ForceSendFields []string `json:"-"`
  3335  	// NullFields is a list of field names (e.g. "ChunkingConfig") to include in
  3336  	// API requests with the JSON null value. By default, fields with empty values
  3337  	// are omitted from API requests. See
  3338  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3339  	NullFields []string `json:"-"`
  3340  }
  3341  
  3342  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig) MarshalJSON() ([]byte, error) {
  3343  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
  3344  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3345  }
  3346  
  3347  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig:
  3348  // Configuration for chunking config.
  3349  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig struct {
  3350  	// LayoutBasedChunkingConfig: Configuration for the layout based chunking.
  3351  	LayoutBasedChunkingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig `json:"layoutBasedChunkingConfig,omitempty"`
  3352  	// ForceSendFields is a list of field names (e.g. "LayoutBasedChunkingConfig")
  3353  	// to unconditionally include in API requests. By default, fields with empty or
  3354  	// default values are omitted from API requests. See
  3355  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3356  	// details.
  3357  	ForceSendFields []string `json:"-"`
  3358  	// NullFields is a list of field names (e.g. "LayoutBasedChunkingConfig") to
  3359  	// include in API requests with the JSON null value. By default, fields with
  3360  	// empty values are omitted from API requests. See
  3361  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3362  	NullFields []string `json:"-"`
  3363  }
  3364  
  3365  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig) MarshalJSON() ([]byte, error) {
  3366  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig
  3367  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3368  }
  3369  
  3370  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayout
  3371  // BasedChunkingConfig: Configuration for the layout based chunking.
  3372  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig struct {
  3373  	// ChunkSize: The token size limit for each chunk. Supported values: 100-500
  3374  	// (inclusive). Default value: 500.
  3375  	ChunkSize int64 `json:"chunkSize,omitempty"`
  3376  	// IncludeAncestorHeadings: Whether to include appending different levels of
  3377  	// headings to chunks from the middle of the document to prevent context loss.
  3378  	// Default value: False.
  3379  	IncludeAncestorHeadings bool `json:"includeAncestorHeadings,omitempty"`
  3380  	// ForceSendFields is a list of field names (e.g. "ChunkSize") to
  3381  	// unconditionally include in API requests. By default, fields with empty or
  3382  	// default values are omitted from API requests. See
  3383  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3384  	// details.
  3385  	ForceSendFields []string `json:"-"`
  3386  	// NullFields is a list of field names (e.g. "ChunkSize") to include in API
  3387  	// requests with the JSON null value. By default, fields with empty values are
  3388  	// omitted from API requests. See
  3389  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3390  	NullFields []string `json:"-"`
  3391  }
  3392  
  3393  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig) MarshalJSON() ([]byte, error) {
  3394  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
  3395  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3396  }
  3397  
  3398  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig:
  3399  // Related configurations applied to a specific type of document parser.
  3400  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig struct {
  3401  	// DigitalParsingConfig: Configurations applied to digital parser.
  3402  	DigitalParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
  3403  	// LayoutParsingConfig: Configurations applied to layout parser.
  3404  	LayoutParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig `json:"layoutParsingConfig,omitempty"`
  3405  	// OcrParsingConfig: Configurations applied to OCR parser. Currently it only
  3406  	// applies to PDFs.
  3407  	OcrParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
  3408  	// ForceSendFields is a list of field names (e.g. "DigitalParsingConfig") to
  3409  	// unconditionally include in API requests. By default, fields with empty or
  3410  	// default values are omitted from API requests. See
  3411  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3412  	// details.
  3413  	ForceSendFields []string `json:"-"`
  3414  	// NullFields is a list of field names (e.g. "DigitalParsingConfig") to include
  3415  	// in API requests with the JSON null value. By default, fields with empty
  3416  	// values are omitted from API requests. See
  3417  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3418  	NullFields []string `json:"-"`
  3419  }
  3420  
  3421  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
  3422  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
  3423  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3424  }
  3425  
  3426  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigital
  3427  // ParsingConfig: The digital parsing configurations for documents.
  3428  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
  3429  }
  3430  
  3431  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutP
  3432  // arsingConfig: The layout parsing configurations for documents.
  3433  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig struct {
  3434  }
  3435  
  3436  // GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrPars
  3437  // ingConfig: The OCR parsing configurations for documents.
  3438  type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig struct {
  3439  	// EnhancedDocumentElements: [DEPRECATED] This field is deprecated. To use the
  3440  	// additional enhanced document elements processing, please switch to
  3441  	// `layout_parsing_config`.
  3442  	EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
  3443  	// UseNativeText: If true, will use native text instead of OCR text on pages
  3444  	// containing native text.
  3445  	UseNativeText bool `json:"useNativeText,omitempty"`
  3446  	// ForceSendFields is a list of field names (e.g. "EnhancedDocumentElements")
  3447  	// to unconditionally include in API requests. By default, fields with empty or
  3448  	// default values are omitted from API requests. See
  3449  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3450  	// details.
  3451  	ForceSendFields []string `json:"-"`
  3452  	// NullFields is a list of field names (e.g. "EnhancedDocumentElements") to
  3453  	// include in API requests with the JSON null value. By default, fields with
  3454  	// empty values are omitted from API requests. See
  3455  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3456  	NullFields []string `json:"-"`
  3457  }
  3458  
  3459  func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
  3460  	type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig
  3461  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3462  }
  3463  
  3464  // GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata: Metadata
  3465  // related to the progress of the
  3466  // SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be
  3467  // returned by the google.longrunning.Operation.metadata field.
  3468  type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata struct {
  3469  	// CreateTime: Operation create time.
  3470  	CreateTime string `json:"createTime,omitempty"`
  3471  	// UpdateTime: Operation last update time. If the operation is done, this is
  3472  	// also the finish time.
  3473  	UpdateTime string `json:"updateTime,omitempty"`
  3474  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3475  	// unconditionally include in API requests. By default, fields with empty or
  3476  	// default values are omitted from API requests. See
  3477  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3478  	// details.
  3479  	ForceSendFields []string `json:"-"`
  3480  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3481  	// requests with the JSON null value. By default, fields with empty values are
  3482  	// omitted from API requests. See
  3483  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3484  	NullFields []string `json:"-"`
  3485  }
  3486  
  3487  func (s *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  3488  	type NoMethod GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata
  3489  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3490  }
  3491  
  3492  // GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse: Response
  3493  // message for SiteSearchEngineService.EnableAdvancedSiteSearch method.
  3494  type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse struct {
  3495  }
  3496  
  3497  // GoogleCloudDiscoveryengineV1alphaEngine: Metadata that describes the
  3498  // training and serving parameters of an Engine.
  3499  type GoogleCloudDiscoveryengineV1alphaEngine struct {
  3500  	// ChatEngineConfig: Configurations for the Chat Engine. Only applicable if
  3501  	// solution_type is SOLUTION_TYPE_CHAT.
  3502  	ChatEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
  3503  	// ChatEngineMetadata: Output only. Additional information of the Chat Engine.
  3504  	// Only applicable if solution_type is SOLUTION_TYPE_CHAT.
  3505  	ChatEngineMetadata *GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
  3506  	// CommonConfig: Common config spec that specifies the metadata of the engine.
  3507  	CommonConfig *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig `json:"commonConfig,omitempty"`
  3508  	// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
  3509  	CreateTime string `json:"createTime,omitempty"`
  3510  	// DataStoreIds: The data stores associated with this engine. For
  3511  	// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
  3512  	// can only associate with at most one data store. If solution_type is
  3513  	// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
  3514  	// associated here. Note that when used in CreateEngineRequest, one DataStore
  3515  	// id must be provided as the system will use it for necessary initializations.
  3516  	DataStoreIds []string `json:"dataStoreIds,omitempty"`
  3517  	// DisplayName: Required. The display name of the engine. Should be human
  3518  	// readable. UTF-8 encoded string with limit of 1024 characters.
  3519  	DisplayName string `json:"displayName,omitempty"`
  3520  	// IndustryVertical: The industry vertical that the engine registers. The
  3521  	// restriction of the Engine industry vertical is based on DataStore: If
  3522  	// unspecified, default to `GENERIC`. Vertical on Engine has to match vertical
  3523  	// of the DataStore liniked to the engine.
  3524  	//
  3525  	// Possible values:
  3526  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  3527  	//   "GENERIC" - The generic vertical for documents that are not specific to
  3528  	// any industry vertical.
  3529  	//   "MEDIA" - The media industry vertical.
  3530  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  3531  	IndustryVertical string `json:"industryVertical,omitempty"`
  3532  	// MediaRecommendationEngineConfig: Configurations for the Media Engine. Only
  3533  	// applicable on the data stores with solution_type
  3534  	// SOLUTION_TYPE_RECOMMENDATION and IndustryVertical.MEDIA vertical.
  3535  	MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
  3536  	// Name: Immutable. The fully qualified resource name of the engine. This field
  3537  	// must be a UTF-8 encoded string with a length limit of 1024 characters.
  3538  	// Format:
  3539  	// `projects/{project_number}/locations/{location}/collections/{collection}/engi
  3540  	// nes/{engine}` engine should be 1-63 characters, and valid characters are
  3541  	// /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
  3542  	Name string `json:"name,omitempty"`
  3543  	// RecommendationMetadata: Output only. Additional information of a
  3544  	// recommendation engine. Only applicable if solution_type is
  3545  	// SOLUTION_TYPE_RECOMMENDATION.
  3546  	RecommendationMetadata *GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata `json:"recommendationMetadata,omitempty"`
  3547  	// SearchEngineConfig: Configurations for the Search Engine. Only applicable if
  3548  	// solution_type is SOLUTION_TYPE_SEARCH.
  3549  	SearchEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
  3550  	// SimilarDocumentsConfig: Additional config specs for a `similar-items`
  3551  	// engine.
  3552  	SimilarDocumentsConfig *GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig `json:"similarDocumentsConfig,omitempty"`
  3553  	// SolutionType: Required. The solutions of the engine.
  3554  	//
  3555  	// Possible values:
  3556  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  3557  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  3558  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  3559  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  3560  	// agent.
  3561  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  3562  	// Generative Chat agent. It's used for Generative chat engine only, the
  3563  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  3564  	SolutionType string `json:"solutionType,omitempty"`
  3565  	// UpdateTime: Output only. Timestamp the Recommendation Engine was last
  3566  	// updated.
  3567  	UpdateTime string `json:"updateTime,omitempty"`
  3568  	// ForceSendFields is a list of field names (e.g. "ChatEngineConfig") to
  3569  	// unconditionally include in API requests. By default, fields with empty or
  3570  	// default values are omitted from API requests. See
  3571  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3572  	// details.
  3573  	ForceSendFields []string `json:"-"`
  3574  	// NullFields is a list of field names (e.g. "ChatEngineConfig") to include in
  3575  	// API requests with the JSON null value. By default, fields with empty values
  3576  	// are omitted from API requests. See
  3577  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3578  	NullFields []string `json:"-"`
  3579  }
  3580  
  3581  func (s *GoogleCloudDiscoveryengineV1alphaEngine) MarshalJSON() ([]byte, error) {
  3582  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngine
  3583  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3584  }
  3585  
  3586  // GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig: Configurations for
  3587  // a Chat Engine.
  3588  type GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig struct {
  3589  	// AgentCreationConfig: The configurationt generate the Dialogflow agent that
  3590  	// is associated to this Engine. Note that these configurations are one-time
  3591  	// consumed by and passed to Dialogflow service. It means they cannot be
  3592  	// retrieved using EngineService.GetEngine or EngineService.ListEngines API
  3593  	// after engine creation.
  3594  	AgentCreationConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
  3595  	// DialogflowAgentToLink: The resource name of an exist Dialogflow agent to
  3596  	// link to this Chat Engine. Customers can either provide
  3597  	// `agent_creation_config` to create agent or provide an agent name that links
  3598  	// the agent with the Chat engine. Format: `projects//locations//agents/`. Note
  3599  	// that the `dialogflow_agent_to_link` are one-time consumed by and passed to
  3600  	// Dialogflow service. It means they cannot be retrieved using
  3601  	// EngineService.GetEngine or EngineService.ListEngines API after engine
  3602  	// creation. Use ChatEngineMetadata.dialogflow_agent for actual agent
  3603  	// association after Engine is created.
  3604  	DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
  3605  	// ForceSendFields is a list of field names (e.g. "AgentCreationConfig") to
  3606  	// unconditionally include in API requests. By default, fields with empty or
  3607  	// default values are omitted from API requests. See
  3608  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3609  	// details.
  3610  	ForceSendFields []string `json:"-"`
  3611  	// NullFields is a list of field names (e.g. "AgentCreationConfig") to include
  3612  	// in API requests with the JSON null value. By default, fields with empty
  3613  	// values are omitted from API requests. See
  3614  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3615  	NullFields []string `json:"-"`
  3616  }
  3617  
  3618  func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig) MarshalJSON() ([]byte, error) {
  3619  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig
  3620  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3621  }
  3622  
  3623  // GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig:
  3624  // Configurations for generating a Dialogflow agent. Note that these
  3625  // configurations are one-time consumed by and passed to Dialogflow service. It
  3626  // means they cannot be retrieved using EngineService.GetEngine or
  3627  // EngineService.ListEngines API after engine creation.
  3628  type GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig struct {
  3629  	// Business: Name of the company, organization or other entity that the agent
  3630  	// represents. Used for knowledge connector LLM prompt and for knowledge
  3631  	// search.
  3632  	Business string `json:"business,omitempty"`
  3633  	// DefaultLanguageCode: Required. The default language of the agent as a
  3634  	// language tag. See Language Support
  3635  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
  3636  	// the currently supported language codes.
  3637  	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
  3638  	// Location: Agent location for Agent creation, supported values: global/us/eu.
  3639  	// If not provided, us Engine will create Agent using us-central-1 by default;
  3640  	// eu Engine will create Agent using eu-west-1 by default.
  3641  	Location string `json:"location,omitempty"`
  3642  	// TimeZone: Required. The time zone of the agent from the time zone database
  3643  	// (https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
  3644  	TimeZone string `json:"timeZone,omitempty"`
  3645  	// ForceSendFields is a list of field names (e.g. "Business") to
  3646  	// unconditionally include in API requests. By default, fields with empty or
  3647  	// default values are omitted from API requests. See
  3648  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3649  	// details.
  3650  	ForceSendFields []string `json:"-"`
  3651  	// NullFields is a list of field names (e.g. "Business") to include in API
  3652  	// requests with the JSON null value. By default, fields with empty values are
  3653  	// omitted from API requests. See
  3654  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3655  	NullFields []string `json:"-"`
  3656  }
  3657  
  3658  func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
  3659  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig
  3660  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3661  }
  3662  
  3663  // GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata: Additional
  3664  // information of a Chat Engine. Fields in this message are output only.
  3665  type GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata struct {
  3666  	// DialogflowAgent: The resource name of a Dialogflow agent, that this Chat
  3667  	// Engine refers to. Format: `projects//locations//agents/`.
  3668  	DialogflowAgent string `json:"dialogflowAgent,omitempty"`
  3669  	// ForceSendFields is a list of field names (e.g. "DialogflowAgent") to
  3670  	// unconditionally include in API requests. By default, fields with empty or
  3671  	// default values are omitted from API requests. See
  3672  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3673  	// details.
  3674  	ForceSendFields []string `json:"-"`
  3675  	// NullFields is a list of field names (e.g. "DialogflowAgent") to include in
  3676  	// API requests with the JSON null value. By default, fields with empty values
  3677  	// are omitted from API requests. See
  3678  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3679  	NullFields []string `json:"-"`
  3680  }
  3681  
  3682  func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
  3683  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata
  3684  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3685  }
  3686  
  3687  // GoogleCloudDiscoveryengineV1alphaEngineCommonConfig: Common configurations
  3688  // for an Engine.
  3689  type GoogleCloudDiscoveryengineV1alphaEngineCommonConfig struct {
  3690  	// CompanyName: Immutable. The name of the company, business or entity that is
  3691  	// associated with the engine. Setting this may help improve LLM related
  3692  	// features.
  3693  	CompanyName string `json:"companyName,omitempty"`
  3694  	// ForceSendFields is a list of field names (e.g. "CompanyName") to
  3695  	// unconditionally include in API requests. By default, fields with empty or
  3696  	// default values are omitted from API requests. See
  3697  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3698  	// details.
  3699  	ForceSendFields []string `json:"-"`
  3700  	// NullFields is a list of field names (e.g. "CompanyName") to include in API
  3701  	// requests with the JSON null value. By default, fields with empty values are
  3702  	// omitted from API requests. See
  3703  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3704  	NullFields []string `json:"-"`
  3705  }
  3706  
  3707  func (s *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig) MarshalJSON() ([]byte, error) {
  3708  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineCommonConfig
  3709  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3710  }
  3711  
  3712  // GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig:
  3713  // Additional config specs for a Media Recommendation engine.
  3714  type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig struct {
  3715  	// OptimizationObjective: The optimization objective. e.g., `cvr`. This field
  3716  	// together with optimization_objective describe engine metadata to use to
  3717  	// control engine training and serving. Currently supported values: `ctr`,
  3718  	// `cvr`. If not specified, we choose default based on engine type. Default
  3719  	// depends on type of recommendation: `recommended-for-you` => `ctr`
  3720  	// `others-you-may-like` => `ctr`
  3721  	OptimizationObjective string `json:"optimizationObjective,omitempty"`
  3722  	// OptimizationObjectiveConfig: Name and value of the custom threshold for cvr
  3723  	// optimization_objective. For target_field `watch-time`, target_field_value
  3724  	// must be an integer value indicating the media progress time in seconds
  3725  	// between (0, 86400] (excludes 0, includes 86400) (e.g., 90). For target_field
  3726  	// `watch-percentage`, the target_field_value must be a valid float value
  3727  	// between (0, 1.0] (excludes 0, includes 1.0) (e.g., 0.5).
  3728  	OptimizationObjectiveConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig `json:"optimizationObjectiveConfig,omitempty"`
  3729  	// TrainingState: The training state that the engine is in (e.g. `TRAINING` or
  3730  	// `PAUSED`). Since part of the cost of running the service is frequency of
  3731  	// training - this can be used to determine when to train engine in order to
  3732  	// control cost. If not specified: the default value for `CreateEngine` method
  3733  	// is `TRAINING`. The default value for `UpdateEngine` method is to keep the
  3734  	// state the same as before.
  3735  	//
  3736  	// Possible values:
  3737  	//   "TRAINING_STATE_UNSPECIFIED" - Unspecified training state.
  3738  	//   "PAUSED" - The engine training is paused.
  3739  	//   "TRAINING" - The engine is training.
  3740  	TrainingState string `json:"trainingState,omitempty"`
  3741  	// Type: Required. The type of engine. e.g., `recommended-for-you`. This field
  3742  	// together with optimization_objective describe engine metadata to use to
  3743  	// control engine training and serving. Currently supported values:
  3744  	// `recommended-for-you`, `others-you-may-like`, `more-like-this`,
  3745  	// `most-popular-items`.
  3746  	Type string `json:"type,omitempty"`
  3747  	// ForceSendFields is a list of field names (e.g. "OptimizationObjective") to
  3748  	// unconditionally include in API requests. By default, fields with empty or
  3749  	// default values are omitted from API requests. See
  3750  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3751  	// details.
  3752  	ForceSendFields []string `json:"-"`
  3753  	// NullFields is a list of field names (e.g. "OptimizationObjective") to
  3754  	// include in API requests with the JSON null value. By default, fields with
  3755  	// empty values are omitted from API requests. See
  3756  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3757  	NullFields []string `json:"-"`
  3758  }
  3759  
  3760  func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig) MarshalJSON() ([]byte, error) {
  3761  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig
  3762  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3763  }
  3764  
  3765  // GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimiz
  3766  // ationObjectiveConfig: Custom threshold for `cvr` optimization_objective.
  3767  type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct {
  3768  	// TargetField: Required. The name of the field to target. Currently supported
  3769  	// values: `watch-percentage`, `watch-time`.
  3770  	TargetField string `json:"targetField,omitempty"`
  3771  	// TargetFieldValueFloat: Required. The threshold to be applied to the target
  3772  	// (e.g., 0.5).
  3773  	TargetFieldValueFloat float64 `json:"targetFieldValueFloat,omitempty"`
  3774  	// ForceSendFields is a list of field names (e.g. "TargetField") to
  3775  	// unconditionally include in API requests. By default, fields with empty or
  3776  	// default values are omitted from API requests. See
  3777  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3778  	// details.
  3779  	ForceSendFields []string `json:"-"`
  3780  	// NullFields is a list of field names (e.g. "TargetField") to include in API
  3781  	// requests with the JSON null value. By default, fields with empty values are
  3782  	// omitted from API requests. See
  3783  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3784  	NullFields []string `json:"-"`
  3785  }
  3786  
  3787  func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) MarshalJSON() ([]byte, error) {
  3788  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
  3789  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3790  }
  3791  
  3792  func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) UnmarshalJSON(data []byte) error {
  3793  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
  3794  	var s1 struct {
  3795  		TargetFieldValueFloat gensupport.JSONFloat64 `json:"targetFieldValueFloat"`
  3796  		*NoMethod
  3797  	}
  3798  	s1.NoMethod = (*NoMethod)(s)
  3799  	if err := json.Unmarshal(data, &s1); err != nil {
  3800  		return err
  3801  	}
  3802  	s.TargetFieldValueFloat = float64(s1.TargetFieldValueFloat)
  3803  	return nil
  3804  }
  3805  
  3806  // GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata: Additional
  3807  // information of a recommendation engine.
  3808  type GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata struct {
  3809  	// DataState: Output only. The state of data requirements for this engine:
  3810  	// `DATA_OK` and `DATA_ERROR`. Engine cannot be trained if the data is in
  3811  	// `DATA_ERROR` state. Engine can have `DATA_ERROR` state even if serving state
  3812  	// is `ACTIVE`: engines were trained successfully before, but cannot be
  3813  	// refreshed because the underlying engine no longer has sufficient data for
  3814  	// training.
  3815  	//
  3816  	// Possible values:
  3817  	//   "DATA_STATE_UNSPECIFIED" - Unspecified default value, should never be
  3818  	// explicitly set.
  3819  	//   "DATA_OK" - The engine has sufficient training data.
  3820  	//   "DATA_ERROR" - The engine does not have sufficient training data. Error
  3821  	// messages can be queried via Stackdriver.
  3822  	DataState string `json:"dataState,omitempty"`
  3823  	// LastTuneTime: Output only. The timestamp when the latest successful tune
  3824  	// finished. Only applicable on Media Recommendation engines.
  3825  	LastTuneTime string `json:"lastTuneTime,omitempty"`
  3826  	// ServingState: Output only. The serving state of the engine: `ACTIVE`,
  3827  	// `NOT_ACTIVE`.
  3828  	//
  3829  	// Possible values:
  3830  	//   "SERVING_STATE_UNSPECIFIED" - Unspecified serving state.
  3831  	//   "INACTIVE" - The engine is not serving.
  3832  	//   "ACTIVE" - The engine is serving and can be queried.
  3833  	//   "TUNED" - The engine is trained on tuned hyperparameters and can be
  3834  	// queried.
  3835  	ServingState string `json:"servingState,omitempty"`
  3836  	// TuningOperation: Output only. The latest tune operation id associated with
  3837  	// the engine. Only applicable on Media Recommendation engines. If present,
  3838  	// this operation id can be used to determine if there is an ongoing tune for
  3839  	// this engine. To check the operation status, send the GetOperation request
  3840  	// with this operation id in the engine resource format. If no tuning has
  3841  	// happened for this engine, the string is empty.
  3842  	TuningOperation string `json:"tuningOperation,omitempty"`
  3843  	// ForceSendFields is a list of field names (e.g. "DataState") to
  3844  	// unconditionally include in API requests. By default, fields with empty or
  3845  	// default values are omitted from API requests. See
  3846  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3847  	// details.
  3848  	ForceSendFields []string `json:"-"`
  3849  	// NullFields is a list of field names (e.g. "DataState") to include in API
  3850  	// requests with the JSON null value. By default, fields with empty values are
  3851  	// omitted from API requests. See
  3852  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3853  	NullFields []string `json:"-"`
  3854  }
  3855  
  3856  func (s *GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata) MarshalJSON() ([]byte, error) {
  3857  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata
  3858  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3859  }
  3860  
  3861  // GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig: Configurations
  3862  // for a Search Engine.
  3863  type GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig struct {
  3864  	// SearchAddOns: The add-on that this search engine enables.
  3865  	//
  3866  	// Possible values:
  3867  	//   "SEARCH_ADD_ON_UNSPECIFIED" - Default value when the enum is unspecified.
  3868  	// This is invalid to use.
  3869  	//   "SEARCH_ADD_ON_LLM" - Large language model add-on.
  3870  	SearchAddOns []string `json:"searchAddOns,omitempty"`
  3871  	// SearchTier: The search feature tier of this engine. Different tiers might
  3872  	// have different pricing. To learn more, check the pricing documentation.
  3873  	// Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.
  3874  	//
  3875  	// Possible values:
  3876  	//   "SEARCH_TIER_UNSPECIFIED" - Default value when the enum is unspecified.
  3877  	// This is invalid to use.
  3878  	//   "SEARCH_TIER_STANDARD" - Standard tier.
  3879  	//   "SEARCH_TIER_ENTERPRISE" - Enterprise tier.
  3880  	SearchTier string `json:"searchTier,omitempty"`
  3881  	// ForceSendFields is a list of field names (e.g. "SearchAddOns") to
  3882  	// unconditionally include in API requests. By default, fields with empty or
  3883  	// default values are omitted from API requests. See
  3884  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3885  	// details.
  3886  	ForceSendFields []string `json:"-"`
  3887  	// NullFields is a list of field names (e.g. "SearchAddOns") to include in API
  3888  	// requests with the JSON null value. By default, fields with empty values are
  3889  	// omitted from API requests. See
  3890  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3891  	NullFields []string `json:"-"`
  3892  }
  3893  
  3894  func (s *GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
  3895  	type NoMethod GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig
  3896  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3897  }
  3898  
  3899  // GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig:
  3900  // Additional config specs for a `similar-items` engine.
  3901  type GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig struct {
  3902  }
  3903  
  3904  // GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata: Metadata related
  3905  // to the progress of the EstimateDataSize operation. This is returned by the
  3906  // google.longrunning.Operation.metadata field.
  3907  type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata struct {
  3908  	// CreateTime: Operation create time.
  3909  	CreateTime string `json:"createTime,omitempty"`
  3910  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  3911  	// unconditionally include in API requests. By default, fields with empty or
  3912  	// default values are omitted from API requests. See
  3913  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3914  	// details.
  3915  	ForceSendFields []string `json:"-"`
  3916  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  3917  	// requests with the JSON null value. By default, fields with empty values are
  3918  	// omitted from API requests. See
  3919  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3920  	NullFields []string `json:"-"`
  3921  }
  3922  
  3923  func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata) MarshalJSON() ([]byte, error) {
  3924  	type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata
  3925  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3926  }
  3927  
  3928  // GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse: Response of the
  3929  // EstimateDataSize request. If the long running operation was successful, then
  3930  // this message is returned by the google.longrunning.Operations.response field
  3931  // if the operation was successful.
  3932  type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse struct {
  3933  	// DataSizeBytes: Data size in terms of bytes.
  3934  	DataSizeBytes int64 `json:"dataSizeBytes,omitempty,string"`
  3935  	// DocumentCount: Total number of documents.
  3936  	DocumentCount int64 `json:"documentCount,omitempty,string"`
  3937  	// ForceSendFields is a list of field names (e.g. "DataSizeBytes") to
  3938  	// unconditionally include in API requests. By default, fields with empty or
  3939  	// default values are omitted from API requests. See
  3940  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3941  	// details.
  3942  	ForceSendFields []string `json:"-"`
  3943  	// NullFields is a list of field names (e.g. "DataSizeBytes") to include in API
  3944  	// requests with the JSON null value. By default, fields with empty values are
  3945  	// omitted from API requests. See
  3946  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3947  	NullFields []string `json:"-"`
  3948  }
  3949  
  3950  func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse) MarshalJSON() ([]byte, error) {
  3951  	type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse
  3952  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3953  }
  3954  
  3955  // GoogleCloudDiscoveryengineV1alphaFieldConfig: Configurations for fields of a
  3956  // schema. For example, configuring a field is indexable, or searchable.
  3957  type GoogleCloudDiscoveryengineV1alphaFieldConfig struct {
  3958  	// AdvancedSiteSearchDataSources: If this field is set, only the corresponding
  3959  	// source will be indexed for this field. Otherwise, the values from different
  3960  	// sources are merged. Assuming a page with `` in meta tag, and `` in page map:
  3961  	// if this enum is set to METATAGS, we will only index ``; if this enum is not
  3962  	// set, we will merge them and index ``.
  3963  	//
  3964  	// Possible values:
  3965  	//   "ADVANCED_SITE_SEARCH_DATA_SOURCE_UNSPECIFIED" - Value used when unset.
  3966  	//   "METATAGS" - Retrieve value from meta tag.
  3967  	//   "PAGEMAP" - Retrieve value from page map.
  3968  	AdvancedSiteSearchDataSources []string `json:"advancedSiteSearchDataSources,omitempty"`
  3969  	// CompletableOption: If completable_option is COMPLETABLE_ENABLED, field
  3970  	// values are directly used and returned as suggestions for Autocomplete in
  3971  	// CompletionService.CompleteQuery. If completable_option is unset, the server
  3972  	// behavior defaults to COMPLETABLE_DISABLED for fields that support setting
  3973  	// completable options, which are just `string` fields. For those fields that
  3974  	// do not support setting completable options, the server will skip completable
  3975  	// option setting, and setting completable_option for those fields will throw
  3976  	// `INVALID_ARGUMENT` error.
  3977  	//
  3978  	// Possible values:
  3979  	//   "COMPLETABLE_OPTION_UNSPECIFIED" - Value used when unset.
  3980  	//   "COMPLETABLE_ENABLED" - Completable option enabled for a schema field.
  3981  	//   "COMPLETABLE_DISABLED" - Completable option disabled for a schema field.
  3982  	CompletableOption string `json:"completableOption,omitempty"`
  3983  	// DynamicFacetableOption: If dynamic_facetable_option is
  3984  	// DYNAMIC_FACETABLE_ENABLED, field values are available for dynamic facet.
  3985  	// Could only be DYNAMIC_FACETABLE_DISABLED if FieldConfig.indexable_option is
  3986  	// INDEXABLE_DISABLED. Otherwise, an `INVALID_ARGUMENT` error will be returned.
  3987  	// If dynamic_facetable_option is unset, the server behavior defaults to
  3988  	// DYNAMIC_FACETABLE_DISABLED for fields that support setting dynamic facetable
  3989  	// options. For those fields that do not support setting dynamic facetable
  3990  	// options, such as `object` and `boolean`, the server will skip dynamic
  3991  	// facetable option setting, and setting dynamic_facetable_option for those
  3992  	// fields will throw `INVALID_ARGUMENT` error.
  3993  	//
  3994  	// Possible values:
  3995  	//   "DYNAMIC_FACETABLE_OPTION_UNSPECIFIED" - Value used when unset.
  3996  	//   "DYNAMIC_FACETABLE_ENABLED" - Dynamic facetable option enabled for a
  3997  	// schema field.
  3998  	//   "DYNAMIC_FACETABLE_DISABLED" - Dynamic facetable option disabled for a
  3999  	// schema field.
  4000  	DynamicFacetableOption string `json:"dynamicFacetableOption,omitempty"`
  4001  	// FieldPath: Required. Field path of the schema field. For example: `title`,
  4002  	// `description`, `release_info.release_year`.
  4003  	FieldPath string `json:"fieldPath,omitempty"`
  4004  	// FieldType: Output only. Raw type of the field.
  4005  	//
  4006  	// Possible values:
  4007  	//   "FIELD_TYPE_UNSPECIFIED" - Field type is unspecified.
  4008  	//   "OBJECT" - Field value type is Object.
  4009  	//   "STRING" - Field value type is String.
  4010  	//   "NUMBER" - Field value type is Number.
  4011  	//   "INTEGER" - Field value type is Integer.
  4012  	//   "BOOLEAN" - Field value type is Boolean.
  4013  	//   "GEOLOCATION" - Field value type is Geolocation. Geolocation is expressed
  4014  	// as an object with the following keys: * `id`: a string representing the
  4015  	// location id * `longitude`: a number representing the longitude coordinate of
  4016  	// the location * `latitude`: a number repesenting the latitude coordinate of
  4017  	// the location * `address`: a string representing the full address of the
  4018  	// location `latitude` and `longitude` must always be provided together. At
  4019  	// least one of a) `address` or b) `latitude`-`longitude` pair must be
  4020  	// provided.
  4021  	//   "DATETIME" - Field value type is Datetime. Datetime can be expressed as
  4022  	// either: * a number representing milliseconds-since-the-epoch * a string
  4023  	// representing milliseconds-since-the-epoch. e.g. "1420070400001" * a string
  4024  	// representing the [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) date or
  4025  	// date and time. e.g. "2015-01-01" or "2015-01-01T12:10:30Z"
  4026  	FieldType string `json:"fieldType,omitempty"`
  4027  	// IndexableOption: If indexable_option is INDEXABLE_ENABLED, field values are
  4028  	// indexed so that it can be filtered or faceted in SearchService.Search. If
  4029  	// indexable_option is unset, the server behavior defaults to
  4030  	// INDEXABLE_DISABLED for fields that support setting indexable options. For
  4031  	// those fields that do not support setting indexable options, such as `object`
  4032  	// and `boolean` and key properties, the server will skip indexable_option
  4033  	// setting, and setting indexable_option for those fields will throw
  4034  	// `INVALID_ARGUMENT` error.
  4035  	//
  4036  	// Possible values:
  4037  	//   "INDEXABLE_OPTION_UNSPECIFIED" - Value used when unset.
  4038  	//   "INDEXABLE_ENABLED" - Indexable option enabled for a schema field.
  4039  	//   "INDEXABLE_DISABLED" - Indexable option disabled for a schema field.
  4040  	IndexableOption string `json:"indexableOption,omitempty"`
  4041  	// KeyPropertyType: Output only. Type of the key property that this field is
  4042  	// mapped to. Empty string if this is not annotated as mapped to a key
  4043  	// property. Example types are `title`, `description`. Full list is defined by
  4044  	// `keyPropertyMapping` in the schema field annotation. If the schema field has
  4045  	// a `KeyPropertyMapping` annotation, `indexable_option` and
  4046  	// `searchable_option` of this field cannot be modified.
  4047  	KeyPropertyType string `json:"keyPropertyType,omitempty"`
  4048  	// RecsFilterableOption: If recs_filterable_option is FILTERABLE_ENABLED, field
  4049  	// values are filterable by filter expression in
  4050  	// RecommendationService.Recommend. If FILTERABLE_ENABLED but the field type is
  4051  	// numerical, field values are not filterable by text queries in
  4052  	// RecommendationService.Recommend. Only textual fields are supported. If
  4053  	// recs_filterable_option is unset, the default setting is FILTERABLE_DISABLED
  4054  	// for fields that support setting filterable options. When a field set to
  4055  	// [FILTERABLE_DISABLED] is filtered, a warning is generated and an empty
  4056  	// result is returned.
  4057  	//
  4058  	// Possible values:
  4059  	//   "FILTERABLE_OPTION_UNSPECIFIED" - Value used when unset.
  4060  	//   "FILTERABLE_ENABLED" - Filterable option enabled for a schema field.
  4061  	//   "FILTERABLE_DISABLED" - Filterable option disabled for a schema field.
  4062  	RecsFilterableOption string `json:"recsFilterableOption,omitempty"`
  4063  	// RetrievableOption: If retrievable_option is RETRIEVABLE_ENABLED, field
  4064  	// values are included in the search results. If retrievable_option is unset,
  4065  	// the server behavior defaults to RETRIEVABLE_DISABLED for fields that support
  4066  	// setting retrievable options. For those fields that do not support setting
  4067  	// retrievable options, such as `object` and `boolean`, the server will skip
  4068  	// retrievable option setting, and setting retrievable_option for those fields
  4069  	// will throw `INVALID_ARGUMENT` error.
  4070  	//
  4071  	// Possible values:
  4072  	//   "RETRIEVABLE_OPTION_UNSPECIFIED" - Value used when unset.
  4073  	//   "RETRIEVABLE_ENABLED" - Retrievable option enabled for a schema field.
  4074  	//   "RETRIEVABLE_DISABLED" - Retrievable option disabled for a schema field.
  4075  	RetrievableOption string `json:"retrievableOption,omitempty"`
  4076  	// SearchableOption: If searchable_option is SEARCHABLE_ENABLED, field values
  4077  	// are searchable by text queries in SearchService.Search. If
  4078  	// SEARCHABLE_ENABLED but field type is numerical, field values will not be
  4079  	// searchable by text queries in SearchService.Search, as there are no text
  4080  	// values associated to numerical fields. If searchable_option is unset, the
  4081  	// server behavior defaults to SEARCHABLE_DISABLED for fields that support
  4082  	// setting searchable options. Only `string` fields that have no key property
  4083  	// mapping support setting searchable_option. For those fields that do not
  4084  	// support setting searchable options, the server will skip searchable option
  4085  	// setting, and setting searchable_option for those fields will throw
  4086  	// `INVALID_ARGUMENT` error.
  4087  	//
  4088  	// Possible values:
  4089  	//   "SEARCHABLE_OPTION_UNSPECIFIED" - Value used when unset.
  4090  	//   "SEARCHABLE_ENABLED" - Searchable option enabled for a schema field.
  4091  	//   "SEARCHABLE_DISABLED" - Searchable option disabled for a schema field.
  4092  	SearchableOption string `json:"searchableOption,omitempty"`
  4093  	// ForceSendFields is a list of field names (e.g.
  4094  	// "AdvancedSiteSearchDataSources") to unconditionally include in API requests.
  4095  	// By default, fields with empty or default values are omitted from API
  4096  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  4097  	// for more details.
  4098  	ForceSendFields []string `json:"-"`
  4099  	// NullFields is a list of field names (e.g. "AdvancedSiteSearchDataSources")
  4100  	// to include in API requests with the JSON null value. By default, fields with
  4101  	// empty values are omitted from API requests. See
  4102  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4103  	NullFields []string `json:"-"`
  4104  }
  4105  
  4106  func (s *GoogleCloudDiscoveryengineV1alphaFieldConfig) MarshalJSON() ([]byte, error) {
  4107  	type NoMethod GoogleCloudDiscoveryengineV1alphaFieldConfig
  4108  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4109  }
  4110  
  4111  // GoogleCloudDiscoveryengineV1alphaIdpConfig: Identity Provider Config.
  4112  type GoogleCloudDiscoveryengineV1alphaIdpConfig struct {
  4113  	// ExternalIdpConfig: External Identity provider config.
  4114  	ExternalIdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig `json:"externalIdpConfig,omitempty"`
  4115  	// IdpType: Identity provider type configured.
  4116  	//
  4117  	// Possible values:
  4118  	//   "IDP_TYPE_UNSPECIFIED" - Default value. ACL search not enabled.
  4119  	//   "GSUITE" - Google 1P provider.
  4120  	//   "THIRD_PARTY" - Third party provider.
  4121  	IdpType string `json:"idpType,omitempty"`
  4122  	// ForceSendFields is a list of field names (e.g. "ExternalIdpConfig") to
  4123  	// unconditionally include in API requests. By default, fields with empty or
  4124  	// default values are omitted from API requests. See
  4125  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4126  	// details.
  4127  	ForceSendFields []string `json:"-"`
  4128  	// NullFields is a list of field names (e.g. "ExternalIdpConfig") to include in
  4129  	// API requests with the JSON null value. By default, fields with empty values
  4130  	// are omitted from API requests. See
  4131  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4132  	NullFields []string `json:"-"`
  4133  }
  4134  
  4135  func (s *GoogleCloudDiscoveryengineV1alphaIdpConfig) MarshalJSON() ([]byte, error) {
  4136  	type NoMethod GoogleCloudDiscoveryengineV1alphaIdpConfig
  4137  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4138  }
  4139  
  4140  // GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig: Third party IDP
  4141  // Config.
  4142  type GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig struct {
  4143  	// WorkforcePoolName: Workforce pool name. Example:
  4144  	// "locations/global/workforcePools/pool_id"
  4145  	WorkforcePoolName string `json:"workforcePoolName,omitempty"`
  4146  	// ForceSendFields is a list of field names (e.g. "WorkforcePoolName") to
  4147  	// unconditionally include in API requests. By default, fields with empty or
  4148  	// default values are omitted from API requests. See
  4149  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4150  	// details.
  4151  	ForceSendFields []string `json:"-"`
  4152  	// NullFields is a list of field names (e.g. "WorkforcePoolName") to include in
  4153  	// API requests with the JSON null value. By default, fields with empty values
  4154  	// are omitted from API requests. See
  4155  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4156  	NullFields []string `json:"-"`
  4157  }
  4158  
  4159  func (s *GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig) MarshalJSON() ([]byte, error) {
  4160  	type NoMethod GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig
  4161  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4162  }
  4163  
  4164  // GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata: Metadata related
  4165  // to the progress of the ImportDocuments operation. This is returned by the
  4166  // google.longrunning.Operation.metadata field.
  4167  type GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata struct {
  4168  	// CreateTime: Operation create time.
  4169  	CreateTime string `json:"createTime,omitempty"`
  4170  	// FailureCount: Count of entries that encountered errors while processing.
  4171  	FailureCount int64 `json:"failureCount,omitempty,string"`
  4172  	// SuccessCount: Count of entries that were processed successfully.
  4173  	SuccessCount int64 `json:"successCount,omitempty,string"`
  4174  	// TotalCount: Total count of entries that were processed.
  4175  	TotalCount int64 `json:"totalCount,omitempty,string"`
  4176  	// UpdateTime: Operation last update time. If the operation is done, this is
  4177  	// also the finish time.
  4178  	UpdateTime string `json:"updateTime,omitempty"`
  4179  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4180  	// unconditionally include in API requests. By default, fields with empty or
  4181  	// default values are omitted from API requests. See
  4182  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4183  	// details.
  4184  	ForceSendFields []string `json:"-"`
  4185  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4186  	// requests with the JSON null value. By default, fields with empty values are
  4187  	// omitted from API requests. See
  4188  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4189  	NullFields []string `json:"-"`
  4190  }
  4191  
  4192  func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
  4193  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
  4194  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4195  }
  4196  
  4197  // GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse: Response of the
  4198  // ImportDocumentsRequest. If the long running operation is done, then this
  4199  // message is returned by the google.longrunning.Operations.response field if
  4200  // the operation was successful.
  4201  type GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse struct {
  4202  	// ErrorConfig: Echoes the destination for the complete errors in the request
  4203  	// if set.
  4204  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
  4205  	// ErrorSamples: A sample of errors encountered while processing the request.
  4206  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  4207  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  4208  	// unconditionally include in API requests. By default, fields with empty or
  4209  	// default values are omitted from API requests. See
  4210  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4211  	// details.
  4212  	ForceSendFields []string `json:"-"`
  4213  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  4214  	// requests with the JSON null value. By default, fields with empty values are
  4215  	// omitted from API requests. See
  4216  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4217  	NullFields []string `json:"-"`
  4218  }
  4219  
  4220  func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  4221  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse
  4222  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4223  }
  4224  
  4225  // GoogleCloudDiscoveryengineV1alphaImportErrorConfig: Configuration of
  4226  // destination for Import related errors.
  4227  type GoogleCloudDiscoveryengineV1alphaImportErrorConfig struct {
  4228  	// GcsPrefix: Cloud Storage prefix for import errors. This must be an empty,
  4229  	// existing Cloud Storage directory. Import errors are written to sharded files
  4230  	// in this directory, one per line, as a JSON-encoded `google.rpc.Status`
  4231  	// message.
  4232  	GcsPrefix string `json:"gcsPrefix,omitempty"`
  4233  	// ForceSendFields is a list of field names (e.g. "GcsPrefix") to
  4234  	// unconditionally include in API requests. By default, fields with empty or
  4235  	// default values are omitted from API requests. See
  4236  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4237  	// details.
  4238  	ForceSendFields []string `json:"-"`
  4239  	// NullFields is a list of field names (e.g. "GcsPrefix") to include in API
  4240  	// requests with the JSON null value. By default, fields with empty values are
  4241  	// omitted from API requests. See
  4242  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4243  	NullFields []string `json:"-"`
  4244  }
  4245  
  4246  func (s *GoogleCloudDiscoveryengineV1alphaImportErrorConfig) MarshalJSON() ([]byte, error) {
  4247  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportErrorConfig
  4248  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4249  }
  4250  
  4251  // GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata:
  4252  // Metadata related to the progress of the ImportSuggestionDenyListEntries
  4253  // operation. This is returned by the google.longrunning.Operation.metadata
  4254  // field.
  4255  type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata struct {
  4256  	// CreateTime: Operation create time.
  4257  	CreateTime string `json:"createTime,omitempty"`
  4258  	// UpdateTime: Operation last update time. If the operation is done, this is
  4259  	// also the finish time.
  4260  	UpdateTime string `json:"updateTime,omitempty"`
  4261  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4262  	// unconditionally include in API requests. By default, fields with empty or
  4263  	// default values are omitted from API requests. See
  4264  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4265  	// details.
  4266  	ForceSendFields []string `json:"-"`
  4267  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4268  	// requests with the JSON null value. By default, fields with empty values are
  4269  	// omitted from API requests. See
  4270  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4271  	NullFields []string `json:"-"`
  4272  }
  4273  
  4274  func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  4275  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata
  4276  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4277  }
  4278  
  4279  // GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse:
  4280  // Response message for CompletionService.ImportSuggestionDenyListEntries
  4281  // method.
  4282  type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse struct {
  4283  	// ErrorSamples: A sample of errors encountered while processing the request.
  4284  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  4285  	// FailedEntriesCount: Count of deny list entries that failed to be imported.
  4286  	FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
  4287  	// ImportedEntriesCount: Count of deny list entries successfully imported.
  4288  	ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
  4289  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  4290  	// unconditionally include in API requests. By default, fields with empty or
  4291  	// default values are omitted from API requests. See
  4292  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4293  	// details.
  4294  	ForceSendFields []string `json:"-"`
  4295  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  4296  	// requests with the JSON null value. By default, fields with empty values are
  4297  	// omitted from API requests. See
  4298  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4299  	NullFields []string `json:"-"`
  4300  }
  4301  
  4302  func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  4303  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse
  4304  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4305  }
  4306  
  4307  // GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata: Metadata related
  4308  // to the progress of the Import operation. This is returned by the
  4309  // google.longrunning.Operation.metadata field.
  4310  type GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata struct {
  4311  	// CreateTime: Operation create time.
  4312  	CreateTime string `json:"createTime,omitempty"`
  4313  	// FailureCount: Count of entries that encountered errors while processing.
  4314  	FailureCount int64 `json:"failureCount,omitempty,string"`
  4315  	// SuccessCount: Count of entries that were processed successfully.
  4316  	SuccessCount int64 `json:"successCount,omitempty,string"`
  4317  	// UpdateTime: Operation last update time. If the operation is done, this is
  4318  	// also the finish time.
  4319  	UpdateTime string `json:"updateTime,omitempty"`
  4320  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4321  	// unconditionally include in API requests. By default, fields with empty or
  4322  	// default values are omitted from API requests. See
  4323  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4324  	// details.
  4325  	ForceSendFields []string `json:"-"`
  4326  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4327  	// requests with the JSON null value. By default, fields with empty values are
  4328  	// omitted from API requests. See
  4329  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4330  	NullFields []string `json:"-"`
  4331  }
  4332  
  4333  func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
  4334  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata
  4335  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4336  }
  4337  
  4338  // GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse: Response of the
  4339  // ImportUserEventsRequest. If the long running operation was successful, then
  4340  // this message is returned by the google.longrunning.Operations.response field
  4341  // if the operation was successful.
  4342  type GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse struct {
  4343  	// ErrorConfig: Echoes the destination for the complete errors if this field
  4344  	// was set in the request.
  4345  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
  4346  	// ErrorSamples: A sample of errors encountered while processing the request.
  4347  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  4348  	// JoinedEventsCount: Count of user events imported with complete existing
  4349  	// Documents.
  4350  	JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
  4351  	// UnjoinedEventsCount: Count of user events imported, but with Document
  4352  	// information not found in the existing Branch.
  4353  	UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
  4354  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  4355  	// unconditionally include in API requests. By default, fields with empty or
  4356  	// default values are omitted from API requests. See
  4357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4358  	// details.
  4359  	ForceSendFields []string `json:"-"`
  4360  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  4361  	// requests with the JSON null value. By default, fields with empty values are
  4362  	// omitted from API requests. See
  4363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4364  	NullFields []string `json:"-"`
  4365  }
  4366  
  4367  func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse) MarshalJSON() ([]byte, error) {
  4368  	type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse
  4369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4370  }
  4371  
  4372  // GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse: Response message
  4373  // for SearchTuningService.ListCustomModels method.
  4374  type GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse struct {
  4375  	// Models: List of custom tuning models.
  4376  	Models []*GoogleCloudDiscoveryengineV1alphaCustomTuningModel `json:"models,omitempty"`
  4377  	// ForceSendFields is a list of field names (e.g. "Models") to unconditionally
  4378  	// include in API requests. By default, fields with empty or default values are
  4379  	// omitted from API requests. See
  4380  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4381  	// details.
  4382  	ForceSendFields []string `json:"-"`
  4383  	// NullFields is a list of field names (e.g. "Models") to include in API
  4384  	// requests with the JSON null value. By default, fields with empty values are
  4385  	// omitted from API requests. See
  4386  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4387  	NullFields []string `json:"-"`
  4388  }
  4389  
  4390  func (s *GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse) MarshalJSON() ([]byte, error) {
  4391  	type NoMethod GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
  4392  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4393  }
  4394  
  4395  // GoogleCloudDiscoveryengineV1alphaProject: Metadata and configurations for a
  4396  // Google Cloud project in the service.
  4397  type GoogleCloudDiscoveryengineV1alphaProject struct {
  4398  	// CreateTime: Output only. The timestamp when this project is created.
  4399  	CreateTime string `json:"createTime,omitempty"`
  4400  	// Name: Output only. Full resource name of the project, for example
  4401  	// `projects/{project_number}`. Note that when making requests, project number
  4402  	// and project id are both acceptable, but the server will always respond in
  4403  	// project number.
  4404  	Name string `json:"name,omitempty"`
  4405  	// ProvisionCompletionTime: Output only. The timestamp when this project is
  4406  	// successfully provisioned. Empty value means this project is still
  4407  	// provisioning and is not ready for use.
  4408  	ProvisionCompletionTime string `json:"provisionCompletionTime,omitempty"`
  4409  	// ServiceTermsMap: Output only. A map of terms of services. The key is the
  4410  	// `id` of ServiceTerms.
  4411  	ServiceTermsMap map[string]GoogleCloudDiscoveryengineV1alphaProjectServiceTerms `json:"serviceTermsMap,omitempty"`
  4412  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4413  	// unconditionally include in API requests. By default, fields with empty or
  4414  	// default values are omitted from API requests. See
  4415  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4416  	// details.
  4417  	ForceSendFields []string `json:"-"`
  4418  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4419  	// requests with the JSON null value. By default, fields with empty values are
  4420  	// omitted from API requests. See
  4421  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4422  	NullFields []string `json:"-"`
  4423  }
  4424  
  4425  func (s *GoogleCloudDiscoveryengineV1alphaProject) MarshalJSON() ([]byte, error) {
  4426  	type NoMethod GoogleCloudDiscoveryengineV1alphaProject
  4427  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4428  }
  4429  
  4430  // GoogleCloudDiscoveryengineV1alphaProjectServiceTerms: Metadata about the
  4431  // terms of service.
  4432  type GoogleCloudDiscoveryengineV1alphaProjectServiceTerms struct {
  4433  	// AcceptTime: The last time when the project agreed to the terms of service.
  4434  	AcceptTime string `json:"acceptTime,omitempty"`
  4435  	// DeclineTime: The last time when the project declined or revoked the
  4436  	// agreement to terms of service.
  4437  	DeclineTime string `json:"declineTime,omitempty"`
  4438  	// Id: The unique identifier of this terms of service. Available terms: *
  4439  	// `GA_DATA_USE_TERMS`: Terms for data use
  4440  	// (https://cloud.google.com/retail/data-use-terms). When using this as `id`,
  4441  	// the acceptable version to provide is `2022-11-23`.
  4442  	Id string `json:"id,omitempty"`
  4443  	// State: Whether the project has accepted/rejected the service terms or it is
  4444  	// still pending.
  4445  	//
  4446  	// Possible values:
  4447  	//   "STATE_UNSPECIFIED" - The default value of the enum. This value is not
  4448  	// actually used.
  4449  	//   "TERMS_ACCEPTED" - The project has given consent to the terms of service.
  4450  	//   "TERMS_PENDING" - The project is pending to review and accept the terms of
  4451  	// service.
  4452  	//   "TERMS_DECLINED" - The project has declined or revoked the agreement to
  4453  	// terms of service.
  4454  	State string `json:"state,omitempty"`
  4455  	// Version: The version string of the terms of service. For acceptable values,
  4456  	// see the comments for id above.
  4457  	Version string `json:"version,omitempty"`
  4458  	// ForceSendFields is a list of field names (e.g. "AcceptTime") to
  4459  	// unconditionally include in API requests. By default, fields with empty or
  4460  	// default values are omitted from API requests. See
  4461  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4462  	// details.
  4463  	ForceSendFields []string `json:"-"`
  4464  	// NullFields is a list of field names (e.g. "AcceptTime") to include in API
  4465  	// requests with the JSON null value. By default, fields with empty values are
  4466  	// omitted from API requests. See
  4467  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4468  	NullFields []string `json:"-"`
  4469  }
  4470  
  4471  func (s *GoogleCloudDiscoveryengineV1alphaProjectServiceTerms) MarshalJSON() ([]byte, error) {
  4472  	type NoMethod GoogleCloudDiscoveryengineV1alphaProjectServiceTerms
  4473  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4474  }
  4475  
  4476  // GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata: Metadata
  4477  // associated with a project provision operation.
  4478  type GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata struct {
  4479  }
  4480  
  4481  // GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata: Metadata related to
  4482  // the progress of the PurgeDocuments operation. This will be returned by the
  4483  // google.longrunning.Operation.metadata field.
  4484  type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata struct {
  4485  	// CreateTime: Operation create time.
  4486  	CreateTime string `json:"createTime,omitempty"`
  4487  	// FailureCount: Count of entries that encountered errors while processing.
  4488  	FailureCount int64 `json:"failureCount,omitempty,string"`
  4489  	// IgnoredCount: Count of entries that were ignored as entries were not found.
  4490  	IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
  4491  	// SuccessCount: Count of entries that were deleted successfully.
  4492  	SuccessCount int64 `json:"successCount,omitempty,string"`
  4493  	// UpdateTime: Operation last update time. If the operation is done, this is
  4494  	// also the finish time.
  4495  	UpdateTime string `json:"updateTime,omitempty"`
  4496  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4497  	// unconditionally include in API requests. By default, fields with empty or
  4498  	// default values are omitted from API requests. See
  4499  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4500  	// details.
  4501  	ForceSendFields []string `json:"-"`
  4502  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4503  	// requests with the JSON null value. By default, fields with empty values are
  4504  	// omitted from API requests. See
  4505  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4506  	NullFields []string `json:"-"`
  4507  }
  4508  
  4509  func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
  4510  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
  4511  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4512  }
  4513  
  4514  // GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse: Response message
  4515  // for DocumentService.PurgeDocuments method. If the long running operation is
  4516  // successfully done, then this message is returned by the
  4517  // google.longrunning.Operations.response field.
  4518  type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse struct {
  4519  	// PurgeCount: The total count of documents purged as a result of the
  4520  	// operation.
  4521  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  4522  	// PurgeSample: A sample of document names that will be deleted. Only populated
  4523  	// if `force` is set to false. A max of 100 names will be returned and the
  4524  	// names are chosen at random.
  4525  	PurgeSample []string `json:"purgeSample,omitempty"`
  4526  	// ForceSendFields is a list of field names (e.g. "PurgeCount") to
  4527  	// unconditionally include in API requests. By default, fields with empty or
  4528  	// default values are omitted from API requests. See
  4529  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4530  	// details.
  4531  	ForceSendFields []string `json:"-"`
  4532  	// NullFields is a list of field names (e.g. "PurgeCount") to include in API
  4533  	// requests with the JSON null value. By default, fields with empty values are
  4534  	// omitted from API requests. See
  4535  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4536  	NullFields []string `json:"-"`
  4537  }
  4538  
  4539  func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
  4540  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse
  4541  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4542  }
  4543  
  4544  // GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata:
  4545  // Metadata related to the progress of the PurgeSuggestionDenyListEntries
  4546  // operation. This is returned by the google.longrunning.Operation.metadata
  4547  // field.
  4548  type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata struct {
  4549  	// CreateTime: Operation create time.
  4550  	CreateTime string `json:"createTime,omitempty"`
  4551  	// UpdateTime: Operation last update time. If the operation is done, this is
  4552  	// also the finish time.
  4553  	UpdateTime string `json:"updateTime,omitempty"`
  4554  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4555  	// unconditionally include in API requests. By default, fields with empty or
  4556  	// default values are omitted from API requests. See
  4557  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4558  	// details.
  4559  	ForceSendFields []string `json:"-"`
  4560  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4561  	// requests with the JSON null value. By default, fields with empty values are
  4562  	// omitted from API requests. See
  4563  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4564  	NullFields []string `json:"-"`
  4565  }
  4566  
  4567  func (s *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  4568  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata
  4569  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4570  }
  4571  
  4572  // GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse:
  4573  // Response message for CompletionService.PurgeSuggestionDenyListEntries
  4574  // method.
  4575  type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse struct {
  4576  	// ErrorSamples: A sample of errors encountered while processing the request.
  4577  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  4578  	// PurgeCount: Number of suggestion deny list entries purged.
  4579  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  4580  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  4581  	// unconditionally include in API requests. By default, fields with empty or
  4582  	// default values are omitted from API requests. See
  4583  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4584  	// details.
  4585  	ForceSendFields []string `json:"-"`
  4586  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  4587  	// requests with the JSON null value. By default, fields with empty values are
  4588  	// omitted from API requests. See
  4589  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4590  	NullFields []string `json:"-"`
  4591  }
  4592  
  4593  func (s *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  4594  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse
  4595  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4596  }
  4597  
  4598  // GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata: Metadata related
  4599  // to the progress of the PurgeUserEvents operation. This will be returned by
  4600  // the google.longrunning.Operation.metadata field.
  4601  type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata struct {
  4602  	// CreateTime: Operation create time.
  4603  	CreateTime string `json:"createTime,omitempty"`
  4604  	// FailureCount: Count of entries that encountered errors while processing.
  4605  	FailureCount int64 `json:"failureCount,omitempty,string"`
  4606  	// SuccessCount: Count of entries that were deleted successfully.
  4607  	SuccessCount int64 `json:"successCount,omitempty,string"`
  4608  	// UpdateTime: Operation last update time. If the operation is done, this is
  4609  	// also the finish time.
  4610  	UpdateTime string `json:"updateTime,omitempty"`
  4611  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4612  	// unconditionally include in API requests. By default, fields with empty or
  4613  	// default values are omitted from API requests. See
  4614  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4615  	// details.
  4616  	ForceSendFields []string `json:"-"`
  4617  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4618  	// requests with the JSON null value. By default, fields with empty values are
  4619  	// omitted from API requests. See
  4620  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4621  	NullFields []string `json:"-"`
  4622  }
  4623  
  4624  func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata) MarshalJSON() ([]byte, error) {
  4625  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata
  4626  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4627  }
  4628  
  4629  // GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse: Response of the
  4630  // PurgeUserEventsRequest. If the long running operation is successfully done,
  4631  // then this message is returned by the google.longrunning.Operations.response
  4632  // field.
  4633  type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse struct {
  4634  	// PurgeCount: The total count of events purged as a result of the operation.
  4635  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  4636  	// ForceSendFields is a list of field names (e.g. "PurgeCount") to
  4637  	// unconditionally include in API requests. By default, fields with empty or
  4638  	// default values are omitted from API requests. See
  4639  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4640  	// details.
  4641  	ForceSendFields []string `json:"-"`
  4642  	// NullFields is a list of field names (e.g. "PurgeCount") to include in API
  4643  	// requests with the JSON null value. By default, fields with empty values are
  4644  	// omitted from API requests. See
  4645  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4646  	NullFields []string `json:"-"`
  4647  }
  4648  
  4649  func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse) MarshalJSON() ([]byte, error) {
  4650  	type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse
  4651  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4652  }
  4653  
  4654  // GoogleCloudDiscoveryengineV1alphaQuery: Defines a user inputed query.
  4655  type GoogleCloudDiscoveryengineV1alphaQuery struct {
  4656  	// QueryId: Unique Id for the query.
  4657  	QueryId string `json:"queryId,omitempty"`
  4658  	// Text: Plain text.
  4659  	Text string `json:"text,omitempty"`
  4660  	// ForceSendFields is a list of field names (e.g. "QueryId") to unconditionally
  4661  	// include in API requests. By default, fields with empty or default values are
  4662  	// omitted from API requests. See
  4663  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4664  	// details.
  4665  	ForceSendFields []string `json:"-"`
  4666  	// NullFields is a list of field names (e.g. "QueryId") to include in API
  4667  	// requests with the JSON null value. By default, fields with empty values are
  4668  	// omitted from API requests. See
  4669  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4670  	NullFields []string `json:"-"`
  4671  }
  4672  
  4673  func (s *GoogleCloudDiscoveryengineV1alphaQuery) MarshalJSON() ([]byte, error) {
  4674  	type NoMethod GoogleCloudDiscoveryengineV1alphaQuery
  4675  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4676  }
  4677  
  4678  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata: Metadata related to
  4679  // the progress of the SiteSearchEngineService.RecrawlUris operation. This will
  4680  // be returned by the google.longrunning.Operation.metadata field.
  4681  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata struct {
  4682  	// CreateTime: Operation create time.
  4683  	CreateTime string `json:"createTime,omitempty"`
  4684  	// InvalidUris: Unique URIs in the request that don't match any TargetSite in
  4685  	// the DataStore, only match TargetSites that haven't been fully indexed, or
  4686  	// match a TargetSite with type EXCLUDE.
  4687  	InvalidUris []string `json:"invalidUris,omitempty"`
  4688  	// PendingCount: Total number of URIs that have yet to be crawled.
  4689  	PendingCount int64 `json:"pendingCount,omitempty"`
  4690  	// QuotaExceededCount: Total number of URIs that were rejected due to
  4691  	// insufficient indexing resources.
  4692  	QuotaExceededCount int64 `json:"quotaExceededCount,omitempty"`
  4693  	// SuccessCount: Total number of URIs that have been crawled so far.
  4694  	SuccessCount int64 `json:"successCount,omitempty"`
  4695  	// UpdateTime: Operation last update time. If the operation is done, this is
  4696  	// also the finish time.
  4697  	UpdateTime string `json:"updateTime,omitempty"`
  4698  	// ValidUrisCount: Total number of unique URIs in the request that are not in
  4699  	// invalid_uris.
  4700  	ValidUrisCount int64 `json:"validUrisCount,omitempty"`
  4701  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  4702  	// unconditionally include in API requests. By default, fields with empty or
  4703  	// default values are omitted from API requests. See
  4704  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4705  	// details.
  4706  	ForceSendFields []string `json:"-"`
  4707  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  4708  	// requests with the JSON null value. By default, fields with empty values are
  4709  	// omitted from API requests. See
  4710  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4711  	NullFields []string `json:"-"`
  4712  }
  4713  
  4714  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata) MarshalJSON() ([]byte, error) {
  4715  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata
  4716  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4717  }
  4718  
  4719  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse: Response message for
  4720  // SiteSearchEngineService.RecrawlUris method.
  4721  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse struct {
  4722  	// FailedUris: URIs that were not crawled before the LRO terminated.
  4723  	FailedUris []string `json:"failedUris,omitempty"`
  4724  	// FailureSamples: Details for a sample of up to 10 `failed_uris`.
  4725  	FailureSamples []*GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo `json:"failureSamples,omitempty"`
  4726  	// ForceSendFields is a list of field names (e.g. "FailedUris") to
  4727  	// unconditionally include in API requests. By default, fields with empty or
  4728  	// default values are omitted from API requests. See
  4729  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4730  	// details.
  4731  	ForceSendFields []string `json:"-"`
  4732  	// NullFields is a list of field names (e.g. "FailedUris") to include in API
  4733  	// requests with the JSON null value. By default, fields with empty values are
  4734  	// omitted from API requests. See
  4735  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4736  	NullFields []string `json:"-"`
  4737  }
  4738  
  4739  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse) MarshalJSON() ([]byte, error) {
  4740  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse
  4741  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4742  }
  4743  
  4744  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo: Details
  4745  // about why a particular URI failed to be crawled. Each FailureInfo contains
  4746  // one FailureReason per CorpusType.
  4747  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo struct {
  4748  	// FailureReasons: List of failure reasons by corpus type (e.g. desktop,
  4749  	// mobile).
  4750  	FailureReasons []*GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason `json:"failureReasons,omitempty"`
  4751  	// Uri: URI that failed to be crawled.
  4752  	Uri string `json:"uri,omitempty"`
  4753  	// ForceSendFields is a list of field names (e.g. "FailureReasons") to
  4754  	// unconditionally include in API requests. By default, fields with empty or
  4755  	// default values are omitted from API requests. See
  4756  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4757  	// details.
  4758  	ForceSendFields []string `json:"-"`
  4759  	// NullFields is a list of field names (e.g. "FailureReasons") to include in
  4760  	// API requests with the JSON null value. By default, fields with empty values
  4761  	// are omitted from API requests. See
  4762  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4763  	NullFields []string `json:"-"`
  4764  }
  4765  
  4766  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo) MarshalJSON() ([]byte, error) {
  4767  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo
  4768  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4769  }
  4770  
  4771  // GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason:
  4772  //
  4773  //	Details about why crawling failed for a particular CorpusType, e.g.,
  4774  //
  4775  // DESKTOP and MOBILE crawling may fail for different reasons.
  4776  type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason struct {
  4777  	// CorpusType: DESKTOP, MOBILE, or CORPUS_TYPE_UNSPECIFIED.
  4778  	//
  4779  	// Possible values:
  4780  	//   "CORPUS_TYPE_UNSPECIFIED" - Default value.
  4781  	//   "DESKTOP" - Denotes a crawling attempt for the desktop version of a page.
  4782  	//   "MOBILE" - Denotes a crawling attempt for the mobile version of a page.
  4783  	CorpusType string `json:"corpusType,omitempty"`
  4784  	// ErrorMessage: Reason why the URI was not crawled.
  4785  	ErrorMessage string `json:"errorMessage,omitempty"`
  4786  	// ForceSendFields is a list of field names (e.g. "CorpusType") to
  4787  	// unconditionally include in API requests. By default, fields with empty or
  4788  	// default values are omitted from API requests. See
  4789  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4790  	// details.
  4791  	ForceSendFields []string `json:"-"`
  4792  	// NullFields is a list of field names (e.g. "CorpusType") to include in API
  4793  	// requests with the JSON null value. By default, fields with empty values are
  4794  	// omitted from API requests. See
  4795  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4796  	NullFields []string `json:"-"`
  4797  }
  4798  
  4799  func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason) MarshalJSON() ([]byte, error) {
  4800  	type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason
  4801  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4802  }
  4803  
  4804  // GoogleCloudDiscoveryengineV1alphaSchema: Defines the structure and layout of
  4805  // a type of document data.
  4806  type GoogleCloudDiscoveryengineV1alphaSchema struct {
  4807  	// FieldConfigs: Output only. Configurations for fields of the schema.
  4808  	FieldConfigs []*GoogleCloudDiscoveryengineV1alphaFieldConfig `json:"fieldConfigs,omitempty"`
  4809  	// JsonSchema: The JSON representation of the schema.
  4810  	JsonSchema string `json:"jsonSchema,omitempty"`
  4811  	// Name: Immutable. The full resource name of the schema, in the format of
  4812  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  4813  	// {data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string
  4814  	// with a length limit of 1024 characters.
  4815  	Name string `json:"name,omitempty"`
  4816  	// StructSchema: The structured representation of the schema.
  4817  	StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
  4818  	// ForceSendFields is a list of field names (e.g. "FieldConfigs") to
  4819  	// unconditionally include in API requests. By default, fields with empty or
  4820  	// default values are omitted from API requests. See
  4821  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4822  	// details.
  4823  	ForceSendFields []string `json:"-"`
  4824  	// NullFields is a list of field names (e.g. "FieldConfigs") to include in API
  4825  	// requests with the JSON null value. By default, fields with empty values are
  4826  	// omitted from API requests. See
  4827  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4828  	NullFields []string `json:"-"`
  4829  }
  4830  
  4831  func (s *GoogleCloudDiscoveryengineV1alphaSchema) MarshalJSON() ([]byte, error) {
  4832  	type NoMethod GoogleCloudDiscoveryengineV1alphaSchema
  4833  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4834  }
  4835  
  4836  // GoogleCloudDiscoveryengineV1alphaSession: External session proto definition.
  4837  type GoogleCloudDiscoveryengineV1alphaSession struct {
  4838  	// EndTime: Output only. The time the session finished.
  4839  	EndTime string `json:"endTime,omitempty"`
  4840  	// Name: Immutable. Fully qualified name
  4841  	// `projects/{project}/locations/global/collections/{collection}/engines/{engine
  4842  	// }/sessions/*`
  4843  	Name string `json:"name,omitempty"`
  4844  	// StartTime: Output only. The time the session started.
  4845  	StartTime string `json:"startTime,omitempty"`
  4846  	// State: The state of the session.
  4847  	//
  4848  	// Possible values:
  4849  	//   "STATE_UNSPECIFIED" - State is unspecified.
  4850  	//   "IN_PROGRESS" - The session is currently open.
  4851  	State string `json:"state,omitempty"`
  4852  	// Turns: Turns.
  4853  	Turns []*GoogleCloudDiscoveryengineV1alphaSessionTurn `json:"turns,omitempty"`
  4854  	// UserPseudoId: A unique identifier for tracking users.
  4855  	UserPseudoId string `json:"userPseudoId,omitempty"`
  4856  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  4857  	// include in API requests. By default, fields with empty or default values are
  4858  	// omitted from API requests. See
  4859  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4860  	// details.
  4861  	ForceSendFields []string `json:"-"`
  4862  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  4863  	// requests with the JSON null value. By default, fields with empty values are
  4864  	// omitted from API requests. See
  4865  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4866  	NullFields []string `json:"-"`
  4867  }
  4868  
  4869  func (s *GoogleCloudDiscoveryengineV1alphaSession) MarshalJSON() ([]byte, error) {
  4870  	type NoMethod GoogleCloudDiscoveryengineV1alphaSession
  4871  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4872  }
  4873  
  4874  // GoogleCloudDiscoveryengineV1alphaSessionTurn: Represents a turn, including a
  4875  // query from the user and a answer from service.
  4876  type GoogleCloudDiscoveryengineV1alphaSessionTurn struct {
  4877  	// Answer: The resource name of the answer to the user query.
  4878  	Answer string `json:"answer,omitempty"`
  4879  	// Query: The user query.
  4880  	Query *GoogleCloudDiscoveryengineV1alphaQuery `json:"query,omitempty"`
  4881  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
  4882  	// include in API requests. By default, fields with empty or default values are
  4883  	// 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. "Answer") 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 *GoogleCloudDiscoveryengineV1alphaSessionTurn) MarshalJSON() ([]byte, error) {
  4895  	type NoMethod GoogleCloudDiscoveryengineV1alphaSessionTurn
  4896  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4897  }
  4898  
  4899  // GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo: Verification
  4900  // information for target sites in advanced site search.
  4901  type GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo struct {
  4902  	// SiteVerificationState: Site verification state indicating the ownership and
  4903  	// validity.
  4904  	//
  4905  	// Possible values:
  4906  	//   "SITE_VERIFICATION_STATE_UNSPECIFIED" - Defaults to VERIFIED.
  4907  	//   "VERIFIED" - Site ownership verified.
  4908  	//   "UNVERIFIED" - Site ownership pending verification or verification failed.
  4909  	//   "EXEMPTED" - Site exempt from verification, e.g., a public website that
  4910  	// opens to all.
  4911  	SiteVerificationState string `json:"siteVerificationState,omitempty"`
  4912  	// VerifyTime: Latest site verification time.
  4913  	VerifyTime string `json:"verifyTime,omitempty"`
  4914  	// ForceSendFields is a list of field names (e.g. "SiteVerificationState") to
  4915  	// unconditionally include in API requests. By default, fields with empty or
  4916  	// default values are omitted from API requests. See
  4917  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4918  	// details.
  4919  	ForceSendFields []string `json:"-"`
  4920  	// NullFields is a list of field names (e.g. "SiteVerificationState") to
  4921  	// include in API requests with the JSON null value. By default, fields with
  4922  	// empty values are omitted from API requests. See
  4923  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4924  	NullFields []string `json:"-"`
  4925  }
  4926  
  4927  func (s *GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo) MarshalJSON() ([]byte, error) {
  4928  	type NoMethod GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo
  4929  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4930  }
  4931  
  4932  // GoogleCloudDiscoveryengineV1alphaTargetSite: A target site for the
  4933  // SiteSearchEngine.
  4934  type GoogleCloudDiscoveryengineV1alphaTargetSite struct {
  4935  	// ExactMatch: Input only. If set to false, a uri_pattern is generated to
  4936  	// include all pages whose address contains the provided_uri_pattern. If set to
  4937  	// true, an uri_pattern is generated to try to be an exact match of the
  4938  	// provided_uri_pattern or just the specific page if the provided_uri_pattern
  4939  	// is a specific one. provided_uri_pattern is always normalized to generate the
  4940  	// URI pattern to be used by the search engine.
  4941  	ExactMatch bool `json:"exactMatch,omitempty"`
  4942  	// FailureReason: Output only. Failure reason.
  4943  	FailureReason *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason `json:"failureReason,omitempty"`
  4944  	// GeneratedUriPattern: Output only. This is system-generated based on the
  4945  	// provided_uri_pattern.
  4946  	GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
  4947  	// IndexingStatus: Output only. Indexing status.
  4948  	//
  4949  	// Possible values:
  4950  	//   "INDEXING_STATUS_UNSPECIFIED" - Defaults to SUCCEEDED.
  4951  	//   "PENDING" - The target site is in the update queue and will be picked up
  4952  	// by indexing pipeline.
  4953  	//   "FAILED" - The target site fails to be indexed.
  4954  	//   "SUCCEEDED" - The target site has been indexed.
  4955  	//   "DELETING" - The previously indexed target site has been marked to be
  4956  	// deleted. This is a transitioning state which will resulted in either: 1.
  4957  	// target site deleted if unindexing is successful; 2. state reverts to
  4958  	// SUCCEEDED if the unindexing fails.
  4959  	IndexingStatus string `json:"indexingStatus,omitempty"`
  4960  	// Name: Output only. The fully qualified resource name of the target site.
  4961  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  4962  	// {data_store}/siteSearchEngine/targetSites/{target_site}` The
  4963  	// `target_site_id` is system-generated.
  4964  	Name string `json:"name,omitempty"`
  4965  	// ProvidedUriPattern: Required. Input only. The user provided URI pattern from
  4966  	// which the `generated_uri_pattern` is generated.
  4967  	ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
  4968  	// RootDomainUri: Output only. Root domain of the provided_uri_pattern.
  4969  	RootDomainUri string `json:"rootDomainUri,omitempty"`
  4970  	// SiteVerificationInfo: Output only. Site ownership and validity verification
  4971  	// status.
  4972  	SiteVerificationInfo *GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
  4973  	// Type: The type of the target site, e.g., whether the site is to be included
  4974  	// or excluded.
  4975  	//
  4976  	// Possible values:
  4977  	//   "TYPE_UNSPECIFIED" - This value is unused. In this case, server behavior
  4978  	// defaults to Type.INCLUDE.
  4979  	//   "INCLUDE" - Include the target site.
  4980  	//   "EXCLUDE" - Exclude the target site.
  4981  	Type string `json:"type,omitempty"`
  4982  	// UpdateTime: Output only. The target site's last updated time.
  4983  	UpdateTime string `json:"updateTime,omitempty"`
  4984  	// ForceSendFields is a list of field names (e.g. "ExactMatch") to
  4985  	// unconditionally include in API requests. By default, fields with empty or
  4986  	// default values are omitted from API requests. See
  4987  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4988  	// details.
  4989  	ForceSendFields []string `json:"-"`
  4990  	// NullFields is a list of field names (e.g. "ExactMatch") to include in API
  4991  	// requests with the JSON null value. By default, fields with empty values are
  4992  	// omitted from API requests. See
  4993  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4994  	NullFields []string `json:"-"`
  4995  }
  4996  
  4997  func (s *GoogleCloudDiscoveryengineV1alphaTargetSite) MarshalJSON() ([]byte, error) {
  4998  	type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSite
  4999  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5000  }
  5001  
  5002  // GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason: Site search
  5003  // indexing failure reasons.
  5004  type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason struct {
  5005  	// QuotaFailure: Failed due to insufficient quota.
  5006  	QuotaFailure *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
  5007  	// ForceSendFields is a list of field names (e.g. "QuotaFailure") to
  5008  	// unconditionally include in API requests. By default, fields with empty or
  5009  	// default values are omitted from API requests. See
  5010  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5011  	// details.
  5012  	ForceSendFields []string `json:"-"`
  5013  	// NullFields is a list of field names (e.g. "QuotaFailure") to include in API
  5014  	// requests with the JSON null value. By default, fields with empty values are
  5015  	// omitted from API requests. See
  5016  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5017  	NullFields []string `json:"-"`
  5018  }
  5019  
  5020  func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason) MarshalJSON() ([]byte, error) {
  5021  	type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason
  5022  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5023  }
  5024  
  5025  // GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure: Failed
  5026  // due to insufficient quota.
  5027  type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure struct {
  5028  	// TotalRequiredQuota: This number is an estimation on how much total quota
  5029  	// this project needs to successfully complete indexing.
  5030  	TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
  5031  	// ForceSendFields is a list of field names (e.g. "TotalRequiredQuota") to
  5032  	// unconditionally include in API requests. By default, fields with empty or
  5033  	// default values are omitted from API requests. See
  5034  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5035  	// details.
  5036  	ForceSendFields []string `json:"-"`
  5037  	// NullFields is a list of field names (e.g. "TotalRequiredQuota") to include
  5038  	// in API requests with the JSON null value. By default, fields with empty
  5039  	// values are omitted from API requests. See
  5040  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5041  	NullFields []string `json:"-"`
  5042  }
  5043  
  5044  func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
  5045  	type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure
  5046  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5047  }
  5048  
  5049  // GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata: Metadata related
  5050  // to the progress of the TrainCustomModel operation. This is returned by the
  5051  // google.longrunning.Operation.metadata field.
  5052  type GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata struct {
  5053  	// CreateTime: Operation create time.
  5054  	CreateTime string `json:"createTime,omitempty"`
  5055  	// UpdateTime: Operation last update time. If the operation is done, this is
  5056  	// also the finish time.
  5057  	UpdateTime string `json:"updateTime,omitempty"`
  5058  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5059  	// unconditionally include in API requests. By default, fields with empty or
  5060  	// default values are omitted from API requests. See
  5061  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5062  	// details.
  5063  	ForceSendFields []string `json:"-"`
  5064  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5065  	// requests with the JSON null value. By default, fields with empty values are
  5066  	// omitted from API requests. See
  5067  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5068  	NullFields []string `json:"-"`
  5069  }
  5070  
  5071  func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) {
  5072  	type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata
  5073  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5074  }
  5075  
  5076  // GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse: Response of the
  5077  // TrainCustomModelRequest. This message is returned by the
  5078  // google.longrunning.Operations.response field.
  5079  type GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse struct {
  5080  	// ErrorConfig: Echoes the destination for the complete errors in the request
  5081  	// if set.
  5082  	ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
  5083  	// ErrorSamples: A sample of errors encountered while processing the data.
  5084  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  5085  	// Metrics: The metrics of the trained model.
  5086  	Metrics map[string]float64 `json:"metrics,omitempty"`
  5087  	// ModelName: Fully qualified name of the CustomTuningModel.
  5088  	ModelName string `json:"modelName,omitempty"`
  5089  	// ModelStatus: The trained model status. Possible values are: * **bad-data**:
  5090  	// The training data quality is bad. * **no-improvement**: Tuning didn't
  5091  	// improve performance. Won't deploy. * **in-progress**: Model training job
  5092  	// creation is in progress. * **training**: Model is actively training. *
  5093  	// **evaluating**: The model is evaluating trained metrics. * **indexing**: The
  5094  	// model trained metrics are indexing. * **ready**: The model is ready for
  5095  	// serving.
  5096  	ModelStatus string `json:"modelStatus,omitempty"`
  5097  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  5098  	// unconditionally include in API requests. By default, fields with empty or
  5099  	// default values are omitted from API requests. See
  5100  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5101  	// details.
  5102  	ForceSendFields []string `json:"-"`
  5103  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  5104  	// requests with the JSON null value. By default, fields with empty values are
  5105  	// omitted from API requests. See
  5106  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5107  	NullFields []string `json:"-"`
  5108  }
  5109  
  5110  func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse) MarshalJSON() ([]byte, error) {
  5111  	type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse
  5112  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5113  }
  5114  
  5115  // GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata: Metadata associated
  5116  // with a tune operation.
  5117  type GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata struct {
  5118  	// Engine: Required. The resource name of the engine that this tune applies to.
  5119  	// Format:
  5120  	// `projects/{project_number}/locations/{location_id}/collections/{collection_id
  5121  	// }/engines/{engine_id}`
  5122  	Engine string `json:"engine,omitempty"`
  5123  	// ForceSendFields is a list of field names (e.g. "Engine") to unconditionally
  5124  	// include in API requests. By default, fields with empty or default values are
  5125  	// omitted from API requests. See
  5126  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5127  	// details.
  5128  	ForceSendFields []string `json:"-"`
  5129  	// NullFields is a list of field names (e.g. "Engine") to include in API
  5130  	// requests with the JSON null value. By default, fields with empty values are
  5131  	// omitted from API requests. See
  5132  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5133  	NullFields []string `json:"-"`
  5134  }
  5135  
  5136  func (s *GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata) MarshalJSON() ([]byte, error) {
  5137  	type NoMethod GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata
  5138  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5139  }
  5140  
  5141  // GoogleCloudDiscoveryengineV1alphaTuneEngineResponse: Response associated
  5142  // with a tune operation.
  5143  type GoogleCloudDiscoveryengineV1alphaTuneEngineResponse struct {
  5144  }
  5145  
  5146  // GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata: Metadata for
  5147  // UpdateSchema LRO.
  5148  type GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata struct {
  5149  	// CreateTime: Operation create time.
  5150  	CreateTime string `json:"createTime,omitempty"`
  5151  	// UpdateTime: Operation last update time. If the operation is done, this is
  5152  	// also the finish time.
  5153  	UpdateTime string `json:"updateTime,omitempty"`
  5154  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5155  	// unconditionally include in API requests. By default, fields with empty or
  5156  	// default values are omitted from API requests. See
  5157  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5158  	// details.
  5159  	ForceSendFields []string `json:"-"`
  5160  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5161  	// requests with the JSON null value. By default, fields with empty values are
  5162  	// omitted from API requests. See
  5163  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5164  	NullFields []string `json:"-"`
  5165  }
  5166  
  5167  func (s *GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
  5168  	type NoMethod GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata
  5169  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5170  }
  5171  
  5172  // GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata: Metadata related
  5173  // to the progress of the SiteSearchEngineService.UpdateTargetSite operation.
  5174  // This will be returned by the google.longrunning.Operation.metadata field.
  5175  type GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata struct {
  5176  	// CreateTime: Operation create time.
  5177  	CreateTime string `json:"createTime,omitempty"`
  5178  	// UpdateTime: Operation last update time. If the operation is done, this is
  5179  	// also the finish time.
  5180  	UpdateTime string `json:"updateTime,omitempty"`
  5181  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5182  	// unconditionally include in API requests. By default, fields with empty or
  5183  	// default values are omitted from API requests. See
  5184  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5185  	// details.
  5186  	ForceSendFields []string `json:"-"`
  5187  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5188  	// requests with the JSON null value. By default, fields with empty values are
  5189  	// omitted from API requests. See
  5190  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5191  	NullFields []string `json:"-"`
  5192  }
  5193  
  5194  func (s *GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  5195  	type NoMethod GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata
  5196  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5197  }
  5198  
  5199  // GoogleCloudDiscoveryengineV1betaAnswer: Defines an answer.
  5200  type GoogleCloudDiscoveryengineV1betaAnswer struct {
  5201  	// AnswerSkippedReasons: Additional answer-skipped reasons. This provides the
  5202  	// reason for ignored cases. If nothing is skipped, this field is not set.
  5203  	//
  5204  	// Possible values:
  5205  	//   "ANSWER_SKIPPED_REASON_UNSPECIFIED" - Default value. The answer skipped
  5206  	// reason is not specified.
  5207  	//   "ADVERSARIAL_QUERY_IGNORED" - The adversarial query ignored case.
  5208  	//   "NON_ANSWER_SEEKING_QUERY_IGNORED" - The non-answer seeking query ignored
  5209  	// case.
  5210  	//   "OUT_OF_DOMAIN_QUERY_IGNORED" - The out-of-domain query ignored case.
  5211  	// Google skips the answer if there are no high-relevance search results.
  5212  	//   "POTENTIAL_POLICY_VIOLATION" - The potential policy violation case. Google
  5213  	// skips the answer if there is a potential policy violation detected. This
  5214  	// includes content that may be violent or toxic.
  5215  	AnswerSkippedReasons []string `json:"answerSkippedReasons,omitempty"`
  5216  	// AnswerText: The textual answer.
  5217  	AnswerText string `json:"answerText,omitempty"`
  5218  	// Citations: Citations.
  5219  	Citations []*GoogleCloudDiscoveryengineV1betaAnswerCitation `json:"citations,omitempty"`
  5220  	// CompleteTime: Output only. Answer completed timestamp.
  5221  	CompleteTime string `json:"completeTime,omitempty"`
  5222  	// CreateTime: Output only. Answer creation timestamp.
  5223  	CreateTime string `json:"createTime,omitempty"`
  5224  	// Name: Immutable. Fully qualified name
  5225  	// `projects/{project}/locations/global/collections/{collection}/engines/{engine
  5226  	// }/sessions/*/answers/*`
  5227  	Name string `json:"name,omitempty"`
  5228  	// QueryUnderstandingInfo: Query understanding information.
  5229  	QueryUnderstandingInfo *GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfo `json:"queryUnderstandingInfo,omitempty"`
  5230  	// References: References.
  5231  	References []*GoogleCloudDiscoveryengineV1betaAnswerReference `json:"references,omitempty"`
  5232  	// RelatedQuestions: Suggested related questions.
  5233  	RelatedQuestions []string `json:"relatedQuestions,omitempty"`
  5234  	// State: The state of the answer generation.
  5235  	//
  5236  	// Possible values:
  5237  	//   "STATE_UNSPECIFIED" - Unknown.
  5238  	//   "IN_PROGRESS" - Answer generation is currently in progress.
  5239  	//   "FAILED" - Answer generation currently failed.
  5240  	//   "SUCCEEDED" - Answer generation has succeeded.
  5241  	State string `json:"state,omitempty"`
  5242  	// Steps: Answer generation steps.
  5243  	Steps []*GoogleCloudDiscoveryengineV1betaAnswerStep `json:"steps,omitempty"`
  5244  
  5245  	// ServerResponse contains the HTTP response code and headers from the server.
  5246  	googleapi.ServerResponse `json:"-"`
  5247  	// ForceSendFields is a list of field names (e.g. "AnswerSkippedReasons") to
  5248  	// unconditionally include in API requests. By default, fields with empty or
  5249  	// default values are omitted from API requests. See
  5250  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5251  	// details.
  5252  	ForceSendFields []string `json:"-"`
  5253  	// NullFields is a list of field names (e.g. "AnswerSkippedReasons") to include
  5254  	// in API requests with the JSON null value. By default, fields with empty
  5255  	// values are omitted from API requests. See
  5256  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5257  	NullFields []string `json:"-"`
  5258  }
  5259  
  5260  func (s *GoogleCloudDiscoveryengineV1betaAnswer) MarshalJSON() ([]byte, error) {
  5261  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswer
  5262  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5263  }
  5264  
  5265  // GoogleCloudDiscoveryengineV1betaAnswerCitation: Citation info for a segment.
  5266  type GoogleCloudDiscoveryengineV1betaAnswerCitation struct {
  5267  	// EndIndex: End of the attributed segment, exclusive.
  5268  	EndIndex int64 `json:"endIndex,omitempty,string"`
  5269  	// Sources: Citation sources for the attributed segment.
  5270  	Sources []*GoogleCloudDiscoveryengineV1betaAnswerCitationSource `json:"sources,omitempty"`
  5271  	// StartIndex: Index indicates the start of the segment, measured in bytes
  5272  	// (UTF-8 unicode).
  5273  	StartIndex int64 `json:"startIndex,omitempty,string"`
  5274  	// ForceSendFields is a list of field names (e.g. "EndIndex") to
  5275  	// unconditionally include in API requests. By default, fields with empty or
  5276  	// default values are omitted from API requests. See
  5277  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5278  	// details.
  5279  	ForceSendFields []string `json:"-"`
  5280  	// NullFields is a list of field names (e.g. "EndIndex") to include in API
  5281  	// requests with the JSON null value. By default, fields with empty values are
  5282  	// omitted from API requests. See
  5283  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5284  	NullFields []string `json:"-"`
  5285  }
  5286  
  5287  func (s *GoogleCloudDiscoveryengineV1betaAnswerCitation) MarshalJSON() ([]byte, error) {
  5288  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerCitation
  5289  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5290  }
  5291  
  5292  // GoogleCloudDiscoveryengineV1betaAnswerCitationSource: Citation source.
  5293  type GoogleCloudDiscoveryengineV1betaAnswerCitationSource struct {
  5294  	// ReferenceId: ID of the citation source.
  5295  	ReferenceId string `json:"referenceId,omitempty"`
  5296  	// ForceSendFields is a list of field names (e.g. "ReferenceId") to
  5297  	// unconditionally include in API requests. By default, fields with empty or
  5298  	// default values are omitted from API requests. See
  5299  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5300  	// details.
  5301  	ForceSendFields []string `json:"-"`
  5302  	// NullFields is a list of field names (e.g. "ReferenceId") to include in API
  5303  	// requests with the JSON null value. By default, fields with empty values are
  5304  	// omitted from API requests. See
  5305  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5306  	NullFields []string `json:"-"`
  5307  }
  5308  
  5309  func (s *GoogleCloudDiscoveryengineV1betaAnswerCitationSource) MarshalJSON() ([]byte, error) {
  5310  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerCitationSource
  5311  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5312  }
  5313  
  5314  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequest: Request message for
  5315  // ConversationalSearchService.AnswerQuery method.
  5316  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequest struct {
  5317  	// AnswerGenerationSpec: Answer generation specification.
  5318  	AnswerGenerationSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec `json:"answerGenerationSpec,omitempty"`
  5319  	// AsynchronousMode: Asynchronous mode control. If enabled, the response will
  5320  	// be returned with answer/session resource name without final answer. The API
  5321  	// users need to do the polling to get the latest status of answer/session by
  5322  	// calling ConversationalSearchService.GetAnswer or
  5323  	// ConversationalSearchService.GetSession method.
  5324  	AsynchronousMode bool `json:"asynchronousMode,omitempty"`
  5325  	// Query: Required. Current user query.
  5326  	Query *GoogleCloudDiscoveryengineV1betaQuery `json:"query,omitempty"`
  5327  	// QueryUnderstandingSpec: Query understanding specification.
  5328  	QueryUnderstandingSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec `json:"queryUnderstandingSpec,omitempty"`
  5329  	// RelatedQuestionsSpec: Related questions specification.
  5330  	RelatedQuestionsSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec `json:"relatedQuestionsSpec,omitempty"`
  5331  	// SafetySpec: Model specification.
  5332  	SafetySpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec `json:"safetySpec,omitempty"`
  5333  	// SearchSpec: Search specification.
  5334  	SearchSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec `json:"searchSpec,omitempty"`
  5335  	// Session: The session resource name. Not required. When session field is not
  5336  	// set, the API is in sessionless mode. We support auto session mode: users can
  5337  	// use the wildcard symbol “-” as session id. A new id will be
  5338  	// automatically generated and assigned.
  5339  	Session string `json:"session,omitempty"`
  5340  	// UserPseudoId: A unique identifier for tracking visitors. For example, this
  5341  	// could be implemented with an HTTP cookie, which should be able to uniquely
  5342  	// identify a visitor on a single device. This unique identifier should not
  5343  	// change if the visitor logs in or out of the website. This field should NOT
  5344  	// have a fixed value such as `unknown_visitor`. The field must be a UTF-8
  5345  	// encoded string with a length limit of 128 characters. Otherwise, an
  5346  	// `INVALID_ARGUMENT` error is returned.
  5347  	UserPseudoId string `json:"userPseudoId,omitempty"`
  5348  	// ForceSendFields is a list of field names (e.g. "AnswerGenerationSpec") to
  5349  	// unconditionally include in API requests. By default, fields with empty or
  5350  	// default values are omitted from API requests. See
  5351  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5352  	// details.
  5353  	ForceSendFields []string `json:"-"`
  5354  	// NullFields is a list of field names (e.g. "AnswerGenerationSpec") to include
  5355  	// in API requests with the JSON null value. By default, fields with empty
  5356  	// values are omitted from API requests. See
  5357  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5358  	NullFields []string `json:"-"`
  5359  }
  5360  
  5361  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest) MarshalJSON() ([]byte, error) {
  5362  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
  5363  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5364  }
  5365  
  5366  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec:
  5367  // Answer generation specification.
  5368  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec struct {
  5369  	// AnswerLanguageCode: Language code for Answer. Use language tags defined by
  5370  	// BCP47 (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an
  5371  	// experimental feature.
  5372  	AnswerLanguageCode string `json:"answerLanguageCode,omitempty"`
  5373  	// IgnoreAdversarialQuery: Specifies whether to filter out adversarial queries.
  5374  	// The default value is `false`. Google employs search-query classification to
  5375  	// detect adversarial queries. No answer is returned if the search query is
  5376  	// classified as an adversarial query. For example, a user might ask a question
  5377  	// regarding negative comments about the company or submit a query designed to
  5378  	// generate unsafe, policy-violating output. If this field is set to `true`, we
  5379  	// skip generating answers for adversarial queries and return fallback messages
  5380  	// instead.
  5381  	IgnoreAdversarialQuery bool `json:"ignoreAdversarialQuery,omitempty"`
  5382  	// IgnoreNonAnswerSeekingQuery: Specifies whether to filter out queries that
  5383  	// are not answer-seeking. The default value is `false`. Google employs
  5384  	// search-query classification to detect answer-seeking queries. No answer is
  5385  	// returned if the search query is classified as a non-answer seeking query. If
  5386  	// this field is set to `true`, we skip generating answers for non-answer
  5387  	// seeking queries and return fallback messages instead.
  5388  	IgnoreNonAnswerSeekingQuery bool `json:"ignoreNonAnswerSeekingQuery,omitempty"`
  5389  	// IncludeCitations: Specifies whether to include citation metadata in the
  5390  	// answer. The default value is `false`.
  5391  	IncludeCitations bool `json:"includeCitations,omitempty"`
  5392  	// ModelSpec: Answer generation model specification.
  5393  	ModelSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec `json:"modelSpec,omitempty"`
  5394  	// PromptSpec: Answer generation prompt specification.
  5395  	PromptSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec `json:"promptSpec,omitempty"`
  5396  	// ForceSendFields is a list of field names (e.g. "AnswerLanguageCode") to
  5397  	// unconditionally include in API requests. By default, fields with empty or
  5398  	// default values are omitted from API requests. See
  5399  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5400  	// details.
  5401  	ForceSendFields []string `json:"-"`
  5402  	// NullFields is a list of field names (e.g. "AnswerLanguageCode") to include
  5403  	// in API requests with the JSON null value. By default, fields with empty
  5404  	// values are omitted from API requests. See
  5405  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5406  	NullFields []string `json:"-"`
  5407  }
  5408  
  5409  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec) MarshalJSON() ([]byte, error) {
  5410  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec
  5411  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5412  }
  5413  
  5414  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSp
  5415  // ec: Answer Generation Model specification.
  5416  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec struct {
  5417  	// ModelVersion: Model version. If not set, it will use the default stable
  5418  	// model. Allowed values are: stable, preview.
  5419  	ModelVersion string `json:"modelVersion,omitempty"`
  5420  	// ForceSendFields is a list of field names (e.g. "ModelVersion") to
  5421  	// unconditionally include in API requests. By default, fields with empty or
  5422  	// default values are omitted from API requests. See
  5423  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5424  	// details.
  5425  	ForceSendFields []string `json:"-"`
  5426  	// NullFields is a list of field names (e.g. "ModelVersion") to include in API
  5427  	// requests with the JSON null value. By default, fields with empty values are
  5428  	// omitted from API requests. See
  5429  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5430  	NullFields []string `json:"-"`
  5431  }
  5432  
  5433  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec) MarshalJSON() ([]byte, error) {
  5434  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec
  5435  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5436  }
  5437  
  5438  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptS
  5439  // pec: Answer generation prompt specification.
  5440  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec struct {
  5441  	// Preamble: Customized preamble.
  5442  	Preamble string `json:"preamble,omitempty"`
  5443  	// ForceSendFields is a list of field names (e.g. "Preamble") to
  5444  	// unconditionally include in API requests. By default, fields with empty or
  5445  	// default values are omitted from API requests. See
  5446  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5447  	// details.
  5448  	ForceSendFields []string `json:"-"`
  5449  	// NullFields is a list of field names (e.g. "Preamble") to include in API
  5450  	// requests with the JSON null value. By default, fields with empty values are
  5451  	// omitted from API requests. See
  5452  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5453  	NullFields []string `json:"-"`
  5454  }
  5455  
  5456  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec) MarshalJSON() ([]byte, error) {
  5457  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec
  5458  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5459  }
  5460  
  5461  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec:
  5462  // Query understanding specification.
  5463  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec struct {
  5464  	// QueryClassificationSpec: Query classification specification.
  5465  	QueryClassificationSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec `json:"queryClassificationSpec,omitempty"`
  5466  	// QueryRephraserSpec: Query rephraser specification.
  5467  	QueryRephraserSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec `json:"queryRephraserSpec,omitempty"`
  5468  	// ForceSendFields is a list of field names (e.g. "QueryClassificationSpec") to
  5469  	// unconditionally include in API requests. By default, fields with empty or
  5470  	// default values are omitted from API requests. See
  5471  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5472  	// details.
  5473  	ForceSendFields []string `json:"-"`
  5474  	// NullFields is a list of field names (e.g. "QueryClassificationSpec") to
  5475  	// include in API requests with the JSON null value. By default, fields with
  5476  	// empty values are omitted from API requests. See
  5477  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5478  	NullFields []string `json:"-"`
  5479  }
  5480  
  5481  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec) MarshalJSON() ([]byte, error) {
  5482  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec
  5483  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5484  }
  5485  
  5486  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQuery
  5487  // ClassificationSpec: Query classification specification.
  5488  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec struct {
  5489  	// Types: Enabled query classification types.
  5490  	//
  5491  	// Possible values:
  5492  	//   "TYPE_UNSPECIFIED" - Unspecified query classification type.
  5493  	//   "ADVERSARIAL_QUERY" - Adversarial query classification type.
  5494  	//   "NON_ANSWER_SEEKING_QUERY" - Non-answer-seeking query classification type.
  5495  	Types []string `json:"types,omitempty"`
  5496  	// ForceSendFields is a list of field names (e.g. "Types") to unconditionally
  5497  	// include in API requests. By default, fields with empty or default values are
  5498  	// omitted from API requests. See
  5499  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5500  	// details.
  5501  	ForceSendFields []string `json:"-"`
  5502  	// NullFields is a list of field names (e.g. "Types") to include in API
  5503  	// requests with the JSON null value. By default, fields with empty values are
  5504  	// omitted from API requests. See
  5505  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5506  	NullFields []string `json:"-"`
  5507  }
  5508  
  5509  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec) MarshalJSON() ([]byte, error) {
  5510  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec
  5511  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5512  }
  5513  
  5514  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQuery
  5515  // RephraserSpec: Query rephraser specification.
  5516  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec struct {
  5517  	// Disable: Disable query rephraser.
  5518  	Disable bool `json:"disable,omitempty"`
  5519  	// MaxRephraseSteps: Max rephrase steps. The max number is 5 steps. If not set
  5520  	// or set to < 1, it will be set to 1 by default.
  5521  	MaxRephraseSteps int64 `json:"maxRephraseSteps,omitempty"`
  5522  	// ForceSendFields is a list of field names (e.g. "Disable") to unconditionally
  5523  	// include in API requests. By default, fields with empty or default values are
  5524  	// omitted from API requests. See
  5525  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5526  	// details.
  5527  	ForceSendFields []string `json:"-"`
  5528  	// NullFields is a list of field names (e.g. "Disable") to include in API
  5529  	// requests with the JSON null value. By default, fields with empty values are
  5530  	// omitted from API requests. See
  5531  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5532  	NullFields []string `json:"-"`
  5533  }
  5534  
  5535  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec) MarshalJSON() ([]byte, error) {
  5536  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec
  5537  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5538  }
  5539  
  5540  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec:
  5541  // Related questions specification.
  5542  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec struct {
  5543  	// Enable: Enable related questions feature if true.
  5544  	Enable bool `json:"enable,omitempty"`
  5545  	// ForceSendFields is a list of field names (e.g. "Enable") to unconditionally
  5546  	// include in API requests. By default, fields with empty or default values are
  5547  	// omitted from API requests. See
  5548  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5549  	// details.
  5550  	ForceSendFields []string `json:"-"`
  5551  	// NullFields is a list of field names (e.g. "Enable") to include in API
  5552  	// requests with the JSON null value. By default, fields with empty values are
  5553  	// omitted from API requests. See
  5554  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5555  	NullFields []string `json:"-"`
  5556  }
  5557  
  5558  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec) MarshalJSON() ([]byte, error) {
  5559  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec
  5560  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5561  }
  5562  
  5563  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec: Safety
  5564  // specification.
  5565  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec struct {
  5566  	// Enable: Enable the safety filtering on the answer response. It is false by
  5567  	// default.
  5568  	Enable bool `json:"enable,omitempty"`
  5569  	// ForceSendFields is a list of field names (e.g. "Enable") to unconditionally
  5570  	// include in API requests. By default, fields with empty or default values are
  5571  	// omitted from API requests. See
  5572  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5573  	// details.
  5574  	ForceSendFields []string `json:"-"`
  5575  	// NullFields is a list of field names (e.g. "Enable") to include in API
  5576  	// requests with the JSON null value. By default, fields with empty values are
  5577  	// omitted from API requests. See
  5578  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5579  	NullFields []string `json:"-"`
  5580  }
  5581  
  5582  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec) MarshalJSON() ([]byte, error) {
  5583  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec
  5584  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5585  }
  5586  
  5587  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec: Search
  5588  // specification.
  5589  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec struct {
  5590  	// SearchParams: Search parameters.
  5591  	SearchParams *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchParams `json:"searchParams,omitempty"`
  5592  	// SearchResultList: Search result list.
  5593  	SearchResultList *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList `json:"searchResultList,omitempty"`
  5594  	// ForceSendFields is a list of field names (e.g. "SearchParams") to
  5595  	// unconditionally include in API requests. By default, fields with empty or
  5596  	// default values are omitted from API requests. See
  5597  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5598  	// details.
  5599  	ForceSendFields []string `json:"-"`
  5600  	// NullFields is a list of field names (e.g. "SearchParams") to include in API
  5601  	// requests with the JSON null value. By default, fields with empty values are
  5602  	// omitted from API requests. See
  5603  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5604  	NullFields []string `json:"-"`
  5605  }
  5606  
  5607  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec) MarshalJSON() ([]byte, error) {
  5608  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec
  5609  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5610  }
  5611  
  5612  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchParams:
  5613  // Search parameters.
  5614  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchParams struct {
  5615  	// BoostSpec: Boost specification to boost certain documents in search results
  5616  	// which may affect the answer query response. For more information on
  5617  	// boosting, see Boosting (https://cloud.google.com/retail/docs/boosting#boost)
  5618  	BoostSpec *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec `json:"boostSpec,omitempty"`
  5619  	// Filter: The filter syntax consists of an expression language for
  5620  	// constructing a predicate from one or more fields of the documents being
  5621  	// filtered. Filter expression is case-sensitive. This will be used to filter
  5622  	// search results which may affect the Answer response. If this field is
  5623  	// unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI
  5624  	// Search is done by mapping the LHS filter key to a key property defined in
  5625  	// the Vertex AI Search backend -- this mapping is defined by the customer in
  5626  	// their schema. For example a media customers might have a field 'name' in
  5627  	// their schema. In this case the filter would look like this: filter -->
  5628  	// name:'ANY("king kong")' For more information about filtering including
  5629  	// syntax and filter operators, see Filter
  5630  	// (https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
  5631  	Filter string `json:"filter,omitempty"`
  5632  	// MaxReturnResults: Number of search results to return. The default value is
  5633  	// 10.
  5634  	MaxReturnResults int64 `json:"maxReturnResults,omitempty"`
  5635  	// OrderBy: The order in which documents are returned. Documents can be ordered
  5636  	// by a field in an Document object. Leave it unset if ordered by relevance.
  5637  	// `order_by` expression is case-sensitive. For more information on ordering,
  5638  	// see Ordering (https://cloud.google.com/retail/docs/filter-and-order#order)
  5639  	// If this field is unrecognizable, an `INVALID_ARGUMENT` is returned.
  5640  	OrderBy string `json:"orderBy,omitempty"`
  5641  	// ForceSendFields is a list of field names (e.g. "BoostSpec") to
  5642  	// unconditionally include in API requests. By default, fields with empty or
  5643  	// default values are omitted from API requests. See
  5644  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5645  	// details.
  5646  	ForceSendFields []string `json:"-"`
  5647  	// NullFields is a list of field names (e.g. "BoostSpec") to include in API
  5648  	// requests with the JSON null value. By default, fields with empty values are
  5649  	// omitted from API requests. See
  5650  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5651  	NullFields []string `json:"-"`
  5652  }
  5653  
  5654  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchParams) MarshalJSON() ([]byte, error) {
  5655  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchParams
  5656  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5657  }
  5658  
  5659  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList:
  5660  //
  5661  //	Search result list.
  5662  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList struct {
  5663  	// SearchResults: Search results.
  5664  	SearchResults []*GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResult `json:"searchResults,omitempty"`
  5665  	// ForceSendFields is a list of field names (e.g. "SearchResults") to
  5666  	// unconditionally include in API requests. By default, fields with empty or
  5667  	// default values are omitted from API requests. See
  5668  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5669  	// details.
  5670  	ForceSendFields []string `json:"-"`
  5671  	// NullFields is a list of field names (e.g. "SearchResults") to include in API
  5672  	// requests with the JSON null value. By default, fields with empty values are
  5673  	// omitted from API requests. See
  5674  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5675  	NullFields []string `json:"-"`
  5676  }
  5677  
  5678  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList) MarshalJSON() ([]byte, error) {
  5679  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList
  5680  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5681  }
  5682  
  5683  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListS
  5684  // earchResult: Search result.
  5685  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResult struct {
  5686  	// ChunkInfo: Chunk information.
  5687  	ChunkInfo *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo `json:"chunkInfo,omitempty"`
  5688  	// UnstructuredDocumentInfo: Unstructured document information.
  5689  	UnstructuredDocumentInfo *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo `json:"unstructuredDocumentInfo,omitempty"`
  5690  	// ForceSendFields is a list of field names (e.g. "ChunkInfo") to
  5691  	// unconditionally include in API requests. By default, fields with empty or
  5692  	// default values are omitted from API requests. See
  5693  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5694  	// details.
  5695  	ForceSendFields []string `json:"-"`
  5696  	// NullFields is a list of field names (e.g. "ChunkInfo") to include in API
  5697  	// requests with the JSON null value. By default, fields with empty values are
  5698  	// omitted from API requests. See
  5699  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5700  	NullFields []string `json:"-"`
  5701  }
  5702  
  5703  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResult) MarshalJSON() ([]byte, error) {
  5704  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResult
  5705  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5706  }
  5707  
  5708  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListS
  5709  // earchResultChunkInfo: Chunk information.
  5710  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo struct {
  5711  	// Chunk: Chunk resource name.
  5712  	Chunk string `json:"chunk,omitempty"`
  5713  	// Content: Chunk textual content.
  5714  	Content string `json:"content,omitempty"`
  5715  	// ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally
  5716  	// include in API requests. By default, fields with empty or default values are
  5717  	// omitted from API requests. See
  5718  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5719  	// details.
  5720  	ForceSendFields []string `json:"-"`
  5721  	// NullFields is a list of field names (e.g. "Chunk") to include in API
  5722  	// requests with the JSON null value. By default, fields with empty values are
  5723  	// omitted from API requests. See
  5724  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5725  	NullFields []string `json:"-"`
  5726  }
  5727  
  5728  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo) MarshalJSON() ([]byte, error) {
  5729  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo
  5730  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5731  }
  5732  
  5733  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListS
  5734  // earchResultUnstructuredDocumentInfo: Unstructured document information.
  5735  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo struct {
  5736  	// Document: Document resource name.
  5737  	Document string `json:"document,omitempty"`
  5738  	// DocumentContexts: List of document contexts.
  5739  	DocumentContexts []*GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext `json:"documentContexts,omitempty"`
  5740  	// ExtractiveAnswers: List of extractive answers.
  5741  	ExtractiveAnswers []*GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer `json:"extractiveAnswers,omitempty"`
  5742  	// ExtractiveSegments: List of extractive segments.
  5743  	ExtractiveSegments []*GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment `json:"extractiveSegments,omitempty"`
  5744  	// Title: Title.
  5745  	Title string `json:"title,omitempty"`
  5746  	// Uri: URI for the document.
  5747  	Uri string `json:"uri,omitempty"`
  5748  	// ForceSendFields is a list of field names (e.g. "Document") to
  5749  	// unconditionally include in API requests. By default, fields with empty or
  5750  	// default values are omitted from API requests. See
  5751  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5752  	// details.
  5753  	ForceSendFields []string `json:"-"`
  5754  	// NullFields is a list of field names (e.g. "Document") to include in API
  5755  	// requests with the JSON null value. By default, fields with empty values are
  5756  	// omitted from API requests. See
  5757  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5758  	NullFields []string `json:"-"`
  5759  }
  5760  
  5761  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo) MarshalJSON() ([]byte, error) {
  5762  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo
  5763  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5764  }
  5765  
  5766  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListS
  5767  // earchResultUnstructuredDocumentInfoDocumentContext: Document context.
  5768  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext struct {
  5769  	// Content: Document content.
  5770  	Content string `json:"content,omitempty"`
  5771  	// PageIdentifier: Page identifier.
  5772  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  5773  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  5774  	// include in API requests. By default, fields with empty or default values are
  5775  	// omitted from API requests. See
  5776  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5777  	// details.
  5778  	ForceSendFields []string `json:"-"`
  5779  	// NullFields is a list of field names (e.g. "Content") to include in API
  5780  	// requests with the JSON null value. By default, fields with empty values are
  5781  	// omitted from API requests. See
  5782  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5783  	NullFields []string `json:"-"`
  5784  }
  5785  
  5786  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext) MarshalJSON() ([]byte, error) {
  5787  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext
  5788  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5789  }
  5790  
  5791  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListS
  5792  // earchResultUnstructuredDocumentInfoExtractiveAnswer: Extractive answer.
  5793  // Guide
  5794  // (https://cloud.google.com/generative-ai-app-builder/docs/snippets#get-answers)
  5795  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer struct {
  5796  	// Content: Extractive answer content.
  5797  	Content string `json:"content,omitempty"`
  5798  	// PageIdentifier: Page identifier.
  5799  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  5800  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  5801  	// include in API requests. By default, fields with empty or default values are
  5802  	// omitted from API requests. See
  5803  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5804  	// details.
  5805  	ForceSendFields []string `json:"-"`
  5806  	// NullFields is a list of field names (e.g. "Content") to include in API
  5807  	// requests with the JSON null value. By default, fields with empty values are
  5808  	// omitted from API requests. See
  5809  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5810  	NullFields []string `json:"-"`
  5811  }
  5812  
  5813  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer) MarshalJSON() ([]byte, error) {
  5814  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer
  5815  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5816  }
  5817  
  5818  // GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListS
  5819  // earchResultUnstructuredDocumentInfoExtractiveSegment: Extractive segment.
  5820  // Guide
  5821  // (https://cloud.google.com/generative-ai-app-builder/docs/snippets#extractive-segments)
  5822  type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment struct {
  5823  	// Content: Extractive segment content.
  5824  	Content string `json:"content,omitempty"`
  5825  	// PageIdentifier: Page identifier.
  5826  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  5827  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  5828  	// include in API requests. By default, fields with empty or default values are
  5829  	// omitted from API requests. See
  5830  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5831  	// details.
  5832  	ForceSendFields []string `json:"-"`
  5833  	// NullFields is a list of field names (e.g. "Content") to include in API
  5834  	// requests with the JSON null value. By default, fields with empty values are
  5835  	// omitted from API requests. See
  5836  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5837  	NullFields []string `json:"-"`
  5838  }
  5839  
  5840  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment) MarshalJSON() ([]byte, error) {
  5841  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment
  5842  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5843  }
  5844  
  5845  // GoogleCloudDiscoveryengineV1betaAnswerQueryResponse: Response message for
  5846  // ConversationalSearchService.AnswerQuery method.
  5847  type GoogleCloudDiscoveryengineV1betaAnswerQueryResponse struct {
  5848  	// Answer: Answer resource object. If
  5849  	// AnswerQueryRequest.StepSpec.max_step_count is greater than 1, use
  5850  	// Answer.name to fetch answer information using
  5851  	// ConversationalSearchService.GetAnswer API.
  5852  	Answer *GoogleCloudDiscoveryengineV1betaAnswer `json:"answer,omitempty"`
  5853  	// AnswerQueryToken: A global unique ID used for logging.
  5854  	AnswerQueryToken string `json:"answerQueryToken,omitempty"`
  5855  	// Session: Session resource object. It will be only available when session
  5856  	// field is set and valid in the AnswerQueryRequest request.
  5857  	Session *GoogleCloudDiscoveryengineV1betaSession `json:"session,omitempty"`
  5858  
  5859  	// ServerResponse contains the HTTP response code and headers from the server.
  5860  	googleapi.ServerResponse `json:"-"`
  5861  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
  5862  	// include in API requests. By default, fields with empty or default values are
  5863  	// omitted from API requests. See
  5864  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5865  	// details.
  5866  	ForceSendFields []string `json:"-"`
  5867  	// NullFields is a list of field names (e.g. "Answer") to include in API
  5868  	// requests with the JSON null value. By default, fields with empty values are
  5869  	// omitted from API requests. See
  5870  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5871  	NullFields []string `json:"-"`
  5872  }
  5873  
  5874  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryResponse) MarshalJSON() ([]byte, error) {
  5875  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryResponse
  5876  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5877  }
  5878  
  5879  // GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfo: Query
  5880  // understanding information.
  5881  type GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfo struct {
  5882  	// QueryClassificationInfo: Query classification information.
  5883  	QueryClassificationInfo []*GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfoQueryClassificationInfo `json:"queryClassificationInfo,omitempty"`
  5884  	// ForceSendFields is a list of field names (e.g. "QueryClassificationInfo") to
  5885  	// unconditionally include in API requests. By default, fields with empty or
  5886  	// default values are omitted from API requests. See
  5887  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5888  	// details.
  5889  	ForceSendFields []string `json:"-"`
  5890  	// NullFields is a list of field names (e.g. "QueryClassificationInfo") to
  5891  	// include in API requests with the JSON null value. By default, fields with
  5892  	// empty values are omitted from API requests. See
  5893  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5894  	NullFields []string `json:"-"`
  5895  }
  5896  
  5897  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfo) MarshalJSON() ([]byte, error) {
  5898  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfo
  5899  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5900  }
  5901  
  5902  // GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfoQueryClassificati
  5903  // onInfo: Query classification information.
  5904  type GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfoQueryClassificationInfo struct {
  5905  	// Positive: Classification output.
  5906  	Positive bool `json:"positive,omitempty"`
  5907  	// Type: Query classification type.
  5908  	//
  5909  	// Possible values:
  5910  	//   "TYPE_UNSPECIFIED" - Unspecified query classification type.
  5911  	//   "ADVERSARIAL_QUERY" - Adversarial query classification type.
  5912  	//   "NON_ANSWER_SEEKING_QUERY" - Non-answer-seeking query classification type.
  5913  	Type string `json:"type,omitempty"`
  5914  	// ForceSendFields is a list of field names (e.g. "Positive") to
  5915  	// unconditionally include in API requests. By default, fields with empty or
  5916  	// default values are omitted from API requests. See
  5917  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5918  	// details.
  5919  	ForceSendFields []string `json:"-"`
  5920  	// NullFields is a list of field names (e.g. "Positive") to include in API
  5921  	// requests with the JSON null value. By default, fields with empty values are
  5922  	// omitted from API requests. See
  5923  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5924  	NullFields []string `json:"-"`
  5925  }
  5926  
  5927  func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfoQueryClassificationInfo) MarshalJSON() ([]byte, error) {
  5928  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfoQueryClassificationInfo
  5929  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5930  }
  5931  
  5932  // GoogleCloudDiscoveryengineV1betaAnswerReference: Reference.
  5933  type GoogleCloudDiscoveryengineV1betaAnswerReference struct {
  5934  	// ChunkInfo: Chunk information.
  5935  	ChunkInfo *GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo `json:"chunkInfo,omitempty"`
  5936  	// UnstructuredDocumentInfo: Unstructured document information.
  5937  	UnstructuredDocumentInfo *GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo `json:"unstructuredDocumentInfo,omitempty"`
  5938  	// ForceSendFields is a list of field names (e.g. "ChunkInfo") to
  5939  	// unconditionally include in API requests. By default, fields with empty or
  5940  	// default values are omitted from API requests. See
  5941  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5942  	// details.
  5943  	ForceSendFields []string `json:"-"`
  5944  	// NullFields is a list of field names (e.g. "ChunkInfo") to include in API
  5945  	// requests with the JSON null value. By default, fields with empty values are
  5946  	// omitted from API requests. See
  5947  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5948  	NullFields []string `json:"-"`
  5949  }
  5950  
  5951  func (s *GoogleCloudDiscoveryengineV1betaAnswerReference) MarshalJSON() ([]byte, error) {
  5952  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerReference
  5953  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5954  }
  5955  
  5956  // GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo: Chunk information.
  5957  type GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo struct {
  5958  	// Chunk: Chunk resource name.
  5959  	Chunk string `json:"chunk,omitempty"`
  5960  	// Content: Chunk textual content.
  5961  	Content string `json:"content,omitempty"`
  5962  	// DocumentMetadata: Document metadata.
  5963  	DocumentMetadata *GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfoDocumentMetadata `json:"documentMetadata,omitempty"`
  5964  	// RelevanceScore: Relevance score.
  5965  	RelevanceScore float64 `json:"relevanceScore,omitempty"`
  5966  	// ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally
  5967  	// include in API requests. By default, fields with empty or default values are
  5968  	// 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. "Chunk") 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 *GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo) MarshalJSON() ([]byte, error) {
  5980  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo
  5981  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5982  }
  5983  
  5984  func (s *GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo) UnmarshalJSON(data []byte) error {
  5985  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo
  5986  	var s1 struct {
  5987  		RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
  5988  		*NoMethod
  5989  	}
  5990  	s1.NoMethod = (*NoMethod)(s)
  5991  	if err := json.Unmarshal(data, &s1); err != nil {
  5992  		return err
  5993  	}
  5994  	s.RelevanceScore = float64(s1.RelevanceScore)
  5995  	return nil
  5996  }
  5997  
  5998  // GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfoDocumentMetadata:
  5999  // Document metadata.
  6000  type GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfoDocumentMetadata struct {
  6001  	// Document: Document resource name.
  6002  	Document string `json:"document,omitempty"`
  6003  	// PageIdentifier: Page identifier.
  6004  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  6005  	// Title: Title.
  6006  	Title string `json:"title,omitempty"`
  6007  	// Uri: URI for the document.
  6008  	Uri string `json:"uri,omitempty"`
  6009  	// ForceSendFields is a list of field names (e.g. "Document") to
  6010  	// unconditionally include in API requests. By default, fields with empty or
  6011  	// default values are omitted from API requests. See
  6012  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6013  	// details.
  6014  	ForceSendFields []string `json:"-"`
  6015  	// NullFields is a list of field names (e.g. "Document") to include in API
  6016  	// requests with the JSON null value. By default, fields with empty values are
  6017  	// omitted from API requests. See
  6018  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6019  	NullFields []string `json:"-"`
  6020  }
  6021  
  6022  func (s *GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfoDocumentMetadata) MarshalJSON() ([]byte, error) {
  6023  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfoDocumentMetadata
  6024  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6025  }
  6026  
  6027  // GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo:
  6028  // Unstructured document information.
  6029  type GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo struct {
  6030  	// ChunkContents: List of cited chunk contents derived from document content.
  6031  	ChunkContents []*GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChunkContent `json:"chunkContents,omitempty"`
  6032  	// Document: Document resource name.
  6033  	Document string `json:"document,omitempty"`
  6034  	// Title: Title.
  6035  	Title string `json:"title,omitempty"`
  6036  	// Uri: URI for the document.
  6037  	Uri string `json:"uri,omitempty"`
  6038  	// ForceSendFields is a list of field names (e.g. "ChunkContents") to
  6039  	// unconditionally include in API requests. By default, fields with empty or
  6040  	// default values are omitted from API requests. See
  6041  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6042  	// details.
  6043  	ForceSendFields []string `json:"-"`
  6044  	// NullFields is a list of field names (e.g. "ChunkContents") to include in API
  6045  	// requests with the JSON null value. By default, fields with empty values are
  6046  	// omitted from API requests. See
  6047  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6048  	NullFields []string `json:"-"`
  6049  }
  6050  
  6051  func (s *GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo) MarshalJSON() ([]byte, error) {
  6052  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo
  6053  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6054  }
  6055  
  6056  // GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChunkC
  6057  // ontent: Chunk content.
  6058  type GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChunkContent struct {
  6059  	// Content: Chunk textual content.
  6060  	Content string `json:"content,omitempty"`
  6061  	// PageIdentifier: Page identifier.
  6062  	PageIdentifier string `json:"pageIdentifier,omitempty"`
  6063  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  6064  	// include in API requests. By default, fields with empty or default values are
  6065  	// omitted from API requests. See
  6066  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6067  	// details.
  6068  	ForceSendFields []string `json:"-"`
  6069  	// NullFields is a list of field names (e.g. "Content") to include in API
  6070  	// requests with the JSON null value. By default, fields with empty values are
  6071  	// omitted from API requests. See
  6072  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6073  	NullFields []string `json:"-"`
  6074  }
  6075  
  6076  func (s *GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChunkContent) MarshalJSON() ([]byte, error) {
  6077  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChunkContent
  6078  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6079  }
  6080  
  6081  // GoogleCloudDiscoveryengineV1betaAnswerStep: Step information.
  6082  type GoogleCloudDiscoveryengineV1betaAnswerStep struct {
  6083  	// Actions: Actions.
  6084  	Actions []*GoogleCloudDiscoveryengineV1betaAnswerStepAction `json:"actions,omitempty"`
  6085  	// Description: The description of the step.
  6086  	Description string `json:"description,omitempty"`
  6087  	// State: The state of the step.
  6088  	//
  6089  	// Possible values:
  6090  	//   "STATE_UNSPECIFIED" - Unknown.
  6091  	//   "IN_PROGRESS" - Step is currently in progress.
  6092  	//   "FAILED" - Step currently failed.
  6093  	//   "SUCCEEDED" - Step has succeeded.
  6094  	State string `json:"state,omitempty"`
  6095  	// Thought: The thought of the step.
  6096  	Thought string `json:"thought,omitempty"`
  6097  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
  6098  	// include in API requests. By default, fields with empty or default values are
  6099  	// omitted from API requests. See
  6100  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6101  	// details.
  6102  	ForceSendFields []string `json:"-"`
  6103  	// NullFields is a list of field names (e.g. "Actions") to include in API
  6104  	// requests with the JSON null value. By default, fields with empty values are
  6105  	// omitted from API requests. See
  6106  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6107  	NullFields []string `json:"-"`
  6108  }
  6109  
  6110  func (s *GoogleCloudDiscoveryengineV1betaAnswerStep) MarshalJSON() ([]byte, error) {
  6111  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStep
  6112  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6113  }
  6114  
  6115  // GoogleCloudDiscoveryengineV1betaAnswerStepAction: Action.
  6116  type GoogleCloudDiscoveryengineV1betaAnswerStepAction struct {
  6117  	// Observation: Observation.
  6118  	Observation *GoogleCloudDiscoveryengineV1betaAnswerStepActionObservation `json:"observation,omitempty"`
  6119  	// SearchAction: Search action.
  6120  	SearchAction *GoogleCloudDiscoveryengineV1betaAnswerStepActionSearchAction `json:"searchAction,omitempty"`
  6121  	// ForceSendFields is a list of field names (e.g. "Observation") to
  6122  	// unconditionally include in API requests. By default, fields with empty or
  6123  	// default values are omitted from API requests. See
  6124  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6125  	// details.
  6126  	ForceSendFields []string `json:"-"`
  6127  	// NullFields is a list of field names (e.g. "Observation") to include in API
  6128  	// requests with the JSON null value. By default, fields with empty values are
  6129  	// omitted from API requests. See
  6130  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6131  	NullFields []string `json:"-"`
  6132  }
  6133  
  6134  func (s *GoogleCloudDiscoveryengineV1betaAnswerStepAction) MarshalJSON() ([]byte, error) {
  6135  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepAction
  6136  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6137  }
  6138  
  6139  // GoogleCloudDiscoveryengineV1betaAnswerStepActionObservation: Observation.
  6140  type GoogleCloudDiscoveryengineV1betaAnswerStepActionObservation struct {
  6141  	// SearchResults: Search results observed by the search action, it can be
  6142  	// snippets info or chunk info, depending on the citation type set by the user.
  6143  	SearchResults []*GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResult `json:"searchResults,omitempty"`
  6144  	// ForceSendFields is a list of field names (e.g. "SearchResults") to
  6145  	// unconditionally include in API requests. By default, fields with empty or
  6146  	// default values are omitted from API requests. See
  6147  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6148  	// details.
  6149  	ForceSendFields []string `json:"-"`
  6150  	// NullFields is a list of field names (e.g. "SearchResults") to include in API
  6151  	// requests with the JSON null value. By default, fields with empty values are
  6152  	// omitted from API requests. See
  6153  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6154  	NullFields []string `json:"-"`
  6155  }
  6156  
  6157  func (s *GoogleCloudDiscoveryengineV1betaAnswerStepActionObservation) MarshalJSON() ([]byte, error) {
  6158  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepActionObservation
  6159  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6160  }
  6161  
  6162  type GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResult struct {
  6163  	// ChunkInfo: If citation_type is CHUNK_LEVEL_CITATION and chunk mode is on,
  6164  	// populate chunk info.
  6165  	ChunkInfo []*GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkInfo `json:"chunkInfo,omitempty"`
  6166  	// Document: Document resource name.
  6167  	Document string `json:"document,omitempty"`
  6168  	// SnippetInfo: If citation_type is DOCUMENT_LEVEL_CITATION, populate document
  6169  	// level snippets.
  6170  	SnippetInfo []*GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultSnippetInfo `json:"snippetInfo,omitempty"`
  6171  	// Title: Title.
  6172  	Title string `json:"title,omitempty"`
  6173  	// Uri: URI for the document.
  6174  	Uri string `json:"uri,omitempty"`
  6175  	// ForceSendFields is a list of field names (e.g. "ChunkInfo") to
  6176  	// unconditionally include in API requests. By default, fields with empty or
  6177  	// default values are omitted from API requests. See
  6178  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6179  	// details.
  6180  	ForceSendFields []string `json:"-"`
  6181  	// NullFields is a list of field names (e.g. "ChunkInfo") to include in API
  6182  	// requests with the JSON null value. By default, fields with empty values are
  6183  	// omitted from API requests. See
  6184  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6185  	NullFields []string `json:"-"`
  6186  }
  6187  
  6188  func (s *GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResult) MarshalJSON() ([]byte, error) {
  6189  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResult
  6190  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6191  }
  6192  
  6193  // GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkI
  6194  // nfo: Chunk information.
  6195  type GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkInfo struct {
  6196  	// Chunk: Chunk resource name.
  6197  	Chunk string `json:"chunk,omitempty"`
  6198  	// Content: Chunk textual content.
  6199  	Content string `json:"content,omitempty"`
  6200  	// RelevanceScore: Relevance score.
  6201  	RelevanceScore float64 `json:"relevanceScore,omitempty"`
  6202  	// ForceSendFields is a list of field names (e.g. "Chunk") to unconditionally
  6203  	// include in API requests. By default, fields with empty or default values are
  6204  	// omitted from API requests. See
  6205  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6206  	// details.
  6207  	ForceSendFields []string `json:"-"`
  6208  	// NullFields is a list of field names (e.g. "Chunk") to include in API
  6209  	// requests with the JSON null value. By default, fields with empty values are
  6210  	// omitted from API requests. See
  6211  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6212  	NullFields []string `json:"-"`
  6213  }
  6214  
  6215  func (s *GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkInfo) MarshalJSON() ([]byte, error) {
  6216  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkInfo
  6217  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6218  }
  6219  
  6220  func (s *GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkInfo) UnmarshalJSON(data []byte) error {
  6221  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkInfo
  6222  	var s1 struct {
  6223  		RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
  6224  		*NoMethod
  6225  	}
  6226  	s1.NoMethod = (*NoMethod)(s)
  6227  	if err := json.Unmarshal(data, &s1); err != nil {
  6228  		return err
  6229  	}
  6230  	s.RelevanceScore = float64(s1.RelevanceScore)
  6231  	return nil
  6232  }
  6233  
  6234  // GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultSnippe
  6235  // tInfo: Snippet information.
  6236  type GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultSnippetInfo struct {
  6237  	// Snippet: Snippet content.
  6238  	Snippet string `json:"snippet,omitempty"`
  6239  	// SnippetStatus: Status of the snippet defined by the search team.
  6240  	SnippetStatus string `json:"snippetStatus,omitempty"`
  6241  	// ForceSendFields is a list of field names (e.g. "Snippet") to unconditionally
  6242  	// include in API requests. By default, fields with empty or default values are
  6243  	// omitted from API requests. See
  6244  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6245  	// details.
  6246  	ForceSendFields []string `json:"-"`
  6247  	// NullFields is a list of field names (e.g. "Snippet") to include in API
  6248  	// requests with the JSON null value. By default, fields with empty values are
  6249  	// omitted from API requests. See
  6250  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6251  	NullFields []string `json:"-"`
  6252  }
  6253  
  6254  func (s *GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultSnippetInfo) MarshalJSON() ([]byte, error) {
  6255  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultSnippetInfo
  6256  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6257  }
  6258  
  6259  // GoogleCloudDiscoveryengineV1betaAnswerStepActionSearchAction: Search action.
  6260  type GoogleCloudDiscoveryengineV1betaAnswerStepActionSearchAction struct {
  6261  	// Query: The query to search.
  6262  	Query string `json:"query,omitempty"`
  6263  	// ForceSendFields is a list of field names (e.g. "Query") to unconditionally
  6264  	// include in API requests. By default, fields with empty or default values are
  6265  	// omitted from API requests. See
  6266  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6267  	// details.
  6268  	ForceSendFields []string `json:"-"`
  6269  	// NullFields is a list of field names (e.g. "Query") to include in API
  6270  	// requests with the JSON null value. By default, fields with empty values are
  6271  	// omitted from API requests. See
  6272  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6273  	NullFields []string `json:"-"`
  6274  }
  6275  
  6276  func (s *GoogleCloudDiscoveryengineV1betaAnswerStepActionSearchAction) MarshalJSON() ([]byte, error) {
  6277  	type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepActionSearchAction
  6278  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6279  }
  6280  
  6281  // GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata: Metadata
  6282  // related to the progress of the
  6283  // SiteSearchEngineService.BatchCreateTargetSites operation. This will be
  6284  // returned by the google.longrunning.Operation.metadata field.
  6285  type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata struct {
  6286  	// CreateTime: Operation create time.
  6287  	CreateTime string `json:"createTime,omitempty"`
  6288  	// UpdateTime: Operation last update time. If the operation is done, this is
  6289  	// also the finish time.
  6290  	UpdateTime string `json:"updateTime,omitempty"`
  6291  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6292  	// unconditionally include in API requests. By default, fields with empty or
  6293  	// default values are omitted from API requests. See
  6294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6295  	// details.
  6296  	ForceSendFields []string `json:"-"`
  6297  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6298  	// requests with the JSON null value. By default, fields with empty values are
  6299  	// omitted from API requests. See
  6300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6301  	NullFields []string `json:"-"`
  6302  }
  6303  
  6304  func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  6305  	type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata
  6306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6307  }
  6308  
  6309  // GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest: Request
  6310  // message for SiteSearchEngineService.BatchCreateTargetSites method.
  6311  type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest struct {
  6312  	// Requests: Required. The request message specifying the resources to create.
  6313  	// A maximum of 20 TargetSites can be created in a batch.
  6314  	Requests []*GoogleCloudDiscoveryengineV1betaCreateTargetSiteRequest `json:"requests,omitempty"`
  6315  	// ForceSendFields is a list of field names (e.g. "Requests") to
  6316  	// unconditionally include in API requests. By default, fields with empty or
  6317  	// default values are omitted from API requests. See
  6318  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6319  	// details.
  6320  	ForceSendFields []string `json:"-"`
  6321  	// NullFields is a list of field names (e.g. "Requests") to include in API
  6322  	// requests with the JSON null value. By default, fields with empty values are
  6323  	// omitted from API requests. See
  6324  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6325  	NullFields []string `json:"-"`
  6326  }
  6327  
  6328  func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest) MarshalJSON() ([]byte, error) {
  6329  	type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest
  6330  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6331  }
  6332  
  6333  // GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse: Response
  6334  // message for SiteSearchEngineService.BatchCreateTargetSites method.
  6335  type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse struct {
  6336  	// TargetSites: TargetSites created.
  6337  	TargetSites []*GoogleCloudDiscoveryengineV1betaTargetSite `json:"targetSites,omitempty"`
  6338  	// ForceSendFields is a list of field names (e.g. "TargetSites") to
  6339  	// unconditionally include in API requests. By default, fields with empty or
  6340  	// default values are omitted from API requests. See
  6341  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6342  	// details.
  6343  	ForceSendFields []string `json:"-"`
  6344  	// NullFields is a list of field names (e.g. "TargetSites") to include in API
  6345  	// requests with the JSON null value. By default, fields with empty values are
  6346  	// omitted from API requests. See
  6347  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6348  	NullFields []string `json:"-"`
  6349  }
  6350  
  6351  func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
  6352  	type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse
  6353  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6354  }
  6355  
  6356  // GoogleCloudDiscoveryengineV1betaBatchVerifyTargetSitesRequest: Request
  6357  // message for SiteSearchEngineService.BatchVerifyTargetSites method.
  6358  type GoogleCloudDiscoveryengineV1betaBatchVerifyTargetSitesRequest struct {
  6359  }
  6360  
  6361  // GoogleCloudDiscoveryengineV1betaBigQuerySource: BigQuery source import data
  6362  // from.
  6363  type GoogleCloudDiscoveryengineV1betaBigQuerySource struct {
  6364  	// DataSchema: The schema to use when parsing the data from the source.
  6365  	// Supported values for user event imports: * `user_event` (default): One
  6366  	// UserEvent per row. Supported values for document imports: * `document`
  6367  	// (default): One Document format per row. Each document must have a valid
  6368  	// Document.id and one of Document.json_data or Document.struct_data. *
  6369  	// `custom`: One custom data per row in arbitrary format that conforms to the
  6370  	// defined Schema of the data store. This can only be used by the GENERIC Data
  6371  	// Store vertical.
  6372  	DataSchema string `json:"dataSchema,omitempty"`
  6373  	// DatasetId: Required. The BigQuery data set to copy the data from with a
  6374  	// length limit of 1,024 characters.
  6375  	DatasetId string `json:"datasetId,omitempty"`
  6376  	// GcsStagingDir: Intermediate Cloud Storage directory used for the import with
  6377  	// a length limit of 2,000 characters. Can be specified if one wants to have
  6378  	// the BigQuery export to a specific Cloud Storage directory.
  6379  	GcsStagingDir string `json:"gcsStagingDir,omitempty"`
  6380  	// PartitionDate: BigQuery time partitioned table's _PARTITIONDATE in
  6381  	// YYYY-MM-DD format.
  6382  	PartitionDate *GoogleTypeDate `json:"partitionDate,omitempty"`
  6383  	// ProjectId: The project ID (can be project # or ID) that the BigQuery source
  6384  	// is in with a length limit of 128 characters. If not specified, inherits the
  6385  	// project ID from the parent request.
  6386  	ProjectId string `json:"projectId,omitempty"`
  6387  	// TableId: Required. The BigQuery table to copy the data from with a length
  6388  	// limit of 1,024 characters.
  6389  	TableId string `json:"tableId,omitempty"`
  6390  	// ForceSendFields is a list of field names (e.g. "DataSchema") to
  6391  	// unconditionally include in API requests. By default, fields with empty or
  6392  	// default values are omitted from API requests. See
  6393  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6394  	// details.
  6395  	ForceSendFields []string `json:"-"`
  6396  	// NullFields is a list of field names (e.g. "DataSchema") to include in API
  6397  	// requests with the JSON null value. By default, fields with empty values are
  6398  	// omitted from API requests. See
  6399  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6400  	NullFields []string `json:"-"`
  6401  }
  6402  
  6403  func (s *GoogleCloudDiscoveryengineV1betaBigQuerySource) MarshalJSON() ([]byte, error) {
  6404  	type NoMethod GoogleCloudDiscoveryengineV1betaBigQuerySource
  6405  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6406  }
  6407  
  6408  // GoogleCloudDiscoveryengineV1betaBigtableOptions: The Bigtable Options object
  6409  // that contains information to support the import.
  6410  type GoogleCloudDiscoveryengineV1betaBigtableOptions struct {
  6411  	// Families: The mapping from family names to an object that contains column
  6412  	// families level information for the given column family. If a family is not
  6413  	// present in this map it will be ignored.
  6414  	Families map[string]GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily `json:"families,omitempty"`
  6415  	// KeyFieldName: The field name used for saving row key value in the document.
  6416  	// The name has to match the pattern `a-zA-Z0-9*`.
  6417  	KeyFieldName string `json:"keyFieldName,omitempty"`
  6418  	// ForceSendFields is a list of field names (e.g. "Families") to
  6419  	// unconditionally include in API requests. By default, fields with empty or
  6420  	// default values are omitted from API requests. See
  6421  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6422  	// details.
  6423  	ForceSendFields []string `json:"-"`
  6424  	// NullFields is a list of field names (e.g. "Families") to include in API
  6425  	// requests with the JSON null value. By default, fields with empty values are
  6426  	// omitted from API requests. See
  6427  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6428  	NullFields []string `json:"-"`
  6429  }
  6430  
  6431  func (s *GoogleCloudDiscoveryengineV1betaBigtableOptions) MarshalJSON() ([]byte, error) {
  6432  	type NoMethod GoogleCloudDiscoveryengineV1betaBigtableOptions
  6433  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6434  }
  6435  
  6436  // GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn: The column of
  6437  // the Bigtable.
  6438  type GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn struct {
  6439  	// Encoding: The encoding mode of the values when the type is not `STRING`.
  6440  	// Acceptable encoding values are: * `TEXT`: indicates values are alphanumeric
  6441  	// text strings. * `BINARY`: indicates values are encoded using `HBase
  6442  	// Bytes.toBytes` family of functions. This can be overridden for a specific
  6443  	// column by listing that column in `columns` and specifying an encoding for
  6444  	// it.
  6445  	//
  6446  	// Possible values:
  6447  	//   "ENCODING_UNSPECIFIED" - The encoding is unspecified.
  6448  	//   "TEXT" - Text encoding.
  6449  	//   "BINARY" - Binary encoding.
  6450  	Encoding string `json:"encoding,omitempty"`
  6451  	// FieldName: The field name to use for this column in the document. The name
  6452  	// has to match the pattern `a-zA-Z0-9*`. If not set, it is parsed from the
  6453  	// qualifier bytes with best effort. However, due to different naming patterns,
  6454  	// field name collisions could happen, where parsing behavior is undefined.
  6455  	FieldName string `json:"fieldName,omitempty"`
  6456  	// Qualifier: Required. Qualifier of the column. If it cannot be decoded with
  6457  	// utf-8, use a base-64 encoded string instead.
  6458  	Qualifier string `json:"qualifier,omitempty"`
  6459  	// Type: The type of values in this column family. The values are expected to
  6460  	// be encoded using `HBase Bytes.toBytes` function when the encoding value is
  6461  	// set to `BINARY`.
  6462  	//
  6463  	// Possible values:
  6464  	//   "TYPE_UNSPECIFIED" - The type is unspecified.
  6465  	//   "STRING" - String type.
  6466  	//   "NUMBER" - Numerical type.
  6467  	//   "INTEGER" - Integer type.
  6468  	//   "VAR_INTEGER" - Variable length integer type.
  6469  	//   "BIG_NUMERIC" - BigDecimal type.
  6470  	//   "BOOLEAN" - Boolean type.
  6471  	//   "JSON" - JSON type.
  6472  	Type string `json:"type,omitempty"`
  6473  	// ForceSendFields is a list of field names (e.g. "Encoding") to
  6474  	// unconditionally include in API requests. By default, fields with empty or
  6475  	// default values are omitted from API requests. See
  6476  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6477  	// details.
  6478  	ForceSendFields []string `json:"-"`
  6479  	// NullFields is a list of field names (e.g. "Encoding") to include in API
  6480  	// requests with the JSON null value. By default, fields with empty values are
  6481  	// omitted from API requests. See
  6482  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6483  	NullFields []string `json:"-"`
  6484  }
  6485  
  6486  func (s *GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn) MarshalJSON() ([]byte, error) {
  6487  	type NoMethod GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn
  6488  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6489  }
  6490  
  6491  // GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily: The
  6492  // column family of the Bigtable.
  6493  type GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily struct {
  6494  	// Columns: The list of objects that contains column level information for each
  6495  	// column. If a column is not present in this list it will be ignored.
  6496  	Columns []*GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn `json:"columns,omitempty"`
  6497  	// Encoding: The encoding mode of the values when the type is not STRING.
  6498  	// Acceptable encoding values are: * `TEXT`: indicates values are alphanumeric
  6499  	// text strings. * `BINARY`: indicates values are encoded using `HBase
  6500  	// Bytes.toBytes` family of functions. This can be overridden for a specific
  6501  	// column by listing that column in `columns` and specifying an encoding for
  6502  	// it.
  6503  	//
  6504  	// Possible values:
  6505  	//   "ENCODING_UNSPECIFIED" - The encoding is unspecified.
  6506  	//   "TEXT" - Text encoding.
  6507  	//   "BINARY" - Binary encoding.
  6508  	Encoding string `json:"encoding,omitempty"`
  6509  	// FieldName: The field name to use for this column family in the document. The
  6510  	// name has to match the pattern `a-zA-Z0-9*`. If not set, it is parsed from
  6511  	// the family name with best effort. However, due to different naming patterns,
  6512  	// field name collisions could happen, where parsing behavior is undefined.
  6513  	FieldName string `json:"fieldName,omitempty"`
  6514  	// Type: The type of values in this column family. The values are expected to
  6515  	// be encoded using `HBase Bytes.toBytes` function when the encoding value is
  6516  	// set to `BINARY`.
  6517  	//
  6518  	// Possible values:
  6519  	//   "TYPE_UNSPECIFIED" - The type is unspecified.
  6520  	//   "STRING" - String type.
  6521  	//   "NUMBER" - Numerical type.
  6522  	//   "INTEGER" - Integer type.
  6523  	//   "VAR_INTEGER" - Variable length integer type.
  6524  	//   "BIG_NUMERIC" - BigDecimal type.
  6525  	//   "BOOLEAN" - Boolean type.
  6526  	//   "JSON" - JSON type.
  6527  	Type string `json:"type,omitempty"`
  6528  	// ForceSendFields is a list of field names (e.g. "Columns") to unconditionally
  6529  	// include in API requests. By default, fields with empty or default values are
  6530  	// omitted from API requests. See
  6531  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6532  	// details.
  6533  	ForceSendFields []string `json:"-"`
  6534  	// NullFields is a list of field names (e.g. "Columns") to include in API
  6535  	// requests with the JSON null value. By default, fields with empty values are
  6536  	// omitted from API requests. See
  6537  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6538  	NullFields []string `json:"-"`
  6539  }
  6540  
  6541  func (s *GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily) MarshalJSON() ([]byte, error) {
  6542  	type NoMethod GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily
  6543  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6544  }
  6545  
  6546  // GoogleCloudDiscoveryengineV1betaBigtableSource: The Cloud Bigtable source
  6547  // for importing data.
  6548  type GoogleCloudDiscoveryengineV1betaBigtableSource struct {
  6549  	// BigtableOptions: Required. Bigtable options that contains information needed
  6550  	// when parsing data into typed structures. For example, column type
  6551  	// annotations.
  6552  	BigtableOptions *GoogleCloudDiscoveryengineV1betaBigtableOptions `json:"bigtableOptions,omitempty"`
  6553  	// InstanceId: Required. The instance ID of the Cloud Bigtable that needs to be
  6554  	// imported.
  6555  	InstanceId string `json:"instanceId,omitempty"`
  6556  	// ProjectId: The project ID that the Bigtable source is in with a length limit
  6557  	// of 128 characters. If not specified, inherits the project ID from the parent
  6558  	// request.
  6559  	ProjectId string `json:"projectId,omitempty"`
  6560  	// TableId: Required. The table ID of the Cloud Bigtable that needs to be
  6561  	// imported.
  6562  	TableId string `json:"tableId,omitempty"`
  6563  	// ForceSendFields is a list of field names (e.g. "BigtableOptions") to
  6564  	// unconditionally include in API requests. By default, fields with empty or
  6565  	// default values are omitted from API requests. See
  6566  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6567  	// details.
  6568  	ForceSendFields []string `json:"-"`
  6569  	// NullFields is a list of field names (e.g. "BigtableOptions") to include in
  6570  	// API requests with the JSON null value. By default, fields with empty values
  6571  	// are omitted from API requests. See
  6572  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6573  	NullFields []string `json:"-"`
  6574  }
  6575  
  6576  func (s *GoogleCloudDiscoveryengineV1betaBigtableSource) MarshalJSON() ([]byte, error) {
  6577  	type NoMethod GoogleCloudDiscoveryengineV1betaBigtableSource
  6578  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6579  }
  6580  
  6581  // GoogleCloudDiscoveryengineV1betaCheckGroundingRequest: Request message for
  6582  // GroundedGenerationService.CheckGrounding method.
  6583  type GoogleCloudDiscoveryengineV1betaCheckGroundingRequest struct {
  6584  	// AnswerCandidate: Answer candidate to check. Can have a maximum length of
  6585  	// 1024 characters.
  6586  	AnswerCandidate string `json:"answerCandidate,omitempty"`
  6587  	// Facts: List of facts for the grounding check. We support up to 200 facts.
  6588  	Facts []*GoogleCloudDiscoveryengineV1betaGroundingFact `json:"facts,omitempty"`
  6589  	// GroundingSpec: Configuration of the grounding check.
  6590  	GroundingSpec *GoogleCloudDiscoveryengineV1betaCheckGroundingSpec `json:"groundingSpec,omitempty"`
  6591  	// UserLabels: The user labels applied to a resource must meet the following
  6592  	// requirements: * Each resource can have multiple labels, up to a maximum of
  6593  	// 64. * Each label must be a key-value pair. * Keys have a minimum length of 1
  6594  	// character and a maximum length of 63 characters and cannot be empty. Values
  6595  	// can be empty and have a maximum length of 63 characters. * Keys and values
  6596  	// can contain only lowercase letters, numeric characters, underscores, and
  6597  	// dashes. All characters must use UTF-8 encoding, and international characters
  6598  	// are allowed. * The key portion of a label must be unique. However, you can
  6599  	// use the same key with multiple resources. * Keys must start with a lowercase
  6600  	// letter or international character. See Google Cloud Document
  6601  	// (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  6602  	// for more details.
  6603  	UserLabels map[string]string `json:"userLabels,omitempty"`
  6604  	// ForceSendFields is a list of field names (e.g. "AnswerCandidate") to
  6605  	// unconditionally include in API requests. By default, fields with empty or
  6606  	// default values are omitted from API requests. See
  6607  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6608  	// details.
  6609  	ForceSendFields []string `json:"-"`
  6610  	// NullFields is a list of field names (e.g. "AnswerCandidate") to include in
  6611  	// API requests with the JSON null value. By default, fields with empty values
  6612  	// are omitted from API requests. See
  6613  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6614  	NullFields []string `json:"-"`
  6615  }
  6616  
  6617  func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingRequest) MarshalJSON() ([]byte, error) {
  6618  	type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingRequest
  6619  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6620  }
  6621  
  6622  // GoogleCloudDiscoveryengineV1betaCheckGroundingResponse: Response message for
  6623  // the GroundedGenerationService.CheckGrounding method.
  6624  type GoogleCloudDiscoveryengineV1betaCheckGroundingResponse struct {
  6625  	// CitedChunks: List of facts cited across all claims in the answer candidate.
  6626  	// These are derived from the facts supplied in the request.
  6627  	CitedChunks []*GoogleCloudDiscoveryengineV1betaFactChunk `json:"citedChunks,omitempty"`
  6628  	// Claims: Claim texts and citation info across all claims in the answer
  6629  	// candidate.
  6630  	Claims []*GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim `json:"claims,omitempty"`
  6631  	// SupportScore: The support score for the input answer candidate. Higher the
  6632  	// score, higher is the fraction of claims that are supported by the provided
  6633  	// facts. This is always set when a response is returned.
  6634  	SupportScore float64 `json:"supportScore,omitempty"`
  6635  
  6636  	// ServerResponse contains the HTTP response code and headers from the server.
  6637  	googleapi.ServerResponse `json:"-"`
  6638  	// ForceSendFields is a list of field names (e.g. "CitedChunks") to
  6639  	// unconditionally include in API requests. By default, fields with empty or
  6640  	// default values are omitted from API requests. See
  6641  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6642  	// details.
  6643  	ForceSendFields []string `json:"-"`
  6644  	// NullFields is a list of field names (e.g. "CitedChunks") to include in API
  6645  	// requests with the JSON null value. By default, fields with empty values are
  6646  	// omitted from API requests. See
  6647  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6648  	NullFields []string `json:"-"`
  6649  }
  6650  
  6651  func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingResponse) MarshalJSON() ([]byte, error) {
  6652  	type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingResponse
  6653  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6654  }
  6655  
  6656  func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingResponse) UnmarshalJSON(data []byte) error {
  6657  	type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingResponse
  6658  	var s1 struct {
  6659  		SupportScore gensupport.JSONFloat64 `json:"supportScore"`
  6660  		*NoMethod
  6661  	}
  6662  	s1.NoMethod = (*NoMethod)(s)
  6663  	if err := json.Unmarshal(data, &s1); err != nil {
  6664  		return err
  6665  	}
  6666  	s.SupportScore = float64(s1.SupportScore)
  6667  	return nil
  6668  }
  6669  
  6670  // GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim: Text and
  6671  // citation info for a claim in the answer candidate.
  6672  type GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim struct {
  6673  	// CitationIndices: A list of indices (into 'cited_chunks') specifying the
  6674  	// citations associated with the claim. For instance [1,3,4] means that
  6675  	// cited_chunks[1], cited_chunks[3], cited_chunks[4] are the facts cited
  6676  	// supporting for the claim. A citation to a fact indicates that the claim is
  6677  	// supported by the fact.
  6678  	CitationIndices []int64 `json:"citationIndices,omitempty"`
  6679  	// ClaimText: Text for the claim in the answer candidate. Always provided
  6680  	// regardless of whether citations or anti-citations are found.
  6681  	ClaimText string `json:"claimText,omitempty"`
  6682  	// EndPos: Position indicating the end of the claim in the answer candidate,
  6683  	// exclusive.
  6684  	EndPos int64 `json:"endPos,omitempty"`
  6685  	// GroundingCheckRequired: Indicates that this claim required grounding check.
  6686  	// When the system decided this claim doesn't require attribution/grounding
  6687  	// check, this field will be set to false. In that case, no grounding check was
  6688  	// done for the claim and therefore citation_indices, and anti_citation_indices
  6689  	// should not be returned.
  6690  	GroundingCheckRequired bool `json:"groundingCheckRequired,omitempty"`
  6691  	// StartPos: Position indicating the start of the claim in the answer
  6692  	// candidate, measured in bytes.
  6693  	StartPos int64 `json:"startPos,omitempty"`
  6694  	// ForceSendFields is a list of field names (e.g. "CitationIndices") to
  6695  	// unconditionally include in API requests. By default, fields with empty or
  6696  	// default values are omitted from API requests. See
  6697  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6698  	// details.
  6699  	ForceSendFields []string `json:"-"`
  6700  	// NullFields is a list of field names (e.g. "CitationIndices") to include in
  6701  	// API requests with the JSON null value. By default, fields with empty values
  6702  	// are omitted from API requests. See
  6703  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6704  	NullFields []string `json:"-"`
  6705  }
  6706  
  6707  func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim) MarshalJSON() ([]byte, error) {
  6708  	type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim
  6709  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6710  }
  6711  
  6712  // GoogleCloudDiscoveryengineV1betaCheckGroundingSpec: Specification for the
  6713  // grounding check.
  6714  type GoogleCloudDiscoveryengineV1betaCheckGroundingSpec struct {
  6715  	// CitationThreshold: The threshold (in [0,1]) used for determining whether a
  6716  	// fact must be cited for a claim in the answer candidate. Choosing a higher
  6717  	// threshold will lead to fewer but very strong citations, while choosing a
  6718  	// lower threshold may lead to more but somewhat weaker citations. If unset,
  6719  	// the threshold will default to 0.6.
  6720  	CitationThreshold float64 `json:"citationThreshold,omitempty"`
  6721  	// ForceSendFields is a list of field names (e.g. "CitationThreshold") to
  6722  	// unconditionally include in API requests. By default, fields with empty or
  6723  	// default values are omitted from API requests. See
  6724  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6725  	// details.
  6726  	ForceSendFields []string `json:"-"`
  6727  	// NullFields is a list of field names (e.g. "CitationThreshold") to include in
  6728  	// API requests with the JSON null value. By default, fields with empty values
  6729  	// are omitted from API requests. See
  6730  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6731  	NullFields []string `json:"-"`
  6732  }
  6733  
  6734  func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingSpec) MarshalJSON() ([]byte, error) {
  6735  	type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingSpec
  6736  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6737  }
  6738  
  6739  func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingSpec) UnmarshalJSON(data []byte) error {
  6740  	type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingSpec
  6741  	var s1 struct {
  6742  		CitationThreshold gensupport.JSONFloat64 `json:"citationThreshold"`
  6743  		*NoMethod
  6744  	}
  6745  	s1.NoMethod = (*NoMethod)(s)
  6746  	if err := json.Unmarshal(data, &s1); err != nil {
  6747  		return err
  6748  	}
  6749  	s.CitationThreshold = float64(s1.CitationThreshold)
  6750  	return nil
  6751  }
  6752  
  6753  // GoogleCloudDiscoveryengineV1betaCloudSqlSource: Cloud SQL source import data
  6754  // from.
  6755  type GoogleCloudDiscoveryengineV1betaCloudSqlSource struct {
  6756  	// DatabaseId: Required. The Cloud SQL database to copy the data from with a
  6757  	// length limit of 256 characters.
  6758  	DatabaseId string `json:"databaseId,omitempty"`
  6759  	// GcsStagingDir: Intermediate Cloud Storage directory used for the import with
  6760  	// a length limit of 2,000 characters. Can be specified if one wants to have
  6761  	// the Cloud SQL export to a specific Cloud Storage directory. Ensure that the
  6762  	// Cloud SQL service account has the necessary Cloud Storage Admin permissions
  6763  	// to access the specified Cloud Storage directory.
  6764  	GcsStagingDir string `json:"gcsStagingDir,omitempty"`
  6765  	// InstanceId: Required. The Cloud SQL instance to copy the data from with a
  6766  	// length limit of 256 characters.
  6767  	InstanceId string `json:"instanceId,omitempty"`
  6768  	// Offload: Option for serverless export. Enabling this option will incur
  6769  	// additional cost. More info can be found here
  6770  	// (https://cloud.google.com/sql/pricing#serverless).
  6771  	Offload bool `json:"offload,omitempty"`
  6772  	// ProjectId: The project ID that the Cloud SQL source is in with a length
  6773  	// limit of 128 characters. If not specified, inherits the project ID from the
  6774  	// parent request.
  6775  	ProjectId string `json:"projectId,omitempty"`
  6776  	// TableId: Required. The Cloud SQL table to copy the data from with a length
  6777  	// limit of 256 characters.
  6778  	TableId string `json:"tableId,omitempty"`
  6779  	// ForceSendFields is a list of field names (e.g. "DatabaseId") to
  6780  	// unconditionally include in API requests. By default, fields with empty or
  6781  	// default values are omitted from API requests. See
  6782  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6783  	// details.
  6784  	ForceSendFields []string `json:"-"`
  6785  	// NullFields is a list of field names (e.g. "DatabaseId") to include in API
  6786  	// requests with the JSON null value. By default, fields with empty values are
  6787  	// omitted from API requests. See
  6788  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6789  	NullFields []string `json:"-"`
  6790  }
  6791  
  6792  func (s *GoogleCloudDiscoveryengineV1betaCloudSqlSource) MarshalJSON() ([]byte, error) {
  6793  	type NoMethod GoogleCloudDiscoveryengineV1betaCloudSqlSource
  6794  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6795  }
  6796  
  6797  // GoogleCloudDiscoveryengineV1betaCompleteQueryResponse: Response message for
  6798  // CompletionService.CompleteQuery method.
  6799  type GoogleCloudDiscoveryengineV1betaCompleteQueryResponse struct {
  6800  	// QuerySuggestions: Results of the matched query suggestions. The result list
  6801  	// is ordered and the first result is a top suggestion.
  6802  	QuerySuggestions []*GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion `json:"querySuggestions,omitempty"`
  6803  	// TailMatchTriggered: True if the returned suggestions are all tail
  6804  	// suggestions. For tail matching to be triggered, include_tail_suggestions in
  6805  	// the request must be true and there must be no suggestions that match the
  6806  	// full query.
  6807  	TailMatchTriggered bool `json:"tailMatchTriggered,omitempty"`
  6808  
  6809  	// ServerResponse contains the HTTP response code and headers from the server.
  6810  	googleapi.ServerResponse `json:"-"`
  6811  	// ForceSendFields is a list of field names (e.g. "QuerySuggestions") to
  6812  	// unconditionally include in API requests. By default, fields with empty or
  6813  	// default values are omitted from API requests. See
  6814  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6815  	// details.
  6816  	ForceSendFields []string `json:"-"`
  6817  	// NullFields is a list of field names (e.g. "QuerySuggestions") to include in
  6818  	// API requests with the JSON null value. By default, fields with empty values
  6819  	// are omitted from API requests. See
  6820  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6821  	NullFields []string `json:"-"`
  6822  }
  6823  
  6824  func (s *GoogleCloudDiscoveryengineV1betaCompleteQueryResponse) MarshalJSON() ([]byte, error) {
  6825  	type NoMethod GoogleCloudDiscoveryengineV1betaCompleteQueryResponse
  6826  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6827  }
  6828  
  6829  // GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion:
  6830  // Suggestions as search queries.
  6831  type GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion struct {
  6832  	// CompletableFieldPaths: The unique document field paths that serve as the
  6833  	// source of this suggestion if it was generated from completable fields. This
  6834  	// field is only populated for the document-completable model.
  6835  	CompletableFieldPaths []string `json:"completableFieldPaths,omitempty"`
  6836  	// Suggestion: The suggestion for the query.
  6837  	Suggestion string `json:"suggestion,omitempty"`
  6838  	// ForceSendFields is a list of field names (e.g. "CompletableFieldPaths") to
  6839  	// unconditionally include in API requests. By default, fields with empty or
  6840  	// default values are omitted from API requests. See
  6841  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6842  	// details.
  6843  	ForceSendFields []string `json:"-"`
  6844  	// NullFields is a list of field names (e.g. "CompletableFieldPaths") to
  6845  	// include in API requests with the JSON null value. By default, fields with
  6846  	// empty values are omitted from API requests. See
  6847  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6848  	NullFields []string `json:"-"`
  6849  }
  6850  
  6851  func (s *GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion) MarshalJSON() ([]byte, error) {
  6852  	type NoMethod GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion
  6853  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6854  }
  6855  
  6856  // GoogleCloudDiscoveryengineV1betaCompletionInfo: Detailed completion
  6857  // information including completion attribution token and clicked completion
  6858  // info.
  6859  type GoogleCloudDiscoveryengineV1betaCompletionInfo struct {
  6860  	// SelectedPosition: End user selected
  6861  	// CompleteQueryResponse.QuerySuggestion.suggestion position, starting from 0.
  6862  	SelectedPosition int64 `json:"selectedPosition,omitempty"`
  6863  	// SelectedSuggestion: End user selected
  6864  	// CompleteQueryResponse.QuerySuggestion.suggestion.
  6865  	SelectedSuggestion string `json:"selectedSuggestion,omitempty"`
  6866  	// ForceSendFields is a list of field names (e.g. "SelectedPosition") to
  6867  	// unconditionally include in API requests. By default, fields with empty or
  6868  	// default values are omitted from API requests. See
  6869  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6870  	// details.
  6871  	ForceSendFields []string `json:"-"`
  6872  	// NullFields is a list of field names (e.g. "SelectedPosition") to include in
  6873  	// API requests with the JSON null value. By default, fields with empty values
  6874  	// are omitted from API requests. See
  6875  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6876  	NullFields []string `json:"-"`
  6877  }
  6878  
  6879  func (s *GoogleCloudDiscoveryengineV1betaCompletionInfo) MarshalJSON() ([]byte, error) {
  6880  	type NoMethod GoogleCloudDiscoveryengineV1betaCompletionInfo
  6881  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6882  }
  6883  
  6884  // GoogleCloudDiscoveryengineV1betaConversation: External conversation proto
  6885  // definition.
  6886  type GoogleCloudDiscoveryengineV1betaConversation struct {
  6887  	// EndTime: Output only. The time the conversation finished.
  6888  	EndTime string `json:"endTime,omitempty"`
  6889  	// Messages: Conversation messages.
  6890  	Messages []*GoogleCloudDiscoveryengineV1betaConversationMessage `json:"messages,omitempty"`
  6891  	// Name: Immutable. Fully qualified name
  6892  	// `projects/{project}/locations/global/collections/{collection}/dataStore/*/con
  6893  	// versations/*` or
  6894  	// `projects/{project}/locations/global/collections/{collection}/engines/*/conve
  6895  	// rsations/*`.
  6896  	Name string `json:"name,omitempty"`
  6897  	// StartTime: Output only. The time the conversation started.
  6898  	StartTime string `json:"startTime,omitempty"`
  6899  	// State: The state of the Conversation.
  6900  	//
  6901  	// Possible values:
  6902  	//   "STATE_UNSPECIFIED" - Unknown.
  6903  	//   "IN_PROGRESS" - Conversation is currently open.
  6904  	//   "COMPLETED" - Conversation has been completed.
  6905  	State string `json:"state,omitempty"`
  6906  	// UserPseudoId: A unique identifier for tracking users.
  6907  	UserPseudoId string `json:"userPseudoId,omitempty"`
  6908  
  6909  	// ServerResponse contains the HTTP response code and headers from the server.
  6910  	googleapi.ServerResponse `json:"-"`
  6911  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
  6912  	// include in API requests. By default, fields with empty or default values are
  6913  	// omitted from API requests. See
  6914  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6915  	// details.
  6916  	ForceSendFields []string `json:"-"`
  6917  	// NullFields is a list of field names (e.g. "EndTime") to include in API
  6918  	// requests with the JSON null value. By default, fields with empty values are
  6919  	// omitted from API requests. See
  6920  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6921  	NullFields []string `json:"-"`
  6922  }
  6923  
  6924  func (s *GoogleCloudDiscoveryengineV1betaConversation) MarshalJSON() ([]byte, error) {
  6925  	type NoMethod GoogleCloudDiscoveryengineV1betaConversation
  6926  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6927  }
  6928  
  6929  // GoogleCloudDiscoveryengineV1betaConversationContext: Defines context of the
  6930  // conversation
  6931  type GoogleCloudDiscoveryengineV1betaConversationContext struct {
  6932  	// ActiveDocument: The current active document the user opened. It contains the
  6933  	// document resource reference.
  6934  	ActiveDocument string `json:"activeDocument,omitempty"`
  6935  	// ContextDocuments: The current list of documents the user is seeing. It
  6936  	// contains the document resource references.
  6937  	ContextDocuments []string `json:"contextDocuments,omitempty"`
  6938  	// ForceSendFields is a list of field names (e.g. "ActiveDocument") to
  6939  	// unconditionally include in API requests. By default, fields with empty or
  6940  	// default values are omitted from API requests. See
  6941  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6942  	// details.
  6943  	ForceSendFields []string `json:"-"`
  6944  	// NullFields is a list of field names (e.g. "ActiveDocument") to include in
  6945  	// API requests with the JSON null value. By default, fields with empty values
  6946  	// are omitted from API requests. See
  6947  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6948  	NullFields []string `json:"-"`
  6949  }
  6950  
  6951  func (s *GoogleCloudDiscoveryengineV1betaConversationContext) MarshalJSON() ([]byte, error) {
  6952  	type NoMethod GoogleCloudDiscoveryengineV1betaConversationContext
  6953  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6954  }
  6955  
  6956  // GoogleCloudDiscoveryengineV1betaConversationMessage: Defines a conversation
  6957  // message.
  6958  type GoogleCloudDiscoveryengineV1betaConversationMessage struct {
  6959  	// CreateTime: Output only. Message creation timestamp.
  6960  	CreateTime string `json:"createTime,omitempty"`
  6961  	// Reply: Search reply.
  6962  	Reply *GoogleCloudDiscoveryengineV1betaReply `json:"reply,omitempty"`
  6963  	// UserInput: User text input.
  6964  	UserInput *GoogleCloudDiscoveryengineV1betaTextInput `json:"userInput,omitempty"`
  6965  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  6966  	// unconditionally include in API requests. By default, fields with empty or
  6967  	// default values are omitted from API requests. See
  6968  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6969  	// details.
  6970  	ForceSendFields []string `json:"-"`
  6971  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  6972  	// requests with the JSON null value. By default, fields with empty values are
  6973  	// omitted from API requests. See
  6974  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6975  	NullFields []string `json:"-"`
  6976  }
  6977  
  6978  func (s *GoogleCloudDiscoveryengineV1betaConversationMessage) MarshalJSON() ([]byte, error) {
  6979  	type NoMethod GoogleCloudDiscoveryengineV1betaConversationMessage
  6980  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6981  }
  6982  
  6983  // GoogleCloudDiscoveryengineV1betaConverseConversationRequest: Request message
  6984  // for ConversationalSearchService.ConverseConversation method.
  6985  type GoogleCloudDiscoveryengineV1betaConverseConversationRequest struct {
  6986  	// BoostSpec: Boost specification to boost certain documents in search results
  6987  	// which may affect the converse response. For more information on boosting,
  6988  	// see Boosting (https://cloud.google.com/retail/docs/boosting#boost)
  6989  	BoostSpec *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec `json:"boostSpec,omitempty"`
  6990  	// Conversation: The conversation to be used by auto session only. The name
  6991  	// field will be ignored as we automatically assign new name for the
  6992  	// conversation in auto session.
  6993  	Conversation *GoogleCloudDiscoveryengineV1betaConversation `json:"conversation,omitempty"`
  6994  	// Filter: The filter syntax consists of an expression language for
  6995  	// constructing a predicate from one or more fields of the documents being
  6996  	// filtered. Filter expression is case-sensitive. This will be used to filter
  6997  	// search results which may affect the summary response. If this field is
  6998  	// unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI
  6999  	// Search is done by mapping the LHS filter key to a key property defined in
  7000  	// the Vertex AI Search backend -- this mapping is defined by the customer in
  7001  	// their schema. For example a media customer might have a field 'name' in
  7002  	// their schema. In this case the filter would look like this: filter -->
  7003  	// name:'ANY("king kong")' For more information about filtering including
  7004  	// syntax and filter operators, see Filter
  7005  	// (https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
  7006  	Filter string `json:"filter,omitempty"`
  7007  	// Query: Required. Current user input.
  7008  	Query *GoogleCloudDiscoveryengineV1betaTextInput `json:"query,omitempty"`
  7009  	// SafeSearch: Whether to turn on safe search.
  7010  	SafeSearch bool `json:"safeSearch,omitempty"`
  7011  	// ServingConfig: The resource name of the Serving Config to use. Format:
  7012  	// `projects/{project_number}/locations/{location_id}/collections/{collection}/d
  7013  	// ataStores/{data_store_id}/servingConfigs/{serving_config_id}` If this is not
  7014  	// set, the default serving config will be used.
  7015  	ServingConfig string `json:"servingConfig,omitempty"`
  7016  	// SummarySpec: A specification for configuring the summary returned in the
  7017  	// response.
  7018  	SummarySpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec `json:"summarySpec,omitempty"`
  7019  	// UserLabels: The user labels applied to a resource must meet the following
  7020  	// requirements: * Each resource can have multiple labels, up to a maximum of
  7021  	// 64. * Each label must be a key-value pair. * Keys have a minimum length of 1
  7022  	// character and a maximum length of 63 characters and cannot be empty. Values
  7023  	// can be empty and have a maximum length of 63 characters. * Keys and values
  7024  	// can contain only lowercase letters, numeric characters, underscores, and
  7025  	// dashes. All characters must use UTF-8 encoding, and international characters
  7026  	// are allowed. * The key portion of a label must be unique. However, you can
  7027  	// use the same key with multiple resources. * Keys must start with a lowercase
  7028  	// letter or international character. See Google Cloud Document
  7029  	// (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  7030  	// for more details.
  7031  	UserLabels map[string]string `json:"userLabels,omitempty"`
  7032  	// ForceSendFields is a list of field names (e.g. "BoostSpec") to
  7033  	// unconditionally include in API requests. By default, fields with empty or
  7034  	// default values are omitted from API requests. See
  7035  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7036  	// details.
  7037  	ForceSendFields []string `json:"-"`
  7038  	// NullFields is a list of field names (e.g. "BoostSpec") to include in API
  7039  	// requests with the JSON null value. By default, fields with empty values are
  7040  	// omitted from API requests. See
  7041  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7042  	NullFields []string `json:"-"`
  7043  }
  7044  
  7045  func (s *GoogleCloudDiscoveryengineV1betaConverseConversationRequest) MarshalJSON() ([]byte, error) {
  7046  	type NoMethod GoogleCloudDiscoveryengineV1betaConverseConversationRequest
  7047  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7048  }
  7049  
  7050  // GoogleCloudDiscoveryengineV1betaConverseConversationResponse: Response
  7051  // message for ConversationalSearchService.ConverseConversation method.
  7052  type GoogleCloudDiscoveryengineV1betaConverseConversationResponse struct {
  7053  	// Conversation: Updated conversation including the answer.
  7054  	Conversation *GoogleCloudDiscoveryengineV1betaConversation `json:"conversation,omitempty"`
  7055  	// RelatedQuestions: Suggested related questions.
  7056  	RelatedQuestions []string `json:"relatedQuestions,omitempty"`
  7057  	// Reply: Answer to the current query.
  7058  	Reply *GoogleCloudDiscoveryengineV1betaReply `json:"reply,omitempty"`
  7059  	// SearchResults: Search Results.
  7060  	SearchResults []*GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult `json:"searchResults,omitempty"`
  7061  
  7062  	// ServerResponse contains the HTTP response code and headers from the server.
  7063  	googleapi.ServerResponse `json:"-"`
  7064  	// ForceSendFields is a list of field names (e.g. "Conversation") to
  7065  	// unconditionally include in API requests. By default, fields with empty or
  7066  	// default values are omitted from API requests. See
  7067  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7068  	// details.
  7069  	ForceSendFields []string `json:"-"`
  7070  	// NullFields is a list of field names (e.g. "Conversation") to include in API
  7071  	// requests with the JSON null value. By default, fields with empty values are
  7072  	// omitted from API requests. See
  7073  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7074  	NullFields []string `json:"-"`
  7075  }
  7076  
  7077  func (s *GoogleCloudDiscoveryengineV1betaConverseConversationResponse) MarshalJSON() ([]byte, error) {
  7078  	type NoMethod GoogleCloudDiscoveryengineV1betaConverseConversationResponse
  7079  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7080  }
  7081  
  7082  // GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata: Metadata related to
  7083  // the progress of the DataStoreService.CreateDataStore operation. This will be
  7084  // returned by the google.longrunning.Operation.metadata field.
  7085  type GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata struct {
  7086  	// CreateTime: Operation create time.
  7087  	CreateTime string `json:"createTime,omitempty"`
  7088  	// UpdateTime: Operation last update time. If the operation is done, this is
  7089  	// also the finish time.
  7090  	UpdateTime string `json:"updateTime,omitempty"`
  7091  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7092  	// unconditionally include in API requests. By default, fields with empty or
  7093  	// default values are omitted from API requests. See
  7094  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7095  	// details.
  7096  	ForceSendFields []string `json:"-"`
  7097  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7098  	// requests with the JSON null value. By default, fields with empty values are
  7099  	// omitted from API requests. See
  7100  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7101  	NullFields []string `json:"-"`
  7102  }
  7103  
  7104  func (s *GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
  7105  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata
  7106  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7107  }
  7108  
  7109  // GoogleCloudDiscoveryengineV1betaCreateEngineMetadata: Metadata related to
  7110  // the progress of the EngineService.CreateEngine operation. This will be
  7111  // returned by the google.longrunning.Operation.metadata field.
  7112  type GoogleCloudDiscoveryengineV1betaCreateEngineMetadata struct {
  7113  	// CreateTime: Operation create time.
  7114  	CreateTime string `json:"createTime,omitempty"`
  7115  	// UpdateTime: Operation last update time. If the operation is done, this is
  7116  	// also the finish time.
  7117  	UpdateTime string `json:"updateTime,omitempty"`
  7118  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7119  	// unconditionally include in API requests. By default, fields with empty or
  7120  	// default values are omitted from API requests. See
  7121  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7122  	// details.
  7123  	ForceSendFields []string `json:"-"`
  7124  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7125  	// requests with the JSON null value. By default, fields with empty values are
  7126  	// omitted from API requests. See
  7127  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7128  	NullFields []string `json:"-"`
  7129  }
  7130  
  7131  func (s *GoogleCloudDiscoveryengineV1betaCreateEngineMetadata) MarshalJSON() ([]byte, error) {
  7132  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateEngineMetadata
  7133  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7134  }
  7135  
  7136  // GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata: Metadata for Create
  7137  // Schema LRO.
  7138  type GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata struct {
  7139  	// CreateTime: Operation create time.
  7140  	CreateTime string `json:"createTime,omitempty"`
  7141  	// UpdateTime: Operation last update time. If the operation is done, this is
  7142  	// also the finish time.
  7143  	UpdateTime string `json:"updateTime,omitempty"`
  7144  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7145  	// unconditionally include in API requests. By default, fields with empty or
  7146  	// default values are omitted from API requests. See
  7147  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7148  	// details.
  7149  	ForceSendFields []string `json:"-"`
  7150  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7151  	// requests with the JSON null value. By default, fields with empty values are
  7152  	// omitted from API requests. See
  7153  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7154  	NullFields []string `json:"-"`
  7155  }
  7156  
  7157  func (s *GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata) MarshalJSON() ([]byte, error) {
  7158  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata
  7159  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7160  }
  7161  
  7162  // GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata: Metadata related
  7163  // to the progress of the SiteSearchEngineService.CreateTargetSite operation.
  7164  // This will be returned by the google.longrunning.Operation.metadata field.
  7165  type GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata struct {
  7166  	// CreateTime: Operation create time.
  7167  	CreateTime string `json:"createTime,omitempty"`
  7168  	// UpdateTime: Operation last update time. If the operation is done, this is
  7169  	// also the finish time.
  7170  	UpdateTime string `json:"updateTime,omitempty"`
  7171  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7172  	// unconditionally include in API requests. By default, fields with empty or
  7173  	// default values are omitted from API requests. See
  7174  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7175  	// details.
  7176  	ForceSendFields []string `json:"-"`
  7177  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7178  	// requests with the JSON null value. By default, fields with empty values are
  7179  	// omitted from API requests. See
  7180  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7181  	NullFields []string `json:"-"`
  7182  }
  7183  
  7184  func (s *GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  7185  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata
  7186  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7187  }
  7188  
  7189  // GoogleCloudDiscoveryengineV1betaCreateTargetSiteRequest: Request message for
  7190  // SiteSearchEngineService.CreateTargetSite method.
  7191  type GoogleCloudDiscoveryengineV1betaCreateTargetSiteRequest struct {
  7192  	// Parent: Required. Parent resource name of TargetSite, such as
  7193  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  7194  	// {data_store}/siteSearchEngine`.
  7195  	Parent string `json:"parent,omitempty"`
  7196  	// TargetSite: Required. The TargetSite to create.
  7197  	TargetSite *GoogleCloudDiscoveryengineV1betaTargetSite `json:"targetSite,omitempty"`
  7198  	// ForceSendFields is a list of field names (e.g. "Parent") to unconditionally
  7199  	// include in API requests. By default, fields with empty or default values are
  7200  	// omitted from API requests. See
  7201  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7202  	// details.
  7203  	ForceSendFields []string `json:"-"`
  7204  	// NullFields is a list of field names (e.g. "Parent") to include in API
  7205  	// requests with the JSON null value. By default, fields with empty values are
  7206  	// omitted from API requests. See
  7207  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7208  	NullFields []string `json:"-"`
  7209  }
  7210  
  7211  func (s *GoogleCloudDiscoveryengineV1betaCreateTargetSiteRequest) MarshalJSON() ([]byte, error) {
  7212  	type NoMethod GoogleCloudDiscoveryengineV1betaCreateTargetSiteRequest
  7213  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7214  }
  7215  
  7216  // GoogleCloudDiscoveryengineV1betaCustomAttribute: A custom attribute that is
  7217  // not explicitly modeled in a resource, e.g. UserEvent.
  7218  type GoogleCloudDiscoveryengineV1betaCustomAttribute struct {
  7219  	// Numbers: The numerical values of this custom attribute. For example, `[2.3,
  7220  	// 15.4]` when the key is "lengths_cm". Exactly one of CustomAttribute.text or
  7221  	// CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT`
  7222  	// error is returned.
  7223  	Numbers []float64 `json:"numbers,omitempty"`
  7224  	// Text: The textual values of this custom attribute. For example, `["yellow",
  7225  	// "green"]` when the key is "color". Empty string is not allowed. Otherwise,
  7226  	// an `INVALID_ARGUMENT` error is returned. Exactly one of CustomAttribute.text
  7227  	// or CustomAttribute.numbers should be set. Otherwise, an `INVALID_ARGUMENT`
  7228  	// error is returned.
  7229  	Text []string `json:"text,omitempty"`
  7230  	// ForceSendFields is a list of field names (e.g. "Numbers") to unconditionally
  7231  	// include in API requests. By default, fields with empty or default values are
  7232  	// omitted from API requests. See
  7233  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7234  	// details.
  7235  	ForceSendFields []string `json:"-"`
  7236  	// NullFields is a list of field names (e.g. "Numbers") to include in API
  7237  	// requests with the JSON null value. By default, fields with empty values are
  7238  	// omitted from API requests. See
  7239  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7240  	NullFields []string `json:"-"`
  7241  }
  7242  
  7243  func (s *GoogleCloudDiscoveryengineV1betaCustomAttribute) MarshalJSON() ([]byte, error) {
  7244  	type NoMethod GoogleCloudDiscoveryengineV1betaCustomAttribute
  7245  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7246  }
  7247  
  7248  func (s *GoogleCloudDiscoveryengineV1betaCustomAttribute) UnmarshalJSON(data []byte) error {
  7249  	type NoMethod GoogleCloudDiscoveryengineV1betaCustomAttribute
  7250  	var s1 struct {
  7251  		Numbers []gensupport.JSONFloat64 `json:"numbers"`
  7252  		*NoMethod
  7253  	}
  7254  	s1.NoMethod = (*NoMethod)(s)
  7255  	if err := json.Unmarshal(data, &s1); err != nil {
  7256  		return err
  7257  	}
  7258  	s.Numbers = make([]float64, len(s1.Numbers))
  7259  	for i := range s1.Numbers {
  7260  		s.Numbers[i] = float64(s1.Numbers[i])
  7261  	}
  7262  	return nil
  7263  }
  7264  
  7265  // GoogleCloudDiscoveryengineV1betaCustomTuningModel: Metadata that describes a
  7266  // custom tuned model.
  7267  type GoogleCloudDiscoveryengineV1betaCustomTuningModel struct {
  7268  	// CreateTime: Timestamp the Model was created at.
  7269  	CreateTime string `json:"createTime,omitempty"`
  7270  	// DisplayName: The display name of the model.
  7271  	DisplayName string `json:"displayName,omitempty"`
  7272  	// ModelState: The state that the model is in (e.g.`TRAINING` or
  7273  	// `TRAINING_FAILED`).
  7274  	//
  7275  	// Possible values:
  7276  	//   "MODEL_STATE_UNSPECIFIED"
  7277  	//   "TRAINING_PAUSED" - The model is in a paused training state.
  7278  	//   "TRAINING" - The model is currently training.
  7279  	//   "TRAINING_COMPLETE" - The model has successfully completed training.
  7280  	//   "READY_FOR_SERVING" - The model is ready for serving.
  7281  	//   "TRAINING_FAILED" - The model training failed.
  7282  	ModelState   string `json:"modelState,omitempty"`
  7283  	ModelVersion int64  `json:"modelVersion,omitempty,string"`
  7284  	// Name: Required. The fully qualified resource name of the model. Format:
  7285  	// `projects/{project_number}/locations/{location}/collections/{collection}/data
  7286  	// Stores/{data_store}/customTuningModels/{custom_tuning_model}` model must be
  7287  	// an alpha-numerical string with limit of 40 characters.
  7288  	Name string `json:"name,omitempty"`
  7289  	// TrainingStartTime: Timestamp the model training was initiated.
  7290  	TrainingStartTime string `json:"trainingStartTime,omitempty"`
  7291  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7292  	// unconditionally include in API requests. By default, fields with empty or
  7293  	// default values are omitted from API requests. See
  7294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7295  	// details.
  7296  	ForceSendFields []string `json:"-"`
  7297  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7298  	// requests with the JSON null value. By default, fields with empty values are
  7299  	// omitted from API requests. See
  7300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7301  	NullFields []string `json:"-"`
  7302  }
  7303  
  7304  func (s *GoogleCloudDiscoveryengineV1betaCustomTuningModel) MarshalJSON() ([]byte, error) {
  7305  	type NoMethod GoogleCloudDiscoveryengineV1betaCustomTuningModel
  7306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7307  }
  7308  
  7309  // GoogleCloudDiscoveryengineV1betaDataStore: DataStore captures global
  7310  // settings and configs at the DataStore level.
  7311  type GoogleCloudDiscoveryengineV1betaDataStore struct {
  7312  	// ContentConfig: Immutable. The content config of the data store. If this
  7313  	// field is unset, the server behavior defaults to ContentConfig.NO_CONTENT.
  7314  	//
  7315  	// Possible values:
  7316  	//   "CONTENT_CONFIG_UNSPECIFIED" - Default value.
  7317  	//   "NO_CONTENT" - Only contains documents without any Document.content.
  7318  	//   "CONTENT_REQUIRED" - Only contains documents with Document.content.
  7319  	//   "PUBLIC_WEBSITE" - The data store is used for public website search.
  7320  	ContentConfig string `json:"contentConfig,omitempty"`
  7321  	// CreateTime: Output only. Timestamp the DataStore was created at.
  7322  	CreateTime string `json:"createTime,omitempty"`
  7323  	// DefaultSchemaId: Output only. The id of the default Schema asscociated to
  7324  	// this data store.
  7325  	DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
  7326  	// DisplayName: Required. The data store display name. This field must be a
  7327  	// UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
  7328  	// INVALID_ARGUMENT error is returned.
  7329  	DisplayName string `json:"displayName,omitempty"`
  7330  	// DocumentProcessingConfig: Configuration for Document understanding and
  7331  	// enrichment.
  7332  	DocumentProcessingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
  7333  	// IndustryVertical: Immutable. The industry vertical that the data store
  7334  	// registers.
  7335  	//
  7336  	// Possible values:
  7337  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  7338  	//   "GENERIC" - The generic vertical for documents that are not specific to
  7339  	// any industry vertical.
  7340  	//   "MEDIA" - The media industry vertical.
  7341  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  7342  	IndustryVertical string `json:"industryVertical,omitempty"`
  7343  	// Name: Immutable. The full resource name of the data store. Format:
  7344  	// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
  7345  	// es/{data_store_id}`. This field must be a UTF-8 encoded string with a length
  7346  	// limit of 1024 characters.
  7347  	Name string `json:"name,omitempty"`
  7348  	// SolutionTypes: The solutions that the data store enrolls. Available
  7349  	// solutions for each industry_vertical: * `MEDIA`:
  7350  	// `SOLUTION_TYPE_RECOMMENDATION` and `SOLUTION_TYPE_SEARCH`. * `SITE_SEARCH`:
  7351  	// `SOLUTION_TYPE_SEARCH` is automatically enrolled. Other solutions cannot be
  7352  	// enrolled.
  7353  	//
  7354  	// Possible values:
  7355  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  7356  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  7357  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  7358  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  7359  	// agent.
  7360  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  7361  	// Generative Chat agent. It's used for Generative chat engine only, the
  7362  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  7363  	SolutionTypes []string `json:"solutionTypes,omitempty"`
  7364  	// StartingSchema: The start schema to use for this DataStore when provisioning
  7365  	// it. If unset, a default vertical specialized schema will be used. This field
  7366  	// is only used by CreateDataStore API, and will be ignored if used in other
  7367  	// APIs. This field will be omitted from all API responses including
  7368  	// CreateDataStore API. To retrieve a schema of a DataStore, use
  7369  	// SchemaService.GetSchema API instead. The provided schema will be validated
  7370  	// against certain rules on schema. Learn more from this doc
  7371  	// (https://cloud.google.com/generative-ai-app-builder/docs/provide-schema).
  7372  	StartingSchema *GoogleCloudDiscoveryengineV1betaSchema `json:"startingSchema,omitempty"`
  7373  
  7374  	// ServerResponse contains the HTTP response code and headers from the server.
  7375  	googleapi.ServerResponse `json:"-"`
  7376  	// ForceSendFields is a list of field names (e.g. "ContentConfig") to
  7377  	// unconditionally include in API requests. By default, fields with empty or
  7378  	// default values are omitted from API requests. See
  7379  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7380  	// details.
  7381  	ForceSendFields []string `json:"-"`
  7382  	// NullFields is a list of field names (e.g. "ContentConfig") to include in API
  7383  	// requests with the JSON null value. By default, fields with empty values are
  7384  	// omitted from API requests. See
  7385  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7386  	NullFields []string `json:"-"`
  7387  }
  7388  
  7389  func (s *GoogleCloudDiscoveryengineV1betaDataStore) MarshalJSON() ([]byte, error) {
  7390  	type NoMethod GoogleCloudDiscoveryengineV1betaDataStore
  7391  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7392  }
  7393  
  7394  // GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata: Metadata related to
  7395  // the progress of the DataStoreService.DeleteDataStore operation. This will be
  7396  // returned by the google.longrunning.Operation.metadata field.
  7397  type GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata struct {
  7398  	// CreateTime: Operation create time.
  7399  	CreateTime string `json:"createTime,omitempty"`
  7400  	// UpdateTime: Operation last update time. If the operation is done, this is
  7401  	// also the finish time.
  7402  	UpdateTime string `json:"updateTime,omitempty"`
  7403  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7404  	// unconditionally include in API requests. By default, fields with empty or
  7405  	// default values are omitted from API requests. See
  7406  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7407  	// details.
  7408  	ForceSendFields []string `json:"-"`
  7409  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7410  	// requests with the JSON null value. By default, fields with empty values are
  7411  	// omitted from API requests. See
  7412  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7413  	NullFields []string `json:"-"`
  7414  }
  7415  
  7416  func (s *GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
  7417  	type NoMethod GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata
  7418  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7419  }
  7420  
  7421  // GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata: Metadata related to
  7422  // the progress of the EngineService.DeleteEngine operation. This will be
  7423  // returned by the google.longrunning.Operation.metadata field.
  7424  type GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata struct {
  7425  	// CreateTime: Operation create time.
  7426  	CreateTime string `json:"createTime,omitempty"`
  7427  	// UpdateTime: Operation last update time. If the operation is done, this is
  7428  	// also the finish time.
  7429  	UpdateTime string `json:"updateTime,omitempty"`
  7430  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7431  	// unconditionally include in API requests. By default, fields with empty or
  7432  	// default values are omitted from API requests. See
  7433  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7434  	// details.
  7435  	ForceSendFields []string `json:"-"`
  7436  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7437  	// requests with the JSON null value. By default, fields with empty values are
  7438  	// omitted from API requests. See
  7439  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7440  	NullFields []string `json:"-"`
  7441  }
  7442  
  7443  func (s *GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata) MarshalJSON() ([]byte, error) {
  7444  	type NoMethod GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata
  7445  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7446  }
  7447  
  7448  // GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata: Metadata for
  7449  // DeleteSchema LRO.
  7450  type GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata struct {
  7451  	// CreateTime: Operation create time.
  7452  	CreateTime string `json:"createTime,omitempty"`
  7453  	// UpdateTime: Operation last update time. If the operation is done, this is
  7454  	// also the finish time.
  7455  	UpdateTime string `json:"updateTime,omitempty"`
  7456  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7457  	// unconditionally include in API requests. By default, fields with empty or
  7458  	// default values are omitted from API requests. See
  7459  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7460  	// details.
  7461  	ForceSendFields []string `json:"-"`
  7462  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7463  	// requests with the JSON null value. By default, fields with empty values are
  7464  	// omitted from API requests. See
  7465  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7466  	NullFields []string `json:"-"`
  7467  }
  7468  
  7469  func (s *GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
  7470  	type NoMethod GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata
  7471  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7472  }
  7473  
  7474  // GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata: Metadata related
  7475  // to the progress of the SiteSearchEngineService.DeleteTargetSite operation.
  7476  // This will be returned by the google.longrunning.Operation.metadata field.
  7477  type GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata struct {
  7478  	// CreateTime: Operation create time.
  7479  	CreateTime string `json:"createTime,omitempty"`
  7480  	// UpdateTime: Operation last update time. If the operation is done, this is
  7481  	// also the finish time.
  7482  	UpdateTime string `json:"updateTime,omitempty"`
  7483  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7484  	// unconditionally include in API requests. By default, fields with empty or
  7485  	// default values are omitted from API requests. See
  7486  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7487  	// details.
  7488  	ForceSendFields []string `json:"-"`
  7489  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7490  	// requests with the JSON null value. By default, fields with empty values are
  7491  	// omitted from API requests. See
  7492  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7493  	NullFields []string `json:"-"`
  7494  }
  7495  
  7496  func (s *GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
  7497  	type NoMethod GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata
  7498  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7499  }
  7500  
  7501  // GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata: Metadata
  7502  // related to the progress of the
  7503  // SiteSearchEngineService.DisableAdvancedSiteSearch operation. This will be
  7504  // returned by the google.longrunning.Operation.metadata field.
  7505  type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata struct {
  7506  	// CreateTime: Operation create time.
  7507  	CreateTime string `json:"createTime,omitempty"`
  7508  	// UpdateTime: Operation last update time. If the operation is done, this is
  7509  	// also the finish time.
  7510  	UpdateTime string `json:"updateTime,omitempty"`
  7511  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7512  	// unconditionally include in API requests. By default, fields with empty or
  7513  	// default values are omitted from API requests. See
  7514  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7515  	// details.
  7516  	ForceSendFields []string `json:"-"`
  7517  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7518  	// requests with the JSON null value. By default, fields with empty values are
  7519  	// omitted from API requests. See
  7520  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7521  	NullFields []string `json:"-"`
  7522  }
  7523  
  7524  func (s *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  7525  	type NoMethod GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata
  7526  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7527  }
  7528  
  7529  // GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchRequest: Request
  7530  // message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
  7531  type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchRequest struct {
  7532  }
  7533  
  7534  // GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse: Response
  7535  // message for SiteSearchEngineService.DisableAdvancedSiteSearch method.
  7536  type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse struct {
  7537  }
  7538  
  7539  // GoogleCloudDiscoveryengineV1betaDocument: Document captures all raw metadata
  7540  // information of items to be recommended or searched.
  7541  type GoogleCloudDiscoveryengineV1betaDocument struct {
  7542  	// Content: The unstructured data linked to this document. Content must be set
  7543  	// if this document is under a `CONTENT_REQUIRED` data store.
  7544  	Content *GoogleCloudDiscoveryengineV1betaDocumentContent `json:"content,omitempty"`
  7545  	// DerivedStructData: Output only. This field is OUTPUT_ONLY. It contains
  7546  	// derived data that are not in the original input document.
  7547  	DerivedStructData googleapi.RawMessage `json:"derivedStructData,omitempty"`
  7548  	// Id: Immutable. The identifier of the document. Id should conform to RFC-1034
  7549  	// (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
  7550  	// characters.
  7551  	Id string `json:"id,omitempty"`
  7552  	// IndexTime: Output only. The last time the document was indexed. If this
  7553  	// field is set, the document could be returned in search results. This field
  7554  	// is OUTPUT_ONLY. If this field is not populated, it means the document has
  7555  	// never been indexed.
  7556  	IndexTime string `json:"indexTime,omitempty"`
  7557  	// JsonData: The JSON string representation of the document. It should conform
  7558  	// to the registered Schema or an `INVALID_ARGUMENT` error is thrown.
  7559  	JsonData string `json:"jsonData,omitempty"`
  7560  	// Name: Immutable. The full resource name of the document. Format:
  7561  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  7562  	// {data_store}/branches/{branch}/documents/{document_id}`. This field must be
  7563  	// a UTF-8 encoded string with a length limit of 1024 characters.
  7564  	Name string `json:"name,omitempty"`
  7565  	// ParentDocumentId: The identifier of the parent document. Currently supports
  7566  	// at most two level document hierarchy. Id should conform to RFC-1034
  7567  	// (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
  7568  	// characters.
  7569  	ParentDocumentId string `json:"parentDocumentId,omitempty"`
  7570  	// SchemaId: The identifier of the schema located in the same data store.
  7571  	SchemaId string `json:"schemaId,omitempty"`
  7572  	// StructData: The structured JSON data for the document. It should conform to
  7573  	// the registered Schema or an `INVALID_ARGUMENT` error is thrown.
  7574  	StructData googleapi.RawMessage `json:"structData,omitempty"`
  7575  
  7576  	// ServerResponse contains the HTTP response code and headers from the server.
  7577  	googleapi.ServerResponse `json:"-"`
  7578  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  7579  	// include in API requests. By default, fields with empty or default values are
  7580  	// omitted from API requests. See
  7581  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7582  	// details.
  7583  	ForceSendFields []string `json:"-"`
  7584  	// NullFields is a list of field names (e.g. "Content") to include in API
  7585  	// requests with the JSON null value. By default, fields with empty values are
  7586  	// omitted from API requests. See
  7587  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7588  	NullFields []string `json:"-"`
  7589  }
  7590  
  7591  func (s *GoogleCloudDiscoveryengineV1betaDocument) MarshalJSON() ([]byte, error) {
  7592  	type NoMethod GoogleCloudDiscoveryengineV1betaDocument
  7593  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7594  }
  7595  
  7596  // GoogleCloudDiscoveryengineV1betaDocumentContent: Unstructured data linked to
  7597  // this document.
  7598  type GoogleCloudDiscoveryengineV1betaDocumentContent struct {
  7599  	// MimeType: The MIME type of the content. Supported types: * `application/pdf`
  7600  	// (PDF, only native PDFs are supported for now) * `text/html` (HTML) *
  7601  	// `application/vnd.openxmlformats-officedocument.wordprocessingml.document`
  7602  	// (DOCX) *
  7603  	// `application/vnd.openxmlformats-officedocument.presentationml.presentation`
  7604  	// (PPTX) * `text/plain` (TXT) See
  7605  	// https://www.iana.org/assignments/media-types/media-types.xhtml.
  7606  	MimeType string `json:"mimeType,omitempty"`
  7607  	// RawBytes: The content represented as a stream of bytes. The maximum length
  7608  	// is 1,000,000 bytes (1 MB / ~0.95 MiB). Note: As with all `bytes` fields,
  7609  	// this field is represented as pure binary in Protocol Buffers and
  7610  	// base64-encoded string in JSON. For example, `abc123!?$*&()'-=@~` should be
  7611  	// represented as `YWJjMTIzIT8kKiYoKSctPUB+` in JSON. See
  7612  	// https://developers.google.com/protocol-buffers/docs/proto3#json.
  7613  	RawBytes string `json:"rawBytes,omitempty"`
  7614  	// Uri: The URI of the content. Only Cloud Storage URIs (e.g.
  7615  	// `gs://bucket-name/path/to/file`) are supported. The maximum file size is 2.5
  7616  	// MB for text-based formats, 100 MB for other formats.
  7617  	Uri string `json:"uri,omitempty"`
  7618  	// ForceSendFields is a list of field names (e.g. "MimeType") to
  7619  	// unconditionally include in API requests. By default, fields with empty or
  7620  	// default values are omitted from API requests. See
  7621  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7622  	// details.
  7623  	ForceSendFields []string `json:"-"`
  7624  	// NullFields is a list of field names (e.g. "MimeType") to include in API
  7625  	// requests with the JSON null value. By default, fields with empty values are
  7626  	// omitted from API requests. See
  7627  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7628  	NullFields []string `json:"-"`
  7629  }
  7630  
  7631  func (s *GoogleCloudDiscoveryengineV1betaDocumentContent) MarshalJSON() ([]byte, error) {
  7632  	type NoMethod GoogleCloudDiscoveryengineV1betaDocumentContent
  7633  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7634  }
  7635  
  7636  // GoogleCloudDiscoveryengineV1betaDocumentInfo: Detailed document information
  7637  // associated with a user event.
  7638  type GoogleCloudDiscoveryengineV1betaDocumentInfo struct {
  7639  	// Id: The Document resource ID.
  7640  	Id string `json:"id,omitempty"`
  7641  	// Name: The Document resource full name, of the form:
  7642  	// `projects/{project_id}/locations/{location}/collections/{collection_id}/dataS
  7643  	// tores/{data_store_id}/branches/{branch_id}/documents/{document_id}`
  7644  	Name string `json:"name,omitempty"`
  7645  	// PromotionIds: The promotion IDs associated with this Document. Currently,
  7646  	// this field is restricted to at most one ID.
  7647  	PromotionIds []string `json:"promotionIds,omitempty"`
  7648  	// Quantity: Quantity of the Document associated with the user event. Defaults
  7649  	// to 1. For example, this field will be 2 if two quantities of the same
  7650  	// Document are involved in a `add-to-cart` event. Required for events of the
  7651  	// following event types: * `add-to-cart` * `purchase`
  7652  	Quantity int64 `json:"quantity,omitempty"`
  7653  	// Uri: The Document URI - only allowed for website data stores.
  7654  	Uri string `json:"uri,omitempty"`
  7655  	// ForceSendFields is a list of field names (e.g. "Id") to unconditionally
  7656  	// include in API requests. By default, fields with empty or default values are
  7657  	// omitted from API requests. See
  7658  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7659  	// details.
  7660  	ForceSendFields []string `json:"-"`
  7661  	// NullFields is a list of field names (e.g. "Id") to include in API requests
  7662  	// with the JSON null value. By default, fields with empty values are omitted
  7663  	// from API requests. See
  7664  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7665  	NullFields []string `json:"-"`
  7666  }
  7667  
  7668  func (s *GoogleCloudDiscoveryengineV1betaDocumentInfo) MarshalJSON() ([]byte, error) {
  7669  	type NoMethod GoogleCloudDiscoveryengineV1betaDocumentInfo
  7670  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7671  }
  7672  
  7673  // GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig: A singleton
  7674  // resource of DataStore. It's empty when DataStore is created, which defaults
  7675  // to digital parser. The first call to
  7676  // DataStoreService.UpdateDocumentProcessingConfig method will initialize the
  7677  // config.
  7678  type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig struct {
  7679  	// DefaultParsingConfig: Configurations for default Document parser. If not
  7680  	// specified, we will configure it as default DigitalParsingConfig, and the
  7681  	// default parsing config will be applied to all file types for Document
  7682  	// parsing.
  7683  	DefaultParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
  7684  	// Name: The full resource name of the Document Processing Config. Format:
  7685  	// `projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig`.
  7686  	Name string `json:"name,omitempty"`
  7687  	// ParsingConfigOverrides: Map from file type to override the default parsing
  7688  	// configuration based on the file type. Supported keys: * `pdf`: Override
  7689  	// parsing config for PDF files, either digital parsing, ocr parsing or layout
  7690  	// parsing is supported. * `html`: Override parsing config for HTML files, only
  7691  	// digital parsing and or layout parsing are supported. * `docx`: Override
  7692  	// parsing config for DOCX files, only digital parsing and or layout parsing
  7693  	// are supported.
  7694  	ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
  7695  	// ForceSendFields is a list of field names (e.g. "DefaultParsingConfig") to
  7696  	// unconditionally include in API requests. By default, fields with empty or
  7697  	// default values are omitted from API requests. See
  7698  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7699  	// details.
  7700  	ForceSendFields []string `json:"-"`
  7701  	// NullFields is a list of field names (e.g. "DefaultParsingConfig") to include
  7702  	// in API requests with the JSON null value. By default, fields with empty
  7703  	// values are omitted from API requests. See
  7704  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7705  	NullFields []string `json:"-"`
  7706  }
  7707  
  7708  func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig) MarshalJSON() ([]byte, error) {
  7709  	type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig
  7710  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7711  }
  7712  
  7713  // GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig:
  7714  // Related configurations applied to a specific type of document parser.
  7715  type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig struct {
  7716  	// DigitalParsingConfig: Configurations applied to digital parser.
  7717  	DigitalParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
  7718  	// OcrParsingConfig: Configurations applied to OCR parser. Currently it only
  7719  	// applies to PDFs.
  7720  	OcrParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
  7721  	// ForceSendFields is a list of field names (e.g. "DigitalParsingConfig") to
  7722  	// unconditionally include in API requests. By default, fields with empty or
  7723  	// default values are omitted from API requests. See
  7724  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7725  	// details.
  7726  	ForceSendFields []string `json:"-"`
  7727  	// NullFields is a list of field names (e.g. "DigitalParsingConfig") to include
  7728  	// in API requests with the JSON null value. By default, fields with empty
  7729  	// values are omitted from API requests. See
  7730  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7731  	NullFields []string `json:"-"`
  7732  }
  7733  
  7734  func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
  7735  	type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig
  7736  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7737  }
  7738  
  7739  // GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalP
  7740  // arsingConfig: The digital parsing configurations for documents.
  7741  type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
  7742  }
  7743  
  7744  // GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsi
  7745  // ngConfig: The OCR parsing configurations for documents.
  7746  type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig struct {
  7747  	// EnhancedDocumentElements: [DEPRECATED] This field is deprecated. To use the
  7748  	// additional enhanced document elements processing, please switch to
  7749  	// `layout_parsing_config`.
  7750  	EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
  7751  	// UseNativeText: If true, will use native text instead of OCR text on pages
  7752  	// containing native text.
  7753  	UseNativeText bool `json:"useNativeText,omitempty"`
  7754  	// ForceSendFields is a list of field names (e.g. "EnhancedDocumentElements")
  7755  	// to unconditionally include in API requests. By default, fields with empty or
  7756  	// default values are omitted from API requests. See
  7757  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7758  	// details.
  7759  	ForceSendFields []string `json:"-"`
  7760  	// NullFields is a list of field names (e.g. "EnhancedDocumentElements") to
  7761  	// include in API requests with the JSON null value. By default, fields with
  7762  	// empty values are omitted from API requests. See
  7763  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7764  	NullFields []string `json:"-"`
  7765  }
  7766  
  7767  func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
  7768  	type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig
  7769  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7770  }
  7771  
  7772  // GoogleCloudDiscoveryengineV1betaDoubleList: Double list.
  7773  type GoogleCloudDiscoveryengineV1betaDoubleList struct {
  7774  	// Values: Double values.
  7775  	Values []float64 `json:"values,omitempty"`
  7776  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  7777  	// include in API requests. By default, fields with empty or default values are
  7778  	// omitted from API requests. See
  7779  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7780  	// details.
  7781  	ForceSendFields []string `json:"-"`
  7782  	// NullFields is a list of field names (e.g. "Values") to include in API
  7783  	// requests with the JSON null value. By default, fields with empty values are
  7784  	// omitted from API requests. See
  7785  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7786  	NullFields []string `json:"-"`
  7787  }
  7788  
  7789  func (s *GoogleCloudDiscoveryengineV1betaDoubleList) MarshalJSON() ([]byte, error) {
  7790  	type NoMethod GoogleCloudDiscoveryengineV1betaDoubleList
  7791  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7792  }
  7793  
  7794  func (s *GoogleCloudDiscoveryengineV1betaDoubleList) UnmarshalJSON(data []byte) error {
  7795  	type NoMethod GoogleCloudDiscoveryengineV1betaDoubleList
  7796  	var s1 struct {
  7797  		Values []gensupport.JSONFloat64 `json:"values"`
  7798  		*NoMethod
  7799  	}
  7800  	s1.NoMethod = (*NoMethod)(s)
  7801  	if err := json.Unmarshal(data, &s1); err != nil {
  7802  		return err
  7803  	}
  7804  	s.Values = make([]float64, len(s1.Values))
  7805  	for i := range s1.Values {
  7806  		s.Values[i] = float64(s1.Values[i])
  7807  	}
  7808  	return nil
  7809  }
  7810  
  7811  // GoogleCloudDiscoveryengineV1betaEmbeddingConfig: Defines embedding config,
  7812  // used for bring your own embeddings feature.
  7813  type GoogleCloudDiscoveryengineV1betaEmbeddingConfig struct {
  7814  	// FieldPath: Full field path in the schema mapped as embedding field.
  7815  	FieldPath string `json:"fieldPath,omitempty"`
  7816  	// ForceSendFields is a list of field names (e.g. "FieldPath") to
  7817  	// unconditionally include in API requests. By default, fields with empty or
  7818  	// default values are omitted from API requests. See
  7819  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7820  	// details.
  7821  	ForceSendFields []string `json:"-"`
  7822  	// NullFields is a list of field names (e.g. "FieldPath") to include in API
  7823  	// requests with the JSON null value. By default, fields with empty values are
  7824  	// omitted from API requests. See
  7825  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7826  	NullFields []string `json:"-"`
  7827  }
  7828  
  7829  func (s *GoogleCloudDiscoveryengineV1betaEmbeddingConfig) MarshalJSON() ([]byte, error) {
  7830  	type NoMethod GoogleCloudDiscoveryengineV1betaEmbeddingConfig
  7831  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7832  }
  7833  
  7834  // GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata: Metadata
  7835  // related to the progress of the
  7836  // SiteSearchEngineService.EnableAdvancedSiteSearch operation. This will be
  7837  // returned by the google.longrunning.Operation.metadata field.
  7838  type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata struct {
  7839  	// CreateTime: Operation create time.
  7840  	CreateTime string `json:"createTime,omitempty"`
  7841  	// UpdateTime: Operation last update time. If the operation is done, this is
  7842  	// also the finish time.
  7843  	UpdateTime string `json:"updateTime,omitempty"`
  7844  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  7845  	// unconditionally include in API requests. By default, fields with empty or
  7846  	// default values are omitted from API requests. See
  7847  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7848  	// details.
  7849  	ForceSendFields []string `json:"-"`
  7850  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  7851  	// requests with the JSON null value. By default, fields with empty values are
  7852  	// omitted from API requests. See
  7853  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7854  	NullFields []string `json:"-"`
  7855  }
  7856  
  7857  func (s *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
  7858  	type NoMethod GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata
  7859  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7860  }
  7861  
  7862  // GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchRequest: Request
  7863  // message for SiteSearchEngineService.EnableAdvancedSiteSearch method.
  7864  type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchRequest struct {
  7865  }
  7866  
  7867  // GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchResponse: Response
  7868  // message for SiteSearchEngineService.EnableAdvancedSiteSearch method.
  7869  type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchResponse struct {
  7870  }
  7871  
  7872  // GoogleCloudDiscoveryengineV1betaEngine: Metadata that describes the training
  7873  // and serving parameters of an Engine.
  7874  type GoogleCloudDiscoveryengineV1betaEngine struct {
  7875  	// ChatEngineConfig: Configurations for the Chat Engine. Only applicable if
  7876  	// solution_type is SOLUTION_TYPE_CHAT.
  7877  	ChatEngineConfig *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
  7878  	// ChatEngineMetadata: Output only. Additional information of the Chat Engine.
  7879  	// Only applicable if solution_type is SOLUTION_TYPE_CHAT.
  7880  	ChatEngineMetadata *GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
  7881  	// CommonConfig: Common config spec that specifies the metadata of the engine.
  7882  	CommonConfig *GoogleCloudDiscoveryengineV1betaEngineCommonConfig `json:"commonConfig,omitempty"`
  7883  	// CreateTime: Output only. Timestamp the Recommendation Engine was created at.
  7884  	CreateTime string `json:"createTime,omitempty"`
  7885  	// DataStoreIds: The data stores associated with this engine. For
  7886  	// SOLUTION_TYPE_SEARCH and SOLUTION_TYPE_RECOMMENDATION type of engines, they
  7887  	// can only associate with at most one data store. If solution_type is
  7888  	// SOLUTION_TYPE_CHAT, multiple DataStores in the same Collection can be
  7889  	// associated here. Note that when used in CreateEngineRequest, one DataStore
  7890  	// id must be provided as the system will use it for necessary initializations.
  7891  	DataStoreIds []string `json:"dataStoreIds,omitempty"`
  7892  	// DisplayName: Required. The display name of the engine. Should be human
  7893  	// readable. UTF-8 encoded string with limit of 1024 characters.
  7894  	DisplayName string `json:"displayName,omitempty"`
  7895  	// IndustryVertical: The industry vertical that the engine registers. The
  7896  	// restriction of the Engine industry vertical is based on DataStore: If
  7897  	// unspecified, default to `GENERIC`. Vertical on Engine has to match vertical
  7898  	// of the DataStore liniked to the engine.
  7899  	//
  7900  	// Possible values:
  7901  	//   "INDUSTRY_VERTICAL_UNSPECIFIED" - Value used when unset.
  7902  	//   "GENERIC" - The generic vertical for documents that are not specific to
  7903  	// any industry vertical.
  7904  	//   "MEDIA" - The media industry vertical.
  7905  	//   "HEALTHCARE_FHIR" - The healthcare FHIR vertical.
  7906  	IndustryVertical string `json:"industryVertical,omitempty"`
  7907  	// Name: Immutable. The fully qualified resource name of the engine. This field
  7908  	// must be a UTF-8 encoded string with a length limit of 1024 characters.
  7909  	// Format:
  7910  	// `projects/{project_number}/locations/{location}/collections/{collection}/engi
  7911  	// nes/{engine}` engine should be 1-63 characters, and valid characters are
  7912  	// /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
  7913  	Name string `json:"name,omitempty"`
  7914  	// SearchEngineConfig: Configurations for the Search Engine. Only applicable if
  7915  	// solution_type is SOLUTION_TYPE_SEARCH.
  7916  	SearchEngineConfig *GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
  7917  	// SolutionType: Required. The solutions of the engine.
  7918  	//
  7919  	// Possible values:
  7920  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
  7921  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
  7922  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
  7923  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
  7924  	// agent.
  7925  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
  7926  	// Generative Chat agent. It's used for Generative chat engine only, the
  7927  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
  7928  	SolutionType string `json:"solutionType,omitempty"`
  7929  	// UpdateTime: Output only. Timestamp the Recommendation Engine was last
  7930  	// updated.
  7931  	UpdateTime string `json:"updateTime,omitempty"`
  7932  
  7933  	// ServerResponse contains the HTTP response code and headers from the server.
  7934  	googleapi.ServerResponse `json:"-"`
  7935  	// ForceSendFields is a list of field names (e.g. "ChatEngineConfig") to
  7936  	// unconditionally include in API requests. By default, fields with empty or
  7937  	// default values are omitted from API requests. See
  7938  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7939  	// details.
  7940  	ForceSendFields []string `json:"-"`
  7941  	// NullFields is a list of field names (e.g. "ChatEngineConfig") to include in
  7942  	// API requests with the JSON null value. By default, fields with empty values
  7943  	// are omitted from API requests. See
  7944  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7945  	NullFields []string `json:"-"`
  7946  }
  7947  
  7948  func (s *GoogleCloudDiscoveryengineV1betaEngine) MarshalJSON() ([]byte, error) {
  7949  	type NoMethod GoogleCloudDiscoveryengineV1betaEngine
  7950  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7951  }
  7952  
  7953  // GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig: Configurations for a
  7954  // Chat Engine.
  7955  type GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig struct {
  7956  	// AgentCreationConfig: The configurationt generate the Dialogflow agent that
  7957  	// is associated to this Engine. Note that these configurations are one-time
  7958  	// consumed by and passed to Dialogflow service. It means they cannot be
  7959  	// retrieved using EngineService.GetEngine or EngineService.ListEngines API
  7960  	// after engine creation.
  7961  	AgentCreationConfig *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
  7962  	// DialogflowAgentToLink: The resource name of an exist Dialogflow agent to
  7963  	// link to this Chat Engine. Customers can either provide
  7964  	// `agent_creation_config` to create agent or provide an agent name that links
  7965  	// the agent with the Chat engine. Format: `projects//locations//agents/`. Note
  7966  	// that the `dialogflow_agent_to_link` are one-time consumed by and passed to
  7967  	// Dialogflow service. It means they cannot be retrieved using
  7968  	// EngineService.GetEngine or EngineService.ListEngines API after engine
  7969  	// creation. Use ChatEngineMetadata.dialogflow_agent for actual agent
  7970  	// association after Engine is created.
  7971  	DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
  7972  	// ForceSendFields is a list of field names (e.g. "AgentCreationConfig") to
  7973  	// unconditionally include in API requests. By default, fields with empty or
  7974  	// default values are omitted from API requests. See
  7975  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7976  	// details.
  7977  	ForceSendFields []string `json:"-"`
  7978  	// NullFields is a list of field names (e.g. "AgentCreationConfig") to include
  7979  	// in API requests with the JSON null value. By default, fields with empty
  7980  	// values are omitted from API requests. See
  7981  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7982  	NullFields []string `json:"-"`
  7983  }
  7984  
  7985  func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig) MarshalJSON() ([]byte, error) {
  7986  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig
  7987  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7988  }
  7989  
  7990  // GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig:
  7991  // Configurations for generating a Dialogflow agent. Note that these
  7992  // configurations are one-time consumed by and passed to Dialogflow service. It
  7993  // means they cannot be retrieved using EngineService.GetEngine or
  7994  // EngineService.ListEngines API after engine creation.
  7995  type GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig struct {
  7996  	// Business: Name of the company, organization or other entity that the agent
  7997  	// represents. Used for knowledge connector LLM prompt and for knowledge
  7998  	// search.
  7999  	Business string `json:"business,omitempty"`
  8000  	// DefaultLanguageCode: Required. The default language of the agent as a
  8001  	// language tag. See Language Support
  8002  	// (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
  8003  	// the currently supported language codes.
  8004  	DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
  8005  	// Location: Agent location for Agent creation, supported values: global/us/eu.
  8006  	// If not provided, us Engine will create Agent using us-central-1 by default;
  8007  	// eu Engine will create Agent using eu-west-1 by default.
  8008  	Location string `json:"location,omitempty"`
  8009  	// TimeZone: Required. The time zone of the agent from the time zone database
  8010  	// (https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
  8011  	TimeZone string `json:"timeZone,omitempty"`
  8012  	// ForceSendFields is a list of field names (e.g. "Business") to
  8013  	// unconditionally include in API requests. By default, fields with empty or
  8014  	// default values are omitted from API requests. See
  8015  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8016  	// details.
  8017  	ForceSendFields []string `json:"-"`
  8018  	// NullFields is a list of field names (e.g. "Business") to include in API
  8019  	// requests with the JSON null value. By default, fields with empty values are
  8020  	// omitted from API requests. See
  8021  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8022  	NullFields []string `json:"-"`
  8023  }
  8024  
  8025  func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
  8026  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig
  8027  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8028  }
  8029  
  8030  // GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata: Additional
  8031  // information of a Chat Engine. Fields in this message are output only.
  8032  type GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata struct {
  8033  	// DialogflowAgent: The resource name of a Dialogflow agent, that this Chat
  8034  	// Engine refers to. Format: `projects//locations//agents/`.
  8035  	DialogflowAgent string `json:"dialogflowAgent,omitempty"`
  8036  	// ForceSendFields is a list of field names (e.g. "DialogflowAgent") to
  8037  	// unconditionally include in API requests. By default, fields with empty or
  8038  	// default values are omitted from API requests. See
  8039  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8040  	// details.
  8041  	ForceSendFields []string `json:"-"`
  8042  	// NullFields is a list of field names (e.g. "DialogflowAgent") to include in
  8043  	// API requests with the JSON null value. By default, fields with empty values
  8044  	// are omitted from API requests. See
  8045  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8046  	NullFields []string `json:"-"`
  8047  }
  8048  
  8049  func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
  8050  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata
  8051  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8052  }
  8053  
  8054  // GoogleCloudDiscoveryengineV1betaEngineCommonConfig: Common configurations
  8055  // for an Engine.
  8056  type GoogleCloudDiscoveryengineV1betaEngineCommonConfig struct {
  8057  	// CompanyName: Immutable. The name of the company, business or entity that is
  8058  	// associated with the engine. Setting this may help improve LLM related
  8059  	// features.
  8060  	CompanyName string `json:"companyName,omitempty"`
  8061  	// ForceSendFields is a list of field names (e.g. "CompanyName") to
  8062  	// unconditionally include in API requests. By default, fields with empty or
  8063  	// default values are omitted from API requests. See
  8064  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8065  	// details.
  8066  	ForceSendFields []string `json:"-"`
  8067  	// NullFields is a list of field names (e.g. "CompanyName") to include in API
  8068  	// requests with the JSON null value. By default, fields with empty values are
  8069  	// omitted from API requests. See
  8070  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8071  	NullFields []string `json:"-"`
  8072  }
  8073  
  8074  func (s *GoogleCloudDiscoveryengineV1betaEngineCommonConfig) MarshalJSON() ([]byte, error) {
  8075  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineCommonConfig
  8076  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8077  }
  8078  
  8079  // GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig: Configurations for
  8080  // a Search Engine.
  8081  type GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig struct {
  8082  	// SearchAddOns: The add-on that this search engine enables.
  8083  	//
  8084  	// Possible values:
  8085  	//   "SEARCH_ADD_ON_UNSPECIFIED" - Default value when the enum is unspecified.
  8086  	// This is invalid to use.
  8087  	//   "SEARCH_ADD_ON_LLM" - Large language model add-on.
  8088  	SearchAddOns []string `json:"searchAddOns,omitempty"`
  8089  	// SearchTier: The search feature tier of this engine. Different tiers might
  8090  	// have different pricing. To learn more, check the pricing documentation.
  8091  	// Defaults to SearchTier.SEARCH_TIER_STANDARD if not specified.
  8092  	//
  8093  	// Possible values:
  8094  	//   "SEARCH_TIER_UNSPECIFIED" - Default value when the enum is unspecified.
  8095  	// This is invalid to use.
  8096  	//   "SEARCH_TIER_STANDARD" - Standard tier.
  8097  	//   "SEARCH_TIER_ENTERPRISE" - Enterprise tier.
  8098  	SearchTier string `json:"searchTier,omitempty"`
  8099  	// ForceSendFields is a list of field names (e.g. "SearchAddOns") to
  8100  	// unconditionally include in API requests. By default, fields with empty or
  8101  	// default values are omitted from API requests. See
  8102  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8103  	// details.
  8104  	ForceSendFields []string `json:"-"`
  8105  	// NullFields is a list of field names (e.g. "SearchAddOns") to include in API
  8106  	// requests with the JSON null value. By default, fields with empty values are
  8107  	// omitted from API requests. See
  8108  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8109  	NullFields []string `json:"-"`
  8110  }
  8111  
  8112  func (s *GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
  8113  	type NoMethod GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig
  8114  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8115  }
  8116  
  8117  // GoogleCloudDiscoveryengineV1betaFactChunk: Fact Chunk.
  8118  type GoogleCloudDiscoveryengineV1betaFactChunk struct {
  8119  	// ChunkText: Text content of the fact chunk. Can be at most 10K characters
  8120  	// long.
  8121  	ChunkText string `json:"chunkText,omitempty"`
  8122  	// Index: The index of this chunk. Currently, only used for the streaming mode.
  8123  	Index int64 `json:"index,omitempty"`
  8124  	// Source: Source from which this fact chunk was retrieved. If it was retrieved
  8125  	// from the GroundingFacts provided in the request then this field will contain
  8126  	// the index of the specific fact from which this chunk was retrieved.
  8127  	Source string `json:"source,omitempty"`
  8128  	// SourceMetadata: More fine-grained information for the source reference.
  8129  	SourceMetadata map[string]string `json:"sourceMetadata,omitempty"`
  8130  	// ForceSendFields is a list of field names (e.g. "ChunkText") to
  8131  	// unconditionally include in API requests. By default, fields with empty or
  8132  	// default values are omitted from API requests. See
  8133  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8134  	// details.
  8135  	ForceSendFields []string `json:"-"`
  8136  	// NullFields is a list of field names (e.g. "ChunkText") to include in API
  8137  	// requests with the JSON null value. By default, fields with empty values are
  8138  	// omitted from API requests. See
  8139  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8140  	NullFields []string `json:"-"`
  8141  }
  8142  
  8143  func (s *GoogleCloudDiscoveryengineV1betaFactChunk) MarshalJSON() ([]byte, error) {
  8144  	type NoMethod GoogleCloudDiscoveryengineV1betaFactChunk
  8145  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8146  }
  8147  
  8148  // GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse:
  8149  // Response message for SiteSearchEngineService.FetchDomainVerificationStatus
  8150  // method.
  8151  type GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse struct {
  8152  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  8153  	// page. If this field is omitted, there are no subsequent pages.
  8154  	NextPageToken string `json:"nextPageToken,omitempty"`
  8155  	// TargetSites: List of TargetSites containing the site verification status.
  8156  	TargetSites []*GoogleCloudDiscoveryengineV1betaTargetSite `json:"targetSites,omitempty"`
  8157  	// TotalSize: The total number of items matching the request. This will always
  8158  	// be populated in the response.
  8159  	TotalSize int64 `json:"totalSize,omitempty"`
  8160  
  8161  	// ServerResponse contains the HTTP response code and headers from the server.
  8162  	googleapi.ServerResponse `json:"-"`
  8163  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  8164  	// unconditionally include in API requests. By default, fields with empty or
  8165  	// default values are omitted from API requests. See
  8166  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8167  	// details.
  8168  	ForceSendFields []string `json:"-"`
  8169  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  8170  	// requests with the JSON null value. By default, fields with empty values are
  8171  	// omitted from API requests. See
  8172  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8173  	NullFields []string `json:"-"`
  8174  }
  8175  
  8176  func (s *GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse) MarshalJSON() ([]byte, error) {
  8177  	type NoMethod GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse
  8178  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8179  }
  8180  
  8181  // GoogleCloudDiscoveryengineV1betaFhirStoreSource: Cloud FhirStore source
  8182  // import data from.
  8183  type GoogleCloudDiscoveryengineV1betaFhirStoreSource struct {
  8184  	// FhirStore: Required. The full resource name of the FHIR store to import data
  8185  	// from, in the format of
  8186  	// `projects/{project}/locations/{location}/datasets/{dataset}/fhirStores/{fhir_
  8187  	// store}`.
  8188  	FhirStore string `json:"fhirStore,omitempty"`
  8189  	// GcsStagingDir: Intermediate Cloud Storage directory used for the import with
  8190  	// a length limit of 2,000 characters. Can be specified if one wants to have
  8191  	// the FhirStore export to a specific Cloud Storage directory.
  8192  	GcsStagingDir string `json:"gcsStagingDir,omitempty"`
  8193  	// ForceSendFields is a list of field names (e.g. "FhirStore") to
  8194  	// unconditionally include in API requests. By default, fields with empty or
  8195  	// default values are omitted from API requests. See
  8196  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8197  	// details.
  8198  	ForceSendFields []string `json:"-"`
  8199  	// NullFields is a list of field names (e.g. "FhirStore") to include in API
  8200  	// requests with the JSON null value. By default, fields with empty values are
  8201  	// omitted from API requests. See
  8202  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8203  	NullFields []string `json:"-"`
  8204  }
  8205  
  8206  func (s *GoogleCloudDiscoveryengineV1betaFhirStoreSource) MarshalJSON() ([]byte, error) {
  8207  	type NoMethod GoogleCloudDiscoveryengineV1betaFhirStoreSource
  8208  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8209  }
  8210  
  8211  // GoogleCloudDiscoveryengineV1betaFirestoreSource: Firestore source import
  8212  // data from.
  8213  type GoogleCloudDiscoveryengineV1betaFirestoreSource struct {
  8214  	// CollectionId: Required. The Firestore collection to copy the data from with
  8215  	// a length limit of 1,500 characters.
  8216  	CollectionId string `json:"collectionId,omitempty"`
  8217  	// DatabaseId: Required. The Firestore database to copy the data from with a
  8218  	// length limit of 256 characters.
  8219  	DatabaseId string `json:"databaseId,omitempty"`
  8220  	// GcsStagingDir: Intermediate Cloud Storage directory used for the import with
  8221  	// a length limit of 2,000 characters. Can be specified if one wants to have
  8222  	// the Firestore export to a specific Cloud Storage directory. Ensure that the
  8223  	// Firestore service account has the necessary Cloud Storage Admin permissions
  8224  	// to access the specified Cloud Storage directory.
  8225  	GcsStagingDir string `json:"gcsStagingDir,omitempty"`
  8226  	// ProjectId: The project ID that the Cloud SQL source is in with a length
  8227  	// limit of 128 characters. If not specified, inherits the project ID from the
  8228  	// parent request.
  8229  	ProjectId string `json:"projectId,omitempty"`
  8230  	// ForceSendFields is a list of field names (e.g. "CollectionId") to
  8231  	// unconditionally include in API requests. By default, fields with empty or
  8232  	// default values are omitted from API requests. See
  8233  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8234  	// details.
  8235  	ForceSendFields []string `json:"-"`
  8236  	// NullFields is a list of field names (e.g. "CollectionId") to include in API
  8237  	// requests with the JSON null value. By default, fields with empty values are
  8238  	// omitted from API requests. See
  8239  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8240  	NullFields []string `json:"-"`
  8241  }
  8242  
  8243  func (s *GoogleCloudDiscoveryengineV1betaFirestoreSource) MarshalJSON() ([]byte, error) {
  8244  	type NoMethod GoogleCloudDiscoveryengineV1betaFirestoreSource
  8245  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8246  }
  8247  
  8248  // GoogleCloudDiscoveryengineV1betaGcsSource: Cloud Storage location for input
  8249  // content.
  8250  type GoogleCloudDiscoveryengineV1betaGcsSource struct {
  8251  	// DataSchema: The schema to use when parsing the data from the source.
  8252  	// Supported values for document imports: * `document` (default): One JSON
  8253  	// Document per line. Each document must have a valid Document.id. * `content`:
  8254  	// Unstructured data (e.g. PDF, HTML). Each file matched by `input_uris`
  8255  	// becomes a document, with the ID set to the first 128 bits of SHA256(URI)
  8256  	// encoded as a hex string. * `custom`: One custom data JSON per row in
  8257  	// arbitrary format that conforms to the defined Schema of the data store. This
  8258  	// can only be used by the GENERIC Data Store vertical. * `csv`: A CSV file
  8259  	// with header conforming to the defined Schema of the data store. Each entry
  8260  	// after the header is imported as a Document. This can only be used by the
  8261  	// GENERIC Data Store vertical. Supported values for user even imports: *
  8262  	// `user_event` (default): One JSON UserEvent per line.
  8263  	DataSchema string `json:"dataSchema,omitempty"`
  8264  	// InputUris: Required. Cloud Storage URIs to input files. URI can be up to
  8265  	// 2000 characters long. URIs can match the full object path (for example,
  8266  	// `gs://bucket/directory/object.json`) or a pattern matching one or more
  8267  	// files, such as `gs://bucket/directory/*.json`. A request can contain at most
  8268  	// 100 files (or 100,000 files if `data_schema` is `content`). Each file can be
  8269  	// up to 2 GB (or 100 MB if `data_schema` is `content`).
  8270  	InputUris []string `json:"inputUris,omitempty"`
  8271  	// ForceSendFields is a list of field names (e.g. "DataSchema") to
  8272  	// unconditionally include in API requests. By default, fields with empty or
  8273  	// default values are omitted from API requests. See
  8274  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8275  	// details.
  8276  	ForceSendFields []string `json:"-"`
  8277  	// NullFields is a list of field names (e.g. "DataSchema") to include in API
  8278  	// requests with the JSON null value. By default, fields with empty values are
  8279  	// omitted from API requests. See
  8280  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8281  	NullFields []string `json:"-"`
  8282  }
  8283  
  8284  func (s *GoogleCloudDiscoveryengineV1betaGcsSource) MarshalJSON() ([]byte, error) {
  8285  	type NoMethod GoogleCloudDiscoveryengineV1betaGcsSource
  8286  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8287  }
  8288  
  8289  // GoogleCloudDiscoveryengineV1betaGroundingFact: Grounding Fact.
  8290  type GoogleCloudDiscoveryengineV1betaGroundingFact struct {
  8291  	// Attributes: Attributes associated with the fact. Common attributes include
  8292  	// `source` (indicating where the fact was sourced from), `author` (indicating
  8293  	// the author of the fact), and so on.
  8294  	Attributes map[string]string `json:"attributes,omitempty"`
  8295  	// FactText: Text content of the fact. Can be at most 10K characters long.
  8296  	FactText string `json:"factText,omitempty"`
  8297  	// ForceSendFields is a list of field names (e.g. "Attributes") to
  8298  	// unconditionally include in API requests. By default, fields with empty or
  8299  	// default values are omitted from API requests. See
  8300  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8301  	// details.
  8302  	ForceSendFields []string `json:"-"`
  8303  	// NullFields is a list of field names (e.g. "Attributes") to include in API
  8304  	// requests with the JSON null value. By default, fields with empty values are
  8305  	// omitted from API requests. See
  8306  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8307  	NullFields []string `json:"-"`
  8308  }
  8309  
  8310  func (s *GoogleCloudDiscoveryengineV1betaGroundingFact) MarshalJSON() ([]byte, error) {
  8311  	type NoMethod GoogleCloudDiscoveryengineV1betaGroundingFact
  8312  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8313  }
  8314  
  8315  // GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata: Metadata related to
  8316  // the progress of the ImportDocuments operation. This is returned by the
  8317  // google.longrunning.Operation.metadata field.
  8318  type GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata struct {
  8319  	// CreateTime: Operation create time.
  8320  	CreateTime string `json:"createTime,omitempty"`
  8321  	// FailureCount: Count of entries that encountered errors while processing.
  8322  	FailureCount int64 `json:"failureCount,omitempty,string"`
  8323  	// SuccessCount: Count of entries that were processed successfully.
  8324  	SuccessCount int64 `json:"successCount,omitempty,string"`
  8325  	// TotalCount: Total count of entries that were processed.
  8326  	TotalCount int64 `json:"totalCount,omitempty,string"`
  8327  	// UpdateTime: Operation last update time. If the operation is done, this is
  8328  	// also the finish time.
  8329  	UpdateTime string `json:"updateTime,omitempty"`
  8330  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8331  	// unconditionally include in API requests. By default, fields with empty or
  8332  	// default values are omitted from API requests. See
  8333  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8334  	// details.
  8335  	ForceSendFields []string `json:"-"`
  8336  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8337  	// requests with the JSON null value. By default, fields with empty values are
  8338  	// omitted from API requests. See
  8339  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8340  	NullFields []string `json:"-"`
  8341  }
  8342  
  8343  func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
  8344  	type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
  8345  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8346  }
  8347  
  8348  // GoogleCloudDiscoveryengineV1betaImportDocumentsRequest: Request message for
  8349  // Import methods.
  8350  type GoogleCloudDiscoveryengineV1betaImportDocumentsRequest struct {
  8351  	// AutoGenerateIds: Whether to automatically generate IDs for the documents if
  8352  	// absent. If set to `true`, Document.ids are automatically generated based on
  8353  	// the hash of the payload, where IDs may not be consistent during multiple
  8354  	// imports. In which case ReconciliationMode.FULL is highly recommended to
  8355  	// avoid duplicate contents. If unset or set to `false`, Document.ids have to
  8356  	// be specified using id_field, otherwise, documents without IDs fail to be
  8357  	// imported. Supported data sources: * GcsSource. GcsSource.data_schema must be
  8358  	// `custom` or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. *
  8359  	// BigQuerySource. BigQuerySource.data_schema must be `custom` or `csv`.
  8360  	// Otherwise, an INVALID_ARGUMENT error is thrown. * SpannerSource. *
  8361  	// CloudSqlSource. * FirestoreSource. * BigtableSource.
  8362  	AutoGenerateIds bool `json:"autoGenerateIds,omitempty"`
  8363  	// BigquerySource: BigQuery input source.
  8364  	BigquerySource *GoogleCloudDiscoveryengineV1betaBigQuerySource `json:"bigquerySource,omitempty"`
  8365  	// BigtableSource: Cloud Bigtable input source.
  8366  	BigtableSource *GoogleCloudDiscoveryengineV1betaBigtableSource `json:"bigtableSource,omitempty"`
  8367  	// CloudSqlSource: Cloud SQL input source.
  8368  	CloudSqlSource *GoogleCloudDiscoveryengineV1betaCloudSqlSource `json:"cloudSqlSource,omitempty"`
  8369  	// ErrorConfig: The desired location of errors incurred during the Import.
  8370  	ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
  8371  	// FhirStoreSource: FhirStore input source.
  8372  	FhirStoreSource *GoogleCloudDiscoveryengineV1betaFhirStoreSource `json:"fhirStoreSource,omitempty"`
  8373  	// FirestoreSource: Firestore input source.
  8374  	FirestoreSource *GoogleCloudDiscoveryengineV1betaFirestoreSource `json:"firestoreSource,omitempty"`
  8375  	// GcsSource: Cloud Storage location for the input content.
  8376  	GcsSource *GoogleCloudDiscoveryengineV1betaGcsSource `json:"gcsSource,omitempty"`
  8377  	// IdField: The field indicates the ID field or column to be used as unique IDs
  8378  	// of the documents. For GcsSource it is the key of the JSON field. For
  8379  	// instance, `my_id` for JSON `{"my_id": "some_uuid"}`. For others, it may be
  8380  	// the column name of the table where the unique ids are stored. The values of
  8381  	// the JSON field or the table column are used as the Document.ids. The JSON
  8382  	// field or the table column must be of string type, and the values must be set
  8383  	// as valid strings conform to RFC-1034 (https://tools.ietf.org/html/rfc1034)
  8384  	// with 1-63 characters. Otherwise, documents without valid IDs fail to be
  8385  	// imported. Only set this field when auto_generate_ids is unset or set as
  8386  	// `false`. Otherwise, an INVALID_ARGUMENT error is thrown. If it is unset, a
  8387  	// default value `_id` is used when importing from the allowed data sources.
  8388  	// Supported data sources: * GcsSource. GcsSource.data_schema must be `custom`
  8389  	// or `csv`. Otherwise, an INVALID_ARGUMENT error is thrown. * BigQuerySource.
  8390  	// BigQuerySource.data_schema must be `custom` or `csv`. Otherwise, an
  8391  	// INVALID_ARGUMENT error is thrown. * SpannerSource. * CloudSqlSource. *
  8392  	// FirestoreSource. * BigtableSource.
  8393  	IdField string `json:"idField,omitempty"`
  8394  	// InlineSource: The Inline source for the input content for documents.
  8395  	InlineSource *GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource `json:"inlineSource,omitempty"`
  8396  	// ReconciliationMode: The mode of reconciliation between existing documents
  8397  	// and the documents to be imported. Defaults to
  8398  	// ReconciliationMode.INCREMENTAL.
  8399  	//
  8400  	// Possible values:
  8401  	//   "RECONCILIATION_MODE_UNSPECIFIED" - Defaults to `INCREMENTAL`.
  8402  	//   "INCREMENTAL" - Inserts new documents or updates existing documents.
  8403  	//   "FULL" - Calculates diff and replaces the entire document dataset.
  8404  	// Existing documents may be deleted if they are not present in the source
  8405  	// location.
  8406  	ReconciliationMode string `json:"reconciliationMode,omitempty"`
  8407  	// SpannerSource: Spanner input source.
  8408  	SpannerSource *GoogleCloudDiscoveryengineV1betaSpannerSource `json:"spannerSource,omitempty"`
  8409  	// UpdateMask: Indicates which fields in the provided imported documents to
  8410  	// update. If not set, the default is to update all fields.
  8411  	UpdateMask string `json:"updateMask,omitempty"`
  8412  	// ForceSendFields is a list of field names (e.g. "AutoGenerateIds") to
  8413  	// unconditionally include in API requests. By default, fields with empty or
  8414  	// default values are omitted from API requests. See
  8415  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8416  	// details.
  8417  	ForceSendFields []string `json:"-"`
  8418  	// NullFields is a list of field names (e.g. "AutoGenerateIds") to include in
  8419  	// API requests with the JSON null value. By default, fields with empty values
  8420  	// are omitted from API requests. See
  8421  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8422  	NullFields []string `json:"-"`
  8423  }
  8424  
  8425  func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsRequest) MarshalJSON() ([]byte, error) {
  8426  	type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsRequest
  8427  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8428  }
  8429  
  8430  // GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource: The
  8431  // inline source for the input config for ImportDocuments method.
  8432  type GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource struct {
  8433  	// Documents: Required. A list of documents to update/create. Each document
  8434  	// must have a valid Document.id. Recommended max of 100 items.
  8435  	Documents []*GoogleCloudDiscoveryengineV1betaDocument `json:"documents,omitempty"`
  8436  	// ForceSendFields is a list of field names (e.g. "Documents") to
  8437  	// unconditionally include in API requests. By default, fields with empty or
  8438  	// default values are omitted from API requests. See
  8439  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8440  	// details.
  8441  	ForceSendFields []string `json:"-"`
  8442  	// NullFields is a list of field names (e.g. "Documents") to include in API
  8443  	// requests with the JSON null value. By default, fields with empty values are
  8444  	// omitted from API requests. See
  8445  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8446  	NullFields []string `json:"-"`
  8447  }
  8448  
  8449  func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource) MarshalJSON() ([]byte, error) {
  8450  	type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource
  8451  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8452  }
  8453  
  8454  // GoogleCloudDiscoveryengineV1betaImportDocumentsResponse: Response of the
  8455  // ImportDocumentsRequest. If the long running operation is done, then this
  8456  // message is returned by the google.longrunning.Operations.response field if
  8457  // the operation was successful.
  8458  type GoogleCloudDiscoveryengineV1betaImportDocumentsResponse struct {
  8459  	// ErrorConfig: Echoes the destination for the complete errors in the request
  8460  	// if set.
  8461  	ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
  8462  	// ErrorSamples: A sample of errors encountered while processing the request.
  8463  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  8464  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  8465  	// unconditionally include in API requests. By default, fields with empty or
  8466  	// default values are omitted from API requests. See
  8467  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8468  	// details.
  8469  	ForceSendFields []string `json:"-"`
  8470  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  8471  	// requests with the JSON null value. By default, fields with empty values are
  8472  	// omitted from API requests. See
  8473  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8474  	NullFields []string `json:"-"`
  8475  }
  8476  
  8477  func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsResponse) MarshalJSON() ([]byte, error) {
  8478  	type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsResponse
  8479  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8480  }
  8481  
  8482  // GoogleCloudDiscoveryengineV1betaImportErrorConfig: Configuration of
  8483  // destination for Import related errors.
  8484  type GoogleCloudDiscoveryengineV1betaImportErrorConfig struct {
  8485  	// GcsPrefix: Cloud Storage prefix for import errors. This must be an empty,
  8486  	// existing Cloud Storage directory. Import errors are written to sharded files
  8487  	// in this directory, one per line, as a JSON-encoded `google.rpc.Status`
  8488  	// message.
  8489  	GcsPrefix string `json:"gcsPrefix,omitempty"`
  8490  	// ForceSendFields is a list of field names (e.g. "GcsPrefix") to
  8491  	// unconditionally include in API requests. By default, fields with empty or
  8492  	// default values are omitted from API requests. See
  8493  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8494  	// details.
  8495  	ForceSendFields []string `json:"-"`
  8496  	// NullFields is a list of field names (e.g. "GcsPrefix") to include in API
  8497  	// requests with the JSON null value. By default, fields with empty values are
  8498  	// omitted from API requests. See
  8499  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8500  	NullFields []string `json:"-"`
  8501  }
  8502  
  8503  func (s *GoogleCloudDiscoveryengineV1betaImportErrorConfig) MarshalJSON() ([]byte, error) {
  8504  	type NoMethod GoogleCloudDiscoveryengineV1betaImportErrorConfig
  8505  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8506  }
  8507  
  8508  // GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata:
  8509  // Metadata related to the progress of the ImportSuggestionDenyListEntries
  8510  // operation. This is returned by the google.longrunning.Operation.metadata
  8511  // field.
  8512  type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata struct {
  8513  	// CreateTime: Operation create time.
  8514  	CreateTime string `json:"createTime,omitempty"`
  8515  	// UpdateTime: Operation last update time. If the operation is done, this is
  8516  	// also the finish time.
  8517  	UpdateTime string `json:"updateTime,omitempty"`
  8518  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8519  	// unconditionally include in API requests. By default, fields with empty or
  8520  	// default values are omitted from API requests. See
  8521  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8522  	// details.
  8523  	ForceSendFields []string `json:"-"`
  8524  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8525  	// requests with the JSON null value. By default, fields with empty values are
  8526  	// omitted from API requests. See
  8527  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8528  	NullFields []string `json:"-"`
  8529  }
  8530  
  8531  func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  8532  	type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata
  8533  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8534  }
  8535  
  8536  // GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest:
  8537  // Request message for CompletionService.ImportSuggestionDenyListEntries
  8538  // method.
  8539  type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest struct {
  8540  	// GcsSource: Cloud Storage location for the input content. Only 1 file can be
  8541  	// specified that contains all entries to import. Supported values
  8542  	// `gcs_source.schema` for autocomplete suggestion deny list entry imports: *
  8543  	// `suggestion_deny_list` (default): One JSON [SuggestionDenyListEntry] per
  8544  	// line.
  8545  	GcsSource *GoogleCloudDiscoveryengineV1betaGcsSource `json:"gcsSource,omitempty"`
  8546  	// InlineSource: The Inline source for the input content for suggestion deny
  8547  	// list entries.
  8548  	InlineSource *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequestInlineSource `json:"inlineSource,omitempty"`
  8549  	// ForceSendFields is a list of field names (e.g. "GcsSource") to
  8550  	// unconditionally include in API requests. By default, fields with empty or
  8551  	// default values are omitted from API requests. See
  8552  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8553  	// details.
  8554  	ForceSendFields []string `json:"-"`
  8555  	// NullFields is a list of field names (e.g. "GcsSource") to include in API
  8556  	// requests with the JSON null value. By default, fields with empty values are
  8557  	// omitted from API requests. See
  8558  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8559  	NullFields []string `json:"-"`
  8560  }
  8561  
  8562  func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest) MarshalJSON() ([]byte, error) {
  8563  	type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest
  8564  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8565  }
  8566  
  8567  // GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequestInlineS
  8568  // ource: The inline source for SuggestionDenyListEntry.
  8569  type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequestInlineSource struct {
  8570  	// Entries: Required. A list of all denylist entries to import. Max of 1000
  8571  	// items.
  8572  	Entries []*GoogleCloudDiscoveryengineV1betaSuggestionDenyListEntry `json:"entries,omitempty"`
  8573  	// ForceSendFields is a list of field names (e.g. "Entries") to unconditionally
  8574  	// include in API requests. By default, fields with empty or default values are
  8575  	// omitted from API requests. See
  8576  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8577  	// details.
  8578  	ForceSendFields []string `json:"-"`
  8579  	// NullFields is a list of field names (e.g. "Entries") to include in API
  8580  	// requests with the JSON null value. By default, fields with empty values are
  8581  	// omitted from API requests. See
  8582  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8583  	NullFields []string `json:"-"`
  8584  }
  8585  
  8586  func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequestInlineSource) MarshalJSON() ([]byte, error) {
  8587  	type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequestInlineSource
  8588  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8589  }
  8590  
  8591  // GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse:
  8592  // Response message for CompletionService.ImportSuggestionDenyListEntries
  8593  // method.
  8594  type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse struct {
  8595  	// ErrorSamples: A sample of errors encountered while processing the request.
  8596  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  8597  	// FailedEntriesCount: Count of deny list entries that failed to be imported.
  8598  	FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
  8599  	// ImportedEntriesCount: Count of deny list entries successfully imported.
  8600  	ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
  8601  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  8602  	// unconditionally include in API requests. By default, fields with empty or
  8603  	// default values are omitted from API requests. See
  8604  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8605  	// details.
  8606  	ForceSendFields []string `json:"-"`
  8607  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  8608  	// requests with the JSON null value. By default, fields with empty values are
  8609  	// omitted from API requests. See
  8610  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8611  	NullFields []string `json:"-"`
  8612  }
  8613  
  8614  func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  8615  	type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse
  8616  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8617  }
  8618  
  8619  // GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata: Metadata related
  8620  // to the progress of the Import operation. This is returned by the
  8621  // google.longrunning.Operation.metadata field.
  8622  type GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata struct {
  8623  	// CreateTime: Operation create time.
  8624  	CreateTime string `json:"createTime,omitempty"`
  8625  	// FailureCount: Count of entries that encountered errors while processing.
  8626  	FailureCount int64 `json:"failureCount,omitempty,string"`
  8627  	// SuccessCount: Count of entries that were processed successfully.
  8628  	SuccessCount int64 `json:"successCount,omitempty,string"`
  8629  	// UpdateTime: Operation last update time. If the operation is done, this is
  8630  	// also the finish time.
  8631  	UpdateTime string `json:"updateTime,omitempty"`
  8632  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  8633  	// unconditionally include in API requests. By default, fields with empty or
  8634  	// default values are omitted from API requests. See
  8635  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8636  	// details.
  8637  	ForceSendFields []string `json:"-"`
  8638  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  8639  	// requests with the JSON null value. By default, fields with empty values are
  8640  	// omitted from API requests. See
  8641  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8642  	NullFields []string `json:"-"`
  8643  }
  8644  
  8645  func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
  8646  	type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata
  8647  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8648  }
  8649  
  8650  // GoogleCloudDiscoveryengineV1betaImportUserEventsRequest: Request message for
  8651  // the ImportUserEvents request.
  8652  type GoogleCloudDiscoveryengineV1betaImportUserEventsRequest struct {
  8653  	// BigquerySource: BigQuery input source.
  8654  	BigquerySource *GoogleCloudDiscoveryengineV1betaBigQuerySource `json:"bigquerySource,omitempty"`
  8655  	// ErrorConfig: The desired location of errors incurred during the Import.
  8656  	// Cannot be set for inline user event imports.
  8657  	ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
  8658  	// GcsSource: Cloud Storage location for the input content.
  8659  	GcsSource *GoogleCloudDiscoveryengineV1betaGcsSource `json:"gcsSource,omitempty"`
  8660  	// InlineSource: The Inline source for the input content for UserEvents.
  8661  	InlineSource *GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource `json:"inlineSource,omitempty"`
  8662  	// ForceSendFields is a list of field names (e.g. "BigquerySource") to
  8663  	// unconditionally include in API requests. By default, fields with empty or
  8664  	// default values are omitted from API requests. See
  8665  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8666  	// details.
  8667  	ForceSendFields []string `json:"-"`
  8668  	// NullFields is a list of field names (e.g. "BigquerySource") to include in
  8669  	// API requests with the JSON null value. By default, fields with empty values
  8670  	// are omitted from API requests. See
  8671  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8672  	NullFields []string `json:"-"`
  8673  }
  8674  
  8675  func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsRequest) MarshalJSON() ([]byte, error) {
  8676  	type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsRequest
  8677  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8678  }
  8679  
  8680  // GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource: The
  8681  // inline source for the input config for ImportUserEvents method.
  8682  type GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource struct {
  8683  	// UserEvents: Required. A list of user events to import. Recommended max of
  8684  	// 10k items.
  8685  	UserEvents []*GoogleCloudDiscoveryengineV1betaUserEvent `json:"userEvents,omitempty"`
  8686  	// ForceSendFields is a list of field names (e.g. "UserEvents") to
  8687  	// unconditionally include in API requests. By default, fields with empty or
  8688  	// default values are omitted from API requests. See
  8689  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8690  	// details.
  8691  	ForceSendFields []string `json:"-"`
  8692  	// NullFields is a list of field names (e.g. "UserEvents") to include in API
  8693  	// requests with the JSON null value. By default, fields with empty values are
  8694  	// omitted from API requests. See
  8695  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8696  	NullFields []string `json:"-"`
  8697  }
  8698  
  8699  func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource) MarshalJSON() ([]byte, error) {
  8700  	type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource
  8701  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8702  }
  8703  
  8704  // GoogleCloudDiscoveryengineV1betaImportUserEventsResponse: Response of the
  8705  // ImportUserEventsRequest. If the long running operation was successful, then
  8706  // this message is returned by the google.longrunning.Operations.response field
  8707  // if the operation was successful.
  8708  type GoogleCloudDiscoveryengineV1betaImportUserEventsResponse struct {
  8709  	// ErrorConfig: Echoes the destination for the complete errors if this field
  8710  	// was set in the request.
  8711  	ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
  8712  	// ErrorSamples: A sample of errors encountered while processing the request.
  8713  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  8714  	// JoinedEventsCount: Count of user events imported with complete existing
  8715  	// Documents.
  8716  	JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
  8717  	// UnjoinedEventsCount: Count of user events imported, but with Document
  8718  	// information not found in the existing Branch.
  8719  	UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
  8720  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
  8721  	// unconditionally include in API requests. By default, fields with empty or
  8722  	// default values are omitted from API requests. See
  8723  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8724  	// details.
  8725  	ForceSendFields []string `json:"-"`
  8726  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
  8727  	// requests with the JSON null value. By default, fields with empty values are
  8728  	// omitted from API requests. See
  8729  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8730  	NullFields []string `json:"-"`
  8731  }
  8732  
  8733  func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsResponse) MarshalJSON() ([]byte, error) {
  8734  	type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsResponse
  8735  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8736  }
  8737  
  8738  // GoogleCloudDiscoveryengineV1betaInterval: A floating point interval.
  8739  type GoogleCloudDiscoveryengineV1betaInterval struct {
  8740  	// ExclusiveMaximum: Exclusive upper bound.
  8741  	ExclusiveMaximum float64 `json:"exclusiveMaximum,omitempty"`
  8742  	// ExclusiveMinimum: Exclusive lower bound.
  8743  	ExclusiveMinimum float64 `json:"exclusiveMinimum,omitempty"`
  8744  	// Maximum: Inclusive upper bound.
  8745  	Maximum float64 `json:"maximum,omitempty"`
  8746  	// Minimum: Inclusive lower bound.
  8747  	Minimum float64 `json:"minimum,omitempty"`
  8748  	// ForceSendFields is a list of field names (e.g. "ExclusiveMaximum") to
  8749  	// unconditionally include in API requests. By default, fields with empty or
  8750  	// default values are omitted from API requests. See
  8751  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8752  	// details.
  8753  	ForceSendFields []string `json:"-"`
  8754  	// NullFields is a list of field names (e.g. "ExclusiveMaximum") to include in
  8755  	// API requests with the JSON null value. By default, fields with empty values
  8756  	// are omitted from API requests. See
  8757  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8758  	NullFields []string `json:"-"`
  8759  }
  8760  
  8761  func (s *GoogleCloudDiscoveryengineV1betaInterval) MarshalJSON() ([]byte, error) {
  8762  	type NoMethod GoogleCloudDiscoveryengineV1betaInterval
  8763  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8764  }
  8765  
  8766  func (s *GoogleCloudDiscoveryengineV1betaInterval) UnmarshalJSON(data []byte) error {
  8767  	type NoMethod GoogleCloudDiscoveryengineV1betaInterval
  8768  	var s1 struct {
  8769  		ExclusiveMaximum gensupport.JSONFloat64 `json:"exclusiveMaximum"`
  8770  		ExclusiveMinimum gensupport.JSONFloat64 `json:"exclusiveMinimum"`
  8771  		Maximum          gensupport.JSONFloat64 `json:"maximum"`
  8772  		Minimum          gensupport.JSONFloat64 `json:"minimum"`
  8773  		*NoMethod
  8774  	}
  8775  	s1.NoMethod = (*NoMethod)(s)
  8776  	if err := json.Unmarshal(data, &s1); err != nil {
  8777  		return err
  8778  	}
  8779  	s.ExclusiveMaximum = float64(s1.ExclusiveMaximum)
  8780  	s.ExclusiveMinimum = float64(s1.ExclusiveMinimum)
  8781  	s.Maximum = float64(s1.Maximum)
  8782  	s.Minimum = float64(s1.Minimum)
  8783  	return nil
  8784  }
  8785  
  8786  // GoogleCloudDiscoveryengineV1betaListConversationsResponse: Response for
  8787  // ListConversations method.
  8788  type GoogleCloudDiscoveryengineV1betaListConversationsResponse struct {
  8789  	// Conversations: All the Conversations for a given data store.
  8790  	Conversations []*GoogleCloudDiscoveryengineV1betaConversation `json:"conversations,omitempty"`
  8791  	// NextPageToken: Pagination token, if not returned indicates the last page.
  8792  	NextPageToken string `json:"nextPageToken,omitempty"`
  8793  
  8794  	// ServerResponse contains the HTTP response code and headers from the server.
  8795  	googleapi.ServerResponse `json:"-"`
  8796  	// ForceSendFields is a list of field names (e.g. "Conversations") to
  8797  	// unconditionally include in API requests. By default, fields with empty or
  8798  	// default values are omitted from API requests. See
  8799  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8800  	// details.
  8801  	ForceSendFields []string `json:"-"`
  8802  	// NullFields is a list of field names (e.g. "Conversations") to include in API
  8803  	// requests with the JSON null value. By default, fields with empty values are
  8804  	// omitted from API requests. See
  8805  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8806  	NullFields []string `json:"-"`
  8807  }
  8808  
  8809  func (s *GoogleCloudDiscoveryengineV1betaListConversationsResponse) MarshalJSON() ([]byte, error) {
  8810  	type NoMethod GoogleCloudDiscoveryengineV1betaListConversationsResponse
  8811  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8812  }
  8813  
  8814  // GoogleCloudDiscoveryengineV1betaListCustomModelsResponse: Response message
  8815  // for SearchTuningService.ListCustomModels method.
  8816  type GoogleCloudDiscoveryengineV1betaListCustomModelsResponse struct {
  8817  	// Models: List of custom tuning models.
  8818  	Models []*GoogleCloudDiscoveryengineV1betaCustomTuningModel `json:"models,omitempty"`
  8819  
  8820  	// ServerResponse contains the HTTP response code and headers from the server.
  8821  	googleapi.ServerResponse `json:"-"`
  8822  	// ForceSendFields is a list of field names (e.g. "Models") to unconditionally
  8823  	// include in API requests. By default, fields with empty or default values are
  8824  	// omitted from API requests. See
  8825  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8826  	// details.
  8827  	ForceSendFields []string `json:"-"`
  8828  	// NullFields is a list of field names (e.g. "Models") to include in API
  8829  	// requests with the JSON null value. By default, fields with empty values are
  8830  	// omitted from API requests. See
  8831  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8832  	NullFields []string `json:"-"`
  8833  }
  8834  
  8835  func (s *GoogleCloudDiscoveryengineV1betaListCustomModelsResponse) MarshalJSON() ([]byte, error) {
  8836  	type NoMethod GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
  8837  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8838  }
  8839  
  8840  // GoogleCloudDiscoveryengineV1betaListDataStoresResponse: Response message for
  8841  // DataStoreService.ListDataStores method.
  8842  type GoogleCloudDiscoveryengineV1betaListDataStoresResponse struct {
  8843  	// DataStores: All the customer's DataStores.
  8844  	DataStores []*GoogleCloudDiscoveryengineV1betaDataStore `json:"dataStores,omitempty"`
  8845  	// NextPageToken: A token that can be sent as ListDataStoresRequest.page_token
  8846  	// to retrieve the next page. If this field is omitted, there are no subsequent
  8847  	// pages.
  8848  	NextPageToken string `json:"nextPageToken,omitempty"`
  8849  
  8850  	// ServerResponse contains the HTTP response code and headers from the server.
  8851  	googleapi.ServerResponse `json:"-"`
  8852  	// ForceSendFields is a list of field names (e.g. "DataStores") to
  8853  	// unconditionally include in API requests. By default, fields with empty or
  8854  	// default values are omitted from API requests. See
  8855  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8856  	// details.
  8857  	ForceSendFields []string `json:"-"`
  8858  	// NullFields is a list of field names (e.g. "DataStores") to include in API
  8859  	// requests with the JSON null value. By default, fields with empty values are
  8860  	// omitted from API requests. See
  8861  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8862  	NullFields []string `json:"-"`
  8863  }
  8864  
  8865  func (s *GoogleCloudDiscoveryengineV1betaListDataStoresResponse) MarshalJSON() ([]byte, error) {
  8866  	type NoMethod GoogleCloudDiscoveryengineV1betaListDataStoresResponse
  8867  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8868  }
  8869  
  8870  // GoogleCloudDiscoveryengineV1betaListDocumentsResponse: Response message for
  8871  // DocumentService.ListDocuments method.
  8872  type GoogleCloudDiscoveryengineV1betaListDocumentsResponse struct {
  8873  	// Documents: The Documents.
  8874  	Documents []*GoogleCloudDiscoveryengineV1betaDocument `json:"documents,omitempty"`
  8875  	// NextPageToken: A token that can be sent as ListDocumentsRequest.page_token
  8876  	// to retrieve the next page. If this field is omitted, there are no subsequent
  8877  	// pages.
  8878  	NextPageToken string `json:"nextPageToken,omitempty"`
  8879  
  8880  	// ServerResponse contains the HTTP response code and headers from the server.
  8881  	googleapi.ServerResponse `json:"-"`
  8882  	// ForceSendFields is a list of field names (e.g. "Documents") to
  8883  	// unconditionally include in API requests. By default, fields with empty or
  8884  	// default values are omitted from API requests. See
  8885  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8886  	// details.
  8887  	ForceSendFields []string `json:"-"`
  8888  	// NullFields is a list of field names (e.g. "Documents") to include in API
  8889  	// requests with the JSON null value. By default, fields with empty values are
  8890  	// omitted from API requests. See
  8891  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8892  	NullFields []string `json:"-"`
  8893  }
  8894  
  8895  func (s *GoogleCloudDiscoveryengineV1betaListDocumentsResponse) MarshalJSON() ([]byte, error) {
  8896  	type NoMethod GoogleCloudDiscoveryengineV1betaListDocumentsResponse
  8897  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8898  }
  8899  
  8900  // GoogleCloudDiscoveryengineV1betaListEnginesResponse: Response message for
  8901  // EngineService.ListEngines method.
  8902  type GoogleCloudDiscoveryengineV1betaListEnginesResponse struct {
  8903  	// Engines: All the customer's Engines.
  8904  	Engines []*GoogleCloudDiscoveryengineV1betaEngine `json:"engines,omitempty"`
  8905  	// NextPageToken: Not supported.
  8906  	NextPageToken string `json:"nextPageToken,omitempty"`
  8907  
  8908  	// ServerResponse contains the HTTP response code and headers from the server.
  8909  	googleapi.ServerResponse `json:"-"`
  8910  	// ForceSendFields is a list of field names (e.g. "Engines") to unconditionally
  8911  	// include in API requests. By default, fields with empty or default values are
  8912  	// omitted from API requests. See
  8913  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8914  	// details.
  8915  	ForceSendFields []string `json:"-"`
  8916  	// NullFields is a list of field names (e.g. "Engines") to include in API
  8917  	// requests with the JSON null value. By default, fields with empty values are
  8918  	// omitted from API requests. See
  8919  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8920  	NullFields []string `json:"-"`
  8921  }
  8922  
  8923  func (s *GoogleCloudDiscoveryengineV1betaListEnginesResponse) MarshalJSON() ([]byte, error) {
  8924  	type NoMethod GoogleCloudDiscoveryengineV1betaListEnginesResponse
  8925  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8926  }
  8927  
  8928  // GoogleCloudDiscoveryengineV1betaListSchemasResponse: Response message for
  8929  // SchemaService.ListSchemas method.
  8930  type GoogleCloudDiscoveryengineV1betaListSchemasResponse struct {
  8931  	// NextPageToken: A token that can be sent as ListSchemasRequest.page_token to
  8932  	// retrieve the next page. If this field is omitted, there are no subsequent
  8933  	// pages.
  8934  	NextPageToken string `json:"nextPageToken,omitempty"`
  8935  	// Schemas: The Schemas.
  8936  	Schemas []*GoogleCloudDiscoveryengineV1betaSchema `json:"schemas,omitempty"`
  8937  
  8938  	// ServerResponse contains the HTTP response code and headers from the server.
  8939  	googleapi.ServerResponse `json:"-"`
  8940  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  8941  	// unconditionally include in API requests. By default, fields with empty or
  8942  	// default values are omitted from API requests. See
  8943  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8944  	// details.
  8945  	ForceSendFields []string `json:"-"`
  8946  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  8947  	// requests with the JSON null value. By default, fields with empty values are
  8948  	// omitted from API requests. See
  8949  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8950  	NullFields []string `json:"-"`
  8951  }
  8952  
  8953  func (s *GoogleCloudDiscoveryengineV1betaListSchemasResponse) MarshalJSON() ([]byte, error) {
  8954  	type NoMethod GoogleCloudDiscoveryengineV1betaListSchemasResponse
  8955  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8956  }
  8957  
  8958  // GoogleCloudDiscoveryengineV1betaListServingConfigsResponse: Response for
  8959  // ListServingConfigs method.
  8960  type GoogleCloudDiscoveryengineV1betaListServingConfigsResponse struct {
  8961  	// NextPageToken: Pagination token, if not returned indicates the last page.
  8962  	NextPageToken string `json:"nextPageToken,omitempty"`
  8963  	// ServingConfigs: All the ServingConfigs for a given dataStore.
  8964  	ServingConfigs []*GoogleCloudDiscoveryengineV1betaServingConfig `json:"servingConfigs,omitempty"`
  8965  
  8966  	// ServerResponse contains the HTTP response code and headers from the server.
  8967  	googleapi.ServerResponse `json:"-"`
  8968  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  8969  	// unconditionally include in API requests. By default, fields with empty or
  8970  	// default values are omitted from API requests. See
  8971  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  8972  	// details.
  8973  	ForceSendFields []string `json:"-"`
  8974  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  8975  	// requests with the JSON null value. By default, fields with empty values are
  8976  	// omitted from API requests. See
  8977  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  8978  	NullFields []string `json:"-"`
  8979  }
  8980  
  8981  func (s *GoogleCloudDiscoveryengineV1betaListServingConfigsResponse) MarshalJSON() ([]byte, error) {
  8982  	type NoMethod GoogleCloudDiscoveryengineV1betaListServingConfigsResponse
  8983  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  8984  }
  8985  
  8986  // GoogleCloudDiscoveryengineV1betaListSessionsResponse: Response for
  8987  // ListSessions method.
  8988  type GoogleCloudDiscoveryengineV1betaListSessionsResponse struct {
  8989  	// NextPageToken: Pagination token, if not returned indicates the last page.
  8990  	NextPageToken string `json:"nextPageToken,omitempty"`
  8991  	// Sessions: All the Sessions for a given data store.
  8992  	Sessions []*GoogleCloudDiscoveryengineV1betaSession `json:"sessions,omitempty"`
  8993  
  8994  	// ServerResponse contains the HTTP response code and headers from the server.
  8995  	googleapi.ServerResponse `json:"-"`
  8996  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  8997  	// unconditionally include in API requests. By default, fields with empty or
  8998  	// default values are omitted from API requests. See
  8999  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9000  	// details.
  9001  	ForceSendFields []string `json:"-"`
  9002  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  9003  	// requests with the JSON null value. By default, fields with empty values are
  9004  	// omitted from API requests. See
  9005  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9006  	NullFields []string `json:"-"`
  9007  }
  9008  
  9009  func (s *GoogleCloudDiscoveryengineV1betaListSessionsResponse) MarshalJSON() ([]byte, error) {
  9010  	type NoMethod GoogleCloudDiscoveryengineV1betaListSessionsResponse
  9011  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9012  }
  9013  
  9014  // GoogleCloudDiscoveryengineV1betaListTargetSitesResponse: Response message
  9015  // for SiteSearchEngineService.ListTargetSites method.
  9016  type GoogleCloudDiscoveryengineV1betaListTargetSitesResponse struct {
  9017  	// NextPageToken: A token that can be sent as `page_token` to retrieve the next
  9018  	// page. If this field is omitted, there are no subsequent pages.
  9019  	NextPageToken string `json:"nextPageToken,omitempty"`
  9020  	// TargetSites: List of TargetSites.
  9021  	TargetSites []*GoogleCloudDiscoveryengineV1betaTargetSite `json:"targetSites,omitempty"`
  9022  	// TotalSize: The total number of items matching the request. This will always
  9023  	// be populated in the response.
  9024  	TotalSize int64 `json:"totalSize,omitempty"`
  9025  
  9026  	// ServerResponse contains the HTTP response code and headers from the server.
  9027  	googleapi.ServerResponse `json:"-"`
  9028  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  9029  	// unconditionally include in API requests. By default, fields with empty or
  9030  	// default values are omitted from API requests. See
  9031  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9032  	// details.
  9033  	ForceSendFields []string `json:"-"`
  9034  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  9035  	// requests with the JSON null value. By default, fields with empty values are
  9036  	// omitted from API requests. See
  9037  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9038  	NullFields []string `json:"-"`
  9039  }
  9040  
  9041  func (s *GoogleCloudDiscoveryengineV1betaListTargetSitesResponse) MarshalJSON() ([]byte, error) {
  9042  	type NoMethod GoogleCloudDiscoveryengineV1betaListTargetSitesResponse
  9043  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9044  }
  9045  
  9046  // GoogleCloudDiscoveryengineV1betaMediaInfo: Media-specific user event
  9047  // information.
  9048  type GoogleCloudDiscoveryengineV1betaMediaInfo struct {
  9049  	// MediaProgressDuration: The media progress time in seconds, if applicable.
  9050  	// For example, if the end user has finished 90 seconds of a playback video,
  9051  	// then MediaInfo.media_progress_duration.seconds should be set to 90.
  9052  	MediaProgressDuration string `json:"mediaProgressDuration,omitempty"`
  9053  	// MediaProgressPercentage: Media progress should be computed using only the
  9054  	// media_progress_duration relative to the media total length. This value must
  9055  	// be between `[0, 1.0]` inclusive. If this is not a playback or the progress
  9056  	// cannot be computed (e.g. ongoing livestream), this field should be unset.
  9057  	MediaProgressPercentage float64 `json:"mediaProgressPercentage,omitempty"`
  9058  	// ForceSendFields is a list of field names (e.g. "MediaProgressDuration") to
  9059  	// unconditionally include in API requests. By default, fields with empty or
  9060  	// default values are omitted from API requests. See
  9061  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9062  	// details.
  9063  	ForceSendFields []string `json:"-"`
  9064  	// NullFields is a list of field names (e.g. "MediaProgressDuration") to
  9065  	// include in API requests with the JSON null value. By default, fields with
  9066  	// empty values are omitted from API requests. See
  9067  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9068  	NullFields []string `json:"-"`
  9069  }
  9070  
  9071  func (s *GoogleCloudDiscoveryengineV1betaMediaInfo) MarshalJSON() ([]byte, error) {
  9072  	type NoMethod GoogleCloudDiscoveryengineV1betaMediaInfo
  9073  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9074  }
  9075  
  9076  func (s *GoogleCloudDiscoveryengineV1betaMediaInfo) UnmarshalJSON(data []byte) error {
  9077  	type NoMethod GoogleCloudDiscoveryengineV1betaMediaInfo
  9078  	var s1 struct {
  9079  		MediaProgressPercentage gensupport.JSONFloat64 `json:"mediaProgressPercentage"`
  9080  		*NoMethod
  9081  	}
  9082  	s1.NoMethod = (*NoMethod)(s)
  9083  	if err := json.Unmarshal(data, &s1); err != nil {
  9084  		return err
  9085  	}
  9086  	s.MediaProgressPercentage = float64(s1.MediaProgressPercentage)
  9087  	return nil
  9088  }
  9089  
  9090  // GoogleCloudDiscoveryengineV1betaPageInfo: Detailed page information.
  9091  type GoogleCloudDiscoveryengineV1betaPageInfo struct {
  9092  	// PageCategory: The most specific category associated with a category page. To
  9093  	// represent full path of category, use '>' sign to separate different
  9094  	// hierarchies. If '>' is part of the category name, replace it with other
  9095  	// character(s). Category pages include special pages such as sales or
  9096  	// promotions. For instance, a special sale page may have the category
  9097  	// hierarchy: "pageCategory" : "Sales > 2017 Black Friday Deals". Required
  9098  	// for `view-category-page` events. Other event types should not set this
  9099  	// field. Otherwise, an `INVALID_ARGUMENT` error is returned.
  9100  	PageCategory string `json:"pageCategory,omitempty"`
  9101  	// PageviewId: A unique ID of a web page view. This should be kept the same for
  9102  	// all user events triggered from the same pageview. For example, an item
  9103  	// detail page view could trigger multiple events as the user is browsing the
  9104  	// page. The `pageview_id` property should be kept the same for all these
  9105  	// events so that they can be grouped together properly. When using the client
  9106  	// side event reporting with JavaScript pixel and Google Tag Manager, this
  9107  	// value is filled in automatically.
  9108  	PageviewId string `json:"pageviewId,omitempty"`
  9109  	// ReferrerUri: The referrer URL of the current page. When using the client
  9110  	// side event reporting with JavaScript pixel and Google Tag Manager, this
  9111  	// value is filled in automatically. However, some browser privacy restrictions
  9112  	// may cause this field to be empty.
  9113  	ReferrerUri string `json:"referrerUri,omitempty"`
  9114  	// Uri: Complete URL (window.location.href) of the user's current page. When
  9115  	// using the client side event reporting with JavaScript pixel and Google Tag
  9116  	// Manager, this value is filled in automatically. Maximum length 5,000
  9117  	// characters.
  9118  	Uri string `json:"uri,omitempty"`
  9119  	// ForceSendFields is a list of field names (e.g. "PageCategory") to
  9120  	// unconditionally include in API requests. By default, fields with empty or
  9121  	// default values are omitted from API requests. See
  9122  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9123  	// details.
  9124  	ForceSendFields []string `json:"-"`
  9125  	// NullFields is a list of field names (e.g. "PageCategory") to include in API
  9126  	// requests with the JSON null value. By default, fields with empty values are
  9127  	// omitted from API requests. See
  9128  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9129  	NullFields []string `json:"-"`
  9130  }
  9131  
  9132  func (s *GoogleCloudDiscoveryengineV1betaPageInfo) MarshalJSON() ([]byte, error) {
  9133  	type NoMethod GoogleCloudDiscoveryengineV1betaPageInfo
  9134  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9135  }
  9136  
  9137  // GoogleCloudDiscoveryengineV1betaPanelInfo: Detailed panel information
  9138  // associated with a user event.
  9139  type GoogleCloudDiscoveryengineV1betaPanelInfo struct {
  9140  	// DisplayName: The display name of the panel.
  9141  	DisplayName string `json:"displayName,omitempty"`
  9142  	// PanelId: Required. The panel ID.
  9143  	PanelId string `json:"panelId,omitempty"`
  9144  	// PanelPosition: The ordered position of the panel, if shown to the user with
  9145  	// other panels. If set, then total_panels must also be set.
  9146  	PanelPosition int64 `json:"panelPosition,omitempty"`
  9147  	// TotalPanels: The total number of panels, including this one, shown to the
  9148  	// user. Must be set if panel_position is set.
  9149  	TotalPanels int64 `json:"totalPanels,omitempty"`
  9150  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  9151  	// unconditionally include in API requests. By default, fields with empty or
  9152  	// default values are omitted from API requests. See
  9153  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9154  	// details.
  9155  	ForceSendFields []string `json:"-"`
  9156  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  9157  	// requests with the JSON null value. By default, fields with empty values are
  9158  	// omitted from API requests. See
  9159  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9160  	NullFields []string `json:"-"`
  9161  }
  9162  
  9163  func (s *GoogleCloudDiscoveryengineV1betaPanelInfo) MarshalJSON() ([]byte, error) {
  9164  	type NoMethod GoogleCloudDiscoveryengineV1betaPanelInfo
  9165  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9166  }
  9167  
  9168  // GoogleCloudDiscoveryengineV1betaPauseEngineRequest: Request for pausing
  9169  // training of an engine.
  9170  type GoogleCloudDiscoveryengineV1betaPauseEngineRequest struct {
  9171  }
  9172  
  9173  // GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata: Metadata related to
  9174  // the progress of the PurgeDocuments operation. This will be returned by the
  9175  // google.longrunning.Operation.metadata field.
  9176  type GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata struct {
  9177  	// CreateTime: Operation create time.
  9178  	CreateTime string `json:"createTime,omitempty"`
  9179  	// FailureCount: Count of entries that encountered errors while processing.
  9180  	FailureCount int64 `json:"failureCount,omitempty,string"`
  9181  	// IgnoredCount: Count of entries that were ignored as entries were not found.
  9182  	IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
  9183  	// SuccessCount: Count of entries that were deleted successfully.
  9184  	SuccessCount int64 `json:"successCount,omitempty,string"`
  9185  	// UpdateTime: Operation last update time. If the operation is done, this is
  9186  	// also the finish time.
  9187  	UpdateTime string `json:"updateTime,omitempty"`
  9188  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  9189  	// unconditionally include in API requests. By default, fields with empty or
  9190  	// default values are omitted from API requests. See
  9191  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9192  	// details.
  9193  	ForceSendFields []string `json:"-"`
  9194  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  9195  	// requests with the JSON null value. By default, fields with empty values are
  9196  	// omitted from API requests. See
  9197  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9198  	NullFields []string `json:"-"`
  9199  }
  9200  
  9201  func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
  9202  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
  9203  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9204  }
  9205  
  9206  // GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest: Request message for
  9207  // DocumentService.PurgeDocuments method.
  9208  type GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest struct {
  9209  	// Filter: Required. Filter matching documents to purge. Only currently
  9210  	// supported value is `*` (all items).
  9211  	Filter string `json:"filter,omitempty"`
  9212  	// Force: Actually performs the purge. If `force` is set to false, return the
  9213  	// expected purge count without deleting any documents.
  9214  	Force bool `json:"force,omitempty"`
  9215  	// ForceSendFields is a list of field names (e.g. "Filter") to unconditionally
  9216  	// include in API requests. By default, fields with empty or default values are
  9217  	// omitted from API requests. See
  9218  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9219  	// details.
  9220  	ForceSendFields []string `json:"-"`
  9221  	// NullFields is a list of field names (e.g. "Filter") to include in API
  9222  	// requests with the JSON null value. By default, fields with empty values are
  9223  	// omitted from API requests. See
  9224  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9225  	NullFields []string `json:"-"`
  9226  }
  9227  
  9228  func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest) MarshalJSON() ([]byte, error) {
  9229  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest
  9230  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9231  }
  9232  
  9233  // GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse: Response message for
  9234  // DocumentService.PurgeDocuments method. If the long running operation is
  9235  // successfully done, then this message is returned by the
  9236  // google.longrunning.Operations.response field.
  9237  type GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse struct {
  9238  	// PurgeCount: The total count of documents purged as a result of the
  9239  	// operation.
  9240  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  9241  	// PurgeSample: A sample of document names that will be deleted. Only populated
  9242  	// if `force` is set to false. A max of 100 names will be returned and the
  9243  	// names are chosen at random.
  9244  	PurgeSample []string `json:"purgeSample,omitempty"`
  9245  	// ForceSendFields is a list of field names (e.g. "PurgeCount") to
  9246  	// unconditionally include in API requests. By default, fields with empty or
  9247  	// default values are omitted from API requests. See
  9248  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9249  	// details.
  9250  	ForceSendFields []string `json:"-"`
  9251  	// NullFields is a list of field names (e.g. "PurgeCount") to include in API
  9252  	// requests with the JSON null value. By default, fields with empty values are
  9253  	// omitted from API requests. See
  9254  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9255  	NullFields []string `json:"-"`
  9256  }
  9257  
  9258  func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
  9259  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse
  9260  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9261  }
  9262  
  9263  // GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata:
  9264  // Metadata related to the progress of the PurgeSuggestionDenyListEntries
  9265  // operation. This is returned by the google.longrunning.Operation.metadata
  9266  // field.
  9267  type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata struct {
  9268  	// CreateTime: Operation create time.
  9269  	CreateTime string `json:"createTime,omitempty"`
  9270  	// UpdateTime: Operation last update time. If the operation is done, this is
  9271  	// also the finish time.
  9272  	UpdateTime string `json:"updateTime,omitempty"`
  9273  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  9274  	// unconditionally include in API requests. By default, fields with empty or
  9275  	// default values are omitted from API requests. See
  9276  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9277  	// details.
  9278  	ForceSendFields []string `json:"-"`
  9279  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  9280  	// requests with the JSON null value. By default, fields with empty values are
  9281  	// omitted from API requests. See
  9282  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9283  	NullFields []string `json:"-"`
  9284  }
  9285  
  9286  func (s *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
  9287  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata
  9288  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9289  }
  9290  
  9291  // GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesRequest:
  9292  // Request message for CompletionService.PurgeSuggestionDenyListEntries method.
  9293  type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesRequest struct {
  9294  }
  9295  
  9296  // GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse:
  9297  // Response message for CompletionService.PurgeSuggestionDenyListEntries
  9298  // method.
  9299  type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse struct {
  9300  	// ErrorSamples: A sample of errors encountered while processing the request.
  9301  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
  9302  	// PurgeCount: Number of suggestion deny list entries purged.
  9303  	PurgeCount int64 `json:"purgeCount,omitempty,string"`
  9304  	// ForceSendFields is a list of field names (e.g. "ErrorSamples") to
  9305  	// unconditionally include in API requests. By default, fields with empty or
  9306  	// default values are omitted from API requests. See
  9307  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9308  	// details.
  9309  	ForceSendFields []string `json:"-"`
  9310  	// NullFields is a list of field names (e.g. "ErrorSamples") to include in API
  9311  	// requests with the JSON null value. By default, fields with empty values are
  9312  	// omitted from API requests. See
  9313  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9314  	NullFields []string `json:"-"`
  9315  }
  9316  
  9317  func (s *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
  9318  	type NoMethod GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse
  9319  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9320  }
  9321  
  9322  // GoogleCloudDiscoveryengineV1betaQuery: Defines a user inputed query.
  9323  type GoogleCloudDiscoveryengineV1betaQuery struct {
  9324  	// QueryId: Unique Id for the query.
  9325  	QueryId string `json:"queryId,omitempty"`
  9326  	// Text: Plain text.
  9327  	Text string `json:"text,omitempty"`
  9328  	// ForceSendFields is a list of field names (e.g. "QueryId") to unconditionally
  9329  	// include in API requests. By default, fields with empty or default values are
  9330  	// omitted from API requests. See
  9331  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9332  	// details.
  9333  	ForceSendFields []string `json:"-"`
  9334  	// NullFields is a list of field names (e.g. "QueryId") to include in API
  9335  	// requests with the JSON null value. By default, fields with empty values are
  9336  	// omitted from API requests. See
  9337  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9338  	NullFields []string `json:"-"`
  9339  }
  9340  
  9341  func (s *GoogleCloudDiscoveryengineV1betaQuery) MarshalJSON() ([]byte, error) {
  9342  	type NoMethod GoogleCloudDiscoveryengineV1betaQuery
  9343  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9344  }
  9345  
  9346  // GoogleCloudDiscoveryengineV1betaRankRequest: Request message for
  9347  // RankService.Rank method.
  9348  type GoogleCloudDiscoveryengineV1betaRankRequest struct {
  9349  	// IgnoreRecordDetailsInResponse: If true, the response will contain only
  9350  	// record ID and score. By default, it is false, the response will contain
  9351  	// record details.
  9352  	IgnoreRecordDetailsInResponse bool `json:"ignoreRecordDetailsInResponse,omitempty"`
  9353  	// Model: The identifier of the model to use. It is one of: *
  9354  	// `semantic-ranker-512@latest`: Semantic ranking model with maxiumn input
  9355  	// token size 512. It is set to `semantic-ranker-512@latest` by default if
  9356  	// unspecified.
  9357  	Model string `json:"model,omitempty"`
  9358  	// Query: The query to use.
  9359  	Query string `json:"query,omitempty"`
  9360  	// Records: Required. A list of records to rank. At most 200 records to rank.
  9361  	Records []*GoogleCloudDiscoveryengineV1betaRankingRecord `json:"records,omitempty"`
  9362  	// TopN: The number of results to return. If this is unset or no bigger than
  9363  	// zero, returns all results.
  9364  	TopN int64 `json:"topN,omitempty"`
  9365  	// ForceSendFields is a list of field names (e.g.
  9366  	// "IgnoreRecordDetailsInResponse") to unconditionally include in API requests.
  9367  	// By default, fields with empty or default values are omitted from API
  9368  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  9369  	// for more details.
  9370  	ForceSendFields []string `json:"-"`
  9371  	// NullFields is a list of field names (e.g. "IgnoreRecordDetailsInResponse")
  9372  	// to include in API requests with the JSON null value. By default, fields with
  9373  	// empty values are omitted from API requests. See
  9374  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9375  	NullFields []string `json:"-"`
  9376  }
  9377  
  9378  func (s *GoogleCloudDiscoveryengineV1betaRankRequest) MarshalJSON() ([]byte, error) {
  9379  	type NoMethod GoogleCloudDiscoveryengineV1betaRankRequest
  9380  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9381  }
  9382  
  9383  // GoogleCloudDiscoveryengineV1betaRankResponse: Response message for
  9384  // RankService.Rank method.
  9385  type GoogleCloudDiscoveryengineV1betaRankResponse struct {
  9386  	// Records: A list of records sorted by descending score.
  9387  	Records []*GoogleCloudDiscoveryengineV1betaRankingRecord `json:"records,omitempty"`
  9388  
  9389  	// ServerResponse contains the HTTP response code and headers from the server.
  9390  	googleapi.ServerResponse `json:"-"`
  9391  	// ForceSendFields is a list of field names (e.g. "Records") to unconditionally
  9392  	// include in API requests. By default, fields with empty or default values are
  9393  	// omitted from API requests. See
  9394  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9395  	// details.
  9396  	ForceSendFields []string `json:"-"`
  9397  	// NullFields is a list of field names (e.g. "Records") to include in API
  9398  	// requests with the JSON null value. By default, fields with empty values are
  9399  	// omitted from API requests. See
  9400  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9401  	NullFields []string `json:"-"`
  9402  }
  9403  
  9404  func (s *GoogleCloudDiscoveryengineV1betaRankResponse) MarshalJSON() ([]byte, error) {
  9405  	type NoMethod GoogleCloudDiscoveryengineV1betaRankResponse
  9406  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9407  }
  9408  
  9409  // GoogleCloudDiscoveryengineV1betaRankingRecord: Record message for
  9410  // RankService.Rank method.
  9411  type GoogleCloudDiscoveryengineV1betaRankingRecord struct {
  9412  	// Content: The content of the record. Empty by default. At least one of title
  9413  	// or content should be set otherwise an INVALID_ARGUMENT error is thrown.
  9414  	Content string `json:"content,omitempty"`
  9415  	// Id: The unique ID to represent the record.
  9416  	Id string `json:"id,omitempty"`
  9417  	// Score: The score of this record based on the given query and selected model.
  9418  	Score float64 `json:"score,omitempty"`
  9419  	// Title: The title of the record. Empty by default. At least one of title or
  9420  	// content should be set otherwise an INVALID_ARGUMENT error is thrown.
  9421  	Title string `json:"title,omitempty"`
  9422  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
  9423  	// include in API requests. By default, fields with empty or default values are
  9424  	// omitted from API requests. See
  9425  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9426  	// details.
  9427  	ForceSendFields []string `json:"-"`
  9428  	// NullFields is a list of field names (e.g. "Content") to include in API
  9429  	// requests with the JSON null value. By default, fields with empty values are
  9430  	// omitted from API requests. See
  9431  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9432  	NullFields []string `json:"-"`
  9433  }
  9434  
  9435  func (s *GoogleCloudDiscoveryengineV1betaRankingRecord) MarshalJSON() ([]byte, error) {
  9436  	type NoMethod GoogleCloudDiscoveryengineV1betaRankingRecord
  9437  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9438  }
  9439  
  9440  func (s *GoogleCloudDiscoveryengineV1betaRankingRecord) UnmarshalJSON(data []byte) error {
  9441  	type NoMethod GoogleCloudDiscoveryengineV1betaRankingRecord
  9442  	var s1 struct {
  9443  		Score gensupport.JSONFloat64 `json:"score"`
  9444  		*NoMethod
  9445  	}
  9446  	s1.NoMethod = (*NoMethod)(s)
  9447  	if err := json.Unmarshal(data, &s1); err != nil {
  9448  		return err
  9449  	}
  9450  	s.Score = float64(s1.Score)
  9451  	return nil
  9452  }
  9453  
  9454  // GoogleCloudDiscoveryengineV1betaRecommendRequest: Request message for
  9455  // Recommend method.
  9456  type GoogleCloudDiscoveryengineV1betaRecommendRequest struct {
  9457  	// Filter: Filter for restricting recommendation results with a length limit of
  9458  	// 5,000 characters. Currently, only filter expressions on the `filter_tags`
  9459  	// attribute is supported. Examples: * `(filter_tags: ANY("Red", "Blue") OR
  9460  	// filter_tags: ANY("Hot", "Cold"))` * `(filter_tags: ANY("Red", "Blue")) AND
  9461  	// NOT (filter_tags: ANY("Green"))` If `attributeFilteringSyntax` is set to
  9462  	// true under the `params` field, then attribute-based expressions are expected
  9463  	// instead of the above described tag-based syntax. Examples: * (launguage:
  9464  	// ANY("en", "es")) AND NOT (categories: ANY("Movie")) * (available: true) AND
  9465  	// (launguage: ANY("en", "es")) OR (categories: ANY("Movie")) If your filter
  9466  	// blocks all results, the API will return generic (unfiltered) popular
  9467  	// Documents. If you only want results strictly matching the filters, set
  9468  	// `strictFiltering` to True in RecommendRequest.params to receive empty
  9469  	// results instead. Note that the API will never return Documents with
  9470  	// `storageStatus` of `EXPIRED` or `DELETED` regardless of filter choices.
  9471  	Filter string `json:"filter,omitempty"`
  9472  	// PageSize: Maximum number of results to return. Set this property to the
  9473  	// number of recommendation results needed. If zero, the service will choose a
  9474  	// reasonable default. The maximum allowed value is 100. Values above 100 will
  9475  	// be coerced to 100.
  9476  	PageSize int64 `json:"pageSize,omitempty"`
  9477  	// Params: Additional domain specific parameters for the recommendations.
  9478  	// Allowed values: * `returnDocument`: Boolean. If set to true, the associated
  9479  	// Document object will be returned in
  9480  	// RecommendResponse.RecommendationResult.document. * `returnScore`: Boolean.
  9481  	// If set to true, the recommendation 'score' corresponding to each returned
  9482  	// Document will be set in RecommendResponse.RecommendationResult.metadata. The
  9483  	// given 'score' indicates the probability of a Document conversion given the
  9484  	// user's context and history. * `strictFiltering`: Boolean. True by default.
  9485  	// If set to false, the service will return generic (unfiltered) popular
  9486  	// Documents instead of empty if your filter blocks all recommendation results.
  9487  	// * `diversityLevel`: String. Default empty. If set to be non-empty, then it
  9488  	// needs to be one of: * `no-diversity` * `low-diversity` * `medium-diversity`
  9489  	// * `high-diversity` * `auto-diversity` This gives request-level control and
  9490  	// adjusts recommendation results based on Document category. *
  9491  	// `attributeFilteringSyntax`: Boolean. False by default. If set to true, the
  9492  	// `filter` field is interpreted according to the new, attribute-based syntax.
  9493  	Params googleapi.RawMessage `json:"params,omitempty"`
  9494  	// UserEvent: Required. Context about the user, what they are looking at and
  9495  	// what action they took to trigger the Recommend request. Note that this user
  9496  	// event detail won't be ingested to userEvent logs. Thus, a separate userEvent
  9497  	// write request is required for event logging. Don't set
  9498  	// UserEvent.user_pseudo_id or UserEvent.user_info.user_id to the same fixed ID
  9499  	// for different users. If you are trying to receive non-personalized
  9500  	// recommendations (not recommended; this can negatively impact model
  9501  	// performance), instead set UserEvent.user_pseudo_id to a random unique ID and
  9502  	// leave UserEvent.user_info.user_id unset.
  9503  	UserEvent *GoogleCloudDiscoveryengineV1betaUserEvent `json:"userEvent,omitempty"`
  9504  	// UserLabels: The user labels applied to a resource must meet the following
  9505  	// requirements: * Each resource can have multiple labels, up to a maximum of
  9506  	// 64. * Each label must be a key-value pair. * Keys have a minimum length of 1
  9507  	// character and a maximum length of 63 characters and cannot be empty. Values
  9508  	// can be empty and have a maximum length of 63 characters. * Keys and values
  9509  	// can contain only lowercase letters, numeric characters, underscores, and
  9510  	// dashes. All characters must use UTF-8 encoding, and international characters
  9511  	// are allowed. * The key portion of a label must be unique. However, you can
  9512  	// use the same key with multiple resources. * Keys must start with a lowercase
  9513  	// letter or international character. See Requirements for labels
  9514  	// (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  9515  	// for more details.
  9516  	UserLabels map[string]string `json:"userLabels,omitempty"`
  9517  	// ValidateOnly: Use validate only mode for this recommendation query. If set
  9518  	// to true, a fake model will be used that returns arbitrary Document IDs. Note
  9519  	// that the validate only mode should only be used for testing the API, or if
  9520  	// the model is not ready.
  9521  	ValidateOnly bool `json:"validateOnly,omitempty"`
  9522  	// ForceSendFields is a list of field names (e.g. "Filter") to unconditionally
  9523  	// include in API requests. By default, fields with empty or default values are
  9524  	// omitted from API requests. See
  9525  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9526  	// details.
  9527  	ForceSendFields []string `json:"-"`
  9528  	// NullFields is a list of field names (e.g. "Filter") to include in API
  9529  	// requests with the JSON null value. By default, fields with empty values are
  9530  	// omitted from API requests. See
  9531  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9532  	NullFields []string `json:"-"`
  9533  }
  9534  
  9535  func (s *GoogleCloudDiscoveryengineV1betaRecommendRequest) MarshalJSON() ([]byte, error) {
  9536  	type NoMethod GoogleCloudDiscoveryengineV1betaRecommendRequest
  9537  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9538  }
  9539  
  9540  // GoogleCloudDiscoveryengineV1betaRecommendResponse: Response message for
  9541  // Recommend method.
  9542  type GoogleCloudDiscoveryengineV1betaRecommendResponse struct {
  9543  	// AttributionToken: A unique attribution token. This should be included in the
  9544  	// UserEvent logs resulting from this recommendation, which enables accurate
  9545  	// attribution of recommendation model performance.
  9546  	AttributionToken string `json:"attributionToken,omitempty"`
  9547  	// MissingIds: IDs of documents in the request that were missing from the
  9548  	// default Branch associated with the requested ServingConfig.
  9549  	MissingIds []string `json:"missingIds,omitempty"`
  9550  	// Results: A list of recommended Documents. The order represents the ranking
  9551  	// (from the most relevant Document to the least).
  9552  	Results []*GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult `json:"results,omitempty"`
  9553  	// ValidateOnly: True if RecommendRequest.validate_only was set.
  9554  	ValidateOnly bool `json:"validateOnly,omitempty"`
  9555  
  9556  	// ServerResponse contains the HTTP response code and headers from the server.
  9557  	googleapi.ServerResponse `json:"-"`
  9558  	// ForceSendFields is a list of field names (e.g. "AttributionToken") to
  9559  	// unconditionally include in API requests. By default, fields with empty or
  9560  	// default values are omitted from API requests. See
  9561  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9562  	// details.
  9563  	ForceSendFields []string `json:"-"`
  9564  	// NullFields is a list of field names (e.g. "AttributionToken") to include in
  9565  	// API requests with the JSON null value. By default, fields with empty values
  9566  	// are omitted from API requests. See
  9567  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9568  	NullFields []string `json:"-"`
  9569  }
  9570  
  9571  func (s *GoogleCloudDiscoveryengineV1betaRecommendResponse) MarshalJSON() ([]byte, error) {
  9572  	type NoMethod GoogleCloudDiscoveryengineV1betaRecommendResponse
  9573  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9574  }
  9575  
  9576  // GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult:
  9577  // RecommendationResult represents a generic recommendation result with
  9578  // associated metadata.
  9579  type GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult struct {
  9580  	// Document: Set if `returnDocument` is set to true in RecommendRequest.params.
  9581  	Document *GoogleCloudDiscoveryengineV1betaDocument `json:"document,omitempty"`
  9582  	// Id: Resource ID of the recommended Document.
  9583  	Id string `json:"id,omitempty"`
  9584  	// Metadata: Additional Document metadata / annotations. Possible values: *
  9585  	// `score`: Recommendation score in double value. Is set if `returnScore` is
  9586  	// set to true in RecommendRequest.params.
  9587  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  9588  	// ForceSendFields is a list of field names (e.g. "Document") to
  9589  	// unconditionally include in API requests. By default, fields with empty or
  9590  	// default values are omitted from API requests. See
  9591  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9592  	// details.
  9593  	ForceSendFields []string `json:"-"`
  9594  	// NullFields is a list of field names (e.g. "Document") to include in API
  9595  	// requests with the JSON null value. By default, fields with empty values are
  9596  	// omitted from API requests. See
  9597  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9598  	NullFields []string `json:"-"`
  9599  }
  9600  
  9601  func (s *GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult) MarshalJSON() ([]byte, error) {
  9602  	type NoMethod GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult
  9603  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9604  }
  9605  
  9606  // GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest: Request message for
  9607  // SiteSearchEngineService.RecrawlUris method.
  9608  type GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest struct {
  9609  	// Uris: Required. List of URIs to crawl. At most 10K URIs are supported,
  9610  	// otherwise an INVALID_ARGUMENT error is thrown. Each URI should match at
  9611  	// least one TargetSite in `site_search_engine`.
  9612  	Uris []string `json:"uris,omitempty"`
  9613  	// ForceSendFields is a list of field names (e.g. "Uris") to unconditionally
  9614  	// include in API requests. By default, fields with empty or default values are
  9615  	// omitted from API requests. See
  9616  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9617  	// details.
  9618  	ForceSendFields []string `json:"-"`
  9619  	// NullFields is a list of field names (e.g. "Uris") to include in API requests
  9620  	// with the JSON null value. By default, fields with empty values are omitted
  9621  	// from API requests. See
  9622  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9623  	NullFields []string `json:"-"`
  9624  }
  9625  
  9626  func (s *GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest) MarshalJSON() ([]byte, error) {
  9627  	type NoMethod GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest
  9628  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9629  }
  9630  
  9631  // GoogleCloudDiscoveryengineV1betaReply: Defines a reply message to user.
  9632  type GoogleCloudDiscoveryengineV1betaReply struct {
  9633  	// References: References in the reply.
  9634  	References []*GoogleCloudDiscoveryengineV1betaReplyReference `json:"references,omitempty"`
  9635  	// Reply: DEPRECATED: use `summary` instead. Text reply.
  9636  	Reply string `json:"reply,omitempty"`
  9637  	// Summary: Summary based on search results.
  9638  	Summary *GoogleCloudDiscoveryengineV1betaSearchResponseSummary `json:"summary,omitempty"`
  9639  	// ForceSendFields is a list of field names (e.g. "References") to
  9640  	// unconditionally include in API requests. By default, fields with empty or
  9641  	// default values are omitted from API requests. See
  9642  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9643  	// details.
  9644  	ForceSendFields []string `json:"-"`
  9645  	// NullFields is a list of field names (e.g. "References") to include in API
  9646  	// requests with the JSON null value. By default, fields with empty values are
  9647  	// omitted from API requests. See
  9648  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9649  	NullFields []string `json:"-"`
  9650  }
  9651  
  9652  func (s *GoogleCloudDiscoveryengineV1betaReply) MarshalJSON() ([]byte, error) {
  9653  	type NoMethod GoogleCloudDiscoveryengineV1betaReply
  9654  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9655  }
  9656  
  9657  // GoogleCloudDiscoveryengineV1betaReplyReference: Defines reference in reply.
  9658  type GoogleCloudDiscoveryengineV1betaReplyReference struct {
  9659  	// AnchorText: Anchor text.
  9660  	AnchorText string `json:"anchorText,omitempty"`
  9661  	// End: Anchor text end index.
  9662  	End int64 `json:"end,omitempty"`
  9663  	// Start: Anchor text start index.
  9664  	Start int64 `json:"start,omitempty"`
  9665  	// Uri: URI link reference.
  9666  	Uri string `json:"uri,omitempty"`
  9667  	// ForceSendFields is a list of field names (e.g. "AnchorText") to
  9668  	// unconditionally include in API requests. By default, fields with empty or
  9669  	// default values are omitted from API requests. See
  9670  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9671  	// details.
  9672  	ForceSendFields []string `json:"-"`
  9673  	// NullFields is a list of field names (e.g. "AnchorText") to include in API
  9674  	// requests with the JSON null value. By default, fields with empty values are
  9675  	// omitted from API requests. See
  9676  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9677  	NullFields []string `json:"-"`
  9678  }
  9679  
  9680  func (s *GoogleCloudDiscoveryengineV1betaReplyReference) MarshalJSON() ([]byte, error) {
  9681  	type NoMethod GoogleCloudDiscoveryengineV1betaReplyReference
  9682  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9683  }
  9684  
  9685  // GoogleCloudDiscoveryengineV1betaResumeEngineRequest: Request for resuming
  9686  // training of an engine.
  9687  type GoogleCloudDiscoveryengineV1betaResumeEngineRequest struct {
  9688  }
  9689  
  9690  // GoogleCloudDiscoveryengineV1betaSchema: Defines the structure and layout of
  9691  // a type of document data.
  9692  type GoogleCloudDiscoveryengineV1betaSchema struct {
  9693  	// JsonSchema: The JSON representation of the schema.
  9694  	JsonSchema string `json:"jsonSchema,omitempty"`
  9695  	// Name: Immutable. The full resource name of the schema, in the format of
  9696  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
  9697  	// {data_store}/schemas/{schema}`. This field must be a UTF-8 encoded string
  9698  	// with a length limit of 1024 characters.
  9699  	Name string `json:"name,omitempty"`
  9700  	// StructSchema: The structured representation of the schema.
  9701  	StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
  9702  
  9703  	// ServerResponse contains the HTTP response code and headers from the server.
  9704  	googleapi.ServerResponse `json:"-"`
  9705  	// ForceSendFields is a list of field names (e.g. "JsonSchema") to
  9706  	// unconditionally include in API requests. By default, fields with empty or
  9707  	// default values are omitted from API requests. See
  9708  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9709  	// details.
  9710  	ForceSendFields []string `json:"-"`
  9711  	// NullFields is a list of field names (e.g. "JsonSchema") to include in API
  9712  	// requests with the JSON null value. By default, fields with empty values are
  9713  	// omitted from API requests. See
  9714  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9715  	NullFields []string `json:"-"`
  9716  }
  9717  
  9718  func (s *GoogleCloudDiscoveryengineV1betaSchema) MarshalJSON() ([]byte, error) {
  9719  	type NoMethod GoogleCloudDiscoveryengineV1betaSchema
  9720  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9721  }
  9722  
  9723  // GoogleCloudDiscoveryengineV1betaSearchInfo: Detailed search information.
  9724  type GoogleCloudDiscoveryengineV1betaSearchInfo struct {
  9725  	// Offset: An integer that specifies the current offset for pagination (the
  9726  	// 0-indexed starting location, amongst the products deemed by the API as
  9727  	// relevant). See SearchRequest.offset for definition. If this field is
  9728  	// negative, an `INVALID_ARGUMENT` is returned. This can only be set for
  9729  	// `search` events. Other event types should not set this field. Otherwise, an
  9730  	// `INVALID_ARGUMENT` error is returned.
  9731  	Offset int64 `json:"offset,omitempty"`
  9732  	// OrderBy: The order in which products are returned, if applicable. See
  9733  	// SearchRequest.order_by for definition and syntax. The value must be a UTF-8
  9734  	// encoded string with a length limit of 1,000 characters. Otherwise, an
  9735  	// `INVALID_ARGUMENT` error is returned. This can only be set for `search`
  9736  	// events. Other event types should not set this field. Otherwise, an
  9737  	// `INVALID_ARGUMENT` error is returned.
  9738  	OrderBy string `json:"orderBy,omitempty"`
  9739  	// SearchQuery: The user's search query. See SearchRequest.query for
  9740  	// definition. The value must be a UTF-8 encoded string with a length limit of
  9741  	// 5,000 characters. Otherwise, an `INVALID_ARGUMENT` error is returned. At
  9742  	// least one of search_query or PageInfo.page_category is required for `search`
  9743  	// events. Other event types should not set this field. Otherwise, an
  9744  	// `INVALID_ARGUMENT` error is returned.
  9745  	SearchQuery string `json:"searchQuery,omitempty"`
  9746  	// ForceSendFields is a list of field names (e.g. "Offset") to unconditionally
  9747  	// include in API requests. By default, fields with empty or default values are
  9748  	// omitted from API requests. See
  9749  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9750  	// details.
  9751  	ForceSendFields []string `json:"-"`
  9752  	// NullFields is a list of field names (e.g. "Offset") to include in API
  9753  	// requests with the JSON null value. By default, fields with empty values are
  9754  	// omitted from API requests. See
  9755  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9756  	NullFields []string `json:"-"`
  9757  }
  9758  
  9759  func (s *GoogleCloudDiscoveryengineV1betaSearchInfo) MarshalJSON() ([]byte, error) {
  9760  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchInfo
  9761  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9762  }
  9763  
  9764  // GoogleCloudDiscoveryengineV1betaSearchRequest: Request message for
  9765  // SearchService.Search method.
  9766  type GoogleCloudDiscoveryengineV1betaSearchRequest struct {
  9767  	// BoostSpec: Boost specification to boost certain documents. For more
  9768  	// information on boosting, see Boosting
  9769  	// (https://cloud.google.com/retail/docs/boosting#boost)
  9770  	BoostSpec *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec `json:"boostSpec,omitempty"`
  9771  	// Branch: The branch resource name, such as
  9772  	// `projects/*/locations/global/collections/default_collection/dataStores/defaul
  9773  	// t_data_store/branches/0`. Use `default_branch` as the branch ID or leave
  9774  	// this field empty, to search documents under the default branch.
  9775  	Branch string `json:"branch,omitempty"`
  9776  	// CanonicalFilter: The default filter that is applied when a user performs a
  9777  	// search without checking any filters on the search page. The filter applied
  9778  	// to every search request when quality improvement such as query expansion is
  9779  	// needed. In the case a query does not have a sufficient amount of results
  9780  	// this filter will be used to determine whether or not to enable the query
  9781  	// expansion flow. The original filter will still be used for the query
  9782  	// expanded search. This field is strongly recommended to achieve high search
  9783  	// quality. For more information about filter syntax, see SearchRequest.filter.
  9784  	CanonicalFilter string `json:"canonicalFilter,omitempty"`
  9785  	// ContentSearchSpec: A specification for configuring the behavior of content
  9786  	// search.
  9787  	ContentSearchSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec `json:"contentSearchSpec,omitempty"`
  9788  	// DataStoreSpecs: A list of data store specs to apply on a search call.
  9789  	DataStoreSpecs []*GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec `json:"dataStoreSpecs,omitempty"`
  9790  	// EmbeddingSpec: Uses the provided embedding to do additional semantic
  9791  	// document retrieval. The retrieval is based on the dot product of
  9792  	// SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document
  9793  	// embedding that is provided in
  9794  	// SearchRequest.EmbeddingSpec.EmbeddingVector.field_path. If
  9795  	// SearchRequest.EmbeddingSpec.EmbeddingVector.field_path is not provided, it
  9796  	// will use ServingConfig.EmbeddingConfig.field_path.
  9797  	EmbeddingSpec *GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec `json:"embeddingSpec,omitempty"`
  9798  	// FacetSpecs: Facet specifications for faceted search. If empty, no facets are
  9799  	// returned. A maximum of 100 values are allowed. Otherwise, an
  9800  	// `INVALID_ARGUMENT` error is returned.
  9801  	FacetSpecs []*GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec `json:"facetSpecs,omitempty"`
  9802  	// Filter: The filter syntax consists of an expression language for
  9803  	// constructing a predicate from one or more fields of the documents being
  9804  	// filtered. Filter expression is case-sensitive. If this field is
  9805  	// unrecognizable, an `INVALID_ARGUMENT` is returned. Filtering in Vertex AI
  9806  	// Search is done by mapping the LHS filter key to a key property defined in
  9807  	// the Vertex AI Search backend -- this mapping is defined by the customer in
  9808  	// their schema. For example a media customer might have a field 'name' in
  9809  	// their schema. In this case the filter would look like this: filter -->
  9810  	// name:'ANY("king kong")' For more information about filtering including
  9811  	// syntax and filter operators, see Filter
  9812  	// (https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)
  9813  	Filter string `json:"filter,omitempty"`
  9814  	// ImageQuery: Raw image query.
  9815  	ImageQuery *GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery `json:"imageQuery,omitempty"`
  9816  	// Offset: A 0-indexed integer that specifies the current offset (that is,
  9817  	// starting result location, amongst the Documents deemed by the API as
  9818  	// relevant) in search results. This field is only considered if page_token is
  9819  	// unset. If this field is negative, an `INVALID_ARGUMENT` is returned.
  9820  	Offset int64 `json:"offset,omitempty"`
  9821  	// OrderBy: The order in which documents are returned. Documents can be ordered
  9822  	// by a field in an Document object. Leave it unset if ordered by relevance.
  9823  	// `order_by` expression is case-sensitive. For more information on ordering
  9824  	// for retail search, see Ordering
  9825  	// (https://cloud.google.com/retail/docs/filter-and-order#order) If this field
  9826  	// is unrecognizable, an `INVALID_ARGUMENT` is returned.
  9827  	OrderBy string `json:"orderBy,omitempty"`
  9828  	// PageSize: Maximum number of Documents to return. The maximum allowed value
  9829  	// depends on the data type. Values above the maximum value are coerced to the
  9830  	// maximum value. * Websites with basic indexing: Default `10`, Maximum `25`. *
  9831  	// Websites with advanced indexing: Default `25`, Maximum `50`. * Other:
  9832  	// Default `50`, Maximum `100`. If this field is negative, an
  9833  	// `INVALID_ARGUMENT` is returned.
  9834  	PageSize int64 `json:"pageSize,omitempty"`
  9835  	// PageToken: A page token received from a previous SearchService.Search call.
  9836  	// Provide this to retrieve the subsequent page. When paginating, all other
  9837  	// parameters provided to SearchService.Search must match the call that
  9838  	// provided the page token. Otherwise, an `INVALID_ARGUMENT` error is returned.
  9839  	PageToken string `json:"pageToken,omitempty"`
  9840  	// Params: Additional search parameters. For public website search only,
  9841  	// supported values are: * `user_country_code`: string. Default empty. If set
  9842  	// to non-empty, results are restricted or boosted based on the location
  9843  	// provided. Example: user_country_code: "au" For available codes see Country
  9844  	// Codes
  9845  	// (https://developers.google.com/custom-search/docs/json_api_reference#countryCodes)
  9846  	// * `search_type`: double. Default empty. Enables non-webpage searching
  9847  	// depending on the value. The only valid non-default value is 1, which enables
  9848  	// image searching. Example: search_type: 1
  9849  	Params googleapi.RawMessage `json:"params,omitempty"`
  9850  	// Query: Raw search query.
  9851  	Query string `json:"query,omitempty"`
  9852  	// QueryExpansionSpec: The query expansion specification that specifies the
  9853  	// conditions under which query expansion occurs.
  9854  	QueryExpansionSpec *GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec `json:"queryExpansionSpec,omitempty"`
  9855  	// RankingExpression: The ranking expression controls the customized ranking on
  9856  	// retrieval documents. This overrides ServingConfig.ranking_expression. The
  9857  	// ranking expression is a single function or multiple functions that are joint
  9858  	// by "+". * ranking_expression = function, { " + ", function }; Supported
  9859  	// functions: * double * relevance_score * double *
  9860  	// dotProduct(embedding_field_path) Function variables: `relevance_score`:
  9861  	// pre-defined keywords, used for measure relevance between query and document.
  9862  	// `embedding_field_path`: the document embedding field used with query
  9863  	// embedding vector. `dotProduct`: embedding function between
  9864  	// embedding_field_path and query embedding vector. Example ranking expression:
  9865  	// If document has an embedding field doc_embedding, the ranking expression
  9866  	// could be `0.5 * relevance_score + 0.3 * dotProduct(doc_embedding)`.
  9867  	RankingExpression string `json:"rankingExpression,omitempty"`
  9868  	// SafeSearch: Whether to turn on safe search. This is only supported for
  9869  	// website search.
  9870  	SafeSearch bool `json:"safeSearch,omitempty"`
  9871  	// SpellCorrectionSpec: The spell correction specification that specifies the
  9872  	// mode under which spell correction takes effect.
  9873  	SpellCorrectionSpec *GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"`
  9874  	// UserInfo: Information about the end user. Highly recommended for analytics.
  9875  	// UserInfo.user_agent is used to deduce `device_type` for analytics.
  9876  	UserInfo *GoogleCloudDiscoveryengineV1betaUserInfo `json:"userInfo,omitempty"`
  9877  	// UserLabels: The user labels applied to a resource must meet the following
  9878  	// requirements: * Each resource can have multiple labels, up to a maximum of
  9879  	// 64. * Each label must be a key-value pair. * Keys have a minimum length of 1
  9880  	// character and a maximum length of 63 characters and cannot be empty. Values
  9881  	// can be empty and have a maximum length of 63 characters. * Keys and values
  9882  	// can contain only lowercase letters, numeric characters, underscores, and
  9883  	// dashes. All characters must use UTF-8 encoding, and international characters
  9884  	// are allowed. * The key portion of a label must be unique. However, you can
  9885  	// use the same key with multiple resources. * Keys must start with a lowercase
  9886  	// letter or international character. See Google Cloud Document
  9887  	// (https://cloud.google.com/resource-manager/docs/creating-managing-labels#requirements)
  9888  	// for more details.
  9889  	UserLabels map[string]string `json:"userLabels,omitempty"`
  9890  	// UserPseudoId: A unique identifier for tracking visitors. For example, this
  9891  	// could be implemented with an HTTP cookie, which should be able to uniquely
  9892  	// identify a visitor on a single device. This unique identifier should not
  9893  	// change if the visitor logs in or out of the website. This field should NOT
  9894  	// have a fixed value such as `unknown_visitor`. This should be the same
  9895  	// identifier as UserEvent.user_pseudo_id and
  9896  	// CompleteQueryRequest.user_pseudo_id The field must be a UTF-8 encoded string
  9897  	// with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT`
  9898  	// error is returned.
  9899  	UserPseudoId string `json:"userPseudoId,omitempty"`
  9900  	// ForceSendFields is a list of field names (e.g. "BoostSpec") to
  9901  	// unconditionally include in API requests. By default, fields with empty or
  9902  	// default values are omitted from API requests. See
  9903  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9904  	// details.
  9905  	ForceSendFields []string `json:"-"`
  9906  	// NullFields is a list of field names (e.g. "BoostSpec") to include in API
  9907  	// requests with the JSON null value. By default, fields with empty values are
  9908  	// omitted from API requests. See
  9909  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9910  	NullFields []string `json:"-"`
  9911  }
  9912  
  9913  func (s *GoogleCloudDiscoveryengineV1betaSearchRequest) MarshalJSON() ([]byte, error) {
  9914  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequest
  9915  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9916  }
  9917  
  9918  // GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec: Boost specification
  9919  // to boost certain documents.
  9920  type GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec struct {
  9921  	// ConditionBoostSpecs: Condition boost specifications. If a document matches
  9922  	// multiple conditions in the specifictions, boost scores from these
  9923  	// specifications are all applied and combined in a non-linear way. Maximum
  9924  	// number of specifications is 20.
  9925  	ConditionBoostSpecs []*GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec `json:"conditionBoostSpecs,omitempty"`
  9926  	// ForceSendFields is a list of field names (e.g. "ConditionBoostSpecs") to
  9927  	// unconditionally include in API requests. By default, fields with empty or
  9928  	// default values are omitted from API requests. See
  9929  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9930  	// details.
  9931  	ForceSendFields []string `json:"-"`
  9932  	// NullFields is a list of field names (e.g. "ConditionBoostSpecs") to include
  9933  	// in API requests with the JSON null value. By default, fields with empty
  9934  	// values are omitted from API requests. See
  9935  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9936  	NullFields []string `json:"-"`
  9937  }
  9938  
  9939  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec) MarshalJSON() ([]byte, error) {
  9940  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec
  9941  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9942  }
  9943  
  9944  // GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec:
  9945  // Boost applies to documents which match a condition.
  9946  type GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec struct {
  9947  	// Boost: Strength of the condition boost, which should be in [-1, 1]. Negative
  9948  	// boost means demotion. Default is 0.0. Setting to 1.0 gives the document a
  9949  	// big promotion. However, it does not necessarily mean that the boosted
  9950  	// document will be the top result at all times, nor that other documents will
  9951  	// be excluded. Results could still be shown even when none of them matches the
  9952  	// condition. And results that are significantly more relevant to the search
  9953  	// query can still trump your heavily favored but irrelevant documents. Setting
  9954  	// to -1.0 gives the document a big demotion. However, results that are deeply
  9955  	// relevant might still be shown. The document will have an upstream battle to
  9956  	// get a fairly high ranking, but it is not blocked out completely. Setting to
  9957  	// 0.0 means no boost applied. The boosting condition is ignored. Only one of
  9958  	// the (condition, boost) combination or the boost_control_spec below are set.
  9959  	// If both are set then the global boost is ignored and the more fine-grained
  9960  	// boost_control_spec is applied.
  9961  	Boost float64 `json:"boost,omitempty"`
  9962  	// BoostControlSpec: Complex specification for custom ranking based on customer
  9963  	// defined attribute value.
  9964  	BoostControlSpec *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec `json:"boostControlSpec,omitempty"`
  9965  	// Condition: An expression which specifies a boost condition. The syntax and
  9966  	// supported fields are the same as a filter expression. See
  9967  	// SearchRequest.filter for detail syntax and limitations. Examples: * To boost
  9968  	// documents with document ID "doc_1" or "doc_2", and color "Red" or "Blue":
  9969  	// `(document_id: ANY("doc_1", "doc_2")) AND (color: ANY("Red", "Blue"))`
  9970  	Condition string `json:"condition,omitempty"`
  9971  	// ForceSendFields is a list of field names (e.g. "Boost") to unconditionally
  9972  	// include in API requests. By default, fields with empty or default values are
  9973  	// omitted from API requests. See
  9974  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  9975  	// details.
  9976  	ForceSendFields []string `json:"-"`
  9977  	// NullFields is a list of field names (e.g. "Boost") to include in API
  9978  	// requests with the JSON null value. By default, fields with empty values are
  9979  	// omitted from API requests. See
  9980  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  9981  	NullFields []string `json:"-"`
  9982  }
  9983  
  9984  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec) MarshalJSON() ([]byte, error) {
  9985  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec
  9986  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  9987  }
  9988  
  9989  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec) UnmarshalJSON(data []byte) error {
  9990  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec
  9991  	var s1 struct {
  9992  		Boost gensupport.JSONFloat64 `json:"boost"`
  9993  		*NoMethod
  9994  	}
  9995  	s1.NoMethod = (*NoMethod)(s)
  9996  	if err := json.Unmarshal(data, &s1); err != nil {
  9997  		return err
  9998  	}
  9999  	s.Boost = float64(s1.Boost)
 10000  	return nil
 10001  }
 10002  
 10003  // GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoost
 10004  // ControlSpec: Specification for custom ranking based on customer specified
 10005  // attribute value. It provides more controls for customized ranking than the
 10006  // simple (condition, boost) combination above.
 10007  type GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec struct {
 10008  	// AttributeType: The attribute type to be used to determine the boost amount.
 10009  	// The attribute value can be derived from the field value of the specified
 10010  	// field_name. In the case of numerical it is straightforward i.e.
 10011  	// attribute_value = numerical_field_value. In the case of freshness however,
 10012  	// attribute_value = (time.now() - datetime_field_value).
 10013  	//
 10014  	// Possible values:
 10015  	//   "ATTRIBUTE_TYPE_UNSPECIFIED" - Unspecified AttributeType.
 10016  	//   "NUMERICAL" - The value of the numerical field will be used to dynamically
 10017  	// update the boost amount. In this case, the attribute_value (the x value) of
 10018  	// the control point will be the actual value of the numerical field for which
 10019  	// the boost_amount is specified.
 10020  	//   "FRESHNESS" - For the freshness use case the attribute value will be the
 10021  	// duration between the current time and the date in the datetime field
 10022  	// specified. The value must be formatted as an XSD `dayTimeDuration` value (a
 10023  	// restricted subset of an ISO 8601 duration value). The pattern for this is:
 10024  	// `nDnM]`. E.g. `5D`, `3DT12H30M`, `T24H`.
 10025  	AttributeType string `json:"attributeType,omitempty"`
 10026  	// ControlPoints: The control points used to define the curve. The monotonic
 10027  	// function (defined through the interpolation_type above) passes through the
 10028  	// control points listed here.
 10029  	ControlPoints []*GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint `json:"controlPoints,omitempty"`
 10030  	// FieldName: The name of the field whose value will be used to determine the
 10031  	// boost amount.
 10032  	FieldName string `json:"fieldName,omitempty"`
 10033  	// InterpolationType: The interpolation type to be applied to connect the
 10034  	// control points listed below.
 10035  	//
 10036  	// Possible values:
 10037  	//   "INTERPOLATION_TYPE_UNSPECIFIED" - Interpolation type is unspecified. In
 10038  	// this case, it defaults to Linear.
 10039  	//   "LINEAR" - Piecewise linear interpolation will be applied.
 10040  	InterpolationType string `json:"interpolationType,omitempty"`
 10041  	// ForceSendFields is a list of field names (e.g. "AttributeType") to
 10042  	// unconditionally include in API requests. By default, fields with empty or
 10043  	// default values are omitted from API requests. See
 10044  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10045  	// details.
 10046  	ForceSendFields []string `json:"-"`
 10047  	// NullFields is a list of field names (e.g. "AttributeType") to include in API
 10048  	// requests with the JSON null value. By default, fields with empty values are
 10049  	// omitted from API requests. See
 10050  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10051  	NullFields []string `json:"-"`
 10052  }
 10053  
 10054  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec) MarshalJSON() ([]byte, error) {
 10055  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec
 10056  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10057  }
 10058  
 10059  // GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoost
 10060  // ControlSpecControlPoint: The control points used to define the curve. The
 10061  // curve defined through these control points can only be monotonically
 10062  // increasing or decreasing(constant values are acceptable).
 10063  type GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint struct {
 10064  	// AttributeValue: Can be one of: 1. The numerical field value. 2. The duration
 10065  	// spec for freshness: The value must be formatted as an XSD `dayTimeDuration`
 10066  	// value (a restricted subset of an ISO 8601 duration value). The pattern for
 10067  	// this is: `nDnM]`.
 10068  	AttributeValue string `json:"attributeValue,omitempty"`
 10069  	// BoostAmount: The value between -1 to 1 by which to boost the score if the
 10070  	// attribute_value evaluates to the value specified above.
 10071  	BoostAmount float64 `json:"boostAmount,omitempty"`
 10072  	// ForceSendFields is a list of field names (e.g. "AttributeValue") to
 10073  	// unconditionally include in API requests. By default, fields with empty or
 10074  	// default values are omitted from API requests. See
 10075  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10076  	// details.
 10077  	ForceSendFields []string `json:"-"`
 10078  	// NullFields is a list of field names (e.g. "AttributeValue") to include in
 10079  	// API requests with the JSON null value. By default, fields with empty values
 10080  	// are omitted from API requests. See
 10081  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10082  	NullFields []string `json:"-"`
 10083  }
 10084  
 10085  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint) MarshalJSON() ([]byte, error) {
 10086  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint
 10087  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10088  }
 10089  
 10090  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint) UnmarshalJSON(data []byte) error {
 10091  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint
 10092  	var s1 struct {
 10093  		BoostAmount gensupport.JSONFloat64 `json:"boostAmount"`
 10094  		*NoMethod
 10095  	}
 10096  	s1.NoMethod = (*NoMethod)(s)
 10097  	if err := json.Unmarshal(data, &s1); err != nil {
 10098  		return err
 10099  	}
 10100  	s.BoostAmount = float64(s1.BoostAmount)
 10101  	return nil
 10102  }
 10103  
 10104  // GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec: A
 10105  // specification for configuring the behavior of content search.
 10106  type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec struct {
 10107  	// ExtractiveContentSpec: If there is no extractive_content_spec provided,
 10108  	// there will be no extractive answer in the search response.
 10109  	ExtractiveContentSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec `json:"extractiveContentSpec,omitempty"`
 10110  	// SnippetSpec: If `snippetSpec` is not specified, snippets are not included in
 10111  	// the search response.
 10112  	SnippetSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec `json:"snippetSpec,omitempty"`
 10113  	// SummarySpec: If `summarySpec` is not specified, summaries are not included
 10114  	// in the search response.
 10115  	SummarySpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec `json:"summarySpec,omitempty"`
 10116  	// ForceSendFields is a list of field names (e.g. "ExtractiveContentSpec") to
 10117  	// unconditionally include in API requests. By default, fields with empty or
 10118  	// default values are omitted from API requests. See
 10119  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10120  	// details.
 10121  	ForceSendFields []string `json:"-"`
 10122  	// NullFields is a list of field names (e.g. "ExtractiveContentSpec") to
 10123  	// include in API requests with the JSON null value. By default, fields with
 10124  	// empty values are omitted from API requests. See
 10125  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10126  	NullFields []string `json:"-"`
 10127  }
 10128  
 10129  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec) MarshalJSON() ([]byte, error) {
 10130  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec
 10131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10132  }
 10133  
 10134  // GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveConte
 10135  // ntSpec: A specification for configuring the extractive content in a search
 10136  // response.
 10137  type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec struct {
 10138  	// MaxExtractiveAnswerCount: The maximum number of extractive answers returned
 10139  	// in each search result. An extractive answer is a verbatim answer extracted
 10140  	// from the original document, which provides a precise and contextually
 10141  	// relevant answer to the search query. If the number of matching answers is
 10142  	// less than the `max_extractive_answer_count`, return all of the answers.
 10143  	// Otherwise, return the `max_extractive_answer_count`. At most five answers
 10144  	// are returned for each SearchResult.
 10145  	MaxExtractiveAnswerCount int64 `json:"maxExtractiveAnswerCount,omitempty"`
 10146  	// MaxExtractiveSegmentCount: The max number of extractive segments returned in
 10147  	// each search result. Only applied if the DataStore is set to
 10148  	// DataStore.ContentConfig.CONTENT_REQUIRED or DataStore.solution_types is
 10149  	// SOLUTION_TYPE_CHAT. An extractive segment is a text segment extracted from
 10150  	// the original document that is relevant to the search query, and, in general,
 10151  	// more verbose than an extractive answer. The segment could then be used as
 10152  	// input for LLMs to generate summaries and answers. If the number of matching
 10153  	// segments is less than `max_extractive_segment_count`, return all of the
 10154  	// segments. Otherwise, return the `max_extractive_segment_count`.
 10155  	MaxExtractiveSegmentCount int64 `json:"maxExtractiveSegmentCount,omitempty"`
 10156  	// NumNextSegments: Return at most `num_next_segments` segments after each
 10157  	// selected segments.
 10158  	NumNextSegments int64 `json:"numNextSegments,omitempty"`
 10159  	// NumPreviousSegments: Specifies whether to also include the adjacent from
 10160  	// each selected segments. Return at most `num_previous_segments` segments
 10161  	// before each selected segments.
 10162  	NumPreviousSegments int64 `json:"numPreviousSegments,omitempty"`
 10163  	// ReturnExtractiveSegmentScore: Specifies whether to return the confidence
 10164  	// score from the extractive segments in each search result. This feature is
 10165  	// available only for new or allowlisted data stores. To allowlist your data
 10166  	// store, contact your Customer Engineer. The default value is `false`.
 10167  	ReturnExtractiveSegmentScore bool `json:"returnExtractiveSegmentScore,omitempty"`
 10168  	// ForceSendFields is a list of field names (e.g. "MaxExtractiveAnswerCount")
 10169  	// to unconditionally include in API requests. By default, fields with empty or
 10170  	// default values are omitted from API requests. See
 10171  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10172  	// details.
 10173  	ForceSendFields []string `json:"-"`
 10174  	// NullFields is a list of field names (e.g. "MaxExtractiveAnswerCount") to
 10175  	// include in API requests with the JSON null value. By default, fields with
 10176  	// empty values are omitted from API requests. See
 10177  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10178  	NullFields []string `json:"-"`
 10179  }
 10180  
 10181  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec) MarshalJSON() ([]byte, error) {
 10182  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec
 10183  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10184  }
 10185  
 10186  // GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec: A
 10187  // specification for configuring snippets in a search response.
 10188  type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec struct {
 10189  	// MaxSnippetCount: [DEPRECATED] This field is deprecated. To control snippet
 10190  	// return, use `return_snippet` field. For backwards compatibility, we will
 10191  	// return snippet if max_snippet_count > 0.
 10192  	MaxSnippetCount int64 `json:"maxSnippetCount,omitempty"`
 10193  	// ReferenceOnly: [DEPRECATED] This field is deprecated and will have no affect
 10194  	// on the snippet.
 10195  	ReferenceOnly bool `json:"referenceOnly,omitempty"`
 10196  	// ReturnSnippet: If `true`, then return snippet. If no snippet can be
 10197  	// generated, we return "No snippet is available for this page." A
 10198  	// `snippet_status` with `SUCCESS` or `NO_SNIPPET_AVAILABLE` will also be
 10199  	// returned.
 10200  	ReturnSnippet bool `json:"returnSnippet,omitempty"`
 10201  	// ForceSendFields is a list of field names (e.g. "MaxSnippetCount") to
 10202  	// unconditionally include in API requests. By default, fields with empty or
 10203  	// default values are omitted from API requests. See
 10204  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10205  	// details.
 10206  	ForceSendFields []string `json:"-"`
 10207  	// NullFields is a list of field names (e.g. "MaxSnippetCount") to include in
 10208  	// API requests with the JSON null value. By default, fields with empty values
 10209  	// are omitted from API requests. See
 10210  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10211  	NullFields []string `json:"-"`
 10212  }
 10213  
 10214  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec) MarshalJSON() ([]byte, error) {
 10215  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec
 10216  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10217  }
 10218  
 10219  // GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec: A
 10220  // specification for configuring a summary returned in a search response.
 10221  type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec struct {
 10222  	// IgnoreAdversarialQuery: Specifies whether to filter out adversarial queries.
 10223  	// The default value is `false`. Google employs search-query classification to
 10224  	// detect adversarial queries. No summary is returned if the search query is
 10225  	// classified as an adversarial query. For example, a user might ask a question
 10226  	// regarding negative comments about the company or submit a query designed to
 10227  	// generate unsafe, policy-violating output. If this field is set to `true`, we
 10228  	// skip generating summaries for adversarial queries and return fallback
 10229  	// messages instead.
 10230  	IgnoreAdversarialQuery bool `json:"ignoreAdversarialQuery,omitempty"`
 10231  	// IgnoreNonSummarySeekingQuery: Specifies whether to filter out queries that
 10232  	// are not summary-seeking. The default value is `false`. Google employs
 10233  	// search-query classification to detect summary-seeking queries. No summary is
 10234  	// returned if the search query is classified as a non-summary seeking query.
 10235  	// For example, `why is the sky blue` and `Who is the best soccer player in the
 10236  	// world?` are summary-seeking queries, but `SFO airport` and `world cup 2026`
 10237  	// are not. They are most likely navigational queries. If this field is set to
 10238  	// `true`, we skip generating summaries for non-summary seeking queries and
 10239  	// return fallback messages instead.
 10240  	IgnoreNonSummarySeekingQuery bool `json:"ignoreNonSummarySeekingQuery,omitempty"`
 10241  	// IncludeCitations: Specifies whether to include citations in the summary. The
 10242  	// default value is `false`. When this field is set to `true`, summaries
 10243  	// include in-line citation numbers. Example summary including citations:
 10244  	// BigQuery is Google Cloud's fully managed and completely serverless
 10245  	// enterprise data warehouse [1]. BigQuery supports all data types, works
 10246  	// across clouds, and has built-in machine learning and business intelligence,
 10247  	// all within a unified platform [2, 3]. The citation numbers refer to the
 10248  	// returned search results and are 1-indexed. For example, [1] means that the
 10249  	// sentence is attributed to the first search result. [2, 3] means that the
 10250  	// sentence is attributed to both the second and third search results.
 10251  	IncludeCitations bool `json:"includeCitations,omitempty"`
 10252  	// LanguageCode: Language code for Summary. Use language tags defined by BCP47
 10253  	// (https://www.rfc-editor.org/rfc/bcp/bcp47.txt). Note: This is an
 10254  	// experimental feature.
 10255  	LanguageCode string `json:"languageCode,omitempty"`
 10256  	// ModelPromptSpec: If specified, the spec will be used to modify the prompt
 10257  	// provided to the LLM.
 10258  	ModelPromptSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec `json:"modelPromptSpec,omitempty"`
 10259  	// ModelSpec: If specified, the spec will be used to modify the model
 10260  	// specification provided to the LLM.
 10261  	ModelSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec `json:"modelSpec,omitempty"`
 10262  	// SummaryResultCount: The number of top results to generate the summary from.
 10263  	// If the number of results returned is less than `summaryResultCount`, the
 10264  	// summary is generated from all of the results. At most 10 results for
 10265  	// documents mode, or 50 for chunks mode, can be used to generate a summary.
 10266  	// The chunks mode is used when
 10267  	// SearchRequest.ContentSearchSpec.search_result_mode is set to CHUNKS.
 10268  	SummaryResultCount int64 `json:"summaryResultCount,omitempty"`
 10269  	// UseSemanticChunks: If true, answer will be generated from most relevant
 10270  	// chunks from top search results. This feature will improve summary quality.
 10271  	// Note that with this feature enabled, not all top search results will be
 10272  	// referenced and included in the reference list, so the citation source index
 10273  	// only points to the search results listed in the reference list.
 10274  	UseSemanticChunks bool `json:"useSemanticChunks,omitempty"`
 10275  	// ForceSendFields is a list of field names (e.g. "IgnoreAdversarialQuery") to
 10276  	// unconditionally include in API requests. By default, fields with empty or
 10277  	// default values are omitted from API requests. See
 10278  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10279  	// details.
 10280  	ForceSendFields []string `json:"-"`
 10281  	// NullFields is a list of field names (e.g. "IgnoreAdversarialQuery") to
 10282  	// include in API requests with the JSON null value. By default, fields with
 10283  	// empty values are omitted from API requests. See
 10284  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10285  	NullFields []string `json:"-"`
 10286  }
 10287  
 10288  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec) MarshalJSON() ([]byte, error) {
 10289  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec
 10290  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10291  }
 10292  
 10293  // GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecMode
 10294  // lPromptSpec: Specification of the prompt to use with the model.
 10295  type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec struct {
 10296  	// Preamble: Text at the beginning of the prompt that instructs the assistant.
 10297  	// Examples are available in the user guide.
 10298  	Preamble string `json:"preamble,omitempty"`
 10299  	// ForceSendFields is a list of field names (e.g. "Preamble") to
 10300  	// unconditionally include in API requests. By default, fields with empty or
 10301  	// default values are omitted from API requests. See
 10302  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10303  	// details.
 10304  	ForceSendFields []string `json:"-"`
 10305  	// NullFields is a list of field names (e.g. "Preamble") to include in API
 10306  	// requests with the JSON null value. By default, fields with empty values are
 10307  	// omitted from API requests. See
 10308  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10309  	NullFields []string `json:"-"`
 10310  }
 10311  
 10312  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec) MarshalJSON() ([]byte, error) {
 10313  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec
 10314  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10315  }
 10316  
 10317  // GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecMode
 10318  // lSpec: Specification of the model.
 10319  type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec struct {
 10320  	// Version: The model version used to generate the summary. Supported values
 10321  	// are: * `stable`: string. Default value when no value is specified. Uses a
 10322  	// generally available, fine-tuned model. For more information, see Answer
 10323  	// generation model versions and lifecycle
 10324  	// (https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
 10325  	// * `preview`: string. (Public preview) Uses a preview model. For more
 10326  	// information, see Answer generation model versions and lifecycle
 10327  	// (https://cloud.google.com/generative-ai-app-builder/docs/answer-generation-models).
 10328  	Version string `json:"version,omitempty"`
 10329  	// ForceSendFields is a list of field names (e.g. "Version") to unconditionally
 10330  	// include in API requests. By default, fields with empty or default values are
 10331  	// omitted from API requests. See
 10332  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10333  	// details.
 10334  	ForceSendFields []string `json:"-"`
 10335  	// NullFields is a list of field names (e.g. "Version") to include in API
 10336  	// requests with the JSON null value. By default, fields with empty values are
 10337  	// omitted from API requests. See
 10338  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10339  	NullFields []string `json:"-"`
 10340  }
 10341  
 10342  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec) MarshalJSON() ([]byte, error) {
 10343  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec
 10344  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10345  }
 10346  
 10347  // GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec: A struct to
 10348  // define data stores to filter on in a search call.
 10349  type GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec struct {
 10350  	// DataStore: Required. Full resource name of DataStore, such as
 10351  	// `projects/{project}/locations/{location}/collections/{collection_id}/dataStor
 10352  	// es/{data_store_id}`.
 10353  	DataStore string `json:"dataStore,omitempty"`
 10354  	// ForceSendFields is a list of field names (e.g. "DataStore") to
 10355  	// unconditionally include in API requests. By default, fields with empty or
 10356  	// default values are omitted from API requests. See
 10357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10358  	// details.
 10359  	ForceSendFields []string `json:"-"`
 10360  	// NullFields is a list of field names (e.g. "DataStore") to include in API
 10361  	// requests with the JSON null value. By default, fields with empty values are
 10362  	// omitted from API requests. See
 10363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10364  	NullFields []string `json:"-"`
 10365  }
 10366  
 10367  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec) MarshalJSON() ([]byte, error) {
 10368  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec
 10369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10370  }
 10371  
 10372  // GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec: The
 10373  // specification that uses customized query embedding vector to do semantic
 10374  // document retrieval.
 10375  type GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec struct {
 10376  	// EmbeddingVectors: The embedding vector used for retrieval. Limit to 1.
 10377  	EmbeddingVectors []*GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector `json:"embeddingVectors,omitempty"`
 10378  	// ForceSendFields is a list of field names (e.g. "EmbeddingVectors") to
 10379  	// unconditionally include in API requests. By default, fields with empty or
 10380  	// default values are omitted from API requests. See
 10381  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10382  	// details.
 10383  	ForceSendFields []string `json:"-"`
 10384  	// NullFields is a list of field names (e.g. "EmbeddingVectors") to include in
 10385  	// API requests with the JSON null value. By default, fields with empty values
 10386  	// are omitted from API requests. See
 10387  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10388  	NullFields []string `json:"-"`
 10389  }
 10390  
 10391  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec) MarshalJSON() ([]byte, error) {
 10392  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec
 10393  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10394  }
 10395  
 10396  // GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector:
 10397  // Embedding vector.
 10398  type GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector struct {
 10399  	// FieldPath: Embedding field path in schema.
 10400  	FieldPath string `json:"fieldPath,omitempty"`
 10401  	// Vector: Query embedding vector.
 10402  	Vector []float64 `json:"vector,omitempty"`
 10403  	// ForceSendFields is a list of field names (e.g. "FieldPath") to
 10404  	// unconditionally include in API requests. By default, fields with empty or
 10405  	// default values are omitted from API requests. See
 10406  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10407  	// details.
 10408  	ForceSendFields []string `json:"-"`
 10409  	// NullFields is a list of field names (e.g. "FieldPath") to include in API
 10410  	// requests with the JSON null value. By default, fields with empty values are
 10411  	// omitted from API requests. See
 10412  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10413  	NullFields []string `json:"-"`
 10414  }
 10415  
 10416  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector) MarshalJSON() ([]byte, error) {
 10417  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector
 10418  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10419  }
 10420  
 10421  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector) UnmarshalJSON(data []byte) error {
 10422  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector
 10423  	var s1 struct {
 10424  		Vector []gensupport.JSONFloat64 `json:"vector"`
 10425  		*NoMethod
 10426  	}
 10427  	s1.NoMethod = (*NoMethod)(s)
 10428  	if err := json.Unmarshal(data, &s1); err != nil {
 10429  		return err
 10430  	}
 10431  	s.Vector = make([]float64, len(s1.Vector))
 10432  	for i := range s1.Vector {
 10433  		s.Vector[i] = float64(s1.Vector[i])
 10434  	}
 10435  	return nil
 10436  }
 10437  
 10438  // GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec: A facet
 10439  // specification to perform faceted search.
 10440  type GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec struct {
 10441  	// EnableDynamicPosition: Enables dynamic position for this facet. If set to
 10442  	// true, the position of this facet among all facets in the response is
 10443  	// determined automatically. If dynamic facets are enabled, it is ordered
 10444  	// together. If set to false, the position of this facet in the response is the
 10445  	// same as in the request, and it is ranked before the facets with dynamic
 10446  	// position enable and all dynamic facets. For example, you may always want to
 10447  	// have rating facet returned in the response, but it's not necessarily to
 10448  	// always display the rating facet at the top. In that case, you can set
 10449  	// enable_dynamic_position to true so that the position of rating facet in
 10450  	// response is determined automatically. Another example, assuming you have the
 10451  	// following facets in the request: * "rating", enable_dynamic_position = true
 10452  	// * "price", enable_dynamic_position = false * "brands",
 10453  	// enable_dynamic_position = false And also you have a dynamic facets enabled,
 10454  	// which generates a facet `gender`. Then the final order of the facets in the
 10455  	// response can be ("price", "brands", "rating", "gender") or ("price",
 10456  	// "brands", "gender", "rating") depends on how API orders "gender" and
 10457  	// "rating" facets. However, notice that "price" and "brands" are always ranked
 10458  	// at first and second position because their enable_dynamic_position is false.
 10459  	EnableDynamicPosition bool `json:"enableDynamicPosition,omitempty"`
 10460  	// ExcludedFilterKeys: List of keys to exclude when faceting. By default,
 10461  	// FacetKey.key is not excluded from the filter unless it is listed in this
 10462  	// field. Listing a facet key in this field allows its values to appear as
 10463  	// facet results, even when they are filtered out of search results. Using this
 10464  	// field does not affect what search results are returned. For example, suppose
 10465  	// there are 100 documents with the color facet "Red" and 200 documents with
 10466  	// the color facet "Blue". A query containing the filter "color:ANY("Red")" and
 10467  	// having "color" as FacetKey.key would by default return only "Red" documents
 10468  	// in the search results, and also return "Red" with count 100 as the only
 10469  	// color facet. Although there are also blue documents available, "Blue" would
 10470  	// not be shown as an available facet value. If "color" is listed in
 10471  	// "excludedFilterKeys", then the query returns the facet values "Red" with
 10472  	// count 100 and "Blue" with count 200, because the "color" key is now excluded
 10473  	// from the filter. Because this field doesn't affect search results, the
 10474  	// search results are still correctly filtered to return only "Red" documents.
 10475  	// A maximum of 100 values are allowed. Otherwise, an `INVALID_ARGUMENT` error
 10476  	// is returned.
 10477  	ExcludedFilterKeys []string `json:"excludedFilterKeys,omitempty"`
 10478  	// FacetKey: Required. The facet key specification.
 10479  	FacetKey *GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey `json:"facetKey,omitempty"`
 10480  	// Limit: Maximum of facet values that should be returned for this facet. If
 10481  	// unspecified, defaults to 20. The maximum allowed value is 300. Values above
 10482  	// 300 are coerced to 300. If this field is negative, an `INVALID_ARGUMENT` is
 10483  	// returned.
 10484  	Limit int64 `json:"limit,omitempty"`
 10485  	// ForceSendFields is a list of field names (e.g. "EnableDynamicPosition") to
 10486  	// unconditionally include in API requests. By default, fields with empty or
 10487  	// default values are omitted from API requests. See
 10488  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10489  	// details.
 10490  	ForceSendFields []string `json:"-"`
 10491  	// NullFields is a list of field names (e.g. "EnableDynamicPosition") to
 10492  	// include in API requests with the JSON null value. By default, fields with
 10493  	// empty values are omitted from API requests. See
 10494  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10495  	NullFields []string `json:"-"`
 10496  }
 10497  
 10498  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec) MarshalJSON() ([]byte, error) {
 10499  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec
 10500  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10501  }
 10502  
 10503  // GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey: Specifies
 10504  // how a facet is computed.
 10505  type GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey struct {
 10506  	// CaseInsensitive: True to make facet keys case insensitive when getting
 10507  	// faceting values with prefixes or contains; false otherwise.
 10508  	CaseInsensitive bool `json:"caseInsensitive,omitempty"`
 10509  	// Contains: Only get facet values that contains the given strings. For
 10510  	// example, suppose "category" has three values "Action > 2022", "Action >
 10511  	// 2021" and "Sci-Fi > 2022". If set "contains" to "2022", the "category" facet
 10512  	// only contains "Action > 2022" and "Sci-Fi > 2022". Only supported on textual
 10513  	// fields. Maximum is 10.
 10514  	Contains []string `json:"contains,omitempty"`
 10515  	// Intervals: Set only if values should be bucketed into intervals. Must be set
 10516  	// for facets with numerical values. Must not be set for facet with text
 10517  	// values. Maximum number of intervals is 30.
 10518  	Intervals []*GoogleCloudDiscoveryengineV1betaInterval `json:"intervals,omitempty"`
 10519  	// Key: Required. Supported textual and numerical facet keys in Document
 10520  	// object, over which the facet values are computed. Facet key is
 10521  	// case-sensitive.
 10522  	Key string `json:"key,omitempty"`
 10523  	// OrderBy: The order in which documents are returned. Allowed values are: *
 10524  	// "count desc", which means order by SearchResponse.Facet.values.count
 10525  	// descending. * "value desc", which means order by
 10526  	// SearchResponse.Facet.values.value descending. Only applies to textual
 10527  	// facets. If not set, textual values are sorted in natural order
 10528  	// (https://en.wikipedia.org/wiki/Natural_sort_order); numerical intervals are
 10529  	// sorted in the order given by FacetSpec.FacetKey.intervals.
 10530  	OrderBy string `json:"orderBy,omitempty"`
 10531  	// Prefixes: Only get facet values that start with the given string prefix. For
 10532  	// example, suppose "category" has three values "Action > 2022", "Action >
 10533  	// 2021" and "Sci-Fi > 2022". If set "prefixes" to "Action", the "category"
 10534  	// facet only contains "Action > 2022" and "Action > 2021". Only supported on
 10535  	// textual fields. Maximum is 10.
 10536  	Prefixes []string `json:"prefixes,omitempty"`
 10537  	// RestrictedValues: Only get facet for the given restricted values. Only
 10538  	// supported on textual fields. For example, suppose "category" has three
 10539  	// values "Action > 2022", "Action > 2021" and "Sci-Fi > 2022". If set
 10540  	// "restricted_values" to "Action > 2022", the "category" facet only contains
 10541  	// "Action > 2022". Only supported on textual fields. Maximum is 10.
 10542  	RestrictedValues []string `json:"restrictedValues,omitempty"`
 10543  	// ForceSendFields is a list of field names (e.g. "CaseInsensitive") to
 10544  	// unconditionally include in API requests. By default, fields with empty or
 10545  	// default values are omitted from API requests. See
 10546  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10547  	// details.
 10548  	ForceSendFields []string `json:"-"`
 10549  	// NullFields is a list of field names (e.g. "CaseInsensitive") to include in
 10550  	// API requests with the JSON null value. By default, fields with empty values
 10551  	// are omitted from API requests. See
 10552  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10553  	NullFields []string `json:"-"`
 10554  }
 10555  
 10556  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey) MarshalJSON() ([]byte, error) {
 10557  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey
 10558  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10559  }
 10560  
 10561  // GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery: Specifies the image
 10562  // query input.
 10563  type GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery struct {
 10564  	// ImageBytes: Base64 encoded image bytes. Supported image formats: JPEG, PNG,
 10565  	// and BMP.
 10566  	ImageBytes string `json:"imageBytes,omitempty"`
 10567  	// ForceSendFields is a list of field names (e.g. "ImageBytes") to
 10568  	// unconditionally include in API requests. By default, fields with empty or
 10569  	// default values are omitted from API requests. See
 10570  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10571  	// details.
 10572  	ForceSendFields []string `json:"-"`
 10573  	// NullFields is a list of field names (e.g. "ImageBytes") to include in API
 10574  	// requests with the JSON null value. By default, fields with empty values are
 10575  	// omitted from API requests. See
 10576  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10577  	NullFields []string `json:"-"`
 10578  }
 10579  
 10580  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery) MarshalJSON() ([]byte, error) {
 10581  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery
 10582  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10583  }
 10584  
 10585  // GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec:
 10586  // Specification to determine under which conditions query expansion should
 10587  // occur.
 10588  type GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec struct {
 10589  	// Condition: The condition under which query expansion should occur. Default
 10590  	// to Condition.DISABLED.
 10591  	//
 10592  	// Possible values:
 10593  	//   "CONDITION_UNSPECIFIED" - Unspecified query expansion condition. In this
 10594  	// case, server behavior defaults to Condition.DISABLED.
 10595  	//   "DISABLED" - Disabled query expansion. Only the exact search query is
 10596  	// used, even if SearchResponse.total_size is zero.
 10597  	//   "AUTO" - Automatic query expansion built by the Search API.
 10598  	Condition string `json:"condition,omitempty"`
 10599  	// PinUnexpandedResults: Whether to pin unexpanded results. If this field is
 10600  	// set to true, unexpanded products are always at the top of the search
 10601  	// results, followed by the expanded results.
 10602  	PinUnexpandedResults bool `json:"pinUnexpandedResults,omitempty"`
 10603  	// ForceSendFields is a list of field names (e.g. "Condition") to
 10604  	// unconditionally include in API requests. By default, fields with empty or
 10605  	// default values are omitted from API requests. See
 10606  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10607  	// details.
 10608  	ForceSendFields []string `json:"-"`
 10609  	// NullFields is a list of field names (e.g. "Condition") to include in API
 10610  	// requests with the JSON null value. By default, fields with empty values are
 10611  	// omitted from API requests. See
 10612  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10613  	NullFields []string `json:"-"`
 10614  }
 10615  
 10616  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec) MarshalJSON() ([]byte, error) {
 10617  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec
 10618  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10619  }
 10620  
 10621  // GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec: The
 10622  // specification for query spell correction.
 10623  type GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec struct {
 10624  	// Mode: The mode under which spell correction should take effect to replace
 10625  	// the original search query. Default to Mode.AUTO.
 10626  	//
 10627  	// Possible values:
 10628  	//   "MODE_UNSPECIFIED" - Unspecified spell correction mode. In this case,
 10629  	// server behavior defaults to Mode.AUTO.
 10630  	//   "SUGGESTION_ONLY" - Search API will try to find a spell suggestion if
 10631  	// there is any and put in the SearchResponse.corrected_query. The spell
 10632  	// suggestion will not be used as the search query.
 10633  	//   "AUTO" - Automatic spell correction built by the Search API. Search will
 10634  	// be based on the corrected query if found.
 10635  	Mode string `json:"mode,omitempty"`
 10636  	// ForceSendFields is a list of field names (e.g. "Mode") to unconditionally
 10637  	// include in API requests. By default, fields with empty or default values are
 10638  	// omitted from API requests. See
 10639  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10640  	// details.
 10641  	ForceSendFields []string `json:"-"`
 10642  	// NullFields is a list of field names (e.g. "Mode") to include in API requests
 10643  	// with the JSON null value. By default, fields with empty values are omitted
 10644  	// from API requests. See
 10645  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10646  	NullFields []string `json:"-"`
 10647  }
 10648  
 10649  func (s *GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec) MarshalJSON() ([]byte, error) {
 10650  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec
 10651  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10652  }
 10653  
 10654  // GoogleCloudDiscoveryengineV1betaSearchResponse: Response message for
 10655  // SearchService.Search method.
 10656  type GoogleCloudDiscoveryengineV1betaSearchResponse struct {
 10657  	// AppliedControls: Controls applied as part of the Control service.
 10658  	AppliedControls []string `json:"appliedControls,omitempty"`
 10659  	// AttributionToken: A unique search token. This should be included in the
 10660  	// UserEvent logs resulting from this search, which enables accurate
 10661  	// attribution of search model performance.
 10662  	AttributionToken string `json:"attributionToken,omitempty"`
 10663  	// CorrectedQuery: Contains the spell corrected query, if found. If the spell
 10664  	// correction type is AUTOMATIC, then the search results are based on
 10665  	// corrected_query. Otherwise the original query is used for search.
 10666  	CorrectedQuery string `json:"correctedQuery,omitempty"`
 10667  	// Facets: Results of facets requested by user.
 10668  	Facets             []*GoogleCloudDiscoveryengineV1betaSearchResponseFacet              `json:"facets,omitempty"`
 10669  	GeoSearchDebugInfo []*GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo `json:"geoSearchDebugInfo,omitempty"`
 10670  	// GuidedSearchResult: Guided search result.
 10671  	GuidedSearchResult *GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult `json:"guidedSearchResult,omitempty"`
 10672  	// NextPageToken: A token that can be sent as SearchRequest.page_token to
 10673  	// retrieve the next page. If this field is omitted, there are no subsequent
 10674  	// pages.
 10675  	NextPageToken string `json:"nextPageToken,omitempty"`
 10676  	// QueryExpansionInfo: Query expansion information for the returned results.
 10677  	QueryExpansionInfo *GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo `json:"queryExpansionInfo,omitempty"`
 10678  	// RedirectUri: The URI of a customer-defined redirect page. If redirect action
 10679  	// is triggered, no search is performed, and only redirect_uri and
 10680  	// attribution_token are set in the response.
 10681  	RedirectUri string `json:"redirectUri,omitempty"`
 10682  	// Results: A list of matched documents. The order represents the ranking.
 10683  	Results []*GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult `json:"results,omitempty"`
 10684  	// Summary: A summary as part of the search results. This field is only
 10685  	// returned if SearchRequest.ContentSearchSpec.summary_spec is set.
 10686  	Summary *GoogleCloudDiscoveryengineV1betaSearchResponseSummary `json:"summary,omitempty"`
 10687  	// TotalSize: The estimated total count of matched items irrespective of
 10688  	// pagination. The count of results returned by pagination may be less than the
 10689  	// total_size that matches.
 10690  	TotalSize int64 `json:"totalSize,omitempty"`
 10691  
 10692  	// ServerResponse contains the HTTP response code and headers from the server.
 10693  	googleapi.ServerResponse `json:"-"`
 10694  	// ForceSendFields is a list of field names (e.g. "AppliedControls") to
 10695  	// unconditionally include in API requests. By default, fields with empty or
 10696  	// default values are omitted from API requests. See
 10697  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10698  	// details.
 10699  	ForceSendFields []string `json:"-"`
 10700  	// NullFields is a list of field names (e.g. "AppliedControls") to include in
 10701  	// API requests with the JSON null value. By default, fields with empty values
 10702  	// are omitted from API requests. See
 10703  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10704  	NullFields []string `json:"-"`
 10705  }
 10706  
 10707  func (s *GoogleCloudDiscoveryengineV1betaSearchResponse) MarshalJSON() ([]byte, error) {
 10708  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponse
 10709  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10710  }
 10711  
 10712  // GoogleCloudDiscoveryengineV1betaSearchResponseFacet: A facet result.
 10713  type GoogleCloudDiscoveryengineV1betaSearchResponseFacet struct {
 10714  	// DynamicFacet: Whether the facet is dynamically generated.
 10715  	DynamicFacet bool `json:"dynamicFacet,omitempty"`
 10716  	// Key: The key for this facet. E.g., "colors" or "price". It matches
 10717  	// SearchRequest.FacetSpec.FacetKey.key.
 10718  	Key string `json:"key,omitempty"`
 10719  	// Values: The facet values for this field.
 10720  	Values []*GoogleCloudDiscoveryengineV1betaSearchResponseFacetFacetValue `json:"values,omitempty"`
 10721  	// ForceSendFields is a list of field names (e.g. "DynamicFacet") to
 10722  	// unconditionally include in API requests. By default, fields with empty or
 10723  	// default values are omitted from API requests. See
 10724  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10725  	// details.
 10726  	ForceSendFields []string `json:"-"`
 10727  	// NullFields is a list of field names (e.g. "DynamicFacet") to include in API
 10728  	// requests with the JSON null value. By default, fields with empty values are
 10729  	// omitted from API requests. See
 10730  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10731  	NullFields []string `json:"-"`
 10732  }
 10733  
 10734  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseFacet) MarshalJSON() ([]byte, error) {
 10735  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseFacet
 10736  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10737  }
 10738  
 10739  // GoogleCloudDiscoveryengineV1betaSearchResponseFacetFacetValue: A facet value
 10740  // which contains value names and their count.
 10741  type GoogleCloudDiscoveryengineV1betaSearchResponseFacetFacetValue struct {
 10742  	// Count: Number of items that have this facet value.
 10743  	Count int64 `json:"count,omitempty,string"`
 10744  	// Interval: Interval value for a facet, such as 10, 20) for facet "price". It
 10745  	// matches [SearchRequest.FacetSpec.FacetKey.intervals.
 10746  	Interval *GoogleCloudDiscoveryengineV1betaInterval `json:"interval,omitempty"`
 10747  	// Value: Text value of a facet, such as "Black" for facet "colors".
 10748  	Value string `json:"value,omitempty"`
 10749  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
 10750  	// include in API requests. By default, fields with empty or default values are
 10751  	// omitted from API requests. See
 10752  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10753  	// details.
 10754  	ForceSendFields []string `json:"-"`
 10755  	// NullFields is a list of field names (e.g. "Count") to include in API
 10756  	// requests with the JSON null value. By default, fields with empty values are
 10757  	// omitted from API requests. See
 10758  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10759  	NullFields []string `json:"-"`
 10760  }
 10761  
 10762  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseFacetFacetValue) MarshalJSON() ([]byte, error) {
 10763  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseFacetFacetValue
 10764  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10765  }
 10766  
 10767  // GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo: Debug
 10768  // information specifically related to forward geocoding issues arising from
 10769  // Geolocation Search.
 10770  type GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo struct {
 10771  	// ErrorMessage: The error produced.
 10772  	ErrorMessage string `json:"errorMessage,omitempty"`
 10773  	// OriginalAddressQuery: The address from which forward geocoding ingestion
 10774  	// produced issues.
 10775  	OriginalAddressQuery string `json:"originalAddressQuery,omitempty"`
 10776  	// ForceSendFields is a list of field names (e.g. "ErrorMessage") to
 10777  	// unconditionally include in API requests. By default, fields with empty or
 10778  	// default values are omitted from API requests. See
 10779  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10780  	// details.
 10781  	ForceSendFields []string `json:"-"`
 10782  	// NullFields is a list of field names (e.g. "ErrorMessage") to include in API
 10783  	// requests with the JSON null value. By default, fields with empty values are
 10784  	// omitted from API requests. See
 10785  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10786  	NullFields []string `json:"-"`
 10787  }
 10788  
 10789  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo) MarshalJSON() ([]byte, error) {
 10790  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo
 10791  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10792  }
 10793  
 10794  // GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult: Guided
 10795  // search result. The guided search helps user to refine the search results and
 10796  // narrow down to the real needs from a broaded search results.
 10797  type GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult struct {
 10798  	// FollowUpQuestions: Suggested follow-up questions.
 10799  	FollowUpQuestions []string `json:"followUpQuestions,omitempty"`
 10800  	// RefinementAttributes: A list of ranked refinement attributes.
 10801  	RefinementAttributes []*GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute `json:"refinementAttributes,omitempty"`
 10802  	// ForceSendFields is a list of field names (e.g. "FollowUpQuestions") to
 10803  	// unconditionally include in API requests. By default, fields with empty or
 10804  	// default values are omitted from API requests. See
 10805  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10806  	// details.
 10807  	ForceSendFields []string `json:"-"`
 10808  	// NullFields is a list of field names (e.g. "FollowUpQuestions") to include in
 10809  	// API requests with the JSON null value. By default, fields with empty values
 10810  	// are omitted from API requests. See
 10811  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10812  	NullFields []string `json:"-"`
 10813  }
 10814  
 10815  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult) MarshalJSON() ([]byte, error) {
 10816  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult
 10817  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10818  }
 10819  
 10820  // GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAtt
 10821  // ribute: Useful attribute for search result refinements.
 10822  type GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute struct {
 10823  	// AttributeKey: Attribute key used to refine the results e.g. 'movie_type'.
 10824  	AttributeKey string `json:"attributeKey,omitempty"`
 10825  	// AttributeValue: Attribute value used to refine the results e.g. 'drama'.
 10826  	AttributeValue string `json:"attributeValue,omitempty"`
 10827  	// ForceSendFields is a list of field names (e.g. "AttributeKey") to
 10828  	// unconditionally include in API requests. By default, fields with empty or
 10829  	// default values are omitted from API requests. See
 10830  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10831  	// details.
 10832  	ForceSendFields []string `json:"-"`
 10833  	// NullFields is a list of field names (e.g. "AttributeKey") to include in API
 10834  	// requests with the JSON null value. By default, fields with empty values are
 10835  	// omitted from API requests. See
 10836  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10837  	NullFields []string `json:"-"`
 10838  }
 10839  
 10840  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute) MarshalJSON() ([]byte, error) {
 10841  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute
 10842  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10843  }
 10844  
 10845  // GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo:
 10846  // Information describing query expansion including whether expansion has
 10847  // occurred.
 10848  type GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo struct {
 10849  	// ExpandedQuery: Bool describing whether query expansion has occurred.
 10850  	ExpandedQuery bool `json:"expandedQuery,omitempty"`
 10851  	// PinnedResultCount: Number of pinned results. This field will only be set
 10852  	// when expansion happens and
 10853  	// SearchRequest.QueryExpansionSpec.pin_unexpanded_results is set to true.
 10854  	PinnedResultCount int64 `json:"pinnedResultCount,omitempty,string"`
 10855  	// ForceSendFields is a list of field names (e.g. "ExpandedQuery") to
 10856  	// unconditionally include in API requests. By default, fields with empty or
 10857  	// default values are omitted from API requests. See
 10858  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10859  	// details.
 10860  	ForceSendFields []string `json:"-"`
 10861  	// NullFields is a list of field names (e.g. "ExpandedQuery") to include in API
 10862  	// requests with the JSON null value. By default, fields with empty values are
 10863  	// omitted from API requests. See
 10864  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10865  	NullFields []string `json:"-"`
 10866  }
 10867  
 10868  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo) MarshalJSON() ([]byte, error) {
 10869  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo
 10870  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10871  }
 10872  
 10873  // GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult: Represents the
 10874  // search results.
 10875  type GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult struct {
 10876  	// Document: The document data snippet in the search response. Only fields that
 10877  	// are marked as retrievable are populated.
 10878  	Document *GoogleCloudDiscoveryengineV1betaDocument `json:"document,omitempty"`
 10879  	// Id: Document.id of the searched Document.
 10880  	Id string `json:"id,omitempty"`
 10881  	// ModelScores: Google provided available scores.
 10882  	ModelScores map[string]GoogleCloudDiscoveryengineV1betaDoubleList `json:"modelScores,omitempty"`
 10883  	// ForceSendFields is a list of field names (e.g. "Document") to
 10884  	// unconditionally include in API requests. By default, fields with empty or
 10885  	// default values are omitted from API requests. See
 10886  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10887  	// details.
 10888  	ForceSendFields []string `json:"-"`
 10889  	// NullFields is a list of field names (e.g. "Document") to include in API
 10890  	// requests with the JSON null value. By default, fields with empty values are
 10891  	// omitted from API requests. See
 10892  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10893  	NullFields []string `json:"-"`
 10894  }
 10895  
 10896  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult) MarshalJSON() ([]byte, error) {
 10897  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult
 10898  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10899  }
 10900  
 10901  // GoogleCloudDiscoveryengineV1betaSearchResponseSummary: Summary of the top N
 10902  // search result specified by the summary spec.
 10903  type GoogleCloudDiscoveryengineV1betaSearchResponseSummary struct {
 10904  	// SafetyAttributes: A collection of Safety Attribute categories and their
 10905  	// associated confidence scores.
 10906  	SafetyAttributes *GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes `json:"safetyAttributes,omitempty"`
 10907  	// SummarySkippedReasons: Additional summary-skipped reasons. This provides the
 10908  	// reason for ignored cases. If nothing is skipped, this field is not set.
 10909  	//
 10910  	// Possible values:
 10911  	//   "SUMMARY_SKIPPED_REASON_UNSPECIFIED" - Default value. The summary skipped
 10912  	// reason is not specified.
 10913  	//   "ADVERSARIAL_QUERY_IGNORED" - The adversarial query ignored case. Only
 10914  	// populated when SummarySpec.ignore_adversarial_query is set to `true`.
 10915  	//   "NON_SUMMARY_SEEKING_QUERY_IGNORED" - The non-summary seeking query
 10916  	// ignored case. Only populated when
 10917  	// SummarySpec.ignore_non_summary_seeking_query is set to `true`.
 10918  	//   "OUT_OF_DOMAIN_QUERY_IGNORED" - The out-of-domain query ignored case.
 10919  	// Google skips the summary if there are no high-relevance search results. For
 10920  	// example, the data store contains facts about company A but the user query is
 10921  	// asking questions about company B.
 10922  	//   "POTENTIAL_POLICY_VIOLATION" - The potential policy violation case. Google
 10923  	// skips the summary if there is a potential policy violation detected. This
 10924  	// includes content that may be violent or toxic.
 10925  	//   "LLM_ADDON_NOT_ENABLED" - The LLM addon not enabled case. Google skips the
 10926  	// summary if the LLM addon is not enabled.
 10927  	SummarySkippedReasons []string `json:"summarySkippedReasons,omitempty"`
 10928  	// SummaryText: The summary content.
 10929  	SummaryText string `json:"summaryText,omitempty"`
 10930  	// SummaryWithMetadata: Summary with metadata information.
 10931  	SummaryWithMetadata *GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata `json:"summaryWithMetadata,omitempty"`
 10932  	// ForceSendFields is a list of field names (e.g. "SafetyAttributes") to
 10933  	// unconditionally include in API requests. By default, fields with empty or
 10934  	// default values are omitted from API requests. See
 10935  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10936  	// details.
 10937  	ForceSendFields []string `json:"-"`
 10938  	// NullFields is a list of field names (e.g. "SafetyAttributes") to include in
 10939  	// API requests with the JSON null value. By default, fields with empty values
 10940  	// are omitted from API requests. See
 10941  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10942  	NullFields []string `json:"-"`
 10943  }
 10944  
 10945  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummary) MarshalJSON() ([]byte, error) {
 10946  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummary
 10947  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10948  }
 10949  
 10950  // GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitation: Citation info
 10951  // for a segment.
 10952  type GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitation struct {
 10953  	// EndIndex: End of the attributed segment, exclusive.
 10954  	EndIndex int64 `json:"endIndex,omitempty,string"`
 10955  	// Sources: Citation sources for the attributed segment.
 10956  	Sources []*GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationSource `json:"sources,omitempty"`
 10957  	// StartIndex: Index indicates the start of the segment, measured in
 10958  	// bytes/unicode.
 10959  	StartIndex int64 `json:"startIndex,omitempty,string"`
 10960  	// ForceSendFields is a list of field names (e.g. "EndIndex") to
 10961  	// unconditionally include in API requests. By default, fields with empty or
 10962  	// default values are omitted from API requests. See
 10963  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10964  	// details.
 10965  	ForceSendFields []string `json:"-"`
 10966  	// NullFields is a list of field names (e.g. "EndIndex") to include in API
 10967  	// requests with the JSON null value. By default, fields with empty values are
 10968  	// omitted from API requests. See
 10969  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10970  	NullFields []string `json:"-"`
 10971  }
 10972  
 10973  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitation) MarshalJSON() ([]byte, error) {
 10974  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitation
 10975  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10976  }
 10977  
 10978  // GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationMetadata:
 10979  // Citation metadata.
 10980  type GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationMetadata struct {
 10981  	// Citations: Citations for segments.
 10982  	Citations []*GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitation `json:"citations,omitempty"`
 10983  	// ForceSendFields is a list of field names (e.g. "Citations") to
 10984  	// unconditionally include in API requests. By default, fields with empty or
 10985  	// default values are omitted from API requests. See
 10986  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 10987  	// details.
 10988  	ForceSendFields []string `json:"-"`
 10989  	// NullFields is a list of field names (e.g. "Citations") to include in API
 10990  	// requests with the JSON null value. By default, fields with empty values are
 10991  	// omitted from API requests. See
 10992  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 10993  	NullFields []string `json:"-"`
 10994  }
 10995  
 10996  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationMetadata) MarshalJSON() ([]byte, error) {
 10997  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationMetadata
 10998  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 10999  }
 11000  
 11001  // GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationSource:
 11002  // Citation source.
 11003  type GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationSource struct {
 11004  	// ReferenceIndex: Document reference index from
 11005  	// SummaryWithMetadata.references. It is 0-indexed and the value will be zero
 11006  	// if the reference_index is not set explicitly.
 11007  	ReferenceIndex int64 `json:"referenceIndex,omitempty,string"`
 11008  	// ForceSendFields is a list of field names (e.g. "ReferenceIndex") to
 11009  	// unconditionally include in API requests. By default, fields with empty or
 11010  	// default values are omitted from API requests. See
 11011  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11012  	// details.
 11013  	ForceSendFields []string `json:"-"`
 11014  	// NullFields is a list of field names (e.g. "ReferenceIndex") to include in
 11015  	// API requests with the JSON null value. By default, fields with empty values
 11016  	// are omitted from API requests. See
 11017  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11018  	NullFields []string `json:"-"`
 11019  }
 11020  
 11021  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationSource) MarshalJSON() ([]byte, error) {
 11022  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationSource
 11023  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11024  }
 11025  
 11026  // GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReference: Document
 11027  // reference.
 11028  type GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReference struct {
 11029  	// ChunkContents: List of cited chunk contents derived from document content.
 11030  	ChunkContents []*GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent `json:"chunkContents,omitempty"`
 11031  	// Document: Required. Document.name of the document. Full resource name of the
 11032  	// referenced document, in the format
 11033  	// `projects/*/locations/*/collections/*/dataStores/*/branches/*/documents/*`.
 11034  	Document string `json:"document,omitempty"`
 11035  	// Title: Title of the document.
 11036  	Title string `json:"title,omitempty"`
 11037  	// Uri: Cloud Storage or HTTP uri for the document.
 11038  	Uri string `json:"uri,omitempty"`
 11039  	// ForceSendFields is a list of field names (e.g. "ChunkContents") to
 11040  	// unconditionally include in API requests. By default, fields with empty or
 11041  	// default values are omitted from API requests. See
 11042  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11043  	// details.
 11044  	ForceSendFields []string `json:"-"`
 11045  	// NullFields is a list of field names (e.g. "ChunkContents") to include in API
 11046  	// requests with the JSON null value. By default, fields with empty values are
 11047  	// omitted from API requests. See
 11048  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11049  	NullFields []string `json:"-"`
 11050  }
 11051  
 11052  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReference) MarshalJSON() ([]byte, error) {
 11053  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReference
 11054  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11055  }
 11056  
 11057  // GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent:
 11058  // Chunk content.
 11059  type GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent struct {
 11060  	// Content: Chunk textual content.
 11061  	Content string `json:"content,omitempty"`
 11062  	// PageIdentifier: Page identifier.
 11063  	PageIdentifier string `json:"pageIdentifier,omitempty"`
 11064  	// ForceSendFields is a list of field names (e.g. "Content") to unconditionally
 11065  	// include in API requests. By default, fields with empty or default values are
 11066  	// omitted from API requests. See
 11067  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11068  	// details.
 11069  	ForceSendFields []string `json:"-"`
 11070  	// NullFields is a list of field names (e.g. "Content") to include in API
 11071  	// requests with the JSON null value. By default, fields with empty values are
 11072  	// omitted from API requests. See
 11073  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11074  	NullFields []string `json:"-"`
 11075  }
 11076  
 11077  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent) MarshalJSON() ([]byte, error) {
 11078  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent
 11079  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11080  }
 11081  
 11082  // GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes:
 11083  // Safety Attribute categories and their associated confidence scores.
 11084  type GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes struct {
 11085  	// Categories: The display names of Safety Attribute categories associated with
 11086  	// the generated content. Order matches the Scores.
 11087  	Categories []string `json:"categories,omitempty"`
 11088  	// Scores: The confidence scores of the each category, higher value means
 11089  	// higher confidence. Order matches the Categories.
 11090  	Scores []float64 `json:"scores,omitempty"`
 11091  	// ForceSendFields is a list of field names (e.g. "Categories") to
 11092  	// unconditionally include in API requests. By default, fields with empty or
 11093  	// default values are omitted from API requests. See
 11094  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11095  	// details.
 11096  	ForceSendFields []string `json:"-"`
 11097  	// NullFields is a list of field names (e.g. "Categories") to include in API
 11098  	// requests with the JSON null value. By default, fields with empty values are
 11099  	// omitted from API requests. See
 11100  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11101  	NullFields []string `json:"-"`
 11102  }
 11103  
 11104  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes) MarshalJSON() ([]byte, error) {
 11105  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes
 11106  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11107  }
 11108  
 11109  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes) UnmarshalJSON(data []byte) error {
 11110  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes
 11111  	var s1 struct {
 11112  		Scores []gensupport.JSONFloat64 `json:"scores"`
 11113  		*NoMethod
 11114  	}
 11115  	s1.NoMethod = (*NoMethod)(s)
 11116  	if err := json.Unmarshal(data, &s1); err != nil {
 11117  		return err
 11118  	}
 11119  	s.Scores = make([]float64, len(s1.Scores))
 11120  	for i := range s1.Scores {
 11121  		s.Scores[i] = float64(s1.Scores[i])
 11122  	}
 11123  	return nil
 11124  }
 11125  
 11126  // GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata:
 11127  // Summary with metadata information.
 11128  type GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata struct {
 11129  	// CitationMetadata: Citation metadata for given summary.
 11130  	CitationMetadata *GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationMetadata `json:"citationMetadata,omitempty"`
 11131  	// References: Document References.
 11132  	References []*GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReference `json:"references,omitempty"`
 11133  	// Summary: Summary text with no citation information.
 11134  	Summary string `json:"summary,omitempty"`
 11135  	// ForceSendFields is a list of field names (e.g. "CitationMetadata") to
 11136  	// unconditionally include in API requests. By default, fields with empty or
 11137  	// default values are omitted from API requests. See
 11138  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11139  	// details.
 11140  	ForceSendFields []string `json:"-"`
 11141  	// NullFields is a list of field names (e.g. "CitationMetadata") to include in
 11142  	// API requests with the JSON null value. By default, fields with empty values
 11143  	// are omitted from API requests. See
 11144  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11145  	NullFields []string `json:"-"`
 11146  }
 11147  
 11148  func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata) MarshalJSON() ([]byte, error) {
 11149  	type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata
 11150  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11151  }
 11152  
 11153  // GoogleCloudDiscoveryengineV1betaServingConfig: Configures metadata that is
 11154  // used to generate serving time results (e.g. search results or recommendation
 11155  // predictions). The ServingConfig is passed in the search and predict request
 11156  // and generates results.
 11157  type GoogleCloudDiscoveryengineV1betaServingConfig struct {
 11158  	// BoostControlIds: Boost controls to use in serving path. All triggered boost
 11159  	// controls will be applied. Boost controls must be in the same data store as
 11160  	// the serving config. Maximum of 20 boost controls.
 11161  	BoostControlIds []string `json:"boostControlIds,omitempty"`
 11162  	// CreateTime: Output only. ServingConfig created timestamp.
 11163  	CreateTime string `json:"createTime,omitempty"`
 11164  	// DisplayName: Required. The human readable serving config display name. Used
 11165  	// in Discovery UI. This field must be a UTF-8 encoded string with a length
 11166  	// limit of 128 characters. Otherwise, an INVALID_ARGUMENT error is returned.
 11167  	DisplayName string `json:"displayName,omitempty"`
 11168  	// DissociateControlIds: Condition do not associate specifications. If multiple
 11169  	// do not associate conditions match, all matching do not associate controls in
 11170  	// the list will execute. Order does not matter. Maximum number of
 11171  	// specifications is 100. Can only be set if SolutionType is
 11172  	// SOLUTION_TYPE_SEARCH.
 11173  	DissociateControlIds []string `json:"dissociateControlIds,omitempty"`
 11174  	// DiversityLevel: How much diversity to use in recommendation model results
 11175  	// e.g. `medium-diversity` or `high-diversity`. Currently supported values: *
 11176  	// `no-diversity` * `low-diversity` * `medium-diversity` * `high-diversity` *
 11177  	// `auto-diversity` If not specified, we choose default based on recommendation
 11178  	// model type. Default value: `no-diversity`. Can only be set if SolutionType
 11179  	// is SOLUTION_TYPE_RECOMMENDATION.
 11180  	DiversityLevel string `json:"diversityLevel,omitempty"`
 11181  	// EmbeddingConfig: Bring your own embedding config. The config is used for
 11182  	// search semantic retrieval. The retrieval is based on the dot product of
 11183  	// SearchRequest.EmbeddingSpec.EmbeddingVector.vector and the document
 11184  	// embeddings that are provided by this EmbeddingConfig. If
 11185  	// SearchRequest.EmbeddingSpec.EmbeddingVector.vector is provided, it overrides
 11186  	// this ServingConfig.embedding_config.
 11187  	EmbeddingConfig *GoogleCloudDiscoveryengineV1betaEmbeddingConfig `json:"embeddingConfig,omitempty"`
 11188  	// FilterControlIds: Filter controls to use in serving path. All triggered
 11189  	// filter controls will be applied. Filter controls must be in the same data
 11190  	// store as the serving config. Maximum of 20 filter controls.
 11191  	FilterControlIds []string `json:"filterControlIds,omitempty"`
 11192  	// GenericConfig: The GenericConfig of the serving configuration.
 11193  	GenericConfig *GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig `json:"genericConfig,omitempty"`
 11194  	// IgnoreControlIds: Condition ignore specifications. If multiple ignore
 11195  	// conditions match, all matching ignore controls in the list will execute.
 11196  	// Order does not matter. Maximum number of specifications is 100.
 11197  	IgnoreControlIds []string `json:"ignoreControlIds,omitempty"`
 11198  	// MediaConfig: The MediaConfig of the serving configuration.
 11199  	MediaConfig *GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig `json:"mediaConfig,omitempty"`
 11200  	// ModelId: The id of the model to use at serving time. Currently only
 11201  	// RecommendationModels are supported. Can be changed but only to a compatible
 11202  	// model (e.g. others-you-may-like CTR to others-you-may-like CVR). Required
 11203  	// when SolutionType is SOLUTION_TYPE_RECOMMENDATION.
 11204  	ModelId string `json:"modelId,omitempty"`
 11205  	// Name: Immutable. Fully qualified name
 11206  	// `projects/{project}/locations/{location}/collections/{collection_id}/engines/
 11207  	// {engine_id}/servingConfigs/{serving_config_id}`
 11208  	Name string `json:"name,omitempty"`
 11209  	// OnewaySynonymsControlIds: Condition oneway synonyms specifications. If
 11210  	// multiple oneway synonyms conditions match, all matching oneway synonyms
 11211  	// controls in the list will execute. Maximum number of specifications is 100.
 11212  	// Can only be set if SolutionType is SOLUTION_TYPE_SEARCH.
 11213  	OnewaySynonymsControlIds []string `json:"onewaySynonymsControlIds,omitempty"`
 11214  	// RankingExpression: The ranking expression controls the customized ranking on
 11215  	// retrieval documents. To leverage this, document embedding is required. The
 11216  	// ranking expression setting in ServingConfig applies to all search requests
 11217  	// served by the serving config. However, if SearchRequest.ranking_expression
 11218  	// is specified, it overrides the ServingConfig ranking expression. The ranking
 11219  	// expression is a single function or multiple functions that are joined by
 11220  	// "+". * ranking_expression = function, { " + ", function }; Supported
 11221  	// functions: * double * relevance_score * double *
 11222  	// dotProduct(embedding_field_path) Function variables: relevance_score:
 11223  	// pre-defined keywords, used for measure relevance between query and document.
 11224  	// embedding_field_path: the document embedding field used with query embedding
 11225  	// vector. dotProduct: embedding function between embedding_field_path and
 11226  	// query embedding vector. Example ranking expression: If document has an
 11227  	// embedding field doc_embedding, the ranking expression could be 0.5 *
 11228  	// relevance_score + 0.3 * dotProduct(doc_embedding).
 11229  	RankingExpression string `json:"rankingExpression,omitempty"`
 11230  	// RedirectControlIds: IDs of the redirect controls. Only the first triggered
 11231  	// redirect action is applied, even if multiple apply. Maximum number of
 11232  	// specifications is 100. Can only be set if SolutionType is
 11233  	// SOLUTION_TYPE_SEARCH.
 11234  	RedirectControlIds []string `json:"redirectControlIds,omitempty"`
 11235  	// ReplacementControlIds: Condition replacement specifications. Applied
 11236  	// according to the order in the list. A previously replaced term can not be
 11237  	// re-replaced. Maximum number of specifications is 100. Can only be set if
 11238  	// SolutionType is SOLUTION_TYPE_SEARCH.
 11239  	ReplacementControlIds []string `json:"replacementControlIds,omitempty"`
 11240  	// SolutionType: Required. Immutable. Specifies the solution type that a
 11241  	// serving config can be associated with.
 11242  	//
 11243  	// Possible values:
 11244  	//   "SOLUTION_TYPE_UNSPECIFIED" - Default value.
 11245  	//   "SOLUTION_TYPE_RECOMMENDATION" - Used for Recommendations AI.
 11246  	//   "SOLUTION_TYPE_SEARCH" - Used for Discovery Search.
 11247  	//   "SOLUTION_TYPE_CHAT" - Used for use cases related to the Generative AI
 11248  	// agent.
 11249  	//   "SOLUTION_TYPE_GENERATIVE_CHAT" - Used for use cases related to the
 11250  	// Generative Chat agent. It's used for Generative chat engine only, the
 11251  	// associated data stores must enrolled with `SOLUTION_TYPE_CHAT` solution.
 11252  	SolutionType string `json:"solutionType,omitempty"`
 11253  	// SynonymsControlIds: Condition synonyms specifications. If multiple synonyms
 11254  	// conditions match, all matching synonyms controls in the list will execute.
 11255  	// Maximum number of specifications is 100. Can only be set if SolutionType is
 11256  	// SOLUTION_TYPE_SEARCH.
 11257  	SynonymsControlIds []string `json:"synonymsControlIds,omitempty"`
 11258  	// UpdateTime: Output only. ServingConfig updated timestamp.
 11259  	UpdateTime string `json:"updateTime,omitempty"`
 11260  
 11261  	// ServerResponse contains the HTTP response code and headers from the server.
 11262  	googleapi.ServerResponse `json:"-"`
 11263  	// ForceSendFields is a list of field names (e.g. "BoostControlIds") to
 11264  	// unconditionally include in API requests. By default, fields with empty or
 11265  	// default values are omitted from API requests. See
 11266  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11267  	// details.
 11268  	ForceSendFields []string `json:"-"`
 11269  	// NullFields is a list of field names (e.g. "BoostControlIds") to include in
 11270  	// API requests with the JSON null value. By default, fields with empty values
 11271  	// are omitted from API requests. See
 11272  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11273  	NullFields []string `json:"-"`
 11274  }
 11275  
 11276  func (s *GoogleCloudDiscoveryengineV1betaServingConfig) MarshalJSON() ([]byte, error) {
 11277  	type NoMethod GoogleCloudDiscoveryengineV1betaServingConfig
 11278  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11279  }
 11280  
 11281  // GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig: Specifies the
 11282  // configurations needed for Generic Discovery.Currently we support: *
 11283  // `content_search_spec`: configuration for generic content search.
 11284  type GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig struct {
 11285  	// ContentSearchSpec: Specifies the expected behavior of content search. Only
 11286  	// valid for content-search enabled data store.
 11287  	ContentSearchSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec `json:"contentSearchSpec,omitempty"`
 11288  	// ForceSendFields is a list of field names (e.g. "ContentSearchSpec") to
 11289  	// unconditionally include in API requests. By default, fields with empty or
 11290  	// default values are omitted from API requests. See
 11291  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11292  	// details.
 11293  	ForceSendFields []string `json:"-"`
 11294  	// NullFields is a list of field names (e.g. "ContentSearchSpec") to include in
 11295  	// API requests with the JSON null value. By default, fields with empty values
 11296  	// are omitted from API requests. See
 11297  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11298  	NullFields []string `json:"-"`
 11299  }
 11300  
 11301  func (s *GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig) MarshalJSON() ([]byte, error) {
 11302  	type NoMethod GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig
 11303  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11304  }
 11305  
 11306  // GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig: Specifies the
 11307  // configurations needed for Media Discovery. Currently we support: *
 11308  // `demote_content_watched`: Threshold for watched content demotion. Customers
 11309  // can specify if using watched content demotion or use viewed detail page.
 11310  // Using the content watched demotion, customers need to specify the watched
 11311  // minutes or percentage exceeds the threshold, the content will be demoted in
 11312  // the recommendation result. * `promote_fresh_content`: cutoff days for fresh
 11313  // content promotion. Customers can specify if using content freshness
 11314  // promotion. If the content was published within the cutoff days, the content
 11315  // will be promoted in the recommendation result. Can only be set if
 11316  // SolutionType is SOLUTION_TYPE_RECOMMENDATION.
 11317  type GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig struct {
 11318  	// ContentFreshnessCutoffDays: Specifies the content freshness used for
 11319  	// recommendation result. Contents will be demoted if contents were published
 11320  	// for more than content freshness cutoff days.
 11321  	ContentFreshnessCutoffDays int64 `json:"contentFreshnessCutoffDays,omitempty"`
 11322  	// ContentWatchedPercentageThreshold: Specifies the content watched percentage
 11323  	// threshold for demotion. Threshold value must be between [0, 1.0] inclusive.
 11324  	ContentWatchedPercentageThreshold float64 `json:"contentWatchedPercentageThreshold,omitempty"`
 11325  	// ContentWatchedSecondsThreshold: Specifies the content watched minutes
 11326  	// threshold for demotion.
 11327  	ContentWatchedSecondsThreshold float64 `json:"contentWatchedSecondsThreshold,omitempty"`
 11328  	// DemotionEventType: Specifies the event type used for demoting recommendation
 11329  	// result. Currently supported values: * `view-item`: Item viewed. *
 11330  	// `media-play`: Start/resume watching a video, playing a song, etc. *
 11331  	// `media-complete`: Finished or stopped midway through a video, song, etc. If
 11332  	// unset, watch history demotion will not be applied. Content freshness
 11333  	// demotion will still be applied.
 11334  	DemotionEventType string `json:"demotionEventType,omitempty"`
 11335  	// ForceSendFields is a list of field names (e.g. "ContentFreshnessCutoffDays")
 11336  	// to unconditionally include in API requests. By default, fields with empty or
 11337  	// default values are omitted from API requests. See
 11338  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11339  	// details.
 11340  	ForceSendFields []string `json:"-"`
 11341  	// NullFields is a list of field names (e.g. "ContentFreshnessCutoffDays") to
 11342  	// include in API requests with the JSON null value. By default, fields with
 11343  	// empty values are omitted from API requests. See
 11344  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11345  	NullFields []string `json:"-"`
 11346  }
 11347  
 11348  func (s *GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig) MarshalJSON() ([]byte, error) {
 11349  	type NoMethod GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig
 11350  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11351  }
 11352  
 11353  func (s *GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig) UnmarshalJSON(data []byte) error {
 11354  	type NoMethod GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig
 11355  	var s1 struct {
 11356  		ContentWatchedPercentageThreshold gensupport.JSONFloat64 `json:"contentWatchedPercentageThreshold"`
 11357  		ContentWatchedSecondsThreshold    gensupport.JSONFloat64 `json:"contentWatchedSecondsThreshold"`
 11358  		*NoMethod
 11359  	}
 11360  	s1.NoMethod = (*NoMethod)(s)
 11361  	if err := json.Unmarshal(data, &s1); err != nil {
 11362  		return err
 11363  	}
 11364  	s.ContentWatchedPercentageThreshold = float64(s1.ContentWatchedPercentageThreshold)
 11365  	s.ContentWatchedSecondsThreshold = float64(s1.ContentWatchedSecondsThreshold)
 11366  	return nil
 11367  }
 11368  
 11369  // GoogleCloudDiscoveryengineV1betaSession: External session proto definition.
 11370  type GoogleCloudDiscoveryengineV1betaSession struct {
 11371  	// EndTime: Output only. The time the session finished.
 11372  	EndTime string `json:"endTime,omitempty"`
 11373  	// Name: Immutable. Fully qualified name
 11374  	// `projects/{project}/locations/global/collections/{collection}/engines/{engine
 11375  	// }/sessions/*`
 11376  	Name string `json:"name,omitempty"`
 11377  	// StartTime: Output only. The time the session started.
 11378  	StartTime string `json:"startTime,omitempty"`
 11379  	// State: The state of the session.
 11380  	//
 11381  	// Possible values:
 11382  	//   "STATE_UNSPECIFIED" - State is unspecified.
 11383  	//   "IN_PROGRESS" - The session is currently open.
 11384  	State string `json:"state,omitempty"`
 11385  	// Turns: Turns.
 11386  	Turns []*GoogleCloudDiscoveryengineV1betaSessionTurn `json:"turns,omitempty"`
 11387  	// UserPseudoId: A unique identifier for tracking users.
 11388  	UserPseudoId string `json:"userPseudoId,omitempty"`
 11389  
 11390  	// ServerResponse contains the HTTP response code and headers from the server.
 11391  	googleapi.ServerResponse `json:"-"`
 11392  	// ForceSendFields is a list of field names (e.g. "EndTime") to unconditionally
 11393  	// include in API requests. By default, fields with empty or default values are
 11394  	// omitted from API requests. See
 11395  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11396  	// details.
 11397  	ForceSendFields []string `json:"-"`
 11398  	// NullFields is a list of field names (e.g. "EndTime") to include in API
 11399  	// requests with the JSON null value. By default, fields with empty values are
 11400  	// omitted from API requests. See
 11401  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11402  	NullFields []string `json:"-"`
 11403  }
 11404  
 11405  func (s *GoogleCloudDiscoveryengineV1betaSession) MarshalJSON() ([]byte, error) {
 11406  	type NoMethod GoogleCloudDiscoveryengineV1betaSession
 11407  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11408  }
 11409  
 11410  // GoogleCloudDiscoveryengineV1betaSessionTurn: Represents a turn, including a
 11411  // query from the user and a answer from service.
 11412  type GoogleCloudDiscoveryengineV1betaSessionTurn struct {
 11413  	// Answer: The resource name of the answer to the user query.
 11414  	Answer string `json:"answer,omitempty"`
 11415  	// Query: The user query.
 11416  	Query *GoogleCloudDiscoveryengineV1betaQuery `json:"query,omitempty"`
 11417  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
 11418  	// include in API requests. By default, fields with empty or default values are
 11419  	// omitted from API requests. See
 11420  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11421  	// details.
 11422  	ForceSendFields []string `json:"-"`
 11423  	// NullFields is a list of field names (e.g. "Answer") to include in API
 11424  	// requests with the JSON null value. By default, fields with empty values are
 11425  	// omitted from API requests. See
 11426  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11427  	NullFields []string `json:"-"`
 11428  }
 11429  
 11430  func (s *GoogleCloudDiscoveryengineV1betaSessionTurn) MarshalJSON() ([]byte, error) {
 11431  	type NoMethod GoogleCloudDiscoveryengineV1betaSessionTurn
 11432  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11433  }
 11434  
 11435  // GoogleCloudDiscoveryengineV1betaSiteSearchEngine: SiteSearchEngine captures
 11436  // DataStore level site search persisting configurations. It is a singleton
 11437  // value per data store.
 11438  type GoogleCloudDiscoveryengineV1betaSiteSearchEngine struct {
 11439  	// Name: The fully qualified resource name of the site search engine. Format:
 11440  	// `projects/*/locations/*/dataStores/*/siteSearchEngine`
 11441  	Name string `json:"name,omitempty"`
 11442  
 11443  	// ServerResponse contains the HTTP response code and headers from the server.
 11444  	googleapi.ServerResponse `json:"-"`
 11445  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
 11446  	// include in API requests. By default, fields with empty or default values are
 11447  	// omitted from API requests. See
 11448  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11449  	// details.
 11450  	ForceSendFields []string `json:"-"`
 11451  	// NullFields is a list of field names (e.g. "Name") to include in API requests
 11452  	// with the JSON null value. By default, fields with empty values are omitted
 11453  	// from API requests. See
 11454  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11455  	NullFields []string `json:"-"`
 11456  }
 11457  
 11458  func (s *GoogleCloudDiscoveryengineV1betaSiteSearchEngine) MarshalJSON() ([]byte, error) {
 11459  	type NoMethod GoogleCloudDiscoveryengineV1betaSiteSearchEngine
 11460  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11461  }
 11462  
 11463  // GoogleCloudDiscoveryengineV1betaSiteVerificationInfo: Verification
 11464  // information for target sites in advanced site search.
 11465  type GoogleCloudDiscoveryengineV1betaSiteVerificationInfo struct {
 11466  	// SiteVerificationState: Site verification state indicating the ownership and
 11467  	// validity.
 11468  	//
 11469  	// Possible values:
 11470  	//   "SITE_VERIFICATION_STATE_UNSPECIFIED" - Defaults to VERIFIED.
 11471  	//   "VERIFIED" - Site ownership verified.
 11472  	//   "UNVERIFIED" - Site ownership pending verification or verification failed.
 11473  	//   "EXEMPTED" - Site exempt from verification, e.g., a public website that
 11474  	// opens to all.
 11475  	SiteVerificationState string `json:"siteVerificationState,omitempty"`
 11476  	// VerifyTime: Latest site verification time.
 11477  	VerifyTime string `json:"verifyTime,omitempty"`
 11478  	// ForceSendFields is a list of field names (e.g. "SiteVerificationState") to
 11479  	// unconditionally include in API requests. By default, fields with empty or
 11480  	// default values are omitted from API requests. See
 11481  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11482  	// details.
 11483  	ForceSendFields []string `json:"-"`
 11484  	// NullFields is a list of field names (e.g. "SiteVerificationState") to
 11485  	// include in API requests with the JSON null value. By default, fields with
 11486  	// empty values are omitted from API requests. See
 11487  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11488  	NullFields []string `json:"-"`
 11489  }
 11490  
 11491  func (s *GoogleCloudDiscoveryengineV1betaSiteVerificationInfo) MarshalJSON() ([]byte, error) {
 11492  	type NoMethod GoogleCloudDiscoveryengineV1betaSiteVerificationInfo
 11493  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11494  }
 11495  
 11496  // GoogleCloudDiscoveryengineV1betaSpannerSource: The Spanner source for
 11497  // importing data
 11498  type GoogleCloudDiscoveryengineV1betaSpannerSource struct {
 11499  	// DatabaseId: Required. The database ID of the source Spanner table.
 11500  	DatabaseId string `json:"databaseId,omitempty"`
 11501  	// EnableDataBoost: Whether to apply data boost on Spanner export. Enabling
 11502  	// this option will incur additional cost. More info can be found here
 11503  	// (https://cloud.google.com/spanner/docs/databoost/databoost-overview#billing_and_quotas).
 11504  	EnableDataBoost bool `json:"enableDataBoost,omitempty"`
 11505  	// InstanceId: Required. The instance ID of the source Spanner table.
 11506  	InstanceId string `json:"instanceId,omitempty"`
 11507  	// ProjectId: The project ID that the Spanner source is in with a length limit
 11508  	// of 128 characters. If not specified, inherits the project ID from the parent
 11509  	// request.
 11510  	ProjectId string `json:"projectId,omitempty"`
 11511  	// TableId: Required. The table name of the Spanner database that needs to be
 11512  	// imported.
 11513  	TableId string `json:"tableId,omitempty"`
 11514  	// ForceSendFields is a list of field names (e.g. "DatabaseId") to
 11515  	// unconditionally include in API requests. By default, fields with empty or
 11516  	// default values are omitted from API requests. See
 11517  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11518  	// details.
 11519  	ForceSendFields []string `json:"-"`
 11520  	// NullFields is a list of field names (e.g. "DatabaseId") to include in API
 11521  	// requests with the JSON null value. By default, fields with empty values are
 11522  	// omitted from API requests. See
 11523  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11524  	NullFields []string `json:"-"`
 11525  }
 11526  
 11527  func (s *GoogleCloudDiscoveryengineV1betaSpannerSource) MarshalJSON() ([]byte, error) {
 11528  	type NoMethod GoogleCloudDiscoveryengineV1betaSpannerSource
 11529  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11530  }
 11531  
 11532  // GoogleCloudDiscoveryengineV1betaSuggestionDenyListEntry: Suggestion deny
 11533  // list entry identifying the phrase to block from suggestions and the applied
 11534  // operation for the phrase.
 11535  type GoogleCloudDiscoveryengineV1betaSuggestionDenyListEntry struct {
 11536  	// BlockPhrase: Required. Phrase to block from suggestions served. Can be
 11537  	// maximum 125 characters.
 11538  	BlockPhrase string `json:"blockPhrase,omitempty"`
 11539  	// MatchOperator: Required. The match operator to apply for this phrase.
 11540  	// Whether to block the exact phrase, or block any suggestions containing this
 11541  	// phrase.
 11542  	//
 11543  	// Possible values:
 11544  	//   "MATCH_OPERATOR_UNSPECIFIED" - Default value. Should not be used
 11545  	//   "EXACT_MATCH" - If the suggestion is an exact match to the block_phrase,
 11546  	// then block it.
 11547  	//   "CONTAINS" - If the suggestion contains the block_phrase, then block it.
 11548  	MatchOperator string `json:"matchOperator,omitempty"`
 11549  	// ForceSendFields is a list of field names (e.g. "BlockPhrase") to
 11550  	// unconditionally include in API requests. By default, fields with empty or
 11551  	// default values are omitted from API requests. See
 11552  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11553  	// details.
 11554  	ForceSendFields []string `json:"-"`
 11555  	// NullFields is a list of field names (e.g. "BlockPhrase") to include in API
 11556  	// requests with the JSON null value. By default, fields with empty values are
 11557  	// omitted from API requests. See
 11558  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11559  	NullFields []string `json:"-"`
 11560  }
 11561  
 11562  func (s *GoogleCloudDiscoveryengineV1betaSuggestionDenyListEntry) MarshalJSON() ([]byte, error) {
 11563  	type NoMethod GoogleCloudDiscoveryengineV1betaSuggestionDenyListEntry
 11564  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11565  }
 11566  
 11567  // GoogleCloudDiscoveryengineV1betaTargetSite: A target site for the
 11568  // SiteSearchEngine.
 11569  type GoogleCloudDiscoveryengineV1betaTargetSite struct {
 11570  	// ExactMatch: Input only. If set to false, a uri_pattern is generated to
 11571  	// include all pages whose address contains the provided_uri_pattern. If set to
 11572  	// true, an uri_pattern is generated to try to be an exact match of the
 11573  	// provided_uri_pattern or just the specific page if the provided_uri_pattern
 11574  	// is a specific one. provided_uri_pattern is always normalized to generate the
 11575  	// URI pattern to be used by the search engine.
 11576  	ExactMatch bool `json:"exactMatch,omitempty"`
 11577  	// FailureReason: Output only. Failure reason.
 11578  	FailureReason *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason `json:"failureReason,omitempty"`
 11579  	// GeneratedUriPattern: Output only. This is system-generated based on the
 11580  	// provided_uri_pattern.
 11581  	GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
 11582  	// IndexingStatus: Output only. Indexing status.
 11583  	//
 11584  	// Possible values:
 11585  	//   "INDEXING_STATUS_UNSPECIFIED" - Defaults to SUCCEEDED.
 11586  	//   "PENDING" - The target site is in the update queue and will be picked up
 11587  	// by indexing pipeline.
 11588  	//   "FAILED" - The target site fails to be indexed.
 11589  	//   "SUCCEEDED" - The target site has been indexed.
 11590  	//   "DELETING" - The previously indexed target site has been marked to be
 11591  	// deleted. This is a transitioning state which will resulted in either: 1.
 11592  	// target site deleted if unindexing is successful; 2. state reverts to
 11593  	// SUCCEEDED if the unindexing fails.
 11594  	IndexingStatus string `json:"indexingStatus,omitempty"`
 11595  	// Name: Output only. The fully qualified resource name of the target site.
 11596  	// `projects/{project}/locations/{location}/collections/{collection}/dataStores/
 11597  	// {data_store}/siteSearchEngine/targetSites/{target_site}` The
 11598  	// `target_site_id` is system-generated.
 11599  	Name string `json:"name,omitempty"`
 11600  	// ProvidedUriPattern: Required. Input only. The user provided URI pattern from
 11601  	// which the `generated_uri_pattern` is generated.
 11602  	ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
 11603  	// RootDomainUri: Output only. Root domain of the provided_uri_pattern.
 11604  	RootDomainUri string `json:"rootDomainUri,omitempty"`
 11605  	// SiteVerificationInfo: Output only. Site ownership and validity verification
 11606  	// status.
 11607  	SiteVerificationInfo *GoogleCloudDiscoveryengineV1betaSiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
 11608  	// Type: The type of the target site, e.g., whether the site is to be included
 11609  	// or excluded.
 11610  	//
 11611  	// Possible values:
 11612  	//   "TYPE_UNSPECIFIED" - This value is unused. In this case, server behavior
 11613  	// defaults to Type.INCLUDE.
 11614  	//   "INCLUDE" - Include the target site.
 11615  	//   "EXCLUDE" - Exclude the target site.
 11616  	Type string `json:"type,omitempty"`
 11617  	// UpdateTime: Output only. The target site's last updated time.
 11618  	UpdateTime string `json:"updateTime,omitempty"`
 11619  
 11620  	// ServerResponse contains the HTTP response code and headers from the server.
 11621  	googleapi.ServerResponse `json:"-"`
 11622  	// ForceSendFields is a list of field names (e.g. "ExactMatch") to
 11623  	// unconditionally include in API requests. By default, fields with empty or
 11624  	// default values are omitted from API requests. See
 11625  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11626  	// details.
 11627  	ForceSendFields []string `json:"-"`
 11628  	// NullFields is a list of field names (e.g. "ExactMatch") to include in API
 11629  	// requests with the JSON null value. By default, fields with empty values are
 11630  	// omitted from API requests. See
 11631  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11632  	NullFields []string `json:"-"`
 11633  }
 11634  
 11635  func (s *GoogleCloudDiscoveryengineV1betaTargetSite) MarshalJSON() ([]byte, error) {
 11636  	type NoMethod GoogleCloudDiscoveryengineV1betaTargetSite
 11637  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11638  }
 11639  
 11640  // GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason: Site search
 11641  // indexing failure reasons.
 11642  type GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason struct {
 11643  	// QuotaFailure: Failed due to insufficient quota.
 11644  	QuotaFailure *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
 11645  	// ForceSendFields is a list of field names (e.g. "QuotaFailure") to
 11646  	// unconditionally include in API requests. By default, fields with empty or
 11647  	// default values are omitted from API requests. See
 11648  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11649  	// details.
 11650  	ForceSendFields []string `json:"-"`
 11651  	// NullFields is a list of field names (e.g. "QuotaFailure") to include in API
 11652  	// requests with the JSON null value. By default, fields with empty values are
 11653  	// omitted from API requests. See
 11654  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11655  	NullFields []string `json:"-"`
 11656  }
 11657  
 11658  func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason) MarshalJSON() ([]byte, error) {
 11659  	type NoMethod GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason
 11660  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11661  }
 11662  
 11663  // GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure: Failed
 11664  // due to insufficient quota.
 11665  type GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure struct {
 11666  	// TotalRequiredQuota: This number is an estimation on how much total quota
 11667  	// this project needs to successfully complete indexing.
 11668  	TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
 11669  	// ForceSendFields is a list of field names (e.g. "TotalRequiredQuota") to
 11670  	// unconditionally include in API requests. By default, fields with empty or
 11671  	// default values are omitted from API requests. See
 11672  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11673  	// details.
 11674  	ForceSendFields []string `json:"-"`
 11675  	// NullFields is a list of field names (e.g. "TotalRequiredQuota") to include
 11676  	// in API requests with the JSON null value. By default, fields with empty
 11677  	// values are omitted from API requests. See
 11678  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11679  	NullFields []string `json:"-"`
 11680  }
 11681  
 11682  func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
 11683  	type NoMethod GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure
 11684  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11685  }
 11686  
 11687  // GoogleCloudDiscoveryengineV1betaTextInput: Defines text input.
 11688  type GoogleCloudDiscoveryengineV1betaTextInput struct {
 11689  	// Context: Conversation context of the input.
 11690  	Context *GoogleCloudDiscoveryengineV1betaConversationContext `json:"context,omitempty"`
 11691  	// Input: Text input.
 11692  	Input string `json:"input,omitempty"`
 11693  	// ForceSendFields is a list of field names (e.g. "Context") to unconditionally
 11694  	// include in API requests. By default, fields with empty or default values are
 11695  	// omitted from API requests. See
 11696  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11697  	// details.
 11698  	ForceSendFields []string `json:"-"`
 11699  	// NullFields is a list of field names (e.g. "Context") to include in API
 11700  	// requests with the JSON null value. By default, fields with empty values are
 11701  	// omitted from API requests. See
 11702  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11703  	NullFields []string `json:"-"`
 11704  }
 11705  
 11706  func (s *GoogleCloudDiscoveryengineV1betaTextInput) MarshalJSON() ([]byte, error) {
 11707  	type NoMethod GoogleCloudDiscoveryengineV1betaTextInput
 11708  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11709  }
 11710  
 11711  // GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata: Metadata related
 11712  // to the progress of the TrainCustomModel operation. This is returned by the
 11713  // google.longrunning.Operation.metadata field.
 11714  type GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata struct {
 11715  	// CreateTime: Operation create time.
 11716  	CreateTime string `json:"createTime,omitempty"`
 11717  	// UpdateTime: Operation last update time. If the operation is done, this is
 11718  	// also the finish time.
 11719  	UpdateTime string `json:"updateTime,omitempty"`
 11720  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11721  	// unconditionally include in API requests. By default, fields with empty or
 11722  	// default values are omitted from API requests. See
 11723  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11724  	// details.
 11725  	ForceSendFields []string `json:"-"`
 11726  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11727  	// requests with the JSON null value. By default, fields with empty values are
 11728  	// omitted from API requests. See
 11729  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11730  	NullFields []string `json:"-"`
 11731  }
 11732  
 11733  func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) {
 11734  	type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata
 11735  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11736  }
 11737  
 11738  // GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest: Request message for
 11739  // SearchTuningService.TrainCustomModel method.
 11740  type GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest struct {
 11741  	// ErrorConfig: The desired location of errors incurred during the data
 11742  	// ingestion and training.
 11743  	ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
 11744  	// GcsTrainingInput: Cloud Storage training input.
 11745  	GcsTrainingInput *GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput `json:"gcsTrainingInput,omitempty"`
 11746  	// ModelId: If not provided, a UUID will be generated.
 11747  	ModelId string `json:"modelId,omitempty"`
 11748  	// ModelType: Model to be trained. Supported values are: * **search-tuning**:
 11749  	// Fine tuning the search system based on data provided.
 11750  	ModelType string `json:"modelType,omitempty"`
 11751  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
 11752  	// unconditionally include in API requests. By default, fields with empty or
 11753  	// default values are omitted from API requests. See
 11754  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11755  	// details.
 11756  	ForceSendFields []string `json:"-"`
 11757  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
 11758  	// requests with the JSON null value. By default, fields with empty values are
 11759  	// omitted from API requests. See
 11760  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11761  	NullFields []string `json:"-"`
 11762  }
 11763  
 11764  func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest) MarshalJSON() ([]byte, error) {
 11765  	type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest
 11766  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11767  }
 11768  
 11769  // GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput:
 11770  // Cloud Storage training data input.
 11771  type GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput struct {
 11772  	// CorpusDataPath: The Cloud Storage corpus data which could be associated in
 11773  	// train data. The data path format is `gs:///`. A newline delimited
 11774  	// jsonl/ndjson file. For search-tuning model, each line should have the _id,
 11775  	// title and text. Example: `{"_id": "doc1", title: "relevant doc", "text":
 11776  	// "relevant text"}`
 11777  	CorpusDataPath string `json:"corpusDataPath,omitempty"`
 11778  	// QueryDataPath: The gcs query data which could be associated in train data.
 11779  	// The data path format is `gs:///`. A newline delimited jsonl/ndjson file. For
 11780  	// search-tuning model, each line should have the _id and text. Example:
 11781  	// {"_id": "query1", "text": "example query"}
 11782  	QueryDataPath string `json:"queryDataPath,omitempty"`
 11783  	// TestDataPath: Cloud Storage test data. Same format as train_data_path. If
 11784  	// not provided, a random 80/20 train/test split will be performed on
 11785  	// train_data_path.
 11786  	TestDataPath string `json:"testDataPath,omitempty"`
 11787  	// TrainDataPath: Cloud Storage training data path whose format should be
 11788  	// `gs:///`. The file should be in tsv format. Each line should have the doc_id
 11789  	// and query_id and score (number). For search-tuning model, it should have the
 11790  	// query-id corpus-id score as tsv file header. The score should be a number in
 11791  	// `[0, inf+)`. The larger the number is, the more relevant the pair is.
 11792  	// Example: * `query-id\tcorpus-id\tscore` * `query1\tdoc1\t1`
 11793  	TrainDataPath string `json:"trainDataPath,omitempty"`
 11794  	// ForceSendFields is a list of field names (e.g. "CorpusDataPath") to
 11795  	// unconditionally include in API requests. By default, fields with empty or
 11796  	// default values are omitted from API requests. See
 11797  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11798  	// details.
 11799  	ForceSendFields []string `json:"-"`
 11800  	// NullFields is a list of field names (e.g. "CorpusDataPath") to include in
 11801  	// API requests with the JSON null value. By default, fields with empty values
 11802  	// are omitted from API requests. See
 11803  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11804  	NullFields []string `json:"-"`
 11805  }
 11806  
 11807  func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput) MarshalJSON() ([]byte, error) {
 11808  	type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput
 11809  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11810  }
 11811  
 11812  // GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse: Response of the
 11813  // TrainCustomModelRequest. This message is returned by the
 11814  // google.longrunning.Operations.response field.
 11815  type GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse struct {
 11816  	// ErrorConfig: Echoes the destination for the complete errors in the request
 11817  	// if set.
 11818  	ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
 11819  	// ErrorSamples: A sample of errors encountered while processing the data.
 11820  	ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
 11821  	// Metrics: The metrics of the trained model.
 11822  	Metrics map[string]float64 `json:"metrics,omitempty"`
 11823  	// ModelName: Fully qualified name of the CustomTuningModel.
 11824  	ModelName string `json:"modelName,omitempty"`
 11825  	// ModelStatus: The trained model status. Possible values are: * **bad-data**:
 11826  	// The training data quality is bad. * **no-improvement**: Tuning didn't
 11827  	// improve performance. Won't deploy. * **in-progress**: Model training job
 11828  	// creation is in progress. * **training**: Model is actively training. *
 11829  	// **evaluating**: The model is evaluating trained metrics. * **indexing**: The
 11830  	// model trained metrics are indexing. * **ready**: The model is ready for
 11831  	// serving.
 11832  	ModelStatus string `json:"modelStatus,omitempty"`
 11833  	// ForceSendFields is a list of field names (e.g. "ErrorConfig") to
 11834  	// unconditionally include in API requests. By default, fields with empty or
 11835  	// default values are omitted from API requests. See
 11836  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11837  	// details.
 11838  	ForceSendFields []string `json:"-"`
 11839  	// NullFields is a list of field names (e.g. "ErrorConfig") to include in API
 11840  	// requests with the JSON null value. By default, fields with empty values are
 11841  	// omitted from API requests. See
 11842  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11843  	NullFields []string `json:"-"`
 11844  }
 11845  
 11846  func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse) MarshalJSON() ([]byte, error) {
 11847  	type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse
 11848  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11849  }
 11850  
 11851  // GoogleCloudDiscoveryengineV1betaTransactionInfo: A transaction represents
 11852  // the entire purchase transaction.
 11853  type GoogleCloudDiscoveryengineV1betaTransactionInfo struct {
 11854  	// Cost: All the costs associated with the products. These can be manufacturing
 11855  	// costs, shipping expenses not borne by the end user, or any other costs, such
 11856  	// that: * Profit = value - tax - cost
 11857  	Cost float64 `json:"cost,omitempty"`
 11858  	// Currency: Required. Currency code. Use three-character ISO-4217 code.
 11859  	Currency string `json:"currency,omitempty"`
 11860  	// DiscountValue: The total discount(s) value applied to this transaction. This
 11861  	// figure should be excluded from TransactionInfo.value For example, if a user
 11862  	// paid TransactionInfo.value amount, then nominal (pre-discount) value of the
 11863  	// transaction is the sum of TransactionInfo.value and
 11864  	// TransactionInfo.discount_value This means that profit is calculated the same
 11865  	// way, regardless of the discount value, and that
 11866  	// TransactionInfo.discount_value can be larger than TransactionInfo.value: *
 11867  	// Profit = value - tax - cost
 11868  	DiscountValue float64 `json:"discountValue,omitempty"`
 11869  	// Tax: All the taxes associated with the transaction.
 11870  	Tax float64 `json:"tax,omitempty"`
 11871  	// TransactionId: The transaction ID with a length limit of 128 characters.
 11872  	TransactionId string `json:"transactionId,omitempty"`
 11873  	// Value: Required. Total non-zero value associated with the transaction. This
 11874  	// value may include shipping, tax, or other adjustments to the total value
 11875  	// that you want to include.
 11876  	Value float64 `json:"value,omitempty"`
 11877  	// ForceSendFields is a list of field names (e.g. "Cost") to unconditionally
 11878  	// include in API requests. By default, fields with empty or default values are
 11879  	// omitted from API requests. See
 11880  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11881  	// details.
 11882  	ForceSendFields []string `json:"-"`
 11883  	// NullFields is a list of field names (e.g. "Cost") to include in API requests
 11884  	// with the JSON null value. By default, fields with empty values are omitted
 11885  	// from API requests. See
 11886  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11887  	NullFields []string `json:"-"`
 11888  }
 11889  
 11890  func (s *GoogleCloudDiscoveryengineV1betaTransactionInfo) MarshalJSON() ([]byte, error) {
 11891  	type NoMethod GoogleCloudDiscoveryengineV1betaTransactionInfo
 11892  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11893  }
 11894  
 11895  func (s *GoogleCloudDiscoveryengineV1betaTransactionInfo) UnmarshalJSON(data []byte) error {
 11896  	type NoMethod GoogleCloudDiscoveryengineV1betaTransactionInfo
 11897  	var s1 struct {
 11898  		Cost          gensupport.JSONFloat64 `json:"cost"`
 11899  		DiscountValue gensupport.JSONFloat64 `json:"discountValue"`
 11900  		Tax           gensupport.JSONFloat64 `json:"tax"`
 11901  		Value         gensupport.JSONFloat64 `json:"value"`
 11902  		*NoMethod
 11903  	}
 11904  	s1.NoMethod = (*NoMethod)(s)
 11905  	if err := json.Unmarshal(data, &s1); err != nil {
 11906  		return err
 11907  	}
 11908  	s.Cost = float64(s1.Cost)
 11909  	s.DiscountValue = float64(s1.DiscountValue)
 11910  	s.Tax = float64(s1.Tax)
 11911  	s.Value = float64(s1.Value)
 11912  	return nil
 11913  }
 11914  
 11915  // GoogleCloudDiscoveryengineV1betaTuneEngineMetadata: Metadata associated with
 11916  // a tune operation.
 11917  type GoogleCloudDiscoveryengineV1betaTuneEngineMetadata struct {
 11918  	// Engine: Required. The resource name of the engine that this tune applies to.
 11919  	// Format:
 11920  	// `projects/{project_number}/locations/{location_id}/collections/{collection_id
 11921  	// }/engines/{engine_id}`
 11922  	Engine string `json:"engine,omitempty"`
 11923  	// ForceSendFields is a list of field names (e.g. "Engine") to unconditionally
 11924  	// include in API requests. By default, fields with empty or default values are
 11925  	// 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. "Engine") 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 *GoogleCloudDiscoveryengineV1betaTuneEngineMetadata) MarshalJSON() ([]byte, error) {
 11937  	type NoMethod GoogleCloudDiscoveryengineV1betaTuneEngineMetadata
 11938  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11939  }
 11940  
 11941  // GoogleCloudDiscoveryengineV1betaTuneEngineRequest: Request to manually start
 11942  // a tuning process now (instead of waiting for the periodically scheduled
 11943  // tuning to happen).
 11944  type GoogleCloudDiscoveryengineV1betaTuneEngineRequest struct {
 11945  }
 11946  
 11947  // GoogleCloudDiscoveryengineV1betaTuneEngineResponse: Response associated with
 11948  // a tune operation.
 11949  type GoogleCloudDiscoveryengineV1betaTuneEngineResponse struct {
 11950  }
 11951  
 11952  // GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata: Metadata for
 11953  // UpdateSchema LRO.
 11954  type GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata struct {
 11955  	// CreateTime: Operation create time.
 11956  	CreateTime string `json:"createTime,omitempty"`
 11957  	// UpdateTime: Operation last update time. If the operation is done, this is
 11958  	// also the finish time.
 11959  	UpdateTime string `json:"updateTime,omitempty"`
 11960  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11961  	// unconditionally include in API requests. By default, fields with empty or
 11962  	// default values are omitted from API requests. See
 11963  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11964  	// details.
 11965  	ForceSendFields []string `json:"-"`
 11966  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11967  	// requests with the JSON null value. By default, fields with empty values are
 11968  	// omitted from API requests. See
 11969  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11970  	NullFields []string `json:"-"`
 11971  }
 11972  
 11973  func (s *GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
 11974  	type NoMethod GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata
 11975  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 11976  }
 11977  
 11978  // GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata: Metadata related
 11979  // to the progress of the SiteSearchEngineService.UpdateTargetSite operation.
 11980  // This will be returned by the google.longrunning.Operation.metadata field.
 11981  type GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata struct {
 11982  	// CreateTime: Operation create time.
 11983  	CreateTime string `json:"createTime,omitempty"`
 11984  	// UpdateTime: Operation last update time. If the operation is done, this is
 11985  	// also the finish time.
 11986  	UpdateTime string `json:"updateTime,omitempty"`
 11987  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
 11988  	// unconditionally include in API requests. By default, fields with empty or
 11989  	// default values are omitted from API requests. See
 11990  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 11991  	// details.
 11992  	ForceSendFields []string `json:"-"`
 11993  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
 11994  	// requests with the JSON null value. By default, fields with empty values are
 11995  	// omitted from API requests. See
 11996  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 11997  	NullFields []string `json:"-"`
 11998  }
 11999  
 12000  func (s *GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
 12001  	type NoMethod GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata
 12002  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12003  }
 12004  
 12005  // GoogleCloudDiscoveryengineV1betaUserEvent: UserEvent captures all metadata
 12006  // information Discovery Engine API needs to know about how end users interact
 12007  // with customers' website.
 12008  type GoogleCloudDiscoveryengineV1betaUserEvent struct {
 12009  	// Attributes: Extra user event features to include in the recommendation
 12010  	// model. These attributes must NOT contain data that needs to be parsed or
 12011  	// processed further, e.g. JSON or other encodings. If you provide custom
 12012  	// attributes for ingested user events, also include them in the user events
 12013  	// that you associate with prediction requests. Custom attribute formatting
 12014  	// must be consistent between imported events and events provided with
 12015  	// prediction requests. This lets the Discovery Engine API use those custom
 12016  	// attributes when training models and serving predictions, which helps improve
 12017  	// recommendation quality. This field needs to pass all below criteria,
 12018  	// otherwise an `INVALID_ARGUMENT` error is returned: * The key must be a UTF-8
 12019  	// encoded string with a length limit of 5,000 characters. * For text
 12020  	// attributes, at most 400 values are allowed. Empty values are not allowed.
 12021  	// Each value must be a UTF-8 encoded string with a length limit of 256
 12022  	// characters. * For number attributes, at most 400 values are allowed. For
 12023  	// product recommendations, an example of extra user information is
 12024  	// `traffic_channel`, which is how a user arrives at the site. Users can arrive
 12025  	// at the site by coming to the site directly, coming through Google search, or
 12026  	// in other ways.
 12027  	Attributes map[string]GoogleCloudDiscoveryengineV1betaCustomAttribute `json:"attributes,omitempty"`
 12028  	// AttributionToken: Token to attribute an API response to user action(s) to
 12029  	// trigger the event. Highly recommended for user events that are the result of
 12030  	// RecommendationService.Recommend. This field enables accurate attribution of
 12031  	// recommendation model performance. The value must be one of: *
 12032  	// RecommendResponse.attribution_token for events that are the result of
 12033  	// RecommendationService.Recommend. * SearchResponse.attribution_token for
 12034  	// events that are the result of SearchService.Search. This token enables us to
 12035  	// accurately attribute page view or conversion completion back to the event
 12036  	// and the particular predict response containing this clicked/purchased
 12037  	// product. If user clicks on product K in the recommendation results, pass
 12038  	// RecommendResponse.attribution_token as a URL parameter to product K's page.
 12039  	// When recording events on product K's page, log the
 12040  	// RecommendResponse.attribution_token to this field.
 12041  	AttributionToken string `json:"attributionToken,omitempty"`
 12042  	// CompletionInfo: CompletionService.CompleteQuery details related to the
 12043  	// event. This field should be set for `search` event when autocomplete
 12044  	// function is enabled and the user clicks a suggestion for search.
 12045  	CompletionInfo *GoogleCloudDiscoveryengineV1betaCompletionInfo `json:"completionInfo,omitempty"`
 12046  	// DirectUserRequest: Should set to true if the request is made directly from
 12047  	// the end user, in which case the UserEvent.user_info.user_agent can be
 12048  	// populated from the HTTP request. This flag should be set only if the API
 12049  	// request is made directly from the end user such as a mobile app (and not if
 12050  	// a gateway or a server is processing and pushing the user events). This
 12051  	// should not be set when using the JavaScript tag in
 12052  	// UserEventService.CollectUserEvent.
 12053  	DirectUserRequest bool `json:"directUserRequest,omitempty"`
 12054  	// Documents: List of Documents associated with this user event. This field is
 12055  	// optional except for the following event types: * `view-item` * `add-to-cart`
 12056  	// * `purchase` * `media-play` * `media-complete` In a `search` event, this
 12057  	// field represents the documents returned to the end user on the current page
 12058  	// (the end user may have not finished browsing the whole page yet). When a new
 12059  	// page is returned to the end user, after pagination/filtering/ordering even
 12060  	// for the same query, a new `search` event with different UserEvent.documents
 12061  	// is desired.
 12062  	Documents []*GoogleCloudDiscoveryengineV1betaDocumentInfo `json:"documents,omitempty"`
 12063  	// EventTime: Only required for UserEventService.ImportUserEvents method.
 12064  	// Timestamp of when the user event happened.
 12065  	EventTime string `json:"eventTime,omitempty"`
 12066  	// EventType: Required. User event type. Allowed values are: Generic values: *
 12067  	// `search`: Search for Documents. * `view-item`: Detailed page view of a
 12068  	// Document. * `view-item-list`: View of a panel or ordered list of Documents.
 12069  	// * `view-home-page`: View of the home page. * `view-category-page`: View of a
 12070  	// category page, e.g. Home > Men > Jeans Retail-related values: *
 12071  	// `add-to-cart`: Add an item(s) to cart, e.g. in Retail online shopping *
 12072  	// `purchase`: Purchase an item(s) Media-related values: * `media-play`:
 12073  	// Start/resume watching a video, playing a song, etc. * `media-complete`:
 12074  	// Finished or stopped midway through a video, song, etc.
 12075  	EventType string `json:"eventType,omitempty"`
 12076  	// Filter: The filter syntax consists of an expression language for
 12077  	// constructing a predicate from one or more fields of the documents being
 12078  	// filtered. One example is for `search` events, the associated SearchRequest
 12079  	// may contain a filter expression in SearchRequest.filter conforming to
 12080  	// https://google.aip.dev/160#filtering. Similarly, for `view-item-list` events
 12081  	// that are generated from a RecommendRequest, this field may be populated
 12082  	// directly from RecommendRequest.filter conforming to
 12083  	// https://google.aip.dev/160#filtering. The value must be a UTF-8 encoded
 12084  	// string with a length limit of 1,000 characters. Otherwise, an
 12085  	// `INVALID_ARGUMENT` error is returned.
 12086  	Filter string `json:"filter,omitempty"`
 12087  	// MediaInfo: Media-specific info.
 12088  	MediaInfo *GoogleCloudDiscoveryengineV1betaMediaInfo `json:"mediaInfo,omitempty"`
 12089  	// PageInfo: Page metadata such as categories and other critical information
 12090  	// for certain event types such as `view-category-page`.
 12091  	PageInfo *GoogleCloudDiscoveryengineV1betaPageInfo `json:"pageInfo,omitempty"`
 12092  	// Panel: Panel metadata associated with this user event.
 12093  	Panel *GoogleCloudDiscoveryengineV1betaPanelInfo `json:"panel,omitempty"`
 12094  	// PromotionIds: The promotion IDs if this is an event associated with
 12095  	// promotions. Currently, this field is restricted to at most one ID.
 12096  	PromotionIds []string `json:"promotionIds,omitempty"`
 12097  	// SearchInfo: SearchService.Search details related to the event. This field
 12098  	// should be set for `search` event.
 12099  	SearchInfo *GoogleCloudDiscoveryengineV1betaSearchInfo `json:"searchInfo,omitempty"`
 12100  	// SessionId: A unique identifier for tracking a visitor session with a length
 12101  	// limit of 128 bytes. A session is an aggregation of an end user behavior in a
 12102  	// time span. A general guideline to populate the session_id: 1. If user has no
 12103  	// activity for 30 min, a new session_id should be assigned. 2. The session_id
 12104  	// should be unique across users, suggest use uuid or add
 12105  	// UserEvent.user_pseudo_id as prefix.
 12106  	SessionId string `json:"sessionId,omitempty"`
 12107  	// TagIds: A list of identifiers for the independent experiment groups this
 12108  	// user event belongs to. This is used to distinguish between user events
 12109  	// associated with different experiment setups on the customer end.
 12110  	TagIds []string `json:"tagIds,omitempty"`
 12111  	// TransactionInfo: The transaction metadata (if any) associated with this user
 12112  	// event.
 12113  	TransactionInfo *GoogleCloudDiscoveryengineV1betaTransactionInfo `json:"transactionInfo,omitempty"`
 12114  	// UserInfo: Information about the end user.
 12115  	UserInfo *GoogleCloudDiscoveryengineV1betaUserInfo `json:"userInfo,omitempty"`
 12116  	// UserPseudoId: Required. A unique identifier for tracking visitors. For
 12117  	// example, this could be implemented with an HTTP cookie, which should be able
 12118  	// to uniquely identify a visitor on a single device. This unique identifier
 12119  	// should not change if the visitor log in/out of the website. Do not set the
 12120  	// field to the same fixed ID for different users. This mixes the event history
 12121  	// of those users together, which results in degraded model quality. The field
 12122  	// must be a UTF-8 encoded string with a length limit of 128 characters.
 12123  	// Otherwise, an `INVALID_ARGUMENT` error is returned. The field should not
 12124  	// contain PII or user-data. We recommend to use Google Analytics Client ID
 12125  	// (https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#clientId)
 12126  	// for this field.
 12127  	UserPseudoId string `json:"userPseudoId,omitempty"`
 12128  
 12129  	// ServerResponse contains the HTTP response code and headers from the server.
 12130  	googleapi.ServerResponse `json:"-"`
 12131  	// ForceSendFields is a list of field names (e.g. "Attributes") to
 12132  	// unconditionally include in API requests. By default, fields with empty or
 12133  	// default values are omitted from API requests. See
 12134  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12135  	// details.
 12136  	ForceSendFields []string `json:"-"`
 12137  	// NullFields is a list of field names (e.g. "Attributes") to include in API
 12138  	// requests with the JSON null value. By default, fields with empty values are
 12139  	// omitted from API requests. See
 12140  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12141  	NullFields []string `json:"-"`
 12142  }
 12143  
 12144  func (s *GoogleCloudDiscoveryengineV1betaUserEvent) MarshalJSON() ([]byte, error) {
 12145  	type NoMethod GoogleCloudDiscoveryengineV1betaUserEvent
 12146  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12147  }
 12148  
 12149  // GoogleCloudDiscoveryengineV1betaUserInfo: Information of an end user.
 12150  type GoogleCloudDiscoveryengineV1betaUserInfo struct {
 12151  	// UserAgent: User agent as included in the HTTP header. The field must be a
 12152  	// UTF-8 encoded string with a length limit of 1,000 characters. Otherwise, an
 12153  	// `INVALID_ARGUMENT` error is returned. This should not be set when using the
 12154  	// client side event reporting with GTM or JavaScript tag in
 12155  	// UserEventService.CollectUserEvent or if UserEvent.direct_user_request is
 12156  	// set.
 12157  	UserAgent string `json:"userAgent,omitempty"`
 12158  	// UserId: Highly recommended for logged-in users. Unique identifier for
 12159  	// logged-in user, such as a user name. Don't set for anonymous users. Always
 12160  	// use a hashed value for this ID. Don't set the field to the same fixed ID for
 12161  	// different users. This mixes the event history of those users together, which
 12162  	// results in degraded model quality. The field must be a UTF-8 encoded string
 12163  	// with a length limit of 128 characters. Otherwise, an `INVALID_ARGUMENT`
 12164  	// error is returned.
 12165  	UserId string `json:"userId,omitempty"`
 12166  	// ForceSendFields is a list of field names (e.g. "UserAgent") to
 12167  	// unconditionally include in API requests. By default, fields with empty or
 12168  	// default values are omitted from API requests. See
 12169  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12170  	// details.
 12171  	ForceSendFields []string `json:"-"`
 12172  	// NullFields is a list of field names (e.g. "UserAgent") to include in API
 12173  	// requests with the JSON null value. By default, fields with empty values are
 12174  	// omitted from API requests. See
 12175  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12176  	NullFields []string `json:"-"`
 12177  }
 12178  
 12179  func (s *GoogleCloudDiscoveryengineV1betaUserInfo) MarshalJSON() ([]byte, error) {
 12180  	type NoMethod GoogleCloudDiscoveryengineV1betaUserInfo
 12181  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12182  }
 12183  
 12184  // GoogleLongrunningCancelOperationRequest: The request message for
 12185  // Operations.CancelOperation.
 12186  type GoogleLongrunningCancelOperationRequest struct {
 12187  }
 12188  
 12189  // GoogleLongrunningListOperationsResponse: The response message for
 12190  // Operations.ListOperations.
 12191  type GoogleLongrunningListOperationsResponse struct {
 12192  	// NextPageToken: The standard List next-page token.
 12193  	NextPageToken string `json:"nextPageToken,omitempty"`
 12194  	// Operations: A list of operations that matches the specified filter in the
 12195  	// request.
 12196  	Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
 12197  
 12198  	// ServerResponse contains the HTTP response code and headers from the server.
 12199  	googleapi.ServerResponse `json:"-"`
 12200  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
 12201  	// unconditionally include in API requests. By default, fields with empty or
 12202  	// default values are omitted from API requests. See
 12203  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12204  	// details.
 12205  	ForceSendFields []string `json:"-"`
 12206  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
 12207  	// requests with the JSON null value. By default, fields with empty values are
 12208  	// omitted from API requests. See
 12209  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12210  	NullFields []string `json:"-"`
 12211  }
 12212  
 12213  func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
 12214  	type NoMethod GoogleLongrunningListOperationsResponse
 12215  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12216  }
 12217  
 12218  // GoogleLongrunningOperation: This resource represents a long-running
 12219  // operation that is the result of a network API call.
 12220  type GoogleLongrunningOperation struct {
 12221  	// Done: If the value is `false`, it means the operation is still in progress.
 12222  	// If `true`, the operation is completed, and either `error` or `response` is
 12223  	// available.
 12224  	Done bool `json:"done,omitempty"`
 12225  	// Error: The error result of the operation in case of failure or cancellation.
 12226  	Error *GoogleRpcStatus `json:"error,omitempty"`
 12227  	// Metadata: Service-specific metadata associated with the operation. It
 12228  	// typically contains progress information and common metadata such as create
 12229  	// time. Some services might not provide such metadata. Any method that returns
 12230  	// a long-running operation should document the metadata type, if any.
 12231  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
 12232  	// Name: The server-assigned name, which is only unique within the same service
 12233  	// that originally returns it. If you use the default HTTP mapping, the `name`
 12234  	// should be a resource name ending with `operations/{unique_id}`.
 12235  	Name string `json:"name,omitempty"`
 12236  	// Response: The normal, successful response of the operation. If the original
 12237  	// method returns no data on success, such as `Delete`, the response is
 12238  	// `google.protobuf.Empty`. If the original method is standard
 12239  	// `Get`/`Create`/`Update`, the response should be the resource. For other
 12240  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
 12241  	// original method name. For example, if the original method name is
 12242  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
 12243  	Response googleapi.RawMessage `json:"response,omitempty"`
 12244  
 12245  	// ServerResponse contains the HTTP response code and headers from the server.
 12246  	googleapi.ServerResponse `json:"-"`
 12247  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
 12248  	// include in API requests. By default, fields with empty or default values are
 12249  	// omitted from API requests. See
 12250  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12251  	// details.
 12252  	ForceSendFields []string `json:"-"`
 12253  	// NullFields is a list of field names (e.g. "Done") to include in API requests
 12254  	// with the JSON null value. By default, fields with empty values are omitted
 12255  	// from API requests. See
 12256  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12257  	NullFields []string `json:"-"`
 12258  }
 12259  
 12260  func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
 12261  	type NoMethod GoogleLongrunningOperation
 12262  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12263  }
 12264  
 12265  // GoogleProtobufEmpty: A generic empty message that you can re-use to avoid
 12266  // defining duplicated empty messages in your APIs. A typical example is to use
 12267  // it as the request or the response type of an API method. For instance:
 12268  // service Foo { rpc Bar(google.protobuf.Empty) returns
 12269  // (google.protobuf.Empty); }
 12270  type GoogleProtobufEmpty struct {
 12271  	// ServerResponse contains the HTTP response code and headers from the server.
 12272  	googleapi.ServerResponse `json:"-"`
 12273  }
 12274  
 12275  // GoogleRpcStatus: The `Status` type defines a logical error model that is
 12276  // suitable for different programming environments, including REST APIs and RPC
 12277  // APIs. It is used by gRPC (https://github.com/grpc). Each `Status` message
 12278  // contains three pieces of data: error code, error message, and error details.
 12279  // You can find out more about this error model and how to work with it in the
 12280  // API Design Guide (https://cloud.google.com/apis/design/errors).
 12281  type GoogleRpcStatus struct {
 12282  	// Code: The status code, which should be an enum value of google.rpc.Code.
 12283  	Code int64 `json:"code,omitempty"`
 12284  	// Details: A list of messages that carry the error details. There is a common
 12285  	// set of message types for APIs to use.
 12286  	Details []googleapi.RawMessage `json:"details,omitempty"`
 12287  	// Message: A developer-facing error message, which should be in English. Any
 12288  	// user-facing error message should be localized and sent in the
 12289  	// google.rpc.Status.details field, or localized by the client.
 12290  	Message string `json:"message,omitempty"`
 12291  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
 12292  	// include in API requests. By default, fields with empty or default values are
 12293  	// omitted from API requests. See
 12294  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12295  	// details.
 12296  	ForceSendFields []string `json:"-"`
 12297  	// NullFields is a list of field names (e.g. "Code") to include in API requests
 12298  	// with the JSON null value. By default, fields with empty values are omitted
 12299  	// from API requests. See
 12300  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12301  	NullFields []string `json:"-"`
 12302  }
 12303  
 12304  func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
 12305  	type NoMethod GoogleRpcStatus
 12306  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12307  }
 12308  
 12309  // GoogleTypeDate: Represents a whole or partial calendar date, such as a
 12310  // birthday. The time of day and time zone are either specified elsewhere or
 12311  // are insignificant. The date is relative to the Gregorian Calendar. This can
 12312  // represent one of the following: * A full date, with non-zero year, month,
 12313  // and day values. * A month and day, with a zero year (for example, an
 12314  // anniversary). * A year on its own, with a zero month and a zero day. * A
 12315  // year and month, with a zero day (for example, a credit card expiration
 12316  // date). Related types: * google.type.TimeOfDay * google.type.DateTime *
 12317  // google.protobuf.Timestamp
 12318  type GoogleTypeDate struct {
 12319  	// Day: Day of a month. Must be from 1 to 31 and valid for the year and month,
 12320  	// or 0 to specify a year by itself or a year and month where the day isn't
 12321  	// significant.
 12322  	Day int64 `json:"day,omitempty"`
 12323  	// Month: Month of a year. Must be from 1 to 12, or 0 to specify a year without
 12324  	// a month and day.
 12325  	Month int64 `json:"month,omitempty"`
 12326  	// Year: Year of the date. Must be from 1 to 9999, or 0 to specify a date
 12327  	// without a year.
 12328  	Year int64 `json:"year,omitempty"`
 12329  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
 12330  	// include in API requests. By default, fields with empty or default values are
 12331  	// omitted from API requests. See
 12332  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
 12333  	// details.
 12334  	ForceSendFields []string `json:"-"`
 12335  	// NullFields is a list of field names (e.g. "Day") to include in API requests
 12336  	// with the JSON null value. By default, fields with empty values are omitted
 12337  	// from API requests. See
 12338  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
 12339  	NullFields []string `json:"-"`
 12340  }
 12341  
 12342  func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
 12343  	type NoMethod GoogleTypeDate
 12344  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
 12345  }
 12346  
 12347  type ProjectsLocationsCollectionsDataConnectorOperationsGetCall struct {
 12348  	s            *Service
 12349  	name         string
 12350  	urlParams_   gensupport.URLParams
 12351  	ifNoneMatch_ string
 12352  	ctx_         context.Context
 12353  	header_      http.Header
 12354  }
 12355  
 12356  // Get: Gets the latest state of a long-running operation. Clients can use this
 12357  // method to poll the operation result at intervals as recommended by the API
 12358  // service.
 12359  //
 12360  // - name: The name of the operation resource.
 12361  func (r *ProjectsLocationsCollectionsDataConnectorOperationsService) Get(name string) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
 12362  	c := &ProjectsLocationsCollectionsDataConnectorOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12363  	c.name = name
 12364  	return c
 12365  }
 12366  
 12367  // Fields allows partial responses to be retrieved. See
 12368  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12369  // details.
 12370  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
 12371  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12372  	return c
 12373  }
 12374  
 12375  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12376  // object's ETag matches the given value. This is useful for getting updates
 12377  // only after the object has changed since the last request.
 12378  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
 12379  	c.ifNoneMatch_ = entityTag
 12380  	return c
 12381  }
 12382  
 12383  // Context sets the context to be used in this call's Do method.
 12384  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
 12385  	c.ctx_ = ctx
 12386  	return c
 12387  }
 12388  
 12389  // Header returns a http.Header that can be modified by the caller to add
 12390  // headers to the request.
 12391  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Header() http.Header {
 12392  	if c.header_ == nil {
 12393  		c.header_ = make(http.Header)
 12394  	}
 12395  	return c.header_
 12396  }
 12397  
 12398  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 12399  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12400  	if c.ifNoneMatch_ != "" {
 12401  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12402  	}
 12403  	var body io.Reader = nil
 12404  	c.urlParams_.Set("alt", alt)
 12405  	c.urlParams_.Set("prettyPrint", "false")
 12406  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 12407  	urls += "?" + c.urlParams_.Encode()
 12408  	req, err := http.NewRequest("GET", urls, body)
 12409  	if err != nil {
 12410  		return nil, err
 12411  	}
 12412  	req.Header = reqHeaders
 12413  	googleapi.Expand(req.URL, map[string]string{
 12414  		"name": c.name,
 12415  	})
 12416  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12417  }
 12418  
 12419  // Do executes the "discoveryengine.projects.locations.collections.dataConnector.operations.get" call.
 12420  // Any non-2xx status code is an error. Response headers are in either
 12421  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12422  // returned at all) in error.(*googleapi.Error).Header. Use
 12423  // googleapi.IsNotModified to check whether the returned error was because
 12424  // http.StatusNotModified was returned.
 12425  func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12426  	gensupport.SetOptions(c.urlParams_, opts...)
 12427  	res, err := c.doRequest("json")
 12428  	if res != nil && res.StatusCode == http.StatusNotModified {
 12429  		if res.Body != nil {
 12430  			res.Body.Close()
 12431  		}
 12432  		return nil, gensupport.WrapError(&googleapi.Error{
 12433  			Code:   res.StatusCode,
 12434  			Header: res.Header,
 12435  		})
 12436  	}
 12437  	if err != nil {
 12438  		return nil, err
 12439  	}
 12440  	defer googleapi.CloseBody(res)
 12441  	if err := googleapi.CheckResponse(res); err != nil {
 12442  		return nil, gensupport.WrapError(err)
 12443  	}
 12444  	ret := &GoogleLongrunningOperation{
 12445  		ServerResponse: googleapi.ServerResponse{
 12446  			Header:         res.Header,
 12447  			HTTPStatusCode: res.StatusCode,
 12448  		},
 12449  	}
 12450  	target := &ret
 12451  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12452  		return nil, err
 12453  	}
 12454  	return ret, nil
 12455  }
 12456  
 12457  type ProjectsLocationsCollectionsDataConnectorOperationsListCall struct {
 12458  	s            *Service
 12459  	name         string
 12460  	urlParams_   gensupport.URLParams
 12461  	ifNoneMatch_ string
 12462  	ctx_         context.Context
 12463  	header_      http.Header
 12464  }
 12465  
 12466  // List: Lists operations that match the specified filter in the request. If
 12467  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 12468  //
 12469  // - name: The name of the operation's parent resource.
 12470  func (r *ProjectsLocationsCollectionsDataConnectorOperationsService) List(name string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 12471  	c := &ProjectsLocationsCollectionsDataConnectorOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12472  	c.name = name
 12473  	return c
 12474  }
 12475  
 12476  // Filter sets the optional parameter "filter": The standard list filter.
 12477  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 12478  	c.urlParams_.Set("filter", filter)
 12479  	return c
 12480  }
 12481  
 12482  // PageSize sets the optional parameter "pageSize": The standard list page
 12483  // size.
 12484  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 12485  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12486  	return c
 12487  }
 12488  
 12489  // PageToken sets the optional parameter "pageToken": The standard list page
 12490  // token.
 12491  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 12492  	c.urlParams_.Set("pageToken", pageToken)
 12493  	return c
 12494  }
 12495  
 12496  // Fields allows partial responses to be retrieved. See
 12497  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12498  // details.
 12499  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 12500  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12501  	return c
 12502  }
 12503  
 12504  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12505  // object's ETag matches the given value. This is useful for getting updates
 12506  // only after the object has changed since the last request.
 12507  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 12508  	c.ifNoneMatch_ = entityTag
 12509  	return c
 12510  }
 12511  
 12512  // Context sets the context to be used in this call's Do method.
 12513  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
 12514  	c.ctx_ = ctx
 12515  	return c
 12516  }
 12517  
 12518  // Header returns a http.Header that can be modified by the caller to add
 12519  // headers to the request.
 12520  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Header() http.Header {
 12521  	if c.header_ == nil {
 12522  		c.header_ = make(http.Header)
 12523  	}
 12524  	return c.header_
 12525  }
 12526  
 12527  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) doRequest(alt string) (*http.Response, error) {
 12528  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12529  	if c.ifNoneMatch_ != "" {
 12530  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12531  	}
 12532  	var body io.Reader = nil
 12533  	c.urlParams_.Set("alt", alt)
 12534  	c.urlParams_.Set("prettyPrint", "false")
 12535  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 12536  	urls += "?" + c.urlParams_.Encode()
 12537  	req, err := http.NewRequest("GET", urls, body)
 12538  	if err != nil {
 12539  		return nil, err
 12540  	}
 12541  	req.Header = reqHeaders
 12542  	googleapi.Expand(req.URL, map[string]string{
 12543  		"name": c.name,
 12544  	})
 12545  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12546  }
 12547  
 12548  // Do executes the "discoveryengine.projects.locations.collections.dataConnector.operations.list" call.
 12549  // Any non-2xx status code is an error. Response headers are in either
 12550  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 12551  // response was returned at all) in error.(*googleapi.Error).Header. Use
 12552  // googleapi.IsNotModified to check whether the returned error was because
 12553  // http.StatusNotModified was returned.
 12554  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 12555  	gensupport.SetOptions(c.urlParams_, opts...)
 12556  	res, err := c.doRequest("json")
 12557  	if res != nil && res.StatusCode == http.StatusNotModified {
 12558  		if res.Body != nil {
 12559  			res.Body.Close()
 12560  		}
 12561  		return nil, gensupport.WrapError(&googleapi.Error{
 12562  			Code:   res.StatusCode,
 12563  			Header: res.Header,
 12564  		})
 12565  	}
 12566  	if err != nil {
 12567  		return nil, err
 12568  	}
 12569  	defer googleapi.CloseBody(res)
 12570  	if err := googleapi.CheckResponse(res); err != nil {
 12571  		return nil, gensupport.WrapError(err)
 12572  	}
 12573  	ret := &GoogleLongrunningListOperationsResponse{
 12574  		ServerResponse: googleapi.ServerResponse{
 12575  			Header:         res.Header,
 12576  			HTTPStatusCode: res.StatusCode,
 12577  		},
 12578  	}
 12579  	target := &ret
 12580  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12581  		return nil, err
 12582  	}
 12583  	return ret, nil
 12584  }
 12585  
 12586  // Pages invokes f for each page of results.
 12587  // A non-nil error returned from f will halt the iteration.
 12588  // The provided context supersedes any context provided to the Context method.
 12589  func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 12590  	c.ctx_ = ctx
 12591  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12592  	for {
 12593  		x, err := c.Do()
 12594  		if err != nil {
 12595  			return err
 12596  		}
 12597  		if err := f(x); err != nil {
 12598  			return err
 12599  		}
 12600  		if x.NextPageToken == "" {
 12601  			return nil
 12602  		}
 12603  		c.PageToken(x.NextPageToken)
 12604  	}
 12605  }
 12606  
 12607  type ProjectsLocationsCollectionsDataStoresCompleteQueryCall struct {
 12608  	s            *Service
 12609  	dataStore    string
 12610  	urlParams_   gensupport.URLParams
 12611  	ifNoneMatch_ string
 12612  	ctx_         context.Context
 12613  	header_      http.Header
 12614  }
 12615  
 12616  // CompleteQuery: Completes the specified user input with keyword suggestions.
 12617  //
 12618  //   - dataStore: The parent data store resource name for which the completion is
 12619  //     performed, such as
 12620  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 12621  //     ult_data_store`.
 12622  func (r *ProjectsLocationsCollectionsDataStoresService) CompleteQuery(dataStore string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 12623  	c := &ProjectsLocationsCollectionsDataStoresCompleteQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12624  	c.dataStore = dataStore
 12625  	return c
 12626  }
 12627  
 12628  // IncludeTailSuggestions sets the optional parameter "includeTailSuggestions":
 12629  // Indicates if tail suggestions should be returned if there are no suggestions
 12630  // that match the full query. Even if set to true, if there are suggestions
 12631  // that match the full query, those are returned and no tail suggestions are
 12632  // returned.
 12633  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) IncludeTailSuggestions(includeTailSuggestions bool) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 12634  	c.urlParams_.Set("includeTailSuggestions", fmt.Sprint(includeTailSuggestions))
 12635  	return c
 12636  }
 12637  
 12638  // Query sets the optional parameter "query": Required. The typeahead input
 12639  // used to fetch suggestions. Maximum length is 128 characters.
 12640  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Query(query string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 12641  	c.urlParams_.Set("query", query)
 12642  	return c
 12643  }
 12644  
 12645  // QueryModel sets the optional parameter "queryModel": Specifies the
 12646  // autocomplete data model. This overrides any model specified in the
 12647  // Configuration > Autocomplete section of the Cloud console. Currently
 12648  // supported values: * `document` - Using suggestions generated from
 12649  // user-imported documents. * `search-history` - Using suggestions generated
 12650  // from the past history of SearchService.Search API calls. Do not use it when
 12651  // there is no traffic for Search API. * `user-event` - Using suggestions
 12652  // generated from user-imported search events. * `document-completable` - Using
 12653  // suggestions taken directly from user-imported document fields marked as
 12654  // completable. Default values: * `document` is the default model for regular
 12655  // dataStores. * `search-history` is the default model for site search
 12656  // dataStores.
 12657  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 12658  	c.urlParams_.Set("queryModel", queryModel)
 12659  	return c
 12660  }
 12661  
 12662  // UserPseudoId sets the optional parameter "userPseudoId": A unique identifier
 12663  // for tracking visitors. For example, this could be implemented with an HTTP
 12664  // cookie, which should be able to uniquely identify a visitor on a single
 12665  // device. This unique identifier should not change if the visitor logs in or
 12666  // out of the website. This field should NOT have a fixed value such as
 12667  // `unknown_visitor`. This should be the same identifier as
 12668  // UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be
 12669  // a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
 12670  // `INVALID_ARGUMENT` error is returned.
 12671  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) UserPseudoId(userPseudoId string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 12672  	c.urlParams_.Set("userPseudoId", userPseudoId)
 12673  	return c
 12674  }
 12675  
 12676  // Fields allows partial responses to be retrieved. See
 12677  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12678  // details.
 12679  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 12680  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12681  	return c
 12682  }
 12683  
 12684  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12685  // object's ETag matches the given value. This is useful for getting updates
 12686  // only after the object has changed since the last request.
 12687  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 12688  	c.ifNoneMatch_ = entityTag
 12689  	return c
 12690  }
 12691  
 12692  // Context sets the context to be used in this call's Do method.
 12693  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
 12694  	c.ctx_ = ctx
 12695  	return c
 12696  }
 12697  
 12698  // Header returns a http.Header that can be modified by the caller to add
 12699  // headers to the request.
 12700  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Header() http.Header {
 12701  	if c.header_ == nil {
 12702  		c.header_ = make(http.Header)
 12703  	}
 12704  	return c.header_
 12705  }
 12706  
 12707  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) doRequest(alt string) (*http.Response, error) {
 12708  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12709  	if c.ifNoneMatch_ != "" {
 12710  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12711  	}
 12712  	var body io.Reader = nil
 12713  	c.urlParams_.Set("alt", alt)
 12714  	c.urlParams_.Set("prettyPrint", "false")
 12715  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+dataStore}:completeQuery")
 12716  	urls += "?" + c.urlParams_.Encode()
 12717  	req, err := http.NewRequest("GET", urls, body)
 12718  	if err != nil {
 12719  		return nil, err
 12720  	}
 12721  	req.Header = reqHeaders
 12722  	googleapi.Expand(req.URL, map[string]string{
 12723  		"dataStore": c.dataStore,
 12724  	})
 12725  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12726  }
 12727  
 12728  // Do executes the "discoveryengine.projects.locations.collections.dataStores.completeQuery" call.
 12729  // Any non-2xx status code is an error. Response headers are in either
 12730  // *GoogleCloudDiscoveryengineV1betaCompleteQueryResponse.ServerResponse.Header
 12731  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 12732  // Use googleapi.IsNotModified to check whether the returned error was because
 12733  // http.StatusNotModified was returned.
 12734  func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaCompleteQueryResponse, error) {
 12735  	gensupport.SetOptions(c.urlParams_, opts...)
 12736  	res, err := c.doRequest("json")
 12737  	if res != nil && res.StatusCode == http.StatusNotModified {
 12738  		if res.Body != nil {
 12739  			res.Body.Close()
 12740  		}
 12741  		return nil, gensupport.WrapError(&googleapi.Error{
 12742  			Code:   res.StatusCode,
 12743  			Header: res.Header,
 12744  		})
 12745  	}
 12746  	if err != nil {
 12747  		return nil, err
 12748  	}
 12749  	defer googleapi.CloseBody(res)
 12750  	if err := googleapi.CheckResponse(res); err != nil {
 12751  		return nil, gensupport.WrapError(err)
 12752  	}
 12753  	ret := &GoogleCloudDiscoveryengineV1betaCompleteQueryResponse{
 12754  		ServerResponse: googleapi.ServerResponse{
 12755  			Header:         res.Header,
 12756  			HTTPStatusCode: res.StatusCode,
 12757  		},
 12758  	}
 12759  	target := &ret
 12760  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12761  		return nil, err
 12762  	}
 12763  	return ret, nil
 12764  }
 12765  
 12766  type ProjectsLocationsCollectionsDataStoresCreateCall struct {
 12767  	s                                         *Service
 12768  	parent                                    string
 12769  	googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore
 12770  	urlParams_                                gensupport.URLParams
 12771  	ctx_                                      context.Context
 12772  	header_                                   http.Header
 12773  }
 12774  
 12775  // Create: Creates a DataStore. DataStore is for storing Documents. To serve
 12776  // these documents for Search, or Recommendation use case, an Engine needs to
 12777  // be created separately.
 12778  //
 12779  //   - parent: The parent resource name, such as
 12780  //     `projects/{project}/locations/{location}/collections/{collection}`.
 12781  func (r *ProjectsLocationsCollectionsDataStoresService) Create(parent string, googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore) *ProjectsLocationsCollectionsDataStoresCreateCall {
 12782  	c := &ProjectsLocationsCollectionsDataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12783  	c.parent = parent
 12784  	c.googleclouddiscoveryenginev1betadatastore = googleclouddiscoveryenginev1betadatastore
 12785  	return c
 12786  }
 12787  
 12788  // CreateAdvancedSiteSearch sets the optional parameter
 12789  // "createAdvancedSiteSearch": A boolean flag indicating whether user want to
 12790  // directly create an advanced data store for site search. If the data store is
 12791  // not configured as site search (GENERIC vertical and PUBLIC_WEBSITE
 12792  // content_config), this flag will be ignored.
 12793  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) CreateAdvancedSiteSearch(createAdvancedSiteSearch bool) *ProjectsLocationsCollectionsDataStoresCreateCall {
 12794  	c.urlParams_.Set("createAdvancedSiteSearch", fmt.Sprint(createAdvancedSiteSearch))
 12795  	return c
 12796  }
 12797  
 12798  // DataStoreId sets the optional parameter "dataStoreId": Required. The ID to
 12799  // use for the DataStore, which will become the final component of the
 12800  // DataStore's resource name. This field must conform to RFC-1034
 12801  // (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
 12802  // characters. Otherwise, an INVALID_ARGUMENT error is returned.
 12803  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) DataStoreId(dataStoreId string) *ProjectsLocationsCollectionsDataStoresCreateCall {
 12804  	c.urlParams_.Set("dataStoreId", dataStoreId)
 12805  	return c
 12806  }
 12807  
 12808  // Fields allows partial responses to be retrieved. See
 12809  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12810  // details.
 12811  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCreateCall {
 12812  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12813  	return c
 12814  }
 12815  
 12816  // Context sets the context to be used in this call's Do method.
 12817  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCreateCall {
 12818  	c.ctx_ = ctx
 12819  	return c
 12820  }
 12821  
 12822  // Header returns a http.Header that can be modified by the caller to add
 12823  // headers to the request.
 12824  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Header() http.Header {
 12825  	if c.header_ == nil {
 12826  		c.header_ = make(http.Header)
 12827  	}
 12828  	return c.header_
 12829  }
 12830  
 12831  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) doRequest(alt string) (*http.Response, error) {
 12832  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12833  	var body io.Reader = nil
 12834  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadatastore)
 12835  	if err != nil {
 12836  		return nil, err
 12837  	}
 12838  	c.urlParams_.Set("alt", alt)
 12839  	c.urlParams_.Set("prettyPrint", "false")
 12840  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/dataStores")
 12841  	urls += "?" + c.urlParams_.Encode()
 12842  	req, err := http.NewRequest("POST", urls, body)
 12843  	if err != nil {
 12844  		return nil, err
 12845  	}
 12846  	req.Header = reqHeaders
 12847  	googleapi.Expand(req.URL, map[string]string{
 12848  		"parent": c.parent,
 12849  	})
 12850  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12851  }
 12852  
 12853  // Do executes the "discoveryengine.projects.locations.collections.dataStores.create" call.
 12854  // Any non-2xx status code is an error. Response headers are in either
 12855  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12856  // returned at all) in error.(*googleapi.Error).Header. Use
 12857  // googleapi.IsNotModified to check whether the returned error was because
 12858  // http.StatusNotModified was returned.
 12859  func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12860  	gensupport.SetOptions(c.urlParams_, opts...)
 12861  	res, err := c.doRequest("json")
 12862  	if res != nil && res.StatusCode == http.StatusNotModified {
 12863  		if res.Body != nil {
 12864  			res.Body.Close()
 12865  		}
 12866  		return nil, gensupport.WrapError(&googleapi.Error{
 12867  			Code:   res.StatusCode,
 12868  			Header: res.Header,
 12869  		})
 12870  	}
 12871  	if err != nil {
 12872  		return nil, err
 12873  	}
 12874  	defer googleapi.CloseBody(res)
 12875  	if err := googleapi.CheckResponse(res); err != nil {
 12876  		return nil, gensupport.WrapError(err)
 12877  	}
 12878  	ret := &GoogleLongrunningOperation{
 12879  		ServerResponse: googleapi.ServerResponse{
 12880  			Header:         res.Header,
 12881  			HTTPStatusCode: res.StatusCode,
 12882  		},
 12883  	}
 12884  	target := &ret
 12885  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12886  		return nil, err
 12887  	}
 12888  	return ret, nil
 12889  }
 12890  
 12891  type ProjectsLocationsCollectionsDataStoresDeleteCall struct {
 12892  	s          *Service
 12893  	name       string
 12894  	urlParams_ gensupport.URLParams
 12895  	ctx_       context.Context
 12896  	header_    http.Header
 12897  }
 12898  
 12899  // Delete: Deletes a DataStore.
 12900  //
 12901  //   - name: Full resource name of DataStore, such as
 12902  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 12903  //     ores/{data_store_id}`. If the caller does not have permission to delete
 12904  //     the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED
 12905  //     error is returned. If the DataStore to delete does not exist, a NOT_FOUND
 12906  //     error is returned.
 12907  func (r *ProjectsLocationsCollectionsDataStoresService) Delete(name string) *ProjectsLocationsCollectionsDataStoresDeleteCall {
 12908  	c := &ProjectsLocationsCollectionsDataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12909  	c.name = name
 12910  	return c
 12911  }
 12912  
 12913  // Fields allows partial responses to be retrieved. See
 12914  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12915  // details.
 12916  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresDeleteCall {
 12917  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12918  	return c
 12919  }
 12920  
 12921  // Context sets the context to be used in this call's Do method.
 12922  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresDeleteCall {
 12923  	c.ctx_ = ctx
 12924  	return c
 12925  }
 12926  
 12927  // Header returns a http.Header that can be modified by the caller to add
 12928  // headers to the request.
 12929  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Header() http.Header {
 12930  	if c.header_ == nil {
 12931  		c.header_ = make(http.Header)
 12932  	}
 12933  	return c.header_
 12934  }
 12935  
 12936  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 12937  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12938  	var body io.Reader = nil
 12939  	c.urlParams_.Set("alt", alt)
 12940  	c.urlParams_.Set("prettyPrint", "false")
 12941  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 12942  	urls += "?" + c.urlParams_.Encode()
 12943  	req, err := http.NewRequest("DELETE", urls, body)
 12944  	if err != nil {
 12945  		return nil, err
 12946  	}
 12947  	req.Header = reqHeaders
 12948  	googleapi.Expand(req.URL, map[string]string{
 12949  		"name": c.name,
 12950  	})
 12951  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12952  }
 12953  
 12954  // Do executes the "discoveryengine.projects.locations.collections.dataStores.delete" call.
 12955  // Any non-2xx status code is an error. Response headers are in either
 12956  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 12957  // returned at all) in error.(*googleapi.Error).Header. Use
 12958  // googleapi.IsNotModified to check whether the returned error was because
 12959  // http.StatusNotModified was returned.
 12960  func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 12961  	gensupport.SetOptions(c.urlParams_, opts...)
 12962  	res, err := c.doRequest("json")
 12963  	if res != nil && res.StatusCode == http.StatusNotModified {
 12964  		if res.Body != nil {
 12965  			res.Body.Close()
 12966  		}
 12967  		return nil, gensupport.WrapError(&googleapi.Error{
 12968  			Code:   res.StatusCode,
 12969  			Header: res.Header,
 12970  		})
 12971  	}
 12972  	if err != nil {
 12973  		return nil, err
 12974  	}
 12975  	defer googleapi.CloseBody(res)
 12976  	if err := googleapi.CheckResponse(res); err != nil {
 12977  		return nil, gensupport.WrapError(err)
 12978  	}
 12979  	ret := &GoogleLongrunningOperation{
 12980  		ServerResponse: googleapi.ServerResponse{
 12981  			Header:         res.Header,
 12982  			HTTPStatusCode: res.StatusCode,
 12983  		},
 12984  	}
 12985  	target := &ret
 12986  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12987  		return nil, err
 12988  	}
 12989  	return ret, nil
 12990  }
 12991  
 12992  type ProjectsLocationsCollectionsDataStoresGetCall struct {
 12993  	s            *Service
 12994  	name         string
 12995  	urlParams_   gensupport.URLParams
 12996  	ifNoneMatch_ string
 12997  	ctx_         context.Context
 12998  	header_      http.Header
 12999  }
 13000  
 13001  // Get: Gets a DataStore.
 13002  //
 13003  //   - name: Full resource name of DataStore, such as
 13004  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 13005  //     ores/{data_store_id}`. If the caller does not have permission to access
 13006  //     the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED
 13007  //     error is returned. If the requested DataStore does not exist, a NOT_FOUND
 13008  //     error is returned.
 13009  func (r *ProjectsLocationsCollectionsDataStoresService) Get(name string) *ProjectsLocationsCollectionsDataStoresGetCall {
 13010  	c := &ProjectsLocationsCollectionsDataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13011  	c.name = name
 13012  	return c
 13013  }
 13014  
 13015  // Fields allows partial responses to be retrieved. See
 13016  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13017  // details.
 13018  func (c *ProjectsLocationsCollectionsDataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetCall {
 13019  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13020  	return c
 13021  }
 13022  
 13023  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13024  // object's ETag matches the given value. This is useful for getting updates
 13025  // only after the object has changed since the last request.
 13026  func (c *ProjectsLocationsCollectionsDataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetCall {
 13027  	c.ifNoneMatch_ = entityTag
 13028  	return c
 13029  }
 13030  
 13031  // Context sets the context to be used in this call's Do method.
 13032  func (c *ProjectsLocationsCollectionsDataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetCall {
 13033  	c.ctx_ = ctx
 13034  	return c
 13035  }
 13036  
 13037  // Header returns a http.Header that can be modified by the caller to add
 13038  // headers to the request.
 13039  func (c *ProjectsLocationsCollectionsDataStoresGetCall) Header() http.Header {
 13040  	if c.header_ == nil {
 13041  		c.header_ = make(http.Header)
 13042  	}
 13043  	return c.header_
 13044  }
 13045  
 13046  func (c *ProjectsLocationsCollectionsDataStoresGetCall) doRequest(alt string) (*http.Response, error) {
 13047  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13048  	if c.ifNoneMatch_ != "" {
 13049  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13050  	}
 13051  	var body io.Reader = nil
 13052  	c.urlParams_.Set("alt", alt)
 13053  	c.urlParams_.Set("prettyPrint", "false")
 13054  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 13055  	urls += "?" + c.urlParams_.Encode()
 13056  	req, err := http.NewRequest("GET", urls, body)
 13057  	if err != nil {
 13058  		return nil, err
 13059  	}
 13060  	req.Header = reqHeaders
 13061  	googleapi.Expand(req.URL, map[string]string{
 13062  		"name": c.name,
 13063  	})
 13064  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13065  }
 13066  
 13067  // Do executes the "discoveryengine.projects.locations.collections.dataStores.get" call.
 13068  // Any non-2xx status code is an error. Response headers are in either
 13069  // *GoogleCloudDiscoveryengineV1betaDataStore.ServerResponse.Header or (if a
 13070  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13071  // googleapi.IsNotModified to check whether the returned error was because
 13072  // http.StatusNotModified was returned.
 13073  func (c *ProjectsLocationsCollectionsDataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDataStore, error) {
 13074  	gensupport.SetOptions(c.urlParams_, opts...)
 13075  	res, err := c.doRequest("json")
 13076  	if res != nil && res.StatusCode == http.StatusNotModified {
 13077  		if res.Body != nil {
 13078  			res.Body.Close()
 13079  		}
 13080  		return nil, gensupport.WrapError(&googleapi.Error{
 13081  			Code:   res.StatusCode,
 13082  			Header: res.Header,
 13083  		})
 13084  	}
 13085  	if err != nil {
 13086  		return nil, err
 13087  	}
 13088  	defer googleapi.CloseBody(res)
 13089  	if err := googleapi.CheckResponse(res); err != nil {
 13090  		return nil, gensupport.WrapError(err)
 13091  	}
 13092  	ret := &GoogleCloudDiscoveryengineV1betaDataStore{
 13093  		ServerResponse: googleapi.ServerResponse{
 13094  			Header:         res.Header,
 13095  			HTTPStatusCode: res.StatusCode,
 13096  		},
 13097  	}
 13098  	target := &ret
 13099  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13100  		return nil, err
 13101  	}
 13102  	return ret, nil
 13103  }
 13104  
 13105  type ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall struct {
 13106  	s            *Service
 13107  	name         string
 13108  	urlParams_   gensupport.URLParams
 13109  	ifNoneMatch_ string
 13110  	ctx_         context.Context
 13111  	header_      http.Header
 13112  }
 13113  
 13114  // GetSiteSearchEngine: Gets the SiteSearchEngine.
 13115  //
 13116  //   - name: Resource name of SiteSearchEngine, such as
 13117  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 13118  //     s/{data_store}/siteSearchEngine`. If the caller does not have permission
 13119  //     to access the [SiteSearchEngine], regardless of whether or not it exists,
 13120  //     a PERMISSION_DENIED error is returned.
 13121  func (r *ProjectsLocationsCollectionsDataStoresService) GetSiteSearchEngine(name string) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
 13122  	c := &ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13123  	c.name = name
 13124  	return c
 13125  }
 13126  
 13127  // Fields allows partial responses to be retrieved. See
 13128  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13129  // details.
 13130  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
 13131  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13132  	return c
 13133  }
 13134  
 13135  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13136  // object's ETag matches the given value. This is useful for getting updates
 13137  // only after the object has changed since the last request.
 13138  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
 13139  	c.ifNoneMatch_ = entityTag
 13140  	return c
 13141  }
 13142  
 13143  // Context sets the context to be used in this call's Do method.
 13144  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
 13145  	c.ctx_ = ctx
 13146  	return c
 13147  }
 13148  
 13149  // Header returns a http.Header that can be modified by the caller to add
 13150  // headers to the request.
 13151  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Header() http.Header {
 13152  	if c.header_ == nil {
 13153  		c.header_ = make(http.Header)
 13154  	}
 13155  	return c.header_
 13156  }
 13157  
 13158  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) doRequest(alt string) (*http.Response, error) {
 13159  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13160  	if c.ifNoneMatch_ != "" {
 13161  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13162  	}
 13163  	var body io.Reader = nil
 13164  	c.urlParams_.Set("alt", alt)
 13165  	c.urlParams_.Set("prettyPrint", "false")
 13166  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 13167  	urls += "?" + c.urlParams_.Encode()
 13168  	req, err := http.NewRequest("GET", urls, body)
 13169  	if err != nil {
 13170  		return nil, err
 13171  	}
 13172  	req.Header = reqHeaders
 13173  	googleapi.Expand(req.URL, map[string]string{
 13174  		"name": c.name,
 13175  	})
 13176  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13177  }
 13178  
 13179  // Do executes the "discoveryengine.projects.locations.collections.dataStores.getSiteSearchEngine" call.
 13180  // Any non-2xx status code is an error. Response headers are in either
 13181  // *GoogleCloudDiscoveryengineV1betaSiteSearchEngine.ServerResponse.Header or
 13182  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 13183  // googleapi.IsNotModified to check whether the returned error was because
 13184  // http.StatusNotModified was returned.
 13185  func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSiteSearchEngine, error) {
 13186  	gensupport.SetOptions(c.urlParams_, opts...)
 13187  	res, err := c.doRequest("json")
 13188  	if res != nil && res.StatusCode == http.StatusNotModified {
 13189  		if res.Body != nil {
 13190  			res.Body.Close()
 13191  		}
 13192  		return nil, gensupport.WrapError(&googleapi.Error{
 13193  			Code:   res.StatusCode,
 13194  			Header: res.Header,
 13195  		})
 13196  	}
 13197  	if err != nil {
 13198  		return nil, err
 13199  	}
 13200  	defer googleapi.CloseBody(res)
 13201  	if err := googleapi.CheckResponse(res); err != nil {
 13202  		return nil, gensupport.WrapError(err)
 13203  	}
 13204  	ret := &GoogleCloudDiscoveryengineV1betaSiteSearchEngine{
 13205  		ServerResponse: googleapi.ServerResponse{
 13206  			Header:         res.Header,
 13207  			HTTPStatusCode: res.StatusCode,
 13208  		},
 13209  	}
 13210  	target := &ret
 13211  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13212  		return nil, err
 13213  	}
 13214  	return ret, nil
 13215  }
 13216  
 13217  type ProjectsLocationsCollectionsDataStoresListCall struct {
 13218  	s            *Service
 13219  	parent       string
 13220  	urlParams_   gensupport.URLParams
 13221  	ifNoneMatch_ string
 13222  	ctx_         context.Context
 13223  	header_      http.Header
 13224  }
 13225  
 13226  // List: Lists all the DataStores associated with the project.
 13227  //
 13228  //   - parent: The parent branch resource name, such as
 13229  //     `projects/{project}/locations/{location}/collections/{collection_id}`. If
 13230  //     the caller does not have permission to list DataStores under this
 13231  //     location, regardless of whether or not this data store exists, a
 13232  //     PERMISSION_DENIED error is returned.
 13233  func (r *ProjectsLocationsCollectionsDataStoresService) List(parent string) *ProjectsLocationsCollectionsDataStoresListCall {
 13234  	c := &ProjectsLocationsCollectionsDataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13235  	c.parent = parent
 13236  	return c
 13237  }
 13238  
 13239  // Filter sets the optional parameter "filter": Filter by solution type . For
 13240  // example: filter = 'solution_type:SOLUTION_TYPE_SEARCH'
 13241  func (c *ProjectsLocationsCollectionsDataStoresListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresListCall {
 13242  	c.urlParams_.Set("filter", filter)
 13243  	return c
 13244  }
 13245  
 13246  // PageSize sets the optional parameter "pageSize": Maximum number of
 13247  // DataStores to return. If unspecified, defaults to 10. The maximum allowed
 13248  // value is 50. Values above 50 will be coerced to 50. If this field is
 13249  // negative, an INVALID_ARGUMENT is returned.
 13250  func (c *ProjectsLocationsCollectionsDataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresListCall {
 13251  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 13252  	return c
 13253  }
 13254  
 13255  // PageToken sets the optional parameter "pageToken": A page token
 13256  // ListDataStoresResponse.next_page_token, received from a previous
 13257  // DataStoreService.ListDataStores call. Provide this to retrieve the
 13258  // subsequent page. When paginating, all other parameters provided to
 13259  // DataStoreService.ListDataStores must match the call that provided the page
 13260  // token. Otherwise, an INVALID_ARGUMENT error is returned.
 13261  func (c *ProjectsLocationsCollectionsDataStoresListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresListCall {
 13262  	c.urlParams_.Set("pageToken", pageToken)
 13263  	return c
 13264  }
 13265  
 13266  // Fields allows partial responses to be retrieved. See
 13267  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13268  // details.
 13269  func (c *ProjectsLocationsCollectionsDataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresListCall {
 13270  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13271  	return c
 13272  }
 13273  
 13274  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13275  // object's ETag matches the given value. This is useful for getting updates
 13276  // only after the object has changed since the last request.
 13277  func (c *ProjectsLocationsCollectionsDataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresListCall {
 13278  	c.ifNoneMatch_ = entityTag
 13279  	return c
 13280  }
 13281  
 13282  // Context sets the context to be used in this call's Do method.
 13283  func (c *ProjectsLocationsCollectionsDataStoresListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresListCall {
 13284  	c.ctx_ = ctx
 13285  	return c
 13286  }
 13287  
 13288  // Header returns a http.Header that can be modified by the caller to add
 13289  // headers to the request.
 13290  func (c *ProjectsLocationsCollectionsDataStoresListCall) Header() http.Header {
 13291  	if c.header_ == nil {
 13292  		c.header_ = make(http.Header)
 13293  	}
 13294  	return c.header_
 13295  }
 13296  
 13297  func (c *ProjectsLocationsCollectionsDataStoresListCall) doRequest(alt string) (*http.Response, error) {
 13298  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13299  	if c.ifNoneMatch_ != "" {
 13300  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13301  	}
 13302  	var body io.Reader = nil
 13303  	c.urlParams_.Set("alt", alt)
 13304  	c.urlParams_.Set("prettyPrint", "false")
 13305  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/dataStores")
 13306  	urls += "?" + c.urlParams_.Encode()
 13307  	req, err := http.NewRequest("GET", urls, body)
 13308  	if err != nil {
 13309  		return nil, err
 13310  	}
 13311  	req.Header = reqHeaders
 13312  	googleapi.Expand(req.URL, map[string]string{
 13313  		"parent": c.parent,
 13314  	})
 13315  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13316  }
 13317  
 13318  // Do executes the "discoveryengine.projects.locations.collections.dataStores.list" call.
 13319  // Any non-2xx status code is an error. Response headers are in either
 13320  // *GoogleCloudDiscoveryengineV1betaListDataStoresResponse.ServerResponse.Header
 13321  //
 13322  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 13323  //
 13324  // Use googleapi.IsNotModified to check whether the returned error was because
 13325  // http.StatusNotModified was returned.
 13326  func (c *ProjectsLocationsCollectionsDataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListDataStoresResponse, error) {
 13327  	gensupport.SetOptions(c.urlParams_, opts...)
 13328  	res, err := c.doRequest("json")
 13329  	if res != nil && res.StatusCode == http.StatusNotModified {
 13330  		if res.Body != nil {
 13331  			res.Body.Close()
 13332  		}
 13333  		return nil, gensupport.WrapError(&googleapi.Error{
 13334  			Code:   res.StatusCode,
 13335  			Header: res.Header,
 13336  		})
 13337  	}
 13338  	if err != nil {
 13339  		return nil, err
 13340  	}
 13341  	defer googleapi.CloseBody(res)
 13342  	if err := googleapi.CheckResponse(res); err != nil {
 13343  		return nil, gensupport.WrapError(err)
 13344  	}
 13345  	ret := &GoogleCloudDiscoveryengineV1betaListDataStoresResponse{
 13346  		ServerResponse: googleapi.ServerResponse{
 13347  			Header:         res.Header,
 13348  			HTTPStatusCode: res.StatusCode,
 13349  		},
 13350  	}
 13351  	target := &ret
 13352  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13353  		return nil, err
 13354  	}
 13355  	return ret, nil
 13356  }
 13357  
 13358  // Pages invokes f for each page of results.
 13359  // A non-nil error returned from f will halt the iteration.
 13360  // The provided context supersedes any context provided to the Context method.
 13361  func (c *ProjectsLocationsCollectionsDataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListDataStoresResponse) error) error {
 13362  	c.ctx_ = ctx
 13363  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 13364  	for {
 13365  		x, err := c.Do()
 13366  		if err != nil {
 13367  			return err
 13368  		}
 13369  		if err := f(x); err != nil {
 13370  			return err
 13371  		}
 13372  		if x.NextPageToken == "" {
 13373  			return nil
 13374  		}
 13375  		c.PageToken(x.NextPageToken)
 13376  	}
 13377  }
 13378  
 13379  type ProjectsLocationsCollectionsDataStoresPatchCall struct {
 13380  	s                                         *Service
 13381  	name                                      string
 13382  	googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore
 13383  	urlParams_                                gensupport.URLParams
 13384  	ctx_                                      context.Context
 13385  	header_                                   http.Header
 13386  }
 13387  
 13388  // Patch: Updates a DataStore
 13389  //
 13390  //   - name: Immutable. The full resource name of the data store. Format:
 13391  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 13392  //     ores/{data_store_id}`. This field must be a UTF-8 encoded string with a
 13393  //     length limit of 1024 characters.
 13394  func (r *ProjectsLocationsCollectionsDataStoresService) Patch(name string, googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore) *ProjectsLocationsCollectionsDataStoresPatchCall {
 13395  	c := &ProjectsLocationsCollectionsDataStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13396  	c.name = name
 13397  	c.googleclouddiscoveryenginev1betadatastore = googleclouddiscoveryenginev1betadatastore
 13398  	return c
 13399  }
 13400  
 13401  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 13402  // in the provided DataStore to update. If an unsupported or unknown field is
 13403  // provided, an INVALID_ARGUMENT error is returned.
 13404  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresPatchCall {
 13405  	c.urlParams_.Set("updateMask", updateMask)
 13406  	return c
 13407  }
 13408  
 13409  // Fields allows partial responses to be retrieved. See
 13410  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13411  // details.
 13412  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresPatchCall {
 13413  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13414  	return c
 13415  }
 13416  
 13417  // Context sets the context to be used in this call's Do method.
 13418  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresPatchCall {
 13419  	c.ctx_ = ctx
 13420  	return c
 13421  }
 13422  
 13423  // Header returns a http.Header that can be modified by the caller to add
 13424  // headers to the request.
 13425  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Header() http.Header {
 13426  	if c.header_ == nil {
 13427  		c.header_ = make(http.Header)
 13428  	}
 13429  	return c.header_
 13430  }
 13431  
 13432  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) doRequest(alt string) (*http.Response, error) {
 13433  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13434  	var body io.Reader = nil
 13435  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadatastore)
 13436  	if err != nil {
 13437  		return nil, err
 13438  	}
 13439  	c.urlParams_.Set("alt", alt)
 13440  	c.urlParams_.Set("prettyPrint", "false")
 13441  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 13442  	urls += "?" + c.urlParams_.Encode()
 13443  	req, err := http.NewRequest("PATCH", urls, body)
 13444  	if err != nil {
 13445  		return nil, err
 13446  	}
 13447  	req.Header = reqHeaders
 13448  	googleapi.Expand(req.URL, map[string]string{
 13449  		"name": c.name,
 13450  	})
 13451  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13452  }
 13453  
 13454  // Do executes the "discoveryengine.projects.locations.collections.dataStores.patch" call.
 13455  // Any non-2xx status code is an error. Response headers are in either
 13456  // *GoogleCloudDiscoveryengineV1betaDataStore.ServerResponse.Header or (if a
 13457  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13458  // googleapi.IsNotModified to check whether the returned error was because
 13459  // http.StatusNotModified was returned.
 13460  func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDataStore, error) {
 13461  	gensupport.SetOptions(c.urlParams_, opts...)
 13462  	res, err := c.doRequest("json")
 13463  	if res != nil && res.StatusCode == http.StatusNotModified {
 13464  		if res.Body != nil {
 13465  			res.Body.Close()
 13466  		}
 13467  		return nil, gensupport.WrapError(&googleapi.Error{
 13468  			Code:   res.StatusCode,
 13469  			Header: res.Header,
 13470  		})
 13471  	}
 13472  	if err != nil {
 13473  		return nil, err
 13474  	}
 13475  	defer googleapi.CloseBody(res)
 13476  	if err := googleapi.CheckResponse(res); err != nil {
 13477  		return nil, gensupport.WrapError(err)
 13478  	}
 13479  	ret := &GoogleCloudDiscoveryengineV1betaDataStore{
 13480  		ServerResponse: googleapi.ServerResponse{
 13481  			Header:         res.Header,
 13482  			HTTPStatusCode: res.StatusCode,
 13483  		},
 13484  	}
 13485  	target := &ret
 13486  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13487  		return nil, err
 13488  	}
 13489  	return ret, nil
 13490  }
 13491  
 13492  type ProjectsLocationsCollectionsDataStoresTrainCustomModelCall struct {
 13493  	s                                                       *Service
 13494  	dataStore                                               string
 13495  	googleclouddiscoveryenginev1betatraincustommodelrequest *GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest
 13496  	urlParams_                                              gensupport.URLParams
 13497  	ctx_                                                    context.Context
 13498  	header_                                                 http.Header
 13499  }
 13500  
 13501  // TrainCustomModel: Trains a custom model.
 13502  //
 13503  //   - dataStore: The resource name of the Data Store, such as
 13504  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 13505  //     ult_data_store`. This field is used to identify the data store where to
 13506  //     train the models.
 13507  func (r *ProjectsLocationsCollectionsDataStoresService) TrainCustomModel(dataStore string, googleclouddiscoveryenginev1betatraincustommodelrequest *GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest) *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall {
 13508  	c := &ProjectsLocationsCollectionsDataStoresTrainCustomModelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13509  	c.dataStore = dataStore
 13510  	c.googleclouddiscoveryenginev1betatraincustommodelrequest = googleclouddiscoveryenginev1betatraincustommodelrequest
 13511  	return c
 13512  }
 13513  
 13514  // Fields allows partial responses to be retrieved. See
 13515  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13516  // details.
 13517  func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall {
 13518  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13519  	return c
 13520  }
 13521  
 13522  // Context sets the context to be used in this call's Do method.
 13523  func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall {
 13524  	c.ctx_ = ctx
 13525  	return c
 13526  }
 13527  
 13528  // Header returns a http.Header that can be modified by the caller to add
 13529  // headers to the request.
 13530  func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Header() http.Header {
 13531  	if c.header_ == nil {
 13532  		c.header_ = make(http.Header)
 13533  	}
 13534  	return c.header_
 13535  }
 13536  
 13537  func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) doRequest(alt string) (*http.Response, error) {
 13538  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13539  	var body io.Reader = nil
 13540  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatraincustommodelrequest)
 13541  	if err != nil {
 13542  		return nil, err
 13543  	}
 13544  	c.urlParams_.Set("alt", alt)
 13545  	c.urlParams_.Set("prettyPrint", "false")
 13546  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+dataStore}:trainCustomModel")
 13547  	urls += "?" + c.urlParams_.Encode()
 13548  	req, err := http.NewRequest("POST", urls, body)
 13549  	if err != nil {
 13550  		return nil, err
 13551  	}
 13552  	req.Header = reqHeaders
 13553  	googleapi.Expand(req.URL, map[string]string{
 13554  		"dataStore": c.dataStore,
 13555  	})
 13556  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13557  }
 13558  
 13559  // Do executes the "discoveryengine.projects.locations.collections.dataStores.trainCustomModel" call.
 13560  // Any non-2xx status code is an error. Response headers are in either
 13561  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 13562  // returned at all) in error.(*googleapi.Error).Header. Use
 13563  // googleapi.IsNotModified to check whether the returned error was because
 13564  // http.StatusNotModified was returned.
 13565  func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 13566  	gensupport.SetOptions(c.urlParams_, opts...)
 13567  	res, err := c.doRequest("json")
 13568  	if res != nil && res.StatusCode == http.StatusNotModified {
 13569  		if res.Body != nil {
 13570  			res.Body.Close()
 13571  		}
 13572  		return nil, gensupport.WrapError(&googleapi.Error{
 13573  			Code:   res.StatusCode,
 13574  			Header: res.Header,
 13575  		})
 13576  	}
 13577  	if err != nil {
 13578  		return nil, err
 13579  	}
 13580  	defer googleapi.CloseBody(res)
 13581  	if err := googleapi.CheckResponse(res); err != nil {
 13582  		return nil, gensupport.WrapError(err)
 13583  	}
 13584  	ret := &GoogleLongrunningOperation{
 13585  		ServerResponse: googleapi.ServerResponse{
 13586  			Header:         res.Header,
 13587  			HTTPStatusCode: res.StatusCode,
 13588  		},
 13589  	}
 13590  	target := &ret
 13591  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13592  		return nil, err
 13593  	}
 13594  	return ret, nil
 13595  }
 13596  
 13597  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall struct {
 13598  	s                                        *Service
 13599  	parent                                   string
 13600  	googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument
 13601  	urlParams_                               gensupport.URLParams
 13602  	ctx_                                     context.Context
 13603  	header_                                  http.Header
 13604  }
 13605  
 13606  // Create: Creates a Document.
 13607  //
 13608  //   - parent: The parent resource name, such as
 13609  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 13610  //     s/{data_store}/branches/{branch}`.
 13611  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Create(parent string, googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
 13612  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13613  	c.parent = parent
 13614  	c.googleclouddiscoveryenginev1betadocument = googleclouddiscoveryenginev1betadocument
 13615  	return c
 13616  }
 13617  
 13618  // DocumentId sets the optional parameter "documentId": Required. The ID to use
 13619  // for the Document, which will become the final component of the
 13620  // Document.name. If the caller does not have permission to create the
 13621  // Document, regardless of whether or not it exists, a `PERMISSION_DENIED`
 13622  // error is returned. This field must be unique among all Documents with the
 13623  // same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field
 13624  // must conform to RFC-1034 (https://tools.ietf.org/html/rfc1034) standard with
 13625  // a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is
 13626  // returned.
 13627  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) DocumentId(documentId string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
 13628  	c.urlParams_.Set("documentId", documentId)
 13629  	return c
 13630  }
 13631  
 13632  // Fields allows partial responses to be retrieved. See
 13633  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13634  // details.
 13635  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
 13636  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13637  	return c
 13638  }
 13639  
 13640  // Context sets the context to be used in this call's Do method.
 13641  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
 13642  	c.ctx_ = ctx
 13643  	return c
 13644  }
 13645  
 13646  // Header returns a http.Header that can be modified by the caller to add
 13647  // headers to the request.
 13648  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Header() http.Header {
 13649  	if c.header_ == nil {
 13650  		c.header_ = make(http.Header)
 13651  	}
 13652  	return c.header_
 13653  }
 13654  
 13655  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
 13656  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13657  	var body io.Reader = nil
 13658  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadocument)
 13659  	if err != nil {
 13660  		return nil, err
 13661  	}
 13662  	c.urlParams_.Set("alt", alt)
 13663  	c.urlParams_.Set("prettyPrint", "false")
 13664  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents")
 13665  	urls += "?" + c.urlParams_.Encode()
 13666  	req, err := http.NewRequest("POST", urls, body)
 13667  	if err != nil {
 13668  		return nil, err
 13669  	}
 13670  	req.Header = reqHeaders
 13671  	googleapi.Expand(req.URL, map[string]string{
 13672  		"parent": c.parent,
 13673  	})
 13674  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13675  }
 13676  
 13677  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.create" call.
 13678  // Any non-2xx status code is an error. Response headers are in either
 13679  // *GoogleCloudDiscoveryengineV1betaDocument.ServerResponse.Header or (if a
 13680  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13681  // googleapi.IsNotModified to check whether the returned error was because
 13682  // http.StatusNotModified was returned.
 13683  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDocument, error) {
 13684  	gensupport.SetOptions(c.urlParams_, opts...)
 13685  	res, err := c.doRequest("json")
 13686  	if res != nil && res.StatusCode == http.StatusNotModified {
 13687  		if res.Body != nil {
 13688  			res.Body.Close()
 13689  		}
 13690  		return nil, gensupport.WrapError(&googleapi.Error{
 13691  			Code:   res.StatusCode,
 13692  			Header: res.Header,
 13693  		})
 13694  	}
 13695  	if err != nil {
 13696  		return nil, err
 13697  	}
 13698  	defer googleapi.CloseBody(res)
 13699  	if err := googleapi.CheckResponse(res); err != nil {
 13700  		return nil, gensupport.WrapError(err)
 13701  	}
 13702  	ret := &GoogleCloudDiscoveryengineV1betaDocument{
 13703  		ServerResponse: googleapi.ServerResponse{
 13704  			Header:         res.Header,
 13705  			HTTPStatusCode: res.StatusCode,
 13706  		},
 13707  	}
 13708  	target := &ret
 13709  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13710  		return nil, err
 13711  	}
 13712  	return ret, nil
 13713  }
 13714  
 13715  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall struct {
 13716  	s          *Service
 13717  	name       string
 13718  	urlParams_ gensupport.URLParams
 13719  	ctx_       context.Context
 13720  	header_    http.Header
 13721  }
 13722  
 13723  // Delete: Deletes a Document.
 13724  //
 13725  //   - name: Full resource name of Document, such as
 13726  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 13727  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 13728  //     not have permission to delete the Document, regardless of whether or not
 13729  //     it exists, a `PERMISSION_DENIED` error is returned. If the Document to
 13730  //     delete does not exist, a `NOT_FOUND` error is returned.
 13731  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
 13732  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13733  	c.name = name
 13734  	return c
 13735  }
 13736  
 13737  // Fields allows partial responses to be retrieved. See
 13738  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13739  // details.
 13740  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
 13741  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13742  	return c
 13743  }
 13744  
 13745  // Context sets the context to be used in this call's Do method.
 13746  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
 13747  	c.ctx_ = ctx
 13748  	return c
 13749  }
 13750  
 13751  // Header returns a http.Header that can be modified by the caller to add
 13752  // headers to the request.
 13753  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Header() http.Header {
 13754  	if c.header_ == nil {
 13755  		c.header_ = make(http.Header)
 13756  	}
 13757  	return c.header_
 13758  }
 13759  
 13760  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 13761  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13762  	var body io.Reader = nil
 13763  	c.urlParams_.Set("alt", alt)
 13764  	c.urlParams_.Set("prettyPrint", "false")
 13765  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 13766  	urls += "?" + c.urlParams_.Encode()
 13767  	req, err := http.NewRequest("DELETE", urls, body)
 13768  	if err != nil {
 13769  		return nil, err
 13770  	}
 13771  	req.Header = reqHeaders
 13772  	googleapi.Expand(req.URL, map[string]string{
 13773  		"name": c.name,
 13774  	})
 13775  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13776  }
 13777  
 13778  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.delete" call.
 13779  // Any non-2xx status code is an error. Response headers are in either
 13780  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 13781  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 13782  // check whether the returned error was because http.StatusNotModified was
 13783  // returned.
 13784  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 13785  	gensupport.SetOptions(c.urlParams_, opts...)
 13786  	res, err := c.doRequest("json")
 13787  	if res != nil && res.StatusCode == http.StatusNotModified {
 13788  		if res.Body != nil {
 13789  			res.Body.Close()
 13790  		}
 13791  		return nil, gensupport.WrapError(&googleapi.Error{
 13792  			Code:   res.StatusCode,
 13793  			Header: res.Header,
 13794  		})
 13795  	}
 13796  	if err != nil {
 13797  		return nil, err
 13798  	}
 13799  	defer googleapi.CloseBody(res)
 13800  	if err := googleapi.CheckResponse(res); err != nil {
 13801  		return nil, gensupport.WrapError(err)
 13802  	}
 13803  	ret := &GoogleProtobufEmpty{
 13804  		ServerResponse: googleapi.ServerResponse{
 13805  			Header:         res.Header,
 13806  			HTTPStatusCode: res.StatusCode,
 13807  		},
 13808  	}
 13809  	target := &ret
 13810  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13811  		return nil, err
 13812  	}
 13813  	return ret, nil
 13814  }
 13815  
 13816  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall struct {
 13817  	s            *Service
 13818  	name         string
 13819  	urlParams_   gensupport.URLParams
 13820  	ifNoneMatch_ string
 13821  	ctx_         context.Context
 13822  	header_      http.Header
 13823  }
 13824  
 13825  // Get: Gets a Document.
 13826  //
 13827  //   - name: Full resource name of Document, such as
 13828  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 13829  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 13830  //     not have permission to access the Document, regardless of whether or not
 13831  //     it exists, a `PERMISSION_DENIED` error is returned. If the requested
 13832  //     Document does not exist, a `NOT_FOUND` error is returned.
 13833  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
 13834  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13835  	c.name = name
 13836  	return c
 13837  }
 13838  
 13839  // Fields allows partial responses to be retrieved. See
 13840  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13841  // details.
 13842  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
 13843  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13844  	return c
 13845  }
 13846  
 13847  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13848  // object's ETag matches the given value. This is useful for getting updates
 13849  // only after the object has changed since the last request.
 13850  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
 13851  	c.ifNoneMatch_ = entityTag
 13852  	return c
 13853  }
 13854  
 13855  // Context sets the context to be used in this call's Do method.
 13856  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
 13857  	c.ctx_ = ctx
 13858  	return c
 13859  }
 13860  
 13861  // Header returns a http.Header that can be modified by the caller to add
 13862  // headers to the request.
 13863  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Header() http.Header {
 13864  	if c.header_ == nil {
 13865  		c.header_ = make(http.Header)
 13866  	}
 13867  	return c.header_
 13868  }
 13869  
 13870  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
 13871  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13872  	if c.ifNoneMatch_ != "" {
 13873  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13874  	}
 13875  	var body io.Reader = nil
 13876  	c.urlParams_.Set("alt", alt)
 13877  	c.urlParams_.Set("prettyPrint", "false")
 13878  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 13879  	urls += "?" + c.urlParams_.Encode()
 13880  	req, err := http.NewRequest("GET", urls, body)
 13881  	if err != nil {
 13882  		return nil, err
 13883  	}
 13884  	req.Header = reqHeaders
 13885  	googleapi.Expand(req.URL, map[string]string{
 13886  		"name": c.name,
 13887  	})
 13888  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13889  }
 13890  
 13891  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.get" call.
 13892  // Any non-2xx status code is an error. Response headers are in either
 13893  // *GoogleCloudDiscoveryengineV1betaDocument.ServerResponse.Header or (if a
 13894  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13895  // googleapi.IsNotModified to check whether the returned error was because
 13896  // http.StatusNotModified was returned.
 13897  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDocument, error) {
 13898  	gensupport.SetOptions(c.urlParams_, opts...)
 13899  	res, err := c.doRequest("json")
 13900  	if res != nil && res.StatusCode == http.StatusNotModified {
 13901  		if res.Body != nil {
 13902  			res.Body.Close()
 13903  		}
 13904  		return nil, gensupport.WrapError(&googleapi.Error{
 13905  			Code:   res.StatusCode,
 13906  			Header: res.Header,
 13907  		})
 13908  	}
 13909  	if err != nil {
 13910  		return nil, err
 13911  	}
 13912  	defer googleapi.CloseBody(res)
 13913  	if err := googleapi.CheckResponse(res); err != nil {
 13914  		return nil, gensupport.WrapError(err)
 13915  	}
 13916  	ret := &GoogleCloudDiscoveryengineV1betaDocument{
 13917  		ServerResponse: googleapi.ServerResponse{
 13918  			Header:         res.Header,
 13919  			HTTPStatusCode: res.StatusCode,
 13920  		},
 13921  	}
 13922  	target := &ret
 13923  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13924  		return nil, err
 13925  	}
 13926  	return ret, nil
 13927  }
 13928  
 13929  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall struct {
 13930  	s                                                      *Service
 13931  	parent                                                 string
 13932  	googleclouddiscoveryenginev1betaimportdocumentsrequest *GoogleCloudDiscoveryengineV1betaImportDocumentsRequest
 13933  	urlParams_                                             gensupport.URLParams
 13934  	ctx_                                                   context.Context
 13935  	header_                                                http.Header
 13936  }
 13937  
 13938  // Import: Bulk import of multiple Documents. Request processing may be
 13939  // synchronous. Non-existing items will be created. Note: It is possible for a
 13940  // subset of the Documents to be successfully updated.
 13941  //
 13942  //   - parent: The parent branch resource name, such as
 13943  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 13944  //     s/{data_store}/branches/{branch}`. Requires create/update permission.
 13945  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Import(parent string, googleclouddiscoveryenginev1betaimportdocumentsrequest *GoogleCloudDiscoveryengineV1betaImportDocumentsRequest) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
 13946  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13947  	c.parent = parent
 13948  	c.googleclouddiscoveryenginev1betaimportdocumentsrequest = googleclouddiscoveryenginev1betaimportdocumentsrequest
 13949  	return c
 13950  }
 13951  
 13952  // Fields allows partial responses to be retrieved. See
 13953  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13954  // details.
 13955  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
 13956  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13957  	return c
 13958  }
 13959  
 13960  // Context sets the context to be used in this call's Do method.
 13961  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
 13962  	c.ctx_ = ctx
 13963  	return c
 13964  }
 13965  
 13966  // Header returns a http.Header that can be modified by the caller to add
 13967  // headers to the request.
 13968  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Header() http.Header {
 13969  	if c.header_ == nil {
 13970  		c.header_ = make(http.Header)
 13971  	}
 13972  	return c.header_
 13973  }
 13974  
 13975  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
 13976  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 13977  	var body io.Reader = nil
 13978  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaimportdocumentsrequest)
 13979  	if err != nil {
 13980  		return nil, err
 13981  	}
 13982  	c.urlParams_.Set("alt", alt)
 13983  	c.urlParams_.Set("prettyPrint", "false")
 13984  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents:import")
 13985  	urls += "?" + c.urlParams_.Encode()
 13986  	req, err := http.NewRequest("POST", urls, body)
 13987  	if err != nil {
 13988  		return nil, err
 13989  	}
 13990  	req.Header = reqHeaders
 13991  	googleapi.Expand(req.URL, map[string]string{
 13992  		"parent": c.parent,
 13993  	})
 13994  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13995  }
 13996  
 13997  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.import" call.
 13998  // Any non-2xx status code is an error. Response headers are in either
 13999  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14000  // returned at all) in error.(*googleapi.Error).Header. Use
 14001  // googleapi.IsNotModified to check whether the returned error was because
 14002  // http.StatusNotModified was returned.
 14003  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14004  	gensupport.SetOptions(c.urlParams_, opts...)
 14005  	res, err := c.doRequest("json")
 14006  	if res != nil && res.StatusCode == http.StatusNotModified {
 14007  		if res.Body != nil {
 14008  			res.Body.Close()
 14009  		}
 14010  		return nil, gensupport.WrapError(&googleapi.Error{
 14011  			Code:   res.StatusCode,
 14012  			Header: res.Header,
 14013  		})
 14014  	}
 14015  	if err != nil {
 14016  		return nil, err
 14017  	}
 14018  	defer googleapi.CloseBody(res)
 14019  	if err := googleapi.CheckResponse(res); err != nil {
 14020  		return nil, gensupport.WrapError(err)
 14021  	}
 14022  	ret := &GoogleLongrunningOperation{
 14023  		ServerResponse: googleapi.ServerResponse{
 14024  			Header:         res.Header,
 14025  			HTTPStatusCode: res.StatusCode,
 14026  		},
 14027  	}
 14028  	target := &ret
 14029  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14030  		return nil, err
 14031  	}
 14032  	return ret, nil
 14033  }
 14034  
 14035  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall struct {
 14036  	s            *Service
 14037  	parent       string
 14038  	urlParams_   gensupport.URLParams
 14039  	ifNoneMatch_ string
 14040  	ctx_         context.Context
 14041  	header_      http.Header
 14042  }
 14043  
 14044  // List: Gets a list of Documents.
 14045  //
 14046  //   - parent: The parent branch resource name, such as
 14047  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 14048  //     s/{data_store}/branches/{branch}`. Use `default_branch` as the branch ID,
 14049  //     to list documents under the default branch. If the caller does not have
 14050  //     permission to list Documents under this branch, regardless of whether or
 14051  //     not this branch exists, a `PERMISSION_DENIED` error is returned.
 14052  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) List(parent string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 14053  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14054  	c.parent = parent
 14055  	return c
 14056  }
 14057  
 14058  // PageSize sets the optional parameter "pageSize": Maximum number of Documents
 14059  // to return. If unspecified, defaults to 100. The maximum allowed value is
 14060  // 1000. Values above 1000 will be coerced to 1000. If this field is negative,
 14061  // an `INVALID_ARGUMENT` error is returned.
 14062  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 14063  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14064  	return c
 14065  }
 14066  
 14067  // PageToken sets the optional parameter "pageToken": A page token
 14068  // ListDocumentsResponse.next_page_token, received from a previous
 14069  // DocumentService.ListDocuments call. Provide this to retrieve the subsequent
 14070  // page. When paginating, all other parameters provided to
 14071  // DocumentService.ListDocuments must match the call that provided the page
 14072  // token. Otherwise, an `INVALID_ARGUMENT` error is returned.
 14073  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 14074  	c.urlParams_.Set("pageToken", pageToken)
 14075  	return c
 14076  }
 14077  
 14078  // Fields allows partial responses to be retrieved. See
 14079  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14080  // details.
 14081  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 14082  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14083  	return c
 14084  }
 14085  
 14086  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14087  // object's ETag matches the given value. This is useful for getting updates
 14088  // only after the object has changed since the last request.
 14089  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 14090  	c.ifNoneMatch_ = entityTag
 14091  	return c
 14092  }
 14093  
 14094  // Context sets the context to be used in this call's Do method.
 14095  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
 14096  	c.ctx_ = ctx
 14097  	return c
 14098  }
 14099  
 14100  // Header returns a http.Header that can be modified by the caller to add
 14101  // headers to the request.
 14102  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Header() http.Header {
 14103  	if c.header_ == nil {
 14104  		c.header_ = make(http.Header)
 14105  	}
 14106  	return c.header_
 14107  }
 14108  
 14109  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
 14110  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14111  	if c.ifNoneMatch_ != "" {
 14112  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14113  	}
 14114  	var body io.Reader = nil
 14115  	c.urlParams_.Set("alt", alt)
 14116  	c.urlParams_.Set("prettyPrint", "false")
 14117  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents")
 14118  	urls += "?" + c.urlParams_.Encode()
 14119  	req, err := http.NewRequest("GET", urls, body)
 14120  	if err != nil {
 14121  		return nil, err
 14122  	}
 14123  	req.Header = reqHeaders
 14124  	googleapi.Expand(req.URL, map[string]string{
 14125  		"parent": c.parent,
 14126  	})
 14127  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14128  }
 14129  
 14130  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.list" call.
 14131  // Any non-2xx status code is an error. Response headers are in either
 14132  // *GoogleCloudDiscoveryengineV1betaListDocumentsResponse.ServerResponse.Header
 14133  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 14134  // Use googleapi.IsNotModified to check whether the returned error was because
 14135  // http.StatusNotModified was returned.
 14136  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListDocumentsResponse, error) {
 14137  	gensupport.SetOptions(c.urlParams_, opts...)
 14138  	res, err := c.doRequest("json")
 14139  	if res != nil && res.StatusCode == http.StatusNotModified {
 14140  		if res.Body != nil {
 14141  			res.Body.Close()
 14142  		}
 14143  		return nil, gensupport.WrapError(&googleapi.Error{
 14144  			Code:   res.StatusCode,
 14145  			Header: res.Header,
 14146  		})
 14147  	}
 14148  	if err != nil {
 14149  		return nil, err
 14150  	}
 14151  	defer googleapi.CloseBody(res)
 14152  	if err := googleapi.CheckResponse(res); err != nil {
 14153  		return nil, gensupport.WrapError(err)
 14154  	}
 14155  	ret := &GoogleCloudDiscoveryengineV1betaListDocumentsResponse{
 14156  		ServerResponse: googleapi.ServerResponse{
 14157  			Header:         res.Header,
 14158  			HTTPStatusCode: res.StatusCode,
 14159  		},
 14160  	}
 14161  	target := &ret
 14162  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14163  		return nil, err
 14164  	}
 14165  	return ret, nil
 14166  }
 14167  
 14168  // Pages invokes f for each page of results.
 14169  // A non-nil error returned from f will halt the iteration.
 14170  // The provided context supersedes any context provided to the Context method.
 14171  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListDocumentsResponse) error) error {
 14172  	c.ctx_ = ctx
 14173  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14174  	for {
 14175  		x, err := c.Do()
 14176  		if err != nil {
 14177  			return err
 14178  		}
 14179  		if err := f(x); err != nil {
 14180  			return err
 14181  		}
 14182  		if x.NextPageToken == "" {
 14183  			return nil
 14184  		}
 14185  		c.PageToken(x.NextPageToken)
 14186  	}
 14187  }
 14188  
 14189  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall struct {
 14190  	s                                        *Service
 14191  	name                                     string
 14192  	googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument
 14193  	urlParams_                               gensupport.URLParams
 14194  	ctx_                                     context.Context
 14195  	header_                                  http.Header
 14196  }
 14197  
 14198  // Patch: Updates a Document.
 14199  //
 14200  //   - name: Immutable. The full resource name of the document. Format:
 14201  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 14202  //     s/{data_store}/branches/{branch}/documents/{document_id}`. This field must
 14203  //     be a UTF-8 encoded string with a length limit of 1024 characters.
 14204  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Patch(name string, googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 14205  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14206  	c.name = name
 14207  	c.googleclouddiscoveryenginev1betadocument = googleclouddiscoveryenginev1betadocument
 14208  	return c
 14209  }
 14210  
 14211  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 14212  // the Document is not found, a new Document will be created.
 14213  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 14214  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 14215  	return c
 14216  }
 14217  
 14218  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 14219  // in the provided imported 'document' to update. If not set, will by default
 14220  // update all fields.
 14221  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 14222  	c.urlParams_.Set("updateMask", updateMask)
 14223  	return c
 14224  }
 14225  
 14226  // Fields allows partial responses to be retrieved. See
 14227  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14228  // details.
 14229  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 14230  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14231  	return c
 14232  }
 14233  
 14234  // Context sets the context to be used in this call's Do method.
 14235  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
 14236  	c.ctx_ = ctx
 14237  	return c
 14238  }
 14239  
 14240  // Header returns a http.Header that can be modified by the caller to add
 14241  // headers to the request.
 14242  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Header() http.Header {
 14243  	if c.header_ == nil {
 14244  		c.header_ = make(http.Header)
 14245  	}
 14246  	return c.header_
 14247  }
 14248  
 14249  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
 14250  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14251  	var body io.Reader = nil
 14252  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadocument)
 14253  	if err != nil {
 14254  		return nil, err
 14255  	}
 14256  	c.urlParams_.Set("alt", alt)
 14257  	c.urlParams_.Set("prettyPrint", "false")
 14258  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 14259  	urls += "?" + c.urlParams_.Encode()
 14260  	req, err := http.NewRequest("PATCH", urls, body)
 14261  	if err != nil {
 14262  		return nil, err
 14263  	}
 14264  	req.Header = reqHeaders
 14265  	googleapi.Expand(req.URL, map[string]string{
 14266  		"name": c.name,
 14267  	})
 14268  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14269  }
 14270  
 14271  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.patch" call.
 14272  // Any non-2xx status code is an error. Response headers are in either
 14273  // *GoogleCloudDiscoveryengineV1betaDocument.ServerResponse.Header or (if a
 14274  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14275  // googleapi.IsNotModified to check whether the returned error was because
 14276  // http.StatusNotModified was returned.
 14277  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDocument, error) {
 14278  	gensupport.SetOptions(c.urlParams_, opts...)
 14279  	res, err := c.doRequest("json")
 14280  	if res != nil && res.StatusCode == http.StatusNotModified {
 14281  		if res.Body != nil {
 14282  			res.Body.Close()
 14283  		}
 14284  		return nil, gensupport.WrapError(&googleapi.Error{
 14285  			Code:   res.StatusCode,
 14286  			Header: res.Header,
 14287  		})
 14288  	}
 14289  	if err != nil {
 14290  		return nil, err
 14291  	}
 14292  	defer googleapi.CloseBody(res)
 14293  	if err := googleapi.CheckResponse(res); err != nil {
 14294  		return nil, gensupport.WrapError(err)
 14295  	}
 14296  	ret := &GoogleCloudDiscoveryengineV1betaDocument{
 14297  		ServerResponse: googleapi.ServerResponse{
 14298  			Header:         res.Header,
 14299  			HTTPStatusCode: res.StatusCode,
 14300  		},
 14301  	}
 14302  	target := &ret
 14303  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14304  		return nil, err
 14305  	}
 14306  	return ret, nil
 14307  }
 14308  
 14309  type ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall struct {
 14310  	s                                                     *Service
 14311  	parent                                                string
 14312  	googleclouddiscoveryenginev1betapurgedocumentsrequest *GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest
 14313  	urlParams_                                            gensupport.URLParams
 14314  	ctx_                                                  context.Context
 14315  	header_                                               http.Header
 14316  }
 14317  
 14318  // Purge: Permanently deletes all selected Documents in a branch. This process
 14319  // is asynchronous. Depending on the number of Documents to be deleted, this
 14320  // operation can take hours to complete. Before the delete operation completes,
 14321  // some Documents might still be returned by DocumentService.GetDocument or
 14322  // DocumentService.ListDocuments. To get a list of the Documents to be deleted,
 14323  // set PurgeDocumentsRequest.force to false.
 14324  //
 14325  //   - parent: The parent resource name, such as
 14326  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 14327  //     s/{data_store}/branches/{branch}`.
 14328  func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Purge(parent string, googleclouddiscoveryenginev1betapurgedocumentsrequest *GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
 14329  	c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14330  	c.parent = parent
 14331  	c.googleclouddiscoveryenginev1betapurgedocumentsrequest = googleclouddiscoveryenginev1betapurgedocumentsrequest
 14332  	return c
 14333  }
 14334  
 14335  // Fields allows partial responses to be retrieved. See
 14336  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14337  // details.
 14338  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
 14339  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14340  	return c
 14341  }
 14342  
 14343  // Context sets the context to be used in this call's Do method.
 14344  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
 14345  	c.ctx_ = ctx
 14346  	return c
 14347  }
 14348  
 14349  // Header returns a http.Header that can be modified by the caller to add
 14350  // headers to the request.
 14351  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Header() http.Header {
 14352  	if c.header_ == nil {
 14353  		c.header_ = make(http.Header)
 14354  	}
 14355  	return c.header_
 14356  }
 14357  
 14358  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) doRequest(alt string) (*http.Response, error) {
 14359  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14360  	var body io.Reader = nil
 14361  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betapurgedocumentsrequest)
 14362  	if err != nil {
 14363  		return nil, err
 14364  	}
 14365  	c.urlParams_.Set("alt", alt)
 14366  	c.urlParams_.Set("prettyPrint", "false")
 14367  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents:purge")
 14368  	urls += "?" + c.urlParams_.Encode()
 14369  	req, err := http.NewRequest("POST", urls, body)
 14370  	if err != nil {
 14371  		return nil, err
 14372  	}
 14373  	req.Header = reqHeaders
 14374  	googleapi.Expand(req.URL, map[string]string{
 14375  		"parent": c.parent,
 14376  	})
 14377  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14378  }
 14379  
 14380  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.documents.purge" call.
 14381  // Any non-2xx status code is an error. Response headers are in either
 14382  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14383  // returned at all) in error.(*googleapi.Error).Header. Use
 14384  // googleapi.IsNotModified to check whether the returned error was because
 14385  // http.StatusNotModified was returned.
 14386  func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14387  	gensupport.SetOptions(c.urlParams_, opts...)
 14388  	res, err := c.doRequest("json")
 14389  	if res != nil && res.StatusCode == http.StatusNotModified {
 14390  		if res.Body != nil {
 14391  			res.Body.Close()
 14392  		}
 14393  		return nil, gensupport.WrapError(&googleapi.Error{
 14394  			Code:   res.StatusCode,
 14395  			Header: res.Header,
 14396  		})
 14397  	}
 14398  	if err != nil {
 14399  		return nil, err
 14400  	}
 14401  	defer googleapi.CloseBody(res)
 14402  	if err := googleapi.CheckResponse(res); err != nil {
 14403  		return nil, gensupport.WrapError(err)
 14404  	}
 14405  	ret := &GoogleLongrunningOperation{
 14406  		ServerResponse: googleapi.ServerResponse{
 14407  			Header:         res.Header,
 14408  			HTTPStatusCode: res.StatusCode,
 14409  		},
 14410  	}
 14411  	target := &ret
 14412  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14413  		return nil, err
 14414  	}
 14415  	return ret, nil
 14416  }
 14417  
 14418  type ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall struct {
 14419  	s                                       *Service
 14420  	name                                    string
 14421  	googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
 14422  	urlParams_                              gensupport.URLParams
 14423  	ctx_                                    context.Context
 14424  	header_                                 http.Header
 14425  }
 14426  
 14427  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 14428  // server makes a best effort to cancel the operation, but success is not
 14429  // guaranteed. If the server doesn't support this method, it returns
 14430  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 14431  // other methods to check whether the cancellation succeeded or whether the
 14432  // operation completed despite cancellation. On successful cancellation, the
 14433  // operation is not deleted; instead, it becomes an operation with an
 14434  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 14435  // `Code.CANCELLED`.
 14436  //
 14437  // - name: The name of the operation resource to be cancelled.
 14438  func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
 14439  	c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14440  	c.name = name
 14441  	c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
 14442  	return c
 14443  }
 14444  
 14445  // Fields allows partial responses to be retrieved. See
 14446  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14447  // details.
 14448  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
 14449  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14450  	return c
 14451  }
 14452  
 14453  // Context sets the context to be used in this call's Do method.
 14454  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
 14455  	c.ctx_ = ctx
 14456  	return c
 14457  }
 14458  
 14459  // Header returns a http.Header that can be modified by the caller to add
 14460  // headers to the request.
 14461  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Header() http.Header {
 14462  	if c.header_ == nil {
 14463  		c.header_ = make(http.Header)
 14464  	}
 14465  	return c.header_
 14466  }
 14467  
 14468  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 14469  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14470  	var body io.Reader = nil
 14471  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
 14472  	if err != nil {
 14473  		return nil, err
 14474  	}
 14475  	c.urlParams_.Set("alt", alt)
 14476  	c.urlParams_.Set("prettyPrint", "false")
 14477  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:cancel")
 14478  	urls += "?" + c.urlParams_.Encode()
 14479  	req, err := http.NewRequest("POST", urls, body)
 14480  	if err != nil {
 14481  		return nil, err
 14482  	}
 14483  	req.Header = reqHeaders
 14484  	googleapi.Expand(req.URL, map[string]string{
 14485  		"name": c.name,
 14486  	})
 14487  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14488  }
 14489  
 14490  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.cancel" call.
 14491  // Any non-2xx status code is an error. Response headers are in either
 14492  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 14493  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 14494  // check whether the returned error was because http.StatusNotModified was
 14495  // returned.
 14496  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 14497  	gensupport.SetOptions(c.urlParams_, opts...)
 14498  	res, err := c.doRequest("json")
 14499  	if res != nil && res.StatusCode == http.StatusNotModified {
 14500  		if res.Body != nil {
 14501  			res.Body.Close()
 14502  		}
 14503  		return nil, gensupport.WrapError(&googleapi.Error{
 14504  			Code:   res.StatusCode,
 14505  			Header: res.Header,
 14506  		})
 14507  	}
 14508  	if err != nil {
 14509  		return nil, err
 14510  	}
 14511  	defer googleapi.CloseBody(res)
 14512  	if err := googleapi.CheckResponse(res); err != nil {
 14513  		return nil, gensupport.WrapError(err)
 14514  	}
 14515  	ret := &GoogleProtobufEmpty{
 14516  		ServerResponse: googleapi.ServerResponse{
 14517  			Header:         res.Header,
 14518  			HTTPStatusCode: res.StatusCode,
 14519  		},
 14520  	}
 14521  	target := &ret
 14522  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14523  		return nil, err
 14524  	}
 14525  	return ret, nil
 14526  }
 14527  
 14528  type ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall struct {
 14529  	s            *Service
 14530  	name         string
 14531  	urlParams_   gensupport.URLParams
 14532  	ifNoneMatch_ string
 14533  	ctx_         context.Context
 14534  	header_      http.Header
 14535  }
 14536  
 14537  // Get: Gets the latest state of a long-running operation. Clients can use this
 14538  // method to poll the operation result at intervals as recommended by the API
 14539  // service.
 14540  //
 14541  // - name: The name of the operation resource.
 14542  func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
 14543  	c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14544  	c.name = name
 14545  	return c
 14546  }
 14547  
 14548  // Fields allows partial responses to be retrieved. See
 14549  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14550  // details.
 14551  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
 14552  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14553  	return c
 14554  }
 14555  
 14556  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14557  // object's ETag matches the given value. This is useful for getting updates
 14558  // only after the object has changed since the last request.
 14559  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
 14560  	c.ifNoneMatch_ = entityTag
 14561  	return c
 14562  }
 14563  
 14564  // Context sets the context to be used in this call's Do method.
 14565  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
 14566  	c.ctx_ = ctx
 14567  	return c
 14568  }
 14569  
 14570  // Header returns a http.Header that can be modified by the caller to add
 14571  // headers to the request.
 14572  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Header() http.Header {
 14573  	if c.header_ == nil {
 14574  		c.header_ = make(http.Header)
 14575  	}
 14576  	return c.header_
 14577  }
 14578  
 14579  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 14580  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14581  	if c.ifNoneMatch_ != "" {
 14582  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14583  	}
 14584  	var body io.Reader = nil
 14585  	c.urlParams_.Set("alt", alt)
 14586  	c.urlParams_.Set("prettyPrint", "false")
 14587  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 14588  	urls += "?" + c.urlParams_.Encode()
 14589  	req, err := http.NewRequest("GET", urls, body)
 14590  	if err != nil {
 14591  		return nil, err
 14592  	}
 14593  	req.Header = reqHeaders
 14594  	googleapi.Expand(req.URL, map[string]string{
 14595  		"name": c.name,
 14596  	})
 14597  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14598  }
 14599  
 14600  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.get" call.
 14601  // Any non-2xx status code is an error. Response headers are in either
 14602  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 14603  // returned at all) in error.(*googleapi.Error).Header. Use
 14604  // googleapi.IsNotModified to check whether the returned error was because
 14605  // http.StatusNotModified was returned.
 14606  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 14607  	gensupport.SetOptions(c.urlParams_, opts...)
 14608  	res, err := c.doRequest("json")
 14609  	if res != nil && res.StatusCode == http.StatusNotModified {
 14610  		if res.Body != nil {
 14611  			res.Body.Close()
 14612  		}
 14613  		return nil, gensupport.WrapError(&googleapi.Error{
 14614  			Code:   res.StatusCode,
 14615  			Header: res.Header,
 14616  		})
 14617  	}
 14618  	if err != nil {
 14619  		return nil, err
 14620  	}
 14621  	defer googleapi.CloseBody(res)
 14622  	if err := googleapi.CheckResponse(res); err != nil {
 14623  		return nil, gensupport.WrapError(err)
 14624  	}
 14625  	ret := &GoogleLongrunningOperation{
 14626  		ServerResponse: googleapi.ServerResponse{
 14627  			Header:         res.Header,
 14628  			HTTPStatusCode: res.StatusCode,
 14629  		},
 14630  	}
 14631  	target := &ret
 14632  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14633  		return nil, err
 14634  	}
 14635  	return ret, nil
 14636  }
 14637  
 14638  type ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall struct {
 14639  	s            *Service
 14640  	name         string
 14641  	urlParams_   gensupport.URLParams
 14642  	ifNoneMatch_ string
 14643  	ctx_         context.Context
 14644  	header_      http.Header
 14645  }
 14646  
 14647  // List: Lists operations that match the specified filter in the request. If
 14648  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 14649  //
 14650  // - name: The name of the operation's parent resource.
 14651  func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 14652  	c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14653  	c.name = name
 14654  	return c
 14655  }
 14656  
 14657  // Filter sets the optional parameter "filter": The standard list filter.
 14658  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 14659  	c.urlParams_.Set("filter", filter)
 14660  	return c
 14661  }
 14662  
 14663  // PageSize sets the optional parameter "pageSize": The standard list page
 14664  // size.
 14665  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 14666  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 14667  	return c
 14668  }
 14669  
 14670  // PageToken sets the optional parameter "pageToken": The standard list page
 14671  // token.
 14672  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 14673  	c.urlParams_.Set("pageToken", pageToken)
 14674  	return c
 14675  }
 14676  
 14677  // Fields allows partial responses to be retrieved. See
 14678  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14679  // details.
 14680  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 14681  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14682  	return c
 14683  }
 14684  
 14685  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 14686  // object's ETag matches the given value. This is useful for getting updates
 14687  // only after the object has changed since the last request.
 14688  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 14689  	c.ifNoneMatch_ = entityTag
 14690  	return c
 14691  }
 14692  
 14693  // Context sets the context to be used in this call's Do method.
 14694  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
 14695  	c.ctx_ = ctx
 14696  	return c
 14697  }
 14698  
 14699  // Header returns a http.Header that can be modified by the caller to add
 14700  // headers to the request.
 14701  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Header() http.Header {
 14702  	if c.header_ == nil {
 14703  		c.header_ = make(http.Header)
 14704  	}
 14705  	return c.header_
 14706  }
 14707  
 14708  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) doRequest(alt string) (*http.Response, error) {
 14709  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14710  	if c.ifNoneMatch_ != "" {
 14711  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14712  	}
 14713  	var body io.Reader = nil
 14714  	c.urlParams_.Set("alt", alt)
 14715  	c.urlParams_.Set("prettyPrint", "false")
 14716  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 14717  	urls += "?" + c.urlParams_.Encode()
 14718  	req, err := http.NewRequest("GET", urls, body)
 14719  	if err != nil {
 14720  		return nil, err
 14721  	}
 14722  	req.Header = reqHeaders
 14723  	googleapi.Expand(req.URL, map[string]string{
 14724  		"name": c.name,
 14725  	})
 14726  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14727  }
 14728  
 14729  // Do executes the "discoveryengine.projects.locations.collections.dataStores.branches.operations.list" call.
 14730  // Any non-2xx status code is an error. Response headers are in either
 14731  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 14732  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14733  // googleapi.IsNotModified to check whether the returned error was because
 14734  // http.StatusNotModified was returned.
 14735  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 14736  	gensupport.SetOptions(c.urlParams_, opts...)
 14737  	res, err := c.doRequest("json")
 14738  	if res != nil && res.StatusCode == http.StatusNotModified {
 14739  		if res.Body != nil {
 14740  			res.Body.Close()
 14741  		}
 14742  		return nil, gensupport.WrapError(&googleapi.Error{
 14743  			Code:   res.StatusCode,
 14744  			Header: res.Header,
 14745  		})
 14746  	}
 14747  	if err != nil {
 14748  		return nil, err
 14749  	}
 14750  	defer googleapi.CloseBody(res)
 14751  	if err := googleapi.CheckResponse(res); err != nil {
 14752  		return nil, gensupport.WrapError(err)
 14753  	}
 14754  	ret := &GoogleLongrunningListOperationsResponse{
 14755  		ServerResponse: googleapi.ServerResponse{
 14756  			Header:         res.Header,
 14757  			HTTPStatusCode: res.StatusCode,
 14758  		},
 14759  	}
 14760  	target := &ret
 14761  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14762  		return nil, err
 14763  	}
 14764  	return ret, nil
 14765  }
 14766  
 14767  // Pages invokes f for each page of results.
 14768  // A non-nil error returned from f will halt the iteration.
 14769  // The provided context supersedes any context provided to the Context method.
 14770  func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 14771  	c.ctx_ = ctx
 14772  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 14773  	for {
 14774  		x, err := c.Do()
 14775  		if err != nil {
 14776  			return err
 14777  		}
 14778  		if err := f(x); err != nil {
 14779  			return err
 14780  		}
 14781  		if x.NextPageToken == "" {
 14782  			return nil
 14783  		}
 14784  		c.PageToken(x.NextPageToken)
 14785  	}
 14786  }
 14787  
 14788  type ProjectsLocationsCollectionsDataStoresConversationsConverseCall struct {
 14789  	s                                                           *Service
 14790  	name                                                        string
 14791  	googleclouddiscoveryenginev1betaconverseconversationrequest *GoogleCloudDiscoveryengineV1betaConverseConversationRequest
 14792  	urlParams_                                                  gensupport.URLParams
 14793  	ctx_                                                        context.Context
 14794  	header_                                                     http.Header
 14795  }
 14796  
 14797  // Converse: Converses a conversation.
 14798  //
 14799  //   - name: The resource name of the Conversation to get. Format:
 14800  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 14801  //     /dataStores/{data_store_id}/conversations/{conversation_id}`. Use
 14802  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 14803  //     /dataStores/{data_store_id}/conversations/-` to activate auto session
 14804  //     mode, which automatically creates a new conversation inside a
 14805  //     ConverseConversation session.
 14806  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Converse(name string, googleclouddiscoveryenginev1betaconverseconversationrequest *GoogleCloudDiscoveryengineV1betaConverseConversationRequest) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
 14807  	c := &ProjectsLocationsCollectionsDataStoresConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14808  	c.name = name
 14809  	c.googleclouddiscoveryenginev1betaconverseconversationrequest = googleclouddiscoveryenginev1betaconverseconversationrequest
 14810  	return c
 14811  }
 14812  
 14813  // Fields allows partial responses to be retrieved. See
 14814  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14815  // details.
 14816  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
 14817  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14818  	return c
 14819  }
 14820  
 14821  // Context sets the context to be used in this call's Do method.
 14822  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
 14823  	c.ctx_ = ctx
 14824  	return c
 14825  }
 14826  
 14827  // Header returns a http.Header that can be modified by the caller to add
 14828  // headers to the request.
 14829  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Header() http.Header {
 14830  	if c.header_ == nil {
 14831  		c.header_ = make(http.Header)
 14832  	}
 14833  	return c.header_
 14834  }
 14835  
 14836  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
 14837  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14838  	var body io.Reader = nil
 14839  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconverseconversationrequest)
 14840  	if err != nil {
 14841  		return nil, err
 14842  	}
 14843  	c.urlParams_.Set("alt", alt)
 14844  	c.urlParams_.Set("prettyPrint", "false")
 14845  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:converse")
 14846  	urls += "?" + c.urlParams_.Encode()
 14847  	req, err := http.NewRequest("POST", urls, body)
 14848  	if err != nil {
 14849  		return nil, err
 14850  	}
 14851  	req.Header = reqHeaders
 14852  	googleapi.Expand(req.URL, map[string]string{
 14853  		"name": c.name,
 14854  	})
 14855  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14856  }
 14857  
 14858  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.converse" call.
 14859  // Any non-2xx status code is an error. Response headers are in either
 14860  // *GoogleCloudDiscoveryengineV1betaConverseConversationResponse.ServerResponse.
 14861  // Header or (if a response was returned at all) in
 14862  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14863  // whether the returned error was because http.StatusNotModified was returned.
 14864  func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConverseConversationResponse, error) {
 14865  	gensupport.SetOptions(c.urlParams_, opts...)
 14866  	res, err := c.doRequest("json")
 14867  	if res != nil && res.StatusCode == http.StatusNotModified {
 14868  		if res.Body != nil {
 14869  			res.Body.Close()
 14870  		}
 14871  		return nil, gensupport.WrapError(&googleapi.Error{
 14872  			Code:   res.StatusCode,
 14873  			Header: res.Header,
 14874  		})
 14875  	}
 14876  	if err != nil {
 14877  		return nil, err
 14878  	}
 14879  	defer googleapi.CloseBody(res)
 14880  	if err := googleapi.CheckResponse(res); err != nil {
 14881  		return nil, gensupport.WrapError(err)
 14882  	}
 14883  	ret := &GoogleCloudDiscoveryengineV1betaConverseConversationResponse{
 14884  		ServerResponse: googleapi.ServerResponse{
 14885  			Header:         res.Header,
 14886  			HTTPStatusCode: res.StatusCode,
 14887  		},
 14888  	}
 14889  	target := &ret
 14890  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14891  		return nil, err
 14892  	}
 14893  	return ret, nil
 14894  }
 14895  
 14896  type ProjectsLocationsCollectionsDataStoresConversationsCreateCall struct {
 14897  	s                                            *Service
 14898  	parent                                       string
 14899  	googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation
 14900  	urlParams_                                   gensupport.URLParams
 14901  	ctx_                                         context.Context
 14902  	header_                                      http.Header
 14903  }
 14904  
 14905  // Create: Creates a Conversation. If the Conversation to create already
 14906  // exists, an ALREADY_EXISTS error is returned.
 14907  //
 14908  //   - parent: Full resource name of parent data store. Format:
 14909  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 14910  //     /dataStores/{data_store_id}`.
 14911  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Create(parent string, googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
 14912  	c := &ProjectsLocationsCollectionsDataStoresConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14913  	c.parent = parent
 14914  	c.googleclouddiscoveryenginev1betaconversation = googleclouddiscoveryenginev1betaconversation
 14915  	return c
 14916  }
 14917  
 14918  // Fields allows partial responses to be retrieved. See
 14919  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14920  // details.
 14921  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
 14922  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14923  	return c
 14924  }
 14925  
 14926  // Context sets the context to be used in this call's Do method.
 14927  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
 14928  	c.ctx_ = ctx
 14929  	return c
 14930  }
 14931  
 14932  // Header returns a http.Header that can be modified by the caller to add
 14933  // headers to the request.
 14934  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Header() http.Header {
 14935  	if c.header_ == nil {
 14936  		c.header_ = make(http.Header)
 14937  	}
 14938  	return c.header_
 14939  }
 14940  
 14941  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 14942  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14943  	var body io.Reader = nil
 14944  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconversation)
 14945  	if err != nil {
 14946  		return nil, err
 14947  	}
 14948  	c.urlParams_.Set("alt", alt)
 14949  	c.urlParams_.Set("prettyPrint", "false")
 14950  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/conversations")
 14951  	urls += "?" + c.urlParams_.Encode()
 14952  	req, err := http.NewRequest("POST", urls, body)
 14953  	if err != nil {
 14954  		return nil, err
 14955  	}
 14956  	req.Header = reqHeaders
 14957  	googleapi.Expand(req.URL, map[string]string{
 14958  		"parent": c.parent,
 14959  	})
 14960  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14961  }
 14962  
 14963  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.create" call.
 14964  // Any non-2xx status code is an error. Response headers are in either
 14965  // *GoogleCloudDiscoveryengineV1betaConversation.ServerResponse.Header or (if a
 14966  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14967  // googleapi.IsNotModified to check whether the returned error was because
 14968  // http.StatusNotModified was returned.
 14969  func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
 14970  	gensupport.SetOptions(c.urlParams_, opts...)
 14971  	res, err := c.doRequest("json")
 14972  	if res != nil && res.StatusCode == http.StatusNotModified {
 14973  		if res.Body != nil {
 14974  			res.Body.Close()
 14975  		}
 14976  		return nil, gensupport.WrapError(&googleapi.Error{
 14977  			Code:   res.StatusCode,
 14978  			Header: res.Header,
 14979  		})
 14980  	}
 14981  	if err != nil {
 14982  		return nil, err
 14983  	}
 14984  	defer googleapi.CloseBody(res)
 14985  	if err := googleapi.CheckResponse(res); err != nil {
 14986  		return nil, gensupport.WrapError(err)
 14987  	}
 14988  	ret := &GoogleCloudDiscoveryengineV1betaConversation{
 14989  		ServerResponse: googleapi.ServerResponse{
 14990  			Header:         res.Header,
 14991  			HTTPStatusCode: res.StatusCode,
 14992  		},
 14993  	}
 14994  	target := &ret
 14995  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14996  		return nil, err
 14997  	}
 14998  	return ret, nil
 14999  }
 15000  
 15001  type ProjectsLocationsCollectionsDataStoresConversationsDeleteCall struct {
 15002  	s          *Service
 15003  	name       string
 15004  	urlParams_ gensupport.URLParams
 15005  	ctx_       context.Context
 15006  	header_    http.Header
 15007  }
 15008  
 15009  // Delete: Deletes a Conversation. If the Conversation to delete does not
 15010  // exist, a NOT_FOUND error is returned.
 15011  //
 15012  //   - name: The resource name of the Conversation to delete. Format:
 15013  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 15014  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 15015  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
 15016  	c := &ProjectsLocationsCollectionsDataStoresConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15017  	c.name = name
 15018  	return c
 15019  }
 15020  
 15021  // Fields allows partial responses to be retrieved. See
 15022  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15023  // details.
 15024  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
 15025  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15026  	return c
 15027  }
 15028  
 15029  // Context sets the context to be used in this call's Do method.
 15030  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
 15031  	c.ctx_ = ctx
 15032  	return c
 15033  }
 15034  
 15035  // Header returns a http.Header that can be modified by the caller to add
 15036  // headers to the request.
 15037  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Header() http.Header {
 15038  	if c.header_ == nil {
 15039  		c.header_ = make(http.Header)
 15040  	}
 15041  	return c.header_
 15042  }
 15043  
 15044  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 15045  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15046  	var body io.Reader = nil
 15047  	c.urlParams_.Set("alt", alt)
 15048  	c.urlParams_.Set("prettyPrint", "false")
 15049  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 15050  	urls += "?" + c.urlParams_.Encode()
 15051  	req, err := http.NewRequest("DELETE", urls, body)
 15052  	if err != nil {
 15053  		return nil, err
 15054  	}
 15055  	req.Header = reqHeaders
 15056  	googleapi.Expand(req.URL, map[string]string{
 15057  		"name": c.name,
 15058  	})
 15059  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15060  }
 15061  
 15062  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.delete" call.
 15063  // Any non-2xx status code is an error. Response headers are in either
 15064  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 15065  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 15066  // check whether the returned error was because http.StatusNotModified was
 15067  // returned.
 15068  func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 15069  	gensupport.SetOptions(c.urlParams_, opts...)
 15070  	res, err := c.doRequest("json")
 15071  	if res != nil && res.StatusCode == http.StatusNotModified {
 15072  		if res.Body != nil {
 15073  			res.Body.Close()
 15074  		}
 15075  		return nil, gensupport.WrapError(&googleapi.Error{
 15076  			Code:   res.StatusCode,
 15077  			Header: res.Header,
 15078  		})
 15079  	}
 15080  	if err != nil {
 15081  		return nil, err
 15082  	}
 15083  	defer googleapi.CloseBody(res)
 15084  	if err := googleapi.CheckResponse(res); err != nil {
 15085  		return nil, gensupport.WrapError(err)
 15086  	}
 15087  	ret := &GoogleProtobufEmpty{
 15088  		ServerResponse: googleapi.ServerResponse{
 15089  			Header:         res.Header,
 15090  			HTTPStatusCode: res.StatusCode,
 15091  		},
 15092  	}
 15093  	target := &ret
 15094  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15095  		return nil, err
 15096  	}
 15097  	return ret, nil
 15098  }
 15099  
 15100  type ProjectsLocationsCollectionsDataStoresConversationsGetCall struct {
 15101  	s            *Service
 15102  	name         string
 15103  	urlParams_   gensupport.URLParams
 15104  	ifNoneMatch_ string
 15105  	ctx_         context.Context
 15106  	header_      http.Header
 15107  }
 15108  
 15109  // Get: Gets a Conversation.
 15110  //
 15111  //   - name: The resource name of the Conversation to get. Format:
 15112  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 15113  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 15114  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
 15115  	c := &ProjectsLocationsCollectionsDataStoresConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15116  	c.name = name
 15117  	return c
 15118  }
 15119  
 15120  // Fields allows partial responses to be retrieved. See
 15121  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15122  // details.
 15123  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
 15124  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15125  	return c
 15126  }
 15127  
 15128  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15129  // object's ETag matches the given value. This is useful for getting updates
 15130  // only after the object has changed since the last request.
 15131  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
 15132  	c.ifNoneMatch_ = entityTag
 15133  	return c
 15134  }
 15135  
 15136  // Context sets the context to be used in this call's Do method.
 15137  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
 15138  	c.ctx_ = ctx
 15139  	return c
 15140  }
 15141  
 15142  // Header returns a http.Header that can be modified by the caller to add
 15143  // headers to the request.
 15144  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Header() http.Header {
 15145  	if c.header_ == nil {
 15146  		c.header_ = make(http.Header)
 15147  	}
 15148  	return c.header_
 15149  }
 15150  
 15151  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 15152  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15153  	if c.ifNoneMatch_ != "" {
 15154  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15155  	}
 15156  	var body io.Reader = nil
 15157  	c.urlParams_.Set("alt", alt)
 15158  	c.urlParams_.Set("prettyPrint", "false")
 15159  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 15160  	urls += "?" + c.urlParams_.Encode()
 15161  	req, err := http.NewRequest("GET", urls, body)
 15162  	if err != nil {
 15163  		return nil, err
 15164  	}
 15165  	req.Header = reqHeaders
 15166  	googleapi.Expand(req.URL, map[string]string{
 15167  		"name": c.name,
 15168  	})
 15169  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15170  }
 15171  
 15172  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.get" call.
 15173  // Any non-2xx status code is an error. Response headers are in either
 15174  // *GoogleCloudDiscoveryengineV1betaConversation.ServerResponse.Header or (if a
 15175  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15176  // googleapi.IsNotModified to check whether the returned error was because
 15177  // http.StatusNotModified was returned.
 15178  func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
 15179  	gensupport.SetOptions(c.urlParams_, opts...)
 15180  	res, err := c.doRequest("json")
 15181  	if res != nil && res.StatusCode == http.StatusNotModified {
 15182  		if res.Body != nil {
 15183  			res.Body.Close()
 15184  		}
 15185  		return nil, gensupport.WrapError(&googleapi.Error{
 15186  			Code:   res.StatusCode,
 15187  			Header: res.Header,
 15188  		})
 15189  	}
 15190  	if err != nil {
 15191  		return nil, err
 15192  	}
 15193  	defer googleapi.CloseBody(res)
 15194  	if err := googleapi.CheckResponse(res); err != nil {
 15195  		return nil, gensupport.WrapError(err)
 15196  	}
 15197  	ret := &GoogleCloudDiscoveryengineV1betaConversation{
 15198  		ServerResponse: googleapi.ServerResponse{
 15199  			Header:         res.Header,
 15200  			HTTPStatusCode: res.StatusCode,
 15201  		},
 15202  	}
 15203  	target := &ret
 15204  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15205  		return nil, err
 15206  	}
 15207  	return ret, nil
 15208  }
 15209  
 15210  type ProjectsLocationsCollectionsDataStoresConversationsListCall struct {
 15211  	s            *Service
 15212  	parent       string
 15213  	urlParams_   gensupport.URLParams
 15214  	ifNoneMatch_ string
 15215  	ctx_         context.Context
 15216  	header_      http.Header
 15217  }
 15218  
 15219  // List: Lists all Conversations by their parent DataStore.
 15220  //
 15221  //   - parent: The data store resource name. Format:
 15222  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 15223  //     /dataStores/{data_store_id}`.
 15224  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) List(parent string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 15225  	c := &ProjectsLocationsCollectionsDataStoresConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15226  	c.parent = parent
 15227  	return c
 15228  }
 15229  
 15230  // Filter sets the optional parameter "filter": A filter to apply on the list
 15231  // results. The supported features are: user_pseudo_id, state. Example:
 15232  // "user_pseudo_id = some_id"
 15233  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 15234  	c.urlParams_.Set("filter", filter)
 15235  	return c
 15236  }
 15237  
 15238  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 15239  // fields to order by, sorted in ascending order. Use "desc" after a field name
 15240  // for descending. Supported fields: * `update_time` * `create_time` *
 15241  // `conversation_name` Example: "update_time desc" "create_time"
 15242  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 15243  	c.urlParams_.Set("orderBy", orderBy)
 15244  	return c
 15245  }
 15246  
 15247  // PageSize sets the optional parameter "pageSize": Maximum number of results
 15248  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 15249  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 15250  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15251  	return c
 15252  }
 15253  
 15254  // PageToken sets the optional parameter "pageToken": A page token, received
 15255  // from a previous `ListConversations` call. Provide this to retrieve the
 15256  // subsequent page.
 15257  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 15258  	c.urlParams_.Set("pageToken", pageToken)
 15259  	return c
 15260  }
 15261  
 15262  // Fields allows partial responses to be retrieved. See
 15263  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15264  // details.
 15265  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 15266  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15267  	return c
 15268  }
 15269  
 15270  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15271  // object's ETag matches the given value. This is useful for getting updates
 15272  // only after the object has changed since the last request.
 15273  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 15274  	c.ifNoneMatch_ = entityTag
 15275  	return c
 15276  }
 15277  
 15278  // Context sets the context to be used in this call's Do method.
 15279  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
 15280  	c.ctx_ = ctx
 15281  	return c
 15282  }
 15283  
 15284  // Header returns a http.Header that can be modified by the caller to add
 15285  // headers to the request.
 15286  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Header() http.Header {
 15287  	if c.header_ == nil {
 15288  		c.header_ = make(http.Header)
 15289  	}
 15290  	return c.header_
 15291  }
 15292  
 15293  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) doRequest(alt string) (*http.Response, error) {
 15294  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15295  	if c.ifNoneMatch_ != "" {
 15296  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15297  	}
 15298  	var body io.Reader = nil
 15299  	c.urlParams_.Set("alt", alt)
 15300  	c.urlParams_.Set("prettyPrint", "false")
 15301  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/conversations")
 15302  	urls += "?" + c.urlParams_.Encode()
 15303  	req, err := http.NewRequest("GET", urls, body)
 15304  	if err != nil {
 15305  		return nil, err
 15306  	}
 15307  	req.Header = reqHeaders
 15308  	googleapi.Expand(req.URL, map[string]string{
 15309  		"parent": c.parent,
 15310  	})
 15311  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15312  }
 15313  
 15314  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.list" call.
 15315  // Any non-2xx status code is an error. Response headers are in either
 15316  // *GoogleCloudDiscoveryengineV1betaListConversationsResponse.ServerResponse.Hea
 15317  // der or (if a response was returned at all) in
 15318  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15319  // whether the returned error was because http.StatusNotModified was returned.
 15320  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListConversationsResponse, error) {
 15321  	gensupport.SetOptions(c.urlParams_, opts...)
 15322  	res, err := c.doRequest("json")
 15323  	if res != nil && res.StatusCode == http.StatusNotModified {
 15324  		if res.Body != nil {
 15325  			res.Body.Close()
 15326  		}
 15327  		return nil, gensupport.WrapError(&googleapi.Error{
 15328  			Code:   res.StatusCode,
 15329  			Header: res.Header,
 15330  		})
 15331  	}
 15332  	if err != nil {
 15333  		return nil, err
 15334  	}
 15335  	defer googleapi.CloseBody(res)
 15336  	if err := googleapi.CheckResponse(res); err != nil {
 15337  		return nil, gensupport.WrapError(err)
 15338  	}
 15339  	ret := &GoogleCloudDiscoveryengineV1betaListConversationsResponse{
 15340  		ServerResponse: googleapi.ServerResponse{
 15341  			Header:         res.Header,
 15342  			HTTPStatusCode: res.StatusCode,
 15343  		},
 15344  	}
 15345  	target := &ret
 15346  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15347  		return nil, err
 15348  	}
 15349  	return ret, nil
 15350  }
 15351  
 15352  // Pages invokes f for each page of results.
 15353  // A non-nil error returned from f will halt the iteration.
 15354  // The provided context supersedes any context provided to the Context method.
 15355  func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListConversationsResponse) error) error {
 15356  	c.ctx_ = ctx
 15357  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15358  	for {
 15359  		x, err := c.Do()
 15360  		if err != nil {
 15361  			return err
 15362  		}
 15363  		if err := f(x); err != nil {
 15364  			return err
 15365  		}
 15366  		if x.NextPageToken == "" {
 15367  			return nil
 15368  		}
 15369  		c.PageToken(x.NextPageToken)
 15370  	}
 15371  }
 15372  
 15373  type ProjectsLocationsCollectionsDataStoresConversationsPatchCall struct {
 15374  	s                                            *Service
 15375  	name                                         string
 15376  	googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation
 15377  	urlParams_                                   gensupport.URLParams
 15378  	ctx_                                         context.Context
 15379  	header_                                      http.Header
 15380  }
 15381  
 15382  // Patch: Updates a Conversation. Conversation action type cannot be changed.
 15383  // If the Conversation to update does not exist, a NOT_FOUND error is returned.
 15384  //
 15385  //   - name: Immutable. Fully qualified name
 15386  //     `projects/{project}/locations/global/collections/{collection}/dataStore/*/c
 15387  //     onversations/*` or
 15388  //     `projects/{project}/locations/global/collections/{collection}/engines/*/con
 15389  //     versations/*`.
 15390  func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Patch(name string, googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
 15391  	c := &ProjectsLocationsCollectionsDataStoresConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15392  	c.name = name
 15393  	c.googleclouddiscoveryenginev1betaconversation = googleclouddiscoveryenginev1betaconversation
 15394  	return c
 15395  }
 15396  
 15397  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 15398  // in the provided Conversation to update. The following are NOT supported: *
 15399  // Conversation.name If not set or empty, all supported fields are updated.
 15400  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
 15401  	c.urlParams_.Set("updateMask", updateMask)
 15402  	return c
 15403  }
 15404  
 15405  // Fields allows partial responses to be retrieved. See
 15406  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15407  // details.
 15408  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
 15409  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15410  	return c
 15411  }
 15412  
 15413  // Context sets the context to be used in this call's Do method.
 15414  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
 15415  	c.ctx_ = ctx
 15416  	return c
 15417  }
 15418  
 15419  // Header returns a http.Header that can be modified by the caller to add
 15420  // headers to the request.
 15421  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Header() http.Header {
 15422  	if c.header_ == nil {
 15423  		c.header_ = make(http.Header)
 15424  	}
 15425  	return c.header_
 15426  }
 15427  
 15428  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
 15429  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 15430  	var body io.Reader = nil
 15431  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconversation)
 15432  	if err != nil {
 15433  		return nil, err
 15434  	}
 15435  	c.urlParams_.Set("alt", alt)
 15436  	c.urlParams_.Set("prettyPrint", "false")
 15437  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 15438  	urls += "?" + c.urlParams_.Encode()
 15439  	req, err := http.NewRequest("PATCH", urls, body)
 15440  	if err != nil {
 15441  		return nil, err
 15442  	}
 15443  	req.Header = reqHeaders
 15444  	googleapi.Expand(req.URL, map[string]string{
 15445  		"name": c.name,
 15446  	})
 15447  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15448  }
 15449  
 15450  // Do executes the "discoveryengine.projects.locations.collections.dataStores.conversations.patch" call.
 15451  // Any non-2xx status code is an error. Response headers are in either
 15452  // *GoogleCloudDiscoveryengineV1betaConversation.ServerResponse.Header or (if a
 15453  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15454  // googleapi.IsNotModified to check whether the returned error was because
 15455  // http.StatusNotModified was returned.
 15456  func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
 15457  	gensupport.SetOptions(c.urlParams_, opts...)
 15458  	res, err := c.doRequest("json")
 15459  	if res != nil && res.StatusCode == http.StatusNotModified {
 15460  		if res.Body != nil {
 15461  			res.Body.Close()
 15462  		}
 15463  		return nil, gensupport.WrapError(&googleapi.Error{
 15464  			Code:   res.StatusCode,
 15465  			Header: res.Header,
 15466  		})
 15467  	}
 15468  	if err != nil {
 15469  		return nil, err
 15470  	}
 15471  	defer googleapi.CloseBody(res)
 15472  	if err := googleapi.CheckResponse(res); err != nil {
 15473  		return nil, gensupport.WrapError(err)
 15474  	}
 15475  	ret := &GoogleCloudDiscoveryengineV1betaConversation{
 15476  		ServerResponse: googleapi.ServerResponse{
 15477  			Header:         res.Header,
 15478  			HTTPStatusCode: res.StatusCode,
 15479  		},
 15480  	}
 15481  	target := &ret
 15482  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15483  		return nil, err
 15484  	}
 15485  	return ret, nil
 15486  }
 15487  
 15488  type ProjectsLocationsCollectionsDataStoresCustomModelsListCall struct {
 15489  	s            *Service
 15490  	dataStore    string
 15491  	urlParams_   gensupport.URLParams
 15492  	ifNoneMatch_ string
 15493  	ctx_         context.Context
 15494  	header_      http.Header
 15495  }
 15496  
 15497  // List: Gets a list of all the custom models.
 15498  //
 15499  //   - dataStore: The resource name of the parent Data Store, such as
 15500  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 15501  //     ult_data_store`. This field is used to identify the data store where to
 15502  //     fetch the models from.
 15503  func (r *ProjectsLocationsCollectionsDataStoresCustomModelsService) List(dataStore string) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
 15504  	c := &ProjectsLocationsCollectionsDataStoresCustomModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15505  	c.dataStore = dataStore
 15506  	return c
 15507  }
 15508  
 15509  // Fields allows partial responses to be retrieved. See
 15510  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15511  // details.
 15512  func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
 15513  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15514  	return c
 15515  }
 15516  
 15517  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15518  // object's ETag matches the given value. This is useful for getting updates
 15519  // only after the object has changed since the last request.
 15520  func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
 15521  	c.ifNoneMatch_ = entityTag
 15522  	return c
 15523  }
 15524  
 15525  // Context sets the context to be used in this call's Do method.
 15526  func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
 15527  	c.ctx_ = ctx
 15528  	return c
 15529  }
 15530  
 15531  // Header returns a http.Header that can be modified by the caller to add
 15532  // headers to the request.
 15533  func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Header() http.Header {
 15534  	if c.header_ == nil {
 15535  		c.header_ = make(http.Header)
 15536  	}
 15537  	return c.header_
 15538  }
 15539  
 15540  func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) doRequest(alt string) (*http.Response, error) {
 15541  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15542  	if c.ifNoneMatch_ != "" {
 15543  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15544  	}
 15545  	var body io.Reader = nil
 15546  	c.urlParams_.Set("alt", alt)
 15547  	c.urlParams_.Set("prettyPrint", "false")
 15548  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+dataStore}/customModels")
 15549  	urls += "?" + c.urlParams_.Encode()
 15550  	req, err := http.NewRequest("GET", urls, body)
 15551  	if err != nil {
 15552  		return nil, err
 15553  	}
 15554  	req.Header = reqHeaders
 15555  	googleapi.Expand(req.URL, map[string]string{
 15556  		"dataStore": c.dataStore,
 15557  	})
 15558  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15559  }
 15560  
 15561  // Do executes the "discoveryengine.projects.locations.collections.dataStores.customModels.list" call.
 15562  // Any non-2xx status code is an error. Response headers are in either
 15563  // *GoogleCloudDiscoveryengineV1betaListCustomModelsResponse.ServerResponse.Head
 15564  // er or (if a response was returned at all) in
 15565  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 15566  // whether the returned error was because http.StatusNotModified was returned.
 15567  func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListCustomModelsResponse, error) {
 15568  	gensupport.SetOptions(c.urlParams_, opts...)
 15569  	res, err := c.doRequest("json")
 15570  	if res != nil && res.StatusCode == http.StatusNotModified {
 15571  		if res.Body != nil {
 15572  			res.Body.Close()
 15573  		}
 15574  		return nil, gensupport.WrapError(&googleapi.Error{
 15575  			Code:   res.StatusCode,
 15576  			Header: res.Header,
 15577  		})
 15578  	}
 15579  	if err != nil {
 15580  		return nil, err
 15581  	}
 15582  	defer googleapi.CloseBody(res)
 15583  	if err := googleapi.CheckResponse(res); err != nil {
 15584  		return nil, gensupport.WrapError(err)
 15585  	}
 15586  	ret := &GoogleCloudDiscoveryengineV1betaListCustomModelsResponse{
 15587  		ServerResponse: googleapi.ServerResponse{
 15588  			Header:         res.Header,
 15589  			HTTPStatusCode: res.StatusCode,
 15590  		},
 15591  	}
 15592  	target := &ret
 15593  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15594  		return nil, err
 15595  	}
 15596  	return ret, nil
 15597  }
 15598  
 15599  type ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall struct {
 15600  	s            *Service
 15601  	name         string
 15602  	urlParams_   gensupport.URLParams
 15603  	ifNoneMatch_ string
 15604  	ctx_         context.Context
 15605  	header_      http.Header
 15606  }
 15607  
 15608  // Get: Gets the latest state of a long-running operation. Clients can use this
 15609  // method to poll the operation result at intervals as recommended by the API
 15610  // service.
 15611  //
 15612  // - name: The name of the operation resource.
 15613  func (r *ProjectsLocationsCollectionsDataStoresModelsOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
 15614  	c := &ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15615  	c.name = name
 15616  	return c
 15617  }
 15618  
 15619  // Fields allows partial responses to be retrieved. See
 15620  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15621  // details.
 15622  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
 15623  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15624  	return c
 15625  }
 15626  
 15627  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15628  // object's ETag matches the given value. This is useful for getting updates
 15629  // only after the object has changed since the last request.
 15630  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
 15631  	c.ifNoneMatch_ = entityTag
 15632  	return c
 15633  }
 15634  
 15635  // Context sets the context to be used in this call's Do method.
 15636  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
 15637  	c.ctx_ = ctx
 15638  	return c
 15639  }
 15640  
 15641  // Header returns a http.Header that can be modified by the caller to add
 15642  // headers to the request.
 15643  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Header() http.Header {
 15644  	if c.header_ == nil {
 15645  		c.header_ = make(http.Header)
 15646  	}
 15647  	return c.header_
 15648  }
 15649  
 15650  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 15651  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15652  	if c.ifNoneMatch_ != "" {
 15653  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15654  	}
 15655  	var body io.Reader = nil
 15656  	c.urlParams_.Set("alt", alt)
 15657  	c.urlParams_.Set("prettyPrint", "false")
 15658  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 15659  	urls += "?" + c.urlParams_.Encode()
 15660  	req, err := http.NewRequest("GET", urls, body)
 15661  	if err != nil {
 15662  		return nil, err
 15663  	}
 15664  	req.Header = reqHeaders
 15665  	googleapi.Expand(req.URL, map[string]string{
 15666  		"name": c.name,
 15667  	})
 15668  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15669  }
 15670  
 15671  // Do executes the "discoveryengine.projects.locations.collections.dataStores.models.operations.get" call.
 15672  // Any non-2xx status code is an error. Response headers are in either
 15673  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15674  // returned at all) in error.(*googleapi.Error).Header. Use
 15675  // googleapi.IsNotModified to check whether the returned error was because
 15676  // http.StatusNotModified was returned.
 15677  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15678  	gensupport.SetOptions(c.urlParams_, opts...)
 15679  	res, err := c.doRequest("json")
 15680  	if res != nil && res.StatusCode == http.StatusNotModified {
 15681  		if res.Body != nil {
 15682  			res.Body.Close()
 15683  		}
 15684  		return nil, gensupport.WrapError(&googleapi.Error{
 15685  			Code:   res.StatusCode,
 15686  			Header: res.Header,
 15687  		})
 15688  	}
 15689  	if err != nil {
 15690  		return nil, err
 15691  	}
 15692  	defer googleapi.CloseBody(res)
 15693  	if err := googleapi.CheckResponse(res); err != nil {
 15694  		return nil, gensupport.WrapError(err)
 15695  	}
 15696  	ret := &GoogleLongrunningOperation{
 15697  		ServerResponse: googleapi.ServerResponse{
 15698  			Header:         res.Header,
 15699  			HTTPStatusCode: res.StatusCode,
 15700  		},
 15701  	}
 15702  	target := &ret
 15703  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15704  		return nil, err
 15705  	}
 15706  	return ret, nil
 15707  }
 15708  
 15709  type ProjectsLocationsCollectionsDataStoresModelsOperationsListCall struct {
 15710  	s            *Service
 15711  	name         string
 15712  	urlParams_   gensupport.URLParams
 15713  	ifNoneMatch_ string
 15714  	ctx_         context.Context
 15715  	header_      http.Header
 15716  }
 15717  
 15718  // List: Lists operations that match the specified filter in the request. If
 15719  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 15720  //
 15721  // - name: The name of the operation's parent resource.
 15722  func (r *ProjectsLocationsCollectionsDataStoresModelsOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 15723  	c := &ProjectsLocationsCollectionsDataStoresModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15724  	c.name = name
 15725  	return c
 15726  }
 15727  
 15728  // Filter sets the optional parameter "filter": The standard list filter.
 15729  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 15730  	c.urlParams_.Set("filter", filter)
 15731  	return c
 15732  }
 15733  
 15734  // PageSize sets the optional parameter "pageSize": The standard list page
 15735  // size.
 15736  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 15737  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15738  	return c
 15739  }
 15740  
 15741  // PageToken sets the optional parameter "pageToken": The standard list page
 15742  // token.
 15743  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 15744  	c.urlParams_.Set("pageToken", pageToken)
 15745  	return c
 15746  }
 15747  
 15748  // Fields allows partial responses to be retrieved. See
 15749  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15750  // details.
 15751  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 15752  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15753  	return c
 15754  }
 15755  
 15756  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15757  // object's ETag matches the given value. This is useful for getting updates
 15758  // only after the object has changed since the last request.
 15759  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 15760  	c.ifNoneMatch_ = entityTag
 15761  	return c
 15762  }
 15763  
 15764  // Context sets the context to be used in this call's Do method.
 15765  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
 15766  	c.ctx_ = ctx
 15767  	return c
 15768  }
 15769  
 15770  // Header returns a http.Header that can be modified by the caller to add
 15771  // headers to the request.
 15772  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Header() http.Header {
 15773  	if c.header_ == nil {
 15774  		c.header_ = make(http.Header)
 15775  	}
 15776  	return c.header_
 15777  }
 15778  
 15779  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 15780  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15781  	if c.ifNoneMatch_ != "" {
 15782  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15783  	}
 15784  	var body io.Reader = nil
 15785  	c.urlParams_.Set("alt", alt)
 15786  	c.urlParams_.Set("prettyPrint", "false")
 15787  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 15788  	urls += "?" + c.urlParams_.Encode()
 15789  	req, err := http.NewRequest("GET", urls, body)
 15790  	if err != nil {
 15791  		return nil, err
 15792  	}
 15793  	req.Header = reqHeaders
 15794  	googleapi.Expand(req.URL, map[string]string{
 15795  		"name": c.name,
 15796  	})
 15797  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15798  }
 15799  
 15800  // Do executes the "discoveryengine.projects.locations.collections.dataStores.models.operations.list" call.
 15801  // Any non-2xx status code is an error. Response headers are in either
 15802  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 15803  // response was returned at all) in error.(*googleapi.Error).Header. Use
 15804  // googleapi.IsNotModified to check whether the returned error was because
 15805  // http.StatusNotModified was returned.
 15806  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 15807  	gensupport.SetOptions(c.urlParams_, opts...)
 15808  	res, err := c.doRequest("json")
 15809  	if res != nil && res.StatusCode == http.StatusNotModified {
 15810  		if res.Body != nil {
 15811  			res.Body.Close()
 15812  		}
 15813  		return nil, gensupport.WrapError(&googleapi.Error{
 15814  			Code:   res.StatusCode,
 15815  			Header: res.Header,
 15816  		})
 15817  	}
 15818  	if err != nil {
 15819  		return nil, err
 15820  	}
 15821  	defer googleapi.CloseBody(res)
 15822  	if err := googleapi.CheckResponse(res); err != nil {
 15823  		return nil, gensupport.WrapError(err)
 15824  	}
 15825  	ret := &GoogleLongrunningListOperationsResponse{
 15826  		ServerResponse: googleapi.ServerResponse{
 15827  			Header:         res.Header,
 15828  			HTTPStatusCode: res.StatusCode,
 15829  		},
 15830  	}
 15831  	target := &ret
 15832  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15833  		return nil, err
 15834  	}
 15835  	return ret, nil
 15836  }
 15837  
 15838  // Pages invokes f for each page of results.
 15839  // A non-nil error returned from f will halt the iteration.
 15840  // The provided context supersedes any context provided to the Context method.
 15841  func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 15842  	c.ctx_ = ctx
 15843  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 15844  	for {
 15845  		x, err := c.Do()
 15846  		if err != nil {
 15847  			return err
 15848  		}
 15849  		if err := f(x); err != nil {
 15850  			return err
 15851  		}
 15852  		if x.NextPageToken == "" {
 15853  			return nil
 15854  		}
 15855  		c.PageToken(x.NextPageToken)
 15856  	}
 15857  }
 15858  
 15859  type ProjectsLocationsCollectionsDataStoresOperationsGetCall struct {
 15860  	s            *Service
 15861  	name         string
 15862  	urlParams_   gensupport.URLParams
 15863  	ifNoneMatch_ string
 15864  	ctx_         context.Context
 15865  	header_      http.Header
 15866  }
 15867  
 15868  // Get: Gets the latest state of a long-running operation. Clients can use this
 15869  // method to poll the operation result at intervals as recommended by the API
 15870  // service.
 15871  //
 15872  // - name: The name of the operation resource.
 15873  func (r *ProjectsLocationsCollectionsDataStoresOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
 15874  	c := &ProjectsLocationsCollectionsDataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15875  	c.name = name
 15876  	return c
 15877  }
 15878  
 15879  // Fields allows partial responses to be retrieved. See
 15880  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 15881  // details.
 15882  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
 15883  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 15884  	return c
 15885  }
 15886  
 15887  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 15888  // object's ETag matches the given value. This is useful for getting updates
 15889  // only after the object has changed since the last request.
 15890  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
 15891  	c.ifNoneMatch_ = entityTag
 15892  	return c
 15893  }
 15894  
 15895  // Context sets the context to be used in this call's Do method.
 15896  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
 15897  	c.ctx_ = ctx
 15898  	return c
 15899  }
 15900  
 15901  // Header returns a http.Header that can be modified by the caller to add
 15902  // headers to the request.
 15903  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Header() http.Header {
 15904  	if c.header_ == nil {
 15905  		c.header_ = make(http.Header)
 15906  	}
 15907  	return c.header_
 15908  }
 15909  
 15910  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 15911  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 15912  	if c.ifNoneMatch_ != "" {
 15913  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 15914  	}
 15915  	var body io.Reader = nil
 15916  	c.urlParams_.Set("alt", alt)
 15917  	c.urlParams_.Set("prettyPrint", "false")
 15918  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 15919  	urls += "?" + c.urlParams_.Encode()
 15920  	req, err := http.NewRequest("GET", urls, body)
 15921  	if err != nil {
 15922  		return nil, err
 15923  	}
 15924  	req.Header = reqHeaders
 15925  	googleapi.Expand(req.URL, map[string]string{
 15926  		"name": c.name,
 15927  	})
 15928  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 15929  }
 15930  
 15931  // Do executes the "discoveryengine.projects.locations.collections.dataStores.operations.get" call.
 15932  // Any non-2xx status code is an error. Response headers are in either
 15933  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 15934  // returned at all) in error.(*googleapi.Error).Header. Use
 15935  // googleapi.IsNotModified to check whether the returned error was because
 15936  // http.StatusNotModified was returned.
 15937  func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 15938  	gensupport.SetOptions(c.urlParams_, opts...)
 15939  	res, err := c.doRequest("json")
 15940  	if res != nil && res.StatusCode == http.StatusNotModified {
 15941  		if res.Body != nil {
 15942  			res.Body.Close()
 15943  		}
 15944  		return nil, gensupport.WrapError(&googleapi.Error{
 15945  			Code:   res.StatusCode,
 15946  			Header: res.Header,
 15947  		})
 15948  	}
 15949  	if err != nil {
 15950  		return nil, err
 15951  	}
 15952  	defer googleapi.CloseBody(res)
 15953  	if err := googleapi.CheckResponse(res); err != nil {
 15954  		return nil, gensupport.WrapError(err)
 15955  	}
 15956  	ret := &GoogleLongrunningOperation{
 15957  		ServerResponse: googleapi.ServerResponse{
 15958  			Header:         res.Header,
 15959  			HTTPStatusCode: res.StatusCode,
 15960  		},
 15961  	}
 15962  	target := &ret
 15963  	if err := gensupport.DecodeResponse(target, res); err != nil {
 15964  		return nil, err
 15965  	}
 15966  	return ret, nil
 15967  }
 15968  
 15969  type ProjectsLocationsCollectionsDataStoresOperationsListCall struct {
 15970  	s            *Service
 15971  	name         string
 15972  	urlParams_   gensupport.URLParams
 15973  	ifNoneMatch_ string
 15974  	ctx_         context.Context
 15975  	header_      http.Header
 15976  }
 15977  
 15978  // List: Lists operations that match the specified filter in the request. If
 15979  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 15980  //
 15981  // - name: The name of the operation's parent resource.
 15982  func (r *ProjectsLocationsCollectionsDataStoresOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 15983  	c := &ProjectsLocationsCollectionsDataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 15984  	c.name = name
 15985  	return c
 15986  }
 15987  
 15988  // Filter sets the optional parameter "filter": The standard list filter.
 15989  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 15990  	c.urlParams_.Set("filter", filter)
 15991  	return c
 15992  }
 15993  
 15994  // PageSize sets the optional parameter "pageSize": The standard list page
 15995  // size.
 15996  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 15997  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 15998  	return c
 15999  }
 16000  
 16001  // PageToken sets the optional parameter "pageToken": The standard list page
 16002  // token.
 16003  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 16004  	c.urlParams_.Set("pageToken", pageToken)
 16005  	return c
 16006  }
 16007  
 16008  // Fields allows partial responses to be retrieved. See
 16009  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16010  // details.
 16011  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 16012  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16013  	return c
 16014  }
 16015  
 16016  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16017  // object's ETag matches the given value. This is useful for getting updates
 16018  // only after the object has changed since the last request.
 16019  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 16020  	c.ifNoneMatch_ = entityTag
 16021  	return c
 16022  }
 16023  
 16024  // Context sets the context to be used in this call's Do method.
 16025  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
 16026  	c.ctx_ = ctx
 16027  	return c
 16028  }
 16029  
 16030  // Header returns a http.Header that can be modified by the caller to add
 16031  // headers to the request.
 16032  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Header() http.Header {
 16033  	if c.header_ == nil {
 16034  		c.header_ = make(http.Header)
 16035  	}
 16036  	return c.header_
 16037  }
 16038  
 16039  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) {
 16040  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16041  	if c.ifNoneMatch_ != "" {
 16042  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16043  	}
 16044  	var body io.Reader = nil
 16045  	c.urlParams_.Set("alt", alt)
 16046  	c.urlParams_.Set("prettyPrint", "false")
 16047  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 16048  	urls += "?" + c.urlParams_.Encode()
 16049  	req, err := http.NewRequest("GET", urls, body)
 16050  	if err != nil {
 16051  		return nil, err
 16052  	}
 16053  	req.Header = reqHeaders
 16054  	googleapi.Expand(req.URL, map[string]string{
 16055  		"name": c.name,
 16056  	})
 16057  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16058  }
 16059  
 16060  // Do executes the "discoveryengine.projects.locations.collections.dataStores.operations.list" call.
 16061  // Any non-2xx status code is an error. Response headers are in either
 16062  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 16063  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16064  // googleapi.IsNotModified to check whether the returned error was because
 16065  // http.StatusNotModified was returned.
 16066  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 16067  	gensupport.SetOptions(c.urlParams_, opts...)
 16068  	res, err := c.doRequest("json")
 16069  	if res != nil && res.StatusCode == http.StatusNotModified {
 16070  		if res.Body != nil {
 16071  			res.Body.Close()
 16072  		}
 16073  		return nil, gensupport.WrapError(&googleapi.Error{
 16074  			Code:   res.StatusCode,
 16075  			Header: res.Header,
 16076  		})
 16077  	}
 16078  	if err != nil {
 16079  		return nil, err
 16080  	}
 16081  	defer googleapi.CloseBody(res)
 16082  	if err := googleapi.CheckResponse(res); err != nil {
 16083  		return nil, gensupport.WrapError(err)
 16084  	}
 16085  	ret := &GoogleLongrunningListOperationsResponse{
 16086  		ServerResponse: googleapi.ServerResponse{
 16087  			Header:         res.Header,
 16088  			HTTPStatusCode: res.StatusCode,
 16089  		},
 16090  	}
 16091  	target := &ret
 16092  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16093  		return nil, err
 16094  	}
 16095  	return ret, nil
 16096  }
 16097  
 16098  // Pages invokes f for each page of results.
 16099  // A non-nil error returned from f will halt the iteration.
 16100  // The provided context supersedes any context provided to the Context method.
 16101  func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 16102  	c.ctx_ = ctx
 16103  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 16104  	for {
 16105  		x, err := c.Do()
 16106  		if err != nil {
 16107  			return err
 16108  		}
 16109  		if err := f(x); err != nil {
 16110  			return err
 16111  		}
 16112  		if x.NextPageToken == "" {
 16113  			return nil
 16114  		}
 16115  		c.PageToken(x.NextPageToken)
 16116  	}
 16117  }
 16118  
 16119  type ProjectsLocationsCollectionsDataStoresSchemasCreateCall struct {
 16120  	s                                      *Service
 16121  	parent                                 string
 16122  	googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema
 16123  	urlParams_                             gensupport.URLParams
 16124  	ctx_                                   context.Context
 16125  	header_                                http.Header
 16126  }
 16127  
 16128  // Create: Creates a Schema.
 16129  //
 16130  //   - parent: The parent data store resource name, in the format of
 16131  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 16132  //     s/{data_store}`.
 16133  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Create(parent string, googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
 16134  	c := &ProjectsLocationsCollectionsDataStoresSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16135  	c.parent = parent
 16136  	c.googleclouddiscoveryenginev1betaschema = googleclouddiscoveryenginev1betaschema
 16137  	return c
 16138  }
 16139  
 16140  // SchemaId sets the optional parameter "schemaId": Required. The ID to use for
 16141  // the Schema, which will become the final component of the Schema.name. This
 16142  // field should conform to RFC-1034 (https://tools.ietf.org/html/rfc1034)
 16143  // standard with a length limit of 63 characters.
 16144  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) SchemaId(schemaId string) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
 16145  	c.urlParams_.Set("schemaId", schemaId)
 16146  	return c
 16147  }
 16148  
 16149  // Fields allows partial responses to be retrieved. See
 16150  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16151  // details.
 16152  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
 16153  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16154  	return c
 16155  }
 16156  
 16157  // Context sets the context to be used in this call's Do method.
 16158  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
 16159  	c.ctx_ = ctx
 16160  	return c
 16161  }
 16162  
 16163  // Header returns a http.Header that can be modified by the caller to add
 16164  // headers to the request.
 16165  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Header() http.Header {
 16166  	if c.header_ == nil {
 16167  		c.header_ = make(http.Header)
 16168  	}
 16169  	return c.header_
 16170  }
 16171  
 16172  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) doRequest(alt string) (*http.Response, error) {
 16173  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16174  	var body io.Reader = nil
 16175  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaschema)
 16176  	if err != nil {
 16177  		return nil, err
 16178  	}
 16179  	c.urlParams_.Set("alt", alt)
 16180  	c.urlParams_.Set("prettyPrint", "false")
 16181  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/schemas")
 16182  	urls += "?" + c.urlParams_.Encode()
 16183  	req, err := http.NewRequest("POST", urls, body)
 16184  	if err != nil {
 16185  		return nil, err
 16186  	}
 16187  	req.Header = reqHeaders
 16188  	googleapi.Expand(req.URL, map[string]string{
 16189  		"parent": c.parent,
 16190  	})
 16191  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16192  }
 16193  
 16194  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.create" call.
 16195  // Any non-2xx status code is an error. Response headers are in either
 16196  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 16197  // returned at all) in error.(*googleapi.Error).Header. Use
 16198  // googleapi.IsNotModified to check whether the returned error was because
 16199  // http.StatusNotModified was returned.
 16200  func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 16201  	gensupport.SetOptions(c.urlParams_, opts...)
 16202  	res, err := c.doRequest("json")
 16203  	if res != nil && res.StatusCode == http.StatusNotModified {
 16204  		if res.Body != nil {
 16205  			res.Body.Close()
 16206  		}
 16207  		return nil, gensupport.WrapError(&googleapi.Error{
 16208  			Code:   res.StatusCode,
 16209  			Header: res.Header,
 16210  		})
 16211  	}
 16212  	if err != nil {
 16213  		return nil, err
 16214  	}
 16215  	defer googleapi.CloseBody(res)
 16216  	if err := googleapi.CheckResponse(res); err != nil {
 16217  		return nil, gensupport.WrapError(err)
 16218  	}
 16219  	ret := &GoogleLongrunningOperation{
 16220  		ServerResponse: googleapi.ServerResponse{
 16221  			Header:         res.Header,
 16222  			HTTPStatusCode: res.StatusCode,
 16223  		},
 16224  	}
 16225  	target := &ret
 16226  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16227  		return nil, err
 16228  	}
 16229  	return ret, nil
 16230  }
 16231  
 16232  type ProjectsLocationsCollectionsDataStoresSchemasDeleteCall struct {
 16233  	s          *Service
 16234  	name       string
 16235  	urlParams_ gensupport.URLParams
 16236  	ctx_       context.Context
 16237  	header_    http.Header
 16238  }
 16239  
 16240  // Delete: Deletes a Schema.
 16241  //
 16242  //   - name: The full resource name of the schema, in the format of
 16243  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 16244  //     s/{data_store}/schemas/{schema}`.
 16245  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
 16246  	c := &ProjectsLocationsCollectionsDataStoresSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16247  	c.name = name
 16248  	return c
 16249  }
 16250  
 16251  // Fields allows partial responses to be retrieved. See
 16252  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16253  // details.
 16254  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
 16255  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16256  	return c
 16257  }
 16258  
 16259  // Context sets the context to be used in this call's Do method.
 16260  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
 16261  	c.ctx_ = ctx
 16262  	return c
 16263  }
 16264  
 16265  // Header returns a http.Header that can be modified by the caller to add
 16266  // headers to the request.
 16267  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Header() http.Header {
 16268  	if c.header_ == nil {
 16269  		c.header_ = make(http.Header)
 16270  	}
 16271  	return c.header_
 16272  }
 16273  
 16274  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) doRequest(alt string) (*http.Response, error) {
 16275  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16276  	var body io.Reader = nil
 16277  	c.urlParams_.Set("alt", alt)
 16278  	c.urlParams_.Set("prettyPrint", "false")
 16279  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 16280  	urls += "?" + c.urlParams_.Encode()
 16281  	req, err := http.NewRequest("DELETE", urls, body)
 16282  	if err != nil {
 16283  		return nil, err
 16284  	}
 16285  	req.Header = reqHeaders
 16286  	googleapi.Expand(req.URL, map[string]string{
 16287  		"name": c.name,
 16288  	})
 16289  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16290  }
 16291  
 16292  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.delete" call.
 16293  // Any non-2xx status code is an error. Response headers are in either
 16294  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 16295  // returned at all) in error.(*googleapi.Error).Header. Use
 16296  // googleapi.IsNotModified to check whether the returned error was because
 16297  // http.StatusNotModified was returned.
 16298  func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 16299  	gensupport.SetOptions(c.urlParams_, opts...)
 16300  	res, err := c.doRequest("json")
 16301  	if res != nil && res.StatusCode == http.StatusNotModified {
 16302  		if res.Body != nil {
 16303  			res.Body.Close()
 16304  		}
 16305  		return nil, gensupport.WrapError(&googleapi.Error{
 16306  			Code:   res.StatusCode,
 16307  			Header: res.Header,
 16308  		})
 16309  	}
 16310  	if err != nil {
 16311  		return nil, err
 16312  	}
 16313  	defer googleapi.CloseBody(res)
 16314  	if err := googleapi.CheckResponse(res); err != nil {
 16315  		return nil, gensupport.WrapError(err)
 16316  	}
 16317  	ret := &GoogleLongrunningOperation{
 16318  		ServerResponse: googleapi.ServerResponse{
 16319  			Header:         res.Header,
 16320  			HTTPStatusCode: res.StatusCode,
 16321  		},
 16322  	}
 16323  	target := &ret
 16324  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16325  		return nil, err
 16326  	}
 16327  	return ret, nil
 16328  }
 16329  
 16330  type ProjectsLocationsCollectionsDataStoresSchemasGetCall struct {
 16331  	s            *Service
 16332  	name         string
 16333  	urlParams_   gensupport.URLParams
 16334  	ifNoneMatch_ string
 16335  	ctx_         context.Context
 16336  	header_      http.Header
 16337  }
 16338  
 16339  // Get: Gets a Schema.
 16340  //
 16341  //   - name: The full resource name of the schema, in the format of
 16342  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 16343  //     s/{data_store}/schemas/{schema}`.
 16344  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Get(name string) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
 16345  	c := &ProjectsLocationsCollectionsDataStoresSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16346  	c.name = name
 16347  	return c
 16348  }
 16349  
 16350  // Fields allows partial responses to be retrieved. See
 16351  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16352  // details.
 16353  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
 16354  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16355  	return c
 16356  }
 16357  
 16358  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16359  // object's ETag matches the given value. This is useful for getting updates
 16360  // only after the object has changed since the last request.
 16361  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
 16362  	c.ifNoneMatch_ = entityTag
 16363  	return c
 16364  }
 16365  
 16366  // Context sets the context to be used in this call's Do method.
 16367  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
 16368  	c.ctx_ = ctx
 16369  	return c
 16370  }
 16371  
 16372  // Header returns a http.Header that can be modified by the caller to add
 16373  // headers to the request.
 16374  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Header() http.Header {
 16375  	if c.header_ == nil {
 16376  		c.header_ = make(http.Header)
 16377  	}
 16378  	return c.header_
 16379  }
 16380  
 16381  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) doRequest(alt string) (*http.Response, error) {
 16382  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16383  	if c.ifNoneMatch_ != "" {
 16384  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16385  	}
 16386  	var body io.Reader = nil
 16387  	c.urlParams_.Set("alt", alt)
 16388  	c.urlParams_.Set("prettyPrint", "false")
 16389  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 16390  	urls += "?" + c.urlParams_.Encode()
 16391  	req, err := http.NewRequest("GET", urls, body)
 16392  	if err != nil {
 16393  		return nil, err
 16394  	}
 16395  	req.Header = reqHeaders
 16396  	googleapi.Expand(req.URL, map[string]string{
 16397  		"name": c.name,
 16398  	})
 16399  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16400  }
 16401  
 16402  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.get" call.
 16403  // Any non-2xx status code is an error. Response headers are in either
 16404  // *GoogleCloudDiscoveryengineV1betaSchema.ServerResponse.Header or (if a
 16405  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16406  // googleapi.IsNotModified to check whether the returned error was because
 16407  // http.StatusNotModified was returned.
 16408  func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSchema, error) {
 16409  	gensupport.SetOptions(c.urlParams_, opts...)
 16410  	res, err := c.doRequest("json")
 16411  	if res != nil && res.StatusCode == http.StatusNotModified {
 16412  		if res.Body != nil {
 16413  			res.Body.Close()
 16414  		}
 16415  		return nil, gensupport.WrapError(&googleapi.Error{
 16416  			Code:   res.StatusCode,
 16417  			Header: res.Header,
 16418  		})
 16419  	}
 16420  	if err != nil {
 16421  		return nil, err
 16422  	}
 16423  	defer googleapi.CloseBody(res)
 16424  	if err := googleapi.CheckResponse(res); err != nil {
 16425  		return nil, gensupport.WrapError(err)
 16426  	}
 16427  	ret := &GoogleCloudDiscoveryengineV1betaSchema{
 16428  		ServerResponse: googleapi.ServerResponse{
 16429  			Header:         res.Header,
 16430  			HTTPStatusCode: res.StatusCode,
 16431  		},
 16432  	}
 16433  	target := &ret
 16434  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16435  		return nil, err
 16436  	}
 16437  	return ret, nil
 16438  }
 16439  
 16440  type ProjectsLocationsCollectionsDataStoresSchemasListCall struct {
 16441  	s            *Service
 16442  	parent       string
 16443  	urlParams_   gensupport.URLParams
 16444  	ifNoneMatch_ string
 16445  	ctx_         context.Context
 16446  	header_      http.Header
 16447  }
 16448  
 16449  // List: Gets a list of Schemas.
 16450  //
 16451  //   - parent: The parent data store resource name, in the format of
 16452  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 16453  //     s/{data_store}`.
 16454  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) List(parent string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 16455  	c := &ProjectsLocationsCollectionsDataStoresSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16456  	c.parent = parent
 16457  	return c
 16458  }
 16459  
 16460  // PageSize sets the optional parameter "pageSize": The maximum number of
 16461  // Schemas to return. The service may return fewer than this value. If
 16462  // unspecified, at most 100 Schemas will be returned. The maximum value is
 16463  // 1000; values above 1000 will be coerced to 1000.
 16464  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 16465  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 16466  	return c
 16467  }
 16468  
 16469  // PageToken sets the optional parameter "pageToken": A page token, received
 16470  // from a previous SchemaService.ListSchemas call. Provide this to retrieve the
 16471  // subsequent page. When paginating, all other parameters provided to
 16472  // SchemaService.ListSchemas must match the call that provided the page token.
 16473  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 16474  	c.urlParams_.Set("pageToken", pageToken)
 16475  	return c
 16476  }
 16477  
 16478  // Fields allows partial responses to be retrieved. See
 16479  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16480  // details.
 16481  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 16482  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16483  	return c
 16484  }
 16485  
 16486  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16487  // object's ETag matches the given value. This is useful for getting updates
 16488  // only after the object has changed since the last request.
 16489  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 16490  	c.ifNoneMatch_ = entityTag
 16491  	return c
 16492  }
 16493  
 16494  // Context sets the context to be used in this call's Do method.
 16495  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
 16496  	c.ctx_ = ctx
 16497  	return c
 16498  }
 16499  
 16500  // Header returns a http.Header that can be modified by the caller to add
 16501  // headers to the request.
 16502  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Header() http.Header {
 16503  	if c.header_ == nil {
 16504  		c.header_ = make(http.Header)
 16505  	}
 16506  	return c.header_
 16507  }
 16508  
 16509  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) doRequest(alt string) (*http.Response, error) {
 16510  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16511  	if c.ifNoneMatch_ != "" {
 16512  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16513  	}
 16514  	var body io.Reader = nil
 16515  	c.urlParams_.Set("alt", alt)
 16516  	c.urlParams_.Set("prettyPrint", "false")
 16517  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/schemas")
 16518  	urls += "?" + c.urlParams_.Encode()
 16519  	req, err := http.NewRequest("GET", urls, body)
 16520  	if err != nil {
 16521  		return nil, err
 16522  	}
 16523  	req.Header = reqHeaders
 16524  	googleapi.Expand(req.URL, map[string]string{
 16525  		"parent": c.parent,
 16526  	})
 16527  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16528  }
 16529  
 16530  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.list" call.
 16531  // Any non-2xx status code is an error. Response headers are in either
 16532  // *GoogleCloudDiscoveryengineV1betaListSchemasResponse.ServerResponse.Header
 16533  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 16534  // Use googleapi.IsNotModified to check whether the returned error was because
 16535  // http.StatusNotModified was returned.
 16536  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListSchemasResponse, error) {
 16537  	gensupport.SetOptions(c.urlParams_, opts...)
 16538  	res, err := c.doRequest("json")
 16539  	if res != nil && res.StatusCode == http.StatusNotModified {
 16540  		if res.Body != nil {
 16541  			res.Body.Close()
 16542  		}
 16543  		return nil, gensupport.WrapError(&googleapi.Error{
 16544  			Code:   res.StatusCode,
 16545  			Header: res.Header,
 16546  		})
 16547  	}
 16548  	if err != nil {
 16549  		return nil, err
 16550  	}
 16551  	defer googleapi.CloseBody(res)
 16552  	if err := googleapi.CheckResponse(res); err != nil {
 16553  		return nil, gensupport.WrapError(err)
 16554  	}
 16555  	ret := &GoogleCloudDiscoveryengineV1betaListSchemasResponse{
 16556  		ServerResponse: googleapi.ServerResponse{
 16557  			Header:         res.Header,
 16558  			HTTPStatusCode: res.StatusCode,
 16559  		},
 16560  	}
 16561  	target := &ret
 16562  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16563  		return nil, err
 16564  	}
 16565  	return ret, nil
 16566  }
 16567  
 16568  // Pages invokes f for each page of results.
 16569  // A non-nil error returned from f will halt the iteration.
 16570  // The provided context supersedes any context provided to the Context method.
 16571  func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListSchemasResponse) error) error {
 16572  	c.ctx_ = ctx
 16573  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 16574  	for {
 16575  		x, err := c.Do()
 16576  		if err != nil {
 16577  			return err
 16578  		}
 16579  		if err := f(x); err != nil {
 16580  			return err
 16581  		}
 16582  		if x.NextPageToken == "" {
 16583  			return nil
 16584  		}
 16585  		c.PageToken(x.NextPageToken)
 16586  	}
 16587  }
 16588  
 16589  type ProjectsLocationsCollectionsDataStoresSchemasPatchCall struct {
 16590  	s                                      *Service
 16591  	name                                   string
 16592  	googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema
 16593  	urlParams_                             gensupport.URLParams
 16594  	ctx_                                   context.Context
 16595  	header_                                http.Header
 16596  }
 16597  
 16598  // Patch: Updates a Schema.
 16599  //
 16600  //   - name: Immutable. The full resource name of the schema, in the format of
 16601  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 16602  //     s/{data_store}/schemas/{schema}`. This field must be a UTF-8 encoded
 16603  //     string with a length limit of 1024 characters.
 16604  func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Patch(name string, googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
 16605  	c := &ProjectsLocationsCollectionsDataStoresSchemasPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16606  	c.name = name
 16607  	c.googleclouddiscoveryenginev1betaschema = googleclouddiscoveryenginev1betaschema
 16608  	return c
 16609  }
 16610  
 16611  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 16612  // the Schema is not found, a new Schema will be created. In this situation,
 16613  // `update_mask` is ignored.
 16614  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
 16615  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 16616  	return c
 16617  }
 16618  
 16619  // Fields allows partial responses to be retrieved. See
 16620  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16621  // details.
 16622  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
 16623  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16624  	return c
 16625  }
 16626  
 16627  // Context sets the context to be used in this call's Do method.
 16628  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
 16629  	c.ctx_ = ctx
 16630  	return c
 16631  }
 16632  
 16633  // Header returns a http.Header that can be modified by the caller to add
 16634  // headers to the request.
 16635  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Header() http.Header {
 16636  	if c.header_ == nil {
 16637  		c.header_ = make(http.Header)
 16638  	}
 16639  	return c.header_
 16640  }
 16641  
 16642  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) doRequest(alt string) (*http.Response, error) {
 16643  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 16644  	var body io.Reader = nil
 16645  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaschema)
 16646  	if err != nil {
 16647  		return nil, err
 16648  	}
 16649  	c.urlParams_.Set("alt", alt)
 16650  	c.urlParams_.Set("prettyPrint", "false")
 16651  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 16652  	urls += "?" + c.urlParams_.Encode()
 16653  	req, err := http.NewRequest("PATCH", urls, body)
 16654  	if err != nil {
 16655  		return nil, err
 16656  	}
 16657  	req.Header = reqHeaders
 16658  	googleapi.Expand(req.URL, map[string]string{
 16659  		"name": c.name,
 16660  	})
 16661  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16662  }
 16663  
 16664  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.patch" call.
 16665  // Any non-2xx status code is an error. Response headers are in either
 16666  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 16667  // returned at all) in error.(*googleapi.Error).Header. Use
 16668  // googleapi.IsNotModified to check whether the returned error was because
 16669  // http.StatusNotModified was returned.
 16670  func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 16671  	gensupport.SetOptions(c.urlParams_, opts...)
 16672  	res, err := c.doRequest("json")
 16673  	if res != nil && res.StatusCode == http.StatusNotModified {
 16674  		if res.Body != nil {
 16675  			res.Body.Close()
 16676  		}
 16677  		return nil, gensupport.WrapError(&googleapi.Error{
 16678  			Code:   res.StatusCode,
 16679  			Header: res.Header,
 16680  		})
 16681  	}
 16682  	if err != nil {
 16683  		return nil, err
 16684  	}
 16685  	defer googleapi.CloseBody(res)
 16686  	if err := googleapi.CheckResponse(res); err != nil {
 16687  		return nil, gensupport.WrapError(err)
 16688  	}
 16689  	ret := &GoogleLongrunningOperation{
 16690  		ServerResponse: googleapi.ServerResponse{
 16691  			Header:         res.Header,
 16692  			HTTPStatusCode: res.StatusCode,
 16693  		},
 16694  	}
 16695  	target := &ret
 16696  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16697  		return nil, err
 16698  	}
 16699  	return ret, nil
 16700  }
 16701  
 16702  type ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall struct {
 16703  	s            *Service
 16704  	name         string
 16705  	urlParams_   gensupport.URLParams
 16706  	ifNoneMatch_ string
 16707  	ctx_         context.Context
 16708  	header_      http.Header
 16709  }
 16710  
 16711  // Get: Gets the latest state of a long-running operation. Clients can use this
 16712  // method to poll the operation result at intervals as recommended by the API
 16713  // service.
 16714  //
 16715  // - name: The name of the operation resource.
 16716  func (r *ProjectsLocationsCollectionsDataStoresSchemasOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
 16717  	c := &ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16718  	c.name = name
 16719  	return c
 16720  }
 16721  
 16722  // Fields allows partial responses to be retrieved. See
 16723  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16724  // details.
 16725  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
 16726  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16727  	return c
 16728  }
 16729  
 16730  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16731  // object's ETag matches the given value. This is useful for getting updates
 16732  // only after the object has changed since the last request.
 16733  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
 16734  	c.ifNoneMatch_ = entityTag
 16735  	return c
 16736  }
 16737  
 16738  // Context sets the context to be used in this call's Do method.
 16739  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
 16740  	c.ctx_ = ctx
 16741  	return c
 16742  }
 16743  
 16744  // Header returns a http.Header that can be modified by the caller to add
 16745  // headers to the request.
 16746  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Header() http.Header {
 16747  	if c.header_ == nil {
 16748  		c.header_ = make(http.Header)
 16749  	}
 16750  	return c.header_
 16751  }
 16752  
 16753  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 16754  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16755  	if c.ifNoneMatch_ != "" {
 16756  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16757  	}
 16758  	var body io.Reader = nil
 16759  	c.urlParams_.Set("alt", alt)
 16760  	c.urlParams_.Set("prettyPrint", "false")
 16761  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 16762  	urls += "?" + c.urlParams_.Encode()
 16763  	req, err := http.NewRequest("GET", urls, body)
 16764  	if err != nil {
 16765  		return nil, err
 16766  	}
 16767  	req.Header = reqHeaders
 16768  	googleapi.Expand(req.URL, map[string]string{
 16769  		"name": c.name,
 16770  	})
 16771  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16772  }
 16773  
 16774  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.operations.get" call.
 16775  // Any non-2xx status code is an error. Response headers are in either
 16776  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 16777  // returned at all) in error.(*googleapi.Error).Header. Use
 16778  // googleapi.IsNotModified to check whether the returned error was because
 16779  // http.StatusNotModified was returned.
 16780  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 16781  	gensupport.SetOptions(c.urlParams_, opts...)
 16782  	res, err := c.doRequest("json")
 16783  	if res != nil && res.StatusCode == http.StatusNotModified {
 16784  		if res.Body != nil {
 16785  			res.Body.Close()
 16786  		}
 16787  		return nil, gensupport.WrapError(&googleapi.Error{
 16788  			Code:   res.StatusCode,
 16789  			Header: res.Header,
 16790  		})
 16791  	}
 16792  	if err != nil {
 16793  		return nil, err
 16794  	}
 16795  	defer googleapi.CloseBody(res)
 16796  	if err := googleapi.CheckResponse(res); err != nil {
 16797  		return nil, gensupport.WrapError(err)
 16798  	}
 16799  	ret := &GoogleLongrunningOperation{
 16800  		ServerResponse: googleapi.ServerResponse{
 16801  			Header:         res.Header,
 16802  			HTTPStatusCode: res.StatusCode,
 16803  		},
 16804  	}
 16805  	target := &ret
 16806  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16807  		return nil, err
 16808  	}
 16809  	return ret, nil
 16810  }
 16811  
 16812  type ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall struct {
 16813  	s            *Service
 16814  	name         string
 16815  	urlParams_   gensupport.URLParams
 16816  	ifNoneMatch_ string
 16817  	ctx_         context.Context
 16818  	header_      http.Header
 16819  }
 16820  
 16821  // List: Lists operations that match the specified filter in the request. If
 16822  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 16823  //
 16824  // - name: The name of the operation's parent resource.
 16825  func (r *ProjectsLocationsCollectionsDataStoresSchemasOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 16826  	c := &ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16827  	c.name = name
 16828  	return c
 16829  }
 16830  
 16831  // Filter sets the optional parameter "filter": The standard list filter.
 16832  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 16833  	c.urlParams_.Set("filter", filter)
 16834  	return c
 16835  }
 16836  
 16837  // PageSize sets the optional parameter "pageSize": The standard list page
 16838  // size.
 16839  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 16840  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 16841  	return c
 16842  }
 16843  
 16844  // PageToken sets the optional parameter "pageToken": The standard list page
 16845  // token.
 16846  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 16847  	c.urlParams_.Set("pageToken", pageToken)
 16848  	return c
 16849  }
 16850  
 16851  // Fields allows partial responses to be retrieved. See
 16852  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16853  // details.
 16854  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 16855  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16856  	return c
 16857  }
 16858  
 16859  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 16860  // object's ETag matches the given value. This is useful for getting updates
 16861  // only after the object has changed since the last request.
 16862  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 16863  	c.ifNoneMatch_ = entityTag
 16864  	return c
 16865  }
 16866  
 16867  // Context sets the context to be used in this call's Do method.
 16868  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
 16869  	c.ctx_ = ctx
 16870  	return c
 16871  }
 16872  
 16873  // Header returns a http.Header that can be modified by the caller to add
 16874  // headers to the request.
 16875  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Header() http.Header {
 16876  	if c.header_ == nil {
 16877  		c.header_ = make(http.Header)
 16878  	}
 16879  	return c.header_
 16880  }
 16881  
 16882  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) doRequest(alt string) (*http.Response, error) {
 16883  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 16884  	if c.ifNoneMatch_ != "" {
 16885  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 16886  	}
 16887  	var body io.Reader = nil
 16888  	c.urlParams_.Set("alt", alt)
 16889  	c.urlParams_.Set("prettyPrint", "false")
 16890  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 16891  	urls += "?" + c.urlParams_.Encode()
 16892  	req, err := http.NewRequest("GET", urls, body)
 16893  	if err != nil {
 16894  		return nil, err
 16895  	}
 16896  	req.Header = reqHeaders
 16897  	googleapi.Expand(req.URL, map[string]string{
 16898  		"name": c.name,
 16899  	})
 16900  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 16901  }
 16902  
 16903  // Do executes the "discoveryengine.projects.locations.collections.dataStores.schemas.operations.list" call.
 16904  // Any non-2xx status code is an error. Response headers are in either
 16905  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 16906  // response was returned at all) in error.(*googleapi.Error).Header. Use
 16907  // googleapi.IsNotModified to check whether the returned error was because
 16908  // http.StatusNotModified was returned.
 16909  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 16910  	gensupport.SetOptions(c.urlParams_, opts...)
 16911  	res, err := c.doRequest("json")
 16912  	if res != nil && res.StatusCode == http.StatusNotModified {
 16913  		if res.Body != nil {
 16914  			res.Body.Close()
 16915  		}
 16916  		return nil, gensupport.WrapError(&googleapi.Error{
 16917  			Code:   res.StatusCode,
 16918  			Header: res.Header,
 16919  		})
 16920  	}
 16921  	if err != nil {
 16922  		return nil, err
 16923  	}
 16924  	defer googleapi.CloseBody(res)
 16925  	if err := googleapi.CheckResponse(res); err != nil {
 16926  		return nil, gensupport.WrapError(err)
 16927  	}
 16928  	ret := &GoogleLongrunningListOperationsResponse{
 16929  		ServerResponse: googleapi.ServerResponse{
 16930  			Header:         res.Header,
 16931  			HTTPStatusCode: res.StatusCode,
 16932  		},
 16933  	}
 16934  	target := &ret
 16935  	if err := gensupport.DecodeResponse(target, res); err != nil {
 16936  		return nil, err
 16937  	}
 16938  	return ret, nil
 16939  }
 16940  
 16941  // Pages invokes f for each page of results.
 16942  // A non-nil error returned from f will halt the iteration.
 16943  // The provided context supersedes any context provided to the Context method.
 16944  func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 16945  	c.ctx_ = ctx
 16946  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 16947  	for {
 16948  		x, err := c.Do()
 16949  		if err != nil {
 16950  			return err
 16951  		}
 16952  		if err := f(x); err != nil {
 16953  			return err
 16954  		}
 16955  		if x.NextPageToken == "" {
 16956  			return nil
 16957  		}
 16958  		c.PageToken(x.NextPageToken)
 16959  	}
 16960  }
 16961  
 16962  type ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall struct {
 16963  	s                                                  *Service
 16964  	servingConfig                                      string
 16965  	googleclouddiscoveryenginev1betaanswerqueryrequest *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
 16966  	urlParams_                                         gensupport.URLParams
 16967  	ctx_                                               context.Context
 16968  	header_                                            http.Header
 16969  }
 16970  
 16971  // Answer: Answer query method.
 16972  //
 16973  //   - servingConfig: The resource name of the Search serving config, such as
 16974  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 16975  //     ngConfigs/default_serving_config`, or
 16976  //     `projects/*/locations/global/collections/default_collection/dataStores/*/se
 16977  //     rvingConfigs/default_serving_config`. This field is used to identify the
 16978  //     serving configuration name, set of models used to make the search.
 16979  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Answer(servingConfig string, googleclouddiscoveryenginev1betaanswerqueryrequest *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall {
 16980  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 16981  	c.servingConfig = servingConfig
 16982  	c.googleclouddiscoveryenginev1betaanswerqueryrequest = googleclouddiscoveryenginev1betaanswerqueryrequest
 16983  	return c
 16984  }
 16985  
 16986  // Fields allows partial responses to be retrieved. See
 16987  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 16988  // details.
 16989  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall {
 16990  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 16991  	return c
 16992  }
 16993  
 16994  // Context sets the context to be used in this call's Do method.
 16995  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall {
 16996  	c.ctx_ = ctx
 16997  	return c
 16998  }
 16999  
 17000  // Header returns a http.Header that can be modified by the caller to add
 17001  // headers to the request.
 17002  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Header() http.Header {
 17003  	if c.header_ == nil {
 17004  		c.header_ = make(http.Header)
 17005  	}
 17006  	return c.header_
 17007  }
 17008  
 17009  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) doRequest(alt string) (*http.Response, error) {
 17010  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17011  	var body io.Reader = nil
 17012  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaanswerqueryrequest)
 17013  	if err != nil {
 17014  		return nil, err
 17015  	}
 17016  	c.urlParams_.Set("alt", alt)
 17017  	c.urlParams_.Set("prettyPrint", "false")
 17018  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:answer")
 17019  	urls += "?" + c.urlParams_.Encode()
 17020  	req, err := http.NewRequest("POST", urls, body)
 17021  	if err != nil {
 17022  		return nil, err
 17023  	}
 17024  	req.Header = reqHeaders
 17025  	googleapi.Expand(req.URL, map[string]string{
 17026  		"servingConfig": c.servingConfig,
 17027  	})
 17028  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17029  }
 17030  
 17031  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.answer" call.
 17032  // Any non-2xx status code is an error. Response headers are in either
 17033  // *GoogleCloudDiscoveryengineV1betaAnswerQueryResponse.ServerResponse.Header
 17034  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 17035  // Use googleapi.IsNotModified to check whether the returned error was because
 17036  // http.StatusNotModified was returned.
 17037  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaAnswerQueryResponse, error) {
 17038  	gensupport.SetOptions(c.urlParams_, opts...)
 17039  	res, err := c.doRequest("json")
 17040  	if res != nil && res.StatusCode == http.StatusNotModified {
 17041  		if res.Body != nil {
 17042  			res.Body.Close()
 17043  		}
 17044  		return nil, gensupport.WrapError(&googleapi.Error{
 17045  			Code:   res.StatusCode,
 17046  			Header: res.Header,
 17047  		})
 17048  	}
 17049  	if err != nil {
 17050  		return nil, err
 17051  	}
 17052  	defer googleapi.CloseBody(res)
 17053  	if err := googleapi.CheckResponse(res); err != nil {
 17054  		return nil, gensupport.WrapError(err)
 17055  	}
 17056  	ret := &GoogleCloudDiscoveryengineV1betaAnswerQueryResponse{
 17057  		ServerResponse: googleapi.ServerResponse{
 17058  			Header:         res.Header,
 17059  			HTTPStatusCode: res.StatusCode,
 17060  		},
 17061  	}
 17062  	target := &ret
 17063  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17064  		return nil, err
 17065  	}
 17066  	return ret, nil
 17067  }
 17068  
 17069  type ProjectsLocationsCollectionsDataStoresServingConfigsGetCall struct {
 17070  	s            *Service
 17071  	name         string
 17072  	urlParams_   gensupport.URLParams
 17073  	ifNoneMatch_ string
 17074  	ctx_         context.Context
 17075  	header_      http.Header
 17076  }
 17077  
 17078  // Get: Gets a ServingConfig. Returns a NotFound error if the ServingConfig
 17079  // does not exist.
 17080  //
 17081  //   - name: The resource name of the ServingConfig to get. Format:
 17082  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 17083  //     gines/{engine}/servingConfigs/{serving_config_id}`.
 17084  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Get(name string) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
 17085  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17086  	c.name = name
 17087  	return c
 17088  }
 17089  
 17090  // Fields allows partial responses to be retrieved. See
 17091  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17092  // details.
 17093  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
 17094  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17095  	return c
 17096  }
 17097  
 17098  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17099  // object's ETag matches the given value. This is useful for getting updates
 17100  // only after the object has changed since the last request.
 17101  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
 17102  	c.ifNoneMatch_ = entityTag
 17103  	return c
 17104  }
 17105  
 17106  // Context sets the context to be used in this call's Do method.
 17107  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
 17108  	c.ctx_ = ctx
 17109  	return c
 17110  }
 17111  
 17112  // Header returns a http.Header that can be modified by the caller to add
 17113  // headers to the request.
 17114  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Header() http.Header {
 17115  	if c.header_ == nil {
 17116  		c.header_ = make(http.Header)
 17117  	}
 17118  	return c.header_
 17119  }
 17120  
 17121  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) doRequest(alt string) (*http.Response, error) {
 17122  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17123  	if c.ifNoneMatch_ != "" {
 17124  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17125  	}
 17126  	var body io.Reader = nil
 17127  	c.urlParams_.Set("alt", alt)
 17128  	c.urlParams_.Set("prettyPrint", "false")
 17129  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 17130  	urls += "?" + c.urlParams_.Encode()
 17131  	req, err := http.NewRequest("GET", urls, body)
 17132  	if err != nil {
 17133  		return nil, err
 17134  	}
 17135  	req.Header = reqHeaders
 17136  	googleapi.Expand(req.URL, map[string]string{
 17137  		"name": c.name,
 17138  	})
 17139  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17140  }
 17141  
 17142  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.get" call.
 17143  // Any non-2xx status code is an error. Response headers are in either
 17144  // *GoogleCloudDiscoveryengineV1betaServingConfig.ServerResponse.Header or (if
 17145  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 17146  // googleapi.IsNotModified to check whether the returned error was because
 17147  // http.StatusNotModified was returned.
 17148  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaServingConfig, error) {
 17149  	gensupport.SetOptions(c.urlParams_, opts...)
 17150  	res, err := c.doRequest("json")
 17151  	if res != nil && res.StatusCode == http.StatusNotModified {
 17152  		if res.Body != nil {
 17153  			res.Body.Close()
 17154  		}
 17155  		return nil, gensupport.WrapError(&googleapi.Error{
 17156  			Code:   res.StatusCode,
 17157  			Header: res.Header,
 17158  		})
 17159  	}
 17160  	if err != nil {
 17161  		return nil, err
 17162  	}
 17163  	defer googleapi.CloseBody(res)
 17164  	if err := googleapi.CheckResponse(res); err != nil {
 17165  		return nil, gensupport.WrapError(err)
 17166  	}
 17167  	ret := &GoogleCloudDiscoveryengineV1betaServingConfig{
 17168  		ServerResponse: googleapi.ServerResponse{
 17169  			Header:         res.Header,
 17170  			HTTPStatusCode: res.StatusCode,
 17171  		},
 17172  	}
 17173  	target := &ret
 17174  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17175  		return nil, err
 17176  	}
 17177  	return ret, nil
 17178  }
 17179  
 17180  type ProjectsLocationsCollectionsDataStoresServingConfigsListCall struct {
 17181  	s            *Service
 17182  	parent       string
 17183  	urlParams_   gensupport.URLParams
 17184  	ifNoneMatch_ string
 17185  	ctx_         context.Context
 17186  	header_      http.Header
 17187  }
 17188  
 17189  // List: Lists all ServingConfigs linked to this dataStore.
 17190  //
 17191  //   - parent: Full resource name of the parent resource. Format:
 17192  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 17193  //     gines/{engine}`.
 17194  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) List(parent string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
 17195  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17196  	c.parent = parent
 17197  	return c
 17198  }
 17199  
 17200  // PageSize sets the optional parameter "pageSize": Maximum number of results
 17201  // to return. If unspecified, defaults to 100. If a value greater than 100 is
 17202  // provided, at most 100 results are returned.
 17203  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
 17204  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 17205  	return c
 17206  }
 17207  
 17208  // PageToken sets the optional parameter "pageToken": A page token, received
 17209  // from a previous `ListServingConfigs` call. Provide this to retrieve the
 17210  // subsequent page.
 17211  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
 17212  	c.urlParams_.Set("pageToken", pageToken)
 17213  	return c
 17214  }
 17215  
 17216  // Fields allows partial responses to be retrieved. See
 17217  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17218  // details.
 17219  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
 17220  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17221  	return c
 17222  }
 17223  
 17224  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17225  // object's ETag matches the given value. This is useful for getting updates
 17226  // only after the object has changed since the last request.
 17227  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
 17228  	c.ifNoneMatch_ = entityTag
 17229  	return c
 17230  }
 17231  
 17232  // Context sets the context to be used in this call's Do method.
 17233  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
 17234  	c.ctx_ = ctx
 17235  	return c
 17236  }
 17237  
 17238  // Header returns a http.Header that can be modified by the caller to add
 17239  // headers to the request.
 17240  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Header() http.Header {
 17241  	if c.header_ == nil {
 17242  		c.header_ = make(http.Header)
 17243  	}
 17244  	return c.header_
 17245  }
 17246  
 17247  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) doRequest(alt string) (*http.Response, error) {
 17248  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17249  	if c.ifNoneMatch_ != "" {
 17250  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17251  	}
 17252  	var body io.Reader = nil
 17253  	c.urlParams_.Set("alt", alt)
 17254  	c.urlParams_.Set("prettyPrint", "false")
 17255  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/servingConfigs")
 17256  	urls += "?" + c.urlParams_.Encode()
 17257  	req, err := http.NewRequest("GET", urls, body)
 17258  	if err != nil {
 17259  		return nil, err
 17260  	}
 17261  	req.Header = reqHeaders
 17262  	googleapi.Expand(req.URL, map[string]string{
 17263  		"parent": c.parent,
 17264  	})
 17265  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17266  }
 17267  
 17268  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.list" call.
 17269  // Any non-2xx status code is an error. Response headers are in either
 17270  // *GoogleCloudDiscoveryengineV1betaListServingConfigsResponse.ServerResponse.He
 17271  // ader or (if a response was returned at all) in
 17272  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 17273  // whether the returned error was because http.StatusNotModified was returned.
 17274  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListServingConfigsResponse, error) {
 17275  	gensupport.SetOptions(c.urlParams_, opts...)
 17276  	res, err := c.doRequest("json")
 17277  	if res != nil && res.StatusCode == http.StatusNotModified {
 17278  		if res.Body != nil {
 17279  			res.Body.Close()
 17280  		}
 17281  		return nil, gensupport.WrapError(&googleapi.Error{
 17282  			Code:   res.StatusCode,
 17283  			Header: res.Header,
 17284  		})
 17285  	}
 17286  	if err != nil {
 17287  		return nil, err
 17288  	}
 17289  	defer googleapi.CloseBody(res)
 17290  	if err := googleapi.CheckResponse(res); err != nil {
 17291  		return nil, gensupport.WrapError(err)
 17292  	}
 17293  	ret := &GoogleCloudDiscoveryengineV1betaListServingConfigsResponse{
 17294  		ServerResponse: googleapi.ServerResponse{
 17295  			Header:         res.Header,
 17296  			HTTPStatusCode: res.StatusCode,
 17297  		},
 17298  	}
 17299  	target := &ret
 17300  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17301  		return nil, err
 17302  	}
 17303  	return ret, nil
 17304  }
 17305  
 17306  // Pages invokes f for each page of results.
 17307  // A non-nil error returned from f will halt the iteration.
 17308  // The provided context supersedes any context provided to the Context method.
 17309  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListServingConfigsResponse) error) error {
 17310  	c.ctx_ = ctx
 17311  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 17312  	for {
 17313  		x, err := c.Do()
 17314  		if err != nil {
 17315  			return err
 17316  		}
 17317  		if err := f(x); err != nil {
 17318  			return err
 17319  		}
 17320  		if x.NextPageToken == "" {
 17321  			return nil
 17322  		}
 17323  		c.PageToken(x.NextPageToken)
 17324  	}
 17325  }
 17326  
 17327  type ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall struct {
 17328  	s                                             *Service
 17329  	name                                          string
 17330  	googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig
 17331  	urlParams_                                    gensupport.URLParams
 17332  	ctx_                                          context.Context
 17333  	header_                                       http.Header
 17334  }
 17335  
 17336  // Patch: Updates a ServingConfig. Returns a NOT_FOUND error if the
 17337  // ServingConfig does not exist.
 17338  //
 17339  //   - name: Immutable. Fully qualified name
 17340  //     `projects/{project}/locations/{location}/collections/{collection_id}/engine
 17341  //     s/{engine_id}/servingConfigs/{serving_config_id}`.
 17342  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Patch(name string, googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
 17343  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17344  	c.name = name
 17345  	c.googleclouddiscoveryenginev1betaservingconfig = googleclouddiscoveryenginev1betaservingconfig
 17346  	return c
 17347  }
 17348  
 17349  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 17350  // in the provided ServingConfig to update. The following are NOT supported: *
 17351  // ServingConfig.name If not set, all supported fields are updated.
 17352  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
 17353  	c.urlParams_.Set("updateMask", updateMask)
 17354  	return c
 17355  }
 17356  
 17357  // Fields allows partial responses to be retrieved. See
 17358  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17359  // details.
 17360  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
 17361  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17362  	return c
 17363  }
 17364  
 17365  // Context sets the context to be used in this call's Do method.
 17366  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
 17367  	c.ctx_ = ctx
 17368  	return c
 17369  }
 17370  
 17371  // Header returns a http.Header that can be modified by the caller to add
 17372  // headers to the request.
 17373  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Header() http.Header {
 17374  	if c.header_ == nil {
 17375  		c.header_ = make(http.Header)
 17376  	}
 17377  	return c.header_
 17378  }
 17379  
 17380  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
 17381  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17382  	var body io.Reader = nil
 17383  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaservingconfig)
 17384  	if err != nil {
 17385  		return nil, err
 17386  	}
 17387  	c.urlParams_.Set("alt", alt)
 17388  	c.urlParams_.Set("prettyPrint", "false")
 17389  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 17390  	urls += "?" + c.urlParams_.Encode()
 17391  	req, err := http.NewRequest("PATCH", urls, body)
 17392  	if err != nil {
 17393  		return nil, err
 17394  	}
 17395  	req.Header = reqHeaders
 17396  	googleapi.Expand(req.URL, map[string]string{
 17397  		"name": c.name,
 17398  	})
 17399  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17400  }
 17401  
 17402  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.patch" call.
 17403  // Any non-2xx status code is an error. Response headers are in either
 17404  // *GoogleCloudDiscoveryengineV1betaServingConfig.ServerResponse.Header or (if
 17405  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 17406  // googleapi.IsNotModified to check whether the returned error was because
 17407  // http.StatusNotModified was returned.
 17408  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaServingConfig, error) {
 17409  	gensupport.SetOptions(c.urlParams_, opts...)
 17410  	res, err := c.doRequest("json")
 17411  	if res != nil && res.StatusCode == http.StatusNotModified {
 17412  		if res.Body != nil {
 17413  			res.Body.Close()
 17414  		}
 17415  		return nil, gensupport.WrapError(&googleapi.Error{
 17416  			Code:   res.StatusCode,
 17417  			Header: res.Header,
 17418  		})
 17419  	}
 17420  	if err != nil {
 17421  		return nil, err
 17422  	}
 17423  	defer googleapi.CloseBody(res)
 17424  	if err := googleapi.CheckResponse(res); err != nil {
 17425  		return nil, gensupport.WrapError(err)
 17426  	}
 17427  	ret := &GoogleCloudDiscoveryengineV1betaServingConfig{
 17428  		ServerResponse: googleapi.ServerResponse{
 17429  			Header:         res.Header,
 17430  			HTTPStatusCode: res.StatusCode,
 17431  		},
 17432  	}
 17433  	target := &ret
 17434  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17435  		return nil, err
 17436  	}
 17437  	return ret, nil
 17438  }
 17439  
 17440  type ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall struct {
 17441  	s                                                *Service
 17442  	servingConfig                                    string
 17443  	googleclouddiscoveryenginev1betarecommendrequest *GoogleCloudDiscoveryengineV1betaRecommendRequest
 17444  	urlParams_                                       gensupport.URLParams
 17445  	ctx_                                             context.Context
 17446  	header_                                          http.Header
 17447  }
 17448  
 17449  // Recommend: Makes a recommendation, which requires a contextual user event.
 17450  //
 17451  //   - servingConfig: Full resource name of a ServingConfig:
 17452  //     `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
 17453  //     `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
 17454  //     One default serving config is created along with your recommendation
 17455  //     engine creation. The engine ID will be used as the ID of the default
 17456  //     serving config. For example, for Engine
 17457  //     `projects/*/locations/global/collections/*/engines/my-engine`, you can use
 17458  //     `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs
 17459  //     /my-engine` for your RecommendationService.Recommend requests.
 17460  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1betarecommendrequest *GoogleCloudDiscoveryengineV1betaRecommendRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
 17461  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17462  	c.servingConfig = servingConfig
 17463  	c.googleclouddiscoveryenginev1betarecommendrequest = googleclouddiscoveryenginev1betarecommendrequest
 17464  	return c
 17465  }
 17466  
 17467  // Fields allows partial responses to be retrieved. See
 17468  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17469  // details.
 17470  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
 17471  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17472  	return c
 17473  }
 17474  
 17475  // Context sets the context to be used in this call's Do method.
 17476  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
 17477  	c.ctx_ = ctx
 17478  	return c
 17479  }
 17480  
 17481  // Header returns a http.Header that can be modified by the caller to add
 17482  // headers to the request.
 17483  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Header() http.Header {
 17484  	if c.header_ == nil {
 17485  		c.header_ = make(http.Header)
 17486  	}
 17487  	return c.header_
 17488  }
 17489  
 17490  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
 17491  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17492  	var body io.Reader = nil
 17493  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betarecommendrequest)
 17494  	if err != nil {
 17495  		return nil, err
 17496  	}
 17497  	c.urlParams_.Set("alt", alt)
 17498  	c.urlParams_.Set("prettyPrint", "false")
 17499  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:recommend")
 17500  	urls += "?" + c.urlParams_.Encode()
 17501  	req, err := http.NewRequest("POST", urls, body)
 17502  	if err != nil {
 17503  		return nil, err
 17504  	}
 17505  	req.Header = reqHeaders
 17506  	googleapi.Expand(req.URL, map[string]string{
 17507  		"servingConfig": c.servingConfig,
 17508  	})
 17509  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17510  }
 17511  
 17512  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.recommend" call.
 17513  // Any non-2xx status code is an error. Response headers are in either
 17514  // *GoogleCloudDiscoveryengineV1betaRecommendResponse.ServerResponse.Header or
 17515  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 17516  // googleapi.IsNotModified to check whether the returned error was because
 17517  // http.StatusNotModified was returned.
 17518  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaRecommendResponse, error) {
 17519  	gensupport.SetOptions(c.urlParams_, opts...)
 17520  	res, err := c.doRequest("json")
 17521  	if res != nil && res.StatusCode == http.StatusNotModified {
 17522  		if res.Body != nil {
 17523  			res.Body.Close()
 17524  		}
 17525  		return nil, gensupport.WrapError(&googleapi.Error{
 17526  			Code:   res.StatusCode,
 17527  			Header: res.Header,
 17528  		})
 17529  	}
 17530  	if err != nil {
 17531  		return nil, err
 17532  	}
 17533  	defer googleapi.CloseBody(res)
 17534  	if err := googleapi.CheckResponse(res); err != nil {
 17535  		return nil, gensupport.WrapError(err)
 17536  	}
 17537  	ret := &GoogleCloudDiscoveryengineV1betaRecommendResponse{
 17538  		ServerResponse: googleapi.ServerResponse{
 17539  			Header:         res.Header,
 17540  			HTTPStatusCode: res.StatusCode,
 17541  		},
 17542  	}
 17543  	target := &ret
 17544  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17545  		return nil, err
 17546  	}
 17547  	return ret, nil
 17548  }
 17549  
 17550  type ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall struct {
 17551  	s                                             *Service
 17552  	servingConfig                                 string
 17553  	googleclouddiscoveryenginev1betasearchrequest *GoogleCloudDiscoveryengineV1betaSearchRequest
 17554  	urlParams_                                    gensupport.URLParams
 17555  	ctx_                                          context.Context
 17556  	header_                                       http.Header
 17557  }
 17558  
 17559  // Search: Performs a search.
 17560  //
 17561  //   - servingConfig: The resource name of the Search serving config, such as
 17562  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 17563  //     ngConfigs/default_serving_config`, or
 17564  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 17565  //     ult_data_store/servingConfigs/default_serving_config`. This field is used
 17566  //     to identify the serving configuration name, set of models used to make the
 17567  //     search.
 17568  func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1betasearchrequest *GoogleCloudDiscoveryengineV1betaSearchRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
 17569  	c := &ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17570  	c.servingConfig = servingConfig
 17571  	c.googleclouddiscoveryenginev1betasearchrequest = googleclouddiscoveryenginev1betasearchrequest
 17572  	return c
 17573  }
 17574  
 17575  // Fields allows partial responses to be retrieved. See
 17576  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17577  // details.
 17578  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
 17579  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17580  	return c
 17581  }
 17582  
 17583  // Context sets the context to be used in this call's Do method.
 17584  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
 17585  	c.ctx_ = ctx
 17586  	return c
 17587  }
 17588  
 17589  // Header returns a http.Header that can be modified by the caller to add
 17590  // headers to the request.
 17591  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Header() http.Header {
 17592  	if c.header_ == nil {
 17593  		c.header_ = make(http.Header)
 17594  	}
 17595  	return c.header_
 17596  }
 17597  
 17598  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
 17599  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17600  	var body io.Reader = nil
 17601  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasearchrequest)
 17602  	if err != nil {
 17603  		return nil, err
 17604  	}
 17605  	c.urlParams_.Set("alt", alt)
 17606  	c.urlParams_.Set("prettyPrint", "false")
 17607  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:search")
 17608  	urls += "?" + c.urlParams_.Encode()
 17609  	req, err := http.NewRequest("POST", urls, body)
 17610  	if err != nil {
 17611  		return nil, err
 17612  	}
 17613  	req.Header = reqHeaders
 17614  	googleapi.Expand(req.URL, map[string]string{
 17615  		"servingConfig": c.servingConfig,
 17616  	})
 17617  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17618  }
 17619  
 17620  // Do executes the "discoveryengine.projects.locations.collections.dataStores.servingConfigs.search" call.
 17621  // Any non-2xx status code is an error. Response headers are in either
 17622  // *GoogleCloudDiscoveryengineV1betaSearchResponse.ServerResponse.Header or (if
 17623  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 17624  // googleapi.IsNotModified to check whether the returned error was because
 17625  // http.StatusNotModified was returned.
 17626  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSearchResponse, error) {
 17627  	gensupport.SetOptions(c.urlParams_, opts...)
 17628  	res, err := c.doRequest("json")
 17629  	if res != nil && res.StatusCode == http.StatusNotModified {
 17630  		if res.Body != nil {
 17631  			res.Body.Close()
 17632  		}
 17633  		return nil, gensupport.WrapError(&googleapi.Error{
 17634  			Code:   res.StatusCode,
 17635  			Header: res.Header,
 17636  		})
 17637  	}
 17638  	if err != nil {
 17639  		return nil, err
 17640  	}
 17641  	defer googleapi.CloseBody(res)
 17642  	if err := googleapi.CheckResponse(res); err != nil {
 17643  		return nil, gensupport.WrapError(err)
 17644  	}
 17645  	ret := &GoogleCloudDiscoveryengineV1betaSearchResponse{
 17646  		ServerResponse: googleapi.ServerResponse{
 17647  			Header:         res.Header,
 17648  			HTTPStatusCode: res.StatusCode,
 17649  		},
 17650  	}
 17651  	target := &ret
 17652  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17653  		return nil, err
 17654  	}
 17655  	return ret, nil
 17656  }
 17657  
 17658  // Pages invokes f for each page of results.
 17659  // A non-nil error returned from f will halt the iteration.
 17660  // The provided context supersedes any context provided to the Context method.
 17661  func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaSearchResponse) error) error {
 17662  	c.ctx_ = ctx
 17663  	defer func(pt string) { c.googleclouddiscoveryenginev1betasearchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1betasearchrequest.PageToken)
 17664  	for {
 17665  		x, err := c.Do()
 17666  		if err != nil {
 17667  			return err
 17668  		}
 17669  		if err := f(x); err != nil {
 17670  			return err
 17671  		}
 17672  		if x.NextPageToken == "" {
 17673  			return nil
 17674  		}
 17675  		c.googleclouddiscoveryenginev1betasearchrequest.PageToken = x.NextPageToken
 17676  	}
 17677  }
 17678  
 17679  type ProjectsLocationsCollectionsDataStoresSessionsCreateCall struct {
 17680  	s                                       *Service
 17681  	parent                                  string
 17682  	googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession
 17683  	urlParams_                              gensupport.URLParams
 17684  	ctx_                                    context.Context
 17685  	header_                                 http.Header
 17686  }
 17687  
 17688  // Create: Creates a Session. If the Session to create already exists, an
 17689  // ALREADY_EXISTS error is returned.
 17690  //
 17691  //   - parent: Full resource name of parent data store. Format:
 17692  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 17693  //     /dataStores/{data_store_id}`.
 17694  func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Create(parent string, googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession) *ProjectsLocationsCollectionsDataStoresSessionsCreateCall {
 17695  	c := &ProjectsLocationsCollectionsDataStoresSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17696  	c.parent = parent
 17697  	c.googleclouddiscoveryenginev1betasession = googleclouddiscoveryenginev1betasession
 17698  	return c
 17699  }
 17700  
 17701  // Fields allows partial responses to be retrieved. See
 17702  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17703  // details.
 17704  func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsCreateCall {
 17705  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17706  	return c
 17707  }
 17708  
 17709  // Context sets the context to be used in this call's Do method.
 17710  func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsCreateCall {
 17711  	c.ctx_ = ctx
 17712  	return c
 17713  }
 17714  
 17715  // Header returns a http.Header that can be modified by the caller to add
 17716  // headers to the request.
 17717  func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Header() http.Header {
 17718  	if c.header_ == nil {
 17719  		c.header_ = make(http.Header)
 17720  	}
 17721  	return c.header_
 17722  }
 17723  
 17724  func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) doRequest(alt string) (*http.Response, error) {
 17725  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 17726  	var body io.Reader = nil
 17727  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasession)
 17728  	if err != nil {
 17729  		return nil, err
 17730  	}
 17731  	c.urlParams_.Set("alt", alt)
 17732  	c.urlParams_.Set("prettyPrint", "false")
 17733  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sessions")
 17734  	urls += "?" + c.urlParams_.Encode()
 17735  	req, err := http.NewRequest("POST", urls, body)
 17736  	if err != nil {
 17737  		return nil, err
 17738  	}
 17739  	req.Header = reqHeaders
 17740  	googleapi.Expand(req.URL, map[string]string{
 17741  		"parent": c.parent,
 17742  	})
 17743  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17744  }
 17745  
 17746  // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.create" call.
 17747  // Any non-2xx status code is an error. Response headers are in either
 17748  // *GoogleCloudDiscoveryengineV1betaSession.ServerResponse.Header or (if a
 17749  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17750  // googleapi.IsNotModified to check whether the returned error was because
 17751  // http.StatusNotModified was returned.
 17752  func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
 17753  	gensupport.SetOptions(c.urlParams_, opts...)
 17754  	res, err := c.doRequest("json")
 17755  	if res != nil && res.StatusCode == http.StatusNotModified {
 17756  		if res.Body != nil {
 17757  			res.Body.Close()
 17758  		}
 17759  		return nil, gensupport.WrapError(&googleapi.Error{
 17760  			Code:   res.StatusCode,
 17761  			Header: res.Header,
 17762  		})
 17763  	}
 17764  	if err != nil {
 17765  		return nil, err
 17766  	}
 17767  	defer googleapi.CloseBody(res)
 17768  	if err := googleapi.CheckResponse(res); err != nil {
 17769  		return nil, gensupport.WrapError(err)
 17770  	}
 17771  	ret := &GoogleCloudDiscoveryengineV1betaSession{
 17772  		ServerResponse: googleapi.ServerResponse{
 17773  			Header:         res.Header,
 17774  			HTTPStatusCode: res.StatusCode,
 17775  		},
 17776  	}
 17777  	target := &ret
 17778  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17779  		return nil, err
 17780  	}
 17781  	return ret, nil
 17782  }
 17783  
 17784  type ProjectsLocationsCollectionsDataStoresSessionsDeleteCall struct {
 17785  	s          *Service
 17786  	name       string
 17787  	urlParams_ gensupport.URLParams
 17788  	ctx_       context.Context
 17789  	header_    http.Header
 17790  }
 17791  
 17792  // Delete: Deletes a Session. If the Session to delete does not exist, a
 17793  // NOT_FOUND error is returned.
 17794  //
 17795  //   - name: The resource name of the Session to delete. Format:
 17796  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 17797  //     /dataStores/{data_store_id}/sessions/{session_id}`.
 17798  func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall {
 17799  	c := &ProjectsLocationsCollectionsDataStoresSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17800  	c.name = name
 17801  	return c
 17802  }
 17803  
 17804  // Fields allows partial responses to be retrieved. See
 17805  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17806  // details.
 17807  func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall {
 17808  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17809  	return c
 17810  }
 17811  
 17812  // Context sets the context to be used in this call's Do method.
 17813  func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall {
 17814  	c.ctx_ = ctx
 17815  	return c
 17816  }
 17817  
 17818  // Header returns a http.Header that can be modified by the caller to add
 17819  // headers to the request.
 17820  func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Header() http.Header {
 17821  	if c.header_ == nil {
 17822  		c.header_ = make(http.Header)
 17823  	}
 17824  	return c.header_
 17825  }
 17826  
 17827  func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 17828  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17829  	var body io.Reader = nil
 17830  	c.urlParams_.Set("alt", alt)
 17831  	c.urlParams_.Set("prettyPrint", "false")
 17832  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 17833  	urls += "?" + c.urlParams_.Encode()
 17834  	req, err := http.NewRequest("DELETE", urls, body)
 17835  	if err != nil {
 17836  		return nil, err
 17837  	}
 17838  	req.Header = reqHeaders
 17839  	googleapi.Expand(req.URL, map[string]string{
 17840  		"name": c.name,
 17841  	})
 17842  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17843  }
 17844  
 17845  // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.delete" call.
 17846  // Any non-2xx status code is an error. Response headers are in either
 17847  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 17848  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 17849  // check whether the returned error was because http.StatusNotModified was
 17850  // returned.
 17851  func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 17852  	gensupport.SetOptions(c.urlParams_, opts...)
 17853  	res, err := c.doRequest("json")
 17854  	if res != nil && res.StatusCode == http.StatusNotModified {
 17855  		if res.Body != nil {
 17856  			res.Body.Close()
 17857  		}
 17858  		return nil, gensupport.WrapError(&googleapi.Error{
 17859  			Code:   res.StatusCode,
 17860  			Header: res.Header,
 17861  		})
 17862  	}
 17863  	if err != nil {
 17864  		return nil, err
 17865  	}
 17866  	defer googleapi.CloseBody(res)
 17867  	if err := googleapi.CheckResponse(res); err != nil {
 17868  		return nil, gensupport.WrapError(err)
 17869  	}
 17870  	ret := &GoogleProtobufEmpty{
 17871  		ServerResponse: googleapi.ServerResponse{
 17872  			Header:         res.Header,
 17873  			HTTPStatusCode: res.StatusCode,
 17874  		},
 17875  	}
 17876  	target := &ret
 17877  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17878  		return nil, err
 17879  	}
 17880  	return ret, nil
 17881  }
 17882  
 17883  type ProjectsLocationsCollectionsDataStoresSessionsGetCall struct {
 17884  	s            *Service
 17885  	name         string
 17886  	urlParams_   gensupport.URLParams
 17887  	ifNoneMatch_ string
 17888  	ctx_         context.Context
 17889  	header_      http.Header
 17890  }
 17891  
 17892  // Get: Gets a Session.
 17893  //
 17894  //   - name: The resource name of the Session to get. Format:
 17895  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 17896  //     /dataStores/{data_store_id}/sessions/{session_id}`.
 17897  func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
 17898  	c := &ProjectsLocationsCollectionsDataStoresSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 17899  	c.name = name
 17900  	return c
 17901  }
 17902  
 17903  // Fields allows partial responses to be retrieved. See
 17904  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 17905  // details.
 17906  func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
 17907  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 17908  	return c
 17909  }
 17910  
 17911  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 17912  // object's ETag matches the given value. This is useful for getting updates
 17913  // only after the object has changed since the last request.
 17914  func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
 17915  	c.ifNoneMatch_ = entityTag
 17916  	return c
 17917  }
 17918  
 17919  // Context sets the context to be used in this call's Do method.
 17920  func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
 17921  	c.ctx_ = ctx
 17922  	return c
 17923  }
 17924  
 17925  // Header returns a http.Header that can be modified by the caller to add
 17926  // headers to the request.
 17927  func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Header() http.Header {
 17928  	if c.header_ == nil {
 17929  		c.header_ = make(http.Header)
 17930  	}
 17931  	return c.header_
 17932  }
 17933  
 17934  func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) doRequest(alt string) (*http.Response, error) {
 17935  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 17936  	if c.ifNoneMatch_ != "" {
 17937  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 17938  	}
 17939  	var body io.Reader = nil
 17940  	c.urlParams_.Set("alt", alt)
 17941  	c.urlParams_.Set("prettyPrint", "false")
 17942  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 17943  	urls += "?" + c.urlParams_.Encode()
 17944  	req, err := http.NewRequest("GET", urls, body)
 17945  	if err != nil {
 17946  		return nil, err
 17947  	}
 17948  	req.Header = reqHeaders
 17949  	googleapi.Expand(req.URL, map[string]string{
 17950  		"name": c.name,
 17951  	})
 17952  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 17953  }
 17954  
 17955  // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.get" call.
 17956  // Any non-2xx status code is an error. Response headers are in either
 17957  // *GoogleCloudDiscoveryengineV1betaSession.ServerResponse.Header or (if a
 17958  // response was returned at all) in error.(*googleapi.Error).Header. Use
 17959  // googleapi.IsNotModified to check whether the returned error was because
 17960  // http.StatusNotModified was returned.
 17961  func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
 17962  	gensupport.SetOptions(c.urlParams_, opts...)
 17963  	res, err := c.doRequest("json")
 17964  	if res != nil && res.StatusCode == http.StatusNotModified {
 17965  		if res.Body != nil {
 17966  			res.Body.Close()
 17967  		}
 17968  		return nil, gensupport.WrapError(&googleapi.Error{
 17969  			Code:   res.StatusCode,
 17970  			Header: res.Header,
 17971  		})
 17972  	}
 17973  	if err != nil {
 17974  		return nil, err
 17975  	}
 17976  	defer googleapi.CloseBody(res)
 17977  	if err := googleapi.CheckResponse(res); err != nil {
 17978  		return nil, gensupport.WrapError(err)
 17979  	}
 17980  	ret := &GoogleCloudDiscoveryengineV1betaSession{
 17981  		ServerResponse: googleapi.ServerResponse{
 17982  			Header:         res.Header,
 17983  			HTTPStatusCode: res.StatusCode,
 17984  		},
 17985  	}
 17986  	target := &ret
 17987  	if err := gensupport.DecodeResponse(target, res); err != nil {
 17988  		return nil, err
 17989  	}
 17990  	return ret, nil
 17991  }
 17992  
 17993  type ProjectsLocationsCollectionsDataStoresSessionsListCall struct {
 17994  	s            *Service
 17995  	parent       string
 17996  	urlParams_   gensupport.URLParams
 17997  	ifNoneMatch_ string
 17998  	ctx_         context.Context
 17999  	header_      http.Header
 18000  }
 18001  
 18002  // List: Lists all Sessions by their parent DataStore.
 18003  //
 18004  //   - parent: The data store resource name. Format:
 18005  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 18006  //     /dataStores/{data_store_id}`.
 18007  func (r *ProjectsLocationsCollectionsDataStoresSessionsService) List(parent string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 18008  	c := &ProjectsLocationsCollectionsDataStoresSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18009  	c.parent = parent
 18010  	return c
 18011  }
 18012  
 18013  // Filter sets the optional parameter "filter": A filter to apply on the list
 18014  // results. The supported features are: user_pseudo_id, state. Example:
 18015  // "user_pseudo_id = some_id"
 18016  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 18017  	c.urlParams_.Set("filter", filter)
 18018  	return c
 18019  }
 18020  
 18021  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 18022  // fields to order by, sorted in ascending order. Use "desc" after a field name
 18023  // for descending. Supported fields: * `update_time` * `create_time` *
 18024  // `session_name` Example: "update_time desc" "create_time"
 18025  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 18026  	c.urlParams_.Set("orderBy", orderBy)
 18027  	return c
 18028  }
 18029  
 18030  // PageSize sets the optional parameter "pageSize": Maximum number of results
 18031  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 18032  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 18033  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18034  	return c
 18035  }
 18036  
 18037  // PageToken sets the optional parameter "pageToken": A page token, received
 18038  // from a previous `ListSessions` call. Provide this to retrieve the subsequent
 18039  // page.
 18040  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 18041  	c.urlParams_.Set("pageToken", pageToken)
 18042  	return c
 18043  }
 18044  
 18045  // Fields allows partial responses to be retrieved. See
 18046  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18047  // details.
 18048  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 18049  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18050  	return c
 18051  }
 18052  
 18053  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18054  // object's ETag matches the given value. This is useful for getting updates
 18055  // only after the object has changed since the last request.
 18056  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 18057  	c.ifNoneMatch_ = entityTag
 18058  	return c
 18059  }
 18060  
 18061  // Context sets the context to be used in this call's Do method.
 18062  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
 18063  	c.ctx_ = ctx
 18064  	return c
 18065  }
 18066  
 18067  // Header returns a http.Header that can be modified by the caller to add
 18068  // headers to the request.
 18069  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Header() http.Header {
 18070  	if c.header_ == nil {
 18071  		c.header_ = make(http.Header)
 18072  	}
 18073  	return c.header_
 18074  }
 18075  
 18076  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) doRequest(alt string) (*http.Response, error) {
 18077  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18078  	if c.ifNoneMatch_ != "" {
 18079  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18080  	}
 18081  	var body io.Reader = nil
 18082  	c.urlParams_.Set("alt", alt)
 18083  	c.urlParams_.Set("prettyPrint", "false")
 18084  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sessions")
 18085  	urls += "?" + c.urlParams_.Encode()
 18086  	req, err := http.NewRequest("GET", urls, body)
 18087  	if err != nil {
 18088  		return nil, err
 18089  	}
 18090  	req.Header = reqHeaders
 18091  	googleapi.Expand(req.URL, map[string]string{
 18092  		"parent": c.parent,
 18093  	})
 18094  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18095  }
 18096  
 18097  // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.list" call.
 18098  // Any non-2xx status code is an error. Response headers are in either
 18099  // *GoogleCloudDiscoveryengineV1betaListSessionsResponse.ServerResponse.Header
 18100  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 18101  // Use googleapi.IsNotModified to check whether the returned error was because
 18102  // http.StatusNotModified was returned.
 18103  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListSessionsResponse, error) {
 18104  	gensupport.SetOptions(c.urlParams_, opts...)
 18105  	res, err := c.doRequest("json")
 18106  	if res != nil && res.StatusCode == http.StatusNotModified {
 18107  		if res.Body != nil {
 18108  			res.Body.Close()
 18109  		}
 18110  		return nil, gensupport.WrapError(&googleapi.Error{
 18111  			Code:   res.StatusCode,
 18112  			Header: res.Header,
 18113  		})
 18114  	}
 18115  	if err != nil {
 18116  		return nil, err
 18117  	}
 18118  	defer googleapi.CloseBody(res)
 18119  	if err := googleapi.CheckResponse(res); err != nil {
 18120  		return nil, gensupport.WrapError(err)
 18121  	}
 18122  	ret := &GoogleCloudDiscoveryengineV1betaListSessionsResponse{
 18123  		ServerResponse: googleapi.ServerResponse{
 18124  			Header:         res.Header,
 18125  			HTTPStatusCode: res.StatusCode,
 18126  		},
 18127  	}
 18128  	target := &ret
 18129  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18130  		return nil, err
 18131  	}
 18132  	return ret, nil
 18133  }
 18134  
 18135  // Pages invokes f for each page of results.
 18136  // A non-nil error returned from f will halt the iteration.
 18137  // The provided context supersedes any context provided to the Context method.
 18138  func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListSessionsResponse) error) error {
 18139  	c.ctx_ = ctx
 18140  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 18141  	for {
 18142  		x, err := c.Do()
 18143  		if err != nil {
 18144  			return err
 18145  		}
 18146  		if err := f(x); err != nil {
 18147  			return err
 18148  		}
 18149  		if x.NextPageToken == "" {
 18150  			return nil
 18151  		}
 18152  		c.PageToken(x.NextPageToken)
 18153  	}
 18154  }
 18155  
 18156  type ProjectsLocationsCollectionsDataStoresSessionsPatchCall struct {
 18157  	s                                       *Service
 18158  	name                                    string
 18159  	googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession
 18160  	urlParams_                              gensupport.URLParams
 18161  	ctx_                                    context.Context
 18162  	header_                                 http.Header
 18163  }
 18164  
 18165  // Patch: Updates a Session. Session action type cannot be changed. If the
 18166  // Session to update does not exist, a NOT_FOUND error is returned.
 18167  //
 18168  //   - name: Immutable. Fully qualified name
 18169  //     `projects/{project}/locations/global/collections/{collection}/engines/{engi
 18170  //     ne}/sessions/*`.
 18171  func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Patch(name string, googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
 18172  	c := &ProjectsLocationsCollectionsDataStoresSessionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18173  	c.name = name
 18174  	c.googleclouddiscoveryenginev1betasession = googleclouddiscoveryenginev1betasession
 18175  	return c
 18176  }
 18177  
 18178  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 18179  // in the provided Session to update. The following are NOT supported: *
 18180  // Session.name If not set or empty, all supported fields are updated.
 18181  func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
 18182  	c.urlParams_.Set("updateMask", updateMask)
 18183  	return c
 18184  }
 18185  
 18186  // Fields allows partial responses to be retrieved. See
 18187  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18188  // details.
 18189  func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
 18190  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18191  	return c
 18192  }
 18193  
 18194  // Context sets the context to be used in this call's Do method.
 18195  func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
 18196  	c.ctx_ = ctx
 18197  	return c
 18198  }
 18199  
 18200  // Header returns a http.Header that can be modified by the caller to add
 18201  // headers to the request.
 18202  func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Header() http.Header {
 18203  	if c.header_ == nil {
 18204  		c.header_ = make(http.Header)
 18205  	}
 18206  	return c.header_
 18207  }
 18208  
 18209  func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) doRequest(alt string) (*http.Response, error) {
 18210  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18211  	var body io.Reader = nil
 18212  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasession)
 18213  	if err != nil {
 18214  		return nil, err
 18215  	}
 18216  	c.urlParams_.Set("alt", alt)
 18217  	c.urlParams_.Set("prettyPrint", "false")
 18218  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 18219  	urls += "?" + c.urlParams_.Encode()
 18220  	req, err := http.NewRequest("PATCH", urls, body)
 18221  	if err != nil {
 18222  		return nil, err
 18223  	}
 18224  	req.Header = reqHeaders
 18225  	googleapi.Expand(req.URL, map[string]string{
 18226  		"name": c.name,
 18227  	})
 18228  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18229  }
 18230  
 18231  // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.patch" call.
 18232  // Any non-2xx status code is an error. Response headers are in either
 18233  // *GoogleCloudDiscoveryengineV1betaSession.ServerResponse.Header or (if a
 18234  // response was returned at all) in error.(*googleapi.Error).Header. Use
 18235  // googleapi.IsNotModified to check whether the returned error was because
 18236  // http.StatusNotModified was returned.
 18237  func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
 18238  	gensupport.SetOptions(c.urlParams_, opts...)
 18239  	res, err := c.doRequest("json")
 18240  	if res != nil && res.StatusCode == http.StatusNotModified {
 18241  		if res.Body != nil {
 18242  			res.Body.Close()
 18243  		}
 18244  		return nil, gensupport.WrapError(&googleapi.Error{
 18245  			Code:   res.StatusCode,
 18246  			Header: res.Header,
 18247  		})
 18248  	}
 18249  	if err != nil {
 18250  		return nil, err
 18251  	}
 18252  	defer googleapi.CloseBody(res)
 18253  	if err := googleapi.CheckResponse(res); err != nil {
 18254  		return nil, gensupport.WrapError(err)
 18255  	}
 18256  	ret := &GoogleCloudDiscoveryengineV1betaSession{
 18257  		ServerResponse: googleapi.ServerResponse{
 18258  			Header:         res.Header,
 18259  			HTTPStatusCode: res.StatusCode,
 18260  		},
 18261  	}
 18262  	target := &ret
 18263  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18264  		return nil, err
 18265  	}
 18266  	return ret, nil
 18267  }
 18268  
 18269  type ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall struct {
 18270  	s            *Service
 18271  	name         string
 18272  	urlParams_   gensupport.URLParams
 18273  	ifNoneMatch_ string
 18274  	ctx_         context.Context
 18275  	header_      http.Header
 18276  }
 18277  
 18278  // Get: Gets a Answer.
 18279  //
 18280  //   - name: The resource name of the Answer to get. Format:
 18281  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 18282  //     /engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`.
 18283  func (r *ProjectsLocationsCollectionsDataStoresSessionsAnswersService) Get(name string) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
 18284  	c := &ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18285  	c.name = name
 18286  	return c
 18287  }
 18288  
 18289  // Fields allows partial responses to be retrieved. See
 18290  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18291  // details.
 18292  func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
 18293  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18294  	return c
 18295  }
 18296  
 18297  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18298  // object's ETag matches the given value. This is useful for getting updates
 18299  // only after the object has changed since the last request.
 18300  func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
 18301  	c.ifNoneMatch_ = entityTag
 18302  	return c
 18303  }
 18304  
 18305  // Context sets the context to be used in this call's Do method.
 18306  func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
 18307  	c.ctx_ = ctx
 18308  	return c
 18309  }
 18310  
 18311  // Header returns a http.Header that can be modified by the caller to add
 18312  // headers to the request.
 18313  func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Header() http.Header {
 18314  	if c.header_ == nil {
 18315  		c.header_ = make(http.Header)
 18316  	}
 18317  	return c.header_
 18318  }
 18319  
 18320  func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) doRequest(alt string) (*http.Response, error) {
 18321  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18322  	if c.ifNoneMatch_ != "" {
 18323  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18324  	}
 18325  	var body io.Reader = nil
 18326  	c.urlParams_.Set("alt", alt)
 18327  	c.urlParams_.Set("prettyPrint", "false")
 18328  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 18329  	urls += "?" + c.urlParams_.Encode()
 18330  	req, err := http.NewRequest("GET", urls, body)
 18331  	if err != nil {
 18332  		return nil, err
 18333  	}
 18334  	req.Header = reqHeaders
 18335  	googleapi.Expand(req.URL, map[string]string{
 18336  		"name": c.name,
 18337  	})
 18338  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18339  }
 18340  
 18341  // Do executes the "discoveryengine.projects.locations.collections.dataStores.sessions.answers.get" call.
 18342  // Any non-2xx status code is an error. Response headers are in either
 18343  // *GoogleCloudDiscoveryengineV1betaAnswer.ServerResponse.Header or (if a
 18344  // response was returned at all) in error.(*googleapi.Error).Header. Use
 18345  // googleapi.IsNotModified to check whether the returned error was because
 18346  // http.StatusNotModified was returned.
 18347  func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaAnswer, error) {
 18348  	gensupport.SetOptions(c.urlParams_, opts...)
 18349  	res, err := c.doRequest("json")
 18350  	if res != nil && res.StatusCode == http.StatusNotModified {
 18351  		if res.Body != nil {
 18352  			res.Body.Close()
 18353  		}
 18354  		return nil, gensupport.WrapError(&googleapi.Error{
 18355  			Code:   res.StatusCode,
 18356  			Header: res.Header,
 18357  		})
 18358  	}
 18359  	if err != nil {
 18360  		return nil, err
 18361  	}
 18362  	defer googleapi.CloseBody(res)
 18363  	if err := googleapi.CheckResponse(res); err != nil {
 18364  		return nil, gensupport.WrapError(err)
 18365  	}
 18366  	ret := &GoogleCloudDiscoveryengineV1betaAnswer{
 18367  		ServerResponse: googleapi.ServerResponse{
 18368  			Header:         res.Header,
 18369  			HTTPStatusCode: res.StatusCode,
 18370  		},
 18371  	}
 18372  	target := &ret
 18373  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18374  		return nil, err
 18375  	}
 18376  	return ret, nil
 18377  }
 18378  
 18379  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall struct {
 18380  	s                                                             *Service
 18381  	parent                                                        string
 18382  	googleclouddiscoveryenginev1betabatchverifytargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchVerifyTargetSitesRequest
 18383  	urlParams_                                                    gensupport.URLParams
 18384  	ctx_                                                          context.Context
 18385  	header_                                                       http.Header
 18386  }
 18387  
 18388  // BatchVerifyTargetSites: Verify target sites' ownership and validity. This
 18389  // API sends all the target sites under site search engine for verification.
 18390  //
 18391  //   - parent: The parent resource shared by all TargetSites being verified.
 18392  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 18393  //     s/{data_store}/siteSearchEngine`.
 18394  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) BatchVerifyTargetSites(parent string, googleclouddiscoveryenginev1betabatchverifytargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchVerifyTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
 18395  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18396  	c.parent = parent
 18397  	c.googleclouddiscoveryenginev1betabatchverifytargetsitesrequest = googleclouddiscoveryenginev1betabatchverifytargetsitesrequest
 18398  	return c
 18399  }
 18400  
 18401  // Fields allows partial responses to be retrieved. See
 18402  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18403  // details.
 18404  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
 18405  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18406  	return c
 18407  }
 18408  
 18409  // Context sets the context to be used in this call's Do method.
 18410  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
 18411  	c.ctx_ = ctx
 18412  	return c
 18413  }
 18414  
 18415  // Header returns a http.Header that can be modified by the caller to add
 18416  // headers to the request.
 18417  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Header() http.Header {
 18418  	if c.header_ == nil {
 18419  		c.header_ = make(http.Header)
 18420  	}
 18421  	return c.header_
 18422  }
 18423  
 18424  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) doRequest(alt string) (*http.Response, error) {
 18425  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18426  	var body io.Reader = nil
 18427  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betabatchverifytargetsitesrequest)
 18428  	if err != nil {
 18429  		return nil, err
 18430  	}
 18431  	c.urlParams_.Set("alt", alt)
 18432  	c.urlParams_.Set("prettyPrint", "false")
 18433  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}:batchVerifyTargetSites")
 18434  	urls += "?" + c.urlParams_.Encode()
 18435  	req, err := http.NewRequest("POST", urls, body)
 18436  	if err != nil {
 18437  		return nil, err
 18438  	}
 18439  	req.Header = reqHeaders
 18440  	googleapi.Expand(req.URL, map[string]string{
 18441  		"parent": c.parent,
 18442  	})
 18443  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18444  }
 18445  
 18446  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.batchVerifyTargetSites" call.
 18447  // Any non-2xx status code is an error. Response headers are in either
 18448  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 18449  // returned at all) in error.(*googleapi.Error).Header. Use
 18450  // googleapi.IsNotModified to check whether the returned error was because
 18451  // http.StatusNotModified was returned.
 18452  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 18453  	gensupport.SetOptions(c.urlParams_, opts...)
 18454  	res, err := c.doRequest("json")
 18455  	if res != nil && res.StatusCode == http.StatusNotModified {
 18456  		if res.Body != nil {
 18457  			res.Body.Close()
 18458  		}
 18459  		return nil, gensupport.WrapError(&googleapi.Error{
 18460  			Code:   res.StatusCode,
 18461  			Header: res.Header,
 18462  		})
 18463  	}
 18464  	if err != nil {
 18465  		return nil, err
 18466  	}
 18467  	defer googleapi.CloseBody(res)
 18468  	if err := googleapi.CheckResponse(res); err != nil {
 18469  		return nil, gensupport.WrapError(err)
 18470  	}
 18471  	ret := &GoogleLongrunningOperation{
 18472  		ServerResponse: googleapi.ServerResponse{
 18473  			Header:         res.Header,
 18474  			HTTPStatusCode: res.StatusCode,
 18475  		},
 18476  	}
 18477  	target := &ret
 18478  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18479  		return nil, err
 18480  	}
 18481  	return ret, nil
 18482  }
 18483  
 18484  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall struct {
 18485  	s                                                                *Service
 18486  	siteSearchEngine                                                 string
 18487  	googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchRequest
 18488  	urlParams_                                                       gensupport.URLParams
 18489  	ctx_                                                             context.Context
 18490  	header_                                                          http.Header
 18491  }
 18492  
 18493  // DisableAdvancedSiteSearch: Downgrade from advanced site search to basic site
 18494  // search.
 18495  //
 18496  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 18497  //     `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSea
 18498  //     rchEngine`.
 18499  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) DisableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 18500  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18501  	c.siteSearchEngine = siteSearchEngine
 18502  	c.googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest = googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest
 18503  	return c
 18504  }
 18505  
 18506  // Fields allows partial responses to be retrieved. See
 18507  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18508  // details.
 18509  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 18510  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18511  	return c
 18512  }
 18513  
 18514  // Context sets the context to be used in this call's Do method.
 18515  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 18516  	c.ctx_ = ctx
 18517  	return c
 18518  }
 18519  
 18520  // Header returns a http.Header that can be modified by the caller to add
 18521  // headers to the request.
 18522  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Header() http.Header {
 18523  	if c.header_ == nil {
 18524  		c.header_ = make(http.Header)
 18525  	}
 18526  	return c.header_
 18527  }
 18528  
 18529  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
 18530  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18531  	var body io.Reader = nil
 18532  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest)
 18533  	if err != nil {
 18534  		return nil, err
 18535  	}
 18536  	c.urlParams_.Set("alt", alt)
 18537  	c.urlParams_.Set("prettyPrint", "false")
 18538  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:disableAdvancedSiteSearch")
 18539  	urls += "?" + c.urlParams_.Encode()
 18540  	req, err := http.NewRequest("POST", urls, body)
 18541  	if err != nil {
 18542  		return nil, err
 18543  	}
 18544  	req.Header = reqHeaders
 18545  	googleapi.Expand(req.URL, map[string]string{
 18546  		"siteSearchEngine": c.siteSearchEngine,
 18547  	})
 18548  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18549  }
 18550  
 18551  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.disableAdvancedSiteSearch" call.
 18552  // Any non-2xx status code is an error. Response headers are in either
 18553  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 18554  // returned at all) in error.(*googleapi.Error).Header. Use
 18555  // googleapi.IsNotModified to check whether the returned error was because
 18556  // http.StatusNotModified was returned.
 18557  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 18558  	gensupport.SetOptions(c.urlParams_, opts...)
 18559  	res, err := c.doRequest("json")
 18560  	if res != nil && res.StatusCode == http.StatusNotModified {
 18561  		if res.Body != nil {
 18562  			res.Body.Close()
 18563  		}
 18564  		return nil, gensupport.WrapError(&googleapi.Error{
 18565  			Code:   res.StatusCode,
 18566  			Header: res.Header,
 18567  		})
 18568  	}
 18569  	if err != nil {
 18570  		return nil, err
 18571  	}
 18572  	defer googleapi.CloseBody(res)
 18573  	if err := googleapi.CheckResponse(res); err != nil {
 18574  		return nil, gensupport.WrapError(err)
 18575  	}
 18576  	ret := &GoogleLongrunningOperation{
 18577  		ServerResponse: googleapi.ServerResponse{
 18578  			Header:         res.Header,
 18579  			HTTPStatusCode: res.StatusCode,
 18580  		},
 18581  	}
 18582  	target := &ret
 18583  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18584  		return nil, err
 18585  	}
 18586  	return ret, nil
 18587  }
 18588  
 18589  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall struct {
 18590  	s                                                               *Service
 18591  	siteSearchEngine                                                string
 18592  	googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchRequest
 18593  	urlParams_                                                      gensupport.URLParams
 18594  	ctx_                                                            context.Context
 18595  	header_                                                         http.Header
 18596  }
 18597  
 18598  // EnableAdvancedSiteSearch: Upgrade from basic site search to advanced site
 18599  // search.
 18600  //
 18601  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 18602  //     `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSea
 18603  //     rchEngine`.
 18604  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) EnableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 18605  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18606  	c.siteSearchEngine = siteSearchEngine
 18607  	c.googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest = googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest
 18608  	return c
 18609  }
 18610  
 18611  // Fields allows partial responses to be retrieved. See
 18612  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18613  // details.
 18614  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 18615  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18616  	return c
 18617  }
 18618  
 18619  // Context sets the context to be used in this call's Do method.
 18620  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 18621  	c.ctx_ = ctx
 18622  	return c
 18623  }
 18624  
 18625  // Header returns a http.Header that can be modified by the caller to add
 18626  // headers to the request.
 18627  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Header() http.Header {
 18628  	if c.header_ == nil {
 18629  		c.header_ = make(http.Header)
 18630  	}
 18631  	return c.header_
 18632  }
 18633  
 18634  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
 18635  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18636  	var body io.Reader = nil
 18637  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest)
 18638  	if err != nil {
 18639  		return nil, err
 18640  	}
 18641  	c.urlParams_.Set("alt", alt)
 18642  	c.urlParams_.Set("prettyPrint", "false")
 18643  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:enableAdvancedSiteSearch")
 18644  	urls += "?" + c.urlParams_.Encode()
 18645  	req, err := http.NewRequest("POST", urls, body)
 18646  	if err != nil {
 18647  		return nil, err
 18648  	}
 18649  	req.Header = reqHeaders
 18650  	googleapi.Expand(req.URL, map[string]string{
 18651  		"siteSearchEngine": c.siteSearchEngine,
 18652  	})
 18653  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18654  }
 18655  
 18656  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.enableAdvancedSiteSearch" call.
 18657  // Any non-2xx status code is an error. Response headers are in either
 18658  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 18659  // returned at all) in error.(*googleapi.Error).Header. Use
 18660  // googleapi.IsNotModified to check whether the returned error was because
 18661  // http.StatusNotModified was returned.
 18662  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 18663  	gensupport.SetOptions(c.urlParams_, opts...)
 18664  	res, err := c.doRequest("json")
 18665  	if res != nil && res.StatusCode == http.StatusNotModified {
 18666  		if res.Body != nil {
 18667  			res.Body.Close()
 18668  		}
 18669  		return nil, gensupport.WrapError(&googleapi.Error{
 18670  			Code:   res.StatusCode,
 18671  			Header: res.Header,
 18672  		})
 18673  	}
 18674  	if err != nil {
 18675  		return nil, err
 18676  	}
 18677  	defer googleapi.CloseBody(res)
 18678  	if err := googleapi.CheckResponse(res); err != nil {
 18679  		return nil, gensupport.WrapError(err)
 18680  	}
 18681  	ret := &GoogleLongrunningOperation{
 18682  		ServerResponse: googleapi.ServerResponse{
 18683  			Header:         res.Header,
 18684  			HTTPStatusCode: res.StatusCode,
 18685  		},
 18686  	}
 18687  	target := &ret
 18688  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18689  		return nil, err
 18690  	}
 18691  	return ret, nil
 18692  }
 18693  
 18694  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall struct {
 18695  	s                *Service
 18696  	siteSearchEngine string
 18697  	urlParams_       gensupport.URLParams
 18698  	ifNoneMatch_     string
 18699  	ctx_             context.Context
 18700  	header_          http.Header
 18701  }
 18702  
 18703  // FetchDomainVerificationStatus: Returns list of target sites with its domain
 18704  // verification status. This method can only be called under data store with
 18705  // BASIC_SITE_SEARCH state at the moment.
 18706  //
 18707  //   - siteSearchEngine: The site search engine resource under which we fetch all
 18708  //     the domain verification status.
 18709  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 18710  //     s/{data_store}/siteSearchEngine`.
 18711  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) FetchDomainVerificationStatus(siteSearchEngine string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 18712  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18713  	c.siteSearchEngine = siteSearchEngine
 18714  	return c
 18715  }
 18716  
 18717  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 18718  // may return fewer items than requested. If unspecified, server will pick an
 18719  // appropriate default. The maximum value is 1000; values above 1000 will be
 18720  // coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is
 18721  // returned.
 18722  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 18723  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 18724  	return c
 18725  }
 18726  
 18727  // PageToken sets the optional parameter "pageToken": A page token, received
 18728  // from a previous `FetchDomainVerificationStatus` call. Provide this to
 18729  // retrieve the subsequent page. When paginating, all other parameters provided
 18730  // to `FetchDomainVerificationStatus` must match the call that provided the
 18731  // page token.
 18732  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 18733  	c.urlParams_.Set("pageToken", pageToken)
 18734  	return c
 18735  }
 18736  
 18737  // Fields allows partial responses to be retrieved. See
 18738  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18739  // details.
 18740  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 18741  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18742  	return c
 18743  }
 18744  
 18745  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18746  // object's ETag matches the given value. This is useful for getting updates
 18747  // only after the object has changed since the last request.
 18748  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 18749  	c.ifNoneMatch_ = entityTag
 18750  	return c
 18751  }
 18752  
 18753  // Context sets the context to be used in this call's Do method.
 18754  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
 18755  	c.ctx_ = ctx
 18756  	return c
 18757  }
 18758  
 18759  // Header returns a http.Header that can be modified by the caller to add
 18760  // headers to the request.
 18761  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Header() http.Header {
 18762  	if c.header_ == nil {
 18763  		c.header_ = make(http.Header)
 18764  	}
 18765  	return c.header_
 18766  }
 18767  
 18768  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) doRequest(alt string) (*http.Response, error) {
 18769  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 18770  	if c.ifNoneMatch_ != "" {
 18771  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 18772  	}
 18773  	var body io.Reader = nil
 18774  	c.urlParams_.Set("alt", alt)
 18775  	c.urlParams_.Set("prettyPrint", "false")
 18776  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:fetchDomainVerificationStatus")
 18777  	urls += "?" + c.urlParams_.Encode()
 18778  	req, err := http.NewRequest("GET", urls, body)
 18779  	if err != nil {
 18780  		return nil, err
 18781  	}
 18782  	req.Header = reqHeaders
 18783  	googleapi.Expand(req.URL, map[string]string{
 18784  		"siteSearchEngine": c.siteSearchEngine,
 18785  	})
 18786  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18787  }
 18788  
 18789  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.fetchDomainVerificationStatus" call.
 18790  // Any non-2xx status code is an error. Response headers are in either
 18791  // *GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse.Server
 18792  // Response.Header or (if a response was returned at all) in
 18793  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 18794  // whether the returned error was because http.StatusNotModified was returned.
 18795  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse, error) {
 18796  	gensupport.SetOptions(c.urlParams_, opts...)
 18797  	res, err := c.doRequest("json")
 18798  	if res != nil && res.StatusCode == http.StatusNotModified {
 18799  		if res.Body != nil {
 18800  			res.Body.Close()
 18801  		}
 18802  		return nil, gensupport.WrapError(&googleapi.Error{
 18803  			Code:   res.StatusCode,
 18804  			Header: res.Header,
 18805  		})
 18806  	}
 18807  	if err != nil {
 18808  		return nil, err
 18809  	}
 18810  	defer googleapi.CloseBody(res)
 18811  	if err := googleapi.CheckResponse(res); err != nil {
 18812  		return nil, gensupport.WrapError(err)
 18813  	}
 18814  	ret := &GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse{
 18815  		ServerResponse: googleapi.ServerResponse{
 18816  			Header:         res.Header,
 18817  			HTTPStatusCode: res.StatusCode,
 18818  		},
 18819  	}
 18820  	target := &ret
 18821  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18822  		return nil, err
 18823  	}
 18824  	return ret, nil
 18825  }
 18826  
 18827  // Pages invokes f for each page of results.
 18828  // A non-nil error returned from f will halt the iteration.
 18829  // The provided context supersedes any context provided to the Context method.
 18830  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse) error) error {
 18831  	c.ctx_ = ctx
 18832  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 18833  	for {
 18834  		x, err := c.Do()
 18835  		if err != nil {
 18836  			return err
 18837  		}
 18838  		if err := f(x); err != nil {
 18839  			return err
 18840  		}
 18841  		if x.NextPageToken == "" {
 18842  			return nil
 18843  		}
 18844  		c.PageToken(x.NextPageToken)
 18845  	}
 18846  }
 18847  
 18848  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall struct {
 18849  	s                                                  *Service
 18850  	siteSearchEngine                                   string
 18851  	googleclouddiscoveryenginev1betarecrawlurisrequest *GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest
 18852  	urlParams_                                         gensupport.URLParams
 18853  	ctx_                                               context.Context
 18854  	header_                                            http.Header
 18855  }
 18856  
 18857  // RecrawlUris: Request on-demand recrawl for a list of URIs.
 18858  //
 18859  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 18860  //     `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
 18861  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) RecrawlUris(siteSearchEngine string, googleclouddiscoveryenginev1betarecrawlurisrequest *GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
 18862  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18863  	c.siteSearchEngine = siteSearchEngine
 18864  	c.googleclouddiscoveryenginev1betarecrawlurisrequest = googleclouddiscoveryenginev1betarecrawlurisrequest
 18865  	return c
 18866  }
 18867  
 18868  // Fields allows partial responses to be retrieved. See
 18869  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18870  // details.
 18871  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
 18872  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18873  	return c
 18874  }
 18875  
 18876  // Context sets the context to be used in this call's Do method.
 18877  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
 18878  	c.ctx_ = ctx
 18879  	return c
 18880  }
 18881  
 18882  // Header returns a http.Header that can be modified by the caller to add
 18883  // headers to the request.
 18884  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Header() http.Header {
 18885  	if c.header_ == nil {
 18886  		c.header_ = make(http.Header)
 18887  	}
 18888  	return c.header_
 18889  }
 18890  
 18891  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(alt string) (*http.Response, error) {
 18892  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 18893  	var body io.Reader = nil
 18894  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betarecrawlurisrequest)
 18895  	if err != nil {
 18896  		return nil, err
 18897  	}
 18898  	c.urlParams_.Set("alt", alt)
 18899  	c.urlParams_.Set("prettyPrint", "false")
 18900  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:recrawlUris")
 18901  	urls += "?" + c.urlParams_.Encode()
 18902  	req, err := http.NewRequest("POST", urls, body)
 18903  	if err != nil {
 18904  		return nil, err
 18905  	}
 18906  	req.Header = reqHeaders
 18907  	googleapi.Expand(req.URL, map[string]string{
 18908  		"siteSearchEngine": c.siteSearchEngine,
 18909  	})
 18910  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 18911  }
 18912  
 18913  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.recrawlUris" call.
 18914  // Any non-2xx status code is an error. Response headers are in either
 18915  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 18916  // returned at all) in error.(*googleapi.Error).Header. Use
 18917  // googleapi.IsNotModified to check whether the returned error was because
 18918  // http.StatusNotModified was returned.
 18919  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 18920  	gensupport.SetOptions(c.urlParams_, opts...)
 18921  	res, err := c.doRequest("json")
 18922  	if res != nil && res.StatusCode == http.StatusNotModified {
 18923  		if res.Body != nil {
 18924  			res.Body.Close()
 18925  		}
 18926  		return nil, gensupport.WrapError(&googleapi.Error{
 18927  			Code:   res.StatusCode,
 18928  			Header: res.Header,
 18929  		})
 18930  	}
 18931  	if err != nil {
 18932  		return nil, err
 18933  	}
 18934  	defer googleapi.CloseBody(res)
 18935  	if err := googleapi.CheckResponse(res); err != nil {
 18936  		return nil, gensupport.WrapError(err)
 18937  	}
 18938  	ret := &GoogleLongrunningOperation{
 18939  		ServerResponse: googleapi.ServerResponse{
 18940  			Header:         res.Header,
 18941  			HTTPStatusCode: res.StatusCode,
 18942  		},
 18943  	}
 18944  	target := &ret
 18945  	if err := gensupport.DecodeResponse(target, res); err != nil {
 18946  		return nil, err
 18947  	}
 18948  	return ret, nil
 18949  }
 18950  
 18951  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall struct {
 18952  	s            *Service
 18953  	name         string
 18954  	urlParams_   gensupport.URLParams
 18955  	ifNoneMatch_ string
 18956  	ctx_         context.Context
 18957  	header_      http.Header
 18958  }
 18959  
 18960  // Get: Gets the latest state of a long-running operation. Clients can use this
 18961  // method to poll the operation result at intervals as recommended by the API
 18962  // service.
 18963  //
 18964  // - name: The name of the operation resource.
 18965  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
 18966  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 18967  	c.name = name
 18968  	return c
 18969  }
 18970  
 18971  // Fields allows partial responses to be retrieved. See
 18972  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 18973  // details.
 18974  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
 18975  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 18976  	return c
 18977  }
 18978  
 18979  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 18980  // object's ETag matches the given value. This is useful for getting updates
 18981  // only after the object has changed since the last request.
 18982  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
 18983  	c.ifNoneMatch_ = entityTag
 18984  	return c
 18985  }
 18986  
 18987  // Context sets the context to be used in this call's Do method.
 18988  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
 18989  	c.ctx_ = ctx
 18990  	return c
 18991  }
 18992  
 18993  // Header returns a http.Header that can be modified by the caller to add
 18994  // headers to the request.
 18995  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Header() http.Header {
 18996  	if c.header_ == nil {
 18997  		c.header_ = make(http.Header)
 18998  	}
 18999  	return c.header_
 19000  }
 19001  
 19002  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 19003  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19004  	if c.ifNoneMatch_ != "" {
 19005  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19006  	}
 19007  	var body io.Reader = nil
 19008  	c.urlParams_.Set("alt", alt)
 19009  	c.urlParams_.Set("prettyPrint", "false")
 19010  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 19011  	urls += "?" + c.urlParams_.Encode()
 19012  	req, err := http.NewRequest("GET", urls, body)
 19013  	if err != nil {
 19014  		return nil, err
 19015  	}
 19016  	req.Header = reqHeaders
 19017  	googleapi.Expand(req.URL, map[string]string{
 19018  		"name": c.name,
 19019  	})
 19020  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19021  }
 19022  
 19023  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.get" call.
 19024  // Any non-2xx status code is an error. Response headers are in either
 19025  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19026  // returned at all) in error.(*googleapi.Error).Header. Use
 19027  // googleapi.IsNotModified to check whether the returned error was because
 19028  // http.StatusNotModified was returned.
 19029  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19030  	gensupport.SetOptions(c.urlParams_, opts...)
 19031  	res, err := c.doRequest("json")
 19032  	if res != nil && res.StatusCode == http.StatusNotModified {
 19033  		if res.Body != nil {
 19034  			res.Body.Close()
 19035  		}
 19036  		return nil, gensupport.WrapError(&googleapi.Error{
 19037  			Code:   res.StatusCode,
 19038  			Header: res.Header,
 19039  		})
 19040  	}
 19041  	if err != nil {
 19042  		return nil, err
 19043  	}
 19044  	defer googleapi.CloseBody(res)
 19045  	if err := googleapi.CheckResponse(res); err != nil {
 19046  		return nil, gensupport.WrapError(err)
 19047  	}
 19048  	ret := &GoogleLongrunningOperation{
 19049  		ServerResponse: googleapi.ServerResponse{
 19050  			Header:         res.Header,
 19051  			HTTPStatusCode: res.StatusCode,
 19052  		},
 19053  	}
 19054  	target := &ret
 19055  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19056  		return nil, err
 19057  	}
 19058  	return ret, nil
 19059  }
 19060  
 19061  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall struct {
 19062  	s            *Service
 19063  	name         string
 19064  	urlParams_   gensupport.URLParams
 19065  	ifNoneMatch_ string
 19066  	ctx_         context.Context
 19067  	header_      http.Header
 19068  }
 19069  
 19070  // List: Lists operations that match the specified filter in the request. If
 19071  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 19072  //
 19073  // - name: The name of the operation's parent resource.
 19074  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 19075  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19076  	c.name = name
 19077  	return c
 19078  }
 19079  
 19080  // Filter sets the optional parameter "filter": The standard list filter.
 19081  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 19082  	c.urlParams_.Set("filter", filter)
 19083  	return c
 19084  }
 19085  
 19086  // PageSize sets the optional parameter "pageSize": The standard list page
 19087  // size.
 19088  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 19089  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19090  	return c
 19091  }
 19092  
 19093  // PageToken sets the optional parameter "pageToken": The standard list page
 19094  // token.
 19095  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 19096  	c.urlParams_.Set("pageToken", pageToken)
 19097  	return c
 19098  }
 19099  
 19100  // Fields allows partial responses to be retrieved. See
 19101  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19102  // details.
 19103  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 19104  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19105  	return c
 19106  }
 19107  
 19108  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19109  // object's ETag matches the given value. This is useful for getting updates
 19110  // only after the object has changed since the last request.
 19111  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 19112  	c.ifNoneMatch_ = entityTag
 19113  	return c
 19114  }
 19115  
 19116  // Context sets the context to be used in this call's Do method.
 19117  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
 19118  	c.ctx_ = ctx
 19119  	return c
 19120  }
 19121  
 19122  // Header returns a http.Header that can be modified by the caller to add
 19123  // headers to the request.
 19124  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Header() http.Header {
 19125  	if c.header_ == nil {
 19126  		c.header_ = make(http.Header)
 19127  	}
 19128  	return c.header_
 19129  }
 19130  
 19131  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) doRequest(alt string) (*http.Response, error) {
 19132  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19133  	if c.ifNoneMatch_ != "" {
 19134  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19135  	}
 19136  	var body io.Reader = nil
 19137  	c.urlParams_.Set("alt", alt)
 19138  	c.urlParams_.Set("prettyPrint", "false")
 19139  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 19140  	urls += "?" + c.urlParams_.Encode()
 19141  	req, err := http.NewRequest("GET", urls, body)
 19142  	if err != nil {
 19143  		return nil, err
 19144  	}
 19145  	req.Header = reqHeaders
 19146  	googleapi.Expand(req.URL, map[string]string{
 19147  		"name": c.name,
 19148  	})
 19149  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19150  }
 19151  
 19152  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.operations.list" call.
 19153  // Any non-2xx status code is an error. Response headers are in either
 19154  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 19155  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19156  // googleapi.IsNotModified to check whether the returned error was because
 19157  // http.StatusNotModified was returned.
 19158  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 19159  	gensupport.SetOptions(c.urlParams_, opts...)
 19160  	res, err := c.doRequest("json")
 19161  	if res != nil && res.StatusCode == http.StatusNotModified {
 19162  		if res.Body != nil {
 19163  			res.Body.Close()
 19164  		}
 19165  		return nil, gensupport.WrapError(&googleapi.Error{
 19166  			Code:   res.StatusCode,
 19167  			Header: res.Header,
 19168  		})
 19169  	}
 19170  	if err != nil {
 19171  		return nil, err
 19172  	}
 19173  	defer googleapi.CloseBody(res)
 19174  	if err := googleapi.CheckResponse(res); err != nil {
 19175  		return nil, gensupport.WrapError(err)
 19176  	}
 19177  	ret := &GoogleLongrunningListOperationsResponse{
 19178  		ServerResponse: googleapi.ServerResponse{
 19179  			Header:         res.Header,
 19180  			HTTPStatusCode: res.StatusCode,
 19181  		},
 19182  	}
 19183  	target := &ret
 19184  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19185  		return nil, err
 19186  	}
 19187  	return ret, nil
 19188  }
 19189  
 19190  // Pages invokes f for each page of results.
 19191  // A non-nil error returned from f will halt the iteration.
 19192  // The provided context supersedes any context provided to the Context method.
 19193  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 19194  	c.ctx_ = ctx
 19195  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19196  	for {
 19197  		x, err := c.Do()
 19198  		if err != nil {
 19199  			return err
 19200  		}
 19201  		if err := f(x); err != nil {
 19202  			return err
 19203  		}
 19204  		if x.NextPageToken == "" {
 19205  			return nil
 19206  		}
 19207  		c.PageToken(x.NextPageToken)
 19208  	}
 19209  }
 19210  
 19211  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct {
 19212  	s                                                             *Service
 19213  	parent                                                        string
 19214  	googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest
 19215  	urlParams_                                                    gensupport.URLParams
 19216  	ctx_                                                          context.Context
 19217  	header_                                                       http.Header
 19218  }
 19219  
 19220  // BatchCreate: Creates TargetSite in a batch.
 19221  //
 19222  //   - parent: The parent resource shared by all TargetSites being created.
 19223  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 19224  //     s/{data_store}/siteSearchEngine`. The parent field in the
 19225  //     CreateBookRequest messages must either be empty or match this field.
 19226  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 19227  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19228  	c.parent = parent
 19229  	c.googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest = googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest
 19230  	return c
 19231  }
 19232  
 19233  // Fields allows partial responses to be retrieved. See
 19234  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19235  // details.
 19236  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 19237  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19238  	return c
 19239  }
 19240  
 19241  // Context sets the context to be used in this call's Do method.
 19242  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 19243  	c.ctx_ = ctx
 19244  	return c
 19245  }
 19246  
 19247  // Header returns a http.Header that can be modified by the caller to add
 19248  // headers to the request.
 19249  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header {
 19250  	if c.header_ == nil {
 19251  		c.header_ = make(http.Header)
 19252  	}
 19253  	return c.header_
 19254  }
 19255  
 19256  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 19257  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19258  	var body io.Reader = nil
 19259  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest)
 19260  	if err != nil {
 19261  		return nil, err
 19262  	}
 19263  	c.urlParams_.Set("alt", alt)
 19264  	c.urlParams_.Set("prettyPrint", "false")
 19265  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites:batchCreate")
 19266  	urls += "?" + c.urlParams_.Encode()
 19267  	req, err := http.NewRequest("POST", urls, body)
 19268  	if err != nil {
 19269  		return nil, err
 19270  	}
 19271  	req.Header = reqHeaders
 19272  	googleapi.Expand(req.URL, map[string]string{
 19273  		"parent": c.parent,
 19274  	})
 19275  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19276  }
 19277  
 19278  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.batchCreate" call.
 19279  // Any non-2xx status code is an error. Response headers are in either
 19280  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19281  // returned at all) in error.(*googleapi.Error).Header. Use
 19282  // googleapi.IsNotModified to check whether the returned error was because
 19283  // http.StatusNotModified was returned.
 19284  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19285  	gensupport.SetOptions(c.urlParams_, opts...)
 19286  	res, err := c.doRequest("json")
 19287  	if res != nil && res.StatusCode == http.StatusNotModified {
 19288  		if res.Body != nil {
 19289  			res.Body.Close()
 19290  		}
 19291  		return nil, gensupport.WrapError(&googleapi.Error{
 19292  			Code:   res.StatusCode,
 19293  			Header: res.Header,
 19294  		})
 19295  	}
 19296  	if err != nil {
 19297  		return nil, err
 19298  	}
 19299  	defer googleapi.CloseBody(res)
 19300  	if err := googleapi.CheckResponse(res); err != nil {
 19301  		return nil, gensupport.WrapError(err)
 19302  	}
 19303  	ret := &GoogleLongrunningOperation{
 19304  		ServerResponse: googleapi.ServerResponse{
 19305  			Header:         res.Header,
 19306  			HTTPStatusCode: res.StatusCode,
 19307  		},
 19308  	}
 19309  	target := &ret
 19310  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19311  		return nil, err
 19312  	}
 19313  	return ret, nil
 19314  }
 19315  
 19316  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall struct {
 19317  	s                                          *Service
 19318  	parent                                     string
 19319  	googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite
 19320  	urlParams_                                 gensupport.URLParams
 19321  	ctx_                                       context.Context
 19322  	header_                                    http.Header
 19323  }
 19324  
 19325  // Create: Creates a TargetSite.
 19326  //
 19327  //   - parent: Parent resource name of TargetSite, such as
 19328  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 19329  //     s/{data_store}/siteSearchEngine`.
 19330  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
 19331  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19332  	c.parent = parent
 19333  	c.googleclouddiscoveryenginev1betatargetsite = googleclouddiscoveryenginev1betatargetsite
 19334  	return c
 19335  }
 19336  
 19337  // Fields allows partial responses to be retrieved. See
 19338  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19339  // details.
 19340  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
 19341  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19342  	return c
 19343  }
 19344  
 19345  // Context sets the context to be used in this call's Do method.
 19346  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
 19347  	c.ctx_ = ctx
 19348  	return c
 19349  }
 19350  
 19351  // Header returns a http.Header that can be modified by the caller to add
 19352  // headers to the request.
 19353  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header {
 19354  	if c.header_ == nil {
 19355  		c.header_ = make(http.Header)
 19356  	}
 19357  	return c.header_
 19358  }
 19359  
 19360  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) {
 19361  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19362  	var body io.Reader = nil
 19363  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatargetsite)
 19364  	if err != nil {
 19365  		return nil, err
 19366  	}
 19367  	c.urlParams_.Set("alt", alt)
 19368  	c.urlParams_.Set("prettyPrint", "false")
 19369  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites")
 19370  	urls += "?" + c.urlParams_.Encode()
 19371  	req, err := http.NewRequest("POST", urls, body)
 19372  	if err != nil {
 19373  		return nil, err
 19374  	}
 19375  	req.Header = reqHeaders
 19376  	googleapi.Expand(req.URL, map[string]string{
 19377  		"parent": c.parent,
 19378  	})
 19379  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19380  }
 19381  
 19382  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.create" call.
 19383  // Any non-2xx status code is an error. Response headers are in either
 19384  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19385  // returned at all) in error.(*googleapi.Error).Header. Use
 19386  // googleapi.IsNotModified to check whether the returned error was because
 19387  // http.StatusNotModified was returned.
 19388  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19389  	gensupport.SetOptions(c.urlParams_, opts...)
 19390  	res, err := c.doRequest("json")
 19391  	if res != nil && res.StatusCode == http.StatusNotModified {
 19392  		if res.Body != nil {
 19393  			res.Body.Close()
 19394  		}
 19395  		return nil, gensupport.WrapError(&googleapi.Error{
 19396  			Code:   res.StatusCode,
 19397  			Header: res.Header,
 19398  		})
 19399  	}
 19400  	if err != nil {
 19401  		return nil, err
 19402  	}
 19403  	defer googleapi.CloseBody(res)
 19404  	if err := googleapi.CheckResponse(res); err != nil {
 19405  		return nil, gensupport.WrapError(err)
 19406  	}
 19407  	ret := &GoogleLongrunningOperation{
 19408  		ServerResponse: googleapi.ServerResponse{
 19409  			Header:         res.Header,
 19410  			HTTPStatusCode: res.StatusCode,
 19411  		},
 19412  	}
 19413  	target := &ret
 19414  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19415  		return nil, err
 19416  	}
 19417  	return ret, nil
 19418  }
 19419  
 19420  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall struct {
 19421  	s          *Service
 19422  	name       string
 19423  	urlParams_ gensupport.URLParams
 19424  	ctx_       context.Context
 19425  	header_    http.Header
 19426  }
 19427  
 19428  // Delete: Deletes a TargetSite.
 19429  //
 19430  //   - name: Full resource name of TargetSite, such as
 19431  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 19432  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}`. If the caller
 19433  //     does not have permission to access the TargetSite, regardless of whether
 19434  //     or not it exists, a PERMISSION_DENIED error is returned. If the requested
 19435  //     TargetSite does not exist, a NOT_FOUND error is returned.
 19436  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 19437  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19438  	c.name = name
 19439  	return c
 19440  }
 19441  
 19442  // Fields allows partial responses to be retrieved. See
 19443  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19444  // details.
 19445  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 19446  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19447  	return c
 19448  }
 19449  
 19450  // Context sets the context to be used in this call's Do method.
 19451  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 19452  	c.ctx_ = ctx
 19453  	return c
 19454  }
 19455  
 19456  // Header returns a http.Header that can be modified by the caller to add
 19457  // headers to the request.
 19458  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Header() http.Header {
 19459  	if c.header_ == nil {
 19460  		c.header_ = make(http.Header)
 19461  	}
 19462  	return c.header_
 19463  }
 19464  
 19465  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) doRequest(alt string) (*http.Response, error) {
 19466  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19467  	var body io.Reader = nil
 19468  	c.urlParams_.Set("alt", alt)
 19469  	c.urlParams_.Set("prettyPrint", "false")
 19470  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 19471  	urls += "?" + c.urlParams_.Encode()
 19472  	req, err := http.NewRequest("DELETE", urls, body)
 19473  	if err != nil {
 19474  		return nil, err
 19475  	}
 19476  	req.Header = reqHeaders
 19477  	googleapi.Expand(req.URL, map[string]string{
 19478  		"name": c.name,
 19479  	})
 19480  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19481  }
 19482  
 19483  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.delete" call.
 19484  // Any non-2xx status code is an error. Response headers are in either
 19485  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19486  // returned at all) in error.(*googleapi.Error).Header. Use
 19487  // googleapi.IsNotModified to check whether the returned error was because
 19488  // http.StatusNotModified was returned.
 19489  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19490  	gensupport.SetOptions(c.urlParams_, opts...)
 19491  	res, err := c.doRequest("json")
 19492  	if res != nil && res.StatusCode == http.StatusNotModified {
 19493  		if res.Body != nil {
 19494  			res.Body.Close()
 19495  		}
 19496  		return nil, gensupport.WrapError(&googleapi.Error{
 19497  			Code:   res.StatusCode,
 19498  			Header: res.Header,
 19499  		})
 19500  	}
 19501  	if err != nil {
 19502  		return nil, err
 19503  	}
 19504  	defer googleapi.CloseBody(res)
 19505  	if err := googleapi.CheckResponse(res); err != nil {
 19506  		return nil, gensupport.WrapError(err)
 19507  	}
 19508  	ret := &GoogleLongrunningOperation{
 19509  		ServerResponse: googleapi.ServerResponse{
 19510  			Header:         res.Header,
 19511  			HTTPStatusCode: res.StatusCode,
 19512  		},
 19513  	}
 19514  	target := &ret
 19515  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19516  		return nil, err
 19517  	}
 19518  	return ret, nil
 19519  }
 19520  
 19521  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall struct {
 19522  	s            *Service
 19523  	name         string
 19524  	urlParams_   gensupport.URLParams
 19525  	ifNoneMatch_ string
 19526  	ctx_         context.Context
 19527  	header_      http.Header
 19528  }
 19529  
 19530  // Get: Gets a TargetSite.
 19531  //
 19532  //   - name: Full resource name of TargetSite, such as
 19533  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 19534  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}`. If the caller
 19535  //     does not have permission to access the TargetSite, regardless of whether
 19536  //     or not it exists, a PERMISSION_DENIED error is returned. If the requested
 19537  //     TargetSite does not exist, a NOT_FOUND error is returned.
 19538  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
 19539  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19540  	c.name = name
 19541  	return c
 19542  }
 19543  
 19544  // Fields allows partial responses to be retrieved. See
 19545  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19546  // details.
 19547  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
 19548  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19549  	return c
 19550  }
 19551  
 19552  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19553  // object's ETag matches the given value. This is useful for getting updates
 19554  // only after the object has changed since the last request.
 19555  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
 19556  	c.ifNoneMatch_ = entityTag
 19557  	return c
 19558  }
 19559  
 19560  // Context sets the context to be used in this call's Do method.
 19561  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
 19562  	c.ctx_ = ctx
 19563  	return c
 19564  }
 19565  
 19566  // Header returns a http.Header that can be modified by the caller to add
 19567  // headers to the request.
 19568  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Header() http.Header {
 19569  	if c.header_ == nil {
 19570  		c.header_ = make(http.Header)
 19571  	}
 19572  	return c.header_
 19573  }
 19574  
 19575  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) doRequest(alt string) (*http.Response, error) {
 19576  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19577  	if c.ifNoneMatch_ != "" {
 19578  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19579  	}
 19580  	var body io.Reader = nil
 19581  	c.urlParams_.Set("alt", alt)
 19582  	c.urlParams_.Set("prettyPrint", "false")
 19583  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 19584  	urls += "?" + c.urlParams_.Encode()
 19585  	req, err := http.NewRequest("GET", urls, body)
 19586  	if err != nil {
 19587  		return nil, err
 19588  	}
 19589  	req.Header = reqHeaders
 19590  	googleapi.Expand(req.URL, map[string]string{
 19591  		"name": c.name,
 19592  	})
 19593  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19594  }
 19595  
 19596  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.get" call.
 19597  // Any non-2xx status code is an error. Response headers are in either
 19598  // *GoogleCloudDiscoveryengineV1betaTargetSite.ServerResponse.Header or (if a
 19599  // response was returned at all) in error.(*googleapi.Error).Header. Use
 19600  // googleapi.IsNotModified to check whether the returned error was because
 19601  // http.StatusNotModified was returned.
 19602  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaTargetSite, error) {
 19603  	gensupport.SetOptions(c.urlParams_, opts...)
 19604  	res, err := c.doRequest("json")
 19605  	if res != nil && res.StatusCode == http.StatusNotModified {
 19606  		if res.Body != nil {
 19607  			res.Body.Close()
 19608  		}
 19609  		return nil, gensupport.WrapError(&googleapi.Error{
 19610  			Code:   res.StatusCode,
 19611  			Header: res.Header,
 19612  		})
 19613  	}
 19614  	if err != nil {
 19615  		return nil, err
 19616  	}
 19617  	defer googleapi.CloseBody(res)
 19618  	if err := googleapi.CheckResponse(res); err != nil {
 19619  		return nil, gensupport.WrapError(err)
 19620  	}
 19621  	ret := &GoogleCloudDiscoveryengineV1betaTargetSite{
 19622  		ServerResponse: googleapi.ServerResponse{
 19623  			Header:         res.Header,
 19624  			HTTPStatusCode: res.StatusCode,
 19625  		},
 19626  	}
 19627  	target := &ret
 19628  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19629  		return nil, err
 19630  	}
 19631  	return ret, nil
 19632  }
 19633  
 19634  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall struct {
 19635  	s            *Service
 19636  	parent       string
 19637  	urlParams_   gensupport.URLParams
 19638  	ifNoneMatch_ string
 19639  	ctx_         context.Context
 19640  	header_      http.Header
 19641  }
 19642  
 19643  // List: Gets a list of TargetSites.
 19644  //
 19645  //   - parent: The parent site search engine resource name, such as
 19646  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 19647  //     s/{data_store}/siteSearchEngine`. If the caller does not have permission
 19648  //     to list TargetSites under this site search engine, regardless of whether
 19649  //     or not this branch exists, a PERMISSION_DENIED error is returned.
 19650  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) List(parent string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 19651  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19652  	c.parent = parent
 19653  	return c
 19654  }
 19655  
 19656  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 19657  // may return fewer items than requested. If unspecified, server will pick an
 19658  // appropriate default. The maximum value is 1000; values above 1000 will be
 19659  // coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is
 19660  // returned.
 19661  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 19662  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 19663  	return c
 19664  }
 19665  
 19666  // PageToken sets the optional parameter "pageToken": A page token, received
 19667  // from a previous `ListTargetSites` call. Provide this to retrieve the
 19668  // subsequent page. When paginating, all other parameters provided to
 19669  // `ListTargetSites` must match the call that provided the page token.
 19670  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 19671  	c.urlParams_.Set("pageToken", pageToken)
 19672  	return c
 19673  }
 19674  
 19675  // Fields allows partial responses to be retrieved. See
 19676  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19677  // details.
 19678  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 19679  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19680  	return c
 19681  }
 19682  
 19683  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19684  // object's ETag matches the given value. This is useful for getting updates
 19685  // only after the object has changed since the last request.
 19686  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 19687  	c.ifNoneMatch_ = entityTag
 19688  	return c
 19689  }
 19690  
 19691  // Context sets the context to be used in this call's Do method.
 19692  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
 19693  	c.ctx_ = ctx
 19694  	return c
 19695  }
 19696  
 19697  // Header returns a http.Header that can be modified by the caller to add
 19698  // headers to the request.
 19699  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Header() http.Header {
 19700  	if c.header_ == nil {
 19701  		c.header_ = make(http.Header)
 19702  	}
 19703  	return c.header_
 19704  }
 19705  
 19706  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) doRequest(alt string) (*http.Response, error) {
 19707  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19708  	if c.ifNoneMatch_ != "" {
 19709  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19710  	}
 19711  	var body io.Reader = nil
 19712  	c.urlParams_.Set("alt", alt)
 19713  	c.urlParams_.Set("prettyPrint", "false")
 19714  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites")
 19715  	urls += "?" + c.urlParams_.Encode()
 19716  	req, err := http.NewRequest("GET", urls, body)
 19717  	if err != nil {
 19718  		return nil, err
 19719  	}
 19720  	req.Header = reqHeaders
 19721  	googleapi.Expand(req.URL, map[string]string{
 19722  		"parent": c.parent,
 19723  	})
 19724  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19725  }
 19726  
 19727  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.list" call.
 19728  // Any non-2xx status code is an error. Response headers are in either
 19729  // *GoogleCloudDiscoveryengineV1betaListTargetSitesResponse.ServerResponse.Heade
 19730  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 19731  // Use googleapi.IsNotModified to check whether the returned error was because
 19732  // http.StatusNotModified was returned.
 19733  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListTargetSitesResponse, error) {
 19734  	gensupport.SetOptions(c.urlParams_, opts...)
 19735  	res, err := c.doRequest("json")
 19736  	if res != nil && res.StatusCode == http.StatusNotModified {
 19737  		if res.Body != nil {
 19738  			res.Body.Close()
 19739  		}
 19740  		return nil, gensupport.WrapError(&googleapi.Error{
 19741  			Code:   res.StatusCode,
 19742  			Header: res.Header,
 19743  		})
 19744  	}
 19745  	if err != nil {
 19746  		return nil, err
 19747  	}
 19748  	defer googleapi.CloseBody(res)
 19749  	if err := googleapi.CheckResponse(res); err != nil {
 19750  		return nil, gensupport.WrapError(err)
 19751  	}
 19752  	ret := &GoogleCloudDiscoveryengineV1betaListTargetSitesResponse{
 19753  		ServerResponse: googleapi.ServerResponse{
 19754  			Header:         res.Header,
 19755  			HTTPStatusCode: res.StatusCode,
 19756  		},
 19757  	}
 19758  	target := &ret
 19759  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19760  		return nil, err
 19761  	}
 19762  	return ret, nil
 19763  }
 19764  
 19765  // Pages invokes f for each page of results.
 19766  // A non-nil error returned from f will halt the iteration.
 19767  // The provided context supersedes any context provided to the Context method.
 19768  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListTargetSitesResponse) error) error {
 19769  	c.ctx_ = ctx
 19770  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 19771  	for {
 19772  		x, err := c.Do()
 19773  		if err != nil {
 19774  			return err
 19775  		}
 19776  		if err := f(x); err != nil {
 19777  			return err
 19778  		}
 19779  		if x.NextPageToken == "" {
 19780  			return nil
 19781  		}
 19782  		c.PageToken(x.NextPageToken)
 19783  	}
 19784  }
 19785  
 19786  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall struct {
 19787  	s                                          *Service
 19788  	name                                       string
 19789  	googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite
 19790  	urlParams_                                 gensupport.URLParams
 19791  	ctx_                                       context.Context
 19792  	header_                                    http.Header
 19793  }
 19794  
 19795  // Patch: Updates a TargetSite.
 19796  //
 19797  //   - name: Output only. The fully qualified resource name of the target site.
 19798  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 19799  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}` The
 19800  //     `target_site_id` is system-generated.
 19801  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Patch(name string, googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
 19802  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19803  	c.name = name
 19804  	c.googleclouddiscoveryenginev1betatargetsite = googleclouddiscoveryenginev1betatargetsite
 19805  	return c
 19806  }
 19807  
 19808  // Fields allows partial responses to be retrieved. See
 19809  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19810  // details.
 19811  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
 19812  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19813  	return c
 19814  }
 19815  
 19816  // Context sets the context to be used in this call's Do method.
 19817  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
 19818  	c.ctx_ = ctx
 19819  	return c
 19820  }
 19821  
 19822  // Header returns a http.Header that can be modified by the caller to add
 19823  // headers to the request.
 19824  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Header() http.Header {
 19825  	if c.header_ == nil {
 19826  		c.header_ = make(http.Header)
 19827  	}
 19828  	return c.header_
 19829  }
 19830  
 19831  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequest(alt string) (*http.Response, error) {
 19832  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 19833  	var body io.Reader = nil
 19834  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatargetsite)
 19835  	if err != nil {
 19836  		return nil, err
 19837  	}
 19838  	c.urlParams_.Set("alt", alt)
 19839  	c.urlParams_.Set("prettyPrint", "false")
 19840  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 19841  	urls += "?" + c.urlParams_.Encode()
 19842  	req, err := http.NewRequest("PATCH", urls, body)
 19843  	if err != nil {
 19844  		return nil, err
 19845  	}
 19846  	req.Header = reqHeaders
 19847  	googleapi.Expand(req.URL, map[string]string{
 19848  		"name": c.name,
 19849  	})
 19850  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19851  }
 19852  
 19853  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.patch" call.
 19854  // Any non-2xx status code is an error. Response headers are in either
 19855  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19856  // returned at all) in error.(*googleapi.Error).Header. Use
 19857  // googleapi.IsNotModified to check whether the returned error was because
 19858  // http.StatusNotModified was returned.
 19859  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19860  	gensupport.SetOptions(c.urlParams_, opts...)
 19861  	res, err := c.doRequest("json")
 19862  	if res != nil && res.StatusCode == http.StatusNotModified {
 19863  		if res.Body != nil {
 19864  			res.Body.Close()
 19865  		}
 19866  		return nil, gensupport.WrapError(&googleapi.Error{
 19867  			Code:   res.StatusCode,
 19868  			Header: res.Header,
 19869  		})
 19870  	}
 19871  	if err != nil {
 19872  		return nil, err
 19873  	}
 19874  	defer googleapi.CloseBody(res)
 19875  	if err := googleapi.CheckResponse(res); err != nil {
 19876  		return nil, gensupport.WrapError(err)
 19877  	}
 19878  	ret := &GoogleLongrunningOperation{
 19879  		ServerResponse: googleapi.ServerResponse{
 19880  			Header:         res.Header,
 19881  			HTTPStatusCode: res.StatusCode,
 19882  		},
 19883  	}
 19884  	target := &ret
 19885  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19886  		return nil, err
 19887  	}
 19888  	return ret, nil
 19889  }
 19890  
 19891  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall struct {
 19892  	s            *Service
 19893  	name         string
 19894  	urlParams_   gensupport.URLParams
 19895  	ifNoneMatch_ string
 19896  	ctx_         context.Context
 19897  	header_      http.Header
 19898  }
 19899  
 19900  // Get: Gets the latest state of a long-running operation. Clients can use this
 19901  // method to poll the operation result at intervals as recommended by the API
 19902  // service.
 19903  //
 19904  // - name: The name of the operation resource.
 19905  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
 19906  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 19907  	c.name = name
 19908  	return c
 19909  }
 19910  
 19911  // Fields allows partial responses to be retrieved. See
 19912  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 19913  // details.
 19914  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
 19915  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 19916  	return c
 19917  }
 19918  
 19919  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 19920  // object's ETag matches the given value. This is useful for getting updates
 19921  // only after the object has changed since the last request.
 19922  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
 19923  	c.ifNoneMatch_ = entityTag
 19924  	return c
 19925  }
 19926  
 19927  // Context sets the context to be used in this call's Do method.
 19928  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
 19929  	c.ctx_ = ctx
 19930  	return c
 19931  }
 19932  
 19933  // Header returns a http.Header that can be modified by the caller to add
 19934  // headers to the request.
 19935  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Header() http.Header {
 19936  	if c.header_ == nil {
 19937  		c.header_ = make(http.Header)
 19938  	}
 19939  	return c.header_
 19940  }
 19941  
 19942  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 19943  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 19944  	if c.ifNoneMatch_ != "" {
 19945  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 19946  	}
 19947  	var body io.Reader = nil
 19948  	c.urlParams_.Set("alt", alt)
 19949  	c.urlParams_.Set("prettyPrint", "false")
 19950  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 19951  	urls += "?" + c.urlParams_.Encode()
 19952  	req, err := http.NewRequest("GET", urls, body)
 19953  	if err != nil {
 19954  		return nil, err
 19955  	}
 19956  	req.Header = reqHeaders
 19957  	googleapi.Expand(req.URL, map[string]string{
 19958  		"name": c.name,
 19959  	})
 19960  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 19961  }
 19962  
 19963  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.get" call.
 19964  // Any non-2xx status code is an error. Response headers are in either
 19965  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 19966  // returned at all) in error.(*googleapi.Error).Header. Use
 19967  // googleapi.IsNotModified to check whether the returned error was because
 19968  // http.StatusNotModified was returned.
 19969  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 19970  	gensupport.SetOptions(c.urlParams_, opts...)
 19971  	res, err := c.doRequest("json")
 19972  	if res != nil && res.StatusCode == http.StatusNotModified {
 19973  		if res.Body != nil {
 19974  			res.Body.Close()
 19975  		}
 19976  		return nil, gensupport.WrapError(&googleapi.Error{
 19977  			Code:   res.StatusCode,
 19978  			Header: res.Header,
 19979  		})
 19980  	}
 19981  	if err != nil {
 19982  		return nil, err
 19983  	}
 19984  	defer googleapi.CloseBody(res)
 19985  	if err := googleapi.CheckResponse(res); err != nil {
 19986  		return nil, gensupport.WrapError(err)
 19987  	}
 19988  	ret := &GoogleLongrunningOperation{
 19989  		ServerResponse: googleapi.ServerResponse{
 19990  			Header:         res.Header,
 19991  			HTTPStatusCode: res.StatusCode,
 19992  		},
 19993  	}
 19994  	target := &ret
 19995  	if err := gensupport.DecodeResponse(target, res); err != nil {
 19996  		return nil, err
 19997  	}
 19998  	return ret, nil
 19999  }
 20000  
 20001  type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall struct {
 20002  	s            *Service
 20003  	name         string
 20004  	urlParams_   gensupport.URLParams
 20005  	ifNoneMatch_ string
 20006  	ctx_         context.Context
 20007  	header_      http.Header
 20008  }
 20009  
 20010  // List: Lists operations that match the specified filter in the request. If
 20011  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 20012  //
 20013  // - name: The name of the operation's parent resource.
 20014  func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 20015  	c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20016  	c.name = name
 20017  	return c
 20018  }
 20019  
 20020  // Filter sets the optional parameter "filter": The standard list filter.
 20021  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 20022  	c.urlParams_.Set("filter", filter)
 20023  	return c
 20024  }
 20025  
 20026  // PageSize sets the optional parameter "pageSize": The standard list page
 20027  // size.
 20028  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 20029  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 20030  	return c
 20031  }
 20032  
 20033  // PageToken sets the optional parameter "pageToken": The standard list page
 20034  // token.
 20035  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 20036  	c.urlParams_.Set("pageToken", pageToken)
 20037  	return c
 20038  }
 20039  
 20040  // Fields allows partial responses to be retrieved. See
 20041  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20042  // details.
 20043  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 20044  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20045  	return c
 20046  }
 20047  
 20048  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20049  // object's ETag matches the given value. This is useful for getting updates
 20050  // only after the object has changed since the last request.
 20051  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 20052  	c.ifNoneMatch_ = entityTag
 20053  	return c
 20054  }
 20055  
 20056  // Context sets the context to be used in this call's Do method.
 20057  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
 20058  	c.ctx_ = ctx
 20059  	return c
 20060  }
 20061  
 20062  // Header returns a http.Header that can be modified by the caller to add
 20063  // headers to the request.
 20064  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Header() http.Header {
 20065  	if c.header_ == nil {
 20066  		c.header_ = make(http.Header)
 20067  	}
 20068  	return c.header_
 20069  }
 20070  
 20071  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) doRequest(alt string) (*http.Response, error) {
 20072  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20073  	if c.ifNoneMatch_ != "" {
 20074  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20075  	}
 20076  	var body io.Reader = nil
 20077  	c.urlParams_.Set("alt", alt)
 20078  	c.urlParams_.Set("prettyPrint", "false")
 20079  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 20080  	urls += "?" + c.urlParams_.Encode()
 20081  	req, err := http.NewRequest("GET", urls, body)
 20082  	if err != nil {
 20083  		return nil, err
 20084  	}
 20085  	req.Header = reqHeaders
 20086  	googleapi.Expand(req.URL, map[string]string{
 20087  		"name": c.name,
 20088  	})
 20089  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20090  }
 20091  
 20092  // Do executes the "discoveryengine.projects.locations.collections.dataStores.siteSearchEngine.targetSites.operations.list" call.
 20093  // Any non-2xx status code is an error. Response headers are in either
 20094  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 20095  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20096  // googleapi.IsNotModified to check whether the returned error was because
 20097  // http.StatusNotModified was returned.
 20098  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 20099  	gensupport.SetOptions(c.urlParams_, opts...)
 20100  	res, err := c.doRequest("json")
 20101  	if res != nil && res.StatusCode == http.StatusNotModified {
 20102  		if res.Body != nil {
 20103  			res.Body.Close()
 20104  		}
 20105  		return nil, gensupport.WrapError(&googleapi.Error{
 20106  			Code:   res.StatusCode,
 20107  			Header: res.Header,
 20108  		})
 20109  	}
 20110  	if err != nil {
 20111  		return nil, err
 20112  	}
 20113  	defer googleapi.CloseBody(res)
 20114  	if err := googleapi.CheckResponse(res); err != nil {
 20115  		return nil, gensupport.WrapError(err)
 20116  	}
 20117  	ret := &GoogleLongrunningListOperationsResponse{
 20118  		ServerResponse: googleapi.ServerResponse{
 20119  			Header:         res.Header,
 20120  			HTTPStatusCode: res.StatusCode,
 20121  		},
 20122  	}
 20123  	target := &ret
 20124  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20125  		return nil, err
 20126  	}
 20127  	return ret, nil
 20128  }
 20129  
 20130  // Pages invokes f for each page of results.
 20131  // A non-nil error returned from f will halt the iteration.
 20132  // The provided context supersedes any context provided to the Context method.
 20133  func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 20134  	c.ctx_ = ctx
 20135  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 20136  	for {
 20137  		x, err := c.Do()
 20138  		if err != nil {
 20139  			return err
 20140  		}
 20141  		if err := f(x); err != nil {
 20142  			return err
 20143  		}
 20144  		if x.NextPageToken == "" {
 20145  			return nil
 20146  		}
 20147  		c.PageToken(x.NextPageToken)
 20148  	}
 20149  }
 20150  
 20151  type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall struct {
 20152  	s                                                                      *Service
 20153  	parent                                                                 string
 20154  	googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest
 20155  	urlParams_                                                             gensupport.URLParams
 20156  	ctx_                                                                   context.Context
 20157  	header_                                                                http.Header
 20158  }
 20159  
 20160  // Import: Imports all SuggestionDenyListEntry for a DataStore.
 20161  //
 20162  //   - parent: The parent data store resource name for which to import denylist
 20163  //     entries. Follows pattern
 20164  //     projects/*/locations/*/collections/*/dataStores/*.
 20165  func (r *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService) Import(parent string, googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
 20166  	c := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20167  	c.parent = parent
 20168  	c.googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest = googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest
 20169  	return c
 20170  }
 20171  
 20172  // Fields allows partial responses to be retrieved. See
 20173  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20174  // details.
 20175  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
 20176  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20177  	return c
 20178  }
 20179  
 20180  // Context sets the context to be used in this call's Do method.
 20181  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
 20182  	c.ctx_ = ctx
 20183  	return c
 20184  }
 20185  
 20186  // Header returns a http.Header that can be modified by the caller to add
 20187  // headers to the request.
 20188  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Header() http.Header {
 20189  	if c.header_ == nil {
 20190  		c.header_ = make(http.Header)
 20191  	}
 20192  	return c.header_
 20193  }
 20194  
 20195  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) doRequest(alt string) (*http.Response, error) {
 20196  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20197  	var body io.Reader = nil
 20198  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest)
 20199  	if err != nil {
 20200  		return nil, err
 20201  	}
 20202  	c.urlParams_.Set("alt", alt)
 20203  	c.urlParams_.Set("prettyPrint", "false")
 20204  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/suggestionDenyListEntries:import")
 20205  	urls += "?" + c.urlParams_.Encode()
 20206  	req, err := http.NewRequest("POST", urls, body)
 20207  	if err != nil {
 20208  		return nil, err
 20209  	}
 20210  	req.Header = reqHeaders
 20211  	googleapi.Expand(req.URL, map[string]string{
 20212  		"parent": c.parent,
 20213  	})
 20214  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20215  }
 20216  
 20217  // Do executes the "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.import" call.
 20218  // Any non-2xx status code is an error. Response headers are in either
 20219  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20220  // returned at all) in error.(*googleapi.Error).Header. Use
 20221  // googleapi.IsNotModified to check whether the returned error was because
 20222  // http.StatusNotModified was returned.
 20223  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20224  	gensupport.SetOptions(c.urlParams_, opts...)
 20225  	res, err := c.doRequest("json")
 20226  	if res != nil && res.StatusCode == http.StatusNotModified {
 20227  		if res.Body != nil {
 20228  			res.Body.Close()
 20229  		}
 20230  		return nil, gensupport.WrapError(&googleapi.Error{
 20231  			Code:   res.StatusCode,
 20232  			Header: res.Header,
 20233  		})
 20234  	}
 20235  	if err != nil {
 20236  		return nil, err
 20237  	}
 20238  	defer googleapi.CloseBody(res)
 20239  	if err := googleapi.CheckResponse(res); err != nil {
 20240  		return nil, gensupport.WrapError(err)
 20241  	}
 20242  	ret := &GoogleLongrunningOperation{
 20243  		ServerResponse: googleapi.ServerResponse{
 20244  			Header:         res.Header,
 20245  			HTTPStatusCode: res.StatusCode,
 20246  		},
 20247  	}
 20248  	target := &ret
 20249  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20250  		return nil, err
 20251  	}
 20252  	return ret, nil
 20253  }
 20254  
 20255  type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall struct {
 20256  	s                                                                     *Service
 20257  	parent                                                                string
 20258  	googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesRequest
 20259  	urlParams_                                                            gensupport.URLParams
 20260  	ctx_                                                                  context.Context
 20261  	header_                                                               http.Header
 20262  }
 20263  
 20264  // Purge: Permanently deletes all SuggestionDenyListEntry for a DataStore.
 20265  //
 20266  //   - parent: The parent data store resource name for which to import denylist
 20267  //     entries. Follows pattern
 20268  //     projects/*/locations/*/collections/*/dataStores/*.
 20269  func (r *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService) Purge(parent string, googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesRequest) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
 20270  	c := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20271  	c.parent = parent
 20272  	c.googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest = googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest
 20273  	return c
 20274  }
 20275  
 20276  // Fields allows partial responses to be retrieved. See
 20277  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20278  // details.
 20279  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
 20280  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20281  	return c
 20282  }
 20283  
 20284  // Context sets the context to be used in this call's Do method.
 20285  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
 20286  	c.ctx_ = ctx
 20287  	return c
 20288  }
 20289  
 20290  // Header returns a http.Header that can be modified by the caller to add
 20291  // headers to the request.
 20292  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Header() http.Header {
 20293  	if c.header_ == nil {
 20294  		c.header_ = make(http.Header)
 20295  	}
 20296  	return c.header_
 20297  }
 20298  
 20299  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) doRequest(alt string) (*http.Response, error) {
 20300  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20301  	var body io.Reader = nil
 20302  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest)
 20303  	if err != nil {
 20304  		return nil, err
 20305  	}
 20306  	c.urlParams_.Set("alt", alt)
 20307  	c.urlParams_.Set("prettyPrint", "false")
 20308  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/suggestionDenyListEntries:purge")
 20309  	urls += "?" + c.urlParams_.Encode()
 20310  	req, err := http.NewRequest("POST", urls, body)
 20311  	if err != nil {
 20312  		return nil, err
 20313  	}
 20314  	req.Header = reqHeaders
 20315  	googleapi.Expand(req.URL, map[string]string{
 20316  		"parent": c.parent,
 20317  	})
 20318  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20319  }
 20320  
 20321  // Do executes the "discoveryengine.projects.locations.collections.dataStores.suggestionDenyListEntries.purge" call.
 20322  // Any non-2xx status code is an error. Response headers are in either
 20323  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20324  // returned at all) in error.(*googleapi.Error).Header. Use
 20325  // googleapi.IsNotModified to check whether the returned error was because
 20326  // http.StatusNotModified was returned.
 20327  func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20328  	gensupport.SetOptions(c.urlParams_, opts...)
 20329  	res, err := c.doRequest("json")
 20330  	if res != nil && res.StatusCode == http.StatusNotModified {
 20331  		if res.Body != nil {
 20332  			res.Body.Close()
 20333  		}
 20334  		return nil, gensupport.WrapError(&googleapi.Error{
 20335  			Code:   res.StatusCode,
 20336  			Header: res.Header,
 20337  		})
 20338  	}
 20339  	if err != nil {
 20340  		return nil, err
 20341  	}
 20342  	defer googleapi.CloseBody(res)
 20343  	if err := googleapi.CheckResponse(res); err != nil {
 20344  		return nil, gensupport.WrapError(err)
 20345  	}
 20346  	ret := &GoogleLongrunningOperation{
 20347  		ServerResponse: googleapi.ServerResponse{
 20348  			Header:         res.Header,
 20349  			HTTPStatusCode: res.StatusCode,
 20350  		},
 20351  	}
 20352  	target := &ret
 20353  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20354  		return nil, err
 20355  	}
 20356  	return ret, nil
 20357  }
 20358  
 20359  type ProjectsLocationsCollectionsDataStoresUserEventsCollectCall struct {
 20360  	s            *Service
 20361  	parent       string
 20362  	urlParams_   gensupport.URLParams
 20363  	ifNoneMatch_ string
 20364  	ctx_         context.Context
 20365  	header_      http.Header
 20366  }
 20367  
 20368  // Collect: Writes a single user event from the browser. This uses a GET
 20369  // request to due to browser restriction of POST-ing to a third-party domain.
 20370  // This method is used only by the Discovery Engine API JavaScript pixel and
 20371  // Google Tag Manager. Users should not call this method directly.
 20372  //
 20373  //   - parent: The parent DataStore resource name, such as
 20374  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20375  //     s/{data_store}`.
 20376  func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Collect(parent string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 20377  	c := &ProjectsLocationsCollectionsDataStoresUserEventsCollectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20378  	c.parent = parent
 20379  	return c
 20380  }
 20381  
 20382  // Ets sets the optional parameter "ets": The event timestamp in milliseconds.
 20383  // This prevents browser caching of otherwise identical get requests. The name
 20384  // is abbreviated to reduce the payload bytes.
 20385  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Ets(ets int64) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 20386  	c.urlParams_.Set("ets", fmt.Sprint(ets))
 20387  	return c
 20388  }
 20389  
 20390  // Uri sets the optional parameter "uri": The URL including cgi-parameters but
 20391  // excluding the hash fragment with a length limit of 5,000 characters. This is
 20392  // often more useful than the referer URL, because many browsers only send the
 20393  // domain for third-party requests.
 20394  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Uri(uri string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 20395  	c.urlParams_.Set("uri", uri)
 20396  	return c
 20397  }
 20398  
 20399  // UserEvent sets the optional parameter "userEvent": Required. URL encoded
 20400  // UserEvent proto with a length limit of 2,000,000 characters.
 20401  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) UserEvent(userEvent string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 20402  	c.urlParams_.Set("userEvent", userEvent)
 20403  	return c
 20404  }
 20405  
 20406  // Fields allows partial responses to be retrieved. See
 20407  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20408  // details.
 20409  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 20410  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20411  	return c
 20412  }
 20413  
 20414  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20415  // object's ETag matches the given value. This is useful for getting updates
 20416  // only after the object has changed since the last request.
 20417  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 20418  	c.ifNoneMatch_ = entityTag
 20419  	return c
 20420  }
 20421  
 20422  // Context sets the context to be used in this call's Do method.
 20423  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
 20424  	c.ctx_ = ctx
 20425  	return c
 20426  }
 20427  
 20428  // Header returns a http.Header that can be modified by the caller to add
 20429  // headers to the request.
 20430  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Header() http.Header {
 20431  	if c.header_ == nil {
 20432  		c.header_ = make(http.Header)
 20433  	}
 20434  	return c.header_
 20435  }
 20436  
 20437  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) {
 20438  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20439  	if c.ifNoneMatch_ != "" {
 20440  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20441  	}
 20442  	var body io.Reader = nil
 20443  	c.urlParams_.Set("alt", alt)
 20444  	c.urlParams_.Set("prettyPrint", "false")
 20445  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:collect")
 20446  	urls += "?" + c.urlParams_.Encode()
 20447  	req, err := http.NewRequest("GET", urls, body)
 20448  	if err != nil {
 20449  		return nil, err
 20450  	}
 20451  	req.Header = reqHeaders
 20452  	googleapi.Expand(req.URL, map[string]string{
 20453  		"parent": c.parent,
 20454  	})
 20455  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20456  }
 20457  
 20458  // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.collect" call.
 20459  // Any non-2xx status code is an error. Response headers are in either
 20460  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 20461  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 20462  // check whether the returned error was because http.StatusNotModified was
 20463  // returned.
 20464  func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 20465  	gensupport.SetOptions(c.urlParams_, opts...)
 20466  	res, err := c.doRequest("json")
 20467  	if res != nil && res.StatusCode == http.StatusNotModified {
 20468  		if res.Body != nil {
 20469  			res.Body.Close()
 20470  		}
 20471  		return nil, gensupport.WrapError(&googleapi.Error{
 20472  			Code:   res.StatusCode,
 20473  			Header: res.Header,
 20474  		})
 20475  	}
 20476  	if err != nil {
 20477  		return nil, err
 20478  	}
 20479  	defer googleapi.CloseBody(res)
 20480  	if err := googleapi.CheckResponse(res); err != nil {
 20481  		return nil, gensupport.WrapError(err)
 20482  	}
 20483  	ret := &GoogleApiHttpBody{
 20484  		ServerResponse: googleapi.ServerResponse{
 20485  			Header:         res.Header,
 20486  			HTTPStatusCode: res.StatusCode,
 20487  		},
 20488  	}
 20489  	target := &ret
 20490  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20491  		return nil, err
 20492  	}
 20493  	return ret, nil
 20494  }
 20495  
 20496  type ProjectsLocationsCollectionsDataStoresUserEventsImportCall struct {
 20497  	s                                                       *Service
 20498  	parent                                                  string
 20499  	googleclouddiscoveryenginev1betaimportusereventsrequest *GoogleCloudDiscoveryengineV1betaImportUserEventsRequest
 20500  	urlParams_                                              gensupport.URLParams
 20501  	ctx_                                                    context.Context
 20502  	header_                                                 http.Header
 20503  }
 20504  
 20505  // Import: Bulk import of User events. Request processing might be synchronous.
 20506  // Events that already exist are skipped. Use this method for backfilling
 20507  // historical user events. Operation.response is of type ImportResponse. Note
 20508  // that it is possible for a subset of the items to be successfully inserted.
 20509  // Operation.metadata is of type ImportMetadata.
 20510  //
 20511  //   - parent: Parent DataStore resource name, of the form
 20512  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20513  //     s/{data_store}`.
 20514  func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Import(parent string, googleclouddiscoveryenginev1betaimportusereventsrequest *GoogleCloudDiscoveryengineV1betaImportUserEventsRequest) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
 20515  	c := &ProjectsLocationsCollectionsDataStoresUserEventsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20516  	c.parent = parent
 20517  	c.googleclouddiscoveryenginev1betaimportusereventsrequest = googleclouddiscoveryenginev1betaimportusereventsrequest
 20518  	return c
 20519  }
 20520  
 20521  // Fields allows partial responses to be retrieved. See
 20522  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20523  // details.
 20524  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
 20525  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20526  	return c
 20527  }
 20528  
 20529  // Context sets the context to be used in this call's Do method.
 20530  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
 20531  	c.ctx_ = ctx
 20532  	return c
 20533  }
 20534  
 20535  // Header returns a http.Header that can be modified by the caller to add
 20536  // headers to the request.
 20537  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Header() http.Header {
 20538  	if c.header_ == nil {
 20539  		c.header_ = make(http.Header)
 20540  	}
 20541  	return c.header_
 20542  }
 20543  
 20544  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) {
 20545  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20546  	var body io.Reader = nil
 20547  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaimportusereventsrequest)
 20548  	if err != nil {
 20549  		return nil, err
 20550  	}
 20551  	c.urlParams_.Set("alt", alt)
 20552  	c.urlParams_.Set("prettyPrint", "false")
 20553  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:import")
 20554  	urls += "?" + c.urlParams_.Encode()
 20555  	req, err := http.NewRequest("POST", urls, body)
 20556  	if err != nil {
 20557  		return nil, err
 20558  	}
 20559  	req.Header = reqHeaders
 20560  	googleapi.Expand(req.URL, map[string]string{
 20561  		"parent": c.parent,
 20562  	})
 20563  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20564  }
 20565  
 20566  // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.import" call.
 20567  // Any non-2xx status code is an error. Response headers are in either
 20568  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20569  // returned at all) in error.(*googleapi.Error).Header. Use
 20570  // googleapi.IsNotModified to check whether the returned error was because
 20571  // http.StatusNotModified was returned.
 20572  func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20573  	gensupport.SetOptions(c.urlParams_, opts...)
 20574  	res, err := c.doRequest("json")
 20575  	if res != nil && res.StatusCode == http.StatusNotModified {
 20576  		if res.Body != nil {
 20577  			res.Body.Close()
 20578  		}
 20579  		return nil, gensupport.WrapError(&googleapi.Error{
 20580  			Code:   res.StatusCode,
 20581  			Header: res.Header,
 20582  		})
 20583  	}
 20584  	if err != nil {
 20585  		return nil, err
 20586  	}
 20587  	defer googleapi.CloseBody(res)
 20588  	if err := googleapi.CheckResponse(res); err != nil {
 20589  		return nil, gensupport.WrapError(err)
 20590  	}
 20591  	ret := &GoogleLongrunningOperation{
 20592  		ServerResponse: googleapi.ServerResponse{
 20593  			Header:         res.Header,
 20594  			HTTPStatusCode: res.StatusCode,
 20595  		},
 20596  	}
 20597  	target := &ret
 20598  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20599  		return nil, err
 20600  	}
 20601  	return ret, nil
 20602  }
 20603  
 20604  type ProjectsLocationsCollectionsDataStoresUserEventsWriteCall struct {
 20605  	s                                         *Service
 20606  	parent                                    string
 20607  	googleclouddiscoveryenginev1betauserevent *GoogleCloudDiscoveryengineV1betaUserEvent
 20608  	urlParams_                                gensupport.URLParams
 20609  	ctx_                                      context.Context
 20610  	header_                                   http.Header
 20611  }
 20612  
 20613  // Write: Writes a single user event.
 20614  //
 20615  //   - parent: The parent resource name. If the write user event action is
 20616  //     applied in DataStore level, the format is:
 20617  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 20618  //     s/{data_store}`. If the write user event action is applied in Location
 20619  //     level, for example, the event with Document across multiple DataStore, the
 20620  //     format is: `projects/{project}/locations/{location}`.
 20621  func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Write(parent string, googleclouddiscoveryenginev1betauserevent *GoogleCloudDiscoveryengineV1betaUserEvent) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
 20622  	c := &ProjectsLocationsCollectionsDataStoresUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20623  	c.parent = parent
 20624  	c.googleclouddiscoveryenginev1betauserevent = googleclouddiscoveryenginev1betauserevent
 20625  	return c
 20626  }
 20627  
 20628  // Fields allows partial responses to be retrieved. See
 20629  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20630  // details.
 20631  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
 20632  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20633  	return c
 20634  }
 20635  
 20636  // Context sets the context to be used in this call's Do method.
 20637  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
 20638  	c.ctx_ = ctx
 20639  	return c
 20640  }
 20641  
 20642  // Header returns a http.Header that can be modified by the caller to add
 20643  // headers to the request.
 20644  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Header() http.Header {
 20645  	if c.header_ == nil {
 20646  		c.header_ = make(http.Header)
 20647  	}
 20648  	return c.header_
 20649  }
 20650  
 20651  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
 20652  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20653  	var body io.Reader = nil
 20654  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betauserevent)
 20655  	if err != nil {
 20656  		return nil, err
 20657  	}
 20658  	c.urlParams_.Set("alt", alt)
 20659  	c.urlParams_.Set("prettyPrint", "false")
 20660  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:write")
 20661  	urls += "?" + c.urlParams_.Encode()
 20662  	req, err := http.NewRequest("POST", urls, body)
 20663  	if err != nil {
 20664  		return nil, err
 20665  	}
 20666  	req.Header = reqHeaders
 20667  	googleapi.Expand(req.URL, map[string]string{
 20668  		"parent": c.parent,
 20669  	})
 20670  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20671  }
 20672  
 20673  // Do executes the "discoveryengine.projects.locations.collections.dataStores.userEvents.write" call.
 20674  // Any non-2xx status code is an error. Response headers are in either
 20675  // *GoogleCloudDiscoveryengineV1betaUserEvent.ServerResponse.Header or (if a
 20676  // response was returned at all) in error.(*googleapi.Error).Header. Use
 20677  // googleapi.IsNotModified to check whether the returned error was because
 20678  // http.StatusNotModified was returned.
 20679  func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaUserEvent, error) {
 20680  	gensupport.SetOptions(c.urlParams_, opts...)
 20681  	res, err := c.doRequest("json")
 20682  	if res != nil && res.StatusCode == http.StatusNotModified {
 20683  		if res.Body != nil {
 20684  			res.Body.Close()
 20685  		}
 20686  		return nil, gensupport.WrapError(&googleapi.Error{
 20687  			Code:   res.StatusCode,
 20688  			Header: res.Header,
 20689  		})
 20690  	}
 20691  	if err != nil {
 20692  		return nil, err
 20693  	}
 20694  	defer googleapi.CloseBody(res)
 20695  	if err := googleapi.CheckResponse(res); err != nil {
 20696  		return nil, gensupport.WrapError(err)
 20697  	}
 20698  	ret := &GoogleCloudDiscoveryengineV1betaUserEvent{
 20699  		ServerResponse: googleapi.ServerResponse{
 20700  			Header:         res.Header,
 20701  			HTTPStatusCode: res.StatusCode,
 20702  		},
 20703  	}
 20704  	target := &ret
 20705  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20706  		return nil, err
 20707  	}
 20708  	return ret, nil
 20709  }
 20710  
 20711  type ProjectsLocationsCollectionsEnginesCreateCall struct {
 20712  	s                                      *Service
 20713  	parent                                 string
 20714  	googleclouddiscoveryenginev1betaengine *GoogleCloudDiscoveryengineV1betaEngine
 20715  	urlParams_                             gensupport.URLParams
 20716  	ctx_                                   context.Context
 20717  	header_                                http.Header
 20718  }
 20719  
 20720  // Create: Creates a Engine.
 20721  //
 20722  //   - parent: The parent resource name, such as
 20723  //     `projects/{project}/locations/{location}/collections/{collection}`.
 20724  func (r *ProjectsLocationsCollectionsEnginesService) Create(parent string, googleclouddiscoveryenginev1betaengine *GoogleCloudDiscoveryengineV1betaEngine) *ProjectsLocationsCollectionsEnginesCreateCall {
 20725  	c := &ProjectsLocationsCollectionsEnginesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20726  	c.parent = parent
 20727  	c.googleclouddiscoveryenginev1betaengine = googleclouddiscoveryenginev1betaengine
 20728  	return c
 20729  }
 20730  
 20731  // EngineId sets the optional parameter "engineId": Required. The ID to use for
 20732  // the Engine, which will become the final component of the Engine's resource
 20733  // name. This field must conform to RFC-1034
 20734  // (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
 20735  // characters. Otherwise, an INVALID_ARGUMENT error is returned.
 20736  func (c *ProjectsLocationsCollectionsEnginesCreateCall) EngineId(engineId string) *ProjectsLocationsCollectionsEnginesCreateCall {
 20737  	c.urlParams_.Set("engineId", engineId)
 20738  	return c
 20739  }
 20740  
 20741  // Fields allows partial responses to be retrieved. See
 20742  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20743  // details.
 20744  func (c *ProjectsLocationsCollectionsEnginesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesCreateCall {
 20745  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20746  	return c
 20747  }
 20748  
 20749  // Context sets the context to be used in this call's Do method.
 20750  func (c *ProjectsLocationsCollectionsEnginesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesCreateCall {
 20751  	c.ctx_ = ctx
 20752  	return c
 20753  }
 20754  
 20755  // Header returns a http.Header that can be modified by the caller to add
 20756  // headers to the request.
 20757  func (c *ProjectsLocationsCollectionsEnginesCreateCall) Header() http.Header {
 20758  	if c.header_ == nil {
 20759  		c.header_ = make(http.Header)
 20760  	}
 20761  	return c.header_
 20762  }
 20763  
 20764  func (c *ProjectsLocationsCollectionsEnginesCreateCall) doRequest(alt string) (*http.Response, error) {
 20765  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 20766  	var body io.Reader = nil
 20767  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaengine)
 20768  	if err != nil {
 20769  		return nil, err
 20770  	}
 20771  	c.urlParams_.Set("alt", alt)
 20772  	c.urlParams_.Set("prettyPrint", "false")
 20773  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/engines")
 20774  	urls += "?" + c.urlParams_.Encode()
 20775  	req, err := http.NewRequest("POST", urls, body)
 20776  	if err != nil {
 20777  		return nil, err
 20778  	}
 20779  	req.Header = reqHeaders
 20780  	googleapi.Expand(req.URL, map[string]string{
 20781  		"parent": c.parent,
 20782  	})
 20783  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20784  }
 20785  
 20786  // Do executes the "discoveryengine.projects.locations.collections.engines.create" call.
 20787  // Any non-2xx status code is an error. Response headers are in either
 20788  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20789  // returned at all) in error.(*googleapi.Error).Header. Use
 20790  // googleapi.IsNotModified to check whether the returned error was because
 20791  // http.StatusNotModified was returned.
 20792  func (c *ProjectsLocationsCollectionsEnginesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20793  	gensupport.SetOptions(c.urlParams_, opts...)
 20794  	res, err := c.doRequest("json")
 20795  	if res != nil && res.StatusCode == http.StatusNotModified {
 20796  		if res.Body != nil {
 20797  			res.Body.Close()
 20798  		}
 20799  		return nil, gensupport.WrapError(&googleapi.Error{
 20800  			Code:   res.StatusCode,
 20801  			Header: res.Header,
 20802  		})
 20803  	}
 20804  	if err != nil {
 20805  		return nil, err
 20806  	}
 20807  	defer googleapi.CloseBody(res)
 20808  	if err := googleapi.CheckResponse(res); err != nil {
 20809  		return nil, gensupport.WrapError(err)
 20810  	}
 20811  	ret := &GoogleLongrunningOperation{
 20812  		ServerResponse: googleapi.ServerResponse{
 20813  			Header:         res.Header,
 20814  			HTTPStatusCode: res.StatusCode,
 20815  		},
 20816  	}
 20817  	target := &ret
 20818  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20819  		return nil, err
 20820  	}
 20821  	return ret, nil
 20822  }
 20823  
 20824  type ProjectsLocationsCollectionsEnginesDeleteCall struct {
 20825  	s          *Service
 20826  	name       string
 20827  	urlParams_ gensupport.URLParams
 20828  	ctx_       context.Context
 20829  	header_    http.Header
 20830  }
 20831  
 20832  // Delete: Deletes a Engine.
 20833  //
 20834  //   - name: Full resource name of Engine, such as
 20835  //     `projects/{project}/locations/{location}/collections/{collection_id}/engine
 20836  //     s/{engine_id}`. If the caller does not have permission to delete the
 20837  //     Engine, regardless of whether or not it exists, a PERMISSION_DENIED error
 20838  //     is returned. If the Engine to delete does not exist, a NOT_FOUND error is
 20839  //     returned.
 20840  func (r *ProjectsLocationsCollectionsEnginesService) Delete(name string) *ProjectsLocationsCollectionsEnginesDeleteCall {
 20841  	c := &ProjectsLocationsCollectionsEnginesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20842  	c.name = name
 20843  	return c
 20844  }
 20845  
 20846  // Fields allows partial responses to be retrieved. See
 20847  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20848  // details.
 20849  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesDeleteCall {
 20850  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20851  	return c
 20852  }
 20853  
 20854  // Context sets the context to be used in this call's Do method.
 20855  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesDeleteCall {
 20856  	c.ctx_ = ctx
 20857  	return c
 20858  }
 20859  
 20860  // Header returns a http.Header that can be modified by the caller to add
 20861  // headers to the request.
 20862  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Header() http.Header {
 20863  	if c.header_ == nil {
 20864  		c.header_ = make(http.Header)
 20865  	}
 20866  	return c.header_
 20867  }
 20868  
 20869  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) doRequest(alt string) (*http.Response, error) {
 20870  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20871  	var body io.Reader = nil
 20872  	c.urlParams_.Set("alt", alt)
 20873  	c.urlParams_.Set("prettyPrint", "false")
 20874  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 20875  	urls += "?" + c.urlParams_.Encode()
 20876  	req, err := http.NewRequest("DELETE", urls, body)
 20877  	if err != nil {
 20878  		return nil, err
 20879  	}
 20880  	req.Header = reqHeaders
 20881  	googleapi.Expand(req.URL, map[string]string{
 20882  		"name": c.name,
 20883  	})
 20884  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20885  }
 20886  
 20887  // Do executes the "discoveryengine.projects.locations.collections.engines.delete" call.
 20888  // Any non-2xx status code is an error. Response headers are in either
 20889  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 20890  // returned at all) in error.(*googleapi.Error).Header. Use
 20891  // googleapi.IsNotModified to check whether the returned error was because
 20892  // http.StatusNotModified was returned.
 20893  func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 20894  	gensupport.SetOptions(c.urlParams_, opts...)
 20895  	res, err := c.doRequest("json")
 20896  	if res != nil && res.StatusCode == http.StatusNotModified {
 20897  		if res.Body != nil {
 20898  			res.Body.Close()
 20899  		}
 20900  		return nil, gensupport.WrapError(&googleapi.Error{
 20901  			Code:   res.StatusCode,
 20902  			Header: res.Header,
 20903  		})
 20904  	}
 20905  	if err != nil {
 20906  		return nil, err
 20907  	}
 20908  	defer googleapi.CloseBody(res)
 20909  	if err := googleapi.CheckResponse(res); err != nil {
 20910  		return nil, gensupport.WrapError(err)
 20911  	}
 20912  	ret := &GoogleLongrunningOperation{
 20913  		ServerResponse: googleapi.ServerResponse{
 20914  			Header:         res.Header,
 20915  			HTTPStatusCode: res.StatusCode,
 20916  		},
 20917  	}
 20918  	target := &ret
 20919  	if err := gensupport.DecodeResponse(target, res); err != nil {
 20920  		return nil, err
 20921  	}
 20922  	return ret, nil
 20923  }
 20924  
 20925  type ProjectsLocationsCollectionsEnginesGetCall struct {
 20926  	s            *Service
 20927  	name         string
 20928  	urlParams_   gensupport.URLParams
 20929  	ifNoneMatch_ string
 20930  	ctx_         context.Context
 20931  	header_      http.Header
 20932  }
 20933  
 20934  // Get: Gets a Engine.
 20935  //
 20936  //   - name: Full resource name of Engine, such as
 20937  //     `projects/{project}/locations/{location}/collections/{collection_id}/engine
 20938  //     s/{engine_id}`.
 20939  func (r *ProjectsLocationsCollectionsEnginesService) Get(name string) *ProjectsLocationsCollectionsEnginesGetCall {
 20940  	c := &ProjectsLocationsCollectionsEnginesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 20941  	c.name = name
 20942  	return c
 20943  }
 20944  
 20945  // Fields allows partial responses to be retrieved. See
 20946  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 20947  // details.
 20948  func (c *ProjectsLocationsCollectionsEnginesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesGetCall {
 20949  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 20950  	return c
 20951  }
 20952  
 20953  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 20954  // object's ETag matches the given value. This is useful for getting updates
 20955  // only after the object has changed since the last request.
 20956  func (c *ProjectsLocationsCollectionsEnginesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesGetCall {
 20957  	c.ifNoneMatch_ = entityTag
 20958  	return c
 20959  }
 20960  
 20961  // Context sets the context to be used in this call's Do method.
 20962  func (c *ProjectsLocationsCollectionsEnginesGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesGetCall {
 20963  	c.ctx_ = ctx
 20964  	return c
 20965  }
 20966  
 20967  // Header returns a http.Header that can be modified by the caller to add
 20968  // headers to the request.
 20969  func (c *ProjectsLocationsCollectionsEnginesGetCall) Header() http.Header {
 20970  	if c.header_ == nil {
 20971  		c.header_ = make(http.Header)
 20972  	}
 20973  	return c.header_
 20974  }
 20975  
 20976  func (c *ProjectsLocationsCollectionsEnginesGetCall) doRequest(alt string) (*http.Response, error) {
 20977  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 20978  	if c.ifNoneMatch_ != "" {
 20979  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 20980  	}
 20981  	var body io.Reader = nil
 20982  	c.urlParams_.Set("alt", alt)
 20983  	c.urlParams_.Set("prettyPrint", "false")
 20984  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 20985  	urls += "?" + c.urlParams_.Encode()
 20986  	req, err := http.NewRequest("GET", urls, body)
 20987  	if err != nil {
 20988  		return nil, err
 20989  	}
 20990  	req.Header = reqHeaders
 20991  	googleapi.Expand(req.URL, map[string]string{
 20992  		"name": c.name,
 20993  	})
 20994  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 20995  }
 20996  
 20997  // Do executes the "discoveryengine.projects.locations.collections.engines.get" call.
 20998  // Any non-2xx status code is an error. Response headers are in either
 20999  // *GoogleCloudDiscoveryengineV1betaEngine.ServerResponse.Header or (if a
 21000  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21001  // googleapi.IsNotModified to check whether the returned error was because
 21002  // http.StatusNotModified was returned.
 21003  func (c *ProjectsLocationsCollectionsEnginesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaEngine, error) {
 21004  	gensupport.SetOptions(c.urlParams_, opts...)
 21005  	res, err := c.doRequest("json")
 21006  	if res != nil && res.StatusCode == http.StatusNotModified {
 21007  		if res.Body != nil {
 21008  			res.Body.Close()
 21009  		}
 21010  		return nil, gensupport.WrapError(&googleapi.Error{
 21011  			Code:   res.StatusCode,
 21012  			Header: res.Header,
 21013  		})
 21014  	}
 21015  	if err != nil {
 21016  		return nil, err
 21017  	}
 21018  	defer googleapi.CloseBody(res)
 21019  	if err := googleapi.CheckResponse(res); err != nil {
 21020  		return nil, gensupport.WrapError(err)
 21021  	}
 21022  	ret := &GoogleCloudDiscoveryengineV1betaEngine{
 21023  		ServerResponse: googleapi.ServerResponse{
 21024  			Header:         res.Header,
 21025  			HTTPStatusCode: res.StatusCode,
 21026  		},
 21027  	}
 21028  	target := &ret
 21029  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21030  		return nil, err
 21031  	}
 21032  	return ret, nil
 21033  }
 21034  
 21035  type ProjectsLocationsCollectionsEnginesListCall struct {
 21036  	s            *Service
 21037  	parent       string
 21038  	urlParams_   gensupport.URLParams
 21039  	ifNoneMatch_ string
 21040  	ctx_         context.Context
 21041  	header_      http.Header
 21042  }
 21043  
 21044  // List: Lists all the Engines associated with the project.
 21045  //
 21046  //   - parent: The parent resource name, such as
 21047  //     `projects/{project}/locations/{location}/collections/{collection_id}`.
 21048  func (r *ProjectsLocationsCollectionsEnginesService) List(parent string) *ProjectsLocationsCollectionsEnginesListCall {
 21049  	c := &ProjectsLocationsCollectionsEnginesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21050  	c.parent = parent
 21051  	return c
 21052  }
 21053  
 21054  // Filter sets the optional parameter "filter": Filter by solution type. For
 21055  // example: solution_type=SOLUTION_TYPE_SEARCH
 21056  func (c *ProjectsLocationsCollectionsEnginesListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesListCall {
 21057  	c.urlParams_.Set("filter", filter)
 21058  	return c
 21059  }
 21060  
 21061  // PageSize sets the optional parameter "pageSize": Not supported.
 21062  func (c *ProjectsLocationsCollectionsEnginesListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesListCall {
 21063  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 21064  	return c
 21065  }
 21066  
 21067  // PageToken sets the optional parameter "pageToken": Not supported.
 21068  func (c *ProjectsLocationsCollectionsEnginesListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesListCall {
 21069  	c.urlParams_.Set("pageToken", pageToken)
 21070  	return c
 21071  }
 21072  
 21073  // Fields allows partial responses to be retrieved. See
 21074  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21075  // details.
 21076  func (c *ProjectsLocationsCollectionsEnginesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesListCall {
 21077  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21078  	return c
 21079  }
 21080  
 21081  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21082  // object's ETag matches the given value. This is useful for getting updates
 21083  // only after the object has changed since the last request.
 21084  func (c *ProjectsLocationsCollectionsEnginesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesListCall {
 21085  	c.ifNoneMatch_ = entityTag
 21086  	return c
 21087  }
 21088  
 21089  // Context sets the context to be used in this call's Do method.
 21090  func (c *ProjectsLocationsCollectionsEnginesListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesListCall {
 21091  	c.ctx_ = ctx
 21092  	return c
 21093  }
 21094  
 21095  // Header returns a http.Header that can be modified by the caller to add
 21096  // headers to the request.
 21097  func (c *ProjectsLocationsCollectionsEnginesListCall) Header() http.Header {
 21098  	if c.header_ == nil {
 21099  		c.header_ = make(http.Header)
 21100  	}
 21101  	return c.header_
 21102  }
 21103  
 21104  func (c *ProjectsLocationsCollectionsEnginesListCall) doRequest(alt string) (*http.Response, error) {
 21105  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21106  	if c.ifNoneMatch_ != "" {
 21107  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21108  	}
 21109  	var body io.Reader = nil
 21110  	c.urlParams_.Set("alt", alt)
 21111  	c.urlParams_.Set("prettyPrint", "false")
 21112  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/engines")
 21113  	urls += "?" + c.urlParams_.Encode()
 21114  	req, err := http.NewRequest("GET", urls, body)
 21115  	if err != nil {
 21116  		return nil, err
 21117  	}
 21118  	req.Header = reqHeaders
 21119  	googleapi.Expand(req.URL, map[string]string{
 21120  		"parent": c.parent,
 21121  	})
 21122  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21123  }
 21124  
 21125  // Do executes the "discoveryengine.projects.locations.collections.engines.list" call.
 21126  // Any non-2xx status code is an error. Response headers are in either
 21127  // *GoogleCloudDiscoveryengineV1betaListEnginesResponse.ServerResponse.Header
 21128  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 21129  // Use googleapi.IsNotModified to check whether the returned error was because
 21130  // http.StatusNotModified was returned.
 21131  func (c *ProjectsLocationsCollectionsEnginesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListEnginesResponse, error) {
 21132  	gensupport.SetOptions(c.urlParams_, opts...)
 21133  	res, err := c.doRequest("json")
 21134  	if res != nil && res.StatusCode == http.StatusNotModified {
 21135  		if res.Body != nil {
 21136  			res.Body.Close()
 21137  		}
 21138  		return nil, gensupport.WrapError(&googleapi.Error{
 21139  			Code:   res.StatusCode,
 21140  			Header: res.Header,
 21141  		})
 21142  	}
 21143  	if err != nil {
 21144  		return nil, err
 21145  	}
 21146  	defer googleapi.CloseBody(res)
 21147  	if err := googleapi.CheckResponse(res); err != nil {
 21148  		return nil, gensupport.WrapError(err)
 21149  	}
 21150  	ret := &GoogleCloudDiscoveryengineV1betaListEnginesResponse{
 21151  		ServerResponse: googleapi.ServerResponse{
 21152  			Header:         res.Header,
 21153  			HTTPStatusCode: res.StatusCode,
 21154  		},
 21155  	}
 21156  	target := &ret
 21157  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21158  		return nil, err
 21159  	}
 21160  	return ret, nil
 21161  }
 21162  
 21163  // Pages invokes f for each page of results.
 21164  // A non-nil error returned from f will halt the iteration.
 21165  // The provided context supersedes any context provided to the Context method.
 21166  func (c *ProjectsLocationsCollectionsEnginesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListEnginesResponse) error) error {
 21167  	c.ctx_ = ctx
 21168  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 21169  	for {
 21170  		x, err := c.Do()
 21171  		if err != nil {
 21172  			return err
 21173  		}
 21174  		if err := f(x); err != nil {
 21175  			return err
 21176  		}
 21177  		if x.NextPageToken == "" {
 21178  			return nil
 21179  		}
 21180  		c.PageToken(x.NextPageToken)
 21181  	}
 21182  }
 21183  
 21184  type ProjectsLocationsCollectionsEnginesPatchCall struct {
 21185  	s                                      *Service
 21186  	name                                   string
 21187  	googleclouddiscoveryenginev1betaengine *GoogleCloudDiscoveryengineV1betaEngine
 21188  	urlParams_                             gensupport.URLParams
 21189  	ctx_                                   context.Context
 21190  	header_                                http.Header
 21191  }
 21192  
 21193  // Patch: Updates an Engine
 21194  //
 21195  //   - name: Immutable. The fully qualified resource name of the engine. This
 21196  //     field must be a UTF-8 encoded string with a length limit of 1024
 21197  //     characters. Format:
 21198  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 21199  //     gines/{engine}` engine should be 1-63 characters, and valid characters are
 21200  //     /a-z0-9*/. Otherwise, an INVALID_ARGUMENT error is returned.
 21201  func (r *ProjectsLocationsCollectionsEnginesService) Patch(name string, googleclouddiscoveryenginev1betaengine *GoogleCloudDiscoveryengineV1betaEngine) *ProjectsLocationsCollectionsEnginesPatchCall {
 21202  	c := &ProjectsLocationsCollectionsEnginesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21203  	c.name = name
 21204  	c.googleclouddiscoveryenginev1betaengine = googleclouddiscoveryenginev1betaengine
 21205  	return c
 21206  }
 21207  
 21208  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 21209  // in the provided Engine to update. If an unsupported or unknown field is
 21210  // provided, an INVALID_ARGUMENT error is returned.
 21211  func (c *ProjectsLocationsCollectionsEnginesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesPatchCall {
 21212  	c.urlParams_.Set("updateMask", updateMask)
 21213  	return c
 21214  }
 21215  
 21216  // Fields allows partial responses to be retrieved. See
 21217  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21218  // details.
 21219  func (c *ProjectsLocationsCollectionsEnginesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesPatchCall {
 21220  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21221  	return c
 21222  }
 21223  
 21224  // Context sets the context to be used in this call's Do method.
 21225  func (c *ProjectsLocationsCollectionsEnginesPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesPatchCall {
 21226  	c.ctx_ = ctx
 21227  	return c
 21228  }
 21229  
 21230  // Header returns a http.Header that can be modified by the caller to add
 21231  // headers to the request.
 21232  func (c *ProjectsLocationsCollectionsEnginesPatchCall) Header() http.Header {
 21233  	if c.header_ == nil {
 21234  		c.header_ = make(http.Header)
 21235  	}
 21236  	return c.header_
 21237  }
 21238  
 21239  func (c *ProjectsLocationsCollectionsEnginesPatchCall) doRequest(alt string) (*http.Response, error) {
 21240  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21241  	var body io.Reader = nil
 21242  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaengine)
 21243  	if err != nil {
 21244  		return nil, err
 21245  	}
 21246  	c.urlParams_.Set("alt", alt)
 21247  	c.urlParams_.Set("prettyPrint", "false")
 21248  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 21249  	urls += "?" + c.urlParams_.Encode()
 21250  	req, err := http.NewRequest("PATCH", urls, body)
 21251  	if err != nil {
 21252  		return nil, err
 21253  	}
 21254  	req.Header = reqHeaders
 21255  	googleapi.Expand(req.URL, map[string]string{
 21256  		"name": c.name,
 21257  	})
 21258  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21259  }
 21260  
 21261  // Do executes the "discoveryengine.projects.locations.collections.engines.patch" call.
 21262  // Any non-2xx status code is an error. Response headers are in either
 21263  // *GoogleCloudDiscoveryengineV1betaEngine.ServerResponse.Header or (if a
 21264  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21265  // googleapi.IsNotModified to check whether the returned error was because
 21266  // http.StatusNotModified was returned.
 21267  func (c *ProjectsLocationsCollectionsEnginesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaEngine, error) {
 21268  	gensupport.SetOptions(c.urlParams_, opts...)
 21269  	res, err := c.doRequest("json")
 21270  	if res != nil && res.StatusCode == http.StatusNotModified {
 21271  		if res.Body != nil {
 21272  			res.Body.Close()
 21273  		}
 21274  		return nil, gensupport.WrapError(&googleapi.Error{
 21275  			Code:   res.StatusCode,
 21276  			Header: res.Header,
 21277  		})
 21278  	}
 21279  	if err != nil {
 21280  		return nil, err
 21281  	}
 21282  	defer googleapi.CloseBody(res)
 21283  	if err := googleapi.CheckResponse(res); err != nil {
 21284  		return nil, gensupport.WrapError(err)
 21285  	}
 21286  	ret := &GoogleCloudDiscoveryengineV1betaEngine{
 21287  		ServerResponse: googleapi.ServerResponse{
 21288  			Header:         res.Header,
 21289  			HTTPStatusCode: res.StatusCode,
 21290  		},
 21291  	}
 21292  	target := &ret
 21293  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21294  		return nil, err
 21295  	}
 21296  	return ret, nil
 21297  }
 21298  
 21299  type ProjectsLocationsCollectionsEnginesPauseCall struct {
 21300  	s                                                  *Service
 21301  	name                                               string
 21302  	googleclouddiscoveryenginev1betapauseenginerequest *GoogleCloudDiscoveryengineV1betaPauseEngineRequest
 21303  	urlParams_                                         gensupport.URLParams
 21304  	ctx_                                               context.Context
 21305  	header_                                            http.Header
 21306  }
 21307  
 21308  // Pause: Pauses the training of an existing engine. Only applicable if
 21309  // SolutionType is SOLUTION_TYPE_RECOMMENDATION.
 21310  //
 21311  //   - name: The name of the engine to pause. Format:
 21312  //     `projects/{project_number}/locations/{location_id}/collections/{collection_
 21313  //     id}/engines/{engine_id}`.
 21314  func (r *ProjectsLocationsCollectionsEnginesService) Pause(name string, googleclouddiscoveryenginev1betapauseenginerequest *GoogleCloudDiscoveryengineV1betaPauseEngineRequest) *ProjectsLocationsCollectionsEnginesPauseCall {
 21315  	c := &ProjectsLocationsCollectionsEnginesPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21316  	c.name = name
 21317  	c.googleclouddiscoveryenginev1betapauseenginerequest = googleclouddiscoveryenginev1betapauseenginerequest
 21318  	return c
 21319  }
 21320  
 21321  // Fields allows partial responses to be retrieved. See
 21322  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21323  // details.
 21324  func (c *ProjectsLocationsCollectionsEnginesPauseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesPauseCall {
 21325  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21326  	return c
 21327  }
 21328  
 21329  // Context sets the context to be used in this call's Do method.
 21330  func (c *ProjectsLocationsCollectionsEnginesPauseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesPauseCall {
 21331  	c.ctx_ = ctx
 21332  	return c
 21333  }
 21334  
 21335  // Header returns a http.Header that can be modified by the caller to add
 21336  // headers to the request.
 21337  func (c *ProjectsLocationsCollectionsEnginesPauseCall) Header() http.Header {
 21338  	if c.header_ == nil {
 21339  		c.header_ = make(http.Header)
 21340  	}
 21341  	return c.header_
 21342  }
 21343  
 21344  func (c *ProjectsLocationsCollectionsEnginesPauseCall) doRequest(alt string) (*http.Response, error) {
 21345  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21346  	var body io.Reader = nil
 21347  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betapauseenginerequest)
 21348  	if err != nil {
 21349  		return nil, err
 21350  	}
 21351  	c.urlParams_.Set("alt", alt)
 21352  	c.urlParams_.Set("prettyPrint", "false")
 21353  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:pause")
 21354  	urls += "?" + c.urlParams_.Encode()
 21355  	req, err := http.NewRequest("POST", urls, body)
 21356  	if err != nil {
 21357  		return nil, err
 21358  	}
 21359  	req.Header = reqHeaders
 21360  	googleapi.Expand(req.URL, map[string]string{
 21361  		"name": c.name,
 21362  	})
 21363  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21364  }
 21365  
 21366  // Do executes the "discoveryengine.projects.locations.collections.engines.pause" call.
 21367  // Any non-2xx status code is an error. Response headers are in either
 21368  // *GoogleCloudDiscoveryengineV1betaEngine.ServerResponse.Header or (if a
 21369  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21370  // googleapi.IsNotModified to check whether the returned error was because
 21371  // http.StatusNotModified was returned.
 21372  func (c *ProjectsLocationsCollectionsEnginesPauseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaEngine, error) {
 21373  	gensupport.SetOptions(c.urlParams_, opts...)
 21374  	res, err := c.doRequest("json")
 21375  	if res != nil && res.StatusCode == http.StatusNotModified {
 21376  		if res.Body != nil {
 21377  			res.Body.Close()
 21378  		}
 21379  		return nil, gensupport.WrapError(&googleapi.Error{
 21380  			Code:   res.StatusCode,
 21381  			Header: res.Header,
 21382  		})
 21383  	}
 21384  	if err != nil {
 21385  		return nil, err
 21386  	}
 21387  	defer googleapi.CloseBody(res)
 21388  	if err := googleapi.CheckResponse(res); err != nil {
 21389  		return nil, gensupport.WrapError(err)
 21390  	}
 21391  	ret := &GoogleCloudDiscoveryengineV1betaEngine{
 21392  		ServerResponse: googleapi.ServerResponse{
 21393  			Header:         res.Header,
 21394  			HTTPStatusCode: res.StatusCode,
 21395  		},
 21396  	}
 21397  	target := &ret
 21398  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21399  		return nil, err
 21400  	}
 21401  	return ret, nil
 21402  }
 21403  
 21404  type ProjectsLocationsCollectionsEnginesResumeCall struct {
 21405  	s                                                   *Service
 21406  	name                                                string
 21407  	googleclouddiscoveryenginev1betaresumeenginerequest *GoogleCloudDiscoveryengineV1betaResumeEngineRequest
 21408  	urlParams_                                          gensupport.URLParams
 21409  	ctx_                                                context.Context
 21410  	header_                                             http.Header
 21411  }
 21412  
 21413  // Resume: Resumes the training of an existing engine. Only applicable if
 21414  // SolutionType is SOLUTION_TYPE_RECOMMENDATION.
 21415  //
 21416  //   - name: The name of the engine to resume. Format:
 21417  //     `projects/{project_number}/locations/{location_id}/collections/{collection_
 21418  //     id}/engines/{engine_id}`.
 21419  func (r *ProjectsLocationsCollectionsEnginesService) Resume(name string, googleclouddiscoveryenginev1betaresumeenginerequest *GoogleCloudDiscoveryengineV1betaResumeEngineRequest) *ProjectsLocationsCollectionsEnginesResumeCall {
 21420  	c := &ProjectsLocationsCollectionsEnginesResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21421  	c.name = name
 21422  	c.googleclouddiscoveryenginev1betaresumeenginerequest = googleclouddiscoveryenginev1betaresumeenginerequest
 21423  	return c
 21424  }
 21425  
 21426  // Fields allows partial responses to be retrieved. See
 21427  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21428  // details.
 21429  func (c *ProjectsLocationsCollectionsEnginesResumeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesResumeCall {
 21430  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21431  	return c
 21432  }
 21433  
 21434  // Context sets the context to be used in this call's Do method.
 21435  func (c *ProjectsLocationsCollectionsEnginesResumeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesResumeCall {
 21436  	c.ctx_ = ctx
 21437  	return c
 21438  }
 21439  
 21440  // Header returns a http.Header that can be modified by the caller to add
 21441  // headers to the request.
 21442  func (c *ProjectsLocationsCollectionsEnginesResumeCall) Header() http.Header {
 21443  	if c.header_ == nil {
 21444  		c.header_ = make(http.Header)
 21445  	}
 21446  	return c.header_
 21447  }
 21448  
 21449  func (c *ProjectsLocationsCollectionsEnginesResumeCall) doRequest(alt string) (*http.Response, error) {
 21450  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21451  	var body io.Reader = nil
 21452  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaresumeenginerequest)
 21453  	if err != nil {
 21454  		return nil, err
 21455  	}
 21456  	c.urlParams_.Set("alt", alt)
 21457  	c.urlParams_.Set("prettyPrint", "false")
 21458  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:resume")
 21459  	urls += "?" + c.urlParams_.Encode()
 21460  	req, err := http.NewRequest("POST", urls, body)
 21461  	if err != nil {
 21462  		return nil, err
 21463  	}
 21464  	req.Header = reqHeaders
 21465  	googleapi.Expand(req.URL, map[string]string{
 21466  		"name": c.name,
 21467  	})
 21468  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21469  }
 21470  
 21471  // Do executes the "discoveryengine.projects.locations.collections.engines.resume" call.
 21472  // Any non-2xx status code is an error. Response headers are in either
 21473  // *GoogleCloudDiscoveryengineV1betaEngine.ServerResponse.Header or (if a
 21474  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21475  // googleapi.IsNotModified to check whether the returned error was because
 21476  // http.StatusNotModified was returned.
 21477  func (c *ProjectsLocationsCollectionsEnginesResumeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaEngine, error) {
 21478  	gensupport.SetOptions(c.urlParams_, opts...)
 21479  	res, err := c.doRequest("json")
 21480  	if res != nil && res.StatusCode == http.StatusNotModified {
 21481  		if res.Body != nil {
 21482  			res.Body.Close()
 21483  		}
 21484  		return nil, gensupport.WrapError(&googleapi.Error{
 21485  			Code:   res.StatusCode,
 21486  			Header: res.Header,
 21487  		})
 21488  	}
 21489  	if err != nil {
 21490  		return nil, err
 21491  	}
 21492  	defer googleapi.CloseBody(res)
 21493  	if err := googleapi.CheckResponse(res); err != nil {
 21494  		return nil, gensupport.WrapError(err)
 21495  	}
 21496  	ret := &GoogleCloudDiscoveryengineV1betaEngine{
 21497  		ServerResponse: googleapi.ServerResponse{
 21498  			Header:         res.Header,
 21499  			HTTPStatusCode: res.StatusCode,
 21500  		},
 21501  	}
 21502  	target := &ret
 21503  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21504  		return nil, err
 21505  	}
 21506  	return ret, nil
 21507  }
 21508  
 21509  type ProjectsLocationsCollectionsEnginesTuneCall struct {
 21510  	s                                                 *Service
 21511  	name                                              string
 21512  	googleclouddiscoveryenginev1betatuneenginerequest *GoogleCloudDiscoveryengineV1betaTuneEngineRequest
 21513  	urlParams_                                        gensupport.URLParams
 21514  	ctx_                                              context.Context
 21515  	header_                                           http.Header
 21516  }
 21517  
 21518  // Tune: Tunes an existing engine. Only applicable if SolutionType is
 21519  // SOLUTION_TYPE_RECOMMENDATION.
 21520  //
 21521  //   - name: The resource name of the engine to tune. Format:
 21522  //     `projects/{project_number}/locations/{location_id}/collections/{collection_
 21523  //     id}/engines/{engine_id}`.
 21524  func (r *ProjectsLocationsCollectionsEnginesService) Tune(name string, googleclouddiscoveryenginev1betatuneenginerequest *GoogleCloudDiscoveryengineV1betaTuneEngineRequest) *ProjectsLocationsCollectionsEnginesTuneCall {
 21525  	c := &ProjectsLocationsCollectionsEnginesTuneCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21526  	c.name = name
 21527  	c.googleclouddiscoveryenginev1betatuneenginerequest = googleclouddiscoveryenginev1betatuneenginerequest
 21528  	return c
 21529  }
 21530  
 21531  // Fields allows partial responses to be retrieved. See
 21532  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21533  // details.
 21534  func (c *ProjectsLocationsCollectionsEnginesTuneCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesTuneCall {
 21535  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21536  	return c
 21537  }
 21538  
 21539  // Context sets the context to be used in this call's Do method.
 21540  func (c *ProjectsLocationsCollectionsEnginesTuneCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesTuneCall {
 21541  	c.ctx_ = ctx
 21542  	return c
 21543  }
 21544  
 21545  // Header returns a http.Header that can be modified by the caller to add
 21546  // headers to the request.
 21547  func (c *ProjectsLocationsCollectionsEnginesTuneCall) Header() http.Header {
 21548  	if c.header_ == nil {
 21549  		c.header_ = make(http.Header)
 21550  	}
 21551  	return c.header_
 21552  }
 21553  
 21554  func (c *ProjectsLocationsCollectionsEnginesTuneCall) doRequest(alt string) (*http.Response, error) {
 21555  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21556  	var body io.Reader = nil
 21557  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatuneenginerequest)
 21558  	if err != nil {
 21559  		return nil, err
 21560  	}
 21561  	c.urlParams_.Set("alt", alt)
 21562  	c.urlParams_.Set("prettyPrint", "false")
 21563  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:tune")
 21564  	urls += "?" + c.urlParams_.Encode()
 21565  	req, err := http.NewRequest("POST", urls, body)
 21566  	if err != nil {
 21567  		return nil, err
 21568  	}
 21569  	req.Header = reqHeaders
 21570  	googleapi.Expand(req.URL, map[string]string{
 21571  		"name": c.name,
 21572  	})
 21573  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21574  }
 21575  
 21576  // Do executes the "discoveryengine.projects.locations.collections.engines.tune" call.
 21577  // Any non-2xx status code is an error. Response headers are in either
 21578  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 21579  // returned at all) in error.(*googleapi.Error).Header. Use
 21580  // googleapi.IsNotModified to check whether the returned error was because
 21581  // http.StatusNotModified was returned.
 21582  func (c *ProjectsLocationsCollectionsEnginesTuneCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 21583  	gensupport.SetOptions(c.urlParams_, opts...)
 21584  	res, err := c.doRequest("json")
 21585  	if res != nil && res.StatusCode == http.StatusNotModified {
 21586  		if res.Body != nil {
 21587  			res.Body.Close()
 21588  		}
 21589  		return nil, gensupport.WrapError(&googleapi.Error{
 21590  			Code:   res.StatusCode,
 21591  			Header: res.Header,
 21592  		})
 21593  	}
 21594  	if err != nil {
 21595  		return nil, err
 21596  	}
 21597  	defer googleapi.CloseBody(res)
 21598  	if err := googleapi.CheckResponse(res); err != nil {
 21599  		return nil, gensupport.WrapError(err)
 21600  	}
 21601  	ret := &GoogleLongrunningOperation{
 21602  		ServerResponse: googleapi.ServerResponse{
 21603  			Header:         res.Header,
 21604  			HTTPStatusCode: res.StatusCode,
 21605  		},
 21606  	}
 21607  	target := &ret
 21608  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21609  		return nil, err
 21610  	}
 21611  	return ret, nil
 21612  }
 21613  
 21614  type ProjectsLocationsCollectionsEnginesConversationsConverseCall struct {
 21615  	s                                                           *Service
 21616  	name                                                        string
 21617  	googleclouddiscoveryenginev1betaconverseconversationrequest *GoogleCloudDiscoveryengineV1betaConverseConversationRequest
 21618  	urlParams_                                                  gensupport.URLParams
 21619  	ctx_                                                        context.Context
 21620  	header_                                                     http.Header
 21621  }
 21622  
 21623  // Converse: Converses a conversation.
 21624  //
 21625  //   - name: The resource name of the Conversation to get. Format:
 21626  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 21627  //     /dataStores/{data_store_id}/conversations/{conversation_id}`. Use
 21628  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 21629  //     /dataStores/{data_store_id}/conversations/-` to activate auto session
 21630  //     mode, which automatically creates a new conversation inside a
 21631  //     ConverseConversation session.
 21632  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Converse(name string, googleclouddiscoveryenginev1betaconverseconversationrequest *GoogleCloudDiscoveryengineV1betaConverseConversationRequest) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
 21633  	c := &ProjectsLocationsCollectionsEnginesConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21634  	c.name = name
 21635  	c.googleclouddiscoveryenginev1betaconverseconversationrequest = googleclouddiscoveryenginev1betaconverseconversationrequest
 21636  	return c
 21637  }
 21638  
 21639  // Fields allows partial responses to be retrieved. See
 21640  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21641  // details.
 21642  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
 21643  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21644  	return c
 21645  }
 21646  
 21647  // Context sets the context to be used in this call's Do method.
 21648  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
 21649  	c.ctx_ = ctx
 21650  	return c
 21651  }
 21652  
 21653  // Header returns a http.Header that can be modified by the caller to add
 21654  // headers to the request.
 21655  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Header() http.Header {
 21656  	if c.header_ == nil {
 21657  		c.header_ = make(http.Header)
 21658  	}
 21659  	return c.header_
 21660  }
 21661  
 21662  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
 21663  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21664  	var body io.Reader = nil
 21665  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconverseconversationrequest)
 21666  	if err != nil {
 21667  		return nil, err
 21668  	}
 21669  	c.urlParams_.Set("alt", alt)
 21670  	c.urlParams_.Set("prettyPrint", "false")
 21671  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:converse")
 21672  	urls += "?" + c.urlParams_.Encode()
 21673  	req, err := http.NewRequest("POST", urls, body)
 21674  	if err != nil {
 21675  		return nil, err
 21676  	}
 21677  	req.Header = reqHeaders
 21678  	googleapi.Expand(req.URL, map[string]string{
 21679  		"name": c.name,
 21680  	})
 21681  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21682  }
 21683  
 21684  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.converse" call.
 21685  // Any non-2xx status code is an error. Response headers are in either
 21686  // *GoogleCloudDiscoveryengineV1betaConverseConversationResponse.ServerResponse.
 21687  // Header or (if a response was returned at all) in
 21688  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 21689  // whether the returned error was because http.StatusNotModified was returned.
 21690  func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConverseConversationResponse, error) {
 21691  	gensupport.SetOptions(c.urlParams_, opts...)
 21692  	res, err := c.doRequest("json")
 21693  	if res != nil && res.StatusCode == http.StatusNotModified {
 21694  		if res.Body != nil {
 21695  			res.Body.Close()
 21696  		}
 21697  		return nil, gensupport.WrapError(&googleapi.Error{
 21698  			Code:   res.StatusCode,
 21699  			Header: res.Header,
 21700  		})
 21701  	}
 21702  	if err != nil {
 21703  		return nil, err
 21704  	}
 21705  	defer googleapi.CloseBody(res)
 21706  	if err := googleapi.CheckResponse(res); err != nil {
 21707  		return nil, gensupport.WrapError(err)
 21708  	}
 21709  	ret := &GoogleCloudDiscoveryengineV1betaConverseConversationResponse{
 21710  		ServerResponse: googleapi.ServerResponse{
 21711  			Header:         res.Header,
 21712  			HTTPStatusCode: res.StatusCode,
 21713  		},
 21714  	}
 21715  	target := &ret
 21716  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21717  		return nil, err
 21718  	}
 21719  	return ret, nil
 21720  }
 21721  
 21722  type ProjectsLocationsCollectionsEnginesConversationsCreateCall struct {
 21723  	s                                            *Service
 21724  	parent                                       string
 21725  	googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation
 21726  	urlParams_                                   gensupport.URLParams
 21727  	ctx_                                         context.Context
 21728  	header_                                      http.Header
 21729  }
 21730  
 21731  // Create: Creates a Conversation. If the Conversation to create already
 21732  // exists, an ALREADY_EXISTS error is returned.
 21733  //
 21734  //   - parent: Full resource name of parent data store. Format:
 21735  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 21736  //     /dataStores/{data_store_id}`.
 21737  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Create(parent string, googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
 21738  	c := &ProjectsLocationsCollectionsEnginesConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21739  	c.parent = parent
 21740  	c.googleclouddiscoveryenginev1betaconversation = googleclouddiscoveryenginev1betaconversation
 21741  	return c
 21742  }
 21743  
 21744  // Fields allows partial responses to be retrieved. See
 21745  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21746  // details.
 21747  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
 21748  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21749  	return c
 21750  }
 21751  
 21752  // Context sets the context to be used in this call's Do method.
 21753  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
 21754  	c.ctx_ = ctx
 21755  	return c
 21756  }
 21757  
 21758  // Header returns a http.Header that can be modified by the caller to add
 21759  // headers to the request.
 21760  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Header() http.Header {
 21761  	if c.header_ == nil {
 21762  		c.header_ = make(http.Header)
 21763  	}
 21764  	return c.header_
 21765  }
 21766  
 21767  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 21768  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 21769  	var body io.Reader = nil
 21770  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconversation)
 21771  	if err != nil {
 21772  		return nil, err
 21773  	}
 21774  	c.urlParams_.Set("alt", alt)
 21775  	c.urlParams_.Set("prettyPrint", "false")
 21776  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/conversations")
 21777  	urls += "?" + c.urlParams_.Encode()
 21778  	req, err := http.NewRequest("POST", urls, body)
 21779  	if err != nil {
 21780  		return nil, err
 21781  	}
 21782  	req.Header = reqHeaders
 21783  	googleapi.Expand(req.URL, map[string]string{
 21784  		"parent": c.parent,
 21785  	})
 21786  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21787  }
 21788  
 21789  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.create" call.
 21790  // Any non-2xx status code is an error. Response headers are in either
 21791  // *GoogleCloudDiscoveryengineV1betaConversation.ServerResponse.Header or (if a
 21792  // response was returned at all) in error.(*googleapi.Error).Header. Use
 21793  // googleapi.IsNotModified to check whether the returned error was because
 21794  // http.StatusNotModified was returned.
 21795  func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
 21796  	gensupport.SetOptions(c.urlParams_, opts...)
 21797  	res, err := c.doRequest("json")
 21798  	if res != nil && res.StatusCode == http.StatusNotModified {
 21799  		if res.Body != nil {
 21800  			res.Body.Close()
 21801  		}
 21802  		return nil, gensupport.WrapError(&googleapi.Error{
 21803  			Code:   res.StatusCode,
 21804  			Header: res.Header,
 21805  		})
 21806  	}
 21807  	if err != nil {
 21808  		return nil, err
 21809  	}
 21810  	defer googleapi.CloseBody(res)
 21811  	if err := googleapi.CheckResponse(res); err != nil {
 21812  		return nil, gensupport.WrapError(err)
 21813  	}
 21814  	ret := &GoogleCloudDiscoveryengineV1betaConversation{
 21815  		ServerResponse: googleapi.ServerResponse{
 21816  			Header:         res.Header,
 21817  			HTTPStatusCode: res.StatusCode,
 21818  		},
 21819  	}
 21820  	target := &ret
 21821  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21822  		return nil, err
 21823  	}
 21824  	return ret, nil
 21825  }
 21826  
 21827  type ProjectsLocationsCollectionsEnginesConversationsDeleteCall struct {
 21828  	s          *Service
 21829  	name       string
 21830  	urlParams_ gensupport.URLParams
 21831  	ctx_       context.Context
 21832  	header_    http.Header
 21833  }
 21834  
 21835  // Delete: Deletes a Conversation. If the Conversation to delete does not
 21836  // exist, a NOT_FOUND error is returned.
 21837  //
 21838  //   - name: The resource name of the Conversation to delete. Format:
 21839  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 21840  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 21841  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Delete(name string) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
 21842  	c := &ProjectsLocationsCollectionsEnginesConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21843  	c.name = name
 21844  	return c
 21845  }
 21846  
 21847  // Fields allows partial responses to be retrieved. See
 21848  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21849  // details.
 21850  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
 21851  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21852  	return c
 21853  }
 21854  
 21855  // Context sets the context to be used in this call's Do method.
 21856  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
 21857  	c.ctx_ = ctx
 21858  	return c
 21859  }
 21860  
 21861  // Header returns a http.Header that can be modified by the caller to add
 21862  // headers to the request.
 21863  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Header() http.Header {
 21864  	if c.header_ == nil {
 21865  		c.header_ = make(http.Header)
 21866  	}
 21867  	return c.header_
 21868  }
 21869  
 21870  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 21871  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21872  	var body io.Reader = nil
 21873  	c.urlParams_.Set("alt", alt)
 21874  	c.urlParams_.Set("prettyPrint", "false")
 21875  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 21876  	urls += "?" + c.urlParams_.Encode()
 21877  	req, err := http.NewRequest("DELETE", urls, body)
 21878  	if err != nil {
 21879  		return nil, err
 21880  	}
 21881  	req.Header = reqHeaders
 21882  	googleapi.Expand(req.URL, map[string]string{
 21883  		"name": c.name,
 21884  	})
 21885  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21886  }
 21887  
 21888  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.delete" call.
 21889  // Any non-2xx status code is an error. Response headers are in either
 21890  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 21891  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 21892  // check whether the returned error was because http.StatusNotModified was
 21893  // returned.
 21894  func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 21895  	gensupport.SetOptions(c.urlParams_, opts...)
 21896  	res, err := c.doRequest("json")
 21897  	if res != nil && res.StatusCode == http.StatusNotModified {
 21898  		if res.Body != nil {
 21899  			res.Body.Close()
 21900  		}
 21901  		return nil, gensupport.WrapError(&googleapi.Error{
 21902  			Code:   res.StatusCode,
 21903  			Header: res.Header,
 21904  		})
 21905  	}
 21906  	if err != nil {
 21907  		return nil, err
 21908  	}
 21909  	defer googleapi.CloseBody(res)
 21910  	if err := googleapi.CheckResponse(res); err != nil {
 21911  		return nil, gensupport.WrapError(err)
 21912  	}
 21913  	ret := &GoogleProtobufEmpty{
 21914  		ServerResponse: googleapi.ServerResponse{
 21915  			Header:         res.Header,
 21916  			HTTPStatusCode: res.StatusCode,
 21917  		},
 21918  	}
 21919  	target := &ret
 21920  	if err := gensupport.DecodeResponse(target, res); err != nil {
 21921  		return nil, err
 21922  	}
 21923  	return ret, nil
 21924  }
 21925  
 21926  type ProjectsLocationsCollectionsEnginesConversationsGetCall struct {
 21927  	s            *Service
 21928  	name         string
 21929  	urlParams_   gensupport.URLParams
 21930  	ifNoneMatch_ string
 21931  	ctx_         context.Context
 21932  	header_      http.Header
 21933  }
 21934  
 21935  // Get: Gets a Conversation.
 21936  //
 21937  //   - name: The resource name of the Conversation to get. Format:
 21938  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 21939  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 21940  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Get(name string) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
 21941  	c := &ProjectsLocationsCollectionsEnginesConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 21942  	c.name = name
 21943  	return c
 21944  }
 21945  
 21946  // Fields allows partial responses to be retrieved. See
 21947  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 21948  // details.
 21949  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
 21950  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 21951  	return c
 21952  }
 21953  
 21954  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 21955  // object's ETag matches the given value. This is useful for getting updates
 21956  // only after the object has changed since the last request.
 21957  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
 21958  	c.ifNoneMatch_ = entityTag
 21959  	return c
 21960  }
 21961  
 21962  // Context sets the context to be used in this call's Do method.
 21963  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
 21964  	c.ctx_ = ctx
 21965  	return c
 21966  }
 21967  
 21968  // Header returns a http.Header that can be modified by the caller to add
 21969  // headers to the request.
 21970  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Header() http.Header {
 21971  	if c.header_ == nil {
 21972  		c.header_ = make(http.Header)
 21973  	}
 21974  	return c.header_
 21975  }
 21976  
 21977  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 21978  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 21979  	if c.ifNoneMatch_ != "" {
 21980  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 21981  	}
 21982  	var body io.Reader = nil
 21983  	c.urlParams_.Set("alt", alt)
 21984  	c.urlParams_.Set("prettyPrint", "false")
 21985  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 21986  	urls += "?" + c.urlParams_.Encode()
 21987  	req, err := http.NewRequest("GET", urls, body)
 21988  	if err != nil {
 21989  		return nil, err
 21990  	}
 21991  	req.Header = reqHeaders
 21992  	googleapi.Expand(req.URL, map[string]string{
 21993  		"name": c.name,
 21994  	})
 21995  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 21996  }
 21997  
 21998  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.get" call.
 21999  // Any non-2xx status code is an error. Response headers are in either
 22000  // *GoogleCloudDiscoveryengineV1betaConversation.ServerResponse.Header or (if a
 22001  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22002  // googleapi.IsNotModified to check whether the returned error was because
 22003  // http.StatusNotModified was returned.
 22004  func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
 22005  	gensupport.SetOptions(c.urlParams_, opts...)
 22006  	res, err := c.doRequest("json")
 22007  	if res != nil && res.StatusCode == http.StatusNotModified {
 22008  		if res.Body != nil {
 22009  			res.Body.Close()
 22010  		}
 22011  		return nil, gensupport.WrapError(&googleapi.Error{
 22012  			Code:   res.StatusCode,
 22013  			Header: res.Header,
 22014  		})
 22015  	}
 22016  	if err != nil {
 22017  		return nil, err
 22018  	}
 22019  	defer googleapi.CloseBody(res)
 22020  	if err := googleapi.CheckResponse(res); err != nil {
 22021  		return nil, gensupport.WrapError(err)
 22022  	}
 22023  	ret := &GoogleCloudDiscoveryengineV1betaConversation{
 22024  		ServerResponse: googleapi.ServerResponse{
 22025  			Header:         res.Header,
 22026  			HTTPStatusCode: res.StatusCode,
 22027  		},
 22028  	}
 22029  	target := &ret
 22030  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22031  		return nil, err
 22032  	}
 22033  	return ret, nil
 22034  }
 22035  
 22036  type ProjectsLocationsCollectionsEnginesConversationsListCall struct {
 22037  	s            *Service
 22038  	parent       string
 22039  	urlParams_   gensupport.URLParams
 22040  	ifNoneMatch_ string
 22041  	ctx_         context.Context
 22042  	header_      http.Header
 22043  }
 22044  
 22045  // List: Lists all Conversations by their parent DataStore.
 22046  //
 22047  //   - parent: The data store resource name. Format:
 22048  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 22049  //     /dataStores/{data_store_id}`.
 22050  func (r *ProjectsLocationsCollectionsEnginesConversationsService) List(parent string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 22051  	c := &ProjectsLocationsCollectionsEnginesConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22052  	c.parent = parent
 22053  	return c
 22054  }
 22055  
 22056  // Filter sets the optional parameter "filter": A filter to apply on the list
 22057  // results. The supported features are: user_pseudo_id, state. Example:
 22058  // "user_pseudo_id = some_id"
 22059  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 22060  	c.urlParams_.Set("filter", filter)
 22061  	return c
 22062  }
 22063  
 22064  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 22065  // fields to order by, sorted in ascending order. Use "desc" after a field name
 22066  // for descending. Supported fields: * `update_time` * `create_time` *
 22067  // `conversation_name` Example: "update_time desc" "create_time"
 22068  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 22069  	c.urlParams_.Set("orderBy", orderBy)
 22070  	return c
 22071  }
 22072  
 22073  // PageSize sets the optional parameter "pageSize": Maximum number of results
 22074  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 22075  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 22076  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22077  	return c
 22078  }
 22079  
 22080  // PageToken sets the optional parameter "pageToken": A page token, received
 22081  // from a previous `ListConversations` call. Provide this to retrieve the
 22082  // subsequent page.
 22083  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 22084  	c.urlParams_.Set("pageToken", pageToken)
 22085  	return c
 22086  }
 22087  
 22088  // Fields allows partial responses to be retrieved. See
 22089  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22090  // details.
 22091  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 22092  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22093  	return c
 22094  }
 22095  
 22096  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22097  // object's ETag matches the given value. This is useful for getting updates
 22098  // only after the object has changed since the last request.
 22099  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 22100  	c.ifNoneMatch_ = entityTag
 22101  	return c
 22102  }
 22103  
 22104  // Context sets the context to be used in this call's Do method.
 22105  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsListCall {
 22106  	c.ctx_ = ctx
 22107  	return c
 22108  }
 22109  
 22110  // Header returns a http.Header that can be modified by the caller to add
 22111  // headers to the request.
 22112  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Header() http.Header {
 22113  	if c.header_ == nil {
 22114  		c.header_ = make(http.Header)
 22115  	}
 22116  	return c.header_
 22117  }
 22118  
 22119  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) doRequest(alt string) (*http.Response, error) {
 22120  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22121  	if c.ifNoneMatch_ != "" {
 22122  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22123  	}
 22124  	var body io.Reader = nil
 22125  	c.urlParams_.Set("alt", alt)
 22126  	c.urlParams_.Set("prettyPrint", "false")
 22127  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/conversations")
 22128  	urls += "?" + c.urlParams_.Encode()
 22129  	req, err := http.NewRequest("GET", urls, body)
 22130  	if err != nil {
 22131  		return nil, err
 22132  	}
 22133  	req.Header = reqHeaders
 22134  	googleapi.Expand(req.URL, map[string]string{
 22135  		"parent": c.parent,
 22136  	})
 22137  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22138  }
 22139  
 22140  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.list" call.
 22141  // Any non-2xx status code is an error. Response headers are in either
 22142  // *GoogleCloudDiscoveryengineV1betaListConversationsResponse.ServerResponse.Hea
 22143  // der or (if a response was returned at all) in
 22144  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 22145  // whether the returned error was because http.StatusNotModified was returned.
 22146  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListConversationsResponse, error) {
 22147  	gensupport.SetOptions(c.urlParams_, opts...)
 22148  	res, err := c.doRequest("json")
 22149  	if res != nil && res.StatusCode == http.StatusNotModified {
 22150  		if res.Body != nil {
 22151  			res.Body.Close()
 22152  		}
 22153  		return nil, gensupport.WrapError(&googleapi.Error{
 22154  			Code:   res.StatusCode,
 22155  			Header: res.Header,
 22156  		})
 22157  	}
 22158  	if err != nil {
 22159  		return nil, err
 22160  	}
 22161  	defer googleapi.CloseBody(res)
 22162  	if err := googleapi.CheckResponse(res); err != nil {
 22163  		return nil, gensupport.WrapError(err)
 22164  	}
 22165  	ret := &GoogleCloudDiscoveryengineV1betaListConversationsResponse{
 22166  		ServerResponse: googleapi.ServerResponse{
 22167  			Header:         res.Header,
 22168  			HTTPStatusCode: res.StatusCode,
 22169  		},
 22170  	}
 22171  	target := &ret
 22172  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22173  		return nil, err
 22174  	}
 22175  	return ret, nil
 22176  }
 22177  
 22178  // Pages invokes f for each page of results.
 22179  // A non-nil error returned from f will halt the iteration.
 22180  // The provided context supersedes any context provided to the Context method.
 22181  func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListConversationsResponse) error) error {
 22182  	c.ctx_ = ctx
 22183  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22184  	for {
 22185  		x, err := c.Do()
 22186  		if err != nil {
 22187  			return err
 22188  		}
 22189  		if err := f(x); err != nil {
 22190  			return err
 22191  		}
 22192  		if x.NextPageToken == "" {
 22193  			return nil
 22194  		}
 22195  		c.PageToken(x.NextPageToken)
 22196  	}
 22197  }
 22198  
 22199  type ProjectsLocationsCollectionsEnginesConversationsPatchCall struct {
 22200  	s                                            *Service
 22201  	name                                         string
 22202  	googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation
 22203  	urlParams_                                   gensupport.URLParams
 22204  	ctx_                                         context.Context
 22205  	header_                                      http.Header
 22206  }
 22207  
 22208  // Patch: Updates a Conversation. Conversation action type cannot be changed.
 22209  // If the Conversation to update does not exist, a NOT_FOUND error is returned.
 22210  //
 22211  //   - name: Immutable. Fully qualified name
 22212  //     `projects/{project}/locations/global/collections/{collection}/dataStore/*/c
 22213  //     onversations/*` or
 22214  //     `projects/{project}/locations/global/collections/{collection}/engines/*/con
 22215  //     versations/*`.
 22216  func (r *ProjectsLocationsCollectionsEnginesConversationsService) Patch(name string, googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
 22217  	c := &ProjectsLocationsCollectionsEnginesConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22218  	c.name = name
 22219  	c.googleclouddiscoveryenginev1betaconversation = googleclouddiscoveryenginev1betaconversation
 22220  	return c
 22221  }
 22222  
 22223  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 22224  // in the provided Conversation to update. The following are NOT supported: *
 22225  // Conversation.name If not set or empty, all supported fields are updated.
 22226  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
 22227  	c.urlParams_.Set("updateMask", updateMask)
 22228  	return c
 22229  }
 22230  
 22231  // Fields allows partial responses to be retrieved. See
 22232  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22233  // details.
 22234  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
 22235  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22236  	return c
 22237  }
 22238  
 22239  // Context sets the context to be used in this call's Do method.
 22240  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
 22241  	c.ctx_ = ctx
 22242  	return c
 22243  }
 22244  
 22245  // Header returns a http.Header that can be modified by the caller to add
 22246  // headers to the request.
 22247  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Header() http.Header {
 22248  	if c.header_ == nil {
 22249  		c.header_ = make(http.Header)
 22250  	}
 22251  	return c.header_
 22252  }
 22253  
 22254  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
 22255  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22256  	var body io.Reader = nil
 22257  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconversation)
 22258  	if err != nil {
 22259  		return nil, err
 22260  	}
 22261  	c.urlParams_.Set("alt", alt)
 22262  	c.urlParams_.Set("prettyPrint", "false")
 22263  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 22264  	urls += "?" + c.urlParams_.Encode()
 22265  	req, err := http.NewRequest("PATCH", urls, body)
 22266  	if err != nil {
 22267  		return nil, err
 22268  	}
 22269  	req.Header = reqHeaders
 22270  	googleapi.Expand(req.URL, map[string]string{
 22271  		"name": c.name,
 22272  	})
 22273  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22274  }
 22275  
 22276  // Do executes the "discoveryengine.projects.locations.collections.engines.conversations.patch" call.
 22277  // Any non-2xx status code is an error. Response headers are in either
 22278  // *GoogleCloudDiscoveryengineV1betaConversation.ServerResponse.Header or (if a
 22279  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22280  // googleapi.IsNotModified to check whether the returned error was because
 22281  // http.StatusNotModified was returned.
 22282  func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
 22283  	gensupport.SetOptions(c.urlParams_, opts...)
 22284  	res, err := c.doRequest("json")
 22285  	if res != nil && res.StatusCode == http.StatusNotModified {
 22286  		if res.Body != nil {
 22287  			res.Body.Close()
 22288  		}
 22289  		return nil, gensupport.WrapError(&googleapi.Error{
 22290  			Code:   res.StatusCode,
 22291  			Header: res.Header,
 22292  		})
 22293  	}
 22294  	if err != nil {
 22295  		return nil, err
 22296  	}
 22297  	defer googleapi.CloseBody(res)
 22298  	if err := googleapi.CheckResponse(res); err != nil {
 22299  		return nil, gensupport.WrapError(err)
 22300  	}
 22301  	ret := &GoogleCloudDiscoveryengineV1betaConversation{
 22302  		ServerResponse: googleapi.ServerResponse{
 22303  			Header:         res.Header,
 22304  			HTTPStatusCode: res.StatusCode,
 22305  		},
 22306  	}
 22307  	target := &ret
 22308  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22309  		return nil, err
 22310  	}
 22311  	return ret, nil
 22312  }
 22313  
 22314  type ProjectsLocationsCollectionsEnginesOperationsGetCall struct {
 22315  	s            *Service
 22316  	name         string
 22317  	urlParams_   gensupport.URLParams
 22318  	ifNoneMatch_ string
 22319  	ctx_         context.Context
 22320  	header_      http.Header
 22321  }
 22322  
 22323  // Get: Gets the latest state of a long-running operation. Clients can use this
 22324  // method to poll the operation result at intervals as recommended by the API
 22325  // service.
 22326  //
 22327  // - name: The name of the operation resource.
 22328  func (r *ProjectsLocationsCollectionsEnginesOperationsService) Get(name string) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
 22329  	c := &ProjectsLocationsCollectionsEnginesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22330  	c.name = name
 22331  	return c
 22332  }
 22333  
 22334  // Fields allows partial responses to be retrieved. See
 22335  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22336  // details.
 22337  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
 22338  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22339  	return c
 22340  }
 22341  
 22342  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22343  // object's ETag matches the given value. This is useful for getting updates
 22344  // only after the object has changed since the last request.
 22345  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
 22346  	c.ifNoneMatch_ = entityTag
 22347  	return c
 22348  }
 22349  
 22350  // Context sets the context to be used in this call's Do method.
 22351  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
 22352  	c.ctx_ = ctx
 22353  	return c
 22354  }
 22355  
 22356  // Header returns a http.Header that can be modified by the caller to add
 22357  // headers to the request.
 22358  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Header() http.Header {
 22359  	if c.header_ == nil {
 22360  		c.header_ = make(http.Header)
 22361  	}
 22362  	return c.header_
 22363  }
 22364  
 22365  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 22366  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22367  	if c.ifNoneMatch_ != "" {
 22368  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22369  	}
 22370  	var body io.Reader = nil
 22371  	c.urlParams_.Set("alt", alt)
 22372  	c.urlParams_.Set("prettyPrint", "false")
 22373  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 22374  	urls += "?" + c.urlParams_.Encode()
 22375  	req, err := http.NewRequest("GET", urls, body)
 22376  	if err != nil {
 22377  		return nil, err
 22378  	}
 22379  	req.Header = reqHeaders
 22380  	googleapi.Expand(req.URL, map[string]string{
 22381  		"name": c.name,
 22382  	})
 22383  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22384  }
 22385  
 22386  // Do executes the "discoveryengine.projects.locations.collections.engines.operations.get" call.
 22387  // Any non-2xx status code is an error. Response headers are in either
 22388  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 22389  // returned at all) in error.(*googleapi.Error).Header. Use
 22390  // googleapi.IsNotModified to check whether the returned error was because
 22391  // http.StatusNotModified was returned.
 22392  func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 22393  	gensupport.SetOptions(c.urlParams_, opts...)
 22394  	res, err := c.doRequest("json")
 22395  	if res != nil && res.StatusCode == http.StatusNotModified {
 22396  		if res.Body != nil {
 22397  			res.Body.Close()
 22398  		}
 22399  		return nil, gensupport.WrapError(&googleapi.Error{
 22400  			Code:   res.StatusCode,
 22401  			Header: res.Header,
 22402  		})
 22403  	}
 22404  	if err != nil {
 22405  		return nil, err
 22406  	}
 22407  	defer googleapi.CloseBody(res)
 22408  	if err := googleapi.CheckResponse(res); err != nil {
 22409  		return nil, gensupport.WrapError(err)
 22410  	}
 22411  	ret := &GoogleLongrunningOperation{
 22412  		ServerResponse: googleapi.ServerResponse{
 22413  			Header:         res.Header,
 22414  			HTTPStatusCode: res.StatusCode,
 22415  		},
 22416  	}
 22417  	target := &ret
 22418  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22419  		return nil, err
 22420  	}
 22421  	return ret, nil
 22422  }
 22423  
 22424  type ProjectsLocationsCollectionsEnginesOperationsListCall struct {
 22425  	s            *Service
 22426  	name         string
 22427  	urlParams_   gensupport.URLParams
 22428  	ifNoneMatch_ string
 22429  	ctx_         context.Context
 22430  	header_      http.Header
 22431  }
 22432  
 22433  // List: Lists operations that match the specified filter in the request. If
 22434  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 22435  //
 22436  // - name: The name of the operation's parent resource.
 22437  func (r *ProjectsLocationsCollectionsEnginesOperationsService) List(name string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 22438  	c := &ProjectsLocationsCollectionsEnginesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22439  	c.name = name
 22440  	return c
 22441  }
 22442  
 22443  // Filter sets the optional parameter "filter": The standard list filter.
 22444  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 22445  	c.urlParams_.Set("filter", filter)
 22446  	return c
 22447  }
 22448  
 22449  // PageSize sets the optional parameter "pageSize": The standard list page
 22450  // size.
 22451  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 22452  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22453  	return c
 22454  }
 22455  
 22456  // PageToken sets the optional parameter "pageToken": The standard list page
 22457  // token.
 22458  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 22459  	c.urlParams_.Set("pageToken", pageToken)
 22460  	return c
 22461  }
 22462  
 22463  // Fields allows partial responses to be retrieved. See
 22464  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22465  // details.
 22466  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 22467  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22468  	return c
 22469  }
 22470  
 22471  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22472  // object's ETag matches the given value. This is useful for getting updates
 22473  // only after the object has changed since the last request.
 22474  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 22475  	c.ifNoneMatch_ = entityTag
 22476  	return c
 22477  }
 22478  
 22479  // Context sets the context to be used in this call's Do method.
 22480  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsListCall {
 22481  	c.ctx_ = ctx
 22482  	return c
 22483  }
 22484  
 22485  // Header returns a http.Header that can be modified by the caller to add
 22486  // headers to the request.
 22487  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Header() http.Header {
 22488  	if c.header_ == nil {
 22489  		c.header_ = make(http.Header)
 22490  	}
 22491  	return c.header_
 22492  }
 22493  
 22494  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) doRequest(alt string) (*http.Response, error) {
 22495  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22496  	if c.ifNoneMatch_ != "" {
 22497  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22498  	}
 22499  	var body io.Reader = nil
 22500  	c.urlParams_.Set("alt", alt)
 22501  	c.urlParams_.Set("prettyPrint", "false")
 22502  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 22503  	urls += "?" + c.urlParams_.Encode()
 22504  	req, err := http.NewRequest("GET", urls, body)
 22505  	if err != nil {
 22506  		return nil, err
 22507  	}
 22508  	req.Header = reqHeaders
 22509  	googleapi.Expand(req.URL, map[string]string{
 22510  		"name": c.name,
 22511  	})
 22512  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22513  }
 22514  
 22515  // Do executes the "discoveryengine.projects.locations.collections.engines.operations.list" call.
 22516  // Any non-2xx status code is an error. Response headers are in either
 22517  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 22518  // response was returned at all) in error.(*googleapi.Error).Header. Use
 22519  // googleapi.IsNotModified to check whether the returned error was because
 22520  // http.StatusNotModified was returned.
 22521  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 22522  	gensupport.SetOptions(c.urlParams_, opts...)
 22523  	res, err := c.doRequest("json")
 22524  	if res != nil && res.StatusCode == http.StatusNotModified {
 22525  		if res.Body != nil {
 22526  			res.Body.Close()
 22527  		}
 22528  		return nil, gensupport.WrapError(&googleapi.Error{
 22529  			Code:   res.StatusCode,
 22530  			Header: res.Header,
 22531  		})
 22532  	}
 22533  	if err != nil {
 22534  		return nil, err
 22535  	}
 22536  	defer googleapi.CloseBody(res)
 22537  	if err := googleapi.CheckResponse(res); err != nil {
 22538  		return nil, gensupport.WrapError(err)
 22539  	}
 22540  	ret := &GoogleLongrunningListOperationsResponse{
 22541  		ServerResponse: googleapi.ServerResponse{
 22542  			Header:         res.Header,
 22543  			HTTPStatusCode: res.StatusCode,
 22544  		},
 22545  	}
 22546  	target := &ret
 22547  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22548  		return nil, err
 22549  	}
 22550  	return ret, nil
 22551  }
 22552  
 22553  // Pages invokes f for each page of results.
 22554  // A non-nil error returned from f will halt the iteration.
 22555  // The provided context supersedes any context provided to the Context method.
 22556  func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 22557  	c.ctx_ = ctx
 22558  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22559  	for {
 22560  		x, err := c.Do()
 22561  		if err != nil {
 22562  			return err
 22563  		}
 22564  		if err := f(x); err != nil {
 22565  			return err
 22566  		}
 22567  		if x.NextPageToken == "" {
 22568  			return nil
 22569  		}
 22570  		c.PageToken(x.NextPageToken)
 22571  	}
 22572  }
 22573  
 22574  type ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall struct {
 22575  	s                                                  *Service
 22576  	servingConfig                                      string
 22577  	googleclouddiscoveryenginev1betaanswerqueryrequest *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
 22578  	urlParams_                                         gensupport.URLParams
 22579  	ctx_                                               context.Context
 22580  	header_                                            http.Header
 22581  }
 22582  
 22583  // Answer: Answer query method.
 22584  //
 22585  //   - servingConfig: The resource name of the Search serving config, such as
 22586  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 22587  //     ngConfigs/default_serving_config`, or
 22588  //     `projects/*/locations/global/collections/default_collection/dataStores/*/se
 22589  //     rvingConfigs/default_serving_config`. This field is used to identify the
 22590  //     serving configuration name, set of models used to make the search.
 22591  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Answer(servingConfig string, googleclouddiscoveryenginev1betaanswerqueryrequest *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest) *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall {
 22592  	c := &ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22593  	c.servingConfig = servingConfig
 22594  	c.googleclouddiscoveryenginev1betaanswerqueryrequest = googleclouddiscoveryenginev1betaanswerqueryrequest
 22595  	return c
 22596  }
 22597  
 22598  // Fields allows partial responses to be retrieved. See
 22599  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22600  // details.
 22601  func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall {
 22602  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22603  	return c
 22604  }
 22605  
 22606  // Context sets the context to be used in this call's Do method.
 22607  func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall {
 22608  	c.ctx_ = ctx
 22609  	return c
 22610  }
 22611  
 22612  // Header returns a http.Header that can be modified by the caller to add
 22613  // headers to the request.
 22614  func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Header() http.Header {
 22615  	if c.header_ == nil {
 22616  		c.header_ = make(http.Header)
 22617  	}
 22618  	return c.header_
 22619  }
 22620  
 22621  func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) doRequest(alt string) (*http.Response, error) {
 22622  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22623  	var body io.Reader = nil
 22624  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaanswerqueryrequest)
 22625  	if err != nil {
 22626  		return nil, err
 22627  	}
 22628  	c.urlParams_.Set("alt", alt)
 22629  	c.urlParams_.Set("prettyPrint", "false")
 22630  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:answer")
 22631  	urls += "?" + c.urlParams_.Encode()
 22632  	req, err := http.NewRequest("POST", urls, body)
 22633  	if err != nil {
 22634  		return nil, err
 22635  	}
 22636  	req.Header = reqHeaders
 22637  	googleapi.Expand(req.URL, map[string]string{
 22638  		"servingConfig": c.servingConfig,
 22639  	})
 22640  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22641  }
 22642  
 22643  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.answer" call.
 22644  // Any non-2xx status code is an error. Response headers are in either
 22645  // *GoogleCloudDiscoveryengineV1betaAnswerQueryResponse.ServerResponse.Header
 22646  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 22647  // Use googleapi.IsNotModified to check whether the returned error was because
 22648  // http.StatusNotModified was returned.
 22649  func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaAnswerQueryResponse, error) {
 22650  	gensupport.SetOptions(c.urlParams_, opts...)
 22651  	res, err := c.doRequest("json")
 22652  	if res != nil && res.StatusCode == http.StatusNotModified {
 22653  		if res.Body != nil {
 22654  			res.Body.Close()
 22655  		}
 22656  		return nil, gensupport.WrapError(&googleapi.Error{
 22657  			Code:   res.StatusCode,
 22658  			Header: res.Header,
 22659  		})
 22660  	}
 22661  	if err != nil {
 22662  		return nil, err
 22663  	}
 22664  	defer googleapi.CloseBody(res)
 22665  	if err := googleapi.CheckResponse(res); err != nil {
 22666  		return nil, gensupport.WrapError(err)
 22667  	}
 22668  	ret := &GoogleCloudDiscoveryengineV1betaAnswerQueryResponse{
 22669  		ServerResponse: googleapi.ServerResponse{
 22670  			Header:         res.Header,
 22671  			HTTPStatusCode: res.StatusCode,
 22672  		},
 22673  	}
 22674  	target := &ret
 22675  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22676  		return nil, err
 22677  	}
 22678  	return ret, nil
 22679  }
 22680  
 22681  type ProjectsLocationsCollectionsEnginesServingConfigsGetCall struct {
 22682  	s            *Service
 22683  	name         string
 22684  	urlParams_   gensupport.URLParams
 22685  	ifNoneMatch_ string
 22686  	ctx_         context.Context
 22687  	header_      http.Header
 22688  }
 22689  
 22690  // Get: Gets a ServingConfig. Returns a NotFound error if the ServingConfig
 22691  // does not exist.
 22692  //
 22693  //   - name: The resource name of the ServingConfig to get. Format:
 22694  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 22695  //     gines/{engine}/servingConfigs/{serving_config_id}`.
 22696  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Get(name string) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
 22697  	c := &ProjectsLocationsCollectionsEnginesServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22698  	c.name = name
 22699  	return c
 22700  }
 22701  
 22702  // Fields allows partial responses to be retrieved. See
 22703  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22704  // details.
 22705  func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
 22706  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22707  	return c
 22708  }
 22709  
 22710  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22711  // object's ETag matches the given value. This is useful for getting updates
 22712  // only after the object has changed since the last request.
 22713  func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
 22714  	c.ifNoneMatch_ = entityTag
 22715  	return c
 22716  }
 22717  
 22718  // Context sets the context to be used in this call's Do method.
 22719  func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
 22720  	c.ctx_ = ctx
 22721  	return c
 22722  }
 22723  
 22724  // Header returns a http.Header that can be modified by the caller to add
 22725  // headers to the request.
 22726  func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Header() http.Header {
 22727  	if c.header_ == nil {
 22728  		c.header_ = make(http.Header)
 22729  	}
 22730  	return c.header_
 22731  }
 22732  
 22733  func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) doRequest(alt string) (*http.Response, error) {
 22734  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22735  	if c.ifNoneMatch_ != "" {
 22736  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22737  	}
 22738  	var body io.Reader = nil
 22739  	c.urlParams_.Set("alt", alt)
 22740  	c.urlParams_.Set("prettyPrint", "false")
 22741  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 22742  	urls += "?" + c.urlParams_.Encode()
 22743  	req, err := http.NewRequest("GET", urls, body)
 22744  	if err != nil {
 22745  		return nil, err
 22746  	}
 22747  	req.Header = reqHeaders
 22748  	googleapi.Expand(req.URL, map[string]string{
 22749  		"name": c.name,
 22750  	})
 22751  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22752  }
 22753  
 22754  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.get" call.
 22755  // Any non-2xx status code is an error. Response headers are in either
 22756  // *GoogleCloudDiscoveryengineV1betaServingConfig.ServerResponse.Header or (if
 22757  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 22758  // googleapi.IsNotModified to check whether the returned error was because
 22759  // http.StatusNotModified was returned.
 22760  func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaServingConfig, error) {
 22761  	gensupport.SetOptions(c.urlParams_, opts...)
 22762  	res, err := c.doRequest("json")
 22763  	if res != nil && res.StatusCode == http.StatusNotModified {
 22764  		if res.Body != nil {
 22765  			res.Body.Close()
 22766  		}
 22767  		return nil, gensupport.WrapError(&googleapi.Error{
 22768  			Code:   res.StatusCode,
 22769  			Header: res.Header,
 22770  		})
 22771  	}
 22772  	if err != nil {
 22773  		return nil, err
 22774  	}
 22775  	defer googleapi.CloseBody(res)
 22776  	if err := googleapi.CheckResponse(res); err != nil {
 22777  		return nil, gensupport.WrapError(err)
 22778  	}
 22779  	ret := &GoogleCloudDiscoveryengineV1betaServingConfig{
 22780  		ServerResponse: googleapi.ServerResponse{
 22781  			Header:         res.Header,
 22782  			HTTPStatusCode: res.StatusCode,
 22783  		},
 22784  	}
 22785  	target := &ret
 22786  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22787  		return nil, err
 22788  	}
 22789  	return ret, nil
 22790  }
 22791  
 22792  type ProjectsLocationsCollectionsEnginesServingConfigsListCall struct {
 22793  	s            *Service
 22794  	parent       string
 22795  	urlParams_   gensupport.URLParams
 22796  	ifNoneMatch_ string
 22797  	ctx_         context.Context
 22798  	header_      http.Header
 22799  }
 22800  
 22801  // List: Lists all ServingConfigs linked to this dataStore.
 22802  //
 22803  //   - parent: Full resource name of the parent resource. Format:
 22804  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 22805  //     gines/{engine}`.
 22806  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) List(parent string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
 22807  	c := &ProjectsLocationsCollectionsEnginesServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22808  	c.parent = parent
 22809  	return c
 22810  }
 22811  
 22812  // PageSize sets the optional parameter "pageSize": Maximum number of results
 22813  // to return. If unspecified, defaults to 100. If a value greater than 100 is
 22814  // provided, at most 100 results are returned.
 22815  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
 22816  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 22817  	return c
 22818  }
 22819  
 22820  // PageToken sets the optional parameter "pageToken": A page token, received
 22821  // from a previous `ListServingConfigs` call. Provide this to retrieve the
 22822  // subsequent page.
 22823  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
 22824  	c.urlParams_.Set("pageToken", pageToken)
 22825  	return c
 22826  }
 22827  
 22828  // Fields allows partial responses to be retrieved. See
 22829  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22830  // details.
 22831  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
 22832  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22833  	return c
 22834  }
 22835  
 22836  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 22837  // object's ETag matches the given value. This is useful for getting updates
 22838  // only after the object has changed since the last request.
 22839  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
 22840  	c.ifNoneMatch_ = entityTag
 22841  	return c
 22842  }
 22843  
 22844  // Context sets the context to be used in this call's Do method.
 22845  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
 22846  	c.ctx_ = ctx
 22847  	return c
 22848  }
 22849  
 22850  // Header returns a http.Header that can be modified by the caller to add
 22851  // headers to the request.
 22852  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Header() http.Header {
 22853  	if c.header_ == nil {
 22854  		c.header_ = make(http.Header)
 22855  	}
 22856  	return c.header_
 22857  }
 22858  
 22859  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) doRequest(alt string) (*http.Response, error) {
 22860  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 22861  	if c.ifNoneMatch_ != "" {
 22862  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 22863  	}
 22864  	var body io.Reader = nil
 22865  	c.urlParams_.Set("alt", alt)
 22866  	c.urlParams_.Set("prettyPrint", "false")
 22867  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/servingConfigs")
 22868  	urls += "?" + c.urlParams_.Encode()
 22869  	req, err := http.NewRequest("GET", urls, body)
 22870  	if err != nil {
 22871  		return nil, err
 22872  	}
 22873  	req.Header = reqHeaders
 22874  	googleapi.Expand(req.URL, map[string]string{
 22875  		"parent": c.parent,
 22876  	})
 22877  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 22878  }
 22879  
 22880  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.list" call.
 22881  // Any non-2xx status code is an error. Response headers are in either
 22882  // *GoogleCloudDiscoveryengineV1betaListServingConfigsResponse.ServerResponse.He
 22883  // ader or (if a response was returned at all) in
 22884  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 22885  // whether the returned error was because http.StatusNotModified was returned.
 22886  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListServingConfigsResponse, error) {
 22887  	gensupport.SetOptions(c.urlParams_, opts...)
 22888  	res, err := c.doRequest("json")
 22889  	if res != nil && res.StatusCode == http.StatusNotModified {
 22890  		if res.Body != nil {
 22891  			res.Body.Close()
 22892  		}
 22893  		return nil, gensupport.WrapError(&googleapi.Error{
 22894  			Code:   res.StatusCode,
 22895  			Header: res.Header,
 22896  		})
 22897  	}
 22898  	if err != nil {
 22899  		return nil, err
 22900  	}
 22901  	defer googleapi.CloseBody(res)
 22902  	if err := googleapi.CheckResponse(res); err != nil {
 22903  		return nil, gensupport.WrapError(err)
 22904  	}
 22905  	ret := &GoogleCloudDiscoveryengineV1betaListServingConfigsResponse{
 22906  		ServerResponse: googleapi.ServerResponse{
 22907  			Header:         res.Header,
 22908  			HTTPStatusCode: res.StatusCode,
 22909  		},
 22910  	}
 22911  	target := &ret
 22912  	if err := gensupport.DecodeResponse(target, res); err != nil {
 22913  		return nil, err
 22914  	}
 22915  	return ret, nil
 22916  }
 22917  
 22918  // Pages invokes f for each page of results.
 22919  // A non-nil error returned from f will halt the iteration.
 22920  // The provided context supersedes any context provided to the Context method.
 22921  func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListServingConfigsResponse) error) error {
 22922  	c.ctx_ = ctx
 22923  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 22924  	for {
 22925  		x, err := c.Do()
 22926  		if err != nil {
 22927  			return err
 22928  		}
 22929  		if err := f(x); err != nil {
 22930  			return err
 22931  		}
 22932  		if x.NextPageToken == "" {
 22933  			return nil
 22934  		}
 22935  		c.PageToken(x.NextPageToken)
 22936  	}
 22937  }
 22938  
 22939  type ProjectsLocationsCollectionsEnginesServingConfigsPatchCall struct {
 22940  	s                                             *Service
 22941  	name                                          string
 22942  	googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig
 22943  	urlParams_                                    gensupport.URLParams
 22944  	ctx_                                          context.Context
 22945  	header_                                       http.Header
 22946  }
 22947  
 22948  // Patch: Updates a ServingConfig. Returns a NOT_FOUND error if the
 22949  // ServingConfig does not exist.
 22950  //
 22951  //   - name: Immutable. Fully qualified name
 22952  //     `projects/{project}/locations/{location}/collections/{collection_id}/engine
 22953  //     s/{engine_id}/servingConfigs/{serving_config_id}`.
 22954  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Patch(name string, googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
 22955  	c := &ProjectsLocationsCollectionsEnginesServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 22956  	c.name = name
 22957  	c.googleclouddiscoveryenginev1betaservingconfig = googleclouddiscoveryenginev1betaservingconfig
 22958  	return c
 22959  }
 22960  
 22961  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 22962  // in the provided ServingConfig to update. The following are NOT supported: *
 22963  // ServingConfig.name If not set, all supported fields are updated.
 22964  func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
 22965  	c.urlParams_.Set("updateMask", updateMask)
 22966  	return c
 22967  }
 22968  
 22969  // Fields allows partial responses to be retrieved. See
 22970  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 22971  // details.
 22972  func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
 22973  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 22974  	return c
 22975  }
 22976  
 22977  // Context sets the context to be used in this call's Do method.
 22978  func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
 22979  	c.ctx_ = ctx
 22980  	return c
 22981  }
 22982  
 22983  // Header returns a http.Header that can be modified by the caller to add
 22984  // headers to the request.
 22985  func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Header() http.Header {
 22986  	if c.header_ == nil {
 22987  		c.header_ = make(http.Header)
 22988  	}
 22989  	return c.header_
 22990  }
 22991  
 22992  func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
 22993  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 22994  	var body io.Reader = nil
 22995  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaservingconfig)
 22996  	if err != nil {
 22997  		return nil, err
 22998  	}
 22999  	c.urlParams_.Set("alt", alt)
 23000  	c.urlParams_.Set("prettyPrint", "false")
 23001  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 23002  	urls += "?" + c.urlParams_.Encode()
 23003  	req, err := http.NewRequest("PATCH", urls, body)
 23004  	if err != nil {
 23005  		return nil, err
 23006  	}
 23007  	req.Header = reqHeaders
 23008  	googleapi.Expand(req.URL, map[string]string{
 23009  		"name": c.name,
 23010  	})
 23011  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23012  }
 23013  
 23014  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.patch" call.
 23015  // Any non-2xx status code is an error. Response headers are in either
 23016  // *GoogleCloudDiscoveryengineV1betaServingConfig.ServerResponse.Header or (if
 23017  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 23018  // googleapi.IsNotModified to check whether the returned error was because
 23019  // http.StatusNotModified was returned.
 23020  func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaServingConfig, error) {
 23021  	gensupport.SetOptions(c.urlParams_, opts...)
 23022  	res, err := c.doRequest("json")
 23023  	if res != nil && res.StatusCode == http.StatusNotModified {
 23024  		if res.Body != nil {
 23025  			res.Body.Close()
 23026  		}
 23027  		return nil, gensupport.WrapError(&googleapi.Error{
 23028  			Code:   res.StatusCode,
 23029  			Header: res.Header,
 23030  		})
 23031  	}
 23032  	if err != nil {
 23033  		return nil, err
 23034  	}
 23035  	defer googleapi.CloseBody(res)
 23036  	if err := googleapi.CheckResponse(res); err != nil {
 23037  		return nil, gensupport.WrapError(err)
 23038  	}
 23039  	ret := &GoogleCloudDiscoveryengineV1betaServingConfig{
 23040  		ServerResponse: googleapi.ServerResponse{
 23041  			Header:         res.Header,
 23042  			HTTPStatusCode: res.StatusCode,
 23043  		},
 23044  	}
 23045  	target := &ret
 23046  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23047  		return nil, err
 23048  	}
 23049  	return ret, nil
 23050  }
 23051  
 23052  type ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall struct {
 23053  	s                                                *Service
 23054  	servingConfig                                    string
 23055  	googleclouddiscoveryenginev1betarecommendrequest *GoogleCloudDiscoveryengineV1betaRecommendRequest
 23056  	urlParams_                                       gensupport.URLParams
 23057  	ctx_                                             context.Context
 23058  	header_                                          http.Header
 23059  }
 23060  
 23061  // Recommend: Makes a recommendation, which requires a contextual user event.
 23062  //
 23063  //   - servingConfig: Full resource name of a ServingConfig:
 23064  //     `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
 23065  //     `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
 23066  //     One default serving config is created along with your recommendation
 23067  //     engine creation. The engine ID will be used as the ID of the default
 23068  //     serving config. For example, for Engine
 23069  //     `projects/*/locations/global/collections/*/engines/my-engine`, you can use
 23070  //     `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs
 23071  //     /my-engine` for your RecommendationService.Recommend requests.
 23072  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1betarecommendrequest *GoogleCloudDiscoveryengineV1betaRecommendRequest) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
 23073  	c := &ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23074  	c.servingConfig = servingConfig
 23075  	c.googleclouddiscoveryenginev1betarecommendrequest = googleclouddiscoveryenginev1betarecommendrequest
 23076  	return c
 23077  }
 23078  
 23079  // Fields allows partial responses to be retrieved. See
 23080  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23081  // details.
 23082  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
 23083  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23084  	return c
 23085  }
 23086  
 23087  // Context sets the context to be used in this call's Do method.
 23088  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
 23089  	c.ctx_ = ctx
 23090  	return c
 23091  }
 23092  
 23093  // Header returns a http.Header that can be modified by the caller to add
 23094  // headers to the request.
 23095  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Header() http.Header {
 23096  	if c.header_ == nil {
 23097  		c.header_ = make(http.Header)
 23098  	}
 23099  	return c.header_
 23100  }
 23101  
 23102  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
 23103  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23104  	var body io.Reader = nil
 23105  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betarecommendrequest)
 23106  	if err != nil {
 23107  		return nil, err
 23108  	}
 23109  	c.urlParams_.Set("alt", alt)
 23110  	c.urlParams_.Set("prettyPrint", "false")
 23111  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:recommend")
 23112  	urls += "?" + c.urlParams_.Encode()
 23113  	req, err := http.NewRequest("POST", urls, body)
 23114  	if err != nil {
 23115  		return nil, err
 23116  	}
 23117  	req.Header = reqHeaders
 23118  	googleapi.Expand(req.URL, map[string]string{
 23119  		"servingConfig": c.servingConfig,
 23120  	})
 23121  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23122  }
 23123  
 23124  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.recommend" call.
 23125  // Any non-2xx status code is an error. Response headers are in either
 23126  // *GoogleCloudDiscoveryengineV1betaRecommendResponse.ServerResponse.Header or
 23127  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 23128  // googleapi.IsNotModified to check whether the returned error was because
 23129  // http.StatusNotModified was returned.
 23130  func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaRecommendResponse, error) {
 23131  	gensupport.SetOptions(c.urlParams_, opts...)
 23132  	res, err := c.doRequest("json")
 23133  	if res != nil && res.StatusCode == http.StatusNotModified {
 23134  		if res.Body != nil {
 23135  			res.Body.Close()
 23136  		}
 23137  		return nil, gensupport.WrapError(&googleapi.Error{
 23138  			Code:   res.StatusCode,
 23139  			Header: res.Header,
 23140  		})
 23141  	}
 23142  	if err != nil {
 23143  		return nil, err
 23144  	}
 23145  	defer googleapi.CloseBody(res)
 23146  	if err := googleapi.CheckResponse(res); err != nil {
 23147  		return nil, gensupport.WrapError(err)
 23148  	}
 23149  	ret := &GoogleCloudDiscoveryengineV1betaRecommendResponse{
 23150  		ServerResponse: googleapi.ServerResponse{
 23151  			Header:         res.Header,
 23152  			HTTPStatusCode: res.StatusCode,
 23153  		},
 23154  	}
 23155  	target := &ret
 23156  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23157  		return nil, err
 23158  	}
 23159  	return ret, nil
 23160  }
 23161  
 23162  type ProjectsLocationsCollectionsEnginesServingConfigsSearchCall struct {
 23163  	s                                             *Service
 23164  	servingConfig                                 string
 23165  	googleclouddiscoveryenginev1betasearchrequest *GoogleCloudDiscoveryengineV1betaSearchRequest
 23166  	urlParams_                                    gensupport.URLParams
 23167  	ctx_                                          context.Context
 23168  	header_                                       http.Header
 23169  }
 23170  
 23171  // Search: Performs a search.
 23172  //
 23173  //   - servingConfig: The resource name of the Search serving config, such as
 23174  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 23175  //     ngConfigs/default_serving_config`, or
 23176  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 23177  //     ult_data_store/servingConfigs/default_serving_config`. This field is used
 23178  //     to identify the serving configuration name, set of models used to make the
 23179  //     search.
 23180  func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1betasearchrequest *GoogleCloudDiscoveryengineV1betaSearchRequest) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
 23181  	c := &ProjectsLocationsCollectionsEnginesServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23182  	c.servingConfig = servingConfig
 23183  	c.googleclouddiscoveryenginev1betasearchrequest = googleclouddiscoveryenginev1betasearchrequest
 23184  	return c
 23185  }
 23186  
 23187  // Fields allows partial responses to be retrieved. See
 23188  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23189  // details.
 23190  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
 23191  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23192  	return c
 23193  }
 23194  
 23195  // Context sets the context to be used in this call's Do method.
 23196  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
 23197  	c.ctx_ = ctx
 23198  	return c
 23199  }
 23200  
 23201  // Header returns a http.Header that can be modified by the caller to add
 23202  // headers to the request.
 23203  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Header() http.Header {
 23204  	if c.header_ == nil {
 23205  		c.header_ = make(http.Header)
 23206  	}
 23207  	return c.header_
 23208  }
 23209  
 23210  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
 23211  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23212  	var body io.Reader = nil
 23213  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasearchrequest)
 23214  	if err != nil {
 23215  		return nil, err
 23216  	}
 23217  	c.urlParams_.Set("alt", alt)
 23218  	c.urlParams_.Set("prettyPrint", "false")
 23219  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:search")
 23220  	urls += "?" + c.urlParams_.Encode()
 23221  	req, err := http.NewRequest("POST", urls, body)
 23222  	if err != nil {
 23223  		return nil, err
 23224  	}
 23225  	req.Header = reqHeaders
 23226  	googleapi.Expand(req.URL, map[string]string{
 23227  		"servingConfig": c.servingConfig,
 23228  	})
 23229  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23230  }
 23231  
 23232  // Do executes the "discoveryengine.projects.locations.collections.engines.servingConfigs.search" call.
 23233  // Any non-2xx status code is an error. Response headers are in either
 23234  // *GoogleCloudDiscoveryengineV1betaSearchResponse.ServerResponse.Header or (if
 23235  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 23236  // googleapi.IsNotModified to check whether the returned error was because
 23237  // http.StatusNotModified was returned.
 23238  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSearchResponse, error) {
 23239  	gensupport.SetOptions(c.urlParams_, opts...)
 23240  	res, err := c.doRequest("json")
 23241  	if res != nil && res.StatusCode == http.StatusNotModified {
 23242  		if res.Body != nil {
 23243  			res.Body.Close()
 23244  		}
 23245  		return nil, gensupport.WrapError(&googleapi.Error{
 23246  			Code:   res.StatusCode,
 23247  			Header: res.Header,
 23248  		})
 23249  	}
 23250  	if err != nil {
 23251  		return nil, err
 23252  	}
 23253  	defer googleapi.CloseBody(res)
 23254  	if err := googleapi.CheckResponse(res); err != nil {
 23255  		return nil, gensupport.WrapError(err)
 23256  	}
 23257  	ret := &GoogleCloudDiscoveryengineV1betaSearchResponse{
 23258  		ServerResponse: googleapi.ServerResponse{
 23259  			Header:         res.Header,
 23260  			HTTPStatusCode: res.StatusCode,
 23261  		},
 23262  	}
 23263  	target := &ret
 23264  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23265  		return nil, err
 23266  	}
 23267  	return ret, nil
 23268  }
 23269  
 23270  // Pages invokes f for each page of results.
 23271  // A non-nil error returned from f will halt the iteration.
 23272  // The provided context supersedes any context provided to the Context method.
 23273  func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaSearchResponse) error) error {
 23274  	c.ctx_ = ctx
 23275  	defer func(pt string) { c.googleclouddiscoveryenginev1betasearchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1betasearchrequest.PageToken)
 23276  	for {
 23277  		x, err := c.Do()
 23278  		if err != nil {
 23279  			return err
 23280  		}
 23281  		if err := f(x); err != nil {
 23282  			return err
 23283  		}
 23284  		if x.NextPageToken == "" {
 23285  			return nil
 23286  		}
 23287  		c.googleclouddiscoveryenginev1betasearchrequest.PageToken = x.NextPageToken
 23288  	}
 23289  }
 23290  
 23291  type ProjectsLocationsCollectionsEnginesSessionsCreateCall struct {
 23292  	s                                       *Service
 23293  	parent                                  string
 23294  	googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession
 23295  	urlParams_                              gensupport.URLParams
 23296  	ctx_                                    context.Context
 23297  	header_                                 http.Header
 23298  }
 23299  
 23300  // Create: Creates a Session. If the Session to create already exists, an
 23301  // ALREADY_EXISTS error is returned.
 23302  //
 23303  //   - parent: Full resource name of parent data store. Format:
 23304  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 23305  //     /dataStores/{data_store_id}`.
 23306  func (r *ProjectsLocationsCollectionsEnginesSessionsService) Create(parent string, googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession) *ProjectsLocationsCollectionsEnginesSessionsCreateCall {
 23307  	c := &ProjectsLocationsCollectionsEnginesSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23308  	c.parent = parent
 23309  	c.googleclouddiscoveryenginev1betasession = googleclouddiscoveryenginev1betasession
 23310  	return c
 23311  }
 23312  
 23313  // Fields allows partial responses to be retrieved. See
 23314  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23315  // details.
 23316  func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsCreateCall {
 23317  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23318  	return c
 23319  }
 23320  
 23321  // Context sets the context to be used in this call's Do method.
 23322  func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsCreateCall {
 23323  	c.ctx_ = ctx
 23324  	return c
 23325  }
 23326  
 23327  // Header returns a http.Header that can be modified by the caller to add
 23328  // headers to the request.
 23329  func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Header() http.Header {
 23330  	if c.header_ == nil {
 23331  		c.header_ = make(http.Header)
 23332  	}
 23333  	return c.header_
 23334  }
 23335  
 23336  func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) doRequest(alt string) (*http.Response, error) {
 23337  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23338  	var body io.Reader = nil
 23339  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasession)
 23340  	if err != nil {
 23341  		return nil, err
 23342  	}
 23343  	c.urlParams_.Set("alt", alt)
 23344  	c.urlParams_.Set("prettyPrint", "false")
 23345  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sessions")
 23346  	urls += "?" + c.urlParams_.Encode()
 23347  	req, err := http.NewRequest("POST", urls, body)
 23348  	if err != nil {
 23349  		return nil, err
 23350  	}
 23351  	req.Header = reqHeaders
 23352  	googleapi.Expand(req.URL, map[string]string{
 23353  		"parent": c.parent,
 23354  	})
 23355  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23356  }
 23357  
 23358  // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.create" call.
 23359  // Any non-2xx status code is an error. Response headers are in either
 23360  // *GoogleCloudDiscoveryengineV1betaSession.ServerResponse.Header or (if a
 23361  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23362  // googleapi.IsNotModified to check whether the returned error was because
 23363  // http.StatusNotModified was returned.
 23364  func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
 23365  	gensupport.SetOptions(c.urlParams_, opts...)
 23366  	res, err := c.doRequest("json")
 23367  	if res != nil && res.StatusCode == http.StatusNotModified {
 23368  		if res.Body != nil {
 23369  			res.Body.Close()
 23370  		}
 23371  		return nil, gensupport.WrapError(&googleapi.Error{
 23372  			Code:   res.StatusCode,
 23373  			Header: res.Header,
 23374  		})
 23375  	}
 23376  	if err != nil {
 23377  		return nil, err
 23378  	}
 23379  	defer googleapi.CloseBody(res)
 23380  	if err := googleapi.CheckResponse(res); err != nil {
 23381  		return nil, gensupport.WrapError(err)
 23382  	}
 23383  	ret := &GoogleCloudDiscoveryengineV1betaSession{
 23384  		ServerResponse: googleapi.ServerResponse{
 23385  			Header:         res.Header,
 23386  			HTTPStatusCode: res.StatusCode,
 23387  		},
 23388  	}
 23389  	target := &ret
 23390  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23391  		return nil, err
 23392  	}
 23393  	return ret, nil
 23394  }
 23395  
 23396  type ProjectsLocationsCollectionsEnginesSessionsDeleteCall struct {
 23397  	s          *Service
 23398  	name       string
 23399  	urlParams_ gensupport.URLParams
 23400  	ctx_       context.Context
 23401  	header_    http.Header
 23402  }
 23403  
 23404  // Delete: Deletes a Session. If the Session to delete does not exist, a
 23405  // NOT_FOUND error is returned.
 23406  //
 23407  //   - name: The resource name of the Session to delete. Format:
 23408  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 23409  //     /dataStores/{data_store_id}/sessions/{session_id}`.
 23410  func (r *ProjectsLocationsCollectionsEnginesSessionsService) Delete(name string) *ProjectsLocationsCollectionsEnginesSessionsDeleteCall {
 23411  	c := &ProjectsLocationsCollectionsEnginesSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23412  	c.name = name
 23413  	return c
 23414  }
 23415  
 23416  // Fields allows partial responses to be retrieved. See
 23417  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23418  // details.
 23419  func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsDeleteCall {
 23420  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23421  	return c
 23422  }
 23423  
 23424  // Context sets the context to be used in this call's Do method.
 23425  func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsDeleteCall {
 23426  	c.ctx_ = ctx
 23427  	return c
 23428  }
 23429  
 23430  // Header returns a http.Header that can be modified by the caller to add
 23431  // headers to the request.
 23432  func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Header() http.Header {
 23433  	if c.header_ == nil {
 23434  		c.header_ = make(http.Header)
 23435  	}
 23436  	return c.header_
 23437  }
 23438  
 23439  func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 23440  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23441  	var body io.Reader = nil
 23442  	c.urlParams_.Set("alt", alt)
 23443  	c.urlParams_.Set("prettyPrint", "false")
 23444  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 23445  	urls += "?" + c.urlParams_.Encode()
 23446  	req, err := http.NewRequest("DELETE", urls, body)
 23447  	if err != nil {
 23448  		return nil, err
 23449  	}
 23450  	req.Header = reqHeaders
 23451  	googleapi.Expand(req.URL, map[string]string{
 23452  		"name": c.name,
 23453  	})
 23454  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23455  }
 23456  
 23457  // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.delete" call.
 23458  // Any non-2xx status code is an error. Response headers are in either
 23459  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 23460  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 23461  // check whether the returned error was because http.StatusNotModified was
 23462  // returned.
 23463  func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 23464  	gensupport.SetOptions(c.urlParams_, opts...)
 23465  	res, err := c.doRequest("json")
 23466  	if res != nil && res.StatusCode == http.StatusNotModified {
 23467  		if res.Body != nil {
 23468  			res.Body.Close()
 23469  		}
 23470  		return nil, gensupport.WrapError(&googleapi.Error{
 23471  			Code:   res.StatusCode,
 23472  			Header: res.Header,
 23473  		})
 23474  	}
 23475  	if err != nil {
 23476  		return nil, err
 23477  	}
 23478  	defer googleapi.CloseBody(res)
 23479  	if err := googleapi.CheckResponse(res); err != nil {
 23480  		return nil, gensupport.WrapError(err)
 23481  	}
 23482  	ret := &GoogleProtobufEmpty{
 23483  		ServerResponse: googleapi.ServerResponse{
 23484  			Header:         res.Header,
 23485  			HTTPStatusCode: res.StatusCode,
 23486  		},
 23487  	}
 23488  	target := &ret
 23489  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23490  		return nil, err
 23491  	}
 23492  	return ret, nil
 23493  }
 23494  
 23495  type ProjectsLocationsCollectionsEnginesSessionsGetCall struct {
 23496  	s            *Service
 23497  	name         string
 23498  	urlParams_   gensupport.URLParams
 23499  	ifNoneMatch_ string
 23500  	ctx_         context.Context
 23501  	header_      http.Header
 23502  }
 23503  
 23504  // Get: Gets a Session.
 23505  //
 23506  //   - name: The resource name of the Session to get. Format:
 23507  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 23508  //     /dataStores/{data_store_id}/sessions/{session_id}`.
 23509  func (r *ProjectsLocationsCollectionsEnginesSessionsService) Get(name string) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
 23510  	c := &ProjectsLocationsCollectionsEnginesSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23511  	c.name = name
 23512  	return c
 23513  }
 23514  
 23515  // Fields allows partial responses to be retrieved. See
 23516  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23517  // details.
 23518  func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
 23519  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23520  	return c
 23521  }
 23522  
 23523  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23524  // object's ETag matches the given value. This is useful for getting updates
 23525  // only after the object has changed since the last request.
 23526  func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
 23527  	c.ifNoneMatch_ = entityTag
 23528  	return c
 23529  }
 23530  
 23531  // Context sets the context to be used in this call's Do method.
 23532  func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
 23533  	c.ctx_ = ctx
 23534  	return c
 23535  }
 23536  
 23537  // Header returns a http.Header that can be modified by the caller to add
 23538  // headers to the request.
 23539  func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Header() http.Header {
 23540  	if c.header_ == nil {
 23541  		c.header_ = make(http.Header)
 23542  	}
 23543  	return c.header_
 23544  }
 23545  
 23546  func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) doRequest(alt string) (*http.Response, error) {
 23547  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23548  	if c.ifNoneMatch_ != "" {
 23549  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23550  	}
 23551  	var body io.Reader = nil
 23552  	c.urlParams_.Set("alt", alt)
 23553  	c.urlParams_.Set("prettyPrint", "false")
 23554  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 23555  	urls += "?" + c.urlParams_.Encode()
 23556  	req, err := http.NewRequest("GET", urls, body)
 23557  	if err != nil {
 23558  		return nil, err
 23559  	}
 23560  	req.Header = reqHeaders
 23561  	googleapi.Expand(req.URL, map[string]string{
 23562  		"name": c.name,
 23563  	})
 23564  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23565  }
 23566  
 23567  // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.get" call.
 23568  // Any non-2xx status code is an error. Response headers are in either
 23569  // *GoogleCloudDiscoveryengineV1betaSession.ServerResponse.Header or (if a
 23570  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23571  // googleapi.IsNotModified to check whether the returned error was because
 23572  // http.StatusNotModified was returned.
 23573  func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
 23574  	gensupport.SetOptions(c.urlParams_, opts...)
 23575  	res, err := c.doRequest("json")
 23576  	if res != nil && res.StatusCode == http.StatusNotModified {
 23577  		if res.Body != nil {
 23578  			res.Body.Close()
 23579  		}
 23580  		return nil, gensupport.WrapError(&googleapi.Error{
 23581  			Code:   res.StatusCode,
 23582  			Header: res.Header,
 23583  		})
 23584  	}
 23585  	if err != nil {
 23586  		return nil, err
 23587  	}
 23588  	defer googleapi.CloseBody(res)
 23589  	if err := googleapi.CheckResponse(res); err != nil {
 23590  		return nil, gensupport.WrapError(err)
 23591  	}
 23592  	ret := &GoogleCloudDiscoveryengineV1betaSession{
 23593  		ServerResponse: googleapi.ServerResponse{
 23594  			Header:         res.Header,
 23595  			HTTPStatusCode: res.StatusCode,
 23596  		},
 23597  	}
 23598  	target := &ret
 23599  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23600  		return nil, err
 23601  	}
 23602  	return ret, nil
 23603  }
 23604  
 23605  type ProjectsLocationsCollectionsEnginesSessionsListCall struct {
 23606  	s            *Service
 23607  	parent       string
 23608  	urlParams_   gensupport.URLParams
 23609  	ifNoneMatch_ string
 23610  	ctx_         context.Context
 23611  	header_      http.Header
 23612  }
 23613  
 23614  // List: Lists all Sessions by their parent DataStore.
 23615  //
 23616  //   - parent: The data store resource name. Format:
 23617  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 23618  //     /dataStores/{data_store_id}`.
 23619  func (r *ProjectsLocationsCollectionsEnginesSessionsService) List(parent string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 23620  	c := &ProjectsLocationsCollectionsEnginesSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23621  	c.parent = parent
 23622  	return c
 23623  }
 23624  
 23625  // Filter sets the optional parameter "filter": A filter to apply on the list
 23626  // results. The supported features are: user_pseudo_id, state. Example:
 23627  // "user_pseudo_id = some_id"
 23628  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 23629  	c.urlParams_.Set("filter", filter)
 23630  	return c
 23631  }
 23632  
 23633  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 23634  // fields to order by, sorted in ascending order. Use "desc" after a field name
 23635  // for descending. Supported fields: * `update_time` * `create_time` *
 23636  // `session_name` Example: "update_time desc" "create_time"
 23637  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 23638  	c.urlParams_.Set("orderBy", orderBy)
 23639  	return c
 23640  }
 23641  
 23642  // PageSize sets the optional parameter "pageSize": Maximum number of results
 23643  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 23644  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 23645  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 23646  	return c
 23647  }
 23648  
 23649  // PageToken sets the optional parameter "pageToken": A page token, received
 23650  // from a previous `ListSessions` call. Provide this to retrieve the subsequent
 23651  // page.
 23652  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 23653  	c.urlParams_.Set("pageToken", pageToken)
 23654  	return c
 23655  }
 23656  
 23657  // Fields allows partial responses to be retrieved. See
 23658  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23659  // details.
 23660  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 23661  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23662  	return c
 23663  }
 23664  
 23665  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23666  // object's ETag matches the given value. This is useful for getting updates
 23667  // only after the object has changed since the last request.
 23668  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 23669  	c.ifNoneMatch_ = entityTag
 23670  	return c
 23671  }
 23672  
 23673  // Context sets the context to be used in this call's Do method.
 23674  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsListCall {
 23675  	c.ctx_ = ctx
 23676  	return c
 23677  }
 23678  
 23679  // Header returns a http.Header that can be modified by the caller to add
 23680  // headers to the request.
 23681  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Header() http.Header {
 23682  	if c.header_ == nil {
 23683  		c.header_ = make(http.Header)
 23684  	}
 23685  	return c.header_
 23686  }
 23687  
 23688  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) doRequest(alt string) (*http.Response, error) {
 23689  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23690  	if c.ifNoneMatch_ != "" {
 23691  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23692  	}
 23693  	var body io.Reader = nil
 23694  	c.urlParams_.Set("alt", alt)
 23695  	c.urlParams_.Set("prettyPrint", "false")
 23696  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sessions")
 23697  	urls += "?" + c.urlParams_.Encode()
 23698  	req, err := http.NewRequest("GET", urls, body)
 23699  	if err != nil {
 23700  		return nil, err
 23701  	}
 23702  	req.Header = reqHeaders
 23703  	googleapi.Expand(req.URL, map[string]string{
 23704  		"parent": c.parent,
 23705  	})
 23706  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23707  }
 23708  
 23709  // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.list" call.
 23710  // Any non-2xx status code is an error. Response headers are in either
 23711  // *GoogleCloudDiscoveryengineV1betaListSessionsResponse.ServerResponse.Header
 23712  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 23713  // Use googleapi.IsNotModified to check whether the returned error was because
 23714  // http.StatusNotModified was returned.
 23715  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListSessionsResponse, error) {
 23716  	gensupport.SetOptions(c.urlParams_, opts...)
 23717  	res, err := c.doRequest("json")
 23718  	if res != nil && res.StatusCode == http.StatusNotModified {
 23719  		if res.Body != nil {
 23720  			res.Body.Close()
 23721  		}
 23722  		return nil, gensupport.WrapError(&googleapi.Error{
 23723  			Code:   res.StatusCode,
 23724  			Header: res.Header,
 23725  		})
 23726  	}
 23727  	if err != nil {
 23728  		return nil, err
 23729  	}
 23730  	defer googleapi.CloseBody(res)
 23731  	if err := googleapi.CheckResponse(res); err != nil {
 23732  		return nil, gensupport.WrapError(err)
 23733  	}
 23734  	ret := &GoogleCloudDiscoveryengineV1betaListSessionsResponse{
 23735  		ServerResponse: googleapi.ServerResponse{
 23736  			Header:         res.Header,
 23737  			HTTPStatusCode: res.StatusCode,
 23738  		},
 23739  	}
 23740  	target := &ret
 23741  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23742  		return nil, err
 23743  	}
 23744  	return ret, nil
 23745  }
 23746  
 23747  // Pages invokes f for each page of results.
 23748  // A non-nil error returned from f will halt the iteration.
 23749  // The provided context supersedes any context provided to the Context method.
 23750  func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListSessionsResponse) error) error {
 23751  	c.ctx_ = ctx
 23752  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 23753  	for {
 23754  		x, err := c.Do()
 23755  		if err != nil {
 23756  			return err
 23757  		}
 23758  		if err := f(x); err != nil {
 23759  			return err
 23760  		}
 23761  		if x.NextPageToken == "" {
 23762  			return nil
 23763  		}
 23764  		c.PageToken(x.NextPageToken)
 23765  	}
 23766  }
 23767  
 23768  type ProjectsLocationsCollectionsEnginesSessionsPatchCall struct {
 23769  	s                                       *Service
 23770  	name                                    string
 23771  	googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession
 23772  	urlParams_                              gensupport.URLParams
 23773  	ctx_                                    context.Context
 23774  	header_                                 http.Header
 23775  }
 23776  
 23777  // Patch: Updates a Session. Session action type cannot be changed. If the
 23778  // Session to update does not exist, a NOT_FOUND error is returned.
 23779  //
 23780  //   - name: Immutable. Fully qualified name
 23781  //     `projects/{project}/locations/global/collections/{collection}/engines/{engi
 23782  //     ne}/sessions/*`.
 23783  func (r *ProjectsLocationsCollectionsEnginesSessionsService) Patch(name string, googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
 23784  	c := &ProjectsLocationsCollectionsEnginesSessionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23785  	c.name = name
 23786  	c.googleclouddiscoveryenginev1betasession = googleclouddiscoveryenginev1betasession
 23787  	return c
 23788  }
 23789  
 23790  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 23791  // in the provided Session to update. The following are NOT supported: *
 23792  // Session.name If not set or empty, all supported fields are updated.
 23793  func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
 23794  	c.urlParams_.Set("updateMask", updateMask)
 23795  	return c
 23796  }
 23797  
 23798  // Fields allows partial responses to be retrieved. See
 23799  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23800  // details.
 23801  func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
 23802  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23803  	return c
 23804  }
 23805  
 23806  // Context sets the context to be used in this call's Do method.
 23807  func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
 23808  	c.ctx_ = ctx
 23809  	return c
 23810  }
 23811  
 23812  // Header returns a http.Header that can be modified by the caller to add
 23813  // headers to the request.
 23814  func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Header() http.Header {
 23815  	if c.header_ == nil {
 23816  		c.header_ = make(http.Header)
 23817  	}
 23818  	return c.header_
 23819  }
 23820  
 23821  func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) doRequest(alt string) (*http.Response, error) {
 23822  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 23823  	var body io.Reader = nil
 23824  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasession)
 23825  	if err != nil {
 23826  		return nil, err
 23827  	}
 23828  	c.urlParams_.Set("alt", alt)
 23829  	c.urlParams_.Set("prettyPrint", "false")
 23830  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 23831  	urls += "?" + c.urlParams_.Encode()
 23832  	req, err := http.NewRequest("PATCH", urls, body)
 23833  	if err != nil {
 23834  		return nil, err
 23835  	}
 23836  	req.Header = reqHeaders
 23837  	googleapi.Expand(req.URL, map[string]string{
 23838  		"name": c.name,
 23839  	})
 23840  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23841  }
 23842  
 23843  // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.patch" call.
 23844  // Any non-2xx status code is an error. Response headers are in either
 23845  // *GoogleCloudDiscoveryengineV1betaSession.ServerResponse.Header or (if a
 23846  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23847  // googleapi.IsNotModified to check whether the returned error was because
 23848  // http.StatusNotModified was returned.
 23849  func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
 23850  	gensupport.SetOptions(c.urlParams_, opts...)
 23851  	res, err := c.doRequest("json")
 23852  	if res != nil && res.StatusCode == http.StatusNotModified {
 23853  		if res.Body != nil {
 23854  			res.Body.Close()
 23855  		}
 23856  		return nil, gensupport.WrapError(&googleapi.Error{
 23857  			Code:   res.StatusCode,
 23858  			Header: res.Header,
 23859  		})
 23860  	}
 23861  	if err != nil {
 23862  		return nil, err
 23863  	}
 23864  	defer googleapi.CloseBody(res)
 23865  	if err := googleapi.CheckResponse(res); err != nil {
 23866  		return nil, gensupport.WrapError(err)
 23867  	}
 23868  	ret := &GoogleCloudDiscoveryengineV1betaSession{
 23869  		ServerResponse: googleapi.ServerResponse{
 23870  			Header:         res.Header,
 23871  			HTTPStatusCode: res.StatusCode,
 23872  		},
 23873  	}
 23874  	target := &ret
 23875  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23876  		return nil, err
 23877  	}
 23878  	return ret, nil
 23879  }
 23880  
 23881  type ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall struct {
 23882  	s            *Service
 23883  	name         string
 23884  	urlParams_   gensupport.URLParams
 23885  	ifNoneMatch_ string
 23886  	ctx_         context.Context
 23887  	header_      http.Header
 23888  }
 23889  
 23890  // Get: Gets a Answer.
 23891  //
 23892  //   - name: The resource name of the Answer to get. Format:
 23893  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 23894  //     /engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`.
 23895  func (r *ProjectsLocationsCollectionsEnginesSessionsAnswersService) Get(name string) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
 23896  	c := &ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 23897  	c.name = name
 23898  	return c
 23899  }
 23900  
 23901  // Fields allows partial responses to be retrieved. See
 23902  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 23903  // details.
 23904  func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
 23905  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 23906  	return c
 23907  }
 23908  
 23909  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 23910  // object's ETag matches the given value. This is useful for getting updates
 23911  // only after the object has changed since the last request.
 23912  func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
 23913  	c.ifNoneMatch_ = entityTag
 23914  	return c
 23915  }
 23916  
 23917  // Context sets the context to be used in this call's Do method.
 23918  func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
 23919  	c.ctx_ = ctx
 23920  	return c
 23921  }
 23922  
 23923  // Header returns a http.Header that can be modified by the caller to add
 23924  // headers to the request.
 23925  func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Header() http.Header {
 23926  	if c.header_ == nil {
 23927  		c.header_ = make(http.Header)
 23928  	}
 23929  	return c.header_
 23930  }
 23931  
 23932  func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) doRequest(alt string) (*http.Response, error) {
 23933  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 23934  	if c.ifNoneMatch_ != "" {
 23935  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 23936  	}
 23937  	var body io.Reader = nil
 23938  	c.urlParams_.Set("alt", alt)
 23939  	c.urlParams_.Set("prettyPrint", "false")
 23940  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 23941  	urls += "?" + c.urlParams_.Encode()
 23942  	req, err := http.NewRequest("GET", urls, body)
 23943  	if err != nil {
 23944  		return nil, err
 23945  	}
 23946  	req.Header = reqHeaders
 23947  	googleapi.Expand(req.URL, map[string]string{
 23948  		"name": c.name,
 23949  	})
 23950  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 23951  }
 23952  
 23953  // Do executes the "discoveryengine.projects.locations.collections.engines.sessions.answers.get" call.
 23954  // Any non-2xx status code is an error. Response headers are in either
 23955  // *GoogleCloudDiscoveryengineV1betaAnswer.ServerResponse.Header or (if a
 23956  // response was returned at all) in error.(*googleapi.Error).Header. Use
 23957  // googleapi.IsNotModified to check whether the returned error was because
 23958  // http.StatusNotModified was returned.
 23959  func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaAnswer, error) {
 23960  	gensupport.SetOptions(c.urlParams_, opts...)
 23961  	res, err := c.doRequest("json")
 23962  	if res != nil && res.StatusCode == http.StatusNotModified {
 23963  		if res.Body != nil {
 23964  			res.Body.Close()
 23965  		}
 23966  		return nil, gensupport.WrapError(&googleapi.Error{
 23967  			Code:   res.StatusCode,
 23968  			Header: res.Header,
 23969  		})
 23970  	}
 23971  	if err != nil {
 23972  		return nil, err
 23973  	}
 23974  	defer googleapi.CloseBody(res)
 23975  	if err := googleapi.CheckResponse(res); err != nil {
 23976  		return nil, gensupport.WrapError(err)
 23977  	}
 23978  	ret := &GoogleCloudDiscoveryengineV1betaAnswer{
 23979  		ServerResponse: googleapi.ServerResponse{
 23980  			Header:         res.Header,
 23981  			HTTPStatusCode: res.StatusCode,
 23982  		},
 23983  	}
 23984  	target := &ret
 23985  	if err := gensupport.DecodeResponse(target, res); err != nil {
 23986  		return nil, err
 23987  	}
 23988  	return ret, nil
 23989  }
 23990  
 23991  type ProjectsLocationsCollectionsOperationsGetCall struct {
 23992  	s            *Service
 23993  	name         string
 23994  	urlParams_   gensupport.URLParams
 23995  	ifNoneMatch_ string
 23996  	ctx_         context.Context
 23997  	header_      http.Header
 23998  }
 23999  
 24000  // Get: Gets the latest state of a long-running operation. Clients can use this
 24001  // method to poll the operation result at intervals as recommended by the API
 24002  // service.
 24003  //
 24004  // - name: The name of the operation resource.
 24005  func (r *ProjectsLocationsCollectionsOperationsService) Get(name string) *ProjectsLocationsCollectionsOperationsGetCall {
 24006  	c := &ProjectsLocationsCollectionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24007  	c.name = name
 24008  	return c
 24009  }
 24010  
 24011  // Fields allows partial responses to be retrieved. See
 24012  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24013  // details.
 24014  func (c *ProjectsLocationsCollectionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsOperationsGetCall {
 24015  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24016  	return c
 24017  }
 24018  
 24019  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24020  // object's ETag matches the given value. This is useful for getting updates
 24021  // only after the object has changed since the last request.
 24022  func (c *ProjectsLocationsCollectionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsOperationsGetCall {
 24023  	c.ifNoneMatch_ = entityTag
 24024  	return c
 24025  }
 24026  
 24027  // Context sets the context to be used in this call's Do method.
 24028  func (c *ProjectsLocationsCollectionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsOperationsGetCall {
 24029  	c.ctx_ = ctx
 24030  	return c
 24031  }
 24032  
 24033  // Header returns a http.Header that can be modified by the caller to add
 24034  // headers to the request.
 24035  func (c *ProjectsLocationsCollectionsOperationsGetCall) Header() http.Header {
 24036  	if c.header_ == nil {
 24037  		c.header_ = make(http.Header)
 24038  	}
 24039  	return c.header_
 24040  }
 24041  
 24042  func (c *ProjectsLocationsCollectionsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 24043  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24044  	if c.ifNoneMatch_ != "" {
 24045  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24046  	}
 24047  	var body io.Reader = nil
 24048  	c.urlParams_.Set("alt", alt)
 24049  	c.urlParams_.Set("prettyPrint", "false")
 24050  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 24051  	urls += "?" + c.urlParams_.Encode()
 24052  	req, err := http.NewRequest("GET", urls, body)
 24053  	if err != nil {
 24054  		return nil, err
 24055  	}
 24056  	req.Header = reqHeaders
 24057  	googleapi.Expand(req.URL, map[string]string{
 24058  		"name": c.name,
 24059  	})
 24060  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24061  }
 24062  
 24063  // Do executes the "discoveryengine.projects.locations.collections.operations.get" call.
 24064  // Any non-2xx status code is an error. Response headers are in either
 24065  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 24066  // returned at all) in error.(*googleapi.Error).Header. Use
 24067  // googleapi.IsNotModified to check whether the returned error was because
 24068  // http.StatusNotModified was returned.
 24069  func (c *ProjectsLocationsCollectionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 24070  	gensupport.SetOptions(c.urlParams_, opts...)
 24071  	res, err := c.doRequest("json")
 24072  	if res != nil && res.StatusCode == http.StatusNotModified {
 24073  		if res.Body != nil {
 24074  			res.Body.Close()
 24075  		}
 24076  		return nil, gensupport.WrapError(&googleapi.Error{
 24077  			Code:   res.StatusCode,
 24078  			Header: res.Header,
 24079  		})
 24080  	}
 24081  	if err != nil {
 24082  		return nil, err
 24083  	}
 24084  	defer googleapi.CloseBody(res)
 24085  	if err := googleapi.CheckResponse(res); err != nil {
 24086  		return nil, gensupport.WrapError(err)
 24087  	}
 24088  	ret := &GoogleLongrunningOperation{
 24089  		ServerResponse: googleapi.ServerResponse{
 24090  			Header:         res.Header,
 24091  			HTTPStatusCode: res.StatusCode,
 24092  		},
 24093  	}
 24094  	target := &ret
 24095  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24096  		return nil, err
 24097  	}
 24098  	return ret, nil
 24099  }
 24100  
 24101  type ProjectsLocationsCollectionsOperationsListCall struct {
 24102  	s            *Service
 24103  	name         string
 24104  	urlParams_   gensupport.URLParams
 24105  	ifNoneMatch_ string
 24106  	ctx_         context.Context
 24107  	header_      http.Header
 24108  }
 24109  
 24110  // List: Lists operations that match the specified filter in the request. If
 24111  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 24112  //
 24113  // - name: The name of the operation's parent resource.
 24114  func (r *ProjectsLocationsCollectionsOperationsService) List(name string) *ProjectsLocationsCollectionsOperationsListCall {
 24115  	c := &ProjectsLocationsCollectionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24116  	c.name = name
 24117  	return c
 24118  }
 24119  
 24120  // Filter sets the optional parameter "filter": The standard list filter.
 24121  func (c *ProjectsLocationsCollectionsOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsOperationsListCall {
 24122  	c.urlParams_.Set("filter", filter)
 24123  	return c
 24124  }
 24125  
 24126  // PageSize sets the optional parameter "pageSize": The standard list page
 24127  // size.
 24128  func (c *ProjectsLocationsCollectionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsOperationsListCall {
 24129  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24130  	return c
 24131  }
 24132  
 24133  // PageToken sets the optional parameter "pageToken": The standard list page
 24134  // token.
 24135  func (c *ProjectsLocationsCollectionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsOperationsListCall {
 24136  	c.urlParams_.Set("pageToken", pageToken)
 24137  	return c
 24138  }
 24139  
 24140  // Fields allows partial responses to be retrieved. See
 24141  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24142  // details.
 24143  func (c *ProjectsLocationsCollectionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsOperationsListCall {
 24144  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24145  	return c
 24146  }
 24147  
 24148  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24149  // object's ETag matches the given value. This is useful for getting updates
 24150  // only after the object has changed since the last request.
 24151  func (c *ProjectsLocationsCollectionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsOperationsListCall {
 24152  	c.ifNoneMatch_ = entityTag
 24153  	return c
 24154  }
 24155  
 24156  // Context sets the context to be used in this call's Do method.
 24157  func (c *ProjectsLocationsCollectionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsOperationsListCall {
 24158  	c.ctx_ = ctx
 24159  	return c
 24160  }
 24161  
 24162  // Header returns a http.Header that can be modified by the caller to add
 24163  // headers to the request.
 24164  func (c *ProjectsLocationsCollectionsOperationsListCall) Header() http.Header {
 24165  	if c.header_ == nil {
 24166  		c.header_ = make(http.Header)
 24167  	}
 24168  	return c.header_
 24169  }
 24170  
 24171  func (c *ProjectsLocationsCollectionsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 24172  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24173  	if c.ifNoneMatch_ != "" {
 24174  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24175  	}
 24176  	var body io.Reader = nil
 24177  	c.urlParams_.Set("alt", alt)
 24178  	c.urlParams_.Set("prettyPrint", "false")
 24179  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 24180  	urls += "?" + c.urlParams_.Encode()
 24181  	req, err := http.NewRequest("GET", urls, body)
 24182  	if err != nil {
 24183  		return nil, err
 24184  	}
 24185  	req.Header = reqHeaders
 24186  	googleapi.Expand(req.URL, map[string]string{
 24187  		"name": c.name,
 24188  	})
 24189  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24190  }
 24191  
 24192  // Do executes the "discoveryengine.projects.locations.collections.operations.list" call.
 24193  // Any non-2xx status code is an error. Response headers are in either
 24194  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 24195  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24196  // googleapi.IsNotModified to check whether the returned error was because
 24197  // http.StatusNotModified was returned.
 24198  func (c *ProjectsLocationsCollectionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 24199  	gensupport.SetOptions(c.urlParams_, opts...)
 24200  	res, err := c.doRequest("json")
 24201  	if res != nil && res.StatusCode == http.StatusNotModified {
 24202  		if res.Body != nil {
 24203  			res.Body.Close()
 24204  		}
 24205  		return nil, gensupport.WrapError(&googleapi.Error{
 24206  			Code:   res.StatusCode,
 24207  			Header: res.Header,
 24208  		})
 24209  	}
 24210  	if err != nil {
 24211  		return nil, err
 24212  	}
 24213  	defer googleapi.CloseBody(res)
 24214  	if err := googleapi.CheckResponse(res); err != nil {
 24215  		return nil, gensupport.WrapError(err)
 24216  	}
 24217  	ret := &GoogleLongrunningListOperationsResponse{
 24218  		ServerResponse: googleapi.ServerResponse{
 24219  			Header:         res.Header,
 24220  			HTTPStatusCode: res.StatusCode,
 24221  		},
 24222  	}
 24223  	target := &ret
 24224  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24225  		return nil, err
 24226  	}
 24227  	return ret, nil
 24228  }
 24229  
 24230  // Pages invokes f for each page of results.
 24231  // A non-nil error returned from f will halt the iteration.
 24232  // The provided context supersedes any context provided to the Context method.
 24233  func (c *ProjectsLocationsCollectionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 24234  	c.ctx_ = ctx
 24235  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 24236  	for {
 24237  		x, err := c.Do()
 24238  		if err != nil {
 24239  			return err
 24240  		}
 24241  		if err := f(x); err != nil {
 24242  			return err
 24243  		}
 24244  		if x.NextPageToken == "" {
 24245  			return nil
 24246  		}
 24247  		c.PageToken(x.NextPageToken)
 24248  	}
 24249  }
 24250  
 24251  type ProjectsLocationsDataStoresCompleteQueryCall struct {
 24252  	s            *Service
 24253  	dataStore    string
 24254  	urlParams_   gensupport.URLParams
 24255  	ifNoneMatch_ string
 24256  	ctx_         context.Context
 24257  	header_      http.Header
 24258  }
 24259  
 24260  // CompleteQuery: Completes the specified user input with keyword suggestions.
 24261  //
 24262  //   - dataStore: The parent data store resource name for which the completion is
 24263  //     performed, such as
 24264  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 24265  //     ult_data_store`.
 24266  func (r *ProjectsLocationsDataStoresService) CompleteQuery(dataStore string) *ProjectsLocationsDataStoresCompleteQueryCall {
 24267  	c := &ProjectsLocationsDataStoresCompleteQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24268  	c.dataStore = dataStore
 24269  	return c
 24270  }
 24271  
 24272  // IncludeTailSuggestions sets the optional parameter "includeTailSuggestions":
 24273  // Indicates if tail suggestions should be returned if there are no suggestions
 24274  // that match the full query. Even if set to true, if there are suggestions
 24275  // that match the full query, those are returned and no tail suggestions are
 24276  // returned.
 24277  func (c *ProjectsLocationsDataStoresCompleteQueryCall) IncludeTailSuggestions(includeTailSuggestions bool) *ProjectsLocationsDataStoresCompleteQueryCall {
 24278  	c.urlParams_.Set("includeTailSuggestions", fmt.Sprint(includeTailSuggestions))
 24279  	return c
 24280  }
 24281  
 24282  // Query sets the optional parameter "query": Required. The typeahead input
 24283  // used to fetch suggestions. Maximum length is 128 characters.
 24284  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Query(query string) *ProjectsLocationsDataStoresCompleteQueryCall {
 24285  	c.urlParams_.Set("query", query)
 24286  	return c
 24287  }
 24288  
 24289  // QueryModel sets the optional parameter "queryModel": Specifies the
 24290  // autocomplete data model. This overrides any model specified in the
 24291  // Configuration > Autocomplete section of the Cloud console. Currently
 24292  // supported values: * `document` - Using suggestions generated from
 24293  // user-imported documents. * `search-history` - Using suggestions generated
 24294  // from the past history of SearchService.Search API calls. Do not use it when
 24295  // there is no traffic for Search API. * `user-event` - Using suggestions
 24296  // generated from user-imported search events. * `document-completable` - Using
 24297  // suggestions taken directly from user-imported document fields marked as
 24298  // completable. Default values: * `document` is the default model for regular
 24299  // dataStores. * `search-history` is the default model for site search
 24300  // dataStores.
 24301  func (c *ProjectsLocationsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsDataStoresCompleteQueryCall {
 24302  	c.urlParams_.Set("queryModel", queryModel)
 24303  	return c
 24304  }
 24305  
 24306  // UserPseudoId sets the optional parameter "userPseudoId": A unique identifier
 24307  // for tracking visitors. For example, this could be implemented with an HTTP
 24308  // cookie, which should be able to uniquely identify a visitor on a single
 24309  // device. This unique identifier should not change if the visitor logs in or
 24310  // out of the website. This field should NOT have a fixed value such as
 24311  // `unknown_visitor`. This should be the same identifier as
 24312  // UserEvent.user_pseudo_id and SearchRequest.user_pseudo_id. The field must be
 24313  // a UTF-8 encoded string with a length limit of 128 characters. Otherwise, an
 24314  // `INVALID_ARGUMENT` error is returned.
 24315  func (c *ProjectsLocationsDataStoresCompleteQueryCall) UserPseudoId(userPseudoId string) *ProjectsLocationsDataStoresCompleteQueryCall {
 24316  	c.urlParams_.Set("userPseudoId", userPseudoId)
 24317  	return c
 24318  }
 24319  
 24320  // Fields allows partial responses to be retrieved. See
 24321  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24322  // details.
 24323  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresCompleteQueryCall {
 24324  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24325  	return c
 24326  }
 24327  
 24328  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24329  // object's ETag matches the given value. This is useful for getting updates
 24330  // only after the object has changed since the last request.
 24331  func (c *ProjectsLocationsDataStoresCompleteQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresCompleteQueryCall {
 24332  	c.ifNoneMatch_ = entityTag
 24333  	return c
 24334  }
 24335  
 24336  // Context sets the context to be used in this call's Do method.
 24337  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Context(ctx context.Context) *ProjectsLocationsDataStoresCompleteQueryCall {
 24338  	c.ctx_ = ctx
 24339  	return c
 24340  }
 24341  
 24342  // Header returns a http.Header that can be modified by the caller to add
 24343  // headers to the request.
 24344  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Header() http.Header {
 24345  	if c.header_ == nil {
 24346  		c.header_ = make(http.Header)
 24347  	}
 24348  	return c.header_
 24349  }
 24350  
 24351  func (c *ProjectsLocationsDataStoresCompleteQueryCall) doRequest(alt string) (*http.Response, error) {
 24352  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24353  	if c.ifNoneMatch_ != "" {
 24354  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24355  	}
 24356  	var body io.Reader = nil
 24357  	c.urlParams_.Set("alt", alt)
 24358  	c.urlParams_.Set("prettyPrint", "false")
 24359  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+dataStore}:completeQuery")
 24360  	urls += "?" + c.urlParams_.Encode()
 24361  	req, err := http.NewRequest("GET", urls, body)
 24362  	if err != nil {
 24363  		return nil, err
 24364  	}
 24365  	req.Header = reqHeaders
 24366  	googleapi.Expand(req.URL, map[string]string{
 24367  		"dataStore": c.dataStore,
 24368  	})
 24369  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24370  }
 24371  
 24372  // Do executes the "discoveryengine.projects.locations.dataStores.completeQuery" call.
 24373  // Any non-2xx status code is an error. Response headers are in either
 24374  // *GoogleCloudDiscoveryengineV1betaCompleteQueryResponse.ServerResponse.Header
 24375  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 24376  // Use googleapi.IsNotModified to check whether the returned error was because
 24377  // http.StatusNotModified was returned.
 24378  func (c *ProjectsLocationsDataStoresCompleteQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaCompleteQueryResponse, error) {
 24379  	gensupport.SetOptions(c.urlParams_, opts...)
 24380  	res, err := c.doRequest("json")
 24381  	if res != nil && res.StatusCode == http.StatusNotModified {
 24382  		if res.Body != nil {
 24383  			res.Body.Close()
 24384  		}
 24385  		return nil, gensupport.WrapError(&googleapi.Error{
 24386  			Code:   res.StatusCode,
 24387  			Header: res.Header,
 24388  		})
 24389  	}
 24390  	if err != nil {
 24391  		return nil, err
 24392  	}
 24393  	defer googleapi.CloseBody(res)
 24394  	if err := googleapi.CheckResponse(res); err != nil {
 24395  		return nil, gensupport.WrapError(err)
 24396  	}
 24397  	ret := &GoogleCloudDiscoveryengineV1betaCompleteQueryResponse{
 24398  		ServerResponse: googleapi.ServerResponse{
 24399  			Header:         res.Header,
 24400  			HTTPStatusCode: res.StatusCode,
 24401  		},
 24402  	}
 24403  	target := &ret
 24404  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24405  		return nil, err
 24406  	}
 24407  	return ret, nil
 24408  }
 24409  
 24410  type ProjectsLocationsDataStoresCreateCall struct {
 24411  	s                                         *Service
 24412  	parent                                    string
 24413  	googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore
 24414  	urlParams_                                gensupport.URLParams
 24415  	ctx_                                      context.Context
 24416  	header_                                   http.Header
 24417  }
 24418  
 24419  // Create: Creates a DataStore. DataStore is for storing Documents. To serve
 24420  // these documents for Search, or Recommendation use case, an Engine needs to
 24421  // be created separately.
 24422  //
 24423  //   - parent: The parent resource name, such as
 24424  //     `projects/{project}/locations/{location}/collections/{collection}`.
 24425  func (r *ProjectsLocationsDataStoresService) Create(parent string, googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore) *ProjectsLocationsDataStoresCreateCall {
 24426  	c := &ProjectsLocationsDataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24427  	c.parent = parent
 24428  	c.googleclouddiscoveryenginev1betadatastore = googleclouddiscoveryenginev1betadatastore
 24429  	return c
 24430  }
 24431  
 24432  // CreateAdvancedSiteSearch sets the optional parameter
 24433  // "createAdvancedSiteSearch": A boolean flag indicating whether user want to
 24434  // directly create an advanced data store for site search. If the data store is
 24435  // not configured as site search (GENERIC vertical and PUBLIC_WEBSITE
 24436  // content_config), this flag will be ignored.
 24437  func (c *ProjectsLocationsDataStoresCreateCall) CreateAdvancedSiteSearch(createAdvancedSiteSearch bool) *ProjectsLocationsDataStoresCreateCall {
 24438  	c.urlParams_.Set("createAdvancedSiteSearch", fmt.Sprint(createAdvancedSiteSearch))
 24439  	return c
 24440  }
 24441  
 24442  // DataStoreId sets the optional parameter "dataStoreId": Required. The ID to
 24443  // use for the DataStore, which will become the final component of the
 24444  // DataStore's resource name. This field must conform to RFC-1034
 24445  // (https://tools.ietf.org/html/rfc1034) standard with a length limit of 63
 24446  // characters. Otherwise, an INVALID_ARGUMENT error is returned.
 24447  func (c *ProjectsLocationsDataStoresCreateCall) DataStoreId(dataStoreId string) *ProjectsLocationsDataStoresCreateCall {
 24448  	c.urlParams_.Set("dataStoreId", dataStoreId)
 24449  	return c
 24450  }
 24451  
 24452  // Fields allows partial responses to be retrieved. See
 24453  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24454  // details.
 24455  func (c *ProjectsLocationsDataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresCreateCall {
 24456  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24457  	return c
 24458  }
 24459  
 24460  // Context sets the context to be used in this call's Do method.
 24461  func (c *ProjectsLocationsDataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresCreateCall {
 24462  	c.ctx_ = ctx
 24463  	return c
 24464  }
 24465  
 24466  // Header returns a http.Header that can be modified by the caller to add
 24467  // headers to the request.
 24468  func (c *ProjectsLocationsDataStoresCreateCall) Header() http.Header {
 24469  	if c.header_ == nil {
 24470  		c.header_ = make(http.Header)
 24471  	}
 24472  	return c.header_
 24473  }
 24474  
 24475  func (c *ProjectsLocationsDataStoresCreateCall) doRequest(alt string) (*http.Response, error) {
 24476  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 24477  	var body io.Reader = nil
 24478  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadatastore)
 24479  	if err != nil {
 24480  		return nil, err
 24481  	}
 24482  	c.urlParams_.Set("alt", alt)
 24483  	c.urlParams_.Set("prettyPrint", "false")
 24484  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/dataStores")
 24485  	urls += "?" + c.urlParams_.Encode()
 24486  	req, err := http.NewRequest("POST", urls, body)
 24487  	if err != nil {
 24488  		return nil, err
 24489  	}
 24490  	req.Header = reqHeaders
 24491  	googleapi.Expand(req.URL, map[string]string{
 24492  		"parent": c.parent,
 24493  	})
 24494  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24495  }
 24496  
 24497  // Do executes the "discoveryengine.projects.locations.dataStores.create" call.
 24498  // Any non-2xx status code is an error. Response headers are in either
 24499  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 24500  // returned at all) in error.(*googleapi.Error).Header. Use
 24501  // googleapi.IsNotModified to check whether the returned error was because
 24502  // http.StatusNotModified was returned.
 24503  func (c *ProjectsLocationsDataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 24504  	gensupport.SetOptions(c.urlParams_, opts...)
 24505  	res, err := c.doRequest("json")
 24506  	if res != nil && res.StatusCode == http.StatusNotModified {
 24507  		if res.Body != nil {
 24508  			res.Body.Close()
 24509  		}
 24510  		return nil, gensupport.WrapError(&googleapi.Error{
 24511  			Code:   res.StatusCode,
 24512  			Header: res.Header,
 24513  		})
 24514  	}
 24515  	if err != nil {
 24516  		return nil, err
 24517  	}
 24518  	defer googleapi.CloseBody(res)
 24519  	if err := googleapi.CheckResponse(res); err != nil {
 24520  		return nil, gensupport.WrapError(err)
 24521  	}
 24522  	ret := &GoogleLongrunningOperation{
 24523  		ServerResponse: googleapi.ServerResponse{
 24524  			Header:         res.Header,
 24525  			HTTPStatusCode: res.StatusCode,
 24526  		},
 24527  	}
 24528  	target := &ret
 24529  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24530  		return nil, err
 24531  	}
 24532  	return ret, nil
 24533  }
 24534  
 24535  type ProjectsLocationsDataStoresDeleteCall struct {
 24536  	s          *Service
 24537  	name       string
 24538  	urlParams_ gensupport.URLParams
 24539  	ctx_       context.Context
 24540  	header_    http.Header
 24541  }
 24542  
 24543  // Delete: Deletes a DataStore.
 24544  //
 24545  //   - name: Full resource name of DataStore, such as
 24546  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 24547  //     ores/{data_store_id}`. If the caller does not have permission to delete
 24548  //     the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED
 24549  //     error is returned. If the DataStore to delete does not exist, a NOT_FOUND
 24550  //     error is returned.
 24551  func (r *ProjectsLocationsDataStoresService) Delete(name string) *ProjectsLocationsDataStoresDeleteCall {
 24552  	c := &ProjectsLocationsDataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24553  	c.name = name
 24554  	return c
 24555  }
 24556  
 24557  // Fields allows partial responses to be retrieved. See
 24558  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24559  // details.
 24560  func (c *ProjectsLocationsDataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresDeleteCall {
 24561  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24562  	return c
 24563  }
 24564  
 24565  // Context sets the context to be used in this call's Do method.
 24566  func (c *ProjectsLocationsDataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresDeleteCall {
 24567  	c.ctx_ = ctx
 24568  	return c
 24569  }
 24570  
 24571  // Header returns a http.Header that can be modified by the caller to add
 24572  // headers to the request.
 24573  func (c *ProjectsLocationsDataStoresDeleteCall) Header() http.Header {
 24574  	if c.header_ == nil {
 24575  		c.header_ = make(http.Header)
 24576  	}
 24577  	return c.header_
 24578  }
 24579  
 24580  func (c *ProjectsLocationsDataStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
 24581  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24582  	var body io.Reader = nil
 24583  	c.urlParams_.Set("alt", alt)
 24584  	c.urlParams_.Set("prettyPrint", "false")
 24585  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 24586  	urls += "?" + c.urlParams_.Encode()
 24587  	req, err := http.NewRequest("DELETE", urls, body)
 24588  	if err != nil {
 24589  		return nil, err
 24590  	}
 24591  	req.Header = reqHeaders
 24592  	googleapi.Expand(req.URL, map[string]string{
 24593  		"name": c.name,
 24594  	})
 24595  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24596  }
 24597  
 24598  // Do executes the "discoveryengine.projects.locations.dataStores.delete" call.
 24599  // Any non-2xx status code is an error. Response headers are in either
 24600  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 24601  // returned at all) in error.(*googleapi.Error).Header. Use
 24602  // googleapi.IsNotModified to check whether the returned error was because
 24603  // http.StatusNotModified was returned.
 24604  func (c *ProjectsLocationsDataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 24605  	gensupport.SetOptions(c.urlParams_, opts...)
 24606  	res, err := c.doRequest("json")
 24607  	if res != nil && res.StatusCode == http.StatusNotModified {
 24608  		if res.Body != nil {
 24609  			res.Body.Close()
 24610  		}
 24611  		return nil, gensupport.WrapError(&googleapi.Error{
 24612  			Code:   res.StatusCode,
 24613  			Header: res.Header,
 24614  		})
 24615  	}
 24616  	if err != nil {
 24617  		return nil, err
 24618  	}
 24619  	defer googleapi.CloseBody(res)
 24620  	if err := googleapi.CheckResponse(res); err != nil {
 24621  		return nil, gensupport.WrapError(err)
 24622  	}
 24623  	ret := &GoogleLongrunningOperation{
 24624  		ServerResponse: googleapi.ServerResponse{
 24625  			Header:         res.Header,
 24626  			HTTPStatusCode: res.StatusCode,
 24627  		},
 24628  	}
 24629  	target := &ret
 24630  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24631  		return nil, err
 24632  	}
 24633  	return ret, nil
 24634  }
 24635  
 24636  type ProjectsLocationsDataStoresGetCall struct {
 24637  	s            *Service
 24638  	name         string
 24639  	urlParams_   gensupport.URLParams
 24640  	ifNoneMatch_ string
 24641  	ctx_         context.Context
 24642  	header_      http.Header
 24643  }
 24644  
 24645  // Get: Gets a DataStore.
 24646  //
 24647  //   - name: Full resource name of DataStore, such as
 24648  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 24649  //     ores/{data_store_id}`. If the caller does not have permission to access
 24650  //     the DataStore, regardless of whether or not it exists, a PERMISSION_DENIED
 24651  //     error is returned. If the requested DataStore does not exist, a NOT_FOUND
 24652  //     error is returned.
 24653  func (r *ProjectsLocationsDataStoresService) Get(name string) *ProjectsLocationsDataStoresGetCall {
 24654  	c := &ProjectsLocationsDataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24655  	c.name = name
 24656  	return c
 24657  }
 24658  
 24659  // Fields allows partial responses to be retrieved. See
 24660  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24661  // details.
 24662  func (c *ProjectsLocationsDataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetCall {
 24663  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24664  	return c
 24665  }
 24666  
 24667  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24668  // object's ETag matches the given value. This is useful for getting updates
 24669  // only after the object has changed since the last request.
 24670  func (c *ProjectsLocationsDataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetCall {
 24671  	c.ifNoneMatch_ = entityTag
 24672  	return c
 24673  }
 24674  
 24675  // Context sets the context to be used in this call's Do method.
 24676  func (c *ProjectsLocationsDataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetCall {
 24677  	c.ctx_ = ctx
 24678  	return c
 24679  }
 24680  
 24681  // Header returns a http.Header that can be modified by the caller to add
 24682  // headers to the request.
 24683  func (c *ProjectsLocationsDataStoresGetCall) Header() http.Header {
 24684  	if c.header_ == nil {
 24685  		c.header_ = make(http.Header)
 24686  	}
 24687  	return c.header_
 24688  }
 24689  
 24690  func (c *ProjectsLocationsDataStoresGetCall) doRequest(alt string) (*http.Response, error) {
 24691  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24692  	if c.ifNoneMatch_ != "" {
 24693  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24694  	}
 24695  	var body io.Reader = nil
 24696  	c.urlParams_.Set("alt", alt)
 24697  	c.urlParams_.Set("prettyPrint", "false")
 24698  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 24699  	urls += "?" + c.urlParams_.Encode()
 24700  	req, err := http.NewRequest("GET", urls, body)
 24701  	if err != nil {
 24702  		return nil, err
 24703  	}
 24704  	req.Header = reqHeaders
 24705  	googleapi.Expand(req.URL, map[string]string{
 24706  		"name": c.name,
 24707  	})
 24708  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24709  }
 24710  
 24711  // Do executes the "discoveryengine.projects.locations.dataStores.get" call.
 24712  // Any non-2xx status code is an error. Response headers are in either
 24713  // *GoogleCloudDiscoveryengineV1betaDataStore.ServerResponse.Header or (if a
 24714  // response was returned at all) in error.(*googleapi.Error).Header. Use
 24715  // googleapi.IsNotModified to check whether the returned error was because
 24716  // http.StatusNotModified was returned.
 24717  func (c *ProjectsLocationsDataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDataStore, error) {
 24718  	gensupport.SetOptions(c.urlParams_, opts...)
 24719  	res, err := c.doRequest("json")
 24720  	if res != nil && res.StatusCode == http.StatusNotModified {
 24721  		if res.Body != nil {
 24722  			res.Body.Close()
 24723  		}
 24724  		return nil, gensupport.WrapError(&googleapi.Error{
 24725  			Code:   res.StatusCode,
 24726  			Header: res.Header,
 24727  		})
 24728  	}
 24729  	if err != nil {
 24730  		return nil, err
 24731  	}
 24732  	defer googleapi.CloseBody(res)
 24733  	if err := googleapi.CheckResponse(res); err != nil {
 24734  		return nil, gensupport.WrapError(err)
 24735  	}
 24736  	ret := &GoogleCloudDiscoveryengineV1betaDataStore{
 24737  		ServerResponse: googleapi.ServerResponse{
 24738  			Header:         res.Header,
 24739  			HTTPStatusCode: res.StatusCode,
 24740  		},
 24741  	}
 24742  	target := &ret
 24743  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24744  		return nil, err
 24745  	}
 24746  	return ret, nil
 24747  }
 24748  
 24749  type ProjectsLocationsDataStoresGetSiteSearchEngineCall struct {
 24750  	s            *Service
 24751  	name         string
 24752  	urlParams_   gensupport.URLParams
 24753  	ifNoneMatch_ string
 24754  	ctx_         context.Context
 24755  	header_      http.Header
 24756  }
 24757  
 24758  // GetSiteSearchEngine: Gets the SiteSearchEngine.
 24759  //
 24760  //   - name: Resource name of SiteSearchEngine, such as
 24761  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 24762  //     s/{data_store}/siteSearchEngine`. If the caller does not have permission
 24763  //     to access the [SiteSearchEngine], regardless of whether or not it exists,
 24764  //     a PERMISSION_DENIED error is returned.
 24765  func (r *ProjectsLocationsDataStoresService) GetSiteSearchEngine(name string) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
 24766  	c := &ProjectsLocationsDataStoresGetSiteSearchEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24767  	c.name = name
 24768  	return c
 24769  }
 24770  
 24771  // Fields allows partial responses to be retrieved. See
 24772  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24773  // details.
 24774  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
 24775  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24776  	return c
 24777  }
 24778  
 24779  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24780  // object's ETag matches the given value. This is useful for getting updates
 24781  // only after the object has changed since the last request.
 24782  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
 24783  	c.ifNoneMatch_ = entityTag
 24784  	return c
 24785  }
 24786  
 24787  // Context sets the context to be used in this call's Do method.
 24788  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
 24789  	c.ctx_ = ctx
 24790  	return c
 24791  }
 24792  
 24793  // Header returns a http.Header that can be modified by the caller to add
 24794  // headers to the request.
 24795  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Header() http.Header {
 24796  	if c.header_ == nil {
 24797  		c.header_ = make(http.Header)
 24798  	}
 24799  	return c.header_
 24800  }
 24801  
 24802  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) doRequest(alt string) (*http.Response, error) {
 24803  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24804  	if c.ifNoneMatch_ != "" {
 24805  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24806  	}
 24807  	var body io.Reader = nil
 24808  	c.urlParams_.Set("alt", alt)
 24809  	c.urlParams_.Set("prettyPrint", "false")
 24810  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 24811  	urls += "?" + c.urlParams_.Encode()
 24812  	req, err := http.NewRequest("GET", urls, body)
 24813  	if err != nil {
 24814  		return nil, err
 24815  	}
 24816  	req.Header = reqHeaders
 24817  	googleapi.Expand(req.URL, map[string]string{
 24818  		"name": c.name,
 24819  	})
 24820  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24821  }
 24822  
 24823  // Do executes the "discoveryengine.projects.locations.dataStores.getSiteSearchEngine" call.
 24824  // Any non-2xx status code is an error. Response headers are in either
 24825  // *GoogleCloudDiscoveryengineV1betaSiteSearchEngine.ServerResponse.Header or
 24826  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 24827  // googleapi.IsNotModified to check whether the returned error was because
 24828  // http.StatusNotModified was returned.
 24829  func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSiteSearchEngine, error) {
 24830  	gensupport.SetOptions(c.urlParams_, opts...)
 24831  	res, err := c.doRequest("json")
 24832  	if res != nil && res.StatusCode == http.StatusNotModified {
 24833  		if res.Body != nil {
 24834  			res.Body.Close()
 24835  		}
 24836  		return nil, gensupport.WrapError(&googleapi.Error{
 24837  			Code:   res.StatusCode,
 24838  			Header: res.Header,
 24839  		})
 24840  	}
 24841  	if err != nil {
 24842  		return nil, err
 24843  	}
 24844  	defer googleapi.CloseBody(res)
 24845  	if err := googleapi.CheckResponse(res); err != nil {
 24846  		return nil, gensupport.WrapError(err)
 24847  	}
 24848  	ret := &GoogleCloudDiscoveryengineV1betaSiteSearchEngine{
 24849  		ServerResponse: googleapi.ServerResponse{
 24850  			Header:         res.Header,
 24851  			HTTPStatusCode: res.StatusCode,
 24852  		},
 24853  	}
 24854  	target := &ret
 24855  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24856  		return nil, err
 24857  	}
 24858  	return ret, nil
 24859  }
 24860  
 24861  type ProjectsLocationsDataStoresListCall struct {
 24862  	s            *Service
 24863  	parent       string
 24864  	urlParams_   gensupport.URLParams
 24865  	ifNoneMatch_ string
 24866  	ctx_         context.Context
 24867  	header_      http.Header
 24868  }
 24869  
 24870  // List: Lists all the DataStores associated with the project.
 24871  //
 24872  //   - parent: The parent branch resource name, such as
 24873  //     `projects/{project}/locations/{location}/collections/{collection_id}`. If
 24874  //     the caller does not have permission to list DataStores under this
 24875  //     location, regardless of whether or not this data store exists, a
 24876  //     PERMISSION_DENIED error is returned.
 24877  func (r *ProjectsLocationsDataStoresService) List(parent string) *ProjectsLocationsDataStoresListCall {
 24878  	c := &ProjectsLocationsDataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 24879  	c.parent = parent
 24880  	return c
 24881  }
 24882  
 24883  // Filter sets the optional parameter "filter": Filter by solution type . For
 24884  // example: filter = 'solution_type:SOLUTION_TYPE_SEARCH'
 24885  func (c *ProjectsLocationsDataStoresListCall) Filter(filter string) *ProjectsLocationsDataStoresListCall {
 24886  	c.urlParams_.Set("filter", filter)
 24887  	return c
 24888  }
 24889  
 24890  // PageSize sets the optional parameter "pageSize": Maximum number of
 24891  // DataStores to return. If unspecified, defaults to 10. The maximum allowed
 24892  // value is 50. Values above 50 will be coerced to 50. If this field is
 24893  // negative, an INVALID_ARGUMENT is returned.
 24894  func (c *ProjectsLocationsDataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresListCall {
 24895  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 24896  	return c
 24897  }
 24898  
 24899  // PageToken sets the optional parameter "pageToken": A page token
 24900  // ListDataStoresResponse.next_page_token, received from a previous
 24901  // DataStoreService.ListDataStores call. Provide this to retrieve the
 24902  // subsequent page. When paginating, all other parameters provided to
 24903  // DataStoreService.ListDataStores must match the call that provided the page
 24904  // token. Otherwise, an INVALID_ARGUMENT error is returned.
 24905  func (c *ProjectsLocationsDataStoresListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresListCall {
 24906  	c.urlParams_.Set("pageToken", pageToken)
 24907  	return c
 24908  }
 24909  
 24910  // Fields allows partial responses to be retrieved. See
 24911  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 24912  // details.
 24913  func (c *ProjectsLocationsDataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresListCall {
 24914  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 24915  	return c
 24916  }
 24917  
 24918  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 24919  // object's ETag matches the given value. This is useful for getting updates
 24920  // only after the object has changed since the last request.
 24921  func (c *ProjectsLocationsDataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresListCall {
 24922  	c.ifNoneMatch_ = entityTag
 24923  	return c
 24924  }
 24925  
 24926  // Context sets the context to be used in this call's Do method.
 24927  func (c *ProjectsLocationsDataStoresListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresListCall {
 24928  	c.ctx_ = ctx
 24929  	return c
 24930  }
 24931  
 24932  // Header returns a http.Header that can be modified by the caller to add
 24933  // headers to the request.
 24934  func (c *ProjectsLocationsDataStoresListCall) Header() http.Header {
 24935  	if c.header_ == nil {
 24936  		c.header_ = make(http.Header)
 24937  	}
 24938  	return c.header_
 24939  }
 24940  
 24941  func (c *ProjectsLocationsDataStoresListCall) doRequest(alt string) (*http.Response, error) {
 24942  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 24943  	if c.ifNoneMatch_ != "" {
 24944  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 24945  	}
 24946  	var body io.Reader = nil
 24947  	c.urlParams_.Set("alt", alt)
 24948  	c.urlParams_.Set("prettyPrint", "false")
 24949  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/dataStores")
 24950  	urls += "?" + c.urlParams_.Encode()
 24951  	req, err := http.NewRequest("GET", urls, body)
 24952  	if err != nil {
 24953  		return nil, err
 24954  	}
 24955  	req.Header = reqHeaders
 24956  	googleapi.Expand(req.URL, map[string]string{
 24957  		"parent": c.parent,
 24958  	})
 24959  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 24960  }
 24961  
 24962  // Do executes the "discoveryengine.projects.locations.dataStores.list" call.
 24963  // Any non-2xx status code is an error. Response headers are in either
 24964  // *GoogleCloudDiscoveryengineV1betaListDataStoresResponse.ServerResponse.Header
 24965  //
 24966  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 24967  //
 24968  // Use googleapi.IsNotModified to check whether the returned error was because
 24969  // http.StatusNotModified was returned.
 24970  func (c *ProjectsLocationsDataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListDataStoresResponse, error) {
 24971  	gensupport.SetOptions(c.urlParams_, opts...)
 24972  	res, err := c.doRequest("json")
 24973  	if res != nil && res.StatusCode == http.StatusNotModified {
 24974  		if res.Body != nil {
 24975  			res.Body.Close()
 24976  		}
 24977  		return nil, gensupport.WrapError(&googleapi.Error{
 24978  			Code:   res.StatusCode,
 24979  			Header: res.Header,
 24980  		})
 24981  	}
 24982  	if err != nil {
 24983  		return nil, err
 24984  	}
 24985  	defer googleapi.CloseBody(res)
 24986  	if err := googleapi.CheckResponse(res); err != nil {
 24987  		return nil, gensupport.WrapError(err)
 24988  	}
 24989  	ret := &GoogleCloudDiscoveryengineV1betaListDataStoresResponse{
 24990  		ServerResponse: googleapi.ServerResponse{
 24991  			Header:         res.Header,
 24992  			HTTPStatusCode: res.StatusCode,
 24993  		},
 24994  	}
 24995  	target := &ret
 24996  	if err := gensupport.DecodeResponse(target, res); err != nil {
 24997  		return nil, err
 24998  	}
 24999  	return ret, nil
 25000  }
 25001  
 25002  // Pages invokes f for each page of results.
 25003  // A non-nil error returned from f will halt the iteration.
 25004  // The provided context supersedes any context provided to the Context method.
 25005  func (c *ProjectsLocationsDataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListDataStoresResponse) error) error {
 25006  	c.ctx_ = ctx
 25007  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25008  	for {
 25009  		x, err := c.Do()
 25010  		if err != nil {
 25011  			return err
 25012  		}
 25013  		if err := f(x); err != nil {
 25014  			return err
 25015  		}
 25016  		if x.NextPageToken == "" {
 25017  			return nil
 25018  		}
 25019  		c.PageToken(x.NextPageToken)
 25020  	}
 25021  }
 25022  
 25023  type ProjectsLocationsDataStoresPatchCall struct {
 25024  	s                                         *Service
 25025  	name                                      string
 25026  	googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore
 25027  	urlParams_                                gensupport.URLParams
 25028  	ctx_                                      context.Context
 25029  	header_                                   http.Header
 25030  }
 25031  
 25032  // Patch: Updates a DataStore
 25033  //
 25034  //   - name: Immutable. The full resource name of the data store. Format:
 25035  //     `projects/{project}/locations/{location}/collections/{collection_id}/dataSt
 25036  //     ores/{data_store_id}`. This field must be a UTF-8 encoded string with a
 25037  //     length limit of 1024 characters.
 25038  func (r *ProjectsLocationsDataStoresService) Patch(name string, googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore) *ProjectsLocationsDataStoresPatchCall {
 25039  	c := &ProjectsLocationsDataStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25040  	c.name = name
 25041  	c.googleclouddiscoveryenginev1betadatastore = googleclouddiscoveryenginev1betadatastore
 25042  	return c
 25043  }
 25044  
 25045  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 25046  // in the provided DataStore to update. If an unsupported or unknown field is
 25047  // provided, an INVALID_ARGUMENT error is returned.
 25048  func (c *ProjectsLocationsDataStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresPatchCall {
 25049  	c.urlParams_.Set("updateMask", updateMask)
 25050  	return c
 25051  }
 25052  
 25053  // Fields allows partial responses to be retrieved. See
 25054  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25055  // details.
 25056  func (c *ProjectsLocationsDataStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresPatchCall {
 25057  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25058  	return c
 25059  }
 25060  
 25061  // Context sets the context to be used in this call's Do method.
 25062  func (c *ProjectsLocationsDataStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresPatchCall {
 25063  	c.ctx_ = ctx
 25064  	return c
 25065  }
 25066  
 25067  // Header returns a http.Header that can be modified by the caller to add
 25068  // headers to the request.
 25069  func (c *ProjectsLocationsDataStoresPatchCall) Header() http.Header {
 25070  	if c.header_ == nil {
 25071  		c.header_ = make(http.Header)
 25072  	}
 25073  	return c.header_
 25074  }
 25075  
 25076  func (c *ProjectsLocationsDataStoresPatchCall) doRequest(alt string) (*http.Response, error) {
 25077  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25078  	var body io.Reader = nil
 25079  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadatastore)
 25080  	if err != nil {
 25081  		return nil, err
 25082  	}
 25083  	c.urlParams_.Set("alt", alt)
 25084  	c.urlParams_.Set("prettyPrint", "false")
 25085  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 25086  	urls += "?" + c.urlParams_.Encode()
 25087  	req, err := http.NewRequest("PATCH", urls, body)
 25088  	if err != nil {
 25089  		return nil, err
 25090  	}
 25091  	req.Header = reqHeaders
 25092  	googleapi.Expand(req.URL, map[string]string{
 25093  		"name": c.name,
 25094  	})
 25095  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25096  }
 25097  
 25098  // Do executes the "discoveryengine.projects.locations.dataStores.patch" call.
 25099  // Any non-2xx status code is an error. Response headers are in either
 25100  // *GoogleCloudDiscoveryengineV1betaDataStore.ServerResponse.Header or (if a
 25101  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25102  // googleapi.IsNotModified to check whether the returned error was because
 25103  // http.StatusNotModified was returned.
 25104  func (c *ProjectsLocationsDataStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDataStore, error) {
 25105  	gensupport.SetOptions(c.urlParams_, opts...)
 25106  	res, err := c.doRequest("json")
 25107  	if res != nil && res.StatusCode == http.StatusNotModified {
 25108  		if res.Body != nil {
 25109  			res.Body.Close()
 25110  		}
 25111  		return nil, gensupport.WrapError(&googleapi.Error{
 25112  			Code:   res.StatusCode,
 25113  			Header: res.Header,
 25114  		})
 25115  	}
 25116  	if err != nil {
 25117  		return nil, err
 25118  	}
 25119  	defer googleapi.CloseBody(res)
 25120  	if err := googleapi.CheckResponse(res); err != nil {
 25121  		return nil, gensupport.WrapError(err)
 25122  	}
 25123  	ret := &GoogleCloudDiscoveryengineV1betaDataStore{
 25124  		ServerResponse: googleapi.ServerResponse{
 25125  			Header:         res.Header,
 25126  			HTTPStatusCode: res.StatusCode,
 25127  		},
 25128  	}
 25129  	target := &ret
 25130  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25131  		return nil, err
 25132  	}
 25133  	return ret, nil
 25134  }
 25135  
 25136  type ProjectsLocationsDataStoresBranchesDocumentsCreateCall struct {
 25137  	s                                        *Service
 25138  	parent                                   string
 25139  	googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument
 25140  	urlParams_                               gensupport.URLParams
 25141  	ctx_                                     context.Context
 25142  	header_                                  http.Header
 25143  }
 25144  
 25145  // Create: Creates a Document.
 25146  //
 25147  //   - parent: The parent resource name, such as
 25148  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 25149  //     s/{data_store}/branches/{branch}`.
 25150  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Create(parent string, googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
 25151  	c := &ProjectsLocationsDataStoresBranchesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25152  	c.parent = parent
 25153  	c.googleclouddiscoveryenginev1betadocument = googleclouddiscoveryenginev1betadocument
 25154  	return c
 25155  }
 25156  
 25157  // DocumentId sets the optional parameter "documentId": Required. The ID to use
 25158  // for the Document, which will become the final component of the
 25159  // Document.name. If the caller does not have permission to create the
 25160  // Document, regardless of whether or not it exists, a `PERMISSION_DENIED`
 25161  // error is returned. This field must be unique among all Documents with the
 25162  // same parent. Otherwise, an `ALREADY_EXISTS` error is returned. This field
 25163  // must conform to RFC-1034 (https://tools.ietf.org/html/rfc1034) standard with
 25164  // a length limit of 63 characters. Otherwise, an `INVALID_ARGUMENT` error is
 25165  // returned.
 25166  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) DocumentId(documentId string) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
 25167  	c.urlParams_.Set("documentId", documentId)
 25168  	return c
 25169  }
 25170  
 25171  // Fields allows partial responses to be retrieved. See
 25172  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25173  // details.
 25174  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
 25175  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25176  	return c
 25177  }
 25178  
 25179  // Context sets the context to be used in this call's Do method.
 25180  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
 25181  	c.ctx_ = ctx
 25182  	return c
 25183  }
 25184  
 25185  // Header returns a http.Header that can be modified by the caller to add
 25186  // headers to the request.
 25187  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Header() http.Header {
 25188  	if c.header_ == nil {
 25189  		c.header_ = make(http.Header)
 25190  	}
 25191  	return c.header_
 25192  }
 25193  
 25194  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
 25195  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25196  	var body io.Reader = nil
 25197  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadocument)
 25198  	if err != nil {
 25199  		return nil, err
 25200  	}
 25201  	c.urlParams_.Set("alt", alt)
 25202  	c.urlParams_.Set("prettyPrint", "false")
 25203  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents")
 25204  	urls += "?" + c.urlParams_.Encode()
 25205  	req, err := http.NewRequest("POST", urls, body)
 25206  	if err != nil {
 25207  		return nil, err
 25208  	}
 25209  	req.Header = reqHeaders
 25210  	googleapi.Expand(req.URL, map[string]string{
 25211  		"parent": c.parent,
 25212  	})
 25213  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25214  }
 25215  
 25216  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.create" call.
 25217  // Any non-2xx status code is an error. Response headers are in either
 25218  // *GoogleCloudDiscoveryengineV1betaDocument.ServerResponse.Header or (if a
 25219  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25220  // googleapi.IsNotModified to check whether the returned error was because
 25221  // http.StatusNotModified was returned.
 25222  func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDocument, error) {
 25223  	gensupport.SetOptions(c.urlParams_, opts...)
 25224  	res, err := c.doRequest("json")
 25225  	if res != nil && res.StatusCode == http.StatusNotModified {
 25226  		if res.Body != nil {
 25227  			res.Body.Close()
 25228  		}
 25229  		return nil, gensupport.WrapError(&googleapi.Error{
 25230  			Code:   res.StatusCode,
 25231  			Header: res.Header,
 25232  		})
 25233  	}
 25234  	if err != nil {
 25235  		return nil, err
 25236  	}
 25237  	defer googleapi.CloseBody(res)
 25238  	if err := googleapi.CheckResponse(res); err != nil {
 25239  		return nil, gensupport.WrapError(err)
 25240  	}
 25241  	ret := &GoogleCloudDiscoveryengineV1betaDocument{
 25242  		ServerResponse: googleapi.ServerResponse{
 25243  			Header:         res.Header,
 25244  			HTTPStatusCode: res.StatusCode,
 25245  		},
 25246  	}
 25247  	target := &ret
 25248  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25249  		return nil, err
 25250  	}
 25251  	return ret, nil
 25252  }
 25253  
 25254  type ProjectsLocationsDataStoresBranchesDocumentsDeleteCall struct {
 25255  	s          *Service
 25256  	name       string
 25257  	urlParams_ gensupport.URLParams
 25258  	ctx_       context.Context
 25259  	header_    http.Header
 25260  }
 25261  
 25262  // Delete: Deletes a Document.
 25263  //
 25264  //   - name: Full resource name of Document, such as
 25265  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 25266  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 25267  //     not have permission to delete the Document, regardless of whether or not
 25268  //     it exists, a `PERMISSION_DENIED` error is returned. If the Document to
 25269  //     delete does not exist, a `NOT_FOUND` error is returned.
 25270  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Delete(name string) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
 25271  	c := &ProjectsLocationsDataStoresBranchesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25272  	c.name = name
 25273  	return c
 25274  }
 25275  
 25276  // Fields allows partial responses to be retrieved. See
 25277  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25278  // details.
 25279  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
 25280  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25281  	return c
 25282  }
 25283  
 25284  // Context sets the context to be used in this call's Do method.
 25285  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
 25286  	c.ctx_ = ctx
 25287  	return c
 25288  }
 25289  
 25290  // Header returns a http.Header that can be modified by the caller to add
 25291  // headers to the request.
 25292  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Header() http.Header {
 25293  	if c.header_ == nil {
 25294  		c.header_ = make(http.Header)
 25295  	}
 25296  	return c.header_
 25297  }
 25298  
 25299  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
 25300  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25301  	var body io.Reader = nil
 25302  	c.urlParams_.Set("alt", alt)
 25303  	c.urlParams_.Set("prettyPrint", "false")
 25304  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 25305  	urls += "?" + c.urlParams_.Encode()
 25306  	req, err := http.NewRequest("DELETE", urls, body)
 25307  	if err != nil {
 25308  		return nil, err
 25309  	}
 25310  	req.Header = reqHeaders
 25311  	googleapi.Expand(req.URL, map[string]string{
 25312  		"name": c.name,
 25313  	})
 25314  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25315  }
 25316  
 25317  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.delete" call.
 25318  // Any non-2xx status code is an error. Response headers are in either
 25319  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 25320  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 25321  // check whether the returned error was because http.StatusNotModified was
 25322  // returned.
 25323  func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 25324  	gensupport.SetOptions(c.urlParams_, opts...)
 25325  	res, err := c.doRequest("json")
 25326  	if res != nil && res.StatusCode == http.StatusNotModified {
 25327  		if res.Body != nil {
 25328  			res.Body.Close()
 25329  		}
 25330  		return nil, gensupport.WrapError(&googleapi.Error{
 25331  			Code:   res.StatusCode,
 25332  			Header: res.Header,
 25333  		})
 25334  	}
 25335  	if err != nil {
 25336  		return nil, err
 25337  	}
 25338  	defer googleapi.CloseBody(res)
 25339  	if err := googleapi.CheckResponse(res); err != nil {
 25340  		return nil, gensupport.WrapError(err)
 25341  	}
 25342  	ret := &GoogleProtobufEmpty{
 25343  		ServerResponse: googleapi.ServerResponse{
 25344  			Header:         res.Header,
 25345  			HTTPStatusCode: res.StatusCode,
 25346  		},
 25347  	}
 25348  	target := &ret
 25349  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25350  		return nil, err
 25351  	}
 25352  	return ret, nil
 25353  }
 25354  
 25355  type ProjectsLocationsDataStoresBranchesDocumentsGetCall struct {
 25356  	s            *Service
 25357  	name         string
 25358  	urlParams_   gensupport.URLParams
 25359  	ifNoneMatch_ string
 25360  	ctx_         context.Context
 25361  	header_      http.Header
 25362  }
 25363  
 25364  // Get: Gets a Document.
 25365  //
 25366  //   - name: Full resource name of Document, such as
 25367  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 25368  //     s/{data_store}/branches/{branch}/documents/{document}`. If the caller does
 25369  //     not have permission to access the Document, regardless of whether or not
 25370  //     it exists, a `PERMISSION_DENIED` error is returned. If the requested
 25371  //     Document does not exist, a `NOT_FOUND` error is returned.
 25372  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Get(name string) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
 25373  	c := &ProjectsLocationsDataStoresBranchesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25374  	c.name = name
 25375  	return c
 25376  }
 25377  
 25378  // Fields allows partial responses to be retrieved. See
 25379  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25380  // details.
 25381  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
 25382  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25383  	return c
 25384  }
 25385  
 25386  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25387  // object's ETag matches the given value. This is useful for getting updates
 25388  // only after the object has changed since the last request.
 25389  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
 25390  	c.ifNoneMatch_ = entityTag
 25391  	return c
 25392  }
 25393  
 25394  // Context sets the context to be used in this call's Do method.
 25395  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
 25396  	c.ctx_ = ctx
 25397  	return c
 25398  }
 25399  
 25400  // Header returns a http.Header that can be modified by the caller to add
 25401  // headers to the request.
 25402  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Header() http.Header {
 25403  	if c.header_ == nil {
 25404  		c.header_ = make(http.Header)
 25405  	}
 25406  	return c.header_
 25407  }
 25408  
 25409  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
 25410  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25411  	if c.ifNoneMatch_ != "" {
 25412  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25413  	}
 25414  	var body io.Reader = nil
 25415  	c.urlParams_.Set("alt", alt)
 25416  	c.urlParams_.Set("prettyPrint", "false")
 25417  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 25418  	urls += "?" + c.urlParams_.Encode()
 25419  	req, err := http.NewRequest("GET", urls, body)
 25420  	if err != nil {
 25421  		return nil, err
 25422  	}
 25423  	req.Header = reqHeaders
 25424  	googleapi.Expand(req.URL, map[string]string{
 25425  		"name": c.name,
 25426  	})
 25427  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25428  }
 25429  
 25430  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.get" call.
 25431  // Any non-2xx status code is an error. Response headers are in either
 25432  // *GoogleCloudDiscoveryengineV1betaDocument.ServerResponse.Header or (if a
 25433  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25434  // googleapi.IsNotModified to check whether the returned error was because
 25435  // http.StatusNotModified was returned.
 25436  func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDocument, error) {
 25437  	gensupport.SetOptions(c.urlParams_, opts...)
 25438  	res, err := c.doRequest("json")
 25439  	if res != nil && res.StatusCode == http.StatusNotModified {
 25440  		if res.Body != nil {
 25441  			res.Body.Close()
 25442  		}
 25443  		return nil, gensupport.WrapError(&googleapi.Error{
 25444  			Code:   res.StatusCode,
 25445  			Header: res.Header,
 25446  		})
 25447  	}
 25448  	if err != nil {
 25449  		return nil, err
 25450  	}
 25451  	defer googleapi.CloseBody(res)
 25452  	if err := googleapi.CheckResponse(res); err != nil {
 25453  		return nil, gensupport.WrapError(err)
 25454  	}
 25455  	ret := &GoogleCloudDiscoveryengineV1betaDocument{
 25456  		ServerResponse: googleapi.ServerResponse{
 25457  			Header:         res.Header,
 25458  			HTTPStatusCode: res.StatusCode,
 25459  		},
 25460  	}
 25461  	target := &ret
 25462  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25463  		return nil, err
 25464  	}
 25465  	return ret, nil
 25466  }
 25467  
 25468  type ProjectsLocationsDataStoresBranchesDocumentsImportCall struct {
 25469  	s                                                      *Service
 25470  	parent                                                 string
 25471  	googleclouddiscoveryenginev1betaimportdocumentsrequest *GoogleCloudDiscoveryengineV1betaImportDocumentsRequest
 25472  	urlParams_                                             gensupport.URLParams
 25473  	ctx_                                                   context.Context
 25474  	header_                                                http.Header
 25475  }
 25476  
 25477  // Import: Bulk import of multiple Documents. Request processing may be
 25478  // synchronous. Non-existing items will be created. Note: It is possible for a
 25479  // subset of the Documents to be successfully updated.
 25480  //
 25481  //   - parent: The parent branch resource name, such as
 25482  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 25483  //     s/{data_store}/branches/{branch}`. Requires create/update permission.
 25484  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Import(parent string, googleclouddiscoveryenginev1betaimportdocumentsrequest *GoogleCloudDiscoveryengineV1betaImportDocumentsRequest) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
 25485  	c := &ProjectsLocationsDataStoresBranchesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25486  	c.parent = parent
 25487  	c.googleclouddiscoveryenginev1betaimportdocumentsrequest = googleclouddiscoveryenginev1betaimportdocumentsrequest
 25488  	return c
 25489  }
 25490  
 25491  // Fields allows partial responses to be retrieved. See
 25492  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25493  // details.
 25494  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
 25495  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25496  	return c
 25497  }
 25498  
 25499  // Context sets the context to be used in this call's Do method.
 25500  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
 25501  	c.ctx_ = ctx
 25502  	return c
 25503  }
 25504  
 25505  // Header returns a http.Header that can be modified by the caller to add
 25506  // headers to the request.
 25507  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Header() http.Header {
 25508  	if c.header_ == nil {
 25509  		c.header_ = make(http.Header)
 25510  	}
 25511  	return c.header_
 25512  }
 25513  
 25514  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
 25515  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25516  	var body io.Reader = nil
 25517  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaimportdocumentsrequest)
 25518  	if err != nil {
 25519  		return nil, err
 25520  	}
 25521  	c.urlParams_.Set("alt", alt)
 25522  	c.urlParams_.Set("prettyPrint", "false")
 25523  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents:import")
 25524  	urls += "?" + c.urlParams_.Encode()
 25525  	req, err := http.NewRequest("POST", urls, body)
 25526  	if err != nil {
 25527  		return nil, err
 25528  	}
 25529  	req.Header = reqHeaders
 25530  	googleapi.Expand(req.URL, map[string]string{
 25531  		"parent": c.parent,
 25532  	})
 25533  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25534  }
 25535  
 25536  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.import" call.
 25537  // Any non-2xx status code is an error. Response headers are in either
 25538  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25539  // returned at all) in error.(*googleapi.Error).Header. Use
 25540  // googleapi.IsNotModified to check whether the returned error was because
 25541  // http.StatusNotModified was returned.
 25542  func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25543  	gensupport.SetOptions(c.urlParams_, opts...)
 25544  	res, err := c.doRequest("json")
 25545  	if res != nil && res.StatusCode == http.StatusNotModified {
 25546  		if res.Body != nil {
 25547  			res.Body.Close()
 25548  		}
 25549  		return nil, gensupport.WrapError(&googleapi.Error{
 25550  			Code:   res.StatusCode,
 25551  			Header: res.Header,
 25552  		})
 25553  	}
 25554  	if err != nil {
 25555  		return nil, err
 25556  	}
 25557  	defer googleapi.CloseBody(res)
 25558  	if err := googleapi.CheckResponse(res); err != nil {
 25559  		return nil, gensupport.WrapError(err)
 25560  	}
 25561  	ret := &GoogleLongrunningOperation{
 25562  		ServerResponse: googleapi.ServerResponse{
 25563  			Header:         res.Header,
 25564  			HTTPStatusCode: res.StatusCode,
 25565  		},
 25566  	}
 25567  	target := &ret
 25568  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25569  		return nil, err
 25570  	}
 25571  	return ret, nil
 25572  }
 25573  
 25574  type ProjectsLocationsDataStoresBranchesDocumentsListCall struct {
 25575  	s            *Service
 25576  	parent       string
 25577  	urlParams_   gensupport.URLParams
 25578  	ifNoneMatch_ string
 25579  	ctx_         context.Context
 25580  	header_      http.Header
 25581  }
 25582  
 25583  // List: Gets a list of Documents.
 25584  //
 25585  //   - parent: The parent branch resource name, such as
 25586  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 25587  //     s/{data_store}/branches/{branch}`. Use `default_branch` as the branch ID,
 25588  //     to list documents under the default branch. If the caller does not have
 25589  //     permission to list Documents under this branch, regardless of whether or
 25590  //     not this branch exists, a `PERMISSION_DENIED` error is returned.
 25591  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) List(parent string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 25592  	c := &ProjectsLocationsDataStoresBranchesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25593  	c.parent = parent
 25594  	return c
 25595  }
 25596  
 25597  // PageSize sets the optional parameter "pageSize": Maximum number of Documents
 25598  // to return. If unspecified, defaults to 100. The maximum allowed value is
 25599  // 1000. Values above 1000 will be coerced to 1000. If this field is negative,
 25600  // an `INVALID_ARGUMENT` error is returned.
 25601  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 25602  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 25603  	return c
 25604  }
 25605  
 25606  // PageToken sets the optional parameter "pageToken": A page token
 25607  // ListDocumentsResponse.next_page_token, received from a previous
 25608  // DocumentService.ListDocuments call. Provide this to retrieve the subsequent
 25609  // page. When paginating, all other parameters provided to
 25610  // DocumentService.ListDocuments must match the call that provided the page
 25611  // token. Otherwise, an `INVALID_ARGUMENT` error is returned.
 25612  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 25613  	c.urlParams_.Set("pageToken", pageToken)
 25614  	return c
 25615  }
 25616  
 25617  // Fields allows partial responses to be retrieved. See
 25618  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25619  // details.
 25620  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 25621  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25622  	return c
 25623  }
 25624  
 25625  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 25626  // object's ETag matches the given value. This is useful for getting updates
 25627  // only after the object has changed since the last request.
 25628  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 25629  	c.ifNoneMatch_ = entityTag
 25630  	return c
 25631  }
 25632  
 25633  // Context sets the context to be used in this call's Do method.
 25634  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
 25635  	c.ctx_ = ctx
 25636  	return c
 25637  }
 25638  
 25639  // Header returns a http.Header that can be modified by the caller to add
 25640  // headers to the request.
 25641  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Header() http.Header {
 25642  	if c.header_ == nil {
 25643  		c.header_ = make(http.Header)
 25644  	}
 25645  	return c.header_
 25646  }
 25647  
 25648  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
 25649  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 25650  	if c.ifNoneMatch_ != "" {
 25651  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 25652  	}
 25653  	var body io.Reader = nil
 25654  	c.urlParams_.Set("alt", alt)
 25655  	c.urlParams_.Set("prettyPrint", "false")
 25656  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents")
 25657  	urls += "?" + c.urlParams_.Encode()
 25658  	req, err := http.NewRequest("GET", urls, body)
 25659  	if err != nil {
 25660  		return nil, err
 25661  	}
 25662  	req.Header = reqHeaders
 25663  	googleapi.Expand(req.URL, map[string]string{
 25664  		"parent": c.parent,
 25665  	})
 25666  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25667  }
 25668  
 25669  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.list" call.
 25670  // Any non-2xx status code is an error. Response headers are in either
 25671  // *GoogleCloudDiscoveryengineV1betaListDocumentsResponse.ServerResponse.Header
 25672  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 25673  // Use googleapi.IsNotModified to check whether the returned error was because
 25674  // http.StatusNotModified was returned.
 25675  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListDocumentsResponse, error) {
 25676  	gensupport.SetOptions(c.urlParams_, opts...)
 25677  	res, err := c.doRequest("json")
 25678  	if res != nil && res.StatusCode == http.StatusNotModified {
 25679  		if res.Body != nil {
 25680  			res.Body.Close()
 25681  		}
 25682  		return nil, gensupport.WrapError(&googleapi.Error{
 25683  			Code:   res.StatusCode,
 25684  			Header: res.Header,
 25685  		})
 25686  	}
 25687  	if err != nil {
 25688  		return nil, err
 25689  	}
 25690  	defer googleapi.CloseBody(res)
 25691  	if err := googleapi.CheckResponse(res); err != nil {
 25692  		return nil, gensupport.WrapError(err)
 25693  	}
 25694  	ret := &GoogleCloudDiscoveryengineV1betaListDocumentsResponse{
 25695  		ServerResponse: googleapi.ServerResponse{
 25696  			Header:         res.Header,
 25697  			HTTPStatusCode: res.StatusCode,
 25698  		},
 25699  	}
 25700  	target := &ret
 25701  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25702  		return nil, err
 25703  	}
 25704  	return ret, nil
 25705  }
 25706  
 25707  // Pages invokes f for each page of results.
 25708  // A non-nil error returned from f will halt the iteration.
 25709  // The provided context supersedes any context provided to the Context method.
 25710  func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListDocumentsResponse) error) error {
 25711  	c.ctx_ = ctx
 25712  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 25713  	for {
 25714  		x, err := c.Do()
 25715  		if err != nil {
 25716  			return err
 25717  		}
 25718  		if err := f(x); err != nil {
 25719  			return err
 25720  		}
 25721  		if x.NextPageToken == "" {
 25722  			return nil
 25723  		}
 25724  		c.PageToken(x.NextPageToken)
 25725  	}
 25726  }
 25727  
 25728  type ProjectsLocationsDataStoresBranchesDocumentsPatchCall struct {
 25729  	s                                        *Service
 25730  	name                                     string
 25731  	googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument
 25732  	urlParams_                               gensupport.URLParams
 25733  	ctx_                                     context.Context
 25734  	header_                                  http.Header
 25735  }
 25736  
 25737  // Patch: Updates a Document.
 25738  //
 25739  //   - name: Immutable. The full resource name of the document. Format:
 25740  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 25741  //     s/{data_store}/branches/{branch}/documents/{document_id}`. This field must
 25742  //     be a UTF-8 encoded string with a length limit of 1024 characters.
 25743  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Patch(name string, googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 25744  	c := &ProjectsLocationsDataStoresBranchesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25745  	c.name = name
 25746  	c.googleclouddiscoveryenginev1betadocument = googleclouddiscoveryenginev1betadocument
 25747  	return c
 25748  }
 25749  
 25750  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 25751  // the Document is not found, a new Document will be created.
 25752  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 25753  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 25754  	return c
 25755  }
 25756  
 25757  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 25758  // in the provided imported 'document' to update. If not set, will by default
 25759  // update all fields.
 25760  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 25761  	c.urlParams_.Set("updateMask", updateMask)
 25762  	return c
 25763  }
 25764  
 25765  // Fields allows partial responses to be retrieved. See
 25766  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25767  // details.
 25768  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 25769  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25770  	return c
 25771  }
 25772  
 25773  // Context sets the context to be used in this call's Do method.
 25774  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
 25775  	c.ctx_ = ctx
 25776  	return c
 25777  }
 25778  
 25779  // Header returns a http.Header that can be modified by the caller to add
 25780  // headers to the request.
 25781  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Header() http.Header {
 25782  	if c.header_ == nil {
 25783  		c.header_ = make(http.Header)
 25784  	}
 25785  	return c.header_
 25786  }
 25787  
 25788  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
 25789  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25790  	var body io.Reader = nil
 25791  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadocument)
 25792  	if err != nil {
 25793  		return nil, err
 25794  	}
 25795  	c.urlParams_.Set("alt", alt)
 25796  	c.urlParams_.Set("prettyPrint", "false")
 25797  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 25798  	urls += "?" + c.urlParams_.Encode()
 25799  	req, err := http.NewRequest("PATCH", urls, body)
 25800  	if err != nil {
 25801  		return nil, err
 25802  	}
 25803  	req.Header = reqHeaders
 25804  	googleapi.Expand(req.URL, map[string]string{
 25805  		"name": c.name,
 25806  	})
 25807  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25808  }
 25809  
 25810  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.patch" call.
 25811  // Any non-2xx status code is an error. Response headers are in either
 25812  // *GoogleCloudDiscoveryengineV1betaDocument.ServerResponse.Header or (if a
 25813  // response was returned at all) in error.(*googleapi.Error).Header. Use
 25814  // googleapi.IsNotModified to check whether the returned error was because
 25815  // http.StatusNotModified was returned.
 25816  func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDocument, error) {
 25817  	gensupport.SetOptions(c.urlParams_, opts...)
 25818  	res, err := c.doRequest("json")
 25819  	if res != nil && res.StatusCode == http.StatusNotModified {
 25820  		if res.Body != nil {
 25821  			res.Body.Close()
 25822  		}
 25823  		return nil, gensupport.WrapError(&googleapi.Error{
 25824  			Code:   res.StatusCode,
 25825  			Header: res.Header,
 25826  		})
 25827  	}
 25828  	if err != nil {
 25829  		return nil, err
 25830  	}
 25831  	defer googleapi.CloseBody(res)
 25832  	if err := googleapi.CheckResponse(res); err != nil {
 25833  		return nil, gensupport.WrapError(err)
 25834  	}
 25835  	ret := &GoogleCloudDiscoveryengineV1betaDocument{
 25836  		ServerResponse: googleapi.ServerResponse{
 25837  			Header:         res.Header,
 25838  			HTTPStatusCode: res.StatusCode,
 25839  		},
 25840  	}
 25841  	target := &ret
 25842  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25843  		return nil, err
 25844  	}
 25845  	return ret, nil
 25846  }
 25847  
 25848  type ProjectsLocationsDataStoresBranchesDocumentsPurgeCall struct {
 25849  	s                                                     *Service
 25850  	parent                                                string
 25851  	googleclouddiscoveryenginev1betapurgedocumentsrequest *GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest
 25852  	urlParams_                                            gensupport.URLParams
 25853  	ctx_                                                  context.Context
 25854  	header_                                               http.Header
 25855  }
 25856  
 25857  // Purge: Permanently deletes all selected Documents in a branch. This process
 25858  // is asynchronous. Depending on the number of Documents to be deleted, this
 25859  // operation can take hours to complete. Before the delete operation completes,
 25860  // some Documents might still be returned by DocumentService.GetDocument or
 25861  // DocumentService.ListDocuments. To get a list of the Documents to be deleted,
 25862  // set PurgeDocumentsRequest.force to false.
 25863  //
 25864  //   - parent: The parent resource name, such as
 25865  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 25866  //     s/{data_store}/branches/{branch}`.
 25867  func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Purge(parent string, googleclouddiscoveryenginev1betapurgedocumentsrequest *GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
 25868  	c := &ProjectsLocationsDataStoresBranchesDocumentsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25869  	c.parent = parent
 25870  	c.googleclouddiscoveryenginev1betapurgedocumentsrequest = googleclouddiscoveryenginev1betapurgedocumentsrequest
 25871  	return c
 25872  }
 25873  
 25874  // Fields allows partial responses to be retrieved. See
 25875  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25876  // details.
 25877  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
 25878  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25879  	return c
 25880  }
 25881  
 25882  // Context sets the context to be used in this call's Do method.
 25883  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
 25884  	c.ctx_ = ctx
 25885  	return c
 25886  }
 25887  
 25888  // Header returns a http.Header that can be modified by the caller to add
 25889  // headers to the request.
 25890  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Header() http.Header {
 25891  	if c.header_ == nil {
 25892  		c.header_ = make(http.Header)
 25893  	}
 25894  	return c.header_
 25895  }
 25896  
 25897  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) doRequest(alt string) (*http.Response, error) {
 25898  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 25899  	var body io.Reader = nil
 25900  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betapurgedocumentsrequest)
 25901  	if err != nil {
 25902  		return nil, err
 25903  	}
 25904  	c.urlParams_.Set("alt", alt)
 25905  	c.urlParams_.Set("prettyPrint", "false")
 25906  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents:purge")
 25907  	urls += "?" + c.urlParams_.Encode()
 25908  	req, err := http.NewRequest("POST", urls, body)
 25909  	if err != nil {
 25910  		return nil, err
 25911  	}
 25912  	req.Header = reqHeaders
 25913  	googleapi.Expand(req.URL, map[string]string{
 25914  		"parent": c.parent,
 25915  	})
 25916  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 25917  }
 25918  
 25919  // Do executes the "discoveryengine.projects.locations.dataStores.branches.documents.purge" call.
 25920  // Any non-2xx status code is an error. Response headers are in either
 25921  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 25922  // returned at all) in error.(*googleapi.Error).Header. Use
 25923  // googleapi.IsNotModified to check whether the returned error was because
 25924  // http.StatusNotModified was returned.
 25925  func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 25926  	gensupport.SetOptions(c.urlParams_, opts...)
 25927  	res, err := c.doRequest("json")
 25928  	if res != nil && res.StatusCode == http.StatusNotModified {
 25929  		if res.Body != nil {
 25930  			res.Body.Close()
 25931  		}
 25932  		return nil, gensupport.WrapError(&googleapi.Error{
 25933  			Code:   res.StatusCode,
 25934  			Header: res.Header,
 25935  		})
 25936  	}
 25937  	if err != nil {
 25938  		return nil, err
 25939  	}
 25940  	defer googleapi.CloseBody(res)
 25941  	if err := googleapi.CheckResponse(res); err != nil {
 25942  		return nil, gensupport.WrapError(err)
 25943  	}
 25944  	ret := &GoogleLongrunningOperation{
 25945  		ServerResponse: googleapi.ServerResponse{
 25946  			Header:         res.Header,
 25947  			HTTPStatusCode: res.StatusCode,
 25948  		},
 25949  	}
 25950  	target := &ret
 25951  	if err := gensupport.DecodeResponse(target, res); err != nil {
 25952  		return nil, err
 25953  	}
 25954  	return ret, nil
 25955  }
 25956  
 25957  type ProjectsLocationsDataStoresBranchesOperationsCancelCall struct {
 25958  	s                                       *Service
 25959  	name                                    string
 25960  	googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
 25961  	urlParams_                              gensupport.URLParams
 25962  	ctx_                                    context.Context
 25963  	header_                                 http.Header
 25964  }
 25965  
 25966  // Cancel: Starts asynchronous cancellation on a long-running operation. The
 25967  // server makes a best effort to cancel the operation, but success is not
 25968  // guaranteed. If the server doesn't support this method, it returns
 25969  // `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or
 25970  // other methods to check whether the cancellation succeeded or whether the
 25971  // operation completed despite cancellation. On successful cancellation, the
 25972  // operation is not deleted; instead, it becomes an operation with an
 25973  // Operation.error value with a google.rpc.Status.code of 1, corresponding to
 25974  // `Code.CANCELLED`.
 25975  //
 25976  // - name: The name of the operation resource to be cancelled.
 25977  func (r *ProjectsLocationsDataStoresBranchesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
 25978  	c := &ProjectsLocationsDataStoresBranchesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 25979  	c.name = name
 25980  	c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
 25981  	return c
 25982  }
 25983  
 25984  // Fields allows partial responses to be retrieved. See
 25985  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 25986  // details.
 25987  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
 25988  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 25989  	return c
 25990  }
 25991  
 25992  // Context sets the context to be used in this call's Do method.
 25993  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
 25994  	c.ctx_ = ctx
 25995  	return c
 25996  }
 25997  
 25998  // Header returns a http.Header that can be modified by the caller to add
 25999  // headers to the request.
 26000  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Header() http.Header {
 26001  	if c.header_ == nil {
 26002  		c.header_ = make(http.Header)
 26003  	}
 26004  	return c.header_
 26005  }
 26006  
 26007  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
 26008  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26009  	var body io.Reader = nil
 26010  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
 26011  	if err != nil {
 26012  		return nil, err
 26013  	}
 26014  	c.urlParams_.Set("alt", alt)
 26015  	c.urlParams_.Set("prettyPrint", "false")
 26016  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:cancel")
 26017  	urls += "?" + c.urlParams_.Encode()
 26018  	req, err := http.NewRequest("POST", urls, body)
 26019  	if err != nil {
 26020  		return nil, err
 26021  	}
 26022  	req.Header = reqHeaders
 26023  	googleapi.Expand(req.URL, map[string]string{
 26024  		"name": c.name,
 26025  	})
 26026  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26027  }
 26028  
 26029  // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.cancel" call.
 26030  // Any non-2xx status code is an error. Response headers are in either
 26031  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 26032  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 26033  // check whether the returned error was because http.StatusNotModified was
 26034  // returned.
 26035  func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 26036  	gensupport.SetOptions(c.urlParams_, opts...)
 26037  	res, err := c.doRequest("json")
 26038  	if res != nil && res.StatusCode == http.StatusNotModified {
 26039  		if res.Body != nil {
 26040  			res.Body.Close()
 26041  		}
 26042  		return nil, gensupport.WrapError(&googleapi.Error{
 26043  			Code:   res.StatusCode,
 26044  			Header: res.Header,
 26045  		})
 26046  	}
 26047  	if err != nil {
 26048  		return nil, err
 26049  	}
 26050  	defer googleapi.CloseBody(res)
 26051  	if err := googleapi.CheckResponse(res); err != nil {
 26052  		return nil, gensupport.WrapError(err)
 26053  	}
 26054  	ret := &GoogleProtobufEmpty{
 26055  		ServerResponse: googleapi.ServerResponse{
 26056  			Header:         res.Header,
 26057  			HTTPStatusCode: res.StatusCode,
 26058  		},
 26059  	}
 26060  	target := &ret
 26061  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26062  		return nil, err
 26063  	}
 26064  	return ret, nil
 26065  }
 26066  
 26067  type ProjectsLocationsDataStoresBranchesOperationsGetCall struct {
 26068  	s            *Service
 26069  	name         string
 26070  	urlParams_   gensupport.URLParams
 26071  	ifNoneMatch_ string
 26072  	ctx_         context.Context
 26073  	header_      http.Header
 26074  }
 26075  
 26076  // Get: Gets the latest state of a long-running operation. Clients can use this
 26077  // method to poll the operation result at intervals as recommended by the API
 26078  // service.
 26079  //
 26080  // - name: The name of the operation resource.
 26081  func (r *ProjectsLocationsDataStoresBranchesOperationsService) Get(name string) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
 26082  	c := &ProjectsLocationsDataStoresBranchesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26083  	c.name = name
 26084  	return c
 26085  }
 26086  
 26087  // Fields allows partial responses to be retrieved. See
 26088  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26089  // details.
 26090  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
 26091  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26092  	return c
 26093  }
 26094  
 26095  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26096  // object's ETag matches the given value. This is useful for getting updates
 26097  // only after the object has changed since the last request.
 26098  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
 26099  	c.ifNoneMatch_ = entityTag
 26100  	return c
 26101  }
 26102  
 26103  // Context sets the context to be used in this call's Do method.
 26104  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
 26105  	c.ctx_ = ctx
 26106  	return c
 26107  }
 26108  
 26109  // Header returns a http.Header that can be modified by the caller to add
 26110  // headers to the request.
 26111  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Header() http.Header {
 26112  	if c.header_ == nil {
 26113  		c.header_ = make(http.Header)
 26114  	}
 26115  	return c.header_
 26116  }
 26117  
 26118  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 26119  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26120  	if c.ifNoneMatch_ != "" {
 26121  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26122  	}
 26123  	var body io.Reader = nil
 26124  	c.urlParams_.Set("alt", alt)
 26125  	c.urlParams_.Set("prettyPrint", "false")
 26126  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 26127  	urls += "?" + c.urlParams_.Encode()
 26128  	req, err := http.NewRequest("GET", urls, body)
 26129  	if err != nil {
 26130  		return nil, err
 26131  	}
 26132  	req.Header = reqHeaders
 26133  	googleapi.Expand(req.URL, map[string]string{
 26134  		"name": c.name,
 26135  	})
 26136  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26137  }
 26138  
 26139  // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.get" call.
 26140  // Any non-2xx status code is an error. Response headers are in either
 26141  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 26142  // returned at all) in error.(*googleapi.Error).Header. Use
 26143  // googleapi.IsNotModified to check whether the returned error was because
 26144  // http.StatusNotModified was returned.
 26145  func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 26146  	gensupport.SetOptions(c.urlParams_, opts...)
 26147  	res, err := c.doRequest("json")
 26148  	if res != nil && res.StatusCode == http.StatusNotModified {
 26149  		if res.Body != nil {
 26150  			res.Body.Close()
 26151  		}
 26152  		return nil, gensupport.WrapError(&googleapi.Error{
 26153  			Code:   res.StatusCode,
 26154  			Header: res.Header,
 26155  		})
 26156  	}
 26157  	if err != nil {
 26158  		return nil, err
 26159  	}
 26160  	defer googleapi.CloseBody(res)
 26161  	if err := googleapi.CheckResponse(res); err != nil {
 26162  		return nil, gensupport.WrapError(err)
 26163  	}
 26164  	ret := &GoogleLongrunningOperation{
 26165  		ServerResponse: googleapi.ServerResponse{
 26166  			Header:         res.Header,
 26167  			HTTPStatusCode: res.StatusCode,
 26168  		},
 26169  	}
 26170  	target := &ret
 26171  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26172  		return nil, err
 26173  	}
 26174  	return ret, nil
 26175  }
 26176  
 26177  type ProjectsLocationsDataStoresBranchesOperationsListCall struct {
 26178  	s            *Service
 26179  	name         string
 26180  	urlParams_   gensupport.URLParams
 26181  	ifNoneMatch_ string
 26182  	ctx_         context.Context
 26183  	header_      http.Header
 26184  }
 26185  
 26186  // List: Lists operations that match the specified filter in the request. If
 26187  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 26188  //
 26189  // - name: The name of the operation's parent resource.
 26190  func (r *ProjectsLocationsDataStoresBranchesOperationsService) List(name string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 26191  	c := &ProjectsLocationsDataStoresBranchesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26192  	c.name = name
 26193  	return c
 26194  }
 26195  
 26196  // Filter sets the optional parameter "filter": The standard list filter.
 26197  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 26198  	c.urlParams_.Set("filter", filter)
 26199  	return c
 26200  }
 26201  
 26202  // PageSize sets the optional parameter "pageSize": The standard list page
 26203  // size.
 26204  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 26205  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 26206  	return c
 26207  }
 26208  
 26209  // PageToken sets the optional parameter "pageToken": The standard list page
 26210  // token.
 26211  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 26212  	c.urlParams_.Set("pageToken", pageToken)
 26213  	return c
 26214  }
 26215  
 26216  // Fields allows partial responses to be retrieved. See
 26217  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26218  // details.
 26219  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 26220  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26221  	return c
 26222  }
 26223  
 26224  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26225  // object's ETag matches the given value. This is useful for getting updates
 26226  // only after the object has changed since the last request.
 26227  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 26228  	c.ifNoneMatch_ = entityTag
 26229  	return c
 26230  }
 26231  
 26232  // Context sets the context to be used in this call's Do method.
 26233  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsListCall {
 26234  	c.ctx_ = ctx
 26235  	return c
 26236  }
 26237  
 26238  // Header returns a http.Header that can be modified by the caller to add
 26239  // headers to the request.
 26240  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Header() http.Header {
 26241  	if c.header_ == nil {
 26242  		c.header_ = make(http.Header)
 26243  	}
 26244  	return c.header_
 26245  }
 26246  
 26247  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) doRequest(alt string) (*http.Response, error) {
 26248  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26249  	if c.ifNoneMatch_ != "" {
 26250  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26251  	}
 26252  	var body io.Reader = nil
 26253  	c.urlParams_.Set("alt", alt)
 26254  	c.urlParams_.Set("prettyPrint", "false")
 26255  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 26256  	urls += "?" + c.urlParams_.Encode()
 26257  	req, err := http.NewRequest("GET", urls, body)
 26258  	if err != nil {
 26259  		return nil, err
 26260  	}
 26261  	req.Header = reqHeaders
 26262  	googleapi.Expand(req.URL, map[string]string{
 26263  		"name": c.name,
 26264  	})
 26265  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26266  }
 26267  
 26268  // Do executes the "discoveryengine.projects.locations.dataStores.branches.operations.list" call.
 26269  // Any non-2xx status code is an error. Response headers are in either
 26270  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 26271  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26272  // googleapi.IsNotModified to check whether the returned error was because
 26273  // http.StatusNotModified was returned.
 26274  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 26275  	gensupport.SetOptions(c.urlParams_, opts...)
 26276  	res, err := c.doRequest("json")
 26277  	if res != nil && res.StatusCode == http.StatusNotModified {
 26278  		if res.Body != nil {
 26279  			res.Body.Close()
 26280  		}
 26281  		return nil, gensupport.WrapError(&googleapi.Error{
 26282  			Code:   res.StatusCode,
 26283  			Header: res.Header,
 26284  		})
 26285  	}
 26286  	if err != nil {
 26287  		return nil, err
 26288  	}
 26289  	defer googleapi.CloseBody(res)
 26290  	if err := googleapi.CheckResponse(res); err != nil {
 26291  		return nil, gensupport.WrapError(err)
 26292  	}
 26293  	ret := &GoogleLongrunningListOperationsResponse{
 26294  		ServerResponse: googleapi.ServerResponse{
 26295  			Header:         res.Header,
 26296  			HTTPStatusCode: res.StatusCode,
 26297  		},
 26298  	}
 26299  	target := &ret
 26300  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26301  		return nil, err
 26302  	}
 26303  	return ret, nil
 26304  }
 26305  
 26306  // Pages invokes f for each page of results.
 26307  // A non-nil error returned from f will halt the iteration.
 26308  // The provided context supersedes any context provided to the Context method.
 26309  func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 26310  	c.ctx_ = ctx
 26311  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 26312  	for {
 26313  		x, err := c.Do()
 26314  		if err != nil {
 26315  			return err
 26316  		}
 26317  		if err := f(x); err != nil {
 26318  			return err
 26319  		}
 26320  		if x.NextPageToken == "" {
 26321  			return nil
 26322  		}
 26323  		c.PageToken(x.NextPageToken)
 26324  	}
 26325  }
 26326  
 26327  type ProjectsLocationsDataStoresConversationsConverseCall struct {
 26328  	s                                                           *Service
 26329  	name                                                        string
 26330  	googleclouddiscoveryenginev1betaconverseconversationrequest *GoogleCloudDiscoveryengineV1betaConverseConversationRequest
 26331  	urlParams_                                                  gensupport.URLParams
 26332  	ctx_                                                        context.Context
 26333  	header_                                                     http.Header
 26334  }
 26335  
 26336  // Converse: Converses a conversation.
 26337  //
 26338  //   - name: The resource name of the Conversation to get. Format:
 26339  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 26340  //     /dataStores/{data_store_id}/conversations/{conversation_id}`. Use
 26341  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 26342  //     /dataStores/{data_store_id}/conversations/-` to activate auto session
 26343  //     mode, which automatically creates a new conversation inside a
 26344  //     ConverseConversation session.
 26345  func (r *ProjectsLocationsDataStoresConversationsService) Converse(name string, googleclouddiscoveryenginev1betaconverseconversationrequest *GoogleCloudDiscoveryengineV1betaConverseConversationRequest) *ProjectsLocationsDataStoresConversationsConverseCall {
 26346  	c := &ProjectsLocationsDataStoresConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26347  	c.name = name
 26348  	c.googleclouddiscoveryenginev1betaconverseconversationrequest = googleclouddiscoveryenginev1betaconverseconversationrequest
 26349  	return c
 26350  }
 26351  
 26352  // Fields allows partial responses to be retrieved. See
 26353  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26354  // details.
 26355  func (c *ProjectsLocationsDataStoresConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsConverseCall {
 26356  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26357  	return c
 26358  }
 26359  
 26360  // Context sets the context to be used in this call's Do method.
 26361  func (c *ProjectsLocationsDataStoresConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsConverseCall {
 26362  	c.ctx_ = ctx
 26363  	return c
 26364  }
 26365  
 26366  // Header returns a http.Header that can be modified by the caller to add
 26367  // headers to the request.
 26368  func (c *ProjectsLocationsDataStoresConversationsConverseCall) Header() http.Header {
 26369  	if c.header_ == nil {
 26370  		c.header_ = make(http.Header)
 26371  	}
 26372  	return c.header_
 26373  }
 26374  
 26375  func (c *ProjectsLocationsDataStoresConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
 26376  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26377  	var body io.Reader = nil
 26378  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconverseconversationrequest)
 26379  	if err != nil {
 26380  		return nil, err
 26381  	}
 26382  	c.urlParams_.Set("alt", alt)
 26383  	c.urlParams_.Set("prettyPrint", "false")
 26384  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:converse")
 26385  	urls += "?" + c.urlParams_.Encode()
 26386  	req, err := http.NewRequest("POST", urls, body)
 26387  	if err != nil {
 26388  		return nil, err
 26389  	}
 26390  	req.Header = reqHeaders
 26391  	googleapi.Expand(req.URL, map[string]string{
 26392  		"name": c.name,
 26393  	})
 26394  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26395  }
 26396  
 26397  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.converse" call.
 26398  // Any non-2xx status code is an error. Response headers are in either
 26399  // *GoogleCloudDiscoveryengineV1betaConverseConversationResponse.ServerResponse.
 26400  // Header or (if a response was returned at all) in
 26401  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 26402  // whether the returned error was because http.StatusNotModified was returned.
 26403  func (c *ProjectsLocationsDataStoresConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConverseConversationResponse, error) {
 26404  	gensupport.SetOptions(c.urlParams_, opts...)
 26405  	res, err := c.doRequest("json")
 26406  	if res != nil && res.StatusCode == http.StatusNotModified {
 26407  		if res.Body != nil {
 26408  			res.Body.Close()
 26409  		}
 26410  		return nil, gensupport.WrapError(&googleapi.Error{
 26411  			Code:   res.StatusCode,
 26412  			Header: res.Header,
 26413  		})
 26414  	}
 26415  	if err != nil {
 26416  		return nil, err
 26417  	}
 26418  	defer googleapi.CloseBody(res)
 26419  	if err := googleapi.CheckResponse(res); err != nil {
 26420  		return nil, gensupport.WrapError(err)
 26421  	}
 26422  	ret := &GoogleCloudDiscoveryengineV1betaConverseConversationResponse{
 26423  		ServerResponse: googleapi.ServerResponse{
 26424  			Header:         res.Header,
 26425  			HTTPStatusCode: res.StatusCode,
 26426  		},
 26427  	}
 26428  	target := &ret
 26429  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26430  		return nil, err
 26431  	}
 26432  	return ret, nil
 26433  }
 26434  
 26435  type ProjectsLocationsDataStoresConversationsCreateCall struct {
 26436  	s                                            *Service
 26437  	parent                                       string
 26438  	googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation
 26439  	urlParams_                                   gensupport.URLParams
 26440  	ctx_                                         context.Context
 26441  	header_                                      http.Header
 26442  }
 26443  
 26444  // Create: Creates a Conversation. If the Conversation to create already
 26445  // exists, an ALREADY_EXISTS error is returned.
 26446  //
 26447  //   - parent: Full resource name of parent data store. Format:
 26448  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 26449  //     /dataStores/{data_store_id}`.
 26450  func (r *ProjectsLocationsDataStoresConversationsService) Create(parent string, googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation) *ProjectsLocationsDataStoresConversationsCreateCall {
 26451  	c := &ProjectsLocationsDataStoresConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26452  	c.parent = parent
 26453  	c.googleclouddiscoveryenginev1betaconversation = googleclouddiscoveryenginev1betaconversation
 26454  	return c
 26455  }
 26456  
 26457  // Fields allows partial responses to be retrieved. See
 26458  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26459  // details.
 26460  func (c *ProjectsLocationsDataStoresConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsCreateCall {
 26461  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26462  	return c
 26463  }
 26464  
 26465  // Context sets the context to be used in this call's Do method.
 26466  func (c *ProjectsLocationsDataStoresConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsCreateCall {
 26467  	c.ctx_ = ctx
 26468  	return c
 26469  }
 26470  
 26471  // Header returns a http.Header that can be modified by the caller to add
 26472  // headers to the request.
 26473  func (c *ProjectsLocationsDataStoresConversationsCreateCall) Header() http.Header {
 26474  	if c.header_ == nil {
 26475  		c.header_ = make(http.Header)
 26476  	}
 26477  	return c.header_
 26478  }
 26479  
 26480  func (c *ProjectsLocationsDataStoresConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
 26481  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26482  	var body io.Reader = nil
 26483  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconversation)
 26484  	if err != nil {
 26485  		return nil, err
 26486  	}
 26487  	c.urlParams_.Set("alt", alt)
 26488  	c.urlParams_.Set("prettyPrint", "false")
 26489  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/conversations")
 26490  	urls += "?" + c.urlParams_.Encode()
 26491  	req, err := http.NewRequest("POST", urls, body)
 26492  	if err != nil {
 26493  		return nil, err
 26494  	}
 26495  	req.Header = reqHeaders
 26496  	googleapi.Expand(req.URL, map[string]string{
 26497  		"parent": c.parent,
 26498  	})
 26499  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26500  }
 26501  
 26502  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.create" call.
 26503  // Any non-2xx status code is an error. Response headers are in either
 26504  // *GoogleCloudDiscoveryengineV1betaConversation.ServerResponse.Header or (if a
 26505  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26506  // googleapi.IsNotModified to check whether the returned error was because
 26507  // http.StatusNotModified was returned.
 26508  func (c *ProjectsLocationsDataStoresConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
 26509  	gensupport.SetOptions(c.urlParams_, opts...)
 26510  	res, err := c.doRequest("json")
 26511  	if res != nil && res.StatusCode == http.StatusNotModified {
 26512  		if res.Body != nil {
 26513  			res.Body.Close()
 26514  		}
 26515  		return nil, gensupport.WrapError(&googleapi.Error{
 26516  			Code:   res.StatusCode,
 26517  			Header: res.Header,
 26518  		})
 26519  	}
 26520  	if err != nil {
 26521  		return nil, err
 26522  	}
 26523  	defer googleapi.CloseBody(res)
 26524  	if err := googleapi.CheckResponse(res); err != nil {
 26525  		return nil, gensupport.WrapError(err)
 26526  	}
 26527  	ret := &GoogleCloudDiscoveryengineV1betaConversation{
 26528  		ServerResponse: googleapi.ServerResponse{
 26529  			Header:         res.Header,
 26530  			HTTPStatusCode: res.StatusCode,
 26531  		},
 26532  	}
 26533  	target := &ret
 26534  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26535  		return nil, err
 26536  	}
 26537  	return ret, nil
 26538  }
 26539  
 26540  type ProjectsLocationsDataStoresConversationsDeleteCall struct {
 26541  	s          *Service
 26542  	name       string
 26543  	urlParams_ gensupport.URLParams
 26544  	ctx_       context.Context
 26545  	header_    http.Header
 26546  }
 26547  
 26548  // Delete: Deletes a Conversation. If the Conversation to delete does not
 26549  // exist, a NOT_FOUND error is returned.
 26550  //
 26551  //   - name: The resource name of the Conversation to delete. Format:
 26552  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 26553  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 26554  func (r *ProjectsLocationsDataStoresConversationsService) Delete(name string) *ProjectsLocationsDataStoresConversationsDeleteCall {
 26555  	c := &ProjectsLocationsDataStoresConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26556  	c.name = name
 26557  	return c
 26558  }
 26559  
 26560  // Fields allows partial responses to be retrieved. See
 26561  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26562  // details.
 26563  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsDeleteCall {
 26564  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26565  	return c
 26566  }
 26567  
 26568  // Context sets the context to be used in this call's Do method.
 26569  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsDeleteCall {
 26570  	c.ctx_ = ctx
 26571  	return c
 26572  }
 26573  
 26574  // Header returns a http.Header that can be modified by the caller to add
 26575  // headers to the request.
 26576  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Header() http.Header {
 26577  	if c.header_ == nil {
 26578  		c.header_ = make(http.Header)
 26579  	}
 26580  	return c.header_
 26581  }
 26582  
 26583  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 26584  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26585  	var body io.Reader = nil
 26586  	c.urlParams_.Set("alt", alt)
 26587  	c.urlParams_.Set("prettyPrint", "false")
 26588  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 26589  	urls += "?" + c.urlParams_.Encode()
 26590  	req, err := http.NewRequest("DELETE", urls, body)
 26591  	if err != nil {
 26592  		return nil, err
 26593  	}
 26594  	req.Header = reqHeaders
 26595  	googleapi.Expand(req.URL, map[string]string{
 26596  		"name": c.name,
 26597  	})
 26598  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26599  }
 26600  
 26601  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.delete" call.
 26602  // Any non-2xx status code is an error. Response headers are in either
 26603  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 26604  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 26605  // check whether the returned error was because http.StatusNotModified was
 26606  // returned.
 26607  func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 26608  	gensupport.SetOptions(c.urlParams_, opts...)
 26609  	res, err := c.doRequest("json")
 26610  	if res != nil && res.StatusCode == http.StatusNotModified {
 26611  		if res.Body != nil {
 26612  			res.Body.Close()
 26613  		}
 26614  		return nil, gensupport.WrapError(&googleapi.Error{
 26615  			Code:   res.StatusCode,
 26616  			Header: res.Header,
 26617  		})
 26618  	}
 26619  	if err != nil {
 26620  		return nil, err
 26621  	}
 26622  	defer googleapi.CloseBody(res)
 26623  	if err := googleapi.CheckResponse(res); err != nil {
 26624  		return nil, gensupport.WrapError(err)
 26625  	}
 26626  	ret := &GoogleProtobufEmpty{
 26627  		ServerResponse: googleapi.ServerResponse{
 26628  			Header:         res.Header,
 26629  			HTTPStatusCode: res.StatusCode,
 26630  		},
 26631  	}
 26632  	target := &ret
 26633  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26634  		return nil, err
 26635  	}
 26636  	return ret, nil
 26637  }
 26638  
 26639  type ProjectsLocationsDataStoresConversationsGetCall struct {
 26640  	s            *Service
 26641  	name         string
 26642  	urlParams_   gensupport.URLParams
 26643  	ifNoneMatch_ string
 26644  	ctx_         context.Context
 26645  	header_      http.Header
 26646  }
 26647  
 26648  // Get: Gets a Conversation.
 26649  //
 26650  //   - name: The resource name of the Conversation to get. Format:
 26651  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 26652  //     /dataStores/{data_store_id}/conversations/{conversation_id}`.
 26653  func (r *ProjectsLocationsDataStoresConversationsService) Get(name string) *ProjectsLocationsDataStoresConversationsGetCall {
 26654  	c := &ProjectsLocationsDataStoresConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26655  	c.name = name
 26656  	return c
 26657  }
 26658  
 26659  // Fields allows partial responses to be retrieved. See
 26660  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26661  // details.
 26662  func (c *ProjectsLocationsDataStoresConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsGetCall {
 26663  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26664  	return c
 26665  }
 26666  
 26667  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26668  // object's ETag matches the given value. This is useful for getting updates
 26669  // only after the object has changed since the last request.
 26670  func (c *ProjectsLocationsDataStoresConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresConversationsGetCall {
 26671  	c.ifNoneMatch_ = entityTag
 26672  	return c
 26673  }
 26674  
 26675  // Context sets the context to be used in this call's Do method.
 26676  func (c *ProjectsLocationsDataStoresConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsGetCall {
 26677  	c.ctx_ = ctx
 26678  	return c
 26679  }
 26680  
 26681  // Header returns a http.Header that can be modified by the caller to add
 26682  // headers to the request.
 26683  func (c *ProjectsLocationsDataStoresConversationsGetCall) Header() http.Header {
 26684  	if c.header_ == nil {
 26685  		c.header_ = make(http.Header)
 26686  	}
 26687  	return c.header_
 26688  }
 26689  
 26690  func (c *ProjectsLocationsDataStoresConversationsGetCall) doRequest(alt string) (*http.Response, error) {
 26691  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26692  	if c.ifNoneMatch_ != "" {
 26693  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26694  	}
 26695  	var body io.Reader = nil
 26696  	c.urlParams_.Set("alt", alt)
 26697  	c.urlParams_.Set("prettyPrint", "false")
 26698  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 26699  	urls += "?" + c.urlParams_.Encode()
 26700  	req, err := http.NewRequest("GET", urls, body)
 26701  	if err != nil {
 26702  		return nil, err
 26703  	}
 26704  	req.Header = reqHeaders
 26705  	googleapi.Expand(req.URL, map[string]string{
 26706  		"name": c.name,
 26707  	})
 26708  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26709  }
 26710  
 26711  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.get" call.
 26712  // Any non-2xx status code is an error. Response headers are in either
 26713  // *GoogleCloudDiscoveryengineV1betaConversation.ServerResponse.Header or (if a
 26714  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26715  // googleapi.IsNotModified to check whether the returned error was because
 26716  // http.StatusNotModified was returned.
 26717  func (c *ProjectsLocationsDataStoresConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
 26718  	gensupport.SetOptions(c.urlParams_, opts...)
 26719  	res, err := c.doRequest("json")
 26720  	if res != nil && res.StatusCode == http.StatusNotModified {
 26721  		if res.Body != nil {
 26722  			res.Body.Close()
 26723  		}
 26724  		return nil, gensupport.WrapError(&googleapi.Error{
 26725  			Code:   res.StatusCode,
 26726  			Header: res.Header,
 26727  		})
 26728  	}
 26729  	if err != nil {
 26730  		return nil, err
 26731  	}
 26732  	defer googleapi.CloseBody(res)
 26733  	if err := googleapi.CheckResponse(res); err != nil {
 26734  		return nil, gensupport.WrapError(err)
 26735  	}
 26736  	ret := &GoogleCloudDiscoveryengineV1betaConversation{
 26737  		ServerResponse: googleapi.ServerResponse{
 26738  			Header:         res.Header,
 26739  			HTTPStatusCode: res.StatusCode,
 26740  		},
 26741  	}
 26742  	target := &ret
 26743  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26744  		return nil, err
 26745  	}
 26746  	return ret, nil
 26747  }
 26748  
 26749  type ProjectsLocationsDataStoresConversationsListCall struct {
 26750  	s            *Service
 26751  	parent       string
 26752  	urlParams_   gensupport.URLParams
 26753  	ifNoneMatch_ string
 26754  	ctx_         context.Context
 26755  	header_      http.Header
 26756  }
 26757  
 26758  // List: Lists all Conversations by their parent DataStore.
 26759  //
 26760  //   - parent: The data store resource name. Format:
 26761  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 26762  //     /dataStores/{data_store_id}`.
 26763  func (r *ProjectsLocationsDataStoresConversationsService) List(parent string) *ProjectsLocationsDataStoresConversationsListCall {
 26764  	c := &ProjectsLocationsDataStoresConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26765  	c.parent = parent
 26766  	return c
 26767  }
 26768  
 26769  // Filter sets the optional parameter "filter": A filter to apply on the list
 26770  // results. The supported features are: user_pseudo_id, state. Example:
 26771  // "user_pseudo_id = some_id"
 26772  func (c *ProjectsLocationsDataStoresConversationsListCall) Filter(filter string) *ProjectsLocationsDataStoresConversationsListCall {
 26773  	c.urlParams_.Set("filter", filter)
 26774  	return c
 26775  }
 26776  
 26777  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 26778  // fields to order by, sorted in ascending order. Use "desc" after a field name
 26779  // for descending. Supported fields: * `update_time` * `create_time` *
 26780  // `conversation_name` Example: "update_time desc" "create_time"
 26781  func (c *ProjectsLocationsDataStoresConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsDataStoresConversationsListCall {
 26782  	c.urlParams_.Set("orderBy", orderBy)
 26783  	return c
 26784  }
 26785  
 26786  // PageSize sets the optional parameter "pageSize": Maximum number of results
 26787  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 26788  func (c *ProjectsLocationsDataStoresConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresConversationsListCall {
 26789  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 26790  	return c
 26791  }
 26792  
 26793  // PageToken sets the optional parameter "pageToken": A page token, received
 26794  // from a previous `ListConversations` call. Provide this to retrieve the
 26795  // subsequent page.
 26796  func (c *ProjectsLocationsDataStoresConversationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresConversationsListCall {
 26797  	c.urlParams_.Set("pageToken", pageToken)
 26798  	return c
 26799  }
 26800  
 26801  // Fields allows partial responses to be retrieved. See
 26802  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26803  // details.
 26804  func (c *ProjectsLocationsDataStoresConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsListCall {
 26805  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26806  	return c
 26807  }
 26808  
 26809  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 26810  // object's ETag matches the given value. This is useful for getting updates
 26811  // only after the object has changed since the last request.
 26812  func (c *ProjectsLocationsDataStoresConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresConversationsListCall {
 26813  	c.ifNoneMatch_ = entityTag
 26814  	return c
 26815  }
 26816  
 26817  // Context sets the context to be used in this call's Do method.
 26818  func (c *ProjectsLocationsDataStoresConversationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsListCall {
 26819  	c.ctx_ = ctx
 26820  	return c
 26821  }
 26822  
 26823  // Header returns a http.Header that can be modified by the caller to add
 26824  // headers to the request.
 26825  func (c *ProjectsLocationsDataStoresConversationsListCall) Header() http.Header {
 26826  	if c.header_ == nil {
 26827  		c.header_ = make(http.Header)
 26828  	}
 26829  	return c.header_
 26830  }
 26831  
 26832  func (c *ProjectsLocationsDataStoresConversationsListCall) doRequest(alt string) (*http.Response, error) {
 26833  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 26834  	if c.ifNoneMatch_ != "" {
 26835  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 26836  	}
 26837  	var body io.Reader = nil
 26838  	c.urlParams_.Set("alt", alt)
 26839  	c.urlParams_.Set("prettyPrint", "false")
 26840  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/conversations")
 26841  	urls += "?" + c.urlParams_.Encode()
 26842  	req, err := http.NewRequest("GET", urls, body)
 26843  	if err != nil {
 26844  		return nil, err
 26845  	}
 26846  	req.Header = reqHeaders
 26847  	googleapi.Expand(req.URL, map[string]string{
 26848  		"parent": c.parent,
 26849  	})
 26850  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26851  }
 26852  
 26853  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.list" call.
 26854  // Any non-2xx status code is an error. Response headers are in either
 26855  // *GoogleCloudDiscoveryengineV1betaListConversationsResponse.ServerResponse.Hea
 26856  // der or (if a response was returned at all) in
 26857  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 26858  // whether the returned error was because http.StatusNotModified was returned.
 26859  func (c *ProjectsLocationsDataStoresConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListConversationsResponse, error) {
 26860  	gensupport.SetOptions(c.urlParams_, opts...)
 26861  	res, err := c.doRequest("json")
 26862  	if res != nil && res.StatusCode == http.StatusNotModified {
 26863  		if res.Body != nil {
 26864  			res.Body.Close()
 26865  		}
 26866  		return nil, gensupport.WrapError(&googleapi.Error{
 26867  			Code:   res.StatusCode,
 26868  			Header: res.Header,
 26869  		})
 26870  	}
 26871  	if err != nil {
 26872  		return nil, err
 26873  	}
 26874  	defer googleapi.CloseBody(res)
 26875  	if err := googleapi.CheckResponse(res); err != nil {
 26876  		return nil, gensupport.WrapError(err)
 26877  	}
 26878  	ret := &GoogleCloudDiscoveryengineV1betaListConversationsResponse{
 26879  		ServerResponse: googleapi.ServerResponse{
 26880  			Header:         res.Header,
 26881  			HTTPStatusCode: res.StatusCode,
 26882  		},
 26883  	}
 26884  	target := &ret
 26885  	if err := gensupport.DecodeResponse(target, res); err != nil {
 26886  		return nil, err
 26887  	}
 26888  	return ret, nil
 26889  }
 26890  
 26891  // Pages invokes f for each page of results.
 26892  // A non-nil error returned from f will halt the iteration.
 26893  // The provided context supersedes any context provided to the Context method.
 26894  func (c *ProjectsLocationsDataStoresConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListConversationsResponse) error) error {
 26895  	c.ctx_ = ctx
 26896  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 26897  	for {
 26898  		x, err := c.Do()
 26899  		if err != nil {
 26900  			return err
 26901  		}
 26902  		if err := f(x); err != nil {
 26903  			return err
 26904  		}
 26905  		if x.NextPageToken == "" {
 26906  			return nil
 26907  		}
 26908  		c.PageToken(x.NextPageToken)
 26909  	}
 26910  }
 26911  
 26912  type ProjectsLocationsDataStoresConversationsPatchCall struct {
 26913  	s                                            *Service
 26914  	name                                         string
 26915  	googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation
 26916  	urlParams_                                   gensupport.URLParams
 26917  	ctx_                                         context.Context
 26918  	header_                                      http.Header
 26919  }
 26920  
 26921  // Patch: Updates a Conversation. Conversation action type cannot be changed.
 26922  // If the Conversation to update does not exist, a NOT_FOUND error is returned.
 26923  //
 26924  //   - name: Immutable. Fully qualified name
 26925  //     `projects/{project}/locations/global/collections/{collection}/dataStore/*/c
 26926  //     onversations/*` or
 26927  //     `projects/{project}/locations/global/collections/{collection}/engines/*/con
 26928  //     versations/*`.
 26929  func (r *ProjectsLocationsDataStoresConversationsService) Patch(name string, googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation) *ProjectsLocationsDataStoresConversationsPatchCall {
 26930  	c := &ProjectsLocationsDataStoresConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 26931  	c.name = name
 26932  	c.googleclouddiscoveryenginev1betaconversation = googleclouddiscoveryenginev1betaconversation
 26933  	return c
 26934  }
 26935  
 26936  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 26937  // in the provided Conversation to update. The following are NOT supported: *
 26938  // Conversation.name If not set or empty, all supported fields are updated.
 26939  func (c *ProjectsLocationsDataStoresConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresConversationsPatchCall {
 26940  	c.urlParams_.Set("updateMask", updateMask)
 26941  	return c
 26942  }
 26943  
 26944  // Fields allows partial responses to be retrieved. See
 26945  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 26946  // details.
 26947  func (c *ProjectsLocationsDataStoresConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsPatchCall {
 26948  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 26949  	return c
 26950  }
 26951  
 26952  // Context sets the context to be used in this call's Do method.
 26953  func (c *ProjectsLocationsDataStoresConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsPatchCall {
 26954  	c.ctx_ = ctx
 26955  	return c
 26956  }
 26957  
 26958  // Header returns a http.Header that can be modified by the caller to add
 26959  // headers to the request.
 26960  func (c *ProjectsLocationsDataStoresConversationsPatchCall) Header() http.Header {
 26961  	if c.header_ == nil {
 26962  		c.header_ = make(http.Header)
 26963  	}
 26964  	return c.header_
 26965  }
 26966  
 26967  func (c *ProjectsLocationsDataStoresConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
 26968  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 26969  	var body io.Reader = nil
 26970  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconversation)
 26971  	if err != nil {
 26972  		return nil, err
 26973  	}
 26974  	c.urlParams_.Set("alt", alt)
 26975  	c.urlParams_.Set("prettyPrint", "false")
 26976  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 26977  	urls += "?" + c.urlParams_.Encode()
 26978  	req, err := http.NewRequest("PATCH", urls, body)
 26979  	if err != nil {
 26980  		return nil, err
 26981  	}
 26982  	req.Header = reqHeaders
 26983  	googleapi.Expand(req.URL, map[string]string{
 26984  		"name": c.name,
 26985  	})
 26986  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 26987  }
 26988  
 26989  // Do executes the "discoveryengine.projects.locations.dataStores.conversations.patch" call.
 26990  // Any non-2xx status code is an error. Response headers are in either
 26991  // *GoogleCloudDiscoveryengineV1betaConversation.ServerResponse.Header or (if a
 26992  // response was returned at all) in error.(*googleapi.Error).Header. Use
 26993  // googleapi.IsNotModified to check whether the returned error was because
 26994  // http.StatusNotModified was returned.
 26995  func (c *ProjectsLocationsDataStoresConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
 26996  	gensupport.SetOptions(c.urlParams_, opts...)
 26997  	res, err := c.doRequest("json")
 26998  	if res != nil && res.StatusCode == http.StatusNotModified {
 26999  		if res.Body != nil {
 27000  			res.Body.Close()
 27001  		}
 27002  		return nil, gensupport.WrapError(&googleapi.Error{
 27003  			Code:   res.StatusCode,
 27004  			Header: res.Header,
 27005  		})
 27006  	}
 27007  	if err != nil {
 27008  		return nil, err
 27009  	}
 27010  	defer googleapi.CloseBody(res)
 27011  	if err := googleapi.CheckResponse(res); err != nil {
 27012  		return nil, gensupport.WrapError(err)
 27013  	}
 27014  	ret := &GoogleCloudDiscoveryengineV1betaConversation{
 27015  		ServerResponse: googleapi.ServerResponse{
 27016  			Header:         res.Header,
 27017  			HTTPStatusCode: res.StatusCode,
 27018  		},
 27019  	}
 27020  	target := &ret
 27021  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27022  		return nil, err
 27023  	}
 27024  	return ret, nil
 27025  }
 27026  
 27027  type ProjectsLocationsDataStoresModelsOperationsGetCall struct {
 27028  	s            *Service
 27029  	name         string
 27030  	urlParams_   gensupport.URLParams
 27031  	ifNoneMatch_ string
 27032  	ctx_         context.Context
 27033  	header_      http.Header
 27034  }
 27035  
 27036  // Get: Gets the latest state of a long-running operation. Clients can use this
 27037  // method to poll the operation result at intervals as recommended by the API
 27038  // service.
 27039  //
 27040  // - name: The name of the operation resource.
 27041  func (r *ProjectsLocationsDataStoresModelsOperationsService) Get(name string) *ProjectsLocationsDataStoresModelsOperationsGetCall {
 27042  	c := &ProjectsLocationsDataStoresModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27043  	c.name = name
 27044  	return c
 27045  }
 27046  
 27047  // Fields allows partial responses to be retrieved. See
 27048  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27049  // details.
 27050  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresModelsOperationsGetCall {
 27051  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27052  	return c
 27053  }
 27054  
 27055  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27056  // object's ETag matches the given value. This is useful for getting updates
 27057  // only after the object has changed since the last request.
 27058  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresModelsOperationsGetCall {
 27059  	c.ifNoneMatch_ = entityTag
 27060  	return c
 27061  }
 27062  
 27063  // Context sets the context to be used in this call's Do method.
 27064  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresModelsOperationsGetCall {
 27065  	c.ctx_ = ctx
 27066  	return c
 27067  }
 27068  
 27069  // Header returns a http.Header that can be modified by the caller to add
 27070  // headers to the request.
 27071  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Header() http.Header {
 27072  	if c.header_ == nil {
 27073  		c.header_ = make(http.Header)
 27074  	}
 27075  	return c.header_
 27076  }
 27077  
 27078  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 27079  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27080  	if c.ifNoneMatch_ != "" {
 27081  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27082  	}
 27083  	var body io.Reader = nil
 27084  	c.urlParams_.Set("alt", alt)
 27085  	c.urlParams_.Set("prettyPrint", "false")
 27086  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 27087  	urls += "?" + c.urlParams_.Encode()
 27088  	req, err := http.NewRequest("GET", urls, body)
 27089  	if err != nil {
 27090  		return nil, err
 27091  	}
 27092  	req.Header = reqHeaders
 27093  	googleapi.Expand(req.URL, map[string]string{
 27094  		"name": c.name,
 27095  	})
 27096  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27097  }
 27098  
 27099  // Do executes the "discoveryengine.projects.locations.dataStores.models.operations.get" call.
 27100  // Any non-2xx status code is an error. Response headers are in either
 27101  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 27102  // returned at all) in error.(*googleapi.Error).Header. Use
 27103  // googleapi.IsNotModified to check whether the returned error was because
 27104  // http.StatusNotModified was returned.
 27105  func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 27106  	gensupport.SetOptions(c.urlParams_, opts...)
 27107  	res, err := c.doRequest("json")
 27108  	if res != nil && res.StatusCode == http.StatusNotModified {
 27109  		if res.Body != nil {
 27110  			res.Body.Close()
 27111  		}
 27112  		return nil, gensupport.WrapError(&googleapi.Error{
 27113  			Code:   res.StatusCode,
 27114  			Header: res.Header,
 27115  		})
 27116  	}
 27117  	if err != nil {
 27118  		return nil, err
 27119  	}
 27120  	defer googleapi.CloseBody(res)
 27121  	if err := googleapi.CheckResponse(res); err != nil {
 27122  		return nil, gensupport.WrapError(err)
 27123  	}
 27124  	ret := &GoogleLongrunningOperation{
 27125  		ServerResponse: googleapi.ServerResponse{
 27126  			Header:         res.Header,
 27127  			HTTPStatusCode: res.StatusCode,
 27128  		},
 27129  	}
 27130  	target := &ret
 27131  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27132  		return nil, err
 27133  	}
 27134  	return ret, nil
 27135  }
 27136  
 27137  type ProjectsLocationsDataStoresModelsOperationsListCall struct {
 27138  	s            *Service
 27139  	name         string
 27140  	urlParams_   gensupport.URLParams
 27141  	ifNoneMatch_ string
 27142  	ctx_         context.Context
 27143  	header_      http.Header
 27144  }
 27145  
 27146  // List: Lists operations that match the specified filter in the request. If
 27147  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 27148  //
 27149  // - name: The name of the operation's parent resource.
 27150  func (r *ProjectsLocationsDataStoresModelsOperationsService) List(name string) *ProjectsLocationsDataStoresModelsOperationsListCall {
 27151  	c := &ProjectsLocationsDataStoresModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27152  	c.name = name
 27153  	return c
 27154  }
 27155  
 27156  // Filter sets the optional parameter "filter": The standard list filter.
 27157  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresModelsOperationsListCall {
 27158  	c.urlParams_.Set("filter", filter)
 27159  	return c
 27160  }
 27161  
 27162  // PageSize sets the optional parameter "pageSize": The standard list page
 27163  // size.
 27164  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresModelsOperationsListCall {
 27165  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 27166  	return c
 27167  }
 27168  
 27169  // PageToken sets the optional parameter "pageToken": The standard list page
 27170  // token.
 27171  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresModelsOperationsListCall {
 27172  	c.urlParams_.Set("pageToken", pageToken)
 27173  	return c
 27174  }
 27175  
 27176  // Fields allows partial responses to be retrieved. See
 27177  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27178  // details.
 27179  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresModelsOperationsListCall {
 27180  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27181  	return c
 27182  }
 27183  
 27184  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27185  // object's ETag matches the given value. This is useful for getting updates
 27186  // only after the object has changed since the last request.
 27187  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresModelsOperationsListCall {
 27188  	c.ifNoneMatch_ = entityTag
 27189  	return c
 27190  }
 27191  
 27192  // Context sets the context to be used in this call's Do method.
 27193  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresModelsOperationsListCall {
 27194  	c.ctx_ = ctx
 27195  	return c
 27196  }
 27197  
 27198  // Header returns a http.Header that can be modified by the caller to add
 27199  // headers to the request.
 27200  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Header() http.Header {
 27201  	if c.header_ == nil {
 27202  		c.header_ = make(http.Header)
 27203  	}
 27204  	return c.header_
 27205  }
 27206  
 27207  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 27208  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27209  	if c.ifNoneMatch_ != "" {
 27210  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27211  	}
 27212  	var body io.Reader = nil
 27213  	c.urlParams_.Set("alt", alt)
 27214  	c.urlParams_.Set("prettyPrint", "false")
 27215  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 27216  	urls += "?" + c.urlParams_.Encode()
 27217  	req, err := http.NewRequest("GET", urls, body)
 27218  	if err != nil {
 27219  		return nil, err
 27220  	}
 27221  	req.Header = reqHeaders
 27222  	googleapi.Expand(req.URL, map[string]string{
 27223  		"name": c.name,
 27224  	})
 27225  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27226  }
 27227  
 27228  // Do executes the "discoveryengine.projects.locations.dataStores.models.operations.list" call.
 27229  // Any non-2xx status code is an error. Response headers are in either
 27230  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 27231  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27232  // googleapi.IsNotModified to check whether the returned error was because
 27233  // http.StatusNotModified was returned.
 27234  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 27235  	gensupport.SetOptions(c.urlParams_, opts...)
 27236  	res, err := c.doRequest("json")
 27237  	if res != nil && res.StatusCode == http.StatusNotModified {
 27238  		if res.Body != nil {
 27239  			res.Body.Close()
 27240  		}
 27241  		return nil, gensupport.WrapError(&googleapi.Error{
 27242  			Code:   res.StatusCode,
 27243  			Header: res.Header,
 27244  		})
 27245  	}
 27246  	if err != nil {
 27247  		return nil, err
 27248  	}
 27249  	defer googleapi.CloseBody(res)
 27250  	if err := googleapi.CheckResponse(res); err != nil {
 27251  		return nil, gensupport.WrapError(err)
 27252  	}
 27253  	ret := &GoogleLongrunningListOperationsResponse{
 27254  		ServerResponse: googleapi.ServerResponse{
 27255  			Header:         res.Header,
 27256  			HTTPStatusCode: res.StatusCode,
 27257  		},
 27258  	}
 27259  	target := &ret
 27260  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27261  		return nil, err
 27262  	}
 27263  	return ret, nil
 27264  }
 27265  
 27266  // Pages invokes f for each page of results.
 27267  // A non-nil error returned from f will halt the iteration.
 27268  // The provided context supersedes any context provided to the Context method.
 27269  func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 27270  	c.ctx_ = ctx
 27271  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 27272  	for {
 27273  		x, err := c.Do()
 27274  		if err != nil {
 27275  			return err
 27276  		}
 27277  		if err := f(x); err != nil {
 27278  			return err
 27279  		}
 27280  		if x.NextPageToken == "" {
 27281  			return nil
 27282  		}
 27283  		c.PageToken(x.NextPageToken)
 27284  	}
 27285  }
 27286  
 27287  type ProjectsLocationsDataStoresOperationsGetCall struct {
 27288  	s            *Service
 27289  	name         string
 27290  	urlParams_   gensupport.URLParams
 27291  	ifNoneMatch_ string
 27292  	ctx_         context.Context
 27293  	header_      http.Header
 27294  }
 27295  
 27296  // Get: Gets the latest state of a long-running operation. Clients can use this
 27297  // method to poll the operation result at intervals as recommended by the API
 27298  // service.
 27299  //
 27300  // - name: The name of the operation resource.
 27301  func (r *ProjectsLocationsDataStoresOperationsService) Get(name string) *ProjectsLocationsDataStoresOperationsGetCall {
 27302  	c := &ProjectsLocationsDataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27303  	c.name = name
 27304  	return c
 27305  }
 27306  
 27307  // Fields allows partial responses to be retrieved. See
 27308  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27309  // details.
 27310  func (c *ProjectsLocationsDataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresOperationsGetCall {
 27311  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27312  	return c
 27313  }
 27314  
 27315  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27316  // object's ETag matches the given value. This is useful for getting updates
 27317  // only after the object has changed since the last request.
 27318  func (c *ProjectsLocationsDataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresOperationsGetCall {
 27319  	c.ifNoneMatch_ = entityTag
 27320  	return c
 27321  }
 27322  
 27323  // Context sets the context to be used in this call's Do method.
 27324  func (c *ProjectsLocationsDataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresOperationsGetCall {
 27325  	c.ctx_ = ctx
 27326  	return c
 27327  }
 27328  
 27329  // Header returns a http.Header that can be modified by the caller to add
 27330  // headers to the request.
 27331  func (c *ProjectsLocationsDataStoresOperationsGetCall) Header() http.Header {
 27332  	if c.header_ == nil {
 27333  		c.header_ = make(http.Header)
 27334  	}
 27335  	return c.header_
 27336  }
 27337  
 27338  func (c *ProjectsLocationsDataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 27339  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27340  	if c.ifNoneMatch_ != "" {
 27341  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27342  	}
 27343  	var body io.Reader = nil
 27344  	c.urlParams_.Set("alt", alt)
 27345  	c.urlParams_.Set("prettyPrint", "false")
 27346  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 27347  	urls += "?" + c.urlParams_.Encode()
 27348  	req, err := http.NewRequest("GET", urls, body)
 27349  	if err != nil {
 27350  		return nil, err
 27351  	}
 27352  	req.Header = reqHeaders
 27353  	googleapi.Expand(req.URL, map[string]string{
 27354  		"name": c.name,
 27355  	})
 27356  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27357  }
 27358  
 27359  // Do executes the "discoveryengine.projects.locations.dataStores.operations.get" call.
 27360  // Any non-2xx status code is an error. Response headers are in either
 27361  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 27362  // returned at all) in error.(*googleapi.Error).Header. Use
 27363  // googleapi.IsNotModified to check whether the returned error was because
 27364  // http.StatusNotModified was returned.
 27365  func (c *ProjectsLocationsDataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 27366  	gensupport.SetOptions(c.urlParams_, opts...)
 27367  	res, err := c.doRequest("json")
 27368  	if res != nil && res.StatusCode == http.StatusNotModified {
 27369  		if res.Body != nil {
 27370  			res.Body.Close()
 27371  		}
 27372  		return nil, gensupport.WrapError(&googleapi.Error{
 27373  			Code:   res.StatusCode,
 27374  			Header: res.Header,
 27375  		})
 27376  	}
 27377  	if err != nil {
 27378  		return nil, err
 27379  	}
 27380  	defer googleapi.CloseBody(res)
 27381  	if err := googleapi.CheckResponse(res); err != nil {
 27382  		return nil, gensupport.WrapError(err)
 27383  	}
 27384  	ret := &GoogleLongrunningOperation{
 27385  		ServerResponse: googleapi.ServerResponse{
 27386  			Header:         res.Header,
 27387  			HTTPStatusCode: res.StatusCode,
 27388  		},
 27389  	}
 27390  	target := &ret
 27391  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27392  		return nil, err
 27393  	}
 27394  	return ret, nil
 27395  }
 27396  
 27397  type ProjectsLocationsDataStoresOperationsListCall struct {
 27398  	s            *Service
 27399  	name         string
 27400  	urlParams_   gensupport.URLParams
 27401  	ifNoneMatch_ string
 27402  	ctx_         context.Context
 27403  	header_      http.Header
 27404  }
 27405  
 27406  // List: Lists operations that match the specified filter in the request. If
 27407  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 27408  //
 27409  // - name: The name of the operation's parent resource.
 27410  func (r *ProjectsLocationsDataStoresOperationsService) List(name string) *ProjectsLocationsDataStoresOperationsListCall {
 27411  	c := &ProjectsLocationsDataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27412  	c.name = name
 27413  	return c
 27414  }
 27415  
 27416  // Filter sets the optional parameter "filter": The standard list filter.
 27417  func (c *ProjectsLocationsDataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresOperationsListCall {
 27418  	c.urlParams_.Set("filter", filter)
 27419  	return c
 27420  }
 27421  
 27422  // PageSize sets the optional parameter "pageSize": The standard list page
 27423  // size.
 27424  func (c *ProjectsLocationsDataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresOperationsListCall {
 27425  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 27426  	return c
 27427  }
 27428  
 27429  // PageToken sets the optional parameter "pageToken": The standard list page
 27430  // token.
 27431  func (c *ProjectsLocationsDataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresOperationsListCall {
 27432  	c.urlParams_.Set("pageToken", pageToken)
 27433  	return c
 27434  }
 27435  
 27436  // Fields allows partial responses to be retrieved. See
 27437  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27438  // details.
 27439  func (c *ProjectsLocationsDataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresOperationsListCall {
 27440  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27441  	return c
 27442  }
 27443  
 27444  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27445  // object's ETag matches the given value. This is useful for getting updates
 27446  // only after the object has changed since the last request.
 27447  func (c *ProjectsLocationsDataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresOperationsListCall {
 27448  	c.ifNoneMatch_ = entityTag
 27449  	return c
 27450  }
 27451  
 27452  // Context sets the context to be used in this call's Do method.
 27453  func (c *ProjectsLocationsDataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresOperationsListCall {
 27454  	c.ctx_ = ctx
 27455  	return c
 27456  }
 27457  
 27458  // Header returns a http.Header that can be modified by the caller to add
 27459  // headers to the request.
 27460  func (c *ProjectsLocationsDataStoresOperationsListCall) Header() http.Header {
 27461  	if c.header_ == nil {
 27462  		c.header_ = make(http.Header)
 27463  	}
 27464  	return c.header_
 27465  }
 27466  
 27467  func (c *ProjectsLocationsDataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) {
 27468  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27469  	if c.ifNoneMatch_ != "" {
 27470  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27471  	}
 27472  	var body io.Reader = nil
 27473  	c.urlParams_.Set("alt", alt)
 27474  	c.urlParams_.Set("prettyPrint", "false")
 27475  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 27476  	urls += "?" + c.urlParams_.Encode()
 27477  	req, err := http.NewRequest("GET", urls, body)
 27478  	if err != nil {
 27479  		return nil, err
 27480  	}
 27481  	req.Header = reqHeaders
 27482  	googleapi.Expand(req.URL, map[string]string{
 27483  		"name": c.name,
 27484  	})
 27485  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27486  }
 27487  
 27488  // Do executes the "discoveryengine.projects.locations.dataStores.operations.list" call.
 27489  // Any non-2xx status code is an error. Response headers are in either
 27490  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 27491  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27492  // googleapi.IsNotModified to check whether the returned error was because
 27493  // http.StatusNotModified was returned.
 27494  func (c *ProjectsLocationsDataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 27495  	gensupport.SetOptions(c.urlParams_, opts...)
 27496  	res, err := c.doRequest("json")
 27497  	if res != nil && res.StatusCode == http.StatusNotModified {
 27498  		if res.Body != nil {
 27499  			res.Body.Close()
 27500  		}
 27501  		return nil, gensupport.WrapError(&googleapi.Error{
 27502  			Code:   res.StatusCode,
 27503  			Header: res.Header,
 27504  		})
 27505  	}
 27506  	if err != nil {
 27507  		return nil, err
 27508  	}
 27509  	defer googleapi.CloseBody(res)
 27510  	if err := googleapi.CheckResponse(res); err != nil {
 27511  		return nil, gensupport.WrapError(err)
 27512  	}
 27513  	ret := &GoogleLongrunningListOperationsResponse{
 27514  		ServerResponse: googleapi.ServerResponse{
 27515  			Header:         res.Header,
 27516  			HTTPStatusCode: res.StatusCode,
 27517  		},
 27518  	}
 27519  	target := &ret
 27520  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27521  		return nil, err
 27522  	}
 27523  	return ret, nil
 27524  }
 27525  
 27526  // Pages invokes f for each page of results.
 27527  // A non-nil error returned from f will halt the iteration.
 27528  // The provided context supersedes any context provided to the Context method.
 27529  func (c *ProjectsLocationsDataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 27530  	c.ctx_ = ctx
 27531  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 27532  	for {
 27533  		x, err := c.Do()
 27534  		if err != nil {
 27535  			return err
 27536  		}
 27537  		if err := f(x); err != nil {
 27538  			return err
 27539  		}
 27540  		if x.NextPageToken == "" {
 27541  			return nil
 27542  		}
 27543  		c.PageToken(x.NextPageToken)
 27544  	}
 27545  }
 27546  
 27547  type ProjectsLocationsDataStoresSchemasCreateCall struct {
 27548  	s                                      *Service
 27549  	parent                                 string
 27550  	googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema
 27551  	urlParams_                             gensupport.URLParams
 27552  	ctx_                                   context.Context
 27553  	header_                                http.Header
 27554  }
 27555  
 27556  // Create: Creates a Schema.
 27557  //
 27558  //   - parent: The parent data store resource name, in the format of
 27559  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27560  //     s/{data_store}`.
 27561  func (r *ProjectsLocationsDataStoresSchemasService) Create(parent string, googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema) *ProjectsLocationsDataStoresSchemasCreateCall {
 27562  	c := &ProjectsLocationsDataStoresSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27563  	c.parent = parent
 27564  	c.googleclouddiscoveryenginev1betaschema = googleclouddiscoveryenginev1betaschema
 27565  	return c
 27566  }
 27567  
 27568  // SchemaId sets the optional parameter "schemaId": Required. The ID to use for
 27569  // the Schema, which will become the final component of the Schema.name. This
 27570  // field should conform to RFC-1034 (https://tools.ietf.org/html/rfc1034)
 27571  // standard with a length limit of 63 characters.
 27572  func (c *ProjectsLocationsDataStoresSchemasCreateCall) SchemaId(schemaId string) *ProjectsLocationsDataStoresSchemasCreateCall {
 27573  	c.urlParams_.Set("schemaId", schemaId)
 27574  	return c
 27575  }
 27576  
 27577  // Fields allows partial responses to be retrieved. See
 27578  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27579  // details.
 27580  func (c *ProjectsLocationsDataStoresSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasCreateCall {
 27581  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27582  	return c
 27583  }
 27584  
 27585  // Context sets the context to be used in this call's Do method.
 27586  func (c *ProjectsLocationsDataStoresSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasCreateCall {
 27587  	c.ctx_ = ctx
 27588  	return c
 27589  }
 27590  
 27591  // Header returns a http.Header that can be modified by the caller to add
 27592  // headers to the request.
 27593  func (c *ProjectsLocationsDataStoresSchemasCreateCall) Header() http.Header {
 27594  	if c.header_ == nil {
 27595  		c.header_ = make(http.Header)
 27596  	}
 27597  	return c.header_
 27598  }
 27599  
 27600  func (c *ProjectsLocationsDataStoresSchemasCreateCall) doRequest(alt string) (*http.Response, error) {
 27601  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 27602  	var body io.Reader = nil
 27603  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaschema)
 27604  	if err != nil {
 27605  		return nil, err
 27606  	}
 27607  	c.urlParams_.Set("alt", alt)
 27608  	c.urlParams_.Set("prettyPrint", "false")
 27609  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/schemas")
 27610  	urls += "?" + c.urlParams_.Encode()
 27611  	req, err := http.NewRequest("POST", urls, body)
 27612  	if err != nil {
 27613  		return nil, err
 27614  	}
 27615  	req.Header = reqHeaders
 27616  	googleapi.Expand(req.URL, map[string]string{
 27617  		"parent": c.parent,
 27618  	})
 27619  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27620  }
 27621  
 27622  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.create" call.
 27623  // Any non-2xx status code is an error. Response headers are in either
 27624  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 27625  // returned at all) in error.(*googleapi.Error).Header. Use
 27626  // googleapi.IsNotModified to check whether the returned error was because
 27627  // http.StatusNotModified was returned.
 27628  func (c *ProjectsLocationsDataStoresSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 27629  	gensupport.SetOptions(c.urlParams_, opts...)
 27630  	res, err := c.doRequest("json")
 27631  	if res != nil && res.StatusCode == http.StatusNotModified {
 27632  		if res.Body != nil {
 27633  			res.Body.Close()
 27634  		}
 27635  		return nil, gensupport.WrapError(&googleapi.Error{
 27636  			Code:   res.StatusCode,
 27637  			Header: res.Header,
 27638  		})
 27639  	}
 27640  	if err != nil {
 27641  		return nil, err
 27642  	}
 27643  	defer googleapi.CloseBody(res)
 27644  	if err := googleapi.CheckResponse(res); err != nil {
 27645  		return nil, gensupport.WrapError(err)
 27646  	}
 27647  	ret := &GoogleLongrunningOperation{
 27648  		ServerResponse: googleapi.ServerResponse{
 27649  			Header:         res.Header,
 27650  			HTTPStatusCode: res.StatusCode,
 27651  		},
 27652  	}
 27653  	target := &ret
 27654  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27655  		return nil, err
 27656  	}
 27657  	return ret, nil
 27658  }
 27659  
 27660  type ProjectsLocationsDataStoresSchemasDeleteCall struct {
 27661  	s          *Service
 27662  	name       string
 27663  	urlParams_ gensupport.URLParams
 27664  	ctx_       context.Context
 27665  	header_    http.Header
 27666  }
 27667  
 27668  // Delete: Deletes a Schema.
 27669  //
 27670  //   - name: The full resource name of the schema, in the format of
 27671  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27672  //     s/{data_store}/schemas/{schema}`.
 27673  func (r *ProjectsLocationsDataStoresSchemasService) Delete(name string) *ProjectsLocationsDataStoresSchemasDeleteCall {
 27674  	c := &ProjectsLocationsDataStoresSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27675  	c.name = name
 27676  	return c
 27677  }
 27678  
 27679  // Fields allows partial responses to be retrieved. See
 27680  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27681  // details.
 27682  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasDeleteCall {
 27683  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27684  	return c
 27685  }
 27686  
 27687  // Context sets the context to be used in this call's Do method.
 27688  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasDeleteCall {
 27689  	c.ctx_ = ctx
 27690  	return c
 27691  }
 27692  
 27693  // Header returns a http.Header that can be modified by the caller to add
 27694  // headers to the request.
 27695  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Header() http.Header {
 27696  	if c.header_ == nil {
 27697  		c.header_ = make(http.Header)
 27698  	}
 27699  	return c.header_
 27700  }
 27701  
 27702  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) doRequest(alt string) (*http.Response, error) {
 27703  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27704  	var body io.Reader = nil
 27705  	c.urlParams_.Set("alt", alt)
 27706  	c.urlParams_.Set("prettyPrint", "false")
 27707  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 27708  	urls += "?" + c.urlParams_.Encode()
 27709  	req, err := http.NewRequest("DELETE", urls, body)
 27710  	if err != nil {
 27711  		return nil, err
 27712  	}
 27713  	req.Header = reqHeaders
 27714  	googleapi.Expand(req.URL, map[string]string{
 27715  		"name": c.name,
 27716  	})
 27717  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27718  }
 27719  
 27720  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.delete" call.
 27721  // Any non-2xx status code is an error. Response headers are in either
 27722  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 27723  // returned at all) in error.(*googleapi.Error).Header. Use
 27724  // googleapi.IsNotModified to check whether the returned error was because
 27725  // http.StatusNotModified was returned.
 27726  func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 27727  	gensupport.SetOptions(c.urlParams_, opts...)
 27728  	res, err := c.doRequest("json")
 27729  	if res != nil && res.StatusCode == http.StatusNotModified {
 27730  		if res.Body != nil {
 27731  			res.Body.Close()
 27732  		}
 27733  		return nil, gensupport.WrapError(&googleapi.Error{
 27734  			Code:   res.StatusCode,
 27735  			Header: res.Header,
 27736  		})
 27737  	}
 27738  	if err != nil {
 27739  		return nil, err
 27740  	}
 27741  	defer googleapi.CloseBody(res)
 27742  	if err := googleapi.CheckResponse(res); err != nil {
 27743  		return nil, gensupport.WrapError(err)
 27744  	}
 27745  	ret := &GoogleLongrunningOperation{
 27746  		ServerResponse: googleapi.ServerResponse{
 27747  			Header:         res.Header,
 27748  			HTTPStatusCode: res.StatusCode,
 27749  		},
 27750  	}
 27751  	target := &ret
 27752  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27753  		return nil, err
 27754  	}
 27755  	return ret, nil
 27756  }
 27757  
 27758  type ProjectsLocationsDataStoresSchemasGetCall struct {
 27759  	s            *Service
 27760  	name         string
 27761  	urlParams_   gensupport.URLParams
 27762  	ifNoneMatch_ string
 27763  	ctx_         context.Context
 27764  	header_      http.Header
 27765  }
 27766  
 27767  // Get: Gets a Schema.
 27768  //
 27769  //   - name: The full resource name of the schema, in the format of
 27770  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27771  //     s/{data_store}/schemas/{schema}`.
 27772  func (r *ProjectsLocationsDataStoresSchemasService) Get(name string) *ProjectsLocationsDataStoresSchemasGetCall {
 27773  	c := &ProjectsLocationsDataStoresSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27774  	c.name = name
 27775  	return c
 27776  }
 27777  
 27778  // Fields allows partial responses to be retrieved. See
 27779  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27780  // details.
 27781  func (c *ProjectsLocationsDataStoresSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasGetCall {
 27782  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27783  	return c
 27784  }
 27785  
 27786  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27787  // object's ETag matches the given value. This is useful for getting updates
 27788  // only after the object has changed since the last request.
 27789  func (c *ProjectsLocationsDataStoresSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSchemasGetCall {
 27790  	c.ifNoneMatch_ = entityTag
 27791  	return c
 27792  }
 27793  
 27794  // Context sets the context to be used in this call's Do method.
 27795  func (c *ProjectsLocationsDataStoresSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasGetCall {
 27796  	c.ctx_ = ctx
 27797  	return c
 27798  }
 27799  
 27800  // Header returns a http.Header that can be modified by the caller to add
 27801  // headers to the request.
 27802  func (c *ProjectsLocationsDataStoresSchemasGetCall) Header() http.Header {
 27803  	if c.header_ == nil {
 27804  		c.header_ = make(http.Header)
 27805  	}
 27806  	return c.header_
 27807  }
 27808  
 27809  func (c *ProjectsLocationsDataStoresSchemasGetCall) doRequest(alt string) (*http.Response, error) {
 27810  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27811  	if c.ifNoneMatch_ != "" {
 27812  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27813  	}
 27814  	var body io.Reader = nil
 27815  	c.urlParams_.Set("alt", alt)
 27816  	c.urlParams_.Set("prettyPrint", "false")
 27817  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 27818  	urls += "?" + c.urlParams_.Encode()
 27819  	req, err := http.NewRequest("GET", urls, body)
 27820  	if err != nil {
 27821  		return nil, err
 27822  	}
 27823  	req.Header = reqHeaders
 27824  	googleapi.Expand(req.URL, map[string]string{
 27825  		"name": c.name,
 27826  	})
 27827  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27828  }
 27829  
 27830  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.get" call.
 27831  // Any non-2xx status code is an error. Response headers are in either
 27832  // *GoogleCloudDiscoveryengineV1betaSchema.ServerResponse.Header or (if a
 27833  // response was returned at all) in error.(*googleapi.Error).Header. Use
 27834  // googleapi.IsNotModified to check whether the returned error was because
 27835  // http.StatusNotModified was returned.
 27836  func (c *ProjectsLocationsDataStoresSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSchema, error) {
 27837  	gensupport.SetOptions(c.urlParams_, opts...)
 27838  	res, err := c.doRequest("json")
 27839  	if res != nil && res.StatusCode == http.StatusNotModified {
 27840  		if res.Body != nil {
 27841  			res.Body.Close()
 27842  		}
 27843  		return nil, gensupport.WrapError(&googleapi.Error{
 27844  			Code:   res.StatusCode,
 27845  			Header: res.Header,
 27846  		})
 27847  	}
 27848  	if err != nil {
 27849  		return nil, err
 27850  	}
 27851  	defer googleapi.CloseBody(res)
 27852  	if err := googleapi.CheckResponse(res); err != nil {
 27853  		return nil, gensupport.WrapError(err)
 27854  	}
 27855  	ret := &GoogleCloudDiscoveryengineV1betaSchema{
 27856  		ServerResponse: googleapi.ServerResponse{
 27857  			Header:         res.Header,
 27858  			HTTPStatusCode: res.StatusCode,
 27859  		},
 27860  	}
 27861  	target := &ret
 27862  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27863  		return nil, err
 27864  	}
 27865  	return ret, nil
 27866  }
 27867  
 27868  type ProjectsLocationsDataStoresSchemasListCall struct {
 27869  	s            *Service
 27870  	parent       string
 27871  	urlParams_   gensupport.URLParams
 27872  	ifNoneMatch_ string
 27873  	ctx_         context.Context
 27874  	header_      http.Header
 27875  }
 27876  
 27877  // List: Gets a list of Schemas.
 27878  //
 27879  //   - parent: The parent data store resource name, in the format of
 27880  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 27881  //     s/{data_store}`.
 27882  func (r *ProjectsLocationsDataStoresSchemasService) List(parent string) *ProjectsLocationsDataStoresSchemasListCall {
 27883  	c := &ProjectsLocationsDataStoresSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 27884  	c.parent = parent
 27885  	return c
 27886  }
 27887  
 27888  // PageSize sets the optional parameter "pageSize": The maximum number of
 27889  // Schemas to return. The service may return fewer than this value. If
 27890  // unspecified, at most 100 Schemas will be returned. The maximum value is
 27891  // 1000; values above 1000 will be coerced to 1000.
 27892  func (c *ProjectsLocationsDataStoresSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSchemasListCall {
 27893  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 27894  	return c
 27895  }
 27896  
 27897  // PageToken sets the optional parameter "pageToken": A page token, received
 27898  // from a previous SchemaService.ListSchemas call. Provide this to retrieve the
 27899  // subsequent page. When paginating, all other parameters provided to
 27900  // SchemaService.ListSchemas must match the call that provided the page token.
 27901  func (c *ProjectsLocationsDataStoresSchemasListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSchemasListCall {
 27902  	c.urlParams_.Set("pageToken", pageToken)
 27903  	return c
 27904  }
 27905  
 27906  // Fields allows partial responses to be retrieved. See
 27907  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 27908  // details.
 27909  func (c *ProjectsLocationsDataStoresSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasListCall {
 27910  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 27911  	return c
 27912  }
 27913  
 27914  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 27915  // object's ETag matches the given value. This is useful for getting updates
 27916  // only after the object has changed since the last request.
 27917  func (c *ProjectsLocationsDataStoresSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSchemasListCall {
 27918  	c.ifNoneMatch_ = entityTag
 27919  	return c
 27920  }
 27921  
 27922  // Context sets the context to be used in this call's Do method.
 27923  func (c *ProjectsLocationsDataStoresSchemasListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasListCall {
 27924  	c.ctx_ = ctx
 27925  	return c
 27926  }
 27927  
 27928  // Header returns a http.Header that can be modified by the caller to add
 27929  // headers to the request.
 27930  func (c *ProjectsLocationsDataStoresSchemasListCall) Header() http.Header {
 27931  	if c.header_ == nil {
 27932  		c.header_ = make(http.Header)
 27933  	}
 27934  	return c.header_
 27935  }
 27936  
 27937  func (c *ProjectsLocationsDataStoresSchemasListCall) doRequest(alt string) (*http.Response, error) {
 27938  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 27939  	if c.ifNoneMatch_ != "" {
 27940  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 27941  	}
 27942  	var body io.Reader = nil
 27943  	c.urlParams_.Set("alt", alt)
 27944  	c.urlParams_.Set("prettyPrint", "false")
 27945  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/schemas")
 27946  	urls += "?" + c.urlParams_.Encode()
 27947  	req, err := http.NewRequest("GET", urls, body)
 27948  	if err != nil {
 27949  		return nil, err
 27950  	}
 27951  	req.Header = reqHeaders
 27952  	googleapi.Expand(req.URL, map[string]string{
 27953  		"parent": c.parent,
 27954  	})
 27955  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 27956  }
 27957  
 27958  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.list" call.
 27959  // Any non-2xx status code is an error. Response headers are in either
 27960  // *GoogleCloudDiscoveryengineV1betaListSchemasResponse.ServerResponse.Header
 27961  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 27962  // Use googleapi.IsNotModified to check whether the returned error was because
 27963  // http.StatusNotModified was returned.
 27964  func (c *ProjectsLocationsDataStoresSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListSchemasResponse, error) {
 27965  	gensupport.SetOptions(c.urlParams_, opts...)
 27966  	res, err := c.doRequest("json")
 27967  	if res != nil && res.StatusCode == http.StatusNotModified {
 27968  		if res.Body != nil {
 27969  			res.Body.Close()
 27970  		}
 27971  		return nil, gensupport.WrapError(&googleapi.Error{
 27972  			Code:   res.StatusCode,
 27973  			Header: res.Header,
 27974  		})
 27975  	}
 27976  	if err != nil {
 27977  		return nil, err
 27978  	}
 27979  	defer googleapi.CloseBody(res)
 27980  	if err := googleapi.CheckResponse(res); err != nil {
 27981  		return nil, gensupport.WrapError(err)
 27982  	}
 27983  	ret := &GoogleCloudDiscoveryengineV1betaListSchemasResponse{
 27984  		ServerResponse: googleapi.ServerResponse{
 27985  			Header:         res.Header,
 27986  			HTTPStatusCode: res.StatusCode,
 27987  		},
 27988  	}
 27989  	target := &ret
 27990  	if err := gensupport.DecodeResponse(target, res); err != nil {
 27991  		return nil, err
 27992  	}
 27993  	return ret, nil
 27994  }
 27995  
 27996  // Pages invokes f for each page of results.
 27997  // A non-nil error returned from f will halt the iteration.
 27998  // The provided context supersedes any context provided to the Context method.
 27999  func (c *ProjectsLocationsDataStoresSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListSchemasResponse) error) error {
 28000  	c.ctx_ = ctx
 28001  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 28002  	for {
 28003  		x, err := c.Do()
 28004  		if err != nil {
 28005  			return err
 28006  		}
 28007  		if err := f(x); err != nil {
 28008  			return err
 28009  		}
 28010  		if x.NextPageToken == "" {
 28011  			return nil
 28012  		}
 28013  		c.PageToken(x.NextPageToken)
 28014  	}
 28015  }
 28016  
 28017  type ProjectsLocationsDataStoresSchemasPatchCall struct {
 28018  	s                                      *Service
 28019  	name                                   string
 28020  	googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema
 28021  	urlParams_                             gensupport.URLParams
 28022  	ctx_                                   context.Context
 28023  	header_                                http.Header
 28024  }
 28025  
 28026  // Patch: Updates a Schema.
 28027  //
 28028  //   - name: Immutable. The full resource name of the schema, in the format of
 28029  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 28030  //     s/{data_store}/schemas/{schema}`. This field must be a UTF-8 encoded
 28031  //     string with a length limit of 1024 characters.
 28032  func (r *ProjectsLocationsDataStoresSchemasService) Patch(name string, googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema) *ProjectsLocationsDataStoresSchemasPatchCall {
 28033  	c := &ProjectsLocationsDataStoresSchemasPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28034  	c.name = name
 28035  	c.googleclouddiscoveryenginev1betaschema = googleclouddiscoveryenginev1betaschema
 28036  	return c
 28037  }
 28038  
 28039  // AllowMissing sets the optional parameter "allowMissing": If set to true, and
 28040  // the Schema is not found, a new Schema will be created. In this situation,
 28041  // `update_mask` is ignored.
 28042  func (c *ProjectsLocationsDataStoresSchemasPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDataStoresSchemasPatchCall {
 28043  	c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
 28044  	return c
 28045  }
 28046  
 28047  // Fields allows partial responses to be retrieved. See
 28048  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28049  // details.
 28050  func (c *ProjectsLocationsDataStoresSchemasPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasPatchCall {
 28051  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28052  	return c
 28053  }
 28054  
 28055  // Context sets the context to be used in this call's Do method.
 28056  func (c *ProjectsLocationsDataStoresSchemasPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasPatchCall {
 28057  	c.ctx_ = ctx
 28058  	return c
 28059  }
 28060  
 28061  // Header returns a http.Header that can be modified by the caller to add
 28062  // headers to the request.
 28063  func (c *ProjectsLocationsDataStoresSchemasPatchCall) Header() http.Header {
 28064  	if c.header_ == nil {
 28065  		c.header_ = make(http.Header)
 28066  	}
 28067  	return c.header_
 28068  }
 28069  
 28070  func (c *ProjectsLocationsDataStoresSchemasPatchCall) doRequest(alt string) (*http.Response, error) {
 28071  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28072  	var body io.Reader = nil
 28073  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaschema)
 28074  	if err != nil {
 28075  		return nil, err
 28076  	}
 28077  	c.urlParams_.Set("alt", alt)
 28078  	c.urlParams_.Set("prettyPrint", "false")
 28079  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 28080  	urls += "?" + c.urlParams_.Encode()
 28081  	req, err := http.NewRequest("PATCH", urls, body)
 28082  	if err != nil {
 28083  		return nil, err
 28084  	}
 28085  	req.Header = reqHeaders
 28086  	googleapi.Expand(req.URL, map[string]string{
 28087  		"name": c.name,
 28088  	})
 28089  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28090  }
 28091  
 28092  // Do executes the "discoveryengine.projects.locations.dataStores.schemas.patch" call.
 28093  // Any non-2xx status code is an error. Response headers are in either
 28094  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 28095  // returned at all) in error.(*googleapi.Error).Header. Use
 28096  // googleapi.IsNotModified to check whether the returned error was because
 28097  // http.StatusNotModified was returned.
 28098  func (c *ProjectsLocationsDataStoresSchemasPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 28099  	gensupport.SetOptions(c.urlParams_, opts...)
 28100  	res, err := c.doRequest("json")
 28101  	if res != nil && res.StatusCode == http.StatusNotModified {
 28102  		if res.Body != nil {
 28103  			res.Body.Close()
 28104  		}
 28105  		return nil, gensupport.WrapError(&googleapi.Error{
 28106  			Code:   res.StatusCode,
 28107  			Header: res.Header,
 28108  		})
 28109  	}
 28110  	if err != nil {
 28111  		return nil, err
 28112  	}
 28113  	defer googleapi.CloseBody(res)
 28114  	if err := googleapi.CheckResponse(res); err != nil {
 28115  		return nil, gensupport.WrapError(err)
 28116  	}
 28117  	ret := &GoogleLongrunningOperation{
 28118  		ServerResponse: googleapi.ServerResponse{
 28119  			Header:         res.Header,
 28120  			HTTPStatusCode: res.StatusCode,
 28121  		},
 28122  	}
 28123  	target := &ret
 28124  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28125  		return nil, err
 28126  	}
 28127  	return ret, nil
 28128  }
 28129  
 28130  type ProjectsLocationsDataStoresServingConfigsAnswerCall struct {
 28131  	s                                                  *Service
 28132  	servingConfig                                      string
 28133  	googleclouddiscoveryenginev1betaanswerqueryrequest *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
 28134  	urlParams_                                         gensupport.URLParams
 28135  	ctx_                                               context.Context
 28136  	header_                                            http.Header
 28137  }
 28138  
 28139  // Answer: Answer query method.
 28140  //
 28141  //   - servingConfig: The resource name of the Search serving config, such as
 28142  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 28143  //     ngConfigs/default_serving_config`, or
 28144  //     `projects/*/locations/global/collections/default_collection/dataStores/*/se
 28145  //     rvingConfigs/default_serving_config`. This field is used to identify the
 28146  //     serving configuration name, set of models used to make the search.
 28147  func (r *ProjectsLocationsDataStoresServingConfigsService) Answer(servingConfig string, googleclouddiscoveryenginev1betaanswerqueryrequest *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest) *ProjectsLocationsDataStoresServingConfigsAnswerCall {
 28148  	c := &ProjectsLocationsDataStoresServingConfigsAnswerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28149  	c.servingConfig = servingConfig
 28150  	c.googleclouddiscoveryenginev1betaanswerqueryrequest = googleclouddiscoveryenginev1betaanswerqueryrequest
 28151  	return c
 28152  }
 28153  
 28154  // Fields allows partial responses to be retrieved. See
 28155  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28156  // details.
 28157  func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsAnswerCall {
 28158  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28159  	return c
 28160  }
 28161  
 28162  // Context sets the context to be used in this call's Do method.
 28163  func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsAnswerCall {
 28164  	c.ctx_ = ctx
 28165  	return c
 28166  }
 28167  
 28168  // Header returns a http.Header that can be modified by the caller to add
 28169  // headers to the request.
 28170  func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Header() http.Header {
 28171  	if c.header_ == nil {
 28172  		c.header_ = make(http.Header)
 28173  	}
 28174  	return c.header_
 28175  }
 28176  
 28177  func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) doRequest(alt string) (*http.Response, error) {
 28178  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28179  	var body io.Reader = nil
 28180  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaanswerqueryrequest)
 28181  	if err != nil {
 28182  		return nil, err
 28183  	}
 28184  	c.urlParams_.Set("alt", alt)
 28185  	c.urlParams_.Set("prettyPrint", "false")
 28186  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:answer")
 28187  	urls += "?" + c.urlParams_.Encode()
 28188  	req, err := http.NewRequest("POST", urls, body)
 28189  	if err != nil {
 28190  		return nil, err
 28191  	}
 28192  	req.Header = reqHeaders
 28193  	googleapi.Expand(req.URL, map[string]string{
 28194  		"servingConfig": c.servingConfig,
 28195  	})
 28196  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28197  }
 28198  
 28199  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.answer" call.
 28200  // Any non-2xx status code is an error. Response headers are in either
 28201  // *GoogleCloudDiscoveryengineV1betaAnswerQueryResponse.ServerResponse.Header
 28202  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 28203  // Use googleapi.IsNotModified to check whether the returned error was because
 28204  // http.StatusNotModified was returned.
 28205  func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaAnswerQueryResponse, error) {
 28206  	gensupport.SetOptions(c.urlParams_, opts...)
 28207  	res, err := c.doRequest("json")
 28208  	if res != nil && res.StatusCode == http.StatusNotModified {
 28209  		if res.Body != nil {
 28210  			res.Body.Close()
 28211  		}
 28212  		return nil, gensupport.WrapError(&googleapi.Error{
 28213  			Code:   res.StatusCode,
 28214  			Header: res.Header,
 28215  		})
 28216  	}
 28217  	if err != nil {
 28218  		return nil, err
 28219  	}
 28220  	defer googleapi.CloseBody(res)
 28221  	if err := googleapi.CheckResponse(res); err != nil {
 28222  		return nil, gensupport.WrapError(err)
 28223  	}
 28224  	ret := &GoogleCloudDiscoveryengineV1betaAnswerQueryResponse{
 28225  		ServerResponse: googleapi.ServerResponse{
 28226  			Header:         res.Header,
 28227  			HTTPStatusCode: res.StatusCode,
 28228  		},
 28229  	}
 28230  	target := &ret
 28231  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28232  		return nil, err
 28233  	}
 28234  	return ret, nil
 28235  }
 28236  
 28237  type ProjectsLocationsDataStoresServingConfigsGetCall struct {
 28238  	s            *Service
 28239  	name         string
 28240  	urlParams_   gensupport.URLParams
 28241  	ifNoneMatch_ string
 28242  	ctx_         context.Context
 28243  	header_      http.Header
 28244  }
 28245  
 28246  // Get: Gets a ServingConfig. Returns a NotFound error if the ServingConfig
 28247  // does not exist.
 28248  //
 28249  //   - name: The resource name of the ServingConfig to get. Format:
 28250  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 28251  //     gines/{engine}/servingConfigs/{serving_config_id}`.
 28252  func (r *ProjectsLocationsDataStoresServingConfigsService) Get(name string) *ProjectsLocationsDataStoresServingConfigsGetCall {
 28253  	c := &ProjectsLocationsDataStoresServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28254  	c.name = name
 28255  	return c
 28256  }
 28257  
 28258  // Fields allows partial responses to be retrieved. See
 28259  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28260  // details.
 28261  func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsGetCall {
 28262  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28263  	return c
 28264  }
 28265  
 28266  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28267  // object's ETag matches the given value. This is useful for getting updates
 28268  // only after the object has changed since the last request.
 28269  func (c *ProjectsLocationsDataStoresServingConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresServingConfigsGetCall {
 28270  	c.ifNoneMatch_ = entityTag
 28271  	return c
 28272  }
 28273  
 28274  // Context sets the context to be used in this call's Do method.
 28275  func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsGetCall {
 28276  	c.ctx_ = ctx
 28277  	return c
 28278  }
 28279  
 28280  // Header returns a http.Header that can be modified by the caller to add
 28281  // headers to the request.
 28282  func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Header() http.Header {
 28283  	if c.header_ == nil {
 28284  		c.header_ = make(http.Header)
 28285  	}
 28286  	return c.header_
 28287  }
 28288  
 28289  func (c *ProjectsLocationsDataStoresServingConfigsGetCall) doRequest(alt string) (*http.Response, error) {
 28290  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28291  	if c.ifNoneMatch_ != "" {
 28292  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28293  	}
 28294  	var body io.Reader = nil
 28295  	c.urlParams_.Set("alt", alt)
 28296  	c.urlParams_.Set("prettyPrint", "false")
 28297  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 28298  	urls += "?" + c.urlParams_.Encode()
 28299  	req, err := http.NewRequest("GET", urls, body)
 28300  	if err != nil {
 28301  		return nil, err
 28302  	}
 28303  	req.Header = reqHeaders
 28304  	googleapi.Expand(req.URL, map[string]string{
 28305  		"name": c.name,
 28306  	})
 28307  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28308  }
 28309  
 28310  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.get" call.
 28311  // Any non-2xx status code is an error. Response headers are in either
 28312  // *GoogleCloudDiscoveryengineV1betaServingConfig.ServerResponse.Header or (if
 28313  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 28314  // googleapi.IsNotModified to check whether the returned error was because
 28315  // http.StatusNotModified was returned.
 28316  func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaServingConfig, error) {
 28317  	gensupport.SetOptions(c.urlParams_, opts...)
 28318  	res, err := c.doRequest("json")
 28319  	if res != nil && res.StatusCode == http.StatusNotModified {
 28320  		if res.Body != nil {
 28321  			res.Body.Close()
 28322  		}
 28323  		return nil, gensupport.WrapError(&googleapi.Error{
 28324  			Code:   res.StatusCode,
 28325  			Header: res.Header,
 28326  		})
 28327  	}
 28328  	if err != nil {
 28329  		return nil, err
 28330  	}
 28331  	defer googleapi.CloseBody(res)
 28332  	if err := googleapi.CheckResponse(res); err != nil {
 28333  		return nil, gensupport.WrapError(err)
 28334  	}
 28335  	ret := &GoogleCloudDiscoveryengineV1betaServingConfig{
 28336  		ServerResponse: googleapi.ServerResponse{
 28337  			Header:         res.Header,
 28338  			HTTPStatusCode: res.StatusCode,
 28339  		},
 28340  	}
 28341  	target := &ret
 28342  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28343  		return nil, err
 28344  	}
 28345  	return ret, nil
 28346  }
 28347  
 28348  type ProjectsLocationsDataStoresServingConfigsListCall struct {
 28349  	s            *Service
 28350  	parent       string
 28351  	urlParams_   gensupport.URLParams
 28352  	ifNoneMatch_ string
 28353  	ctx_         context.Context
 28354  	header_      http.Header
 28355  }
 28356  
 28357  // List: Lists all ServingConfigs linked to this dataStore.
 28358  //
 28359  //   - parent: Full resource name of the parent resource. Format:
 28360  //     `projects/{project_number}/locations/{location}/collections/{collection}/en
 28361  //     gines/{engine}`.
 28362  func (r *ProjectsLocationsDataStoresServingConfigsService) List(parent string) *ProjectsLocationsDataStoresServingConfigsListCall {
 28363  	c := &ProjectsLocationsDataStoresServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28364  	c.parent = parent
 28365  	return c
 28366  }
 28367  
 28368  // PageSize sets the optional parameter "pageSize": Maximum number of results
 28369  // to return. If unspecified, defaults to 100. If a value greater than 100 is
 28370  // provided, at most 100 results are returned.
 28371  func (c *ProjectsLocationsDataStoresServingConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresServingConfigsListCall {
 28372  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 28373  	return c
 28374  }
 28375  
 28376  // PageToken sets the optional parameter "pageToken": A page token, received
 28377  // from a previous `ListServingConfigs` call. Provide this to retrieve the
 28378  // subsequent page.
 28379  func (c *ProjectsLocationsDataStoresServingConfigsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresServingConfigsListCall {
 28380  	c.urlParams_.Set("pageToken", pageToken)
 28381  	return c
 28382  }
 28383  
 28384  // Fields allows partial responses to be retrieved. See
 28385  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28386  // details.
 28387  func (c *ProjectsLocationsDataStoresServingConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsListCall {
 28388  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28389  	return c
 28390  }
 28391  
 28392  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 28393  // object's ETag matches the given value. This is useful for getting updates
 28394  // only after the object has changed since the last request.
 28395  func (c *ProjectsLocationsDataStoresServingConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresServingConfigsListCall {
 28396  	c.ifNoneMatch_ = entityTag
 28397  	return c
 28398  }
 28399  
 28400  // Context sets the context to be used in this call's Do method.
 28401  func (c *ProjectsLocationsDataStoresServingConfigsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsListCall {
 28402  	c.ctx_ = ctx
 28403  	return c
 28404  }
 28405  
 28406  // Header returns a http.Header that can be modified by the caller to add
 28407  // headers to the request.
 28408  func (c *ProjectsLocationsDataStoresServingConfigsListCall) Header() http.Header {
 28409  	if c.header_ == nil {
 28410  		c.header_ = make(http.Header)
 28411  	}
 28412  	return c.header_
 28413  }
 28414  
 28415  func (c *ProjectsLocationsDataStoresServingConfigsListCall) doRequest(alt string) (*http.Response, error) {
 28416  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28417  	if c.ifNoneMatch_ != "" {
 28418  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 28419  	}
 28420  	var body io.Reader = nil
 28421  	c.urlParams_.Set("alt", alt)
 28422  	c.urlParams_.Set("prettyPrint", "false")
 28423  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/servingConfigs")
 28424  	urls += "?" + c.urlParams_.Encode()
 28425  	req, err := http.NewRequest("GET", urls, body)
 28426  	if err != nil {
 28427  		return nil, err
 28428  	}
 28429  	req.Header = reqHeaders
 28430  	googleapi.Expand(req.URL, map[string]string{
 28431  		"parent": c.parent,
 28432  	})
 28433  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28434  }
 28435  
 28436  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.list" call.
 28437  // Any non-2xx status code is an error. Response headers are in either
 28438  // *GoogleCloudDiscoveryengineV1betaListServingConfigsResponse.ServerResponse.He
 28439  // ader or (if a response was returned at all) in
 28440  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 28441  // whether the returned error was because http.StatusNotModified was returned.
 28442  func (c *ProjectsLocationsDataStoresServingConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListServingConfigsResponse, error) {
 28443  	gensupport.SetOptions(c.urlParams_, opts...)
 28444  	res, err := c.doRequest("json")
 28445  	if res != nil && res.StatusCode == http.StatusNotModified {
 28446  		if res.Body != nil {
 28447  			res.Body.Close()
 28448  		}
 28449  		return nil, gensupport.WrapError(&googleapi.Error{
 28450  			Code:   res.StatusCode,
 28451  			Header: res.Header,
 28452  		})
 28453  	}
 28454  	if err != nil {
 28455  		return nil, err
 28456  	}
 28457  	defer googleapi.CloseBody(res)
 28458  	if err := googleapi.CheckResponse(res); err != nil {
 28459  		return nil, gensupport.WrapError(err)
 28460  	}
 28461  	ret := &GoogleCloudDiscoveryengineV1betaListServingConfigsResponse{
 28462  		ServerResponse: googleapi.ServerResponse{
 28463  			Header:         res.Header,
 28464  			HTTPStatusCode: res.StatusCode,
 28465  		},
 28466  	}
 28467  	target := &ret
 28468  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28469  		return nil, err
 28470  	}
 28471  	return ret, nil
 28472  }
 28473  
 28474  // Pages invokes f for each page of results.
 28475  // A non-nil error returned from f will halt the iteration.
 28476  // The provided context supersedes any context provided to the Context method.
 28477  func (c *ProjectsLocationsDataStoresServingConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListServingConfigsResponse) error) error {
 28478  	c.ctx_ = ctx
 28479  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 28480  	for {
 28481  		x, err := c.Do()
 28482  		if err != nil {
 28483  			return err
 28484  		}
 28485  		if err := f(x); err != nil {
 28486  			return err
 28487  		}
 28488  		if x.NextPageToken == "" {
 28489  			return nil
 28490  		}
 28491  		c.PageToken(x.NextPageToken)
 28492  	}
 28493  }
 28494  
 28495  type ProjectsLocationsDataStoresServingConfigsPatchCall struct {
 28496  	s                                             *Service
 28497  	name                                          string
 28498  	googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig
 28499  	urlParams_                                    gensupport.URLParams
 28500  	ctx_                                          context.Context
 28501  	header_                                       http.Header
 28502  }
 28503  
 28504  // Patch: Updates a ServingConfig. Returns a NOT_FOUND error if the
 28505  // ServingConfig does not exist.
 28506  //
 28507  //   - name: Immutable. Fully qualified name
 28508  //     `projects/{project}/locations/{location}/collections/{collection_id}/engine
 28509  //     s/{engine_id}/servingConfigs/{serving_config_id}`.
 28510  func (r *ProjectsLocationsDataStoresServingConfigsService) Patch(name string, googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig) *ProjectsLocationsDataStoresServingConfigsPatchCall {
 28511  	c := &ProjectsLocationsDataStoresServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28512  	c.name = name
 28513  	c.googleclouddiscoveryenginev1betaservingconfig = googleclouddiscoveryenginev1betaservingconfig
 28514  	return c
 28515  }
 28516  
 28517  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 28518  // in the provided ServingConfig to update. The following are NOT supported: *
 28519  // ServingConfig.name If not set, all supported fields are updated.
 28520  func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresServingConfigsPatchCall {
 28521  	c.urlParams_.Set("updateMask", updateMask)
 28522  	return c
 28523  }
 28524  
 28525  // Fields allows partial responses to be retrieved. See
 28526  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28527  // details.
 28528  func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsPatchCall {
 28529  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28530  	return c
 28531  }
 28532  
 28533  // Context sets the context to be used in this call's Do method.
 28534  func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsPatchCall {
 28535  	c.ctx_ = ctx
 28536  	return c
 28537  }
 28538  
 28539  // Header returns a http.Header that can be modified by the caller to add
 28540  // headers to the request.
 28541  func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Header() http.Header {
 28542  	if c.header_ == nil {
 28543  		c.header_ = make(http.Header)
 28544  	}
 28545  	return c.header_
 28546  }
 28547  
 28548  func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
 28549  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28550  	var body io.Reader = nil
 28551  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaservingconfig)
 28552  	if err != nil {
 28553  		return nil, err
 28554  	}
 28555  	c.urlParams_.Set("alt", alt)
 28556  	c.urlParams_.Set("prettyPrint", "false")
 28557  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 28558  	urls += "?" + c.urlParams_.Encode()
 28559  	req, err := http.NewRequest("PATCH", urls, body)
 28560  	if err != nil {
 28561  		return nil, err
 28562  	}
 28563  	req.Header = reqHeaders
 28564  	googleapi.Expand(req.URL, map[string]string{
 28565  		"name": c.name,
 28566  	})
 28567  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28568  }
 28569  
 28570  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.patch" call.
 28571  // Any non-2xx status code is an error. Response headers are in either
 28572  // *GoogleCloudDiscoveryengineV1betaServingConfig.ServerResponse.Header or (if
 28573  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 28574  // googleapi.IsNotModified to check whether the returned error was because
 28575  // http.StatusNotModified was returned.
 28576  func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaServingConfig, error) {
 28577  	gensupport.SetOptions(c.urlParams_, opts...)
 28578  	res, err := c.doRequest("json")
 28579  	if res != nil && res.StatusCode == http.StatusNotModified {
 28580  		if res.Body != nil {
 28581  			res.Body.Close()
 28582  		}
 28583  		return nil, gensupport.WrapError(&googleapi.Error{
 28584  			Code:   res.StatusCode,
 28585  			Header: res.Header,
 28586  		})
 28587  	}
 28588  	if err != nil {
 28589  		return nil, err
 28590  	}
 28591  	defer googleapi.CloseBody(res)
 28592  	if err := googleapi.CheckResponse(res); err != nil {
 28593  		return nil, gensupport.WrapError(err)
 28594  	}
 28595  	ret := &GoogleCloudDiscoveryengineV1betaServingConfig{
 28596  		ServerResponse: googleapi.ServerResponse{
 28597  			Header:         res.Header,
 28598  			HTTPStatusCode: res.StatusCode,
 28599  		},
 28600  	}
 28601  	target := &ret
 28602  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28603  		return nil, err
 28604  	}
 28605  	return ret, nil
 28606  }
 28607  
 28608  type ProjectsLocationsDataStoresServingConfigsRecommendCall struct {
 28609  	s                                                *Service
 28610  	servingConfig                                    string
 28611  	googleclouddiscoveryenginev1betarecommendrequest *GoogleCloudDiscoveryengineV1betaRecommendRequest
 28612  	urlParams_                                       gensupport.URLParams
 28613  	ctx_                                             context.Context
 28614  	header_                                          http.Header
 28615  }
 28616  
 28617  // Recommend: Makes a recommendation, which requires a contextual user event.
 28618  //
 28619  //   - servingConfig: Full resource name of a ServingConfig:
 28620  //     `projects/*/locations/global/collections/*/engines/*/servingConfigs/*`, or
 28621  //     `projects/*/locations/global/collections/*/dataStores/*/servingConfigs/*`
 28622  //     One default serving config is created along with your recommendation
 28623  //     engine creation. The engine ID will be used as the ID of the default
 28624  //     serving config. For example, for Engine
 28625  //     `projects/*/locations/global/collections/*/engines/my-engine`, you can use
 28626  //     `projects/*/locations/global/collections/*/engines/my-engine/servingConfigs
 28627  //     /my-engine` for your RecommendationService.Recommend requests.
 28628  func (r *ProjectsLocationsDataStoresServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1betarecommendrequest *GoogleCloudDiscoveryengineV1betaRecommendRequest) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
 28629  	c := &ProjectsLocationsDataStoresServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28630  	c.servingConfig = servingConfig
 28631  	c.googleclouddiscoveryenginev1betarecommendrequest = googleclouddiscoveryenginev1betarecommendrequest
 28632  	return c
 28633  }
 28634  
 28635  // Fields allows partial responses to be retrieved. See
 28636  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28637  // details.
 28638  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
 28639  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28640  	return c
 28641  }
 28642  
 28643  // Context sets the context to be used in this call's Do method.
 28644  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
 28645  	c.ctx_ = ctx
 28646  	return c
 28647  }
 28648  
 28649  // Header returns a http.Header that can be modified by the caller to add
 28650  // headers to the request.
 28651  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Header() http.Header {
 28652  	if c.header_ == nil {
 28653  		c.header_ = make(http.Header)
 28654  	}
 28655  	return c.header_
 28656  }
 28657  
 28658  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
 28659  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28660  	var body io.Reader = nil
 28661  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betarecommendrequest)
 28662  	if err != nil {
 28663  		return nil, err
 28664  	}
 28665  	c.urlParams_.Set("alt", alt)
 28666  	c.urlParams_.Set("prettyPrint", "false")
 28667  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:recommend")
 28668  	urls += "?" + c.urlParams_.Encode()
 28669  	req, err := http.NewRequest("POST", urls, body)
 28670  	if err != nil {
 28671  		return nil, err
 28672  	}
 28673  	req.Header = reqHeaders
 28674  	googleapi.Expand(req.URL, map[string]string{
 28675  		"servingConfig": c.servingConfig,
 28676  	})
 28677  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28678  }
 28679  
 28680  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.recommend" call.
 28681  // Any non-2xx status code is an error. Response headers are in either
 28682  // *GoogleCloudDiscoveryengineV1betaRecommendResponse.ServerResponse.Header or
 28683  // (if a response was returned at all) in error.(*googleapi.Error).Header. Use
 28684  // googleapi.IsNotModified to check whether the returned error was because
 28685  // http.StatusNotModified was returned.
 28686  func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaRecommendResponse, error) {
 28687  	gensupport.SetOptions(c.urlParams_, opts...)
 28688  	res, err := c.doRequest("json")
 28689  	if res != nil && res.StatusCode == http.StatusNotModified {
 28690  		if res.Body != nil {
 28691  			res.Body.Close()
 28692  		}
 28693  		return nil, gensupport.WrapError(&googleapi.Error{
 28694  			Code:   res.StatusCode,
 28695  			Header: res.Header,
 28696  		})
 28697  	}
 28698  	if err != nil {
 28699  		return nil, err
 28700  	}
 28701  	defer googleapi.CloseBody(res)
 28702  	if err := googleapi.CheckResponse(res); err != nil {
 28703  		return nil, gensupport.WrapError(err)
 28704  	}
 28705  	ret := &GoogleCloudDiscoveryengineV1betaRecommendResponse{
 28706  		ServerResponse: googleapi.ServerResponse{
 28707  			Header:         res.Header,
 28708  			HTTPStatusCode: res.StatusCode,
 28709  		},
 28710  	}
 28711  	target := &ret
 28712  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28713  		return nil, err
 28714  	}
 28715  	return ret, nil
 28716  }
 28717  
 28718  type ProjectsLocationsDataStoresServingConfigsSearchCall struct {
 28719  	s                                             *Service
 28720  	servingConfig                                 string
 28721  	googleclouddiscoveryenginev1betasearchrequest *GoogleCloudDiscoveryengineV1betaSearchRequest
 28722  	urlParams_                                    gensupport.URLParams
 28723  	ctx_                                          context.Context
 28724  	header_                                       http.Header
 28725  }
 28726  
 28727  // Search: Performs a search.
 28728  //
 28729  //   - servingConfig: The resource name of the Search serving config, such as
 28730  //     `projects/*/locations/global/collections/default_collection/engines/*/servi
 28731  //     ngConfigs/default_serving_config`, or
 28732  //     `projects/*/locations/global/collections/default_collection/dataStores/defa
 28733  //     ult_data_store/servingConfigs/default_serving_config`. This field is used
 28734  //     to identify the serving configuration name, set of models used to make the
 28735  //     search.
 28736  func (r *ProjectsLocationsDataStoresServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1betasearchrequest *GoogleCloudDiscoveryengineV1betaSearchRequest) *ProjectsLocationsDataStoresServingConfigsSearchCall {
 28737  	c := &ProjectsLocationsDataStoresServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28738  	c.servingConfig = servingConfig
 28739  	c.googleclouddiscoveryenginev1betasearchrequest = googleclouddiscoveryenginev1betasearchrequest
 28740  	return c
 28741  }
 28742  
 28743  // Fields allows partial responses to be retrieved. See
 28744  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28745  // details.
 28746  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsSearchCall {
 28747  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28748  	return c
 28749  }
 28750  
 28751  // Context sets the context to be used in this call's Do method.
 28752  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsSearchCall {
 28753  	c.ctx_ = ctx
 28754  	return c
 28755  }
 28756  
 28757  // Header returns a http.Header that can be modified by the caller to add
 28758  // headers to the request.
 28759  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Header() http.Header {
 28760  	if c.header_ == nil {
 28761  		c.header_ = make(http.Header)
 28762  	}
 28763  	return c.header_
 28764  }
 28765  
 28766  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
 28767  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28768  	var body io.Reader = nil
 28769  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasearchrequest)
 28770  	if err != nil {
 28771  		return nil, err
 28772  	}
 28773  	c.urlParams_.Set("alt", alt)
 28774  	c.urlParams_.Set("prettyPrint", "false")
 28775  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:search")
 28776  	urls += "?" + c.urlParams_.Encode()
 28777  	req, err := http.NewRequest("POST", urls, body)
 28778  	if err != nil {
 28779  		return nil, err
 28780  	}
 28781  	req.Header = reqHeaders
 28782  	googleapi.Expand(req.URL, map[string]string{
 28783  		"servingConfig": c.servingConfig,
 28784  	})
 28785  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28786  }
 28787  
 28788  // Do executes the "discoveryengine.projects.locations.dataStores.servingConfigs.search" call.
 28789  // Any non-2xx status code is an error. Response headers are in either
 28790  // *GoogleCloudDiscoveryengineV1betaSearchResponse.ServerResponse.Header or (if
 28791  // a response was returned at all) in error.(*googleapi.Error).Header. Use
 28792  // googleapi.IsNotModified to check whether the returned error was because
 28793  // http.StatusNotModified was returned.
 28794  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSearchResponse, error) {
 28795  	gensupport.SetOptions(c.urlParams_, opts...)
 28796  	res, err := c.doRequest("json")
 28797  	if res != nil && res.StatusCode == http.StatusNotModified {
 28798  		if res.Body != nil {
 28799  			res.Body.Close()
 28800  		}
 28801  		return nil, gensupport.WrapError(&googleapi.Error{
 28802  			Code:   res.StatusCode,
 28803  			Header: res.Header,
 28804  		})
 28805  	}
 28806  	if err != nil {
 28807  		return nil, err
 28808  	}
 28809  	defer googleapi.CloseBody(res)
 28810  	if err := googleapi.CheckResponse(res); err != nil {
 28811  		return nil, gensupport.WrapError(err)
 28812  	}
 28813  	ret := &GoogleCloudDiscoveryengineV1betaSearchResponse{
 28814  		ServerResponse: googleapi.ServerResponse{
 28815  			Header:         res.Header,
 28816  			HTTPStatusCode: res.StatusCode,
 28817  		},
 28818  	}
 28819  	target := &ret
 28820  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28821  		return nil, err
 28822  	}
 28823  	return ret, nil
 28824  }
 28825  
 28826  // Pages invokes f for each page of results.
 28827  // A non-nil error returned from f will halt the iteration.
 28828  // The provided context supersedes any context provided to the Context method.
 28829  func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaSearchResponse) error) error {
 28830  	c.ctx_ = ctx
 28831  	defer func(pt string) { c.googleclouddiscoveryenginev1betasearchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1betasearchrequest.PageToken)
 28832  	for {
 28833  		x, err := c.Do()
 28834  		if err != nil {
 28835  			return err
 28836  		}
 28837  		if err := f(x); err != nil {
 28838  			return err
 28839  		}
 28840  		if x.NextPageToken == "" {
 28841  			return nil
 28842  		}
 28843  		c.googleclouddiscoveryenginev1betasearchrequest.PageToken = x.NextPageToken
 28844  	}
 28845  }
 28846  
 28847  type ProjectsLocationsDataStoresSessionsCreateCall struct {
 28848  	s                                       *Service
 28849  	parent                                  string
 28850  	googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession
 28851  	urlParams_                              gensupport.URLParams
 28852  	ctx_                                    context.Context
 28853  	header_                                 http.Header
 28854  }
 28855  
 28856  // Create: Creates a Session. If the Session to create already exists, an
 28857  // ALREADY_EXISTS error is returned.
 28858  //
 28859  //   - parent: Full resource name of parent data store. Format:
 28860  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 28861  //     /dataStores/{data_store_id}`.
 28862  func (r *ProjectsLocationsDataStoresSessionsService) Create(parent string, googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession) *ProjectsLocationsDataStoresSessionsCreateCall {
 28863  	c := &ProjectsLocationsDataStoresSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28864  	c.parent = parent
 28865  	c.googleclouddiscoveryenginev1betasession = googleclouddiscoveryenginev1betasession
 28866  	return c
 28867  }
 28868  
 28869  // Fields allows partial responses to be retrieved. See
 28870  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28871  // details.
 28872  func (c *ProjectsLocationsDataStoresSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsCreateCall {
 28873  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28874  	return c
 28875  }
 28876  
 28877  // Context sets the context to be used in this call's Do method.
 28878  func (c *ProjectsLocationsDataStoresSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsCreateCall {
 28879  	c.ctx_ = ctx
 28880  	return c
 28881  }
 28882  
 28883  // Header returns a http.Header that can be modified by the caller to add
 28884  // headers to the request.
 28885  func (c *ProjectsLocationsDataStoresSessionsCreateCall) Header() http.Header {
 28886  	if c.header_ == nil {
 28887  		c.header_ = make(http.Header)
 28888  	}
 28889  	return c.header_
 28890  }
 28891  
 28892  func (c *ProjectsLocationsDataStoresSessionsCreateCall) doRequest(alt string) (*http.Response, error) {
 28893  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 28894  	var body io.Reader = nil
 28895  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasession)
 28896  	if err != nil {
 28897  		return nil, err
 28898  	}
 28899  	c.urlParams_.Set("alt", alt)
 28900  	c.urlParams_.Set("prettyPrint", "false")
 28901  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sessions")
 28902  	urls += "?" + c.urlParams_.Encode()
 28903  	req, err := http.NewRequest("POST", urls, body)
 28904  	if err != nil {
 28905  		return nil, err
 28906  	}
 28907  	req.Header = reqHeaders
 28908  	googleapi.Expand(req.URL, map[string]string{
 28909  		"parent": c.parent,
 28910  	})
 28911  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 28912  }
 28913  
 28914  // Do executes the "discoveryengine.projects.locations.dataStores.sessions.create" call.
 28915  // Any non-2xx status code is an error. Response headers are in either
 28916  // *GoogleCloudDiscoveryengineV1betaSession.ServerResponse.Header or (if a
 28917  // response was returned at all) in error.(*googleapi.Error).Header. Use
 28918  // googleapi.IsNotModified to check whether the returned error was because
 28919  // http.StatusNotModified was returned.
 28920  func (c *ProjectsLocationsDataStoresSessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
 28921  	gensupport.SetOptions(c.urlParams_, opts...)
 28922  	res, err := c.doRequest("json")
 28923  	if res != nil && res.StatusCode == http.StatusNotModified {
 28924  		if res.Body != nil {
 28925  			res.Body.Close()
 28926  		}
 28927  		return nil, gensupport.WrapError(&googleapi.Error{
 28928  			Code:   res.StatusCode,
 28929  			Header: res.Header,
 28930  		})
 28931  	}
 28932  	if err != nil {
 28933  		return nil, err
 28934  	}
 28935  	defer googleapi.CloseBody(res)
 28936  	if err := googleapi.CheckResponse(res); err != nil {
 28937  		return nil, gensupport.WrapError(err)
 28938  	}
 28939  	ret := &GoogleCloudDiscoveryengineV1betaSession{
 28940  		ServerResponse: googleapi.ServerResponse{
 28941  			Header:         res.Header,
 28942  			HTTPStatusCode: res.StatusCode,
 28943  		},
 28944  	}
 28945  	target := &ret
 28946  	if err := gensupport.DecodeResponse(target, res); err != nil {
 28947  		return nil, err
 28948  	}
 28949  	return ret, nil
 28950  }
 28951  
 28952  type ProjectsLocationsDataStoresSessionsDeleteCall struct {
 28953  	s          *Service
 28954  	name       string
 28955  	urlParams_ gensupport.URLParams
 28956  	ctx_       context.Context
 28957  	header_    http.Header
 28958  }
 28959  
 28960  // Delete: Deletes a Session. If the Session to delete does not exist, a
 28961  // NOT_FOUND error is returned.
 28962  //
 28963  //   - name: The resource name of the Session to delete. Format:
 28964  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 28965  //     /dataStores/{data_store_id}/sessions/{session_id}`.
 28966  func (r *ProjectsLocationsDataStoresSessionsService) Delete(name string) *ProjectsLocationsDataStoresSessionsDeleteCall {
 28967  	c := &ProjectsLocationsDataStoresSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 28968  	c.name = name
 28969  	return c
 28970  }
 28971  
 28972  // Fields allows partial responses to be retrieved. See
 28973  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 28974  // details.
 28975  func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsDeleteCall {
 28976  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 28977  	return c
 28978  }
 28979  
 28980  // Context sets the context to be used in this call's Do method.
 28981  func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsDeleteCall {
 28982  	c.ctx_ = ctx
 28983  	return c
 28984  }
 28985  
 28986  // Header returns a http.Header that can be modified by the caller to add
 28987  // headers to the request.
 28988  func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Header() http.Header {
 28989  	if c.header_ == nil {
 28990  		c.header_ = make(http.Header)
 28991  	}
 28992  	return c.header_
 28993  }
 28994  
 28995  func (c *ProjectsLocationsDataStoresSessionsDeleteCall) doRequest(alt string) (*http.Response, error) {
 28996  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 28997  	var body io.Reader = nil
 28998  	c.urlParams_.Set("alt", alt)
 28999  	c.urlParams_.Set("prettyPrint", "false")
 29000  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 29001  	urls += "?" + c.urlParams_.Encode()
 29002  	req, err := http.NewRequest("DELETE", urls, body)
 29003  	if err != nil {
 29004  		return nil, err
 29005  	}
 29006  	req.Header = reqHeaders
 29007  	googleapi.Expand(req.URL, map[string]string{
 29008  		"name": c.name,
 29009  	})
 29010  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29011  }
 29012  
 29013  // Do executes the "discoveryengine.projects.locations.dataStores.sessions.delete" call.
 29014  // Any non-2xx status code is an error. Response headers are in either
 29015  // *GoogleProtobufEmpty.ServerResponse.Header or (if a response was returned at
 29016  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 29017  // check whether the returned error was because http.StatusNotModified was
 29018  // returned.
 29019  func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
 29020  	gensupport.SetOptions(c.urlParams_, opts...)
 29021  	res, err := c.doRequest("json")
 29022  	if res != nil && res.StatusCode == http.StatusNotModified {
 29023  		if res.Body != nil {
 29024  			res.Body.Close()
 29025  		}
 29026  		return nil, gensupport.WrapError(&googleapi.Error{
 29027  			Code:   res.StatusCode,
 29028  			Header: res.Header,
 29029  		})
 29030  	}
 29031  	if err != nil {
 29032  		return nil, err
 29033  	}
 29034  	defer googleapi.CloseBody(res)
 29035  	if err := googleapi.CheckResponse(res); err != nil {
 29036  		return nil, gensupport.WrapError(err)
 29037  	}
 29038  	ret := &GoogleProtobufEmpty{
 29039  		ServerResponse: googleapi.ServerResponse{
 29040  			Header:         res.Header,
 29041  			HTTPStatusCode: res.StatusCode,
 29042  		},
 29043  	}
 29044  	target := &ret
 29045  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29046  		return nil, err
 29047  	}
 29048  	return ret, nil
 29049  }
 29050  
 29051  type ProjectsLocationsDataStoresSessionsGetCall struct {
 29052  	s            *Service
 29053  	name         string
 29054  	urlParams_   gensupport.URLParams
 29055  	ifNoneMatch_ string
 29056  	ctx_         context.Context
 29057  	header_      http.Header
 29058  }
 29059  
 29060  // Get: Gets a Session.
 29061  //
 29062  //   - name: The resource name of the Session to get. Format:
 29063  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 29064  //     /dataStores/{data_store_id}/sessions/{session_id}`.
 29065  func (r *ProjectsLocationsDataStoresSessionsService) Get(name string) *ProjectsLocationsDataStoresSessionsGetCall {
 29066  	c := &ProjectsLocationsDataStoresSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29067  	c.name = name
 29068  	return c
 29069  }
 29070  
 29071  // Fields allows partial responses to be retrieved. See
 29072  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29073  // details.
 29074  func (c *ProjectsLocationsDataStoresSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsGetCall {
 29075  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29076  	return c
 29077  }
 29078  
 29079  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29080  // object's ETag matches the given value. This is useful for getting updates
 29081  // only after the object has changed since the last request.
 29082  func (c *ProjectsLocationsDataStoresSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSessionsGetCall {
 29083  	c.ifNoneMatch_ = entityTag
 29084  	return c
 29085  }
 29086  
 29087  // Context sets the context to be used in this call's Do method.
 29088  func (c *ProjectsLocationsDataStoresSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsGetCall {
 29089  	c.ctx_ = ctx
 29090  	return c
 29091  }
 29092  
 29093  // Header returns a http.Header that can be modified by the caller to add
 29094  // headers to the request.
 29095  func (c *ProjectsLocationsDataStoresSessionsGetCall) Header() http.Header {
 29096  	if c.header_ == nil {
 29097  		c.header_ = make(http.Header)
 29098  	}
 29099  	return c.header_
 29100  }
 29101  
 29102  func (c *ProjectsLocationsDataStoresSessionsGetCall) doRequest(alt string) (*http.Response, error) {
 29103  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29104  	if c.ifNoneMatch_ != "" {
 29105  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29106  	}
 29107  	var body io.Reader = nil
 29108  	c.urlParams_.Set("alt", alt)
 29109  	c.urlParams_.Set("prettyPrint", "false")
 29110  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 29111  	urls += "?" + c.urlParams_.Encode()
 29112  	req, err := http.NewRequest("GET", urls, body)
 29113  	if err != nil {
 29114  		return nil, err
 29115  	}
 29116  	req.Header = reqHeaders
 29117  	googleapi.Expand(req.URL, map[string]string{
 29118  		"name": c.name,
 29119  	})
 29120  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29121  }
 29122  
 29123  // Do executes the "discoveryengine.projects.locations.dataStores.sessions.get" call.
 29124  // Any non-2xx status code is an error. Response headers are in either
 29125  // *GoogleCloudDiscoveryengineV1betaSession.ServerResponse.Header or (if a
 29126  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29127  // googleapi.IsNotModified to check whether the returned error was because
 29128  // http.StatusNotModified was returned.
 29129  func (c *ProjectsLocationsDataStoresSessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
 29130  	gensupport.SetOptions(c.urlParams_, opts...)
 29131  	res, err := c.doRequest("json")
 29132  	if res != nil && res.StatusCode == http.StatusNotModified {
 29133  		if res.Body != nil {
 29134  			res.Body.Close()
 29135  		}
 29136  		return nil, gensupport.WrapError(&googleapi.Error{
 29137  			Code:   res.StatusCode,
 29138  			Header: res.Header,
 29139  		})
 29140  	}
 29141  	if err != nil {
 29142  		return nil, err
 29143  	}
 29144  	defer googleapi.CloseBody(res)
 29145  	if err := googleapi.CheckResponse(res); err != nil {
 29146  		return nil, gensupport.WrapError(err)
 29147  	}
 29148  	ret := &GoogleCloudDiscoveryengineV1betaSession{
 29149  		ServerResponse: googleapi.ServerResponse{
 29150  			Header:         res.Header,
 29151  			HTTPStatusCode: res.StatusCode,
 29152  		},
 29153  	}
 29154  	target := &ret
 29155  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29156  		return nil, err
 29157  	}
 29158  	return ret, nil
 29159  }
 29160  
 29161  type ProjectsLocationsDataStoresSessionsListCall struct {
 29162  	s            *Service
 29163  	parent       string
 29164  	urlParams_   gensupport.URLParams
 29165  	ifNoneMatch_ string
 29166  	ctx_         context.Context
 29167  	header_      http.Header
 29168  }
 29169  
 29170  // List: Lists all Sessions by their parent DataStore.
 29171  //
 29172  //   - parent: The data store resource name. Format:
 29173  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 29174  //     /dataStores/{data_store_id}`.
 29175  func (r *ProjectsLocationsDataStoresSessionsService) List(parent string) *ProjectsLocationsDataStoresSessionsListCall {
 29176  	c := &ProjectsLocationsDataStoresSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29177  	c.parent = parent
 29178  	return c
 29179  }
 29180  
 29181  // Filter sets the optional parameter "filter": A filter to apply on the list
 29182  // results. The supported features are: user_pseudo_id, state. Example:
 29183  // "user_pseudo_id = some_id"
 29184  func (c *ProjectsLocationsDataStoresSessionsListCall) Filter(filter string) *ProjectsLocationsDataStoresSessionsListCall {
 29185  	c.urlParams_.Set("filter", filter)
 29186  	return c
 29187  }
 29188  
 29189  // OrderBy sets the optional parameter "orderBy": A comma-separated list of
 29190  // fields to order by, sorted in ascending order. Use "desc" after a field name
 29191  // for descending. Supported fields: * `update_time` * `create_time` *
 29192  // `session_name` Example: "update_time desc" "create_time"
 29193  func (c *ProjectsLocationsDataStoresSessionsListCall) OrderBy(orderBy string) *ProjectsLocationsDataStoresSessionsListCall {
 29194  	c.urlParams_.Set("orderBy", orderBy)
 29195  	return c
 29196  }
 29197  
 29198  // PageSize sets the optional parameter "pageSize": Maximum number of results
 29199  // to return. If unspecified, defaults to 50. Max allowed value is 1000.
 29200  func (c *ProjectsLocationsDataStoresSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSessionsListCall {
 29201  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 29202  	return c
 29203  }
 29204  
 29205  // PageToken sets the optional parameter "pageToken": A page token, received
 29206  // from a previous `ListSessions` call. Provide this to retrieve the subsequent
 29207  // page.
 29208  func (c *ProjectsLocationsDataStoresSessionsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSessionsListCall {
 29209  	c.urlParams_.Set("pageToken", pageToken)
 29210  	return c
 29211  }
 29212  
 29213  // Fields allows partial responses to be retrieved. See
 29214  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29215  // details.
 29216  func (c *ProjectsLocationsDataStoresSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsListCall {
 29217  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29218  	return c
 29219  }
 29220  
 29221  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29222  // object's ETag matches the given value. This is useful for getting updates
 29223  // only after the object has changed since the last request.
 29224  func (c *ProjectsLocationsDataStoresSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSessionsListCall {
 29225  	c.ifNoneMatch_ = entityTag
 29226  	return c
 29227  }
 29228  
 29229  // Context sets the context to be used in this call's Do method.
 29230  func (c *ProjectsLocationsDataStoresSessionsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsListCall {
 29231  	c.ctx_ = ctx
 29232  	return c
 29233  }
 29234  
 29235  // Header returns a http.Header that can be modified by the caller to add
 29236  // headers to the request.
 29237  func (c *ProjectsLocationsDataStoresSessionsListCall) Header() http.Header {
 29238  	if c.header_ == nil {
 29239  		c.header_ = make(http.Header)
 29240  	}
 29241  	return c.header_
 29242  }
 29243  
 29244  func (c *ProjectsLocationsDataStoresSessionsListCall) doRequest(alt string) (*http.Response, error) {
 29245  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29246  	if c.ifNoneMatch_ != "" {
 29247  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29248  	}
 29249  	var body io.Reader = nil
 29250  	c.urlParams_.Set("alt", alt)
 29251  	c.urlParams_.Set("prettyPrint", "false")
 29252  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sessions")
 29253  	urls += "?" + c.urlParams_.Encode()
 29254  	req, err := http.NewRequest("GET", urls, body)
 29255  	if err != nil {
 29256  		return nil, err
 29257  	}
 29258  	req.Header = reqHeaders
 29259  	googleapi.Expand(req.URL, map[string]string{
 29260  		"parent": c.parent,
 29261  	})
 29262  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29263  }
 29264  
 29265  // Do executes the "discoveryengine.projects.locations.dataStores.sessions.list" call.
 29266  // Any non-2xx status code is an error. Response headers are in either
 29267  // *GoogleCloudDiscoveryengineV1betaListSessionsResponse.ServerResponse.Header
 29268  // or (if a response was returned at all) in error.(*googleapi.Error).Header.
 29269  // Use googleapi.IsNotModified to check whether the returned error was because
 29270  // http.StatusNotModified was returned.
 29271  func (c *ProjectsLocationsDataStoresSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListSessionsResponse, error) {
 29272  	gensupport.SetOptions(c.urlParams_, opts...)
 29273  	res, err := c.doRequest("json")
 29274  	if res != nil && res.StatusCode == http.StatusNotModified {
 29275  		if res.Body != nil {
 29276  			res.Body.Close()
 29277  		}
 29278  		return nil, gensupport.WrapError(&googleapi.Error{
 29279  			Code:   res.StatusCode,
 29280  			Header: res.Header,
 29281  		})
 29282  	}
 29283  	if err != nil {
 29284  		return nil, err
 29285  	}
 29286  	defer googleapi.CloseBody(res)
 29287  	if err := googleapi.CheckResponse(res); err != nil {
 29288  		return nil, gensupport.WrapError(err)
 29289  	}
 29290  	ret := &GoogleCloudDiscoveryengineV1betaListSessionsResponse{
 29291  		ServerResponse: googleapi.ServerResponse{
 29292  			Header:         res.Header,
 29293  			HTTPStatusCode: res.StatusCode,
 29294  		},
 29295  	}
 29296  	target := &ret
 29297  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29298  		return nil, err
 29299  	}
 29300  	return ret, nil
 29301  }
 29302  
 29303  // Pages invokes f for each page of results.
 29304  // A non-nil error returned from f will halt the iteration.
 29305  // The provided context supersedes any context provided to the Context method.
 29306  func (c *ProjectsLocationsDataStoresSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListSessionsResponse) error) error {
 29307  	c.ctx_ = ctx
 29308  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 29309  	for {
 29310  		x, err := c.Do()
 29311  		if err != nil {
 29312  			return err
 29313  		}
 29314  		if err := f(x); err != nil {
 29315  			return err
 29316  		}
 29317  		if x.NextPageToken == "" {
 29318  			return nil
 29319  		}
 29320  		c.PageToken(x.NextPageToken)
 29321  	}
 29322  }
 29323  
 29324  type ProjectsLocationsDataStoresSessionsPatchCall struct {
 29325  	s                                       *Service
 29326  	name                                    string
 29327  	googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession
 29328  	urlParams_                              gensupport.URLParams
 29329  	ctx_                                    context.Context
 29330  	header_                                 http.Header
 29331  }
 29332  
 29333  // Patch: Updates a Session. Session action type cannot be changed. If the
 29334  // Session to update does not exist, a NOT_FOUND error is returned.
 29335  //
 29336  //   - name: Immutable. Fully qualified name
 29337  //     `projects/{project}/locations/global/collections/{collection}/engines/{engi
 29338  //     ne}/sessions/*`.
 29339  func (r *ProjectsLocationsDataStoresSessionsService) Patch(name string, googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession) *ProjectsLocationsDataStoresSessionsPatchCall {
 29340  	c := &ProjectsLocationsDataStoresSessionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29341  	c.name = name
 29342  	c.googleclouddiscoveryenginev1betasession = googleclouddiscoveryenginev1betasession
 29343  	return c
 29344  }
 29345  
 29346  // UpdateMask sets the optional parameter "updateMask": Indicates which fields
 29347  // in the provided Session to update. The following are NOT supported: *
 29348  // Session.name If not set or empty, all supported fields are updated.
 29349  func (c *ProjectsLocationsDataStoresSessionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresSessionsPatchCall {
 29350  	c.urlParams_.Set("updateMask", updateMask)
 29351  	return c
 29352  }
 29353  
 29354  // Fields allows partial responses to be retrieved. See
 29355  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29356  // details.
 29357  func (c *ProjectsLocationsDataStoresSessionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsPatchCall {
 29358  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29359  	return c
 29360  }
 29361  
 29362  // Context sets the context to be used in this call's Do method.
 29363  func (c *ProjectsLocationsDataStoresSessionsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsPatchCall {
 29364  	c.ctx_ = ctx
 29365  	return c
 29366  }
 29367  
 29368  // Header returns a http.Header that can be modified by the caller to add
 29369  // headers to the request.
 29370  func (c *ProjectsLocationsDataStoresSessionsPatchCall) Header() http.Header {
 29371  	if c.header_ == nil {
 29372  		c.header_ = make(http.Header)
 29373  	}
 29374  	return c.header_
 29375  }
 29376  
 29377  func (c *ProjectsLocationsDataStoresSessionsPatchCall) doRequest(alt string) (*http.Response, error) {
 29378  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29379  	var body io.Reader = nil
 29380  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasession)
 29381  	if err != nil {
 29382  		return nil, err
 29383  	}
 29384  	c.urlParams_.Set("alt", alt)
 29385  	c.urlParams_.Set("prettyPrint", "false")
 29386  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 29387  	urls += "?" + c.urlParams_.Encode()
 29388  	req, err := http.NewRequest("PATCH", urls, body)
 29389  	if err != nil {
 29390  		return nil, err
 29391  	}
 29392  	req.Header = reqHeaders
 29393  	googleapi.Expand(req.URL, map[string]string{
 29394  		"name": c.name,
 29395  	})
 29396  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29397  }
 29398  
 29399  // Do executes the "discoveryengine.projects.locations.dataStores.sessions.patch" call.
 29400  // Any non-2xx status code is an error. Response headers are in either
 29401  // *GoogleCloudDiscoveryengineV1betaSession.ServerResponse.Header or (if a
 29402  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29403  // googleapi.IsNotModified to check whether the returned error was because
 29404  // http.StatusNotModified was returned.
 29405  func (c *ProjectsLocationsDataStoresSessionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
 29406  	gensupport.SetOptions(c.urlParams_, opts...)
 29407  	res, err := c.doRequest("json")
 29408  	if res != nil && res.StatusCode == http.StatusNotModified {
 29409  		if res.Body != nil {
 29410  			res.Body.Close()
 29411  		}
 29412  		return nil, gensupport.WrapError(&googleapi.Error{
 29413  			Code:   res.StatusCode,
 29414  			Header: res.Header,
 29415  		})
 29416  	}
 29417  	if err != nil {
 29418  		return nil, err
 29419  	}
 29420  	defer googleapi.CloseBody(res)
 29421  	if err := googleapi.CheckResponse(res); err != nil {
 29422  		return nil, gensupport.WrapError(err)
 29423  	}
 29424  	ret := &GoogleCloudDiscoveryengineV1betaSession{
 29425  		ServerResponse: googleapi.ServerResponse{
 29426  			Header:         res.Header,
 29427  			HTTPStatusCode: res.StatusCode,
 29428  		},
 29429  	}
 29430  	target := &ret
 29431  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29432  		return nil, err
 29433  	}
 29434  	return ret, nil
 29435  }
 29436  
 29437  type ProjectsLocationsDataStoresSessionsAnswersGetCall struct {
 29438  	s            *Service
 29439  	name         string
 29440  	urlParams_   gensupport.URLParams
 29441  	ifNoneMatch_ string
 29442  	ctx_         context.Context
 29443  	header_      http.Header
 29444  }
 29445  
 29446  // Get: Gets a Answer.
 29447  //
 29448  //   - name: The resource name of the Answer to get. Format:
 29449  //     `projects/{project_number}/locations/{location_id}/collections/{collection}
 29450  //     /engines/{engine_id}/sessions/{session_id}/answers/{answer_id}`.
 29451  func (r *ProjectsLocationsDataStoresSessionsAnswersService) Get(name string) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
 29452  	c := &ProjectsLocationsDataStoresSessionsAnswersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29453  	c.name = name
 29454  	return c
 29455  }
 29456  
 29457  // Fields allows partial responses to be retrieved. See
 29458  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29459  // details.
 29460  func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
 29461  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29462  	return c
 29463  }
 29464  
 29465  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 29466  // object's ETag matches the given value. This is useful for getting updates
 29467  // only after the object has changed since the last request.
 29468  func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
 29469  	c.ifNoneMatch_ = entityTag
 29470  	return c
 29471  }
 29472  
 29473  // Context sets the context to be used in this call's Do method.
 29474  func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
 29475  	c.ctx_ = ctx
 29476  	return c
 29477  }
 29478  
 29479  // Header returns a http.Header that can be modified by the caller to add
 29480  // headers to the request.
 29481  func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Header() http.Header {
 29482  	if c.header_ == nil {
 29483  		c.header_ = make(http.Header)
 29484  	}
 29485  	return c.header_
 29486  }
 29487  
 29488  func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) doRequest(alt string) (*http.Response, error) {
 29489  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 29490  	if c.ifNoneMatch_ != "" {
 29491  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 29492  	}
 29493  	var body io.Reader = nil
 29494  	c.urlParams_.Set("alt", alt)
 29495  	c.urlParams_.Set("prettyPrint", "false")
 29496  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 29497  	urls += "?" + c.urlParams_.Encode()
 29498  	req, err := http.NewRequest("GET", urls, body)
 29499  	if err != nil {
 29500  		return nil, err
 29501  	}
 29502  	req.Header = reqHeaders
 29503  	googleapi.Expand(req.URL, map[string]string{
 29504  		"name": c.name,
 29505  	})
 29506  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29507  }
 29508  
 29509  // Do executes the "discoveryengine.projects.locations.dataStores.sessions.answers.get" call.
 29510  // Any non-2xx status code is an error. Response headers are in either
 29511  // *GoogleCloudDiscoveryengineV1betaAnswer.ServerResponse.Header or (if a
 29512  // response was returned at all) in error.(*googleapi.Error).Header. Use
 29513  // googleapi.IsNotModified to check whether the returned error was because
 29514  // http.StatusNotModified was returned.
 29515  func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaAnswer, error) {
 29516  	gensupport.SetOptions(c.urlParams_, opts...)
 29517  	res, err := c.doRequest("json")
 29518  	if res != nil && res.StatusCode == http.StatusNotModified {
 29519  		if res.Body != nil {
 29520  			res.Body.Close()
 29521  		}
 29522  		return nil, gensupport.WrapError(&googleapi.Error{
 29523  			Code:   res.StatusCode,
 29524  			Header: res.Header,
 29525  		})
 29526  	}
 29527  	if err != nil {
 29528  		return nil, err
 29529  	}
 29530  	defer googleapi.CloseBody(res)
 29531  	if err := googleapi.CheckResponse(res); err != nil {
 29532  		return nil, gensupport.WrapError(err)
 29533  	}
 29534  	ret := &GoogleCloudDiscoveryengineV1betaAnswer{
 29535  		ServerResponse: googleapi.ServerResponse{
 29536  			Header:         res.Header,
 29537  			HTTPStatusCode: res.StatusCode,
 29538  		},
 29539  	}
 29540  	target := &ret
 29541  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29542  		return nil, err
 29543  	}
 29544  	return ret, nil
 29545  }
 29546  
 29547  type ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall struct {
 29548  	s                                                                *Service
 29549  	siteSearchEngine                                                 string
 29550  	googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchRequest
 29551  	urlParams_                                                       gensupport.URLParams
 29552  	ctx_                                                             context.Context
 29553  	header_                                                          http.Header
 29554  }
 29555  
 29556  // DisableAdvancedSiteSearch: Downgrade from advanced site search to basic site
 29557  // search.
 29558  //
 29559  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 29560  //     `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSea
 29561  //     rchEngine`.
 29562  func (r *ProjectsLocationsDataStoresSiteSearchEngineService) DisableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchRequest) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 29563  	c := &ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29564  	c.siteSearchEngine = siteSearchEngine
 29565  	c.googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest = googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest
 29566  	return c
 29567  }
 29568  
 29569  // Fields allows partial responses to be retrieved. See
 29570  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29571  // details.
 29572  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 29573  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29574  	return c
 29575  }
 29576  
 29577  // Context sets the context to be used in this call's Do method.
 29578  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
 29579  	c.ctx_ = ctx
 29580  	return c
 29581  }
 29582  
 29583  // Header returns a http.Header that can be modified by the caller to add
 29584  // headers to the request.
 29585  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Header() http.Header {
 29586  	if c.header_ == nil {
 29587  		c.header_ = make(http.Header)
 29588  	}
 29589  	return c.header_
 29590  }
 29591  
 29592  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
 29593  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29594  	var body io.Reader = nil
 29595  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest)
 29596  	if err != nil {
 29597  		return nil, err
 29598  	}
 29599  	c.urlParams_.Set("alt", alt)
 29600  	c.urlParams_.Set("prettyPrint", "false")
 29601  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:disableAdvancedSiteSearch")
 29602  	urls += "?" + c.urlParams_.Encode()
 29603  	req, err := http.NewRequest("POST", urls, body)
 29604  	if err != nil {
 29605  		return nil, err
 29606  	}
 29607  	req.Header = reqHeaders
 29608  	googleapi.Expand(req.URL, map[string]string{
 29609  		"siteSearchEngine": c.siteSearchEngine,
 29610  	})
 29611  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29612  }
 29613  
 29614  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.disableAdvancedSiteSearch" call.
 29615  // Any non-2xx status code is an error. Response headers are in either
 29616  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29617  // returned at all) in error.(*googleapi.Error).Header. Use
 29618  // googleapi.IsNotModified to check whether the returned error was because
 29619  // http.StatusNotModified was returned.
 29620  func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29621  	gensupport.SetOptions(c.urlParams_, opts...)
 29622  	res, err := c.doRequest("json")
 29623  	if res != nil && res.StatusCode == http.StatusNotModified {
 29624  		if res.Body != nil {
 29625  			res.Body.Close()
 29626  		}
 29627  		return nil, gensupport.WrapError(&googleapi.Error{
 29628  			Code:   res.StatusCode,
 29629  			Header: res.Header,
 29630  		})
 29631  	}
 29632  	if err != nil {
 29633  		return nil, err
 29634  	}
 29635  	defer googleapi.CloseBody(res)
 29636  	if err := googleapi.CheckResponse(res); err != nil {
 29637  		return nil, gensupport.WrapError(err)
 29638  	}
 29639  	ret := &GoogleLongrunningOperation{
 29640  		ServerResponse: googleapi.ServerResponse{
 29641  			Header:         res.Header,
 29642  			HTTPStatusCode: res.StatusCode,
 29643  		},
 29644  	}
 29645  	target := &ret
 29646  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29647  		return nil, err
 29648  	}
 29649  	return ret, nil
 29650  }
 29651  
 29652  type ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall struct {
 29653  	s                                                               *Service
 29654  	siteSearchEngine                                                string
 29655  	googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchRequest
 29656  	urlParams_                                                      gensupport.URLParams
 29657  	ctx_                                                            context.Context
 29658  	header_                                                         http.Header
 29659  }
 29660  
 29661  // EnableAdvancedSiteSearch: Upgrade from basic site search to advanced site
 29662  // search.
 29663  //
 29664  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 29665  //     `projects/{project}/locations/{location}/dataStores/{data_store_id}/siteSea
 29666  //     rchEngine`.
 29667  func (r *ProjectsLocationsDataStoresSiteSearchEngineService) EnableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchRequest) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 29668  	c := &ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29669  	c.siteSearchEngine = siteSearchEngine
 29670  	c.googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest = googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest
 29671  	return c
 29672  }
 29673  
 29674  // Fields allows partial responses to be retrieved. See
 29675  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29676  // details.
 29677  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 29678  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29679  	return c
 29680  }
 29681  
 29682  // Context sets the context to be used in this call's Do method.
 29683  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
 29684  	c.ctx_ = ctx
 29685  	return c
 29686  }
 29687  
 29688  // Header returns a http.Header that can be modified by the caller to add
 29689  // headers to the request.
 29690  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Header() http.Header {
 29691  	if c.header_ == nil {
 29692  		c.header_ = make(http.Header)
 29693  	}
 29694  	return c.header_
 29695  }
 29696  
 29697  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
 29698  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29699  	var body io.Reader = nil
 29700  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest)
 29701  	if err != nil {
 29702  		return nil, err
 29703  	}
 29704  	c.urlParams_.Set("alt", alt)
 29705  	c.urlParams_.Set("prettyPrint", "false")
 29706  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:enableAdvancedSiteSearch")
 29707  	urls += "?" + c.urlParams_.Encode()
 29708  	req, err := http.NewRequest("POST", urls, body)
 29709  	if err != nil {
 29710  		return nil, err
 29711  	}
 29712  	req.Header = reqHeaders
 29713  	googleapi.Expand(req.URL, map[string]string{
 29714  		"siteSearchEngine": c.siteSearchEngine,
 29715  	})
 29716  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29717  }
 29718  
 29719  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.enableAdvancedSiteSearch" call.
 29720  // Any non-2xx status code is an error. Response headers are in either
 29721  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29722  // returned at all) in error.(*googleapi.Error).Header. Use
 29723  // googleapi.IsNotModified to check whether the returned error was because
 29724  // http.StatusNotModified was returned.
 29725  func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29726  	gensupport.SetOptions(c.urlParams_, opts...)
 29727  	res, err := c.doRequest("json")
 29728  	if res != nil && res.StatusCode == http.StatusNotModified {
 29729  		if res.Body != nil {
 29730  			res.Body.Close()
 29731  		}
 29732  		return nil, gensupport.WrapError(&googleapi.Error{
 29733  			Code:   res.StatusCode,
 29734  			Header: res.Header,
 29735  		})
 29736  	}
 29737  	if err != nil {
 29738  		return nil, err
 29739  	}
 29740  	defer googleapi.CloseBody(res)
 29741  	if err := googleapi.CheckResponse(res); err != nil {
 29742  		return nil, gensupport.WrapError(err)
 29743  	}
 29744  	ret := &GoogleLongrunningOperation{
 29745  		ServerResponse: googleapi.ServerResponse{
 29746  			Header:         res.Header,
 29747  			HTTPStatusCode: res.StatusCode,
 29748  		},
 29749  	}
 29750  	target := &ret
 29751  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29752  		return nil, err
 29753  	}
 29754  	return ret, nil
 29755  }
 29756  
 29757  type ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall struct {
 29758  	s                                                  *Service
 29759  	siteSearchEngine                                   string
 29760  	googleclouddiscoveryenginev1betarecrawlurisrequest *GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest
 29761  	urlParams_                                         gensupport.URLParams
 29762  	ctx_                                               context.Context
 29763  	header_                                            http.Header
 29764  }
 29765  
 29766  // RecrawlUris: Request on-demand recrawl for a list of URIs.
 29767  //
 29768  //   - siteSearchEngine: Full resource name of the SiteSearchEngine, such as
 29769  //     `projects/*/locations/*/collections/*/dataStores/*/siteSearchEngine`.
 29770  func (r *ProjectsLocationsDataStoresSiteSearchEngineService) RecrawlUris(siteSearchEngine string, googleclouddiscoveryenginev1betarecrawlurisrequest *GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
 29771  	c := &ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29772  	c.siteSearchEngine = siteSearchEngine
 29773  	c.googleclouddiscoveryenginev1betarecrawlurisrequest = googleclouddiscoveryenginev1betarecrawlurisrequest
 29774  	return c
 29775  }
 29776  
 29777  // Fields allows partial responses to be retrieved. See
 29778  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29779  // details.
 29780  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
 29781  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29782  	return c
 29783  }
 29784  
 29785  // Context sets the context to be used in this call's Do method.
 29786  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
 29787  	c.ctx_ = ctx
 29788  	return c
 29789  }
 29790  
 29791  // Header returns a http.Header that can be modified by the caller to add
 29792  // headers to the request.
 29793  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Header() http.Header {
 29794  	if c.header_ == nil {
 29795  		c.header_ = make(http.Header)
 29796  	}
 29797  	return c.header_
 29798  }
 29799  
 29800  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(alt string) (*http.Response, error) {
 29801  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29802  	var body io.Reader = nil
 29803  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betarecrawlurisrequest)
 29804  	if err != nil {
 29805  		return nil, err
 29806  	}
 29807  	c.urlParams_.Set("alt", alt)
 29808  	c.urlParams_.Set("prettyPrint", "false")
 29809  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:recrawlUris")
 29810  	urls += "?" + c.urlParams_.Encode()
 29811  	req, err := http.NewRequest("POST", urls, body)
 29812  	if err != nil {
 29813  		return nil, err
 29814  	}
 29815  	req.Header = reqHeaders
 29816  	googleapi.Expand(req.URL, map[string]string{
 29817  		"siteSearchEngine": c.siteSearchEngine,
 29818  	})
 29819  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29820  }
 29821  
 29822  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.recrawlUris" call.
 29823  // Any non-2xx status code is an error. Response headers are in either
 29824  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29825  // returned at all) in error.(*googleapi.Error).Header. Use
 29826  // googleapi.IsNotModified to check whether the returned error was because
 29827  // http.StatusNotModified was returned.
 29828  func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29829  	gensupport.SetOptions(c.urlParams_, opts...)
 29830  	res, err := c.doRequest("json")
 29831  	if res != nil && res.StatusCode == http.StatusNotModified {
 29832  		if res.Body != nil {
 29833  			res.Body.Close()
 29834  		}
 29835  		return nil, gensupport.WrapError(&googleapi.Error{
 29836  			Code:   res.StatusCode,
 29837  			Header: res.Header,
 29838  		})
 29839  	}
 29840  	if err != nil {
 29841  		return nil, err
 29842  	}
 29843  	defer googleapi.CloseBody(res)
 29844  	if err := googleapi.CheckResponse(res); err != nil {
 29845  		return nil, gensupport.WrapError(err)
 29846  	}
 29847  	ret := &GoogleLongrunningOperation{
 29848  		ServerResponse: googleapi.ServerResponse{
 29849  			Header:         res.Header,
 29850  			HTTPStatusCode: res.StatusCode,
 29851  		},
 29852  	}
 29853  	target := &ret
 29854  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29855  		return nil, err
 29856  	}
 29857  	return ret, nil
 29858  }
 29859  
 29860  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct {
 29861  	s                                                             *Service
 29862  	parent                                                        string
 29863  	googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest
 29864  	urlParams_                                                    gensupport.URLParams
 29865  	ctx_                                                          context.Context
 29866  	header_                                                       http.Header
 29867  }
 29868  
 29869  // BatchCreate: Creates TargetSite in a batch.
 29870  //
 29871  //   - parent: The parent resource shared by all TargetSites being created.
 29872  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 29873  //     s/{data_store}/siteSearchEngine`. The parent field in the
 29874  //     CreateBookRequest messages must either be empty or match this field.
 29875  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 29876  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29877  	c.parent = parent
 29878  	c.googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest = googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest
 29879  	return c
 29880  }
 29881  
 29882  // Fields allows partial responses to be retrieved. See
 29883  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29884  // details.
 29885  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 29886  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29887  	return c
 29888  }
 29889  
 29890  // Context sets the context to be used in this call's Do method.
 29891  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
 29892  	c.ctx_ = ctx
 29893  	return c
 29894  }
 29895  
 29896  // Header returns a http.Header that can be modified by the caller to add
 29897  // headers to the request.
 29898  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header {
 29899  	if c.header_ == nil {
 29900  		c.header_ = make(http.Header)
 29901  	}
 29902  	return c.header_
 29903  }
 29904  
 29905  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
 29906  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 29907  	var body io.Reader = nil
 29908  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest)
 29909  	if err != nil {
 29910  		return nil, err
 29911  	}
 29912  	c.urlParams_.Set("alt", alt)
 29913  	c.urlParams_.Set("prettyPrint", "false")
 29914  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites:batchCreate")
 29915  	urls += "?" + c.urlParams_.Encode()
 29916  	req, err := http.NewRequest("POST", urls, body)
 29917  	if err != nil {
 29918  		return nil, err
 29919  	}
 29920  	req.Header = reqHeaders
 29921  	googleapi.Expand(req.URL, map[string]string{
 29922  		"parent": c.parent,
 29923  	})
 29924  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 29925  }
 29926  
 29927  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.batchCreate" call.
 29928  // Any non-2xx status code is an error. Response headers are in either
 29929  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 29930  // returned at all) in error.(*googleapi.Error).Header. Use
 29931  // googleapi.IsNotModified to check whether the returned error was because
 29932  // http.StatusNotModified was returned.
 29933  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 29934  	gensupport.SetOptions(c.urlParams_, opts...)
 29935  	res, err := c.doRequest("json")
 29936  	if res != nil && res.StatusCode == http.StatusNotModified {
 29937  		if res.Body != nil {
 29938  			res.Body.Close()
 29939  		}
 29940  		return nil, gensupport.WrapError(&googleapi.Error{
 29941  			Code:   res.StatusCode,
 29942  			Header: res.Header,
 29943  		})
 29944  	}
 29945  	if err != nil {
 29946  		return nil, err
 29947  	}
 29948  	defer googleapi.CloseBody(res)
 29949  	if err := googleapi.CheckResponse(res); err != nil {
 29950  		return nil, gensupport.WrapError(err)
 29951  	}
 29952  	ret := &GoogleLongrunningOperation{
 29953  		ServerResponse: googleapi.ServerResponse{
 29954  			Header:         res.Header,
 29955  			HTTPStatusCode: res.StatusCode,
 29956  		},
 29957  	}
 29958  	target := &ret
 29959  	if err := gensupport.DecodeResponse(target, res); err != nil {
 29960  		return nil, err
 29961  	}
 29962  	return ret, nil
 29963  }
 29964  
 29965  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall struct {
 29966  	s                                          *Service
 29967  	parent                                     string
 29968  	googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite
 29969  	urlParams_                                 gensupport.URLParams
 29970  	ctx_                                       context.Context
 29971  	header_                                    http.Header
 29972  }
 29973  
 29974  // Create: Creates a TargetSite.
 29975  //
 29976  //   - parent: Parent resource name of TargetSite, such as
 29977  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 29978  //     s/{data_store}/siteSearchEngine`.
 29979  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
 29980  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 29981  	c.parent = parent
 29982  	c.googleclouddiscoveryenginev1betatargetsite = googleclouddiscoveryenginev1betatargetsite
 29983  	return c
 29984  }
 29985  
 29986  // Fields allows partial responses to be retrieved. See
 29987  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 29988  // details.
 29989  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
 29990  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 29991  	return c
 29992  }
 29993  
 29994  // Context sets the context to be used in this call's Do method.
 29995  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
 29996  	c.ctx_ = ctx
 29997  	return c
 29998  }
 29999  
 30000  // Header returns a http.Header that can be modified by the caller to add
 30001  // headers to the request.
 30002  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header {
 30003  	if c.header_ == nil {
 30004  		c.header_ = make(http.Header)
 30005  	}
 30006  	return c.header_
 30007  }
 30008  
 30009  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) {
 30010  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30011  	var body io.Reader = nil
 30012  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatargetsite)
 30013  	if err != nil {
 30014  		return nil, err
 30015  	}
 30016  	c.urlParams_.Set("alt", alt)
 30017  	c.urlParams_.Set("prettyPrint", "false")
 30018  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites")
 30019  	urls += "?" + c.urlParams_.Encode()
 30020  	req, err := http.NewRequest("POST", urls, body)
 30021  	if err != nil {
 30022  		return nil, err
 30023  	}
 30024  	req.Header = reqHeaders
 30025  	googleapi.Expand(req.URL, map[string]string{
 30026  		"parent": c.parent,
 30027  	})
 30028  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30029  }
 30030  
 30031  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.create" call.
 30032  // Any non-2xx status code is an error. Response headers are in either
 30033  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 30034  // returned at all) in error.(*googleapi.Error).Header. Use
 30035  // googleapi.IsNotModified to check whether the returned error was because
 30036  // http.StatusNotModified was returned.
 30037  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 30038  	gensupport.SetOptions(c.urlParams_, opts...)
 30039  	res, err := c.doRequest("json")
 30040  	if res != nil && res.StatusCode == http.StatusNotModified {
 30041  		if res.Body != nil {
 30042  			res.Body.Close()
 30043  		}
 30044  		return nil, gensupport.WrapError(&googleapi.Error{
 30045  			Code:   res.StatusCode,
 30046  			Header: res.Header,
 30047  		})
 30048  	}
 30049  	if err != nil {
 30050  		return nil, err
 30051  	}
 30052  	defer googleapi.CloseBody(res)
 30053  	if err := googleapi.CheckResponse(res); err != nil {
 30054  		return nil, gensupport.WrapError(err)
 30055  	}
 30056  	ret := &GoogleLongrunningOperation{
 30057  		ServerResponse: googleapi.ServerResponse{
 30058  			Header:         res.Header,
 30059  			HTTPStatusCode: res.StatusCode,
 30060  		},
 30061  	}
 30062  	target := &ret
 30063  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30064  		return nil, err
 30065  	}
 30066  	return ret, nil
 30067  }
 30068  
 30069  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall struct {
 30070  	s          *Service
 30071  	name       string
 30072  	urlParams_ gensupport.URLParams
 30073  	ctx_       context.Context
 30074  	header_    http.Header
 30075  }
 30076  
 30077  // Delete: Deletes a TargetSite.
 30078  //
 30079  //   - name: Full resource name of TargetSite, such as
 30080  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 30081  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}`. If the caller
 30082  //     does not have permission to access the TargetSite, regardless of whether
 30083  //     or not it exists, a PERMISSION_DENIED error is returned. If the requested
 30084  //     TargetSite does not exist, a NOT_FOUND error is returned.
 30085  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Delete(name string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 30086  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30087  	c.name = name
 30088  	return c
 30089  }
 30090  
 30091  // Fields allows partial responses to be retrieved. See
 30092  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30093  // details.
 30094  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 30095  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30096  	return c
 30097  }
 30098  
 30099  // Context sets the context to be used in this call's Do method.
 30100  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
 30101  	c.ctx_ = ctx
 30102  	return c
 30103  }
 30104  
 30105  // Header returns a http.Header that can be modified by the caller to add
 30106  // headers to the request.
 30107  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Header() http.Header {
 30108  	if c.header_ == nil {
 30109  		c.header_ = make(http.Header)
 30110  	}
 30111  	return c.header_
 30112  }
 30113  
 30114  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) doRequest(alt string) (*http.Response, error) {
 30115  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 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, "v1beta/{+name}")
 30120  	urls += "?" + c.urlParams_.Encode()
 30121  	req, err := http.NewRequest("DELETE", urls, body)
 30122  	if err != nil {
 30123  		return nil, err
 30124  	}
 30125  	req.Header = reqHeaders
 30126  	googleapi.Expand(req.URL, map[string]string{
 30127  		"name": c.name,
 30128  	})
 30129  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30130  }
 30131  
 30132  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.delete" call.
 30133  // Any non-2xx status code is an error. Response headers are in either
 30134  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 30135  // returned at all) in error.(*googleapi.Error).Header. Use
 30136  // googleapi.IsNotModified to check whether the returned error was because
 30137  // http.StatusNotModified was returned.
 30138  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, 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 := &GoogleLongrunningOperation{
 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  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall struct {
 30171  	s            *Service
 30172  	name         string
 30173  	urlParams_   gensupport.URLParams
 30174  	ifNoneMatch_ string
 30175  	ctx_         context.Context
 30176  	header_      http.Header
 30177  }
 30178  
 30179  // Get: Gets a TargetSite.
 30180  //
 30181  //   - name: Full resource name of TargetSite, such as
 30182  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 30183  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}`. If the caller
 30184  //     does not have permission to access the TargetSite, regardless of whether
 30185  //     or not it exists, a PERMISSION_DENIED error is returned. If the requested
 30186  //     TargetSite does not exist, a NOT_FOUND error is returned.
 30187  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Get(name string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
 30188  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30189  	c.name = name
 30190  	return c
 30191  }
 30192  
 30193  // Fields allows partial responses to be retrieved. See
 30194  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30195  // details.
 30196  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
 30197  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30198  	return c
 30199  }
 30200  
 30201  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30202  // object's ETag matches the given value. This is useful for getting updates
 30203  // only after the object has changed since the last request.
 30204  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
 30205  	c.ifNoneMatch_ = entityTag
 30206  	return c
 30207  }
 30208  
 30209  // Context sets the context to be used in this call's Do method.
 30210  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
 30211  	c.ctx_ = ctx
 30212  	return c
 30213  }
 30214  
 30215  // Header returns a http.Header that can be modified by the caller to add
 30216  // headers to the request.
 30217  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Header() http.Header {
 30218  	if c.header_ == nil {
 30219  		c.header_ = make(http.Header)
 30220  	}
 30221  	return c.header_
 30222  }
 30223  
 30224  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) doRequest(alt string) (*http.Response, error) {
 30225  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30226  	if c.ifNoneMatch_ != "" {
 30227  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30228  	}
 30229  	var body io.Reader = nil
 30230  	c.urlParams_.Set("alt", alt)
 30231  	c.urlParams_.Set("prettyPrint", "false")
 30232  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 30233  	urls += "?" + c.urlParams_.Encode()
 30234  	req, err := http.NewRequest("GET", urls, body)
 30235  	if err != nil {
 30236  		return nil, err
 30237  	}
 30238  	req.Header = reqHeaders
 30239  	googleapi.Expand(req.URL, map[string]string{
 30240  		"name": c.name,
 30241  	})
 30242  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30243  }
 30244  
 30245  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.get" call.
 30246  // Any non-2xx status code is an error. Response headers are in either
 30247  // *GoogleCloudDiscoveryengineV1betaTargetSite.ServerResponse.Header or (if a
 30248  // response was returned at all) in error.(*googleapi.Error).Header. Use
 30249  // googleapi.IsNotModified to check whether the returned error was because
 30250  // http.StatusNotModified was returned.
 30251  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaTargetSite, error) {
 30252  	gensupport.SetOptions(c.urlParams_, opts...)
 30253  	res, err := c.doRequest("json")
 30254  	if res != nil && res.StatusCode == http.StatusNotModified {
 30255  		if res.Body != nil {
 30256  			res.Body.Close()
 30257  		}
 30258  		return nil, gensupport.WrapError(&googleapi.Error{
 30259  			Code:   res.StatusCode,
 30260  			Header: res.Header,
 30261  		})
 30262  	}
 30263  	if err != nil {
 30264  		return nil, err
 30265  	}
 30266  	defer googleapi.CloseBody(res)
 30267  	if err := googleapi.CheckResponse(res); err != nil {
 30268  		return nil, gensupport.WrapError(err)
 30269  	}
 30270  	ret := &GoogleCloudDiscoveryengineV1betaTargetSite{
 30271  		ServerResponse: googleapi.ServerResponse{
 30272  			Header:         res.Header,
 30273  			HTTPStatusCode: res.StatusCode,
 30274  		},
 30275  	}
 30276  	target := &ret
 30277  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30278  		return nil, err
 30279  	}
 30280  	return ret, nil
 30281  }
 30282  
 30283  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall struct {
 30284  	s            *Service
 30285  	parent       string
 30286  	urlParams_   gensupport.URLParams
 30287  	ifNoneMatch_ string
 30288  	ctx_         context.Context
 30289  	header_      http.Header
 30290  }
 30291  
 30292  // List: Gets a list of TargetSites.
 30293  //
 30294  //   - parent: The parent site search engine resource name, such as
 30295  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 30296  //     s/{data_store}/siteSearchEngine`. If the caller does not have permission
 30297  //     to list TargetSites under this site search engine, regardless of whether
 30298  //     or not this branch exists, a PERMISSION_DENIED error is returned.
 30299  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) List(parent string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 30300  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30301  	c.parent = parent
 30302  	return c
 30303  }
 30304  
 30305  // PageSize sets the optional parameter "pageSize": Requested page size. Server
 30306  // may return fewer items than requested. If unspecified, server will pick an
 30307  // appropriate default. The maximum value is 1000; values above 1000 will be
 30308  // coerced to 1000. If this field is negative, an INVALID_ARGUMENT error is
 30309  // returned.
 30310  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 30311  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 30312  	return c
 30313  }
 30314  
 30315  // PageToken sets the optional parameter "pageToken": A page token, received
 30316  // from a previous `ListTargetSites` call. Provide this to retrieve the
 30317  // subsequent page. When paginating, all other parameters provided to
 30318  // `ListTargetSites` must match the call that provided the page token.
 30319  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 30320  	c.urlParams_.Set("pageToken", pageToken)
 30321  	return c
 30322  }
 30323  
 30324  // Fields allows partial responses to be retrieved. See
 30325  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30326  // details.
 30327  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 30328  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30329  	return c
 30330  }
 30331  
 30332  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30333  // object's ETag matches the given value. This is useful for getting updates
 30334  // only after the object has changed since the last request.
 30335  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 30336  	c.ifNoneMatch_ = entityTag
 30337  	return c
 30338  }
 30339  
 30340  // Context sets the context to be used in this call's Do method.
 30341  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
 30342  	c.ctx_ = ctx
 30343  	return c
 30344  }
 30345  
 30346  // Header returns a http.Header that can be modified by the caller to add
 30347  // headers to the request.
 30348  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Header() http.Header {
 30349  	if c.header_ == nil {
 30350  		c.header_ = make(http.Header)
 30351  	}
 30352  	return c.header_
 30353  }
 30354  
 30355  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) doRequest(alt string) (*http.Response, error) {
 30356  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30357  	if c.ifNoneMatch_ != "" {
 30358  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30359  	}
 30360  	var body io.Reader = nil
 30361  	c.urlParams_.Set("alt", alt)
 30362  	c.urlParams_.Set("prettyPrint", "false")
 30363  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites")
 30364  	urls += "?" + c.urlParams_.Encode()
 30365  	req, err := http.NewRequest("GET", urls, body)
 30366  	if err != nil {
 30367  		return nil, err
 30368  	}
 30369  	req.Header = reqHeaders
 30370  	googleapi.Expand(req.URL, map[string]string{
 30371  		"parent": c.parent,
 30372  	})
 30373  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30374  }
 30375  
 30376  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.list" call.
 30377  // Any non-2xx status code is an error. Response headers are in either
 30378  // *GoogleCloudDiscoveryengineV1betaListTargetSitesResponse.ServerResponse.Heade
 30379  // r or (if a response was returned at all) in error.(*googleapi.Error).Header.
 30380  // Use googleapi.IsNotModified to check whether the returned error was because
 30381  // http.StatusNotModified was returned.
 30382  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListTargetSitesResponse, error) {
 30383  	gensupport.SetOptions(c.urlParams_, opts...)
 30384  	res, err := c.doRequest("json")
 30385  	if res != nil && res.StatusCode == http.StatusNotModified {
 30386  		if res.Body != nil {
 30387  			res.Body.Close()
 30388  		}
 30389  		return nil, gensupport.WrapError(&googleapi.Error{
 30390  			Code:   res.StatusCode,
 30391  			Header: res.Header,
 30392  		})
 30393  	}
 30394  	if err != nil {
 30395  		return nil, err
 30396  	}
 30397  	defer googleapi.CloseBody(res)
 30398  	if err := googleapi.CheckResponse(res); err != nil {
 30399  		return nil, gensupport.WrapError(err)
 30400  	}
 30401  	ret := &GoogleCloudDiscoveryengineV1betaListTargetSitesResponse{
 30402  		ServerResponse: googleapi.ServerResponse{
 30403  			Header:         res.Header,
 30404  			HTTPStatusCode: res.StatusCode,
 30405  		},
 30406  	}
 30407  	target := &ret
 30408  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30409  		return nil, err
 30410  	}
 30411  	return ret, nil
 30412  }
 30413  
 30414  // Pages invokes f for each page of results.
 30415  // A non-nil error returned from f will halt the iteration.
 30416  // The provided context supersedes any context provided to the Context method.
 30417  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListTargetSitesResponse) error) error {
 30418  	c.ctx_ = ctx
 30419  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 30420  	for {
 30421  		x, err := c.Do()
 30422  		if err != nil {
 30423  			return err
 30424  		}
 30425  		if err := f(x); err != nil {
 30426  			return err
 30427  		}
 30428  		if x.NextPageToken == "" {
 30429  			return nil
 30430  		}
 30431  		c.PageToken(x.NextPageToken)
 30432  	}
 30433  }
 30434  
 30435  type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall struct {
 30436  	s                                          *Service
 30437  	name                                       string
 30438  	googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite
 30439  	urlParams_                                 gensupport.URLParams
 30440  	ctx_                                       context.Context
 30441  	header_                                    http.Header
 30442  }
 30443  
 30444  // Patch: Updates a TargetSite.
 30445  //
 30446  //   - name: Output only. The fully qualified resource name of the target site.
 30447  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 30448  //     s/{data_store}/siteSearchEngine/targetSites/{target_site}` The
 30449  //     `target_site_id` is system-generated.
 30450  func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Patch(name string, googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
 30451  	c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30452  	c.name = name
 30453  	c.googleclouddiscoveryenginev1betatargetsite = googleclouddiscoveryenginev1betatargetsite
 30454  	return c
 30455  }
 30456  
 30457  // Fields allows partial responses to be retrieved. See
 30458  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30459  // details.
 30460  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
 30461  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30462  	return c
 30463  }
 30464  
 30465  // Context sets the context to be used in this call's Do method.
 30466  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
 30467  	c.ctx_ = ctx
 30468  	return c
 30469  }
 30470  
 30471  // Header returns a http.Header that can be modified by the caller to add
 30472  // headers to the request.
 30473  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Header() http.Header {
 30474  	if c.header_ == nil {
 30475  		c.header_ = make(http.Header)
 30476  	}
 30477  	return c.header_
 30478  }
 30479  
 30480  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequest(alt string) (*http.Response, error) {
 30481  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30482  	var body io.Reader = nil
 30483  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatargetsite)
 30484  	if err != nil {
 30485  		return nil, err
 30486  	}
 30487  	c.urlParams_.Set("alt", alt)
 30488  	c.urlParams_.Set("prettyPrint", "false")
 30489  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 30490  	urls += "?" + c.urlParams_.Encode()
 30491  	req, err := http.NewRequest("PATCH", urls, body)
 30492  	if err != nil {
 30493  		return nil, err
 30494  	}
 30495  	req.Header = reqHeaders
 30496  	googleapi.Expand(req.URL, map[string]string{
 30497  		"name": c.name,
 30498  	})
 30499  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30500  }
 30501  
 30502  // Do executes the "discoveryengine.projects.locations.dataStores.siteSearchEngine.targetSites.patch" call.
 30503  // Any non-2xx status code is an error. Response headers are in either
 30504  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 30505  // returned at all) in error.(*googleapi.Error).Header. Use
 30506  // googleapi.IsNotModified to check whether the returned error was because
 30507  // http.StatusNotModified was returned.
 30508  func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 30509  	gensupport.SetOptions(c.urlParams_, opts...)
 30510  	res, err := c.doRequest("json")
 30511  	if res != nil && res.StatusCode == http.StatusNotModified {
 30512  		if res.Body != nil {
 30513  			res.Body.Close()
 30514  		}
 30515  		return nil, gensupport.WrapError(&googleapi.Error{
 30516  			Code:   res.StatusCode,
 30517  			Header: res.Header,
 30518  		})
 30519  	}
 30520  	if err != nil {
 30521  		return nil, err
 30522  	}
 30523  	defer googleapi.CloseBody(res)
 30524  	if err := googleapi.CheckResponse(res); err != nil {
 30525  		return nil, gensupport.WrapError(err)
 30526  	}
 30527  	ret := &GoogleLongrunningOperation{
 30528  		ServerResponse: googleapi.ServerResponse{
 30529  			Header:         res.Header,
 30530  			HTTPStatusCode: res.StatusCode,
 30531  		},
 30532  	}
 30533  	target := &ret
 30534  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30535  		return nil, err
 30536  	}
 30537  	return ret, nil
 30538  }
 30539  
 30540  type ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall struct {
 30541  	s                                                                      *Service
 30542  	parent                                                                 string
 30543  	googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest
 30544  	urlParams_                                                             gensupport.URLParams
 30545  	ctx_                                                                   context.Context
 30546  	header_                                                                http.Header
 30547  }
 30548  
 30549  // Import: Imports all SuggestionDenyListEntry for a DataStore.
 30550  //
 30551  //   - parent: The parent data store resource name for which to import denylist
 30552  //     entries. Follows pattern
 30553  //     projects/*/locations/*/collections/*/dataStores/*.
 30554  func (r *ProjectsLocationsDataStoresSuggestionDenyListEntriesService) Import(parent string, googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
 30555  	c := &ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30556  	c.parent = parent
 30557  	c.googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest = googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest
 30558  	return c
 30559  }
 30560  
 30561  // Fields allows partial responses to be retrieved. See
 30562  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30563  // details.
 30564  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
 30565  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30566  	return c
 30567  }
 30568  
 30569  // Context sets the context to be used in this call's Do method.
 30570  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
 30571  	c.ctx_ = ctx
 30572  	return c
 30573  }
 30574  
 30575  // Header returns a http.Header that can be modified by the caller to add
 30576  // headers to the request.
 30577  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Header() http.Header {
 30578  	if c.header_ == nil {
 30579  		c.header_ = make(http.Header)
 30580  	}
 30581  	return c.header_
 30582  }
 30583  
 30584  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) doRequest(alt string) (*http.Response, error) {
 30585  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30586  	var body io.Reader = nil
 30587  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest)
 30588  	if err != nil {
 30589  		return nil, err
 30590  	}
 30591  	c.urlParams_.Set("alt", alt)
 30592  	c.urlParams_.Set("prettyPrint", "false")
 30593  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/suggestionDenyListEntries:import")
 30594  	urls += "?" + c.urlParams_.Encode()
 30595  	req, err := http.NewRequest("POST", urls, body)
 30596  	if err != nil {
 30597  		return nil, err
 30598  	}
 30599  	req.Header = reqHeaders
 30600  	googleapi.Expand(req.URL, map[string]string{
 30601  		"parent": c.parent,
 30602  	})
 30603  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30604  }
 30605  
 30606  // Do executes the "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.import" call.
 30607  // Any non-2xx status code is an error. Response headers are in either
 30608  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 30609  // returned at all) in error.(*googleapi.Error).Header. Use
 30610  // googleapi.IsNotModified to check whether the returned error was because
 30611  // http.StatusNotModified was returned.
 30612  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 30613  	gensupport.SetOptions(c.urlParams_, opts...)
 30614  	res, err := c.doRequest("json")
 30615  	if res != nil && res.StatusCode == http.StatusNotModified {
 30616  		if res.Body != nil {
 30617  			res.Body.Close()
 30618  		}
 30619  		return nil, gensupport.WrapError(&googleapi.Error{
 30620  			Code:   res.StatusCode,
 30621  			Header: res.Header,
 30622  		})
 30623  	}
 30624  	if err != nil {
 30625  		return nil, err
 30626  	}
 30627  	defer googleapi.CloseBody(res)
 30628  	if err := googleapi.CheckResponse(res); err != nil {
 30629  		return nil, gensupport.WrapError(err)
 30630  	}
 30631  	ret := &GoogleLongrunningOperation{
 30632  		ServerResponse: googleapi.ServerResponse{
 30633  			Header:         res.Header,
 30634  			HTTPStatusCode: res.StatusCode,
 30635  		},
 30636  	}
 30637  	target := &ret
 30638  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30639  		return nil, err
 30640  	}
 30641  	return ret, nil
 30642  }
 30643  
 30644  type ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall struct {
 30645  	s                                                                     *Service
 30646  	parent                                                                string
 30647  	googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesRequest
 30648  	urlParams_                                                            gensupport.URLParams
 30649  	ctx_                                                                  context.Context
 30650  	header_                                                               http.Header
 30651  }
 30652  
 30653  // Purge: Permanently deletes all SuggestionDenyListEntry for a DataStore.
 30654  //
 30655  //   - parent: The parent data store resource name for which to import denylist
 30656  //     entries. Follows pattern
 30657  //     projects/*/locations/*/collections/*/dataStores/*.
 30658  func (r *ProjectsLocationsDataStoresSuggestionDenyListEntriesService) Purge(parent string, googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesRequest) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
 30659  	c := &ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30660  	c.parent = parent
 30661  	c.googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest = googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest
 30662  	return c
 30663  }
 30664  
 30665  // Fields allows partial responses to be retrieved. See
 30666  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30667  // details.
 30668  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
 30669  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30670  	return c
 30671  }
 30672  
 30673  // Context sets the context to be used in this call's Do method.
 30674  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
 30675  	c.ctx_ = ctx
 30676  	return c
 30677  }
 30678  
 30679  // Header returns a http.Header that can be modified by the caller to add
 30680  // headers to the request.
 30681  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Header() http.Header {
 30682  	if c.header_ == nil {
 30683  		c.header_ = make(http.Header)
 30684  	}
 30685  	return c.header_
 30686  }
 30687  
 30688  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) doRequest(alt string) (*http.Response, error) {
 30689  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30690  	var body io.Reader = nil
 30691  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest)
 30692  	if err != nil {
 30693  		return nil, err
 30694  	}
 30695  	c.urlParams_.Set("alt", alt)
 30696  	c.urlParams_.Set("prettyPrint", "false")
 30697  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/suggestionDenyListEntries:purge")
 30698  	urls += "?" + c.urlParams_.Encode()
 30699  	req, err := http.NewRequest("POST", urls, body)
 30700  	if err != nil {
 30701  		return nil, err
 30702  	}
 30703  	req.Header = reqHeaders
 30704  	googleapi.Expand(req.URL, map[string]string{
 30705  		"parent": c.parent,
 30706  	})
 30707  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30708  }
 30709  
 30710  // Do executes the "discoveryengine.projects.locations.dataStores.suggestionDenyListEntries.purge" call.
 30711  // Any non-2xx status code is an error. Response headers are in either
 30712  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 30713  // returned at all) in error.(*googleapi.Error).Header. Use
 30714  // googleapi.IsNotModified to check whether the returned error was because
 30715  // http.StatusNotModified was returned.
 30716  func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 30717  	gensupport.SetOptions(c.urlParams_, opts...)
 30718  	res, err := c.doRequest("json")
 30719  	if res != nil && res.StatusCode == http.StatusNotModified {
 30720  		if res.Body != nil {
 30721  			res.Body.Close()
 30722  		}
 30723  		return nil, gensupport.WrapError(&googleapi.Error{
 30724  			Code:   res.StatusCode,
 30725  			Header: res.Header,
 30726  		})
 30727  	}
 30728  	if err != nil {
 30729  		return nil, err
 30730  	}
 30731  	defer googleapi.CloseBody(res)
 30732  	if err := googleapi.CheckResponse(res); err != nil {
 30733  		return nil, gensupport.WrapError(err)
 30734  	}
 30735  	ret := &GoogleLongrunningOperation{
 30736  		ServerResponse: googleapi.ServerResponse{
 30737  			Header:         res.Header,
 30738  			HTTPStatusCode: res.StatusCode,
 30739  		},
 30740  	}
 30741  	target := &ret
 30742  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30743  		return nil, err
 30744  	}
 30745  	return ret, nil
 30746  }
 30747  
 30748  type ProjectsLocationsDataStoresUserEventsCollectCall struct {
 30749  	s            *Service
 30750  	parent       string
 30751  	urlParams_   gensupport.URLParams
 30752  	ifNoneMatch_ string
 30753  	ctx_         context.Context
 30754  	header_      http.Header
 30755  }
 30756  
 30757  // Collect: Writes a single user event from the browser. This uses a GET
 30758  // request to due to browser restriction of POST-ing to a third-party domain.
 30759  // This method is used only by the Discovery Engine API JavaScript pixel and
 30760  // Google Tag Manager. Users should not call this method directly.
 30761  //
 30762  //   - parent: The parent DataStore resource name, such as
 30763  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 30764  //     s/{data_store}`.
 30765  func (r *ProjectsLocationsDataStoresUserEventsService) Collect(parent string) *ProjectsLocationsDataStoresUserEventsCollectCall {
 30766  	c := &ProjectsLocationsDataStoresUserEventsCollectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30767  	c.parent = parent
 30768  	return c
 30769  }
 30770  
 30771  // Ets sets the optional parameter "ets": The event timestamp in milliseconds.
 30772  // This prevents browser caching of otherwise identical get requests. The name
 30773  // is abbreviated to reduce the payload bytes.
 30774  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Ets(ets int64) *ProjectsLocationsDataStoresUserEventsCollectCall {
 30775  	c.urlParams_.Set("ets", fmt.Sprint(ets))
 30776  	return c
 30777  }
 30778  
 30779  // Uri sets the optional parameter "uri": The URL including cgi-parameters but
 30780  // excluding the hash fragment with a length limit of 5,000 characters. This is
 30781  // often more useful than the referer URL, because many browsers only send the
 30782  // domain for third-party requests.
 30783  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Uri(uri string) *ProjectsLocationsDataStoresUserEventsCollectCall {
 30784  	c.urlParams_.Set("uri", uri)
 30785  	return c
 30786  }
 30787  
 30788  // UserEvent sets the optional parameter "userEvent": Required. URL encoded
 30789  // UserEvent proto with a length limit of 2,000,000 characters.
 30790  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) UserEvent(userEvent string) *ProjectsLocationsDataStoresUserEventsCollectCall {
 30791  	c.urlParams_.Set("userEvent", userEvent)
 30792  	return c
 30793  }
 30794  
 30795  // Fields allows partial responses to be retrieved. See
 30796  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30797  // details.
 30798  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsCollectCall {
 30799  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30800  	return c
 30801  }
 30802  
 30803  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 30804  // object's ETag matches the given value. This is useful for getting updates
 30805  // only after the object has changed since the last request.
 30806  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresUserEventsCollectCall {
 30807  	c.ifNoneMatch_ = entityTag
 30808  	return c
 30809  }
 30810  
 30811  // Context sets the context to be used in this call's Do method.
 30812  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsCollectCall {
 30813  	c.ctx_ = ctx
 30814  	return c
 30815  }
 30816  
 30817  // Header returns a http.Header that can be modified by the caller to add
 30818  // headers to the request.
 30819  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Header() http.Header {
 30820  	if c.header_ == nil {
 30821  		c.header_ = make(http.Header)
 30822  	}
 30823  	return c.header_
 30824  }
 30825  
 30826  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) {
 30827  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 30828  	if c.ifNoneMatch_ != "" {
 30829  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 30830  	}
 30831  	var body io.Reader = nil
 30832  	c.urlParams_.Set("alt", alt)
 30833  	c.urlParams_.Set("prettyPrint", "false")
 30834  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:collect")
 30835  	urls += "?" + c.urlParams_.Encode()
 30836  	req, err := http.NewRequest("GET", urls, body)
 30837  	if err != nil {
 30838  		return nil, err
 30839  	}
 30840  	req.Header = reqHeaders
 30841  	googleapi.Expand(req.URL, map[string]string{
 30842  		"parent": c.parent,
 30843  	})
 30844  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30845  }
 30846  
 30847  // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.collect" call.
 30848  // Any non-2xx status code is an error. Response headers are in either
 30849  // *GoogleApiHttpBody.ServerResponse.Header or (if a response was returned at
 30850  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 30851  // check whether the returned error was because http.StatusNotModified was
 30852  // returned.
 30853  func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
 30854  	gensupport.SetOptions(c.urlParams_, opts...)
 30855  	res, err := c.doRequest("json")
 30856  	if res != nil && res.StatusCode == http.StatusNotModified {
 30857  		if res.Body != nil {
 30858  			res.Body.Close()
 30859  		}
 30860  		return nil, gensupport.WrapError(&googleapi.Error{
 30861  			Code:   res.StatusCode,
 30862  			Header: res.Header,
 30863  		})
 30864  	}
 30865  	if err != nil {
 30866  		return nil, err
 30867  	}
 30868  	defer googleapi.CloseBody(res)
 30869  	if err := googleapi.CheckResponse(res); err != nil {
 30870  		return nil, gensupport.WrapError(err)
 30871  	}
 30872  	ret := &GoogleApiHttpBody{
 30873  		ServerResponse: googleapi.ServerResponse{
 30874  			Header:         res.Header,
 30875  			HTTPStatusCode: res.StatusCode,
 30876  		},
 30877  	}
 30878  	target := &ret
 30879  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30880  		return nil, err
 30881  	}
 30882  	return ret, nil
 30883  }
 30884  
 30885  type ProjectsLocationsDataStoresUserEventsImportCall struct {
 30886  	s                                                       *Service
 30887  	parent                                                  string
 30888  	googleclouddiscoveryenginev1betaimportusereventsrequest *GoogleCloudDiscoveryengineV1betaImportUserEventsRequest
 30889  	urlParams_                                              gensupport.URLParams
 30890  	ctx_                                                    context.Context
 30891  	header_                                                 http.Header
 30892  }
 30893  
 30894  // Import: Bulk import of User events. Request processing might be synchronous.
 30895  // Events that already exist are skipped. Use this method for backfilling
 30896  // historical user events. Operation.response is of type ImportResponse. Note
 30897  // that it is possible for a subset of the items to be successfully inserted.
 30898  // Operation.metadata is of type ImportMetadata.
 30899  //
 30900  //   - parent: Parent DataStore resource name, of the form
 30901  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 30902  //     s/{data_store}`.
 30903  func (r *ProjectsLocationsDataStoresUserEventsService) Import(parent string, googleclouddiscoveryenginev1betaimportusereventsrequest *GoogleCloudDiscoveryengineV1betaImportUserEventsRequest) *ProjectsLocationsDataStoresUserEventsImportCall {
 30904  	c := &ProjectsLocationsDataStoresUserEventsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 30905  	c.parent = parent
 30906  	c.googleclouddiscoveryenginev1betaimportusereventsrequest = googleclouddiscoveryenginev1betaimportusereventsrequest
 30907  	return c
 30908  }
 30909  
 30910  // Fields allows partial responses to be retrieved. See
 30911  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 30912  // details.
 30913  func (c *ProjectsLocationsDataStoresUserEventsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsImportCall {
 30914  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 30915  	return c
 30916  }
 30917  
 30918  // Context sets the context to be used in this call's Do method.
 30919  func (c *ProjectsLocationsDataStoresUserEventsImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsImportCall {
 30920  	c.ctx_ = ctx
 30921  	return c
 30922  }
 30923  
 30924  // Header returns a http.Header that can be modified by the caller to add
 30925  // headers to the request.
 30926  func (c *ProjectsLocationsDataStoresUserEventsImportCall) Header() http.Header {
 30927  	if c.header_ == nil {
 30928  		c.header_ = make(http.Header)
 30929  	}
 30930  	return c.header_
 30931  }
 30932  
 30933  func (c *ProjectsLocationsDataStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) {
 30934  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 30935  	var body io.Reader = nil
 30936  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaimportusereventsrequest)
 30937  	if err != nil {
 30938  		return nil, err
 30939  	}
 30940  	c.urlParams_.Set("alt", alt)
 30941  	c.urlParams_.Set("prettyPrint", "false")
 30942  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:import")
 30943  	urls += "?" + c.urlParams_.Encode()
 30944  	req, err := http.NewRequest("POST", urls, body)
 30945  	if err != nil {
 30946  		return nil, err
 30947  	}
 30948  	req.Header = reqHeaders
 30949  	googleapi.Expand(req.URL, map[string]string{
 30950  		"parent": c.parent,
 30951  	})
 30952  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 30953  }
 30954  
 30955  // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.import" call.
 30956  // Any non-2xx status code is an error. Response headers are in either
 30957  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 30958  // returned at all) in error.(*googleapi.Error).Header. Use
 30959  // googleapi.IsNotModified to check whether the returned error was because
 30960  // http.StatusNotModified was returned.
 30961  func (c *ProjectsLocationsDataStoresUserEventsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 30962  	gensupport.SetOptions(c.urlParams_, opts...)
 30963  	res, err := c.doRequest("json")
 30964  	if res != nil && res.StatusCode == http.StatusNotModified {
 30965  		if res.Body != nil {
 30966  			res.Body.Close()
 30967  		}
 30968  		return nil, gensupport.WrapError(&googleapi.Error{
 30969  			Code:   res.StatusCode,
 30970  			Header: res.Header,
 30971  		})
 30972  	}
 30973  	if err != nil {
 30974  		return nil, err
 30975  	}
 30976  	defer googleapi.CloseBody(res)
 30977  	if err := googleapi.CheckResponse(res); err != nil {
 30978  		return nil, gensupport.WrapError(err)
 30979  	}
 30980  	ret := &GoogleLongrunningOperation{
 30981  		ServerResponse: googleapi.ServerResponse{
 30982  			Header:         res.Header,
 30983  			HTTPStatusCode: res.StatusCode,
 30984  		},
 30985  	}
 30986  	target := &ret
 30987  	if err := gensupport.DecodeResponse(target, res); err != nil {
 30988  		return nil, err
 30989  	}
 30990  	return ret, nil
 30991  }
 30992  
 30993  type ProjectsLocationsDataStoresUserEventsWriteCall struct {
 30994  	s                                         *Service
 30995  	parent                                    string
 30996  	googleclouddiscoveryenginev1betauserevent *GoogleCloudDiscoveryengineV1betaUserEvent
 30997  	urlParams_                                gensupport.URLParams
 30998  	ctx_                                      context.Context
 30999  	header_                                   http.Header
 31000  }
 31001  
 31002  // Write: Writes a single user event.
 31003  //
 31004  //   - parent: The parent resource name. If the write user event action is
 31005  //     applied in DataStore level, the format is:
 31006  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 31007  //     s/{data_store}`. If the write user event action is applied in Location
 31008  //     level, for example, the event with Document across multiple DataStore, the
 31009  //     format is: `projects/{project}/locations/{location}`.
 31010  func (r *ProjectsLocationsDataStoresUserEventsService) Write(parent string, googleclouddiscoveryenginev1betauserevent *GoogleCloudDiscoveryengineV1betaUserEvent) *ProjectsLocationsDataStoresUserEventsWriteCall {
 31011  	c := &ProjectsLocationsDataStoresUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31012  	c.parent = parent
 31013  	c.googleclouddiscoveryenginev1betauserevent = googleclouddiscoveryenginev1betauserevent
 31014  	return c
 31015  }
 31016  
 31017  // Fields allows partial responses to be retrieved. See
 31018  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31019  // details.
 31020  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsWriteCall {
 31021  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31022  	return c
 31023  }
 31024  
 31025  // Context sets the context to be used in this call's Do method.
 31026  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsWriteCall {
 31027  	c.ctx_ = ctx
 31028  	return c
 31029  }
 31030  
 31031  // Header returns a http.Header that can be modified by the caller to add
 31032  // headers to the request.
 31033  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Header() http.Header {
 31034  	if c.header_ == nil {
 31035  		c.header_ = make(http.Header)
 31036  	}
 31037  	return c.header_
 31038  }
 31039  
 31040  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
 31041  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31042  	var body io.Reader = nil
 31043  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betauserevent)
 31044  	if err != nil {
 31045  		return nil, err
 31046  	}
 31047  	c.urlParams_.Set("alt", alt)
 31048  	c.urlParams_.Set("prettyPrint", "false")
 31049  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:write")
 31050  	urls += "?" + c.urlParams_.Encode()
 31051  	req, err := http.NewRequest("POST", urls, body)
 31052  	if err != nil {
 31053  		return nil, err
 31054  	}
 31055  	req.Header = reqHeaders
 31056  	googleapi.Expand(req.URL, map[string]string{
 31057  		"parent": c.parent,
 31058  	})
 31059  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31060  }
 31061  
 31062  // Do executes the "discoveryengine.projects.locations.dataStores.userEvents.write" call.
 31063  // Any non-2xx status code is an error. Response headers are in either
 31064  // *GoogleCloudDiscoveryengineV1betaUserEvent.ServerResponse.Header or (if a
 31065  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31066  // googleapi.IsNotModified to check whether the returned error was because
 31067  // http.StatusNotModified was returned.
 31068  func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaUserEvent, error) {
 31069  	gensupport.SetOptions(c.urlParams_, opts...)
 31070  	res, err := c.doRequest("json")
 31071  	if res != nil && res.StatusCode == http.StatusNotModified {
 31072  		if res.Body != nil {
 31073  			res.Body.Close()
 31074  		}
 31075  		return nil, gensupport.WrapError(&googleapi.Error{
 31076  			Code:   res.StatusCode,
 31077  			Header: res.Header,
 31078  		})
 31079  	}
 31080  	if err != nil {
 31081  		return nil, err
 31082  	}
 31083  	defer googleapi.CloseBody(res)
 31084  	if err := googleapi.CheckResponse(res); err != nil {
 31085  		return nil, gensupport.WrapError(err)
 31086  	}
 31087  	ret := &GoogleCloudDiscoveryengineV1betaUserEvent{
 31088  		ServerResponse: googleapi.ServerResponse{
 31089  			Header:         res.Header,
 31090  			HTTPStatusCode: res.StatusCode,
 31091  		},
 31092  	}
 31093  	target := &ret
 31094  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31095  		return nil, err
 31096  	}
 31097  	return ret, nil
 31098  }
 31099  
 31100  type ProjectsLocationsGroundingConfigsCheckCall struct {
 31101  	s                                                     *Service
 31102  	groundingConfig                                       string
 31103  	googleclouddiscoveryenginev1betacheckgroundingrequest *GoogleCloudDiscoveryengineV1betaCheckGroundingRequest
 31104  	urlParams_                                            gensupport.URLParams
 31105  	ctx_                                                  context.Context
 31106  	header_                                               http.Header
 31107  }
 31108  
 31109  // Check: Performs a grounding check.
 31110  //
 31111  //   - groundingConfig: The resource name of the grounding config, such as
 31112  //     `projects/*/locations/global/groundingConfigs/default_grounding_config`.
 31113  func (r *ProjectsLocationsGroundingConfigsService) Check(groundingConfig string, googleclouddiscoveryenginev1betacheckgroundingrequest *GoogleCloudDiscoveryengineV1betaCheckGroundingRequest) *ProjectsLocationsGroundingConfigsCheckCall {
 31114  	c := &ProjectsLocationsGroundingConfigsCheckCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31115  	c.groundingConfig = groundingConfig
 31116  	c.googleclouddiscoveryenginev1betacheckgroundingrequest = googleclouddiscoveryenginev1betacheckgroundingrequest
 31117  	return c
 31118  }
 31119  
 31120  // Fields allows partial responses to be retrieved. See
 31121  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31122  // details.
 31123  func (c *ProjectsLocationsGroundingConfigsCheckCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroundingConfigsCheckCall {
 31124  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31125  	return c
 31126  }
 31127  
 31128  // Context sets the context to be used in this call's Do method.
 31129  func (c *ProjectsLocationsGroundingConfigsCheckCall) Context(ctx context.Context) *ProjectsLocationsGroundingConfigsCheckCall {
 31130  	c.ctx_ = ctx
 31131  	return c
 31132  }
 31133  
 31134  // Header returns a http.Header that can be modified by the caller to add
 31135  // headers to the request.
 31136  func (c *ProjectsLocationsGroundingConfigsCheckCall) Header() http.Header {
 31137  	if c.header_ == nil {
 31138  		c.header_ = make(http.Header)
 31139  	}
 31140  	return c.header_
 31141  }
 31142  
 31143  func (c *ProjectsLocationsGroundingConfigsCheckCall) doRequest(alt string) (*http.Response, error) {
 31144  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31145  	var body io.Reader = nil
 31146  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betacheckgroundingrequest)
 31147  	if err != nil {
 31148  		return nil, err
 31149  	}
 31150  	c.urlParams_.Set("alt", alt)
 31151  	c.urlParams_.Set("prettyPrint", "false")
 31152  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+groundingConfig}:check")
 31153  	urls += "?" + c.urlParams_.Encode()
 31154  	req, err := http.NewRequest("POST", urls, body)
 31155  	if err != nil {
 31156  		return nil, err
 31157  	}
 31158  	req.Header = reqHeaders
 31159  	googleapi.Expand(req.URL, map[string]string{
 31160  		"groundingConfig": c.groundingConfig,
 31161  	})
 31162  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31163  }
 31164  
 31165  // Do executes the "discoveryengine.projects.locations.groundingConfigs.check" call.
 31166  // Any non-2xx status code is an error. Response headers are in either
 31167  // *GoogleCloudDiscoveryengineV1betaCheckGroundingResponse.ServerResponse.Header
 31168  //
 31169  //	or (if a response was returned at all) in error.(*googleapi.Error).Header.
 31170  //
 31171  // Use googleapi.IsNotModified to check whether the returned error was because
 31172  // http.StatusNotModified was returned.
 31173  func (c *ProjectsLocationsGroundingConfigsCheckCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaCheckGroundingResponse, error) {
 31174  	gensupport.SetOptions(c.urlParams_, opts...)
 31175  	res, err := c.doRequest("json")
 31176  	if res != nil && res.StatusCode == http.StatusNotModified {
 31177  		if res.Body != nil {
 31178  			res.Body.Close()
 31179  		}
 31180  		return nil, gensupport.WrapError(&googleapi.Error{
 31181  			Code:   res.StatusCode,
 31182  			Header: res.Header,
 31183  		})
 31184  	}
 31185  	if err != nil {
 31186  		return nil, err
 31187  	}
 31188  	defer googleapi.CloseBody(res)
 31189  	if err := googleapi.CheckResponse(res); err != nil {
 31190  		return nil, gensupport.WrapError(err)
 31191  	}
 31192  	ret := &GoogleCloudDiscoveryengineV1betaCheckGroundingResponse{
 31193  		ServerResponse: googleapi.ServerResponse{
 31194  			Header:         res.Header,
 31195  			HTTPStatusCode: res.StatusCode,
 31196  		},
 31197  	}
 31198  	target := &ret
 31199  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31200  		return nil, err
 31201  	}
 31202  	return ret, nil
 31203  }
 31204  
 31205  type ProjectsLocationsOperationsGetCall struct {
 31206  	s            *Service
 31207  	name         string
 31208  	urlParams_   gensupport.URLParams
 31209  	ifNoneMatch_ string
 31210  	ctx_         context.Context
 31211  	header_      http.Header
 31212  }
 31213  
 31214  // Get: Gets the latest state of a long-running operation. Clients can use this
 31215  // method to poll the operation result at intervals as recommended by the API
 31216  // service.
 31217  //
 31218  // - name: The name of the operation resource.
 31219  func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
 31220  	c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31221  	c.name = name
 31222  	return c
 31223  }
 31224  
 31225  // Fields allows partial responses to be retrieved. See
 31226  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31227  // details.
 31228  func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
 31229  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31230  	return c
 31231  }
 31232  
 31233  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31234  // object's ETag matches the given value. This is useful for getting updates
 31235  // only after the object has changed since the last request.
 31236  func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
 31237  	c.ifNoneMatch_ = entityTag
 31238  	return c
 31239  }
 31240  
 31241  // Context sets the context to be used in this call's Do method.
 31242  func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
 31243  	c.ctx_ = ctx
 31244  	return c
 31245  }
 31246  
 31247  // Header returns a http.Header that can be modified by the caller to add
 31248  // headers to the request.
 31249  func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
 31250  	if c.header_ == nil {
 31251  		c.header_ = make(http.Header)
 31252  	}
 31253  	return c.header_
 31254  }
 31255  
 31256  func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 31257  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31258  	if c.ifNoneMatch_ != "" {
 31259  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31260  	}
 31261  	var body io.Reader = nil
 31262  	c.urlParams_.Set("alt", alt)
 31263  	c.urlParams_.Set("prettyPrint", "false")
 31264  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 31265  	urls += "?" + c.urlParams_.Encode()
 31266  	req, err := http.NewRequest("GET", urls, body)
 31267  	if err != nil {
 31268  		return nil, err
 31269  	}
 31270  	req.Header = reqHeaders
 31271  	googleapi.Expand(req.URL, map[string]string{
 31272  		"name": c.name,
 31273  	})
 31274  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31275  }
 31276  
 31277  // Do executes the "discoveryengine.projects.locations.operations.get" call.
 31278  // Any non-2xx status code is an error. Response headers are in either
 31279  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 31280  // returned at all) in error.(*googleapi.Error).Header. Use
 31281  // googleapi.IsNotModified to check whether the returned error was because
 31282  // http.StatusNotModified was returned.
 31283  func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 31284  	gensupport.SetOptions(c.urlParams_, opts...)
 31285  	res, err := c.doRequest("json")
 31286  	if res != nil && res.StatusCode == http.StatusNotModified {
 31287  		if res.Body != nil {
 31288  			res.Body.Close()
 31289  		}
 31290  		return nil, gensupport.WrapError(&googleapi.Error{
 31291  			Code:   res.StatusCode,
 31292  			Header: res.Header,
 31293  		})
 31294  	}
 31295  	if err != nil {
 31296  		return nil, err
 31297  	}
 31298  	defer googleapi.CloseBody(res)
 31299  	if err := googleapi.CheckResponse(res); err != nil {
 31300  		return nil, gensupport.WrapError(err)
 31301  	}
 31302  	ret := &GoogleLongrunningOperation{
 31303  		ServerResponse: googleapi.ServerResponse{
 31304  			Header:         res.Header,
 31305  			HTTPStatusCode: res.StatusCode,
 31306  		},
 31307  	}
 31308  	target := &ret
 31309  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31310  		return nil, err
 31311  	}
 31312  	return ret, nil
 31313  }
 31314  
 31315  type ProjectsLocationsOperationsListCall struct {
 31316  	s            *Service
 31317  	name         string
 31318  	urlParams_   gensupport.URLParams
 31319  	ifNoneMatch_ string
 31320  	ctx_         context.Context
 31321  	header_      http.Header
 31322  }
 31323  
 31324  // List: Lists operations that match the specified filter in the request. If
 31325  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 31326  //
 31327  // - name: The name of the operation's parent resource.
 31328  func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
 31329  	c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31330  	c.name = name
 31331  	return c
 31332  }
 31333  
 31334  // Filter sets the optional parameter "filter": The standard list filter.
 31335  func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
 31336  	c.urlParams_.Set("filter", filter)
 31337  	return c
 31338  }
 31339  
 31340  // PageSize sets the optional parameter "pageSize": The standard list page
 31341  // size.
 31342  func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
 31343  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 31344  	return c
 31345  }
 31346  
 31347  // PageToken sets the optional parameter "pageToken": The standard list page
 31348  // token.
 31349  func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
 31350  	c.urlParams_.Set("pageToken", pageToken)
 31351  	return c
 31352  }
 31353  
 31354  // Fields allows partial responses to be retrieved. See
 31355  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31356  // details.
 31357  func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
 31358  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31359  	return c
 31360  }
 31361  
 31362  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31363  // object's ETag matches the given value. This is useful for getting updates
 31364  // only after the object has changed since the last request.
 31365  func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
 31366  	c.ifNoneMatch_ = entityTag
 31367  	return c
 31368  }
 31369  
 31370  // Context sets the context to be used in this call's Do method.
 31371  func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
 31372  	c.ctx_ = ctx
 31373  	return c
 31374  }
 31375  
 31376  // Header returns a http.Header that can be modified by the caller to add
 31377  // headers to the request.
 31378  func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
 31379  	if c.header_ == nil {
 31380  		c.header_ = make(http.Header)
 31381  	}
 31382  	return c.header_
 31383  }
 31384  
 31385  func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 31386  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31387  	if c.ifNoneMatch_ != "" {
 31388  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31389  	}
 31390  	var body io.Reader = nil
 31391  	c.urlParams_.Set("alt", alt)
 31392  	c.urlParams_.Set("prettyPrint", "false")
 31393  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 31394  	urls += "?" + c.urlParams_.Encode()
 31395  	req, err := http.NewRequest("GET", urls, body)
 31396  	if err != nil {
 31397  		return nil, err
 31398  	}
 31399  	req.Header = reqHeaders
 31400  	googleapi.Expand(req.URL, map[string]string{
 31401  		"name": c.name,
 31402  	})
 31403  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31404  }
 31405  
 31406  // Do executes the "discoveryengine.projects.locations.operations.list" call.
 31407  // Any non-2xx status code is an error. Response headers are in either
 31408  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 31409  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31410  // googleapi.IsNotModified to check whether the returned error was because
 31411  // http.StatusNotModified was returned.
 31412  func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 31413  	gensupport.SetOptions(c.urlParams_, opts...)
 31414  	res, err := c.doRequest("json")
 31415  	if res != nil && res.StatusCode == http.StatusNotModified {
 31416  		if res.Body != nil {
 31417  			res.Body.Close()
 31418  		}
 31419  		return nil, gensupport.WrapError(&googleapi.Error{
 31420  			Code:   res.StatusCode,
 31421  			Header: res.Header,
 31422  		})
 31423  	}
 31424  	if err != nil {
 31425  		return nil, err
 31426  	}
 31427  	defer googleapi.CloseBody(res)
 31428  	if err := googleapi.CheckResponse(res); err != nil {
 31429  		return nil, gensupport.WrapError(err)
 31430  	}
 31431  	ret := &GoogleLongrunningListOperationsResponse{
 31432  		ServerResponse: googleapi.ServerResponse{
 31433  			Header:         res.Header,
 31434  			HTTPStatusCode: res.StatusCode,
 31435  		},
 31436  	}
 31437  	target := &ret
 31438  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31439  		return nil, err
 31440  	}
 31441  	return ret, nil
 31442  }
 31443  
 31444  // Pages invokes f for each page of results.
 31445  // A non-nil error returned from f will halt the iteration.
 31446  // The provided context supersedes any context provided to the Context method.
 31447  func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 31448  	c.ctx_ = ctx
 31449  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 31450  	for {
 31451  		x, err := c.Do()
 31452  		if err != nil {
 31453  			return err
 31454  		}
 31455  		if err := f(x); err != nil {
 31456  			return err
 31457  		}
 31458  		if x.NextPageToken == "" {
 31459  			return nil
 31460  		}
 31461  		c.PageToken(x.NextPageToken)
 31462  	}
 31463  }
 31464  
 31465  type ProjectsLocationsRankingConfigsRankCall struct {
 31466  	s                                           *Service
 31467  	rankingConfig                               string
 31468  	googleclouddiscoveryenginev1betarankrequest *GoogleCloudDiscoveryengineV1betaRankRequest
 31469  	urlParams_                                  gensupport.URLParams
 31470  	ctx_                                        context.Context
 31471  	header_                                     http.Header
 31472  }
 31473  
 31474  // Rank: Ranks a list of text records based on the given input query.
 31475  //
 31476  //   - rankingConfig: The resource name of the rank service config, such as
 31477  //     `projects/{project_num}/locations/{location_id}/rankingConfigs/default_rank
 31478  //     ing_config`.
 31479  func (r *ProjectsLocationsRankingConfigsService) Rank(rankingConfig string, googleclouddiscoveryenginev1betarankrequest *GoogleCloudDiscoveryengineV1betaRankRequest) *ProjectsLocationsRankingConfigsRankCall {
 31480  	c := &ProjectsLocationsRankingConfigsRankCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31481  	c.rankingConfig = rankingConfig
 31482  	c.googleclouddiscoveryenginev1betarankrequest = googleclouddiscoveryenginev1betarankrequest
 31483  	return c
 31484  }
 31485  
 31486  // Fields allows partial responses to be retrieved. See
 31487  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31488  // details.
 31489  func (c *ProjectsLocationsRankingConfigsRankCall) Fields(s ...googleapi.Field) *ProjectsLocationsRankingConfigsRankCall {
 31490  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31491  	return c
 31492  }
 31493  
 31494  // Context sets the context to be used in this call's Do method.
 31495  func (c *ProjectsLocationsRankingConfigsRankCall) Context(ctx context.Context) *ProjectsLocationsRankingConfigsRankCall {
 31496  	c.ctx_ = ctx
 31497  	return c
 31498  }
 31499  
 31500  // Header returns a http.Header that can be modified by the caller to add
 31501  // headers to the request.
 31502  func (c *ProjectsLocationsRankingConfigsRankCall) Header() http.Header {
 31503  	if c.header_ == nil {
 31504  		c.header_ = make(http.Header)
 31505  	}
 31506  	return c.header_
 31507  }
 31508  
 31509  func (c *ProjectsLocationsRankingConfigsRankCall) doRequest(alt string) (*http.Response, error) {
 31510  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31511  	var body io.Reader = nil
 31512  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betarankrequest)
 31513  	if err != nil {
 31514  		return nil, err
 31515  	}
 31516  	c.urlParams_.Set("alt", alt)
 31517  	c.urlParams_.Set("prettyPrint", "false")
 31518  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+rankingConfig}:rank")
 31519  	urls += "?" + c.urlParams_.Encode()
 31520  	req, err := http.NewRequest("POST", urls, body)
 31521  	if err != nil {
 31522  		return nil, err
 31523  	}
 31524  	req.Header = reqHeaders
 31525  	googleapi.Expand(req.URL, map[string]string{
 31526  		"rankingConfig": c.rankingConfig,
 31527  	})
 31528  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31529  }
 31530  
 31531  // Do executes the "discoveryengine.projects.locations.rankingConfigs.rank" call.
 31532  // Any non-2xx status code is an error. Response headers are in either
 31533  // *GoogleCloudDiscoveryengineV1betaRankResponse.ServerResponse.Header or (if a
 31534  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31535  // googleapi.IsNotModified to check whether the returned error was because
 31536  // http.StatusNotModified was returned.
 31537  func (c *ProjectsLocationsRankingConfigsRankCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaRankResponse, error) {
 31538  	gensupport.SetOptions(c.urlParams_, opts...)
 31539  	res, err := c.doRequest("json")
 31540  	if res != nil && res.StatusCode == http.StatusNotModified {
 31541  		if res.Body != nil {
 31542  			res.Body.Close()
 31543  		}
 31544  		return nil, gensupport.WrapError(&googleapi.Error{
 31545  			Code:   res.StatusCode,
 31546  			Header: res.Header,
 31547  		})
 31548  	}
 31549  	if err != nil {
 31550  		return nil, err
 31551  	}
 31552  	defer googleapi.CloseBody(res)
 31553  	if err := googleapi.CheckResponse(res); err != nil {
 31554  		return nil, gensupport.WrapError(err)
 31555  	}
 31556  	ret := &GoogleCloudDiscoveryengineV1betaRankResponse{
 31557  		ServerResponse: googleapi.ServerResponse{
 31558  			Header:         res.Header,
 31559  			HTTPStatusCode: res.StatusCode,
 31560  		},
 31561  	}
 31562  	target := &ret
 31563  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31564  		return nil, err
 31565  	}
 31566  	return ret, nil
 31567  }
 31568  
 31569  type ProjectsLocationsUserEventsWriteCall struct {
 31570  	s                                         *Service
 31571  	parent                                    string
 31572  	googleclouddiscoveryenginev1betauserevent *GoogleCloudDiscoveryengineV1betaUserEvent
 31573  	urlParams_                                gensupport.URLParams
 31574  	ctx_                                      context.Context
 31575  	header_                                   http.Header
 31576  }
 31577  
 31578  // Write: Writes a single user event.
 31579  //
 31580  //   - parent: The parent resource name. If the write user event action is
 31581  //     applied in DataStore level, the format is:
 31582  //     `projects/{project}/locations/{location}/collections/{collection}/dataStore
 31583  //     s/{data_store}`. If the write user event action is applied in Location
 31584  //     level, for example, the event with Document across multiple DataStore, the
 31585  //     format is: `projects/{project}/locations/{location}`.
 31586  func (r *ProjectsLocationsUserEventsService) Write(parent string, googleclouddiscoveryenginev1betauserevent *GoogleCloudDiscoveryengineV1betaUserEvent) *ProjectsLocationsUserEventsWriteCall {
 31587  	c := &ProjectsLocationsUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31588  	c.parent = parent
 31589  	c.googleclouddiscoveryenginev1betauserevent = googleclouddiscoveryenginev1betauserevent
 31590  	return c
 31591  }
 31592  
 31593  // Fields allows partial responses to be retrieved. See
 31594  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31595  // details.
 31596  func (c *ProjectsLocationsUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsUserEventsWriteCall {
 31597  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31598  	return c
 31599  }
 31600  
 31601  // Context sets the context to be used in this call's Do method.
 31602  func (c *ProjectsLocationsUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsUserEventsWriteCall {
 31603  	c.ctx_ = ctx
 31604  	return c
 31605  }
 31606  
 31607  // Header returns a http.Header that can be modified by the caller to add
 31608  // headers to the request.
 31609  func (c *ProjectsLocationsUserEventsWriteCall) Header() http.Header {
 31610  	if c.header_ == nil {
 31611  		c.header_ = make(http.Header)
 31612  	}
 31613  	return c.header_
 31614  }
 31615  
 31616  func (c *ProjectsLocationsUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
 31617  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 31618  	var body io.Reader = nil
 31619  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betauserevent)
 31620  	if err != nil {
 31621  		return nil, err
 31622  	}
 31623  	c.urlParams_.Set("alt", alt)
 31624  	c.urlParams_.Set("prettyPrint", "false")
 31625  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:write")
 31626  	urls += "?" + c.urlParams_.Encode()
 31627  	req, err := http.NewRequest("POST", urls, body)
 31628  	if err != nil {
 31629  		return nil, err
 31630  	}
 31631  	req.Header = reqHeaders
 31632  	googleapi.Expand(req.URL, map[string]string{
 31633  		"parent": c.parent,
 31634  	})
 31635  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31636  }
 31637  
 31638  // Do executes the "discoveryengine.projects.locations.userEvents.write" call.
 31639  // Any non-2xx status code is an error. Response headers are in either
 31640  // *GoogleCloudDiscoveryengineV1betaUserEvent.ServerResponse.Header or (if a
 31641  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31642  // googleapi.IsNotModified to check whether the returned error was because
 31643  // http.StatusNotModified was returned.
 31644  func (c *ProjectsLocationsUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaUserEvent, error) {
 31645  	gensupport.SetOptions(c.urlParams_, opts...)
 31646  	res, err := c.doRequest("json")
 31647  	if res != nil && res.StatusCode == http.StatusNotModified {
 31648  		if res.Body != nil {
 31649  			res.Body.Close()
 31650  		}
 31651  		return nil, gensupport.WrapError(&googleapi.Error{
 31652  			Code:   res.StatusCode,
 31653  			Header: res.Header,
 31654  		})
 31655  	}
 31656  	if err != nil {
 31657  		return nil, err
 31658  	}
 31659  	defer googleapi.CloseBody(res)
 31660  	if err := googleapi.CheckResponse(res); err != nil {
 31661  		return nil, gensupport.WrapError(err)
 31662  	}
 31663  	ret := &GoogleCloudDiscoveryengineV1betaUserEvent{
 31664  		ServerResponse: googleapi.ServerResponse{
 31665  			Header:         res.Header,
 31666  			HTTPStatusCode: res.StatusCode,
 31667  		},
 31668  	}
 31669  	target := &ret
 31670  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31671  		return nil, err
 31672  	}
 31673  	return ret, nil
 31674  }
 31675  
 31676  type ProjectsOperationsGetCall struct {
 31677  	s            *Service
 31678  	name         string
 31679  	urlParams_   gensupport.URLParams
 31680  	ifNoneMatch_ string
 31681  	ctx_         context.Context
 31682  	header_      http.Header
 31683  }
 31684  
 31685  // Get: Gets the latest state of a long-running operation. Clients can use this
 31686  // method to poll the operation result at intervals as recommended by the API
 31687  // service.
 31688  //
 31689  // - name: The name of the operation resource.
 31690  func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
 31691  	c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31692  	c.name = name
 31693  	return c
 31694  }
 31695  
 31696  // Fields allows partial responses to be retrieved. See
 31697  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31698  // details.
 31699  func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
 31700  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31701  	return c
 31702  }
 31703  
 31704  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31705  // object's ETag matches the given value. This is useful for getting updates
 31706  // only after the object has changed since the last request.
 31707  func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
 31708  	c.ifNoneMatch_ = entityTag
 31709  	return c
 31710  }
 31711  
 31712  // Context sets the context to be used in this call's Do method.
 31713  func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
 31714  	c.ctx_ = ctx
 31715  	return c
 31716  }
 31717  
 31718  // Header returns a http.Header that can be modified by the caller to add
 31719  // headers to the request.
 31720  func (c *ProjectsOperationsGetCall) Header() http.Header {
 31721  	if c.header_ == nil {
 31722  		c.header_ = make(http.Header)
 31723  	}
 31724  	return c.header_
 31725  }
 31726  
 31727  func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
 31728  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31729  	if c.ifNoneMatch_ != "" {
 31730  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31731  	}
 31732  	var body io.Reader = nil
 31733  	c.urlParams_.Set("alt", alt)
 31734  	c.urlParams_.Set("prettyPrint", "false")
 31735  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
 31736  	urls += "?" + c.urlParams_.Encode()
 31737  	req, err := http.NewRequest("GET", urls, body)
 31738  	if err != nil {
 31739  		return nil, err
 31740  	}
 31741  	req.Header = reqHeaders
 31742  	googleapi.Expand(req.URL, map[string]string{
 31743  		"name": c.name,
 31744  	})
 31745  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31746  }
 31747  
 31748  // Do executes the "discoveryengine.projects.operations.get" call.
 31749  // Any non-2xx status code is an error. Response headers are in either
 31750  // *GoogleLongrunningOperation.ServerResponse.Header or (if a response was
 31751  // returned at all) in error.(*googleapi.Error).Header. Use
 31752  // googleapi.IsNotModified to check whether the returned error was because
 31753  // http.StatusNotModified was returned.
 31754  func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
 31755  	gensupport.SetOptions(c.urlParams_, opts...)
 31756  	res, err := c.doRequest("json")
 31757  	if res != nil && res.StatusCode == http.StatusNotModified {
 31758  		if res.Body != nil {
 31759  			res.Body.Close()
 31760  		}
 31761  		return nil, gensupport.WrapError(&googleapi.Error{
 31762  			Code:   res.StatusCode,
 31763  			Header: res.Header,
 31764  		})
 31765  	}
 31766  	if err != nil {
 31767  		return nil, err
 31768  	}
 31769  	defer googleapi.CloseBody(res)
 31770  	if err := googleapi.CheckResponse(res); err != nil {
 31771  		return nil, gensupport.WrapError(err)
 31772  	}
 31773  	ret := &GoogleLongrunningOperation{
 31774  		ServerResponse: googleapi.ServerResponse{
 31775  			Header:         res.Header,
 31776  			HTTPStatusCode: res.StatusCode,
 31777  		},
 31778  	}
 31779  	target := &ret
 31780  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31781  		return nil, err
 31782  	}
 31783  	return ret, nil
 31784  }
 31785  
 31786  type ProjectsOperationsListCall struct {
 31787  	s            *Service
 31788  	name         string
 31789  	urlParams_   gensupport.URLParams
 31790  	ifNoneMatch_ string
 31791  	ctx_         context.Context
 31792  	header_      http.Header
 31793  }
 31794  
 31795  // List: Lists operations that match the specified filter in the request. If
 31796  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 31797  //
 31798  // - name: The name of the operation's parent resource.
 31799  func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
 31800  	c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 31801  	c.name = name
 31802  	return c
 31803  }
 31804  
 31805  // Filter sets the optional parameter "filter": The standard list filter.
 31806  func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
 31807  	c.urlParams_.Set("filter", filter)
 31808  	return c
 31809  }
 31810  
 31811  // PageSize sets the optional parameter "pageSize": The standard list page
 31812  // size.
 31813  func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
 31814  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 31815  	return c
 31816  }
 31817  
 31818  // PageToken sets the optional parameter "pageToken": The standard list page
 31819  // token.
 31820  func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
 31821  	c.urlParams_.Set("pageToken", pageToken)
 31822  	return c
 31823  }
 31824  
 31825  // Fields allows partial responses to be retrieved. See
 31826  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 31827  // details.
 31828  func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
 31829  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 31830  	return c
 31831  }
 31832  
 31833  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 31834  // object's ETag matches the given value. This is useful for getting updates
 31835  // only after the object has changed since the last request.
 31836  func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
 31837  	c.ifNoneMatch_ = entityTag
 31838  	return c
 31839  }
 31840  
 31841  // Context sets the context to be used in this call's Do method.
 31842  func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
 31843  	c.ctx_ = ctx
 31844  	return c
 31845  }
 31846  
 31847  // Header returns a http.Header that can be modified by the caller to add
 31848  // headers to the request.
 31849  func (c *ProjectsOperationsListCall) Header() http.Header {
 31850  	if c.header_ == nil {
 31851  		c.header_ = make(http.Header)
 31852  	}
 31853  	return c.header_
 31854  }
 31855  
 31856  func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
 31857  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 31858  	if c.ifNoneMatch_ != "" {
 31859  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 31860  	}
 31861  	var body io.Reader = nil
 31862  	c.urlParams_.Set("alt", alt)
 31863  	c.urlParams_.Set("prettyPrint", "false")
 31864  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
 31865  	urls += "?" + c.urlParams_.Encode()
 31866  	req, err := http.NewRequest("GET", urls, body)
 31867  	if err != nil {
 31868  		return nil, err
 31869  	}
 31870  	req.Header = reqHeaders
 31871  	googleapi.Expand(req.URL, map[string]string{
 31872  		"name": c.name,
 31873  	})
 31874  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 31875  }
 31876  
 31877  // Do executes the "discoveryengine.projects.operations.list" call.
 31878  // Any non-2xx status code is an error. Response headers are in either
 31879  // *GoogleLongrunningListOperationsResponse.ServerResponse.Header or (if a
 31880  // response was returned at all) in error.(*googleapi.Error).Header. Use
 31881  // googleapi.IsNotModified to check whether the returned error was because
 31882  // http.StatusNotModified was returned.
 31883  func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
 31884  	gensupport.SetOptions(c.urlParams_, opts...)
 31885  	res, err := c.doRequest("json")
 31886  	if res != nil && res.StatusCode == http.StatusNotModified {
 31887  		if res.Body != nil {
 31888  			res.Body.Close()
 31889  		}
 31890  		return nil, gensupport.WrapError(&googleapi.Error{
 31891  			Code:   res.StatusCode,
 31892  			Header: res.Header,
 31893  		})
 31894  	}
 31895  	if err != nil {
 31896  		return nil, err
 31897  	}
 31898  	defer googleapi.CloseBody(res)
 31899  	if err := googleapi.CheckResponse(res); err != nil {
 31900  		return nil, gensupport.WrapError(err)
 31901  	}
 31902  	ret := &GoogleLongrunningListOperationsResponse{
 31903  		ServerResponse: googleapi.ServerResponse{
 31904  			Header:         res.Header,
 31905  			HTTPStatusCode: res.StatusCode,
 31906  		},
 31907  	}
 31908  	target := &ret
 31909  	if err := gensupport.DecodeResponse(target, res); err != nil {
 31910  		return nil, err
 31911  	}
 31912  	return ret, nil
 31913  }
 31914  
 31915  // Pages invokes f for each page of results.
 31916  // A non-nil error returned from f will halt the iteration.
 31917  // The provided context supersedes any context provided to the Context method.
 31918  func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
 31919  	c.ctx_ = ctx
 31920  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 31921  	for {
 31922  		x, err := c.Do()
 31923  		if err != nil {
 31924  			return err
 31925  		}
 31926  		if err := f(x); err != nil {
 31927  			return err
 31928  		}
 31929  		if x.NextPageToken == "" {
 31930  			return nil
 31931  		}
 31932  		c.PageToken(x.NextPageToken)
 31933  	}
 31934  }
 31935  

View as plain text