...

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

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

     1  // Copyright 2024 Google LLC.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Code generated file. DO NOT EDIT.
     6  
     7  // Package cloudsearch provides access to the Cloud Search API.
     8  //
     9  // For product documentation, see: https://developers.google.com/cloud-search/docs/guides/
    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/cloudsearch/v1"
    27  //	...
    28  //	ctx := context.Background()
    29  //	cloudsearchService, err := cloudsearch.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  // By default, all available scopes (see "Constants") are used to authenticate.
    38  // To restrict scopes, use [google.golang.org/api/option.WithScopes]:
    39  //
    40  //	cloudsearchService, err := cloudsearch.NewService(ctx, option.WithScopes(cloudsearch.CloudSearchStatsIndexingScope))
    41  //
    42  // To use an API key for authentication (note: some APIs do not support API
    43  // keys), use [google.golang.org/api/option.WithAPIKey]:
    44  //
    45  //	cloudsearchService, err := cloudsearch.NewService(ctx, option.WithAPIKey("AIza..."))
    46  //
    47  // To use an OAuth token (e.g., a user token obtained via a three-legged OAuth
    48  // flow, use [google.golang.org/api/option.WithTokenSource]:
    49  //
    50  //	config := &oauth2.Config{...}
    51  //	// ...
    52  //	token, err := config.Exchange(ctx, ...)
    53  //	cloudsearchService, err := cloudsearch.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))
    54  //
    55  // See [google.golang.org/api/option.ClientOption] for details on options.
    56  package cloudsearch // import "google.golang.org/api/cloudsearch/v1"
    57  
    58  import (
    59  	"bytes"
    60  	"context"
    61  	"encoding/json"
    62  	"errors"
    63  	"fmt"
    64  	"io"
    65  	"net/http"
    66  	"net/url"
    67  	"strconv"
    68  	"strings"
    69  
    70  	googleapi "google.golang.org/api/googleapi"
    71  	internal "google.golang.org/api/internal"
    72  	gensupport "google.golang.org/api/internal/gensupport"
    73  	option "google.golang.org/api/option"
    74  	internaloption "google.golang.org/api/option/internaloption"
    75  	htransport "google.golang.org/api/transport/http"
    76  )
    77  
    78  // Always reference these packages, just in case the auto-generated code
    79  // below doesn't.
    80  var _ = bytes.NewBuffer
    81  var _ = strconv.Itoa
    82  var _ = fmt.Sprintf
    83  var _ = json.NewDecoder
    84  var _ = io.Copy
    85  var _ = url.Parse
    86  var _ = gensupport.MarshalJSON
    87  var _ = googleapi.Version
    88  var _ = errors.New
    89  var _ = strings.Replace
    90  var _ = context.Canceled
    91  var _ = internaloption.WithDefaultEndpoint
    92  var _ = internal.Version
    93  
    94  const apiId = "cloudsearch:v1"
    95  const apiName = "cloudsearch"
    96  const apiVersion = "v1"
    97  const basePath = "https://cloudsearch.googleapis.com/"
    98  const basePathTemplate = "https://cloudsearch.UNIVERSE_DOMAIN/"
    99  const mtlsBasePath = "https://cloudsearch.mtls.googleapis.com/"
   100  
   101  // OAuth2 scopes used by this API.
   102  const (
   103  	// Index and serve your organization's data with Cloud Search
   104  	CloudSearchScope = "https://www.googleapis.com/auth/cloud_search"
   105  
   106  	// Index and serve your organization's data with Cloud Search
   107  	CloudSearchDebugScope = "https://www.googleapis.com/auth/cloud_search.debug"
   108  
   109  	// Index and serve your organization's data with Cloud Search
   110  	CloudSearchIndexingScope = "https://www.googleapis.com/auth/cloud_search.indexing"
   111  
   112  	// Search your organization's data in the Cloud Search index
   113  	CloudSearchQueryScope = "https://www.googleapis.com/auth/cloud_search.query"
   114  
   115  	// Index and serve your organization's data with Cloud Search
   116  	CloudSearchSettingsScope = "https://www.googleapis.com/auth/cloud_search.settings"
   117  
   118  	// Index and serve your organization's data with Cloud Search
   119  	CloudSearchSettingsIndexingScope = "https://www.googleapis.com/auth/cloud_search.settings.indexing"
   120  
   121  	// Index and serve your organization's data with Cloud Search
   122  	CloudSearchSettingsQueryScope = "https://www.googleapis.com/auth/cloud_search.settings.query"
   123  
   124  	// Index and serve your organization's data with Cloud Search
   125  	CloudSearchStatsScope = "https://www.googleapis.com/auth/cloud_search.stats"
   126  
   127  	// Index and serve your organization's data with Cloud Search
   128  	CloudSearchStatsIndexingScope = "https://www.googleapis.com/auth/cloud_search.stats.indexing"
   129  )
   130  
   131  // NewService creates a new Service.
   132  func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
   133  	scopesOption := internaloption.WithDefaultScopes(
   134  		"https://www.googleapis.com/auth/cloud_search",
   135  		"https://www.googleapis.com/auth/cloud_search.debug",
   136  		"https://www.googleapis.com/auth/cloud_search.indexing",
   137  		"https://www.googleapis.com/auth/cloud_search.query",
   138  		"https://www.googleapis.com/auth/cloud_search.settings",
   139  		"https://www.googleapis.com/auth/cloud_search.settings.indexing",
   140  		"https://www.googleapis.com/auth/cloud_search.settings.query",
   141  		"https://www.googleapis.com/auth/cloud_search.stats",
   142  		"https://www.googleapis.com/auth/cloud_search.stats.indexing",
   143  	)
   144  	// NOTE: prepend, so we don't override user-specified scopes.
   145  	opts = append([]option.ClientOption{scopesOption}, opts...)
   146  	opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
   147  	opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
   148  	opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
   149  	opts = append(opts, internaloption.EnableNewAuthLibrary())
   150  	client, endpoint, err := htransport.NewClient(ctx, opts...)
   151  	if err != nil {
   152  		return nil, err
   153  	}
   154  	s, err := New(client)
   155  	if err != nil {
   156  		return nil, err
   157  	}
   158  	if endpoint != "" {
   159  		s.BasePath = endpoint
   160  	}
   161  	return s, nil
   162  }
   163  
   164  // New creates a new Service. It uses the provided http.Client for requests.
   165  //
   166  // Deprecated: please use NewService instead.
   167  // To provide a custom HTTP client, use option.WithHTTPClient.
   168  // If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
   169  func New(client *http.Client) (*Service, error) {
   170  	if client == nil {
   171  		return nil, errors.New("client is nil")
   172  	}
   173  	s := &Service{client: client, BasePath: basePath}
   174  	s.Debug = NewDebugService(s)
   175  	s.Indexing = NewIndexingService(s)
   176  	s.Media = NewMediaService(s)
   177  	s.Operations = NewOperationsService(s)
   178  	s.Query = NewQueryService(s)
   179  	s.Settings = NewSettingsService(s)
   180  	s.Stats = NewStatsService(s)
   181  	s.V1 = NewV1Service(s)
   182  	return s, nil
   183  }
   184  
   185  type Service struct {
   186  	client    *http.Client
   187  	BasePath  string // API endpoint base URL
   188  	UserAgent string // optional additional User-Agent fragment
   189  
   190  	Debug *DebugService
   191  
   192  	Indexing *IndexingService
   193  
   194  	Media *MediaService
   195  
   196  	Operations *OperationsService
   197  
   198  	Query *QueryService
   199  
   200  	Settings *SettingsService
   201  
   202  	Stats *StatsService
   203  
   204  	V1 *V1Service
   205  }
   206  
   207  func (s *Service) userAgent() string {
   208  	if s.UserAgent == "" {
   209  		return googleapi.UserAgent
   210  	}
   211  	return googleapi.UserAgent + " " + s.UserAgent
   212  }
   213  
   214  func NewDebugService(s *Service) *DebugService {
   215  	rs := &DebugService{s: s}
   216  	rs.Datasources = NewDebugDatasourcesService(s)
   217  	rs.Identitysources = NewDebugIdentitysourcesService(s)
   218  	return rs
   219  }
   220  
   221  type DebugService struct {
   222  	s *Service
   223  
   224  	Datasources *DebugDatasourcesService
   225  
   226  	Identitysources *DebugIdentitysourcesService
   227  }
   228  
   229  func NewDebugDatasourcesService(s *Service) *DebugDatasourcesService {
   230  	rs := &DebugDatasourcesService{s: s}
   231  	rs.Items = NewDebugDatasourcesItemsService(s)
   232  	return rs
   233  }
   234  
   235  type DebugDatasourcesService struct {
   236  	s *Service
   237  
   238  	Items *DebugDatasourcesItemsService
   239  }
   240  
   241  func NewDebugDatasourcesItemsService(s *Service) *DebugDatasourcesItemsService {
   242  	rs := &DebugDatasourcesItemsService{s: s}
   243  	rs.Unmappedids = NewDebugDatasourcesItemsUnmappedidsService(s)
   244  	return rs
   245  }
   246  
   247  type DebugDatasourcesItemsService struct {
   248  	s *Service
   249  
   250  	Unmappedids *DebugDatasourcesItemsUnmappedidsService
   251  }
   252  
   253  func NewDebugDatasourcesItemsUnmappedidsService(s *Service) *DebugDatasourcesItemsUnmappedidsService {
   254  	rs := &DebugDatasourcesItemsUnmappedidsService{s: s}
   255  	return rs
   256  }
   257  
   258  type DebugDatasourcesItemsUnmappedidsService struct {
   259  	s *Service
   260  }
   261  
   262  func NewDebugIdentitysourcesService(s *Service) *DebugIdentitysourcesService {
   263  	rs := &DebugIdentitysourcesService{s: s}
   264  	rs.Items = NewDebugIdentitysourcesItemsService(s)
   265  	rs.Unmappedids = NewDebugIdentitysourcesUnmappedidsService(s)
   266  	return rs
   267  }
   268  
   269  type DebugIdentitysourcesService struct {
   270  	s *Service
   271  
   272  	Items *DebugIdentitysourcesItemsService
   273  
   274  	Unmappedids *DebugIdentitysourcesUnmappedidsService
   275  }
   276  
   277  func NewDebugIdentitysourcesItemsService(s *Service) *DebugIdentitysourcesItemsService {
   278  	rs := &DebugIdentitysourcesItemsService{s: s}
   279  	return rs
   280  }
   281  
   282  type DebugIdentitysourcesItemsService struct {
   283  	s *Service
   284  }
   285  
   286  func NewDebugIdentitysourcesUnmappedidsService(s *Service) *DebugIdentitysourcesUnmappedidsService {
   287  	rs := &DebugIdentitysourcesUnmappedidsService{s: s}
   288  	return rs
   289  }
   290  
   291  type DebugIdentitysourcesUnmappedidsService struct {
   292  	s *Service
   293  }
   294  
   295  func NewIndexingService(s *Service) *IndexingService {
   296  	rs := &IndexingService{s: s}
   297  	rs.Datasources = NewIndexingDatasourcesService(s)
   298  	return rs
   299  }
   300  
   301  type IndexingService struct {
   302  	s *Service
   303  
   304  	Datasources *IndexingDatasourcesService
   305  }
   306  
   307  func NewIndexingDatasourcesService(s *Service) *IndexingDatasourcesService {
   308  	rs := &IndexingDatasourcesService{s: s}
   309  	rs.Items = NewIndexingDatasourcesItemsService(s)
   310  	return rs
   311  }
   312  
   313  type IndexingDatasourcesService struct {
   314  	s *Service
   315  
   316  	Items *IndexingDatasourcesItemsService
   317  }
   318  
   319  func NewIndexingDatasourcesItemsService(s *Service) *IndexingDatasourcesItemsService {
   320  	rs := &IndexingDatasourcesItemsService{s: s}
   321  	return rs
   322  }
   323  
   324  type IndexingDatasourcesItemsService struct {
   325  	s *Service
   326  }
   327  
   328  func NewMediaService(s *Service) *MediaService {
   329  	rs := &MediaService{s: s}
   330  	return rs
   331  }
   332  
   333  type MediaService struct {
   334  	s *Service
   335  }
   336  
   337  func NewOperationsService(s *Service) *OperationsService {
   338  	rs := &OperationsService{s: s}
   339  	rs.Lro = NewOperationsLroService(s)
   340  	return rs
   341  }
   342  
   343  type OperationsService struct {
   344  	s *Service
   345  
   346  	Lro *OperationsLroService
   347  }
   348  
   349  func NewOperationsLroService(s *Service) *OperationsLroService {
   350  	rs := &OperationsLroService{s: s}
   351  	return rs
   352  }
   353  
   354  type OperationsLroService struct {
   355  	s *Service
   356  }
   357  
   358  func NewQueryService(s *Service) *QueryService {
   359  	rs := &QueryService{s: s}
   360  	rs.Sources = NewQuerySourcesService(s)
   361  	return rs
   362  }
   363  
   364  type QueryService struct {
   365  	s *Service
   366  
   367  	Sources *QuerySourcesService
   368  }
   369  
   370  func NewQuerySourcesService(s *Service) *QuerySourcesService {
   371  	rs := &QuerySourcesService{s: s}
   372  	return rs
   373  }
   374  
   375  type QuerySourcesService struct {
   376  	s *Service
   377  }
   378  
   379  func NewSettingsService(s *Service) *SettingsService {
   380  	rs := &SettingsService{s: s}
   381  	rs.Datasources = NewSettingsDatasourcesService(s)
   382  	rs.Searchapplications = NewSettingsSearchapplicationsService(s)
   383  	return rs
   384  }
   385  
   386  type SettingsService struct {
   387  	s *Service
   388  
   389  	Datasources *SettingsDatasourcesService
   390  
   391  	Searchapplications *SettingsSearchapplicationsService
   392  }
   393  
   394  func NewSettingsDatasourcesService(s *Service) *SettingsDatasourcesService {
   395  	rs := &SettingsDatasourcesService{s: s}
   396  	return rs
   397  }
   398  
   399  type SettingsDatasourcesService struct {
   400  	s *Service
   401  }
   402  
   403  func NewSettingsSearchapplicationsService(s *Service) *SettingsSearchapplicationsService {
   404  	rs := &SettingsSearchapplicationsService{s: s}
   405  	return rs
   406  }
   407  
   408  type SettingsSearchapplicationsService struct {
   409  	s *Service
   410  }
   411  
   412  func NewStatsService(s *Service) *StatsService {
   413  	rs := &StatsService{s: s}
   414  	rs.Index = NewStatsIndexService(s)
   415  	rs.Query = NewStatsQueryService(s)
   416  	rs.Session = NewStatsSessionService(s)
   417  	rs.User = NewStatsUserService(s)
   418  	return rs
   419  }
   420  
   421  type StatsService struct {
   422  	s *Service
   423  
   424  	Index *StatsIndexService
   425  
   426  	Query *StatsQueryService
   427  
   428  	Session *StatsSessionService
   429  
   430  	User *StatsUserService
   431  }
   432  
   433  func NewStatsIndexService(s *Service) *StatsIndexService {
   434  	rs := &StatsIndexService{s: s}
   435  	rs.Datasources = NewStatsIndexDatasourcesService(s)
   436  	return rs
   437  }
   438  
   439  type StatsIndexService struct {
   440  	s *Service
   441  
   442  	Datasources *StatsIndexDatasourcesService
   443  }
   444  
   445  func NewStatsIndexDatasourcesService(s *Service) *StatsIndexDatasourcesService {
   446  	rs := &StatsIndexDatasourcesService{s: s}
   447  	return rs
   448  }
   449  
   450  type StatsIndexDatasourcesService struct {
   451  	s *Service
   452  }
   453  
   454  func NewStatsQueryService(s *Service) *StatsQueryService {
   455  	rs := &StatsQueryService{s: s}
   456  	rs.Searchapplications = NewStatsQuerySearchapplicationsService(s)
   457  	return rs
   458  }
   459  
   460  type StatsQueryService struct {
   461  	s *Service
   462  
   463  	Searchapplications *StatsQuerySearchapplicationsService
   464  }
   465  
   466  func NewStatsQuerySearchapplicationsService(s *Service) *StatsQuerySearchapplicationsService {
   467  	rs := &StatsQuerySearchapplicationsService{s: s}
   468  	return rs
   469  }
   470  
   471  type StatsQuerySearchapplicationsService struct {
   472  	s *Service
   473  }
   474  
   475  func NewStatsSessionService(s *Service) *StatsSessionService {
   476  	rs := &StatsSessionService{s: s}
   477  	rs.Searchapplications = NewStatsSessionSearchapplicationsService(s)
   478  	return rs
   479  }
   480  
   481  type StatsSessionService struct {
   482  	s *Service
   483  
   484  	Searchapplications *StatsSessionSearchapplicationsService
   485  }
   486  
   487  func NewStatsSessionSearchapplicationsService(s *Service) *StatsSessionSearchapplicationsService {
   488  	rs := &StatsSessionSearchapplicationsService{s: s}
   489  	return rs
   490  }
   491  
   492  type StatsSessionSearchapplicationsService struct {
   493  	s *Service
   494  }
   495  
   496  func NewStatsUserService(s *Service) *StatsUserService {
   497  	rs := &StatsUserService{s: s}
   498  	rs.Searchapplications = NewStatsUserSearchapplicationsService(s)
   499  	return rs
   500  }
   501  
   502  type StatsUserService struct {
   503  	s *Service
   504  
   505  	Searchapplications *StatsUserSearchapplicationsService
   506  }
   507  
   508  func NewStatsUserSearchapplicationsService(s *Service) *StatsUserSearchapplicationsService {
   509  	rs := &StatsUserSearchapplicationsService{s: s}
   510  	return rs
   511  }
   512  
   513  type StatsUserSearchapplicationsService struct {
   514  	s *Service
   515  }
   516  
   517  func NewV1Service(s *Service) *V1Service {
   518  	rs := &V1Service{s: s}
   519  	return rs
   520  }
   521  
   522  type V1Service struct {
   523  	s *Service
   524  }
   525  
   526  type Action struct {
   527  	// Title: [Required] Title of the action.
   528  	Title string `json:"title,omitempty"`
   529  	// Url: [Optional] Url of the action.
   530  	Url string `json:"url,omitempty"`
   531  	// ForceSendFields is a list of field names (e.g. "Title") to unconditionally
   532  	// include in API requests. By default, fields with empty or default values are
   533  	// omitted from API requests. See
   534  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   535  	// details.
   536  	ForceSendFields []string `json:"-"`
   537  	// NullFields is a list of field names (e.g. "Title") to include in API
   538  	// requests with the JSON null value. By default, fields with empty values are
   539  	// omitted from API requests. See
   540  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   541  	NullFields []string `json:"-"`
   542  }
   543  
   544  func (s *Action) MarshalJSON() ([]byte, error) {
   545  	type NoMethod Action
   546  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   547  }
   548  
   549  // AuditLoggingSettings: Represents the settings for Cloud audit logging
   550  type AuditLoggingSettings struct {
   551  	// LogAdminReadActions: Indicates whether audit logging is on/off for admin
   552  	// activity read APIs i.e. Get/List DataSources, Get/List SearchApplications
   553  	// etc.
   554  	LogAdminReadActions bool `json:"logAdminReadActions,omitempty"`
   555  	// LogDataReadActions: Indicates whether audit logging is on/off for data
   556  	// access read APIs i.e. ListItems, GetItem etc.
   557  	LogDataReadActions bool `json:"logDataReadActions,omitempty"`
   558  	// LogDataWriteActions: Indicates whether audit logging is on/off for data
   559  	// access write APIs i.e. IndexItem etc.
   560  	LogDataWriteActions bool `json:"logDataWriteActions,omitempty"`
   561  	// Project: The resource name of the GCP Project to store audit logs. Cloud
   562  	// audit logging will be enabled after project_name has been updated through
   563  	// CustomerService. Format: projects/{project_id}
   564  	Project string `json:"project,omitempty"`
   565  	// ForceSendFields is a list of field names (e.g. "LogAdminReadActions") to
   566  	// unconditionally include in API requests. By default, fields with empty or
   567  	// default values are omitted from API requests. See
   568  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   569  	// details.
   570  	ForceSendFields []string `json:"-"`
   571  	// NullFields is a list of field names (e.g. "LogAdminReadActions") to include
   572  	// in API requests with the JSON null value. By default, fields with empty
   573  	// values are omitted from API requests. See
   574  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   575  	NullFields []string `json:"-"`
   576  }
   577  
   578  func (s *AuditLoggingSettings) MarshalJSON() ([]byte, error) {
   579  	type NoMethod AuditLoggingSettings
   580  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   581  }
   582  
   583  type BackgroundColoredText struct {
   584  	// BackgroundColor: [Optional] Color of the background. The text color can
   585  	// change depending on the selected background color, and the client does not
   586  	// have control over this. If missing, the background will be WHITE.
   587  	//
   588  	// Possible values:
   589  	//   "UNKNOWN_COLOR"
   590  	//   "WHITE"
   591  	//   "YELLOW"
   592  	//   "ORANGE"
   593  	//   "GREEN"
   594  	//   "BLUE"
   595  	//   "GREY"
   596  	BackgroundColor string `json:"backgroundColor,omitempty"`
   597  	// Text: [Required] The text to display.
   598  	Text string `json:"text,omitempty"`
   599  	// ForceSendFields is a list of field names (e.g. "BackgroundColor") to
   600  	// unconditionally include in API requests. By default, fields with empty or
   601  	// default values are omitted from API requests. See
   602  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   603  	// details.
   604  	ForceSendFields []string `json:"-"`
   605  	// NullFields is a list of field names (e.g. "BackgroundColor") to include in
   606  	// API requests with the JSON null value. By default, fields with empty values
   607  	// are omitted from API requests. See
   608  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   609  	NullFields []string `json:"-"`
   610  }
   611  
   612  func (s *BackgroundColoredText) MarshalJSON() ([]byte, error) {
   613  	type NoMethod BackgroundColoredText
   614  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   615  }
   616  
   617  // BooleanOperatorOptions: Used to provide a search operator for boolean
   618  // properties. This is optional. Search operators let users restrict the query
   619  // to specific fields relevant to the type of item being searched.
   620  type BooleanOperatorOptions struct {
   621  	// OperatorName: Indicates the operator name required in the query in order to
   622  	// isolate the boolean property. For example, if operatorName is *closed* and
   623  	// the property's name is *isClosed*, then queries like *closed:<value>* show
   624  	// results only where the value of the property named *isClosed* matches
   625  	// *<value>*. By contrast, a search that uses the same *<value>* without an
   626  	// operator returns all items where *<value>* matches the value of any String
   627  	// properties or text within the content field for the item. The operator name
   628  	// can only contain lowercase letters (a-z). The maximum length is 32
   629  	// characters.
   630  	OperatorName string `json:"operatorName,omitempty"`
   631  	// ForceSendFields is a list of field names (e.g. "OperatorName") to
   632  	// unconditionally include in API requests. By default, fields with empty or
   633  	// default values are omitted from API requests. See
   634  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   635  	// details.
   636  	ForceSendFields []string `json:"-"`
   637  	// NullFields is a list of field names (e.g. "OperatorName") to include in API
   638  	// requests with the JSON null value. By default, fields with empty values are
   639  	// omitted from API requests. See
   640  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   641  	NullFields []string `json:"-"`
   642  }
   643  
   644  func (s *BooleanOperatorOptions) MarshalJSON() ([]byte, error) {
   645  	type NoMethod BooleanOperatorOptions
   646  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   647  }
   648  
   649  // BooleanPropertyOptions: The options for boolean properties.
   650  type BooleanPropertyOptions struct {
   651  	// OperatorOptions: If set, describes how the boolean should be used as a
   652  	// search operator.
   653  	OperatorOptions *BooleanOperatorOptions `json:"operatorOptions,omitempty"`
   654  	// ForceSendFields is a list of field names (e.g. "OperatorOptions") to
   655  	// unconditionally include in API requests. By default, fields with empty or
   656  	// default values are omitted from API requests. See
   657  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   658  	// details.
   659  	ForceSendFields []string `json:"-"`
   660  	// NullFields is a list of field names (e.g. "OperatorOptions") to include in
   661  	// API requests with the JSON null value. By default, fields with empty values
   662  	// are omitted from API requests. See
   663  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   664  	NullFields []string `json:"-"`
   665  }
   666  
   667  func (s *BooleanPropertyOptions) MarshalJSON() ([]byte, error) {
   668  	type NoMethod BooleanPropertyOptions
   669  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   670  }
   671  
   672  type CheckAccessResponse struct {
   673  	// HasAccess: Returns true if principal has access. Returns false otherwise.
   674  	HasAccess bool `json:"hasAccess,omitempty"`
   675  
   676  	// ServerResponse contains the HTTP response code and headers from the server.
   677  	googleapi.ServerResponse `json:"-"`
   678  	// ForceSendFields is a list of field names (e.g. "HasAccess") to
   679  	// unconditionally include in API requests. By default, fields with empty or
   680  	// default values are omitted from API requests. See
   681  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   682  	// details.
   683  	ForceSendFields []string `json:"-"`
   684  	// NullFields is a list of field names (e.g. "HasAccess") to include in API
   685  	// requests with the JSON null value. By default, fields with empty values are
   686  	// omitted from API requests. See
   687  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   688  	NullFields []string `json:"-"`
   689  }
   690  
   691  func (s *CheckAccessResponse) MarshalJSON() ([]byte, error) {
   692  	type NoMethod CheckAccessResponse
   693  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   694  }
   695  
   696  type CompositeFilter struct {
   697  	// LogicOperator: The logic operator of the sub filter.
   698  	//
   699  	// Possible values:
   700  	//   "AND" - Logical operators, which can only be applied to sub filters.
   701  	//   "OR"
   702  	//   "NOT" - NOT can only be applied on a single sub filter.
   703  	LogicOperator string `json:"logicOperator,omitempty"`
   704  	// SubFilters: Sub filters.
   705  	SubFilters []*Filter `json:"subFilters,omitempty"`
   706  	// ForceSendFields is a list of field names (e.g. "LogicOperator") to
   707  	// unconditionally include in API requests. By default, fields with empty or
   708  	// default values are omitted from API requests. See
   709  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   710  	// details.
   711  	ForceSendFields []string `json:"-"`
   712  	// NullFields is a list of field names (e.g. "LogicOperator") to include in API
   713  	// requests with the JSON null value. By default, fields with empty values are
   714  	// omitted from API requests. See
   715  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   716  	NullFields []string `json:"-"`
   717  }
   718  
   719  func (s *CompositeFilter) MarshalJSON() ([]byte, error) {
   720  	type NoMethod CompositeFilter
   721  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   722  }
   723  
   724  type Content struct {
   725  	// Actions: [Optional] Actions for this card.
   726  	Actions []*Action `json:"actions,omitempty"`
   727  	// Description: [Optional] Description of the card.
   728  	Description *SafeHtmlProto `json:"description,omitempty"`
   729  	// Subtitle: [Optional] Subtitle of the card.
   730  	Subtitle *BackgroundColoredText `json:"subtitle,omitempty"`
   731  	// Title: [Optional] Title of the card.
   732  	Title *BackgroundColoredText `json:"title,omitempty"`
   733  	// ForceSendFields is a list of field names (e.g. "Actions") to unconditionally
   734  	// include in API requests. By default, fields with empty or default values are
   735  	// omitted from API requests. See
   736  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   737  	// details.
   738  	ForceSendFields []string `json:"-"`
   739  	// NullFields is a list of field names (e.g. "Actions") to include in API
   740  	// requests with the JSON null value. By default, fields with empty values are
   741  	// omitted from API requests. See
   742  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   743  	NullFields []string `json:"-"`
   744  }
   745  
   746  func (s *Content) MarshalJSON() ([]byte, error) {
   747  	type NoMethod Content
   748  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   749  }
   750  
   751  type Context struct {
   752  	// App: [Optional] App where the card should be shown. If missing, the card
   753  	// will be shown in TOPAZ.
   754  	//
   755  	// Possible values:
   756  	//   "UNKNOWN_APP"
   757  	//   "TOPAZ"
   758  	//   "MOMA"
   759  	App []string `json:"app,omitempty"`
   760  	// DayOfWeek: [Optional] Day of week when the card should be shown, where 0 is
   761  	// Monday.
   762  	DayOfWeek []int64 `json:"dayOfWeek,omitempty"`
   763  	// EndDateSec: [Optional] Date (in seconds since epoch) when the card should
   764  	// stop being shown. If missing, end_date_sec will be set to Jan 1st, 2100.
   765  	EndDateSec int64 `json:"endDateSec,omitempty,string"`
   766  	// EndDayOffsetSec: [Optional] End time in seconds, within a day, when the card
   767  	// should stop being shown if it's within [start_date_sec, end_date_sec]. If
   768  	// missing, this is set to 86400 (24 hours x 3600 sec/hour), i.e., midnight
   769  	// next day.
   770  	EndDayOffsetSec int64 `json:"endDayOffsetSec,omitempty,string"`
   771  	// Locale: [Optional] The locales for which the card should be triggered (e.g.,
   772  	// en_US and en_CA). If missing, the card is going to show to clients
   773  	// regardless of their locale.
   774  	Locale []string `json:"locale,omitempty"`
   775  	// Location: [Optional] Text-free locations where the card should be shown.
   776  	// This is expected to match the user's location in focus. If no location is
   777  	// specified, the card will be shown for any location.
   778  	Location []string `json:"location,omitempty"`
   779  	// Query: [Required only for Answer and RHS cards - will be ignored for
   780  	// Homepage] cards. It's the exact case-insensitive queries that will trigger
   781  	// the Answer or RHS card.
   782  	Query []string `json:"query,omitempty"`
   783  	// StartDateSec: [Optional] Date (in seconds since epoch) when the card should
   784  	// start being shown. If missing, start_date_sec will be Jan 1st, 1970 UTC.
   785  	StartDateSec int64 `json:"startDateSec,omitempty,string"`
   786  	// StartDayOffsetSec: [Optional] Start time in seconds, within a day, when the
   787  	// card should be shown if it's within [start_date_sec, end_date_sec]. If 0,
   788  	// the card will be shown from 12:00am on.
   789  	StartDayOffsetSec int64 `json:"startDayOffsetSec,omitempty,string"`
   790  	// Surface: [Optional] Surface where the card should be shown in. If missing,
   791  	// the card will be shown in any surface.
   792  	//
   793  	// Possible values:
   794  	//   "UNKNOWN_SURFACE"
   795  	//   "DESKTOP"
   796  	//   "ANDROID"
   797  	//   "IOS"
   798  	//   "MOBILE" - Any mobile device.
   799  	//   "ANY"
   800  	Surface []string `json:"surface,omitempty"`
   801  	// Type: [Required] Type of the card (homepage, Answer or RHS).
   802  	//
   803  	// Possible values:
   804  	//   "UNKNOWN_CARD_TYPE"
   805  	//   "HOMEPAGE_CARD"
   806  	//   "ANSWER_CARD"
   807  	//   "RHS_CARD"
   808  	Type []string `json:"type,omitempty"`
   809  	// ForceSendFields is a list of field names (e.g. "App") to unconditionally
   810  	// include in API requests. By default, fields with empty or default values are
   811  	// omitted from API requests. See
   812  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   813  	// details.
   814  	ForceSendFields []string `json:"-"`
   815  	// NullFields is a list of field names (e.g. "App") to include in API requests
   816  	// with the JSON null value. By default, fields with empty values are omitted
   817  	// from API requests. See
   818  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   819  	NullFields []string `json:"-"`
   820  }
   821  
   822  func (s *Context) MarshalJSON() ([]byte, error) {
   823  	type NoMethod Context
   824  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   825  }
   826  
   827  // ContextAttribute: A named attribute associated with an item which can be
   828  // used for influencing the ranking of the item based on the context in the
   829  // request.
   830  type ContextAttribute struct {
   831  	// Name: The name of the attribute. It should not be empty. The maximum length
   832  	// is 32 characters. The name must start with a letter and can only contain
   833  	// letters (A-Z, a-z) or numbers (0-9). The name will be normalized
   834  	// (lower-cased) before being matched.
   835  	Name string `json:"name,omitempty"`
   836  	// Values: Text values of the attribute. The maximum number of elements is 10.
   837  	// The maximum length of an element in the array is 32 characters. The value
   838  	// will be normalized (lower-cased) before being matched.
   839  	Values []string `json:"values,omitempty"`
   840  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
   841  	// include in API requests. By default, fields with empty or default values are
   842  	// omitted from API requests. See
   843  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   844  	// details.
   845  	ForceSendFields []string `json:"-"`
   846  	// NullFields is a list of field names (e.g. "Name") to include in API requests
   847  	// with the JSON null value. By default, fields with empty values are omitted
   848  	// from API requests. See
   849  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   850  	NullFields []string `json:"-"`
   851  }
   852  
   853  func (s *ContextAttribute) MarshalJSON() ([]byte, error) {
   854  	type NoMethod ContextAttribute
   855  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   856  }
   857  
   858  // CustomerIndexStats: Aggregation of items by status code as of the specified
   859  // date.
   860  type CustomerIndexStats struct {
   861  	// Date: The date for which statistics were calculated.
   862  	Date *Date `json:"date,omitempty"`
   863  	// ItemCountByStatus: Number of items aggregrated by status code.
   864  	ItemCountByStatus []*ItemCountByStatus `json:"itemCountByStatus,omitempty"`
   865  	// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
   866  	// include in API requests. By default, fields with empty or default values are
   867  	// omitted from API requests. See
   868  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   869  	// details.
   870  	ForceSendFields []string `json:"-"`
   871  	// NullFields is a list of field names (e.g. "Date") to include in API requests
   872  	// with the JSON null value. By default, fields with empty values are omitted
   873  	// from API requests. See
   874  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   875  	NullFields []string `json:"-"`
   876  }
   877  
   878  func (s *CustomerIndexStats) MarshalJSON() ([]byte, error) {
   879  	type NoMethod CustomerIndexStats
   880  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   881  }
   882  
   883  type CustomerQueryStats struct {
   884  	// Date: The date for which query stats were calculated. Stats calculated on
   885  	// the next day close to midnight are returned.
   886  	Date               *Date                 `json:"date,omitempty"`
   887  	QueryCountByStatus []*QueryCountByStatus `json:"queryCountByStatus,omitempty"`
   888  	// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
   889  	// include in API requests. By default, fields with empty or default values are
   890  	// omitted from API requests. See
   891  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   892  	// details.
   893  	ForceSendFields []string `json:"-"`
   894  	// NullFields is a list of field names (e.g. "Date") to include in API requests
   895  	// with the JSON null value. By default, fields with empty values are omitted
   896  	// from API requests. See
   897  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   898  	NullFields []string `json:"-"`
   899  }
   900  
   901  func (s *CustomerQueryStats) MarshalJSON() ([]byte, error) {
   902  	type NoMethod CustomerQueryStats
   903  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   904  }
   905  
   906  // CustomerSearchApplicationStats: Search application stats for a customer for
   907  // the given date.
   908  type CustomerSearchApplicationStats struct {
   909  	// Count: The count of search applications for the date.
   910  	Count int64 `json:"count,omitempty,string"`
   911  	// Date: The date for which search application stats were calculated.
   912  	Date *Date `json:"date,omitempty"`
   913  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
   914  	// include in API requests. By default, fields with empty or default values are
   915  	// omitted from API requests. See
   916  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   917  	// details.
   918  	ForceSendFields []string `json:"-"`
   919  	// NullFields is a list of field names (e.g. "Count") to include in API
   920  	// requests with the JSON null value. By default, fields with empty values are
   921  	// omitted from API requests. See
   922  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   923  	NullFields []string `json:"-"`
   924  }
   925  
   926  func (s *CustomerSearchApplicationStats) MarshalJSON() ([]byte, error) {
   927  	type NoMethod CustomerSearchApplicationStats
   928  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   929  }
   930  
   931  type CustomerSessionStats struct {
   932  	// Date: The date for which session stats were calculated. Stats are calculated
   933  	// on the following day, close to midnight PST, and then returned.
   934  	Date *Date `json:"date,omitempty"`
   935  	// SearchSessionsCount: The count of search sessions on the day
   936  	SearchSessionsCount int64 `json:"searchSessionsCount,omitempty,string"`
   937  	// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
   938  	// include in API requests. By default, fields with empty or default values are
   939  	// omitted from API requests. See
   940  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   941  	// details.
   942  	ForceSendFields []string `json:"-"`
   943  	// NullFields is a list of field names (e.g. "Date") to include in API requests
   944  	// with the JSON null value. By default, fields with empty values are omitted
   945  	// from API requests. See
   946  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   947  	NullFields []string `json:"-"`
   948  }
   949  
   950  func (s *CustomerSessionStats) MarshalJSON() ([]byte, error) {
   951  	type NoMethod CustomerSessionStats
   952  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   953  }
   954  
   955  // CustomerSettings: Represents settings at a customer level.
   956  type CustomerSettings struct {
   957  	// AuditLoggingSettings: Audit Logging settings for the customer. If
   958  	// update_mask is empty then this field will be updated based on
   959  	// UpdateCustomerSettings request.
   960  	AuditLoggingSettings *AuditLoggingSettings `json:"auditLoggingSettings,omitempty"`
   961  	// VpcSettings: VPC SC settings for the customer. If update_mask is empty then
   962  	// this field will be updated based on UpdateCustomerSettings request.
   963  	VpcSettings *VPCSettings `json:"vpcSettings,omitempty"`
   964  
   965  	// ServerResponse contains the HTTP response code and headers from the server.
   966  	googleapi.ServerResponse `json:"-"`
   967  	// ForceSendFields is a list of field names (e.g. "AuditLoggingSettings") to
   968  	// unconditionally include in API requests. By default, fields with empty or
   969  	// default values are omitted from API requests. See
   970  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
   971  	// details.
   972  	ForceSendFields []string `json:"-"`
   973  	// NullFields is a list of field names (e.g. "AuditLoggingSettings") to include
   974  	// in API requests with the JSON null value. By default, fields with empty
   975  	// values are omitted from API requests. See
   976  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
   977  	NullFields []string `json:"-"`
   978  }
   979  
   980  func (s *CustomerSettings) MarshalJSON() ([]byte, error) {
   981  	type NoMethod CustomerSettings
   982  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
   983  }
   984  
   985  type CustomerUserStats struct {
   986  	// Date: The date for which session stats were calculated. Stats calculated on
   987  	// the next day close to midnight are returned.
   988  	Date *Date `json:"date,omitempty"`
   989  	// OneDayActiveUsersCount: The count of unique active users in the past one day
   990  	OneDayActiveUsersCount int64 `json:"oneDayActiveUsersCount,omitempty,string"`
   991  	// SevenDaysActiveUsersCount: The count of unique active users in the past
   992  	// seven days
   993  	SevenDaysActiveUsersCount int64 `json:"sevenDaysActiveUsersCount,omitempty,string"`
   994  	// ThirtyDaysActiveUsersCount: The count of unique active users in the past
   995  	// thirty days
   996  	ThirtyDaysActiveUsersCount int64 `json:"thirtyDaysActiveUsersCount,omitempty,string"`
   997  	// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
   998  	// include in API requests. By default, fields with empty or default values are
   999  	// omitted from API requests. See
  1000  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1001  	// details.
  1002  	ForceSendFields []string `json:"-"`
  1003  	// NullFields is a list of field names (e.g. "Date") to include in API requests
  1004  	// with the JSON null value. By default, fields with empty values are omitted
  1005  	// from API requests. See
  1006  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1007  	NullFields []string `json:"-"`
  1008  }
  1009  
  1010  func (s *CustomerUserStats) MarshalJSON() ([]byte, error) {
  1011  	type NoMethod CustomerUserStats
  1012  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1013  }
  1014  
  1015  // DataSource: Datasource is a logical namespace for items to be indexed. All
  1016  // items must belong to a datasource. This is the prerequisite before items can
  1017  // be indexed into Cloud Search.
  1018  type DataSource struct {
  1019  	// DisableModifications: If true, sets the datasource to read-only mode. In
  1020  	// read-only mode, the Indexing API rejects any requests to index or delete
  1021  	// items in this source. Enabling read-only mode does not stop the processing
  1022  	// of previously accepted data.
  1023  	DisableModifications bool `json:"disableModifications,omitempty"`
  1024  	// DisableServing: Disable serving any search or assist results.
  1025  	DisableServing bool `json:"disableServing,omitempty"`
  1026  	// DisplayName: Required. Display name of the datasource The maximum length is
  1027  	// 300 characters.
  1028  	DisplayName string `json:"displayName,omitempty"`
  1029  	// IndexingServiceAccounts: List of service accounts that have indexing access.
  1030  	IndexingServiceAccounts []string `json:"indexingServiceAccounts,omitempty"`
  1031  	// ItemsVisibility: This field restricts visibility to items at the datasource
  1032  	// level. Items within the datasource are restricted to the union of users and
  1033  	// groups included in this field. Note that, this does not ensure access to a
  1034  	// specific item, as users need to have ACL permissions on the contained items.
  1035  	// This ensures a high level access on the entire datasource, and that the
  1036  	// individual items are not shared outside this visibility.
  1037  	ItemsVisibility []*GSuitePrincipal `json:"itemsVisibility,omitempty"`
  1038  	// Name: The name of the datasource resource. Format: datasources/{source_id}.
  1039  	// The name is ignored when creating a datasource.
  1040  	Name string `json:"name,omitempty"`
  1041  	// OperationIds: IDs of the Long Running Operations (LROs) currently running
  1042  	// for this schema.
  1043  	OperationIds []string `json:"operationIds,omitempty"`
  1044  	// ReturnThumbnailUrls: Can a user request to get thumbnail URI for Items
  1045  	// indexed in this data source.
  1046  	ReturnThumbnailUrls bool `json:"returnThumbnailUrls,omitempty"`
  1047  	// ShortName: A short name or alias for the source. This value will be used to
  1048  	// match the 'source' operator. For example, if the short name is *<value>*
  1049  	// then queries like *source:<value>* will only return results for this source.
  1050  	// The value must be unique across all datasources. The value must only contain
  1051  	// alphanumeric characters (a-zA-Z0-9). The value cannot start with 'google'
  1052  	// and cannot be one of the following: mail, gmail, docs, drive, groups, sites,
  1053  	// calendar, hangouts, gplus, keep, people, teams. Its maximum length is 32
  1054  	// characters.
  1055  	ShortName string `json:"shortName,omitempty"`
  1056  
  1057  	// ServerResponse contains the HTTP response code and headers from the server.
  1058  	googleapi.ServerResponse `json:"-"`
  1059  	// ForceSendFields is a list of field names (e.g. "DisableModifications") to
  1060  	// unconditionally include in API requests. By default, fields with empty or
  1061  	// default values are omitted from API requests. See
  1062  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1063  	// details.
  1064  	ForceSendFields []string `json:"-"`
  1065  	// NullFields is a list of field names (e.g. "DisableModifications") to include
  1066  	// in API requests with the JSON null value. By default, fields with empty
  1067  	// values are omitted from API requests. See
  1068  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1069  	NullFields []string `json:"-"`
  1070  }
  1071  
  1072  func (s *DataSource) MarshalJSON() ([]byte, error) {
  1073  	type NoMethod DataSource
  1074  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1075  }
  1076  
  1077  // DataSourceIndexStats: Aggregation of items by status code as of the
  1078  // specified date.
  1079  type DataSourceIndexStats struct {
  1080  	// Date: The date for which index stats were calculated. If the date of request
  1081  	// is not the current date then stats calculated on the next day are returned.
  1082  	// Stats are calculated close to mid night in this case. If date of request is
  1083  	// current date, then real time stats are returned.
  1084  	Date *Date `json:"date,omitempty"`
  1085  	// ItemCountByStatus: Number of items aggregrated by status code.
  1086  	ItemCountByStatus []*ItemCountByStatus `json:"itemCountByStatus,omitempty"`
  1087  	// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
  1088  	// include in API requests. By default, fields with empty or default values are
  1089  	// omitted from API requests. See
  1090  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1091  	// details.
  1092  	ForceSendFields []string `json:"-"`
  1093  	// NullFields is a list of field names (e.g. "Date") to include in API requests
  1094  	// with the JSON null value. By default, fields with empty values are omitted
  1095  	// from API requests. See
  1096  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1097  	NullFields []string `json:"-"`
  1098  }
  1099  
  1100  func (s *DataSourceIndexStats) MarshalJSON() ([]byte, error) {
  1101  	type NoMethod DataSourceIndexStats
  1102  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1103  }
  1104  
  1105  // DataSourceRestriction: Restriction on Datasource.
  1106  type DataSourceRestriction struct {
  1107  	// FilterOptions: Filter options restricting the results. If multiple filters
  1108  	// are present, they are grouped by object type before joining. Filters with
  1109  	// the same object type are joined conjunctively, then the resulting
  1110  	// expressions are joined disjunctively. The maximum number of elements is 20.
  1111  	// NOTE: Suggest API supports only few filters at the moment: "objecttype",
  1112  	// "type" and "mimetype". For now, schema specific filters cannot be used to
  1113  	// filter suggestions.
  1114  	FilterOptions []*FilterOptions `json:"filterOptions,omitempty"`
  1115  	// Source: The source of restriction.
  1116  	Source *Source `json:"source,omitempty"`
  1117  	// ForceSendFields is a list of field names (e.g. "FilterOptions") to
  1118  	// unconditionally include in API requests. By default, fields with empty or
  1119  	// default values are omitted from API requests. See
  1120  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1121  	// details.
  1122  	ForceSendFields []string `json:"-"`
  1123  	// NullFields is a list of field names (e.g. "FilterOptions") to include in API
  1124  	// requests with the JSON null value. By default, fields with empty values are
  1125  	// omitted from API requests. See
  1126  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1127  	NullFields []string `json:"-"`
  1128  }
  1129  
  1130  func (s *DataSourceRestriction) MarshalJSON() ([]byte, error) {
  1131  	type NoMethod DataSourceRestriction
  1132  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1133  }
  1134  
  1135  // Date: Represents a whole calendar date, for example a date of birth. The
  1136  // time of day and time zone are either specified elsewhere or are not
  1137  // significant. The date is relative to the Proleptic Gregorian Calendar
  1138  // (https://en.wikipedia.org/wiki/Proleptic_Gregorian_calendar). The date must
  1139  // be a valid calendar date between the year 1 and 9999.
  1140  type Date struct {
  1141  	// Day: Day of month. Must be from 1 to 31 and valid for the year and month.
  1142  	Day int64 `json:"day,omitempty"`
  1143  	// Month: Month of date. Must be from 1 to 12.
  1144  	Month int64 `json:"month,omitempty"`
  1145  	// Year: Year of date. Must be from 1 to 9999.
  1146  	Year int64 `json:"year,omitempty"`
  1147  	// ForceSendFields is a list of field names (e.g. "Day") to unconditionally
  1148  	// include in API requests. By default, fields with empty or default values are
  1149  	// omitted from API requests. See
  1150  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1151  	// details.
  1152  	ForceSendFields []string `json:"-"`
  1153  	// NullFields is a list of field names (e.g. "Day") to include in API requests
  1154  	// with the JSON null value. By default, fields with empty values are omitted
  1155  	// from API requests. See
  1156  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1157  	NullFields []string `json:"-"`
  1158  }
  1159  
  1160  func (s *Date) MarshalJSON() ([]byte, error) {
  1161  	type NoMethod Date
  1162  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1163  }
  1164  
  1165  // DateOperatorOptions: Optional. Provides a search operator for date
  1166  // properties. Search operators let users restrict the query to specific fields
  1167  // relevant to the type of item being searched.
  1168  type DateOperatorOptions struct {
  1169  	// GreaterThanOperatorName: Indicates the operator name required in the query
  1170  	// in order to isolate the date property using the greater-than operator. For
  1171  	// example, if greaterThanOperatorName is *closedafter* and the property's name
  1172  	// is *closeDate*, then queries like *closedafter:<value>* show results only
  1173  	// where the value of the property named *closeDate* is later than *<value>*.
  1174  	// The operator name can only contain lowercase letters (a-z). The maximum
  1175  	// length is 32 characters.
  1176  	GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"`
  1177  	// LessThanOperatorName: Indicates the operator name required in the query in
  1178  	// order to isolate the date property using the less-than operator. For
  1179  	// example, if lessThanOperatorName is *closedbefore* and the property's name
  1180  	// is *closeDate*, then queries like *closedbefore:<value>* show results only
  1181  	// where the value of the property named *closeDate* is earlier than *<value>*.
  1182  	// The operator name can only contain lowercase letters (a-z). The maximum
  1183  	// length is 32 characters.
  1184  	LessThanOperatorName string `json:"lessThanOperatorName,omitempty"`
  1185  	// OperatorName: Indicates the actual string required in the query in order to
  1186  	// isolate the date property. For example, suppose an issue tracking schema
  1187  	// object has a property named *closeDate* that specifies an operator with an
  1188  	// operatorName of *closedon*. For searches on that data, queries like
  1189  	// *closedon:<value>* show results only where the value of the *closeDate*
  1190  	// property matches *<value>*. By contrast, a search that uses the same
  1191  	// *<value>* without an operator returns all items where *<value>* matches the
  1192  	// value of any String properties or text within the content field for the
  1193  	// indexed datasource. The operator name can only contain lowercase letters
  1194  	// (a-z). The maximum length is 32 characters.
  1195  	OperatorName string `json:"operatorName,omitempty"`
  1196  	// ForceSendFields is a list of field names (e.g. "GreaterThanOperatorName") to
  1197  	// unconditionally include in API requests. By default, fields with empty or
  1198  	// default values are omitted from API requests. See
  1199  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1200  	// details.
  1201  	ForceSendFields []string `json:"-"`
  1202  	// NullFields is a list of field names (e.g. "GreaterThanOperatorName") to
  1203  	// include in API requests with the JSON null value. By default, fields with
  1204  	// empty values are omitted from API requests. See
  1205  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1206  	NullFields []string `json:"-"`
  1207  }
  1208  
  1209  func (s *DateOperatorOptions) MarshalJSON() ([]byte, error) {
  1210  	type NoMethod DateOperatorOptions
  1211  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1212  }
  1213  
  1214  // DatePropertyOptions: The options for date properties.
  1215  type DatePropertyOptions struct {
  1216  	// OperatorOptions: If set, describes how the date should be used as a search
  1217  	// operator.
  1218  	OperatorOptions *DateOperatorOptions `json:"operatorOptions,omitempty"`
  1219  	// ForceSendFields is a list of field names (e.g. "OperatorOptions") to
  1220  	// unconditionally include in API requests. By default, fields with empty or
  1221  	// default values are omitted from API requests. See
  1222  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1223  	// details.
  1224  	ForceSendFields []string `json:"-"`
  1225  	// NullFields is a list of field names (e.g. "OperatorOptions") to include in
  1226  	// API requests with the JSON null value. By default, fields with empty values
  1227  	// are omitted from API requests. See
  1228  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1229  	NullFields []string `json:"-"`
  1230  }
  1231  
  1232  func (s *DatePropertyOptions) MarshalJSON() ([]byte, error) {
  1233  	type NoMethod DatePropertyOptions
  1234  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1235  }
  1236  
  1237  // DateValues: List of date values.
  1238  type DateValues struct {
  1239  	Values []*Date `json:"values,omitempty"`
  1240  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  1241  	// include in API requests. By default, fields with empty or default values are
  1242  	// 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. "Values") 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 *DateValues) MarshalJSON() ([]byte, error) {
  1254  	type NoMethod DateValues
  1255  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1256  }
  1257  
  1258  // DebugOptions: Shared request debug options for all cloudsearch RPC methods.
  1259  type DebugOptions struct {
  1260  	// EnableDebugging: If you are asked by Google to help with debugging, set this
  1261  	// field. Otherwise, ignore this field.
  1262  	EnableDebugging bool `json:"enableDebugging,omitempty"`
  1263  	// ForceSendFields is a list of field names (e.g. "EnableDebugging") to
  1264  	// unconditionally include in API requests. By default, fields with empty or
  1265  	// default values are omitted from API requests. See
  1266  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1267  	// details.
  1268  	ForceSendFields []string `json:"-"`
  1269  	// NullFields is a list of field names (e.g. "EnableDebugging") to include in
  1270  	// API requests with the JSON null value. By default, fields with empty values
  1271  	// are omitted from API requests. See
  1272  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1273  	NullFields []string `json:"-"`
  1274  }
  1275  
  1276  func (s *DebugOptions) MarshalJSON() ([]byte, error) {
  1277  	type NoMethod DebugOptions
  1278  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1279  }
  1280  
  1281  type DeleteQueueItemsRequest struct {
  1282  	// ConnectorName: The name of connector making this call. Format:
  1283  	// datasources/{source_id}/connectors/{ID}
  1284  	ConnectorName string `json:"connectorName,omitempty"`
  1285  	// DebugOptions: Common debug options.
  1286  	DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
  1287  	// Queue: The name of a queue to delete items from.
  1288  	Queue string `json:"queue,omitempty"`
  1289  	// ForceSendFields is a list of field names (e.g. "ConnectorName") to
  1290  	// unconditionally include in API requests. By default, fields with empty or
  1291  	// default values are omitted from API requests. See
  1292  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1293  	// details.
  1294  	ForceSendFields []string `json:"-"`
  1295  	// NullFields is a list of field names (e.g. "ConnectorName") to include in API
  1296  	// requests with the JSON null value. By default, fields with empty values are
  1297  	// omitted from API requests. See
  1298  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1299  	NullFields []string `json:"-"`
  1300  }
  1301  
  1302  func (s *DeleteQueueItemsRequest) MarshalJSON() ([]byte, error) {
  1303  	type NoMethod DeleteQueueItemsRequest
  1304  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1305  }
  1306  
  1307  // DisplayedProperty: A reference to a top-level property within the object
  1308  // that should be displayed in search results. The values of the chosen
  1309  // properties is displayed in the search results along with the display label
  1310  // for that property if one is specified. If a display label is not specified,
  1311  // only the values is shown.
  1312  type DisplayedProperty struct {
  1313  	// PropertyName: The name of the top-level property as defined in a property
  1314  	// definition for the object. If the name is not a defined property in the
  1315  	// schema, an error is given when attempting to update the schema.
  1316  	PropertyName string `json:"propertyName,omitempty"`
  1317  	// ForceSendFields is a list of field names (e.g. "PropertyName") to
  1318  	// unconditionally include in API requests. By default, fields with empty or
  1319  	// default values are omitted from API requests. See
  1320  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1321  	// details.
  1322  	ForceSendFields []string `json:"-"`
  1323  	// NullFields is a list of field names (e.g. "PropertyName") to include in API
  1324  	// requests with the JSON null value. By default, fields with empty values are
  1325  	// omitted from API requests. See
  1326  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1327  	NullFields []string `json:"-"`
  1328  }
  1329  
  1330  func (s *DisplayedProperty) MarshalJSON() ([]byte, error) {
  1331  	type NoMethod DisplayedProperty
  1332  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1333  }
  1334  
  1335  // DoubleOperatorOptions: Used to provide a search operator for double
  1336  // properties. This is optional. Search operators let users restrict the query
  1337  // to specific fields relevant to the type of item being searched.
  1338  type DoubleOperatorOptions struct {
  1339  	// OperatorName: Indicates the operator name required in the query in order to
  1340  	// use the double property in sorting or as a facet. The operator name can only
  1341  	// contain lowercase letters (a-z). The maximum length is 32 characters.
  1342  	OperatorName string `json:"operatorName,omitempty"`
  1343  	// ForceSendFields is a list of field names (e.g. "OperatorName") to
  1344  	// unconditionally include in API requests. By default, fields with empty or
  1345  	// default values are omitted from API requests. See
  1346  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1347  	// details.
  1348  	ForceSendFields []string `json:"-"`
  1349  	// NullFields is a list of field names (e.g. "OperatorName") to include in API
  1350  	// requests with the JSON null value. By default, fields with empty values are
  1351  	// omitted from API requests. See
  1352  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1353  	NullFields []string `json:"-"`
  1354  }
  1355  
  1356  func (s *DoubleOperatorOptions) MarshalJSON() ([]byte, error) {
  1357  	type NoMethod DoubleOperatorOptions
  1358  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1359  }
  1360  
  1361  // DoublePropertyOptions: The options for double properties.
  1362  type DoublePropertyOptions struct {
  1363  	// OperatorOptions: If set, describes how the double should be used as a search
  1364  	// operator.
  1365  	OperatorOptions *DoubleOperatorOptions `json:"operatorOptions,omitempty"`
  1366  	// ForceSendFields is a list of field names (e.g. "OperatorOptions") to
  1367  	// unconditionally include in API requests. By default, fields with empty or
  1368  	// default values are omitted from API requests. See
  1369  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1370  	// details.
  1371  	ForceSendFields []string `json:"-"`
  1372  	// NullFields is a list of field names (e.g. "OperatorOptions") to include in
  1373  	// API requests with the JSON null value. By default, fields with empty values
  1374  	// are omitted from API requests. See
  1375  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1376  	NullFields []string `json:"-"`
  1377  }
  1378  
  1379  func (s *DoublePropertyOptions) MarshalJSON() ([]byte, error) {
  1380  	type NoMethod DoublePropertyOptions
  1381  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1382  }
  1383  
  1384  // DoubleValues: List of double values.
  1385  type DoubleValues struct {
  1386  	Values []float64 `json:"values,omitempty"`
  1387  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  1388  	// include in API requests. By default, fields with empty or default values are
  1389  	// omitted from API requests. See
  1390  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1391  	// details.
  1392  	ForceSendFields []string `json:"-"`
  1393  	// NullFields is a list of field names (e.g. "Values") to include in API
  1394  	// requests with the JSON null value. By default, fields with empty values are
  1395  	// omitted from API requests. See
  1396  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1397  	NullFields []string `json:"-"`
  1398  }
  1399  
  1400  func (s *DoubleValues) MarshalJSON() ([]byte, error) {
  1401  	type NoMethod DoubleValues
  1402  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1403  }
  1404  
  1405  func (s *DoubleValues) UnmarshalJSON(data []byte) error {
  1406  	type NoMethod DoubleValues
  1407  	var s1 struct {
  1408  		Values []gensupport.JSONFloat64 `json:"values"`
  1409  		*NoMethod
  1410  	}
  1411  	s1.NoMethod = (*NoMethod)(s)
  1412  	if err := json.Unmarshal(data, &s1); err != nil {
  1413  		return err
  1414  	}
  1415  	s.Values = make([]float64, len(s1.Values))
  1416  	for i := range s1.Values {
  1417  		s.Values[i] = float64(s1.Values[i])
  1418  	}
  1419  	return nil
  1420  }
  1421  
  1422  // DriveFollowUpRestrict: Drive follow-up search restricts (e.g.
  1423  // "followup:suggestions").
  1424  type DriveFollowUpRestrict struct {
  1425  	// Possible values:
  1426  	//   "UNSPECIFIED"
  1427  	//   "FOLLOWUP_SUGGESTIONS"
  1428  	//   "FOLLOWUP_ACTION_ITEMS"
  1429  	Type string `json:"type,omitempty"`
  1430  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  1431  	// include in API requests. By default, fields with empty or default values are
  1432  	// omitted from API requests. See
  1433  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1434  	// details.
  1435  	ForceSendFields []string `json:"-"`
  1436  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  1437  	// with the JSON null value. By default, fields with empty values are omitted
  1438  	// from API requests. See
  1439  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1440  	NullFields []string `json:"-"`
  1441  }
  1442  
  1443  func (s *DriveFollowUpRestrict) MarshalJSON() ([]byte, error) {
  1444  	type NoMethod DriveFollowUpRestrict
  1445  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1446  }
  1447  
  1448  // DriveLocationRestrict: Drive location search restricts (e.g. "is:starred").
  1449  type DriveLocationRestrict struct {
  1450  	// Possible values:
  1451  	//   "UNSPECIFIED"
  1452  	//   "TRASHED"
  1453  	//   "STARRED"
  1454  	Type string `json:"type,omitempty"`
  1455  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  1456  	// include in API requests. By default, fields with empty or default values are
  1457  	// omitted from API requests. See
  1458  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1459  	// details.
  1460  	ForceSendFields []string `json:"-"`
  1461  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  1462  	// with the JSON null value. By default, fields with empty values are omitted
  1463  	// from API requests. See
  1464  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1465  	NullFields []string `json:"-"`
  1466  }
  1467  
  1468  func (s *DriveLocationRestrict) MarshalJSON() ([]byte, error) {
  1469  	type NoMethod DriveLocationRestrict
  1470  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1471  }
  1472  
  1473  // DriveMimeTypeRestrict: Drive mime-type search restricts (e.g. "type:pdf").
  1474  type DriveMimeTypeRestrict struct {
  1475  	// Possible values:
  1476  	//   "UNSPECIFIED"
  1477  	//   "PDF"
  1478  	//   "DOCUMENT"
  1479  	//   "PRESENTATION"
  1480  	//   "SPREADSHEET"
  1481  	//   "FORM"
  1482  	//   "DRAWING"
  1483  	//   "SCRIPT"
  1484  	//   "MAP"
  1485  	//   "IMAGE"
  1486  	//   "AUDIO"
  1487  	//   "VIDEO"
  1488  	//   "FOLDER"
  1489  	//   "ARCHIVE"
  1490  	//   "SITE"
  1491  	Type string `json:"type,omitempty"`
  1492  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  1493  	// include in API requests. By default, fields with empty or default values are
  1494  	// omitted from API requests. See
  1495  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1496  	// details.
  1497  	ForceSendFields []string `json:"-"`
  1498  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  1499  	// with the JSON null value. By default, fields with empty values are omitted
  1500  	// from API requests. See
  1501  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1502  	NullFields []string `json:"-"`
  1503  }
  1504  
  1505  func (s *DriveMimeTypeRestrict) MarshalJSON() ([]byte, error) {
  1506  	type NoMethod DriveMimeTypeRestrict
  1507  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1508  }
  1509  
  1510  // DriveTimeSpanRestrict: The time span search restrict (e.g. "after:2017-09-11
  1511  // before:2017-09-12").
  1512  type DriveTimeSpanRestrict struct {
  1513  	// Possible values:
  1514  	//   "UNSPECIFIED"
  1515  	//   "TODAY"
  1516  	//   "YESTERDAY"
  1517  	//   "LAST_7_DAYS"
  1518  	//   "LAST_30_DAYS" - Not Enabled
  1519  	//   "LAST_90_DAYS" - Not Enabled
  1520  	Type string `json:"type,omitempty"`
  1521  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  1522  	// include in API requests. By default, fields with empty or default values are
  1523  	// omitted from API requests. See
  1524  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1525  	// details.
  1526  	ForceSendFields []string `json:"-"`
  1527  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  1528  	// with the JSON null value. By default, fields with empty values are omitted
  1529  	// from API requests. See
  1530  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1531  	NullFields []string `json:"-"`
  1532  }
  1533  
  1534  func (s *DriveTimeSpanRestrict) MarshalJSON() ([]byte, error) {
  1535  	type NoMethod DriveTimeSpanRestrict
  1536  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1537  }
  1538  
  1539  // EmailAddress: A person's email address.
  1540  type EmailAddress struct {
  1541  	// CustomType: If the value of type is custom, this property contains the
  1542  	// custom type string.
  1543  	CustomType string `json:"customType,omitempty"`
  1544  	// EmailAddress: The email address.
  1545  	EmailAddress string `json:"emailAddress,omitempty"`
  1546  	// EmailUrl: The URL to send email.
  1547  	EmailUrl string `json:"emailUrl,omitempty"`
  1548  	// Primary: Indicates if this is the user's primary email. Only one entry can
  1549  	// be marked as primary.
  1550  	Primary bool `json:"primary,omitempty"`
  1551  	// Type: The type of the email account. Acceptable values are: "custom",
  1552  	// "home", "other", "work".
  1553  	Type string `json:"type,omitempty"`
  1554  	// ForceSendFields is a list of field names (e.g. "CustomType") to
  1555  	// unconditionally include in API requests. By default, fields with empty or
  1556  	// default values are omitted from API requests. See
  1557  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1558  	// details.
  1559  	ForceSendFields []string `json:"-"`
  1560  	// NullFields is a list of field names (e.g. "CustomType") to include in API
  1561  	// requests with the JSON null value. By default, fields with empty values are
  1562  	// omitted from API requests. See
  1563  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1564  	NullFields []string `json:"-"`
  1565  }
  1566  
  1567  func (s *EmailAddress) MarshalJSON() ([]byte, error) {
  1568  	type NoMethod EmailAddress
  1569  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1570  }
  1571  
  1572  type EnterpriseTopazFrontendTeamsLink struct {
  1573  	// Type: The identifying link type
  1574  	Type string        `json:"type,omitempty"`
  1575  	Url  *SafeUrlProto `json:"url,omitempty"`
  1576  	// ForceSendFields is a list of field names (e.g. "Type") to unconditionally
  1577  	// include in API requests. By default, fields with empty or default values are
  1578  	// omitted from API requests. See
  1579  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1580  	// details.
  1581  	ForceSendFields []string `json:"-"`
  1582  	// NullFields is a list of field names (e.g. "Type") to include in API requests
  1583  	// with the JSON null value. By default, fields with empty values are omitted
  1584  	// from API requests. See
  1585  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1586  	NullFields []string `json:"-"`
  1587  }
  1588  
  1589  func (s *EnterpriseTopazFrontendTeamsLink) MarshalJSON() ([]byte, error) {
  1590  	type NoMethod EnterpriseTopazFrontendTeamsLink
  1591  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1592  }
  1593  
  1594  type EnterpriseTopazFrontendTeamsPersonCorePhoneNumber struct {
  1595  	// PhoneNumber: Phone number in no particular format (as comes from the Focus
  1596  	// profile).
  1597  	PhoneNumber string `json:"phoneNumber,omitempty"`
  1598  	// PhoneUrl: Phone number URL
  1599  	PhoneUrl *SafeUrlProto `json:"phoneUrl,omitempty"`
  1600  	// Possible values:
  1601  	//   "UNKNOWN"
  1602  	//   "MOBILE"
  1603  	//   "OFFICE"
  1604  	//   "OTHER"
  1605  	Type string `json:"type,omitempty"`
  1606  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
  1607  	// unconditionally include in API requests. By default, fields with empty or
  1608  	// default values are omitted from API requests. See
  1609  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1610  	// details.
  1611  	ForceSendFields []string `json:"-"`
  1612  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
  1613  	// requests with the JSON null value. By default, fields with empty values are
  1614  	// omitted from API requests. See
  1615  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1616  	NullFields []string `json:"-"`
  1617  }
  1618  
  1619  func (s *EnterpriseTopazFrontendTeamsPersonCorePhoneNumber) MarshalJSON() ([]byte, error) {
  1620  	type NoMethod EnterpriseTopazFrontendTeamsPersonCorePhoneNumber
  1621  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1622  }
  1623  
  1624  // EnterpriseTopazSidekickAgendaEntry: An AgendaEntry, e.g., a Calendar Event.
  1625  type EnterpriseTopazSidekickAgendaEntry struct {
  1626  	// AgendaItemUrl: URL of the agenda item.
  1627  	AgendaItemUrl string `json:"agendaItemUrl,omitempty"`
  1628  	// Chronology: The chronology from the present.
  1629  	//
  1630  	// Possible values:
  1631  	//   "STALE" - Stale.
  1632  	//   "ALL_DAY" - All day.
  1633  	//   "PAST" - Past.
  1634  	//   "RECENTLY_PAST" - Recently past.
  1635  	//   "PRESENT" - Present.
  1636  	//   "NEAR_FUTURE" - Near future.
  1637  	//   "FUTURE" - Future.
  1638  	Chronology string `json:"chronology,omitempty"`
  1639  	// Creator: Person who created the event.
  1640  	Creator *EnterpriseTopazSidekickPerson `json:"creator,omitempty"`
  1641  	// CurrentUserAttendingStatus: Attendance status for the current user making
  1642  	// the request. This is a convenience data member in order to avoid figuring
  1643  	// out the same by iterating the invitee list above on the caller side.
  1644  	//
  1645  	// Possible values:
  1646  	//   "AWAITING" - Awaiting for the user to set the status.
  1647  	//   "YES" - Attending.
  1648  	//   "NO" - Not attending.
  1649  	//   "MAYBE" - Tentatively attending.
  1650  	CurrentUserAttendingStatus string `json:"currentUserAttendingStatus,omitempty"`
  1651  	// Description: Description of the agenda item (i.e., typically, summary in
  1652  	// calendar event).
  1653  	Description string `json:"description,omitempty"`
  1654  	// Document: Items related to the current AgendaEntry. E.g., related
  1655  	// drive/mail/groups documents.
  1656  	Document []*EnterpriseTopazSidekickCommonDocument `json:"document,omitempty"`
  1657  	// EndDate: End date "Friday, August 26" in the user's timezone.
  1658  	EndDate string `json:"endDate,omitempty"`
  1659  	// EndTime: End time (HH:mm) in the user's timezone.
  1660  	EndTime string `json:"endTime,omitempty"`
  1661  	// EndTimeMs: End time in milliseconds
  1662  	EndTimeMs int64 `json:"endTimeMs,omitempty,string"`
  1663  	// EventId: Event id provided by Calendar API.
  1664  	EventId string `json:"eventId,omitempty"`
  1665  	// GuestsCanInviteOthers: Whether the guests can invite other guests.
  1666  	GuestsCanInviteOthers bool `json:"guestsCanInviteOthers,omitempty"`
  1667  	// GuestsCanModify: Whether the guests can modify the event.
  1668  	GuestsCanModify bool `json:"guestsCanModify,omitempty"`
  1669  	// GuestsCanSeeGuests: Whether the guests of the event can be seen. If false,
  1670  	// the user is going to be reported as the only attendee to the meeting, even
  1671  	// though there may be more attendees.
  1672  	GuestsCanSeeGuests bool `json:"guestsCanSeeGuests,omitempty"`
  1673  	// HangoutId: Hangout meeting identifier.
  1674  	HangoutId string `json:"hangoutId,omitempty"`
  1675  	// HangoutUrl: Absolute URL for the Hangout meeting.
  1676  	HangoutUrl string `json:"hangoutUrl,omitempty"`
  1677  	// Invitee: People attending the meeting.
  1678  	Invitee []*EnterpriseTopazSidekickPerson `json:"invitee,omitempty"`
  1679  	// IsAllDay: Whether the entry lasts all day.
  1680  	IsAllDay bool `json:"isAllDay,omitempty"`
  1681  	// LastModificationTimeMs: Last time the event was modified.
  1682  	LastModificationTimeMs int64 `json:"lastModificationTimeMs,omitempty,string"`
  1683  	// Location: Agenda item location.
  1684  	Location string `json:"location,omitempty"`
  1685  	// NotifyToUser: Whether this should be notified to the user.
  1686  	NotifyToUser bool `json:"notifyToUser,omitempty"`
  1687  	// OtherAttendeesExcluded: Whether guest list is not returned because number of
  1688  	// attendees is too large.
  1689  	OtherAttendeesExcluded bool `json:"otherAttendeesExcluded,omitempty"`
  1690  	// RequesterIsOwner: Whether the requester is the owner of the agenda entry.
  1691  	RequesterIsOwner bool `json:"requesterIsOwner,omitempty"`
  1692  	// ShowFullEventDetailsToUse: Whether the details of this entry should be
  1693  	// displayed to the user.
  1694  	ShowFullEventDetailsToUse bool `json:"showFullEventDetailsToUse,omitempty"`
  1695  	// StartDate: Start date "Friday, August 26" in the user's timezone.
  1696  	StartDate string `json:"startDate,omitempty"`
  1697  	// StartTime: Start time (HH:mm) in the user's timezone.
  1698  	StartTime string `json:"startTime,omitempty"`
  1699  	// StartTimeMs: Start time in milliseconds.
  1700  	StartTimeMs int64 `json:"startTimeMs,omitempty,string"`
  1701  	// TimeZone: User's calendar timezone;
  1702  	TimeZone string `json:"timeZone,omitempty"`
  1703  	// Title: Title of the agenda item.
  1704  	Title string `json:"title,omitempty"`
  1705  	// ForceSendFields is a list of field names (e.g. "AgendaItemUrl") to
  1706  	// unconditionally include in API requests. By default, fields with empty or
  1707  	// default values are omitted from API requests. See
  1708  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1709  	// details.
  1710  	ForceSendFields []string `json:"-"`
  1711  	// NullFields is a list of field names (e.g. "AgendaItemUrl") to include in API
  1712  	// requests with the JSON null value. By default, fields with empty values are
  1713  	// omitted from API requests. See
  1714  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1715  	NullFields []string `json:"-"`
  1716  }
  1717  
  1718  func (s *EnterpriseTopazSidekickAgendaEntry) MarshalJSON() ([]byte, error) {
  1719  	type NoMethod EnterpriseTopazSidekickAgendaEntry
  1720  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1721  }
  1722  
  1723  type EnterpriseTopazSidekickAgendaGroupCardProto struct {
  1724  	AgendaItem        []*EnterpriseTopazSidekickAgendaItem                `json:"agendaItem,omitempty"`
  1725  	Context           *EnterpriseTopazSidekickAgendaGroupCardProtoContext `json:"context,omitempty"`
  1726  	CurrentAgendaItem *EnterpriseTopazSidekickAgendaItem                  `json:"currentAgendaItem,omitempty"`
  1727  	// ForceSendFields is a list of field names (e.g. "AgendaItem") to
  1728  	// unconditionally include in API requests. By default, fields with empty or
  1729  	// default values are omitted from API requests. See
  1730  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1731  	// details.
  1732  	ForceSendFields []string `json:"-"`
  1733  	// NullFields is a list of field names (e.g. "AgendaItem") to include in API
  1734  	// requests with the JSON null value. By default, fields with empty values are
  1735  	// omitted from API requests. See
  1736  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1737  	NullFields []string `json:"-"`
  1738  }
  1739  
  1740  func (s *EnterpriseTopazSidekickAgendaGroupCardProto) MarshalJSON() ([]byte, error) {
  1741  	type NoMethod EnterpriseTopazSidekickAgendaGroupCardProto
  1742  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1743  }
  1744  
  1745  // EnterpriseTopazSidekickAgendaGroupCardProtoContext: The context that
  1746  // resulted in the generation of the card.
  1747  type EnterpriseTopazSidekickAgendaGroupCardProtoContext struct {
  1748  	// Context: User friendly free text that describes the context of the card
  1749  	// (e.g. "Next meeting with Bob"). This is largely only applicable when the
  1750  	// card is generated from a query.
  1751  	Context string `json:"context,omitempty"`
  1752  	// Date: Localized free text that describes the dates represented by the card.
  1753  	// Currently, the card will only represent a single day.
  1754  	Date string `json:"date,omitempty"`
  1755  	// EventsRestrict: Represents restrictions applied to the events requested in
  1756  	// the user's query.
  1757  	//
  1758  	// Possible values:
  1759  	//   "NONE" - No specific event was requested.
  1760  	//   "NEXT_MEETING" - The next meeting was requested.
  1761  	EventsRestrict string `json:"eventsRestrict,omitempty"`
  1762  	// ForceSendFields is a list of field names (e.g. "Context") to unconditionally
  1763  	// include in API requests. By default, fields with empty or default values are
  1764  	// omitted from API requests. See
  1765  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1766  	// details.
  1767  	ForceSendFields []string `json:"-"`
  1768  	// NullFields is a list of field names (e.g. "Context") to include in API
  1769  	// requests with the JSON null value. By default, fields with empty values are
  1770  	// omitted from API requests. See
  1771  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1772  	NullFields []string `json:"-"`
  1773  }
  1774  
  1775  func (s *EnterpriseTopazSidekickAgendaGroupCardProtoContext) MarshalJSON() ([]byte, error) {
  1776  	type NoMethod EnterpriseTopazSidekickAgendaGroupCardProtoContext
  1777  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1778  }
  1779  
  1780  type EnterpriseTopazSidekickAgendaItem struct {
  1781  	ConflictedGroup *EnterpriseTopazSidekickConflictingEventsCardProto `json:"conflictedGroup,omitempty"`
  1782  	GapBefore       *EnterpriseTopazSidekickGap                        `json:"gapBefore,omitempty"`
  1783  	Meeting         *EnterpriseTopazSidekickAgendaEntry                `json:"meeting,omitempty"`
  1784  	// ForceSendFields is a list of field names (e.g. "ConflictedGroup") to
  1785  	// unconditionally include in API requests. By default, fields with empty or
  1786  	// default values are omitted from API requests. See
  1787  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1788  	// details.
  1789  	ForceSendFields []string `json:"-"`
  1790  	// NullFields is a list of field names (e.g. "ConflictedGroup") to include in
  1791  	// API requests with the JSON null value. By default, fields with empty values
  1792  	// are omitted from API requests. See
  1793  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1794  	NullFields []string `json:"-"`
  1795  }
  1796  
  1797  func (s *EnterpriseTopazSidekickAgendaItem) MarshalJSON() ([]byte, error) {
  1798  	type NoMethod EnterpriseTopazSidekickAgendaItem
  1799  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1800  }
  1801  
  1802  // EnterpriseTopazSidekickAnswerAnswerList: A list of answers represented as
  1803  // free text.
  1804  type EnterpriseTopazSidekickAnswerAnswerList struct {
  1805  	// LabeledAnswer: Answers that have a corresponding label.
  1806  	LabeledAnswer []*EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer `json:"labeledAnswer,omitempty"`
  1807  	// Type: Answer type.
  1808  	//
  1809  	// Possible values:
  1810  	//   "UNKNOWN"
  1811  	//   "PERSON_ADDRESS"
  1812  	//   "PERSON_BIRTHDAY"
  1813  	//   "PERSON_DEPARTMENT"
  1814  	//   "PERSON_DESK_LOCATION"
  1815  	//   "PERSON_EMAIL"
  1816  	//   "PERSON_JOB_TITLE"
  1817  	//   "PERSON_PHONE"
  1818  	Type string `json:"type,omitempty"`
  1819  	// ForceSendFields is a list of field names (e.g. "LabeledAnswer") to
  1820  	// unconditionally include in API requests. By default, fields with empty or
  1821  	// default values are omitted from API requests. See
  1822  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1823  	// details.
  1824  	ForceSendFields []string `json:"-"`
  1825  	// NullFields is a list of field names (e.g. "LabeledAnswer") to include in API
  1826  	// requests with the JSON null value. By default, fields with empty values are
  1827  	// omitted from API requests. See
  1828  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1829  	NullFields []string `json:"-"`
  1830  }
  1831  
  1832  func (s *EnterpriseTopazSidekickAnswerAnswerList) MarshalJSON() ([]byte, error) {
  1833  	type NoMethod EnterpriseTopazSidekickAnswerAnswerList
  1834  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1835  }
  1836  
  1837  // EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer: An answer with a
  1838  // corresponding label.
  1839  type EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer struct {
  1840  	// Answer: The free text answer.
  1841  	Answer string `json:"answer,omitempty"`
  1842  	// Label: A localized label for the answer (e.g. "Cell phone" vs "Desk phone").
  1843  	Label string `json:"label,omitempty"`
  1844  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
  1845  	// include in API requests. By default, fields with empty or default values are
  1846  	// omitted from API requests. See
  1847  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1848  	// details.
  1849  	ForceSendFields []string `json:"-"`
  1850  	// NullFields is a list of field names (e.g. "Answer") to include in API
  1851  	// requests with the JSON null value. By default, fields with empty values are
  1852  	// omitted from API requests. See
  1853  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1854  	NullFields []string `json:"-"`
  1855  }
  1856  
  1857  func (s *EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer) MarshalJSON() ([]byte, error) {
  1858  	type NoMethod EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer
  1859  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1860  }
  1861  
  1862  // EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard: Contains a list of
  1863  // suggested queries. Allows the user to determine what natural language
  1864  // queries they can ask Cloud Search (e.g. "what can I search for?").
  1865  type EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard struct {
  1866  	// SuggestedQueryCategory: A list of queries to suggest.
  1867  	SuggestedQueryCategory []*EnterpriseTopazSidekickAnswerSuggestedQueryCategory `json:"suggestedQueryCategory,omitempty"`
  1868  	// ForceSendFields is a list of field names (e.g. "SuggestedQueryCategory") to
  1869  	// unconditionally include in API requests. By default, fields with empty or
  1870  	// default values are omitted from API requests. See
  1871  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1872  	// details.
  1873  	ForceSendFields []string `json:"-"`
  1874  	// NullFields is a list of field names (e.g. "SuggestedQueryCategory") to
  1875  	// include in API requests with the JSON null value. By default, fields with
  1876  	// empty values are omitted from API requests. See
  1877  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1878  	NullFields []string `json:"-"`
  1879  }
  1880  
  1881  func (s *EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard) MarshalJSON() ([]byte, error) {
  1882  	type NoMethod EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard
  1883  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1884  }
  1885  
  1886  // EnterpriseTopazSidekickAnswerSuggestedQueryCategory: Contains a list of
  1887  // suggested queries for a single category.
  1888  type EnterpriseTopazSidekickAnswerSuggestedQueryCategory struct {
  1889  	// Category: The query list category.
  1890  	//
  1891  	// Possible values:
  1892  	//   "UNKNOWN" - Unknown.
  1893  	//   "CALENDAR" - Calendar based queries (e.g. "my agenda for tomorrow").
  1894  	//   "DOCUMENT" - Document based queries (e.g. "files shared with me").
  1895  	//   "PEOPLE" - People based queries (e.g. "what is x's email address?").
  1896  	Category string `json:"category,omitempty"`
  1897  	// IsEnabled: Whether this category is enabled.
  1898  	IsEnabled bool `json:"isEnabled,omitempty"`
  1899  	// Query: List of suggested queries to show the user.
  1900  	Query []string `json:"query,omitempty"`
  1901  	// ForceSendFields is a list of field names (e.g. "Category") to
  1902  	// unconditionally include in API requests. By default, fields with empty or
  1903  	// default values are omitted from API requests. See
  1904  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  1905  	// details.
  1906  	ForceSendFields []string `json:"-"`
  1907  	// NullFields is a list of field names (e.g. "Category") to include in API
  1908  	// requests with the JSON null value. By default, fields with empty values are
  1909  	// omitted from API requests. See
  1910  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  1911  	NullFields []string `json:"-"`
  1912  }
  1913  
  1914  func (s *EnterpriseTopazSidekickAnswerSuggestedQueryCategory) MarshalJSON() ([]byte, error) {
  1915  	type NoMethod EnterpriseTopazSidekickAnswerSuggestedQueryCategory
  1916  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  1917  }
  1918  
  1919  // EnterpriseTopazSidekickAssistCardProto: Wrapper proto for the Assist cards.
  1920  type EnterpriseTopazSidekickAssistCardProto struct {
  1921  	// AgendaGroupCardProto: Agenda group card.
  1922  	AgendaGroupCardProto *EnterpriseTopazSidekickAgendaGroupCardProto `json:"agendaGroupCardProto,omitempty"`
  1923  	// CardMetadata: Card metadata such as chronology and render mode of the card.
  1924  	CardMetadata *EnterpriseTopazSidekickCardMetadata `json:"cardMetadata,omitempty"`
  1925  	// CardType: Card type.
  1926  	//
  1927  	// Possible values:
  1928  	//   "UNKNOWN_TYPE" - The default type, an unknown card type.
  1929  	//   "AGENDA" - The user's agenda for the day.
  1930  	//   "CHANGELISTS" - Changelists.
  1931  	//   "CONFLICTING_MEETINGS" - Any group of meetings for the day that are
  1932  	// overlapping.
  1933  	//   "CREATE_NOTES_FOR_MEETING" - Create notes for a meeting specified in the
  1934  	// request.
  1935  	//   "CREATE_NOTES_FOR_MEETING_REQUEST" - Create notes for meeting query.
  1936  	//   "CUSTOMER_NEWS" - News about your SFDC customers.
  1937  	//   "FIND_MEETING_TIME" - Find a time for two people to meet.
  1938  	//   "NEXT_MEETING" - The user's next non-declined meeting.
  1939  	//   "PERSONALIZED_DOCS" - Important documents for you since you have viewed
  1940  	// them in the last month and there's some action going on.
  1941  	//   "TRENDING_DOCS" - Documents that are trending in your company. A
  1942  	// TRENDING_DOCS card can be of two types: TRENDING_IN_COLLABORATORS (i.e.,
  1943  	// Stay in the Loop) and TRENDING_IN_DOMAIN (i.e., Popular Content). Use
  1944  	// DOMAIN_TRENDING_DOCS/TEAM_TRENDING_DOCS instead.
  1945  	//   "UPCOMING_TRIP" - An upcoming trip with all trip information along with
  1946  	// calendar events in the destination timezone.
  1947  	//   "SUMMARY" - The Morning/Evening Summary Card for the next working day.
  1948  	//   "MEETINGS" - A meeting. When requesting meetings, the service will return
  1949  	// a MEETING card for each meeting the user has in his agenda.
  1950  	//   "HOMEPAGE" - All cards related to the homepage (agenda,
  1951  	// conflicting-meetings, summary, etc...). This type should no longer be used.
  1952  	// Use HOMEPAGE_V3 instead.
  1953  	//   "SHARE_MEETING_DOCS" - A card to with specifics to share meeting documents
  1954  	// with all attendees.
  1955  	//   "DISCOVER_PEOPLE" - Represents a set of users that the requesting user has
  1956  	// low affinity with.
  1957  	//   "HOMEPAGE_V3" - All cards related to the homepage-v3 (agenda-group, WIP,
  1958  	// etc...)
  1959  	//   "AGENDA_GROUP" - A group of agenda-events (meeting, conflicts)
  1960  	//   "WORK_IN_PROGRESS" - The documents that you were recently working on.
  1961  	//   "GET_AND_KEEP_AHEAD" - (v3) The "get and keep ahead" card for today and
  1962  	// tomorrow
  1963  	//   "GENERIC_ANSWER_CARD" - Generic answer card.
  1964  	//   "THIRD_PARTY_ANSWER_CARD" - Third party answer card.
  1965  	//   "DOMAIN_TRENDING_DOCS" - Documents that are trending in your
  1966  	// company/domain (i.e., Popular Content).
  1967  	//   "TEAM_TRENDING_DOCS" - Documents that are trending in your team (i.e.,
  1968  	// Stay in the Loop).
  1969  	//   "DOCUMENT_LIST_ANSWER_CARD" - Documents that match the user's query (e.g.
  1970  	// sheets shared with me).
  1971  	//   "SUGGESTED_QUERY_ANSWER_CARD" - A help card that provides examples of
  1972  	// queries the user can ask.
  1973  	//   "PERSON_ANSWER_CARD" - Answer card for a single person (e.g. what is x's
  1974  	// phone number).
  1975  	//   "RELATED_PEOPLE_ANSWER_CARD" - Answer card for a list of people related to
  1976  	// the person that is the subject of the query (e.g. who reports to x).
  1977  	//   "PERSON_KNOWLEDGE_CARD" - Knowledge card for a single person and their
  1978  	// related people.
  1979  	//   "PEOPLE_SEARCH_PROMOTION_CARD" - People Search promotion card.
  1980  	CardType string `json:"cardType,omitempty"`
  1981  	// ConflictingMeetingsCard: Conflicting events card.
  1982  	ConflictingMeetingsCard *EnterpriseTopazSidekickConflictingEventsCardProto `json:"conflictingMeetingsCard,omitempty"`
  1983  	// DocumentListCard: Answer card for documents that are applicable to the
  1984  	// current query.
  1985  	DocumentListCard *EnterpriseTopazSidekickDocumentPerCategoryList `json:"documentListCard,omitempty"`
  1986  	// DocumentsWithMentions: Documents with mentions.
  1987  	DocumentsWithMentions *EnterpriseTopazSidekickDocumentPerCategoryList `json:"documentsWithMentions,omitempty"`
  1988  	// FindMeetingTimeCard: Find meeting time card.
  1989  	FindMeetingTimeCard *EnterpriseTopazSidekickFindMeetingTimeCardProto `json:"findMeetingTimeCard,omitempty"`
  1990  	// GenericAnswerCard: Generic answer card.
  1991  	GenericAnswerCard *EnterpriseTopazSidekickGenericAnswerCard `json:"genericAnswerCard,omitempty"`
  1992  	// GetAndKeepAheadCard: Get and keep ahead card.
  1993  	GetAndKeepAheadCard *EnterpriseTopazSidekickGetAndKeepAheadCardProto `json:"getAndKeepAheadCard,omitempty"`
  1994  	// Meeting: Meeting card.
  1995  	Meeting *EnterpriseTopazSidekickAgendaEntry `json:"meeting,omitempty"`
  1996  	// MeetingNotesCard: Meeting notes card.
  1997  	MeetingNotesCard *EnterpriseTopazSidekickMeetingNotesCardProto `json:"meetingNotesCard,omitempty"`
  1998  	// MeetingNotesCardRequest: Request for meeting notes card.
  1999  	MeetingNotesCardRequest *EnterpriseTopazSidekickMeetingNotesCardRequest `json:"meetingNotesCardRequest,omitempty"`
  2000  	// PeopleDisambiguationCard: The people disambiguation card.
  2001  	PeopleDisambiguationCard *EnterpriseTopazSidekickPeopleDisambiguationCard `json:"peopleDisambiguationCard,omitempty"`
  2002  	// PeoplePromotionCard: People Search promotion card.
  2003  	PeoplePromotionCard *PeoplePromotionCard `json:"peoplePromotionCard,omitempty"`
  2004  	// PersonAnswerCard: Answer card that represents a single person.
  2005  	PersonAnswerCard *EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard `json:"personAnswerCard,omitempty"`
  2006  	// PersonProfileCard: Full profile card.
  2007  	PersonProfileCard *EnterpriseTopazSidekickPersonProfileCard `json:"personProfileCard,omitempty"`
  2008  	// PersonalizedDocsCard: Card with recommended documents for the user.
  2009  	PersonalizedDocsCard *EnterpriseTopazSidekickPersonalizedDocsCardProto `json:"personalizedDocsCard,omitempty"`
  2010  	// RelatedPeopleAnswerCard: Answer card that represents a list of people
  2011  	// related to a person.
  2012  	RelatedPeopleAnswerCard *EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard `json:"relatedPeopleAnswerCard,omitempty"`
  2013  	// ShareMeetingDocsCard: Sahre meeting docs card.
  2014  	ShareMeetingDocsCard *EnterpriseTopazSidekickShareMeetingDocsCardProto `json:"shareMeetingDocsCard,omitempty"`
  2015  	// SharedDocuments: Shared documents.
  2016  	SharedDocuments *EnterpriseTopazSidekickDocumentPerCategoryList `json:"sharedDocuments,omitempty"`
  2017  	// SuggestedQueryAnswerCard: Answer card for what natural language queries the
  2018  	// user can ask.
  2019  	SuggestedQueryAnswerCard *EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard `json:"suggestedQueryAnswerCard,omitempty"`
  2020  	// ThirdPartyAnswerCard: Third party answer cards.
  2021  	ThirdPartyAnswerCard *ThirdPartyGenericCard `json:"thirdPartyAnswerCard,omitempty"`
  2022  	// WorkInProgressCardProto: Work In Progress card.
  2023  	WorkInProgressCardProto *EnterpriseTopazSidekickRecentDocumentsCardProto `json:"workInProgressCardProto,omitempty"`
  2024  	// ForceSendFields is a list of field names (e.g. "AgendaGroupCardProto") to
  2025  	// unconditionally include in API requests. By default, fields with empty or
  2026  	// default values are omitted from API requests. See
  2027  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2028  	// details.
  2029  	ForceSendFields []string `json:"-"`
  2030  	// NullFields is a list of field names (e.g. "AgendaGroupCardProto") to include
  2031  	// in API requests with the JSON null value. By default, fields with empty
  2032  	// values are omitted from API requests. See
  2033  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2034  	NullFields []string `json:"-"`
  2035  }
  2036  
  2037  func (s *EnterpriseTopazSidekickAssistCardProto) MarshalJSON() ([]byte, error) {
  2038  	type NoMethod EnterpriseTopazSidekickAssistCardProto
  2039  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2040  }
  2041  
  2042  // EnterpriseTopazSidekickCardMetadata: Card metadata.
  2043  type EnterpriseTopazSidekickCardMetadata struct {
  2044  	// CardCategory: Declares a preference for how this card should be packed in
  2045  	// MSCR. All cards in a response must correspond to a single category. As a
  2046  	// result, cards may be dropped from the response if this field is set. Any
  2047  	// card that does not match the category of the card with the highest priority
  2048  	// in the response will be dropped.
  2049  	//
  2050  	// Possible values:
  2051  	//   "DEFAULT" - Let MSCR decide how this card should be packed. Most cards
  2052  	// should choose this type. This type should largely be considered equivalent
  2053  	// to ANSWER. However, this is not guaranteed to be the case as the request to
  2054  	// MSCR may override the static configuration.
  2055  	//   "ANSWER" - This card should be rendered as an answer card.
  2056  	//   "KNOWLEDGE" - This card should be rendered as a knowledge card (a
  2057  	// non-organic result).
  2058  	//   "HOMEPAGE" - This card should be rendered in the Homepage.
  2059  	CardCategory string `json:"cardCategory,omitempty"`
  2060  	// CardId: An ID to identify the card and match actions to it. Be thoughtful of
  2061  	// new card IDs since actions will be associated to that ID. E.g., if two card
  2062  	// IDs collide, the system will think that the actions have been applied to the
  2063  	// same card. Similarly, if EAS can return multiple cards of the same type
  2064  	// (e.g., Meetings), ensure that the card_id identifies a given instance of the
  2065  	// card so that, e.g., dismissals only affect the dismissed card as opposed to
  2066  	// affecting all meeting cards.
  2067  	CardId string `json:"cardId,omitempty"`
  2068  	// Chronology: Chronology.
  2069  	//
  2070  	// Possible values:
  2071  	//   "UNKNOWN" - Unknown chronology (default).
  2072  	//   "PAST" - Past.
  2073  	//   "RECENTLY_PAST" - Recently past.
  2074  	//   "PRESENT" - Present.
  2075  	//   "NEAR_FUTURE" - Near future.
  2076  	//   "FUTURE" - Future.
  2077  	Chronology string `json:"chronology,omitempty"`
  2078  	// DebugInfo: Debug info (only reported if request's debug_level > 0).
  2079  	DebugInfo string `json:"debugInfo,omitempty"`
  2080  	// NlpMetadata: Information about the NLP done to get the card.
  2081  	NlpMetadata *EnterpriseTopazSidekickNlpMetadata `json:"nlpMetadata,omitempty"`
  2082  	// RankingParams: Ranking params.
  2083  	RankingParams *EnterpriseTopazSidekickRankingParams `json:"rankingParams,omitempty"`
  2084  	// RenderMode: Render mode.
  2085  	//
  2086  	// Possible values:
  2087  	//   "UNKNOWN_RENDER" - Unknown mode (default).
  2088  	//   "COLLAPSED" - Collapsed.
  2089  	//   "EXPANDED" - Expanded.
  2090  	RenderMode string `json:"renderMode,omitempty"`
  2091  	// ForceSendFields is a list of field names (e.g. "CardCategory") to
  2092  	// unconditionally include in API requests. By default, fields with empty or
  2093  	// default values are omitted from API requests. See
  2094  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2095  	// details.
  2096  	ForceSendFields []string `json:"-"`
  2097  	// NullFields is a list of field names (e.g. "CardCategory") to include in API
  2098  	// requests with the JSON null value. By default, fields with empty values are
  2099  	// omitted from API requests. See
  2100  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2101  	NullFields []string `json:"-"`
  2102  }
  2103  
  2104  func (s *EnterpriseTopazSidekickCardMetadata) MarshalJSON() ([]byte, error) {
  2105  	type NoMethod EnterpriseTopazSidekickCardMetadata
  2106  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2107  }
  2108  
  2109  // EnterpriseTopazSidekickCommonDebugInfo: Container of debugging information
  2110  // in all object levels. Extend as needed.
  2111  type EnterpriseTopazSidekickCommonDebugInfo struct {
  2112  	// Message: Debug message.
  2113  	Message string `json:"message,omitempty"`
  2114  	// ForceSendFields is a list of field names (e.g. "Message") to unconditionally
  2115  	// include in API requests. By default, fields with empty or default values are
  2116  	// omitted from API requests. See
  2117  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2118  	// details.
  2119  	ForceSendFields []string `json:"-"`
  2120  	// NullFields is a list of field names (e.g. "Message") to include in API
  2121  	// requests with the JSON null value. By default, fields with empty values are
  2122  	// omitted from API requests. See
  2123  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2124  	NullFields []string `json:"-"`
  2125  }
  2126  
  2127  func (s *EnterpriseTopazSidekickCommonDebugInfo) MarshalJSON() ([]byte, error) {
  2128  	type NoMethod EnterpriseTopazSidekickCommonDebugInfo
  2129  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2130  }
  2131  
  2132  // EnterpriseTopazSidekickCommonDocument: Representation of a document.
  2133  // NEXT_TAG: 15
  2134  type EnterpriseTopazSidekickCommonDocument struct {
  2135  	// AccessType: Access type, i.e., whether the user has access to the document
  2136  	// or not.
  2137  	//
  2138  	// Possible values:
  2139  	//   "UNKNOWN_ACCESS" - Unknown access type.
  2140  	//   "ALLOWED" - Access allowed.
  2141  	//   "NOT_ALLOWED" - Access not allowed.
  2142  	AccessType string `json:"accessType,omitempty"`
  2143  	// DebugInfo: Information for debugging.
  2144  	DebugInfo *EnterpriseTopazSidekickCommonDebugInfo `json:"debugInfo,omitempty"`
  2145  	// DocumentId: Document id.
  2146  	DocumentId string `json:"documentId,omitempty"`
  2147  	// DriveDocumentMetadata: Drive document metadata.
  2148  	DriveDocumentMetadata *EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata `json:"driveDocumentMetadata,omitempty"`
  2149  	// GenericUrl: Generic Drive-based url in the format of drive.google.com/open
  2150  	// to be used for deeplink
  2151  	GenericUrl string `json:"genericUrl,omitempty"`
  2152  	// Justification: Justification on why the document is selected.
  2153  	Justification *EnterpriseTopazSidekickCommonDocumentJustification `json:"justification,omitempty"`
  2154  	// MimeType: MIME type
  2155  	MimeType string `json:"mimeType,omitempty"`
  2156  	// Provenance: Document provenance.
  2157  	//
  2158  	// Possible values:
  2159  	//   "UNKNOWN_PROVENANCE" - Unknown provenance.
  2160  	//   "CALENDAR_DESCRIPTION" - Calendar event description.
  2161  	//   "CALENDAR_ATTACHMENT" - Calendar event attachment.
  2162  	//   "MINED" - Mined (extracted by some offline/online analysis).
  2163  	//   "CALENDAR_ASSIST_ATTACHMENT" - Attachment created by enterprise assist.
  2164  	Provenance string `json:"provenance,omitempty"`
  2165  	// Reason: Justification of why this document is being returned.
  2166  	//
  2167  	// Possible values:
  2168  	//   "UNKNOWN" - Unknown justification.
  2169  	//   "TRENDING_IN_COLLABORATORS" - Popular documents within collaborators.
  2170  	//   "TRENDING_IN_DOMAIN" - Popular documents within the domain.
  2171  	//   "FREQUENTLY_VIEWED" - Documents being reviewed frequently by the current
  2172  	// user .
  2173  	//   "FREQUENTLY_EDITED" - Documents being edited frequently by the current
  2174  	// user .
  2175  	//   "NEW_UPDATES" - Documents updated since user's last visit.
  2176  	//   "NEW_COMMENTS" - Documents that receive comments since user's last visit.
  2177  	//   "EVENT_DESCRIPTION" - Documents in the calendar event description.
  2178  	//   "EVENT_ATTACHMENT" - Documents in the calendar event attachments section.
  2179  	//   "EVENT_METADATA_ATTACHMENT" - Documents attached in calendar event
  2180  	// metadata instead of the attachment section. Event metadata is not visible to
  2181  	// the final user. Enterprise assist uses this metadata to store auto-generated
  2182  	// documents such as meeting notes.
  2183  	//   "MINED_DOCUMENT" - Documents mined, and so, probably related to the
  2184  	// request context. For example, this category includes documents related to a
  2185  	// meeting.
  2186  	//   "NEW_MENTIONS" - Documents that contains mentions of the user.
  2187  	//   "NEW_SHARES" - Documents that are shared with the user.
  2188  	Reason string `json:"reason,omitempty"`
  2189  	// Snippet: A sampling of the text from the document.
  2190  	Snippet string `json:"snippet,omitempty"`
  2191  	// ThumbnailUrl: Thumbnail URL.
  2192  	ThumbnailUrl string `json:"thumbnailUrl,omitempty"`
  2193  	// Title: Title of the document.
  2194  	Title string `json:"title,omitempty"`
  2195  	// Type: Type of the document.
  2196  	//
  2197  	// Possible values:
  2198  	//   "UNKNOWN" - If the type is unknown or not represented in this enum.
  2199  	//   "DOCUMENT" - Drive document types Writely, Word, etc.
  2200  	//   "PRESENTATION" - Presently, PowerPoint, etc.
  2201  	//   "SPREADSHEET" - Trix, Excel, etc.
  2202  	//   "PDF" - File types for Gdrive objects are below. PDF.
  2203  	//   "IMAGE" - Image.
  2204  	//   "BINARY_BLOB" - Fall-back for unknown Gdrive types.
  2205  	//   "FUSION_TABLE" - Fusion table.
  2206  	//   "FOLDER" - Folder.
  2207  	//   "DRAWING" - Drawing.
  2208  	//   "VIDEO" - Video.
  2209  	//   "FORM" - Form.
  2210  	//   "LINK_URL" - Link formats uncategorized URL links
  2211  	//   "LINK_GO" - meaningful links that should be renderred specifically
  2212  	//   "LINK_GOO_GL" - Link to goo.gl.
  2213  	//   "LINK_BIT_LY" - Link to bit_ly.
  2214  	//   "LINK_GMAIL" - Link to Gmail.
  2215  	//   "LINK_MAILTO" - Mailto link.
  2216  	//   "VIDEO_YOUTUBE" - Videos Youtube videos.
  2217  	//   "VIDEO_LIVE" - Live streams (e.g., liveplayer.googleplex.com)
  2218  	//   "GROUPS" - Other types. Google Groups.
  2219  	//   "NEWS" - Google News.
  2220  	//   "SITES" - Google Sites.
  2221  	//   "HANGOUT" - Google Hangout.
  2222  	//   "AUDIO" - Audio files.
  2223  	//   "MS_WORD" - Microsoft-specific file types.
  2224  	//   "MS_POWERPOINT"
  2225  	//   "MS_EXCEL"
  2226  	//   "MS_OUTLOOK"
  2227  	Type string `json:"type,omitempty"`
  2228  	// Url: Absolute URL of the document.
  2229  	Url string `json:"url,omitempty"`
  2230  	// ForceSendFields is a list of field names (e.g. "AccessType") to
  2231  	// unconditionally include in API requests. By default, fields with empty or
  2232  	// default values are omitted from API requests. See
  2233  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2234  	// details.
  2235  	ForceSendFields []string `json:"-"`
  2236  	// NullFields is a list of field names (e.g. "AccessType") to include in API
  2237  	// requests with the JSON null value. By default, fields with empty values are
  2238  	// omitted from API requests. See
  2239  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2240  	NullFields []string `json:"-"`
  2241  }
  2242  
  2243  func (s *EnterpriseTopazSidekickCommonDocument) MarshalJSON() ([]byte, error) {
  2244  	type NoMethod EnterpriseTopazSidekickCommonDocument
  2245  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2246  }
  2247  
  2248  // EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata: Meta data for
  2249  // drive documents.
  2250  type EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata struct {
  2251  	// DocumentId: The drive document cosmo id. Client could use the id to build a
  2252  	// URL to open a document. Please use Document.document_id.
  2253  	DocumentId string `json:"documentId,omitempty"`
  2254  	// IsPrivate: Additional field to identify whether a document is private since
  2255  	// scope set to LIMITED can mean both that the doc is private or that it's
  2256  	// shared with others. is_private indicates whether the doc is not shared with
  2257  	// anyone except for the owner.
  2258  	IsPrivate bool `json:"isPrivate,omitempty"`
  2259  	// LastCommentTimeMs: Timestamp of the most recent comment added to the
  2260  	// document in milliseconds since epoch.
  2261  	LastCommentTimeMs uint64 `json:"lastCommentTimeMs,omitempty,string"`
  2262  	// LastEditTimeMs: Timestamp of the most recent edit from the current user in
  2263  	// milliseconds since epoch.
  2264  	LastEditTimeMs uint64 `json:"lastEditTimeMs,omitempty,string"`
  2265  	// LastModificationTimeMillis: Last modification time of the document
  2266  	// (independent of the user that modified it).
  2267  	LastModificationTimeMillis int64 `json:"lastModificationTimeMillis,omitempty,string"`
  2268  	// LastUpdatedTimeMs: Timestamp of the last updated time of the document in
  2269  	// milliseconds since epoch.
  2270  	LastUpdatedTimeMs uint64 `json:"lastUpdatedTimeMs,omitempty,string"`
  2271  	// LastViewTimeMs: Timestamp of the most recent view from the current user in
  2272  	// milliseconds since epoch.
  2273  	LastViewTimeMs uint64 `json:"lastViewTimeMs,omitempty,string"`
  2274  	// Owner: The owner of the document.
  2275  	Owner *EnterpriseTopazSidekickCommonPerson `json:"owner,omitempty"`
  2276  	// Scope: ACL scope of the document which identifies the sharing status of the
  2277  	// doc (e.g., limited, shared with link, team drive, ...).
  2278  	//
  2279  	// Possible values:
  2280  	//   "UNKNOWN_DOCUMENT_SCOPE"
  2281  	//   "LIMITED"
  2282  	//   "DASHER_DOMAIN_WITH_LINK"
  2283  	//   "DASHER_DOMAIN"
  2284  	//   "PUBLIC_WITH_LINK"
  2285  	//   "PUBLIC"
  2286  	//   "TEAM_DRIVE"
  2287  	Scope string `json:"scope,omitempty"`
  2288  	// ForceSendFields is a list of field names (e.g. "DocumentId") to
  2289  	// unconditionally include in API requests. By default, fields with empty or
  2290  	// default values are omitted from API requests. See
  2291  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2292  	// details.
  2293  	ForceSendFields []string `json:"-"`
  2294  	// NullFields is a list of field names (e.g. "DocumentId") to include in API
  2295  	// requests with the JSON null value. By default, fields with empty values are
  2296  	// omitted from API requests. See
  2297  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2298  	NullFields []string `json:"-"`
  2299  }
  2300  
  2301  func (s *EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata) MarshalJSON() ([]byte, error) {
  2302  	type NoMethod EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata
  2303  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2304  }
  2305  
  2306  // EnterpriseTopazSidekickCommonDocumentJustification: Justification of why we
  2307  // are reporting the document.
  2308  type EnterpriseTopazSidekickCommonDocumentJustification struct {
  2309  	// Justification: A locale aware message that explains why this document was
  2310  	// selected.
  2311  	Justification string `json:"justification,omitempty"`
  2312  	// Reason: Reason on why the document is selected. Populate for trending
  2313  	// documents.
  2314  	//
  2315  	// Possible values:
  2316  	//   "UNKNOWN" - Unknown justification.
  2317  	//   "TRENDING_IN_COLLABORATORS" - Popular documents within collaborators.
  2318  	//   "TRENDING_IN_DOMAIN" - Popular documents within the domain.
  2319  	//   "FREQUENTLY_VIEWED" - Documents being reviewed frequently by the current
  2320  	// user .
  2321  	//   "FREQUENTLY_EDITED" - Documents being edited frequently by the current
  2322  	// user .
  2323  	//   "NEW_UPDATES" - Documents updated since user's last visit.
  2324  	//   "NEW_COMMENTS" - Documents that receive comments since user's last visit.
  2325  	//   "EVENT_DESCRIPTION" - Documents in the calendar event description.
  2326  	//   "EVENT_ATTACHMENT" - Documents in the calendar event attachments section.
  2327  	//   "EVENT_METADATA_ATTACHMENT" - Documents attached in calendar event
  2328  	// metadata instead of the attachment section. Event metadata is not visible to
  2329  	// the final user. Enterprise assist uses this metadata to store auto-generated
  2330  	// documents such as meeting notes.
  2331  	//   "MINED_DOCUMENT" - Documents mined, and so, probably related to the
  2332  	// request context. For example, this category includes documents related to a
  2333  	// meeting.
  2334  	//   "NEW_MENTIONS" - Documents that contains mentions of the user.
  2335  	//   "NEW_SHARES" - Documents that are shared with the user.
  2336  	Reason string `json:"reason,omitempty"`
  2337  	// ForceSendFields is a list of field names (e.g. "Justification") to
  2338  	// unconditionally include in API requests. By default, fields with empty or
  2339  	// default values are omitted from API requests. See
  2340  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2341  	// details.
  2342  	ForceSendFields []string `json:"-"`
  2343  	// NullFields is a list of field names (e.g. "Justification") to include in API
  2344  	// requests with the JSON null value. By default, fields with empty values are
  2345  	// omitted from API requests. See
  2346  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2347  	NullFields []string `json:"-"`
  2348  }
  2349  
  2350  func (s *EnterpriseTopazSidekickCommonDocumentJustification) MarshalJSON() ([]byte, error) {
  2351  	type NoMethod EnterpriseTopazSidekickCommonDocumentJustification
  2352  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2353  }
  2354  
  2355  // EnterpriseTopazSidekickCommonPerson: Common representation of a person.
  2356  type EnterpriseTopazSidekickCommonPerson struct {
  2357  	// Birthday: The birthday.
  2358  	Birthday *EnterpriseTopazSidekickCommonPersonBirthday `json:"birthday,omitempty"`
  2359  	// CellPhone: Cell phone number.
  2360  	CellPhone string `json:"cellPhone,omitempty"`
  2361  	// Department: The department the person works in (e.g. Engineering).
  2362  	Department string `json:"department,omitempty"`
  2363  	// DeskLocation: Desk location (e.g. US-MTV-PR55-5-5B1I).
  2364  	DeskLocation string `json:"deskLocation,omitempty"`
  2365  	// DeskPhone: Work desk phone number.
  2366  	DeskPhone string `json:"deskPhone,omitempty"`
  2367  	// DisplayName: The full name.
  2368  	DisplayName string `json:"displayName,omitempty"`
  2369  	// Email: Email.
  2370  	Email string `json:"email,omitempty"`
  2371  	// FamilyName: The last name.
  2372  	FamilyName string `json:"familyName,omitempty"`
  2373  	// FullAddress: The fully formatted address (e.g. 1255 Pear Avenue, Mountain
  2374  	// View 94043, United States).
  2375  	FullAddress string `json:"fullAddress,omitempty"`
  2376  	// GaiaId: This field is deprecated. The obfuscated_id should be used instead.
  2377  	GaiaId int64 `json:"gaiaId,omitempty,string"`
  2378  	// GivenName: The first name.
  2379  	GivenName string `json:"givenName,omitempty"`
  2380  	// JobTitle: The person's job title (e.g. Software Engineer).
  2381  	JobTitle string `json:"jobTitle,omitempty"`
  2382  	// Manager: The manager.
  2383  	Manager *EnterpriseTopazSidekickCommonPerson `json:"manager,omitempty"`
  2384  	// ObfuscatedId: The obfuscated GAIA ID.
  2385  	ObfuscatedId string `json:"obfuscatedId,omitempty"`
  2386  	// PhotoUrl: The URL for the Focus profile picture.
  2387  	PhotoUrl string `json:"photoUrl,omitempty"`
  2388  	// StreetAddress: The street address (e.g. 1255 Pear Avenue).
  2389  	StreetAddress string `json:"streetAddress,omitempty"`
  2390  	// ForceSendFields is a list of field names (e.g. "Birthday") to
  2391  	// unconditionally include in API requests. By default, fields with empty or
  2392  	// default values are omitted from API requests. See
  2393  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2394  	// details.
  2395  	ForceSendFields []string `json:"-"`
  2396  	// NullFields is a list of field names (e.g. "Birthday") to include in API
  2397  	// requests with the JSON null value. By default, fields with empty values are
  2398  	// omitted from API requests. See
  2399  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2400  	NullFields []string `json:"-"`
  2401  }
  2402  
  2403  func (s *EnterpriseTopazSidekickCommonPerson) MarshalJSON() ([]byte, error) {
  2404  	type NoMethod EnterpriseTopazSidekickCommonPerson
  2405  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2406  }
  2407  
  2408  type EnterpriseTopazSidekickCommonPersonBirthday struct {
  2409  	// Value: Unstructured birthday.
  2410  	Value string `json:"value,omitempty"`
  2411  	// ForceSendFields is a list of field names (e.g. "Value") to unconditionally
  2412  	// include in API requests. By default, fields with empty or default values are
  2413  	// omitted from API requests. See
  2414  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2415  	// details.
  2416  	ForceSendFields []string `json:"-"`
  2417  	// NullFields is a list of field names (e.g. "Value") to include in API
  2418  	// requests with the JSON null value. By default, fields with empty values are
  2419  	// omitted from API requests. See
  2420  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2421  	NullFields []string `json:"-"`
  2422  }
  2423  
  2424  func (s *EnterpriseTopazSidekickCommonPersonBirthday) MarshalJSON() ([]byte, error) {
  2425  	type NoMethod EnterpriseTopazSidekickCommonPersonBirthday
  2426  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2427  }
  2428  
  2429  // EnterpriseTopazSidekickConflictingEventsCardProto: Conflicting meetings card
  2430  // proto.
  2431  type EnterpriseTopazSidekickConflictingEventsCardProto struct {
  2432  	// ConflictingEvent: All the events that conflict with main_event.
  2433  	ConflictingEvent []*EnterpriseTopazSidekickAgendaEntry `json:"conflictingEvent,omitempty"`
  2434  	// MainEvent: The event identified as being the most important.
  2435  	MainEvent *EnterpriseTopazSidekickAgendaEntry `json:"mainEvent,omitempty"`
  2436  	// ForceSendFields is a list of field names (e.g. "ConflictingEvent") to
  2437  	// unconditionally include in API requests. By default, fields with empty or
  2438  	// default values are omitted from API requests. See
  2439  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2440  	// details.
  2441  	ForceSendFields []string `json:"-"`
  2442  	// NullFields is a list of field names (e.g. "ConflictingEvent") to include in
  2443  	// API requests with the JSON null value. By default, fields with empty values
  2444  	// are omitted from API requests. See
  2445  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2446  	NullFields []string `json:"-"`
  2447  }
  2448  
  2449  func (s *EnterpriseTopazSidekickConflictingEventsCardProto) MarshalJSON() ([]byte, error) {
  2450  	type NoMethod EnterpriseTopazSidekickConflictingEventsCardProto
  2451  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2452  }
  2453  
  2454  // EnterpriseTopazSidekickDocumentGroup: Represents a mapping between a
  2455  // document type and its corresponding documents. Use for Work in Progress card
  2456  // in v1 homepage.
  2457  type EnterpriseTopazSidekickDocumentGroup struct {
  2458  	// GroupType: Document group type
  2459  	//
  2460  	// Possible values:
  2461  	//   "UNKNOWN_TYPE" - Unknown type.
  2462  	//   "ALL" - A mix of all the document types.
  2463  	GroupType string `json:"groupType,omitempty"`
  2464  	// PersonalizedDocument: The list of corresponding documents.
  2465  	PersonalizedDocument []*EnterpriseTopazSidekickCommonDocument `json:"personalizedDocument,omitempty"`
  2466  	// ForceSendFields is a list of field names (e.g. "GroupType") to
  2467  	// unconditionally include in API requests. By default, fields with empty or
  2468  	// default values are omitted from API requests. See
  2469  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2470  	// details.
  2471  	ForceSendFields []string `json:"-"`
  2472  	// NullFields is a list of field names (e.g. "GroupType") to include in API
  2473  	// requests with the JSON null value. By default, fields with empty values are
  2474  	// omitted from API requests. See
  2475  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2476  	NullFields []string `json:"-"`
  2477  }
  2478  
  2479  func (s *EnterpriseTopazSidekickDocumentGroup) MarshalJSON() ([]byte, error) {
  2480  	type NoMethod EnterpriseTopazSidekickDocumentGroup
  2481  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2482  }
  2483  
  2484  type EnterpriseTopazSidekickDocumentPerCategoryList struct {
  2485  	Documents []*EnterpriseTopazSidekickDocumentPerCategoryListDocumentPerCategoryListEntry `json:"documents,omitempty"`
  2486  	// HelpMessage: Localized message explaining how the documents were derived
  2487  	// (e.g. from the last 30 days activity). This field is optional.
  2488  	HelpMessage string `json:"helpMessage,omitempty"`
  2489  	// Possible values:
  2490  	//   "UNKNOWN_LIST_TYPE"
  2491  	//   "MENTIONS" - All documents in the list correspond to one of the mention
  2492  	// categories.
  2493  	//   "SHARES" - All documents in the list correspond to one of the share
  2494  	// categories.
  2495  	//   "NEEDS_ATTENTION" - A mixture of document categories that correspond to
  2496  	// documents that need the users attention (e.g. documents that have been
  2497  	// explicitly shared with the user but have not been viewed and documents where
  2498  	// the user was mentioned but has not replied).
  2499  	//   "VIEWS" - All documents in the list correspond to one of the view
  2500  	// categories.
  2501  	//   "EDITS" - All documents in the list correspond to one of the edit
  2502  	// categories.
  2503  	ListType string `json:"listType,omitempty"`
  2504  	// ListTypeDescription: Description of the types of documents present in the
  2505  	// list.
  2506  	ListTypeDescription string `json:"listTypeDescription,omitempty"`
  2507  	// ResponseMessage: Response message in case no documents are present in the
  2508  	// card.
  2509  	ResponseMessage string `json:"responseMessage,omitempty"`
  2510  	// ForceSendFields is a list of field names (e.g. "Documents") to
  2511  	// unconditionally include in API requests. By default, fields with empty or
  2512  	// default values are omitted from API requests. See
  2513  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2514  	// details.
  2515  	ForceSendFields []string `json:"-"`
  2516  	// NullFields is a list of field names (e.g. "Documents") to include in API
  2517  	// requests with the JSON null value. By default, fields with empty values are
  2518  	// omitted from API requests. See
  2519  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2520  	NullFields []string `json:"-"`
  2521  }
  2522  
  2523  func (s *EnterpriseTopazSidekickDocumentPerCategoryList) MarshalJSON() ([]byte, error) {
  2524  	type NoMethod EnterpriseTopazSidekickDocumentPerCategoryList
  2525  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2526  }
  2527  
  2528  type EnterpriseTopazSidekickDocumentPerCategoryListDocumentPerCategoryListEntry struct {
  2529  	// Possible values:
  2530  	//   "UNKNOWN_DOCUMENT"
  2531  	//   "ACTIONABLE"
  2532  	//   "VIEWED"
  2533  	//   "REPLIED"
  2534  	//   "MENTION_VIEWED" - Mention categories. The mention has been viewed by the
  2535  	// user, but the user has not replied.
  2536  	//   "MENTION_REPLIED" - The user has replied to the mention.
  2537  	//   "MENTION_NOT_VIEWED" - The mention has not been viewed by the user.
  2538  	//   "SHARED_AND_VIEWED" - Share categories. Consists of documents that have
  2539  	// been explicitly shared with the user. Document has been viewed.
  2540  	//   "SHARED_NOT_VIEWED" - Document has not been viewed.
  2541  	//   "EDITED" - Document has been edited.
  2542  	Category string                                 `json:"category,omitempty"`
  2543  	Document *EnterpriseTopazSidekickCommonDocument `json:"document,omitempty"`
  2544  	// Rationale: Reason this document was selected.
  2545  	Rationale string `json:"rationale,omitempty"`
  2546  	// ForceSendFields is a list of field names (e.g. "Category") to
  2547  	// unconditionally include in API requests. By default, fields with empty or
  2548  	// default values are omitted from API requests. See
  2549  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2550  	// details.
  2551  	ForceSendFields []string `json:"-"`
  2552  	// NullFields is a list of field names (e.g. "Category") to include in API
  2553  	// requests with the JSON null value. By default, fields with empty values are
  2554  	// omitted from API requests. See
  2555  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2556  	NullFields []string `json:"-"`
  2557  }
  2558  
  2559  func (s *EnterpriseTopazSidekickDocumentPerCategoryListDocumentPerCategoryListEntry) MarshalJSON() ([]byte, error) {
  2560  	type NoMethod EnterpriseTopazSidekickDocumentPerCategoryListDocumentPerCategoryListEntry
  2561  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2562  }
  2563  
  2564  // EnterpriseTopazSidekickFindMeetingTimeCardProto: Response to find meeting
  2565  // time among a set of people.
  2566  type EnterpriseTopazSidekickFindMeetingTimeCardProto struct {
  2567  	// CommonAvailableTimeSlots: Slots when all attendees have availability.
  2568  	CommonAvailableTimeSlots []*EnterpriseTopazSidekickTimeSlot `json:"commonAvailableTimeSlots,omitempty"`
  2569  	// Invitees: Invitees to the event.
  2570  	Invitees []*EnterpriseTopazSidekickPerson `json:"invitees,omitempty"`
  2571  	// Requester: Requester.
  2572  	Requester *EnterpriseTopazSidekickPerson `json:"requester,omitempty"`
  2573  	// ScheduledMeeting: Details about the scheduled meeting, if one exists.
  2574  	ScheduledMeeting *EnterpriseTopazSidekickScheduledMeeting `json:"scheduledMeeting,omitempty"`
  2575  	// SkippedInvitees: Invitees that have been skipped in the computation, most
  2576  	// likely because they are groups.
  2577  	SkippedInvitees []*EnterpriseTopazSidekickPerson `json:"skippedInvitees,omitempty"`
  2578  	// TimeBoundaries: Min and max timestamp used to find a common available
  2579  	// timeslot.
  2580  	TimeBoundaries *EnterpriseTopazSidekickTimeSlot `json:"timeBoundaries,omitempty"`
  2581  	// TimezoneId: Timezone ID.
  2582  	TimezoneId string `json:"timezoneId,omitempty"`
  2583  	// ForceSendFields is a list of field names (e.g. "CommonAvailableTimeSlots")
  2584  	// to unconditionally include in API requests. By default, fields with empty or
  2585  	// default values are omitted from API requests. See
  2586  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2587  	// details.
  2588  	ForceSendFields []string `json:"-"`
  2589  	// NullFields is a list of field names (e.g. "CommonAvailableTimeSlots") to
  2590  	// include in API requests with the JSON null value. By default, fields with
  2591  	// empty values are omitted from API requests. See
  2592  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2593  	NullFields []string `json:"-"`
  2594  }
  2595  
  2596  func (s *EnterpriseTopazSidekickFindMeetingTimeCardProto) MarshalJSON() ([]byte, error) {
  2597  	type NoMethod EnterpriseTopazSidekickFindMeetingTimeCardProto
  2598  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2599  }
  2600  
  2601  type EnterpriseTopazSidekickGap struct {
  2602  	// DisplayRemainingTime: Localized time string in the format: 1 hour 15 minutes
  2603  	DisplayRemainingTime string `json:"displayRemainingTime,omitempty"`
  2604  	// EndTime: Localized time string in the format:(Locale CZ) 8:30 odp.
  2605  	EndTime       string `json:"endTime,omitempty"`
  2606  	EndTimeMs     uint64 `json:"endTimeMs,omitempty,string"`
  2607  	RemainingTime string `json:"remainingTime,omitempty"`
  2608  	// StartTime: Localized time string in the format:(Locale CZ) 8:30 odp.
  2609  	StartTime   string `json:"startTime,omitempty"`
  2610  	StartTimeMs uint64 `json:"startTimeMs,omitempty,string"`
  2611  	// ForceSendFields is a list of field names (e.g. "DisplayRemainingTime") to
  2612  	// unconditionally include in API requests. By default, fields with empty or
  2613  	// default values are omitted from API requests. See
  2614  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2615  	// details.
  2616  	ForceSendFields []string `json:"-"`
  2617  	// NullFields is a list of field names (e.g. "DisplayRemainingTime") to include
  2618  	// in API requests with the JSON null value. By default, fields with empty
  2619  	// values are omitted from API requests. See
  2620  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2621  	NullFields []string `json:"-"`
  2622  }
  2623  
  2624  func (s *EnterpriseTopazSidekickGap) MarshalJSON() ([]byte, error) {
  2625  	type NoMethod EnterpriseTopazSidekickGap
  2626  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2627  }
  2628  
  2629  type EnterpriseTopazSidekickGenericAnswerCard struct {
  2630  	// Answer: The answer.
  2631  	Answer string `json:"answer,omitempty"`
  2632  	// Title: Title or header of the card.
  2633  	Title string `json:"title,omitempty"`
  2634  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
  2635  	// include in API requests. By default, fields with empty or default values are
  2636  	// omitted from API requests. See
  2637  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2638  	// details.
  2639  	ForceSendFields []string `json:"-"`
  2640  	// NullFields is a list of field names (e.g. "Answer") to include in API
  2641  	// requests with the JSON null value. By default, fields with empty values are
  2642  	// omitted from API requests. See
  2643  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2644  	NullFields []string `json:"-"`
  2645  }
  2646  
  2647  func (s *EnterpriseTopazSidekickGenericAnswerCard) MarshalJSON() ([]byte, error) {
  2648  	type NoMethod EnterpriseTopazSidekickGenericAnswerCard
  2649  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2650  }
  2651  
  2652  // EnterpriseTopazSidekickGetAndKeepAheadCardProto: Get and keep ahead card
  2653  type EnterpriseTopazSidekickGetAndKeepAheadCardProto struct {
  2654  	DeclinedEvents     *EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents `json:"declinedEvents,omitempty"`
  2655  	MentionedDocuments *EnterpriseTopazSidekickDocumentPerCategoryList                `json:"mentionedDocuments,omitempty"`
  2656  	SharedDocuments    *EnterpriseTopazSidekickDocumentPerCategoryList                `json:"sharedDocuments,omitempty"`
  2657  	// ForceSendFields is a list of field names (e.g. "DeclinedEvents") to
  2658  	// unconditionally include in API requests. By default, fields with empty or
  2659  	// default values are omitted from API requests. See
  2660  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2661  	// details.
  2662  	ForceSendFields []string `json:"-"`
  2663  	// NullFields is a list of field names (e.g. "DeclinedEvents") to include in
  2664  	// API requests with the JSON null value. By default, fields with empty values
  2665  	// are omitted from API requests. See
  2666  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2667  	NullFields []string `json:"-"`
  2668  }
  2669  
  2670  func (s *EnterpriseTopazSidekickGetAndKeepAheadCardProto) MarshalJSON() ([]byte, error) {
  2671  	type NoMethod EnterpriseTopazSidekickGetAndKeepAheadCardProto
  2672  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2673  }
  2674  
  2675  // EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents: A list of
  2676  // events where all guests declined.
  2677  type EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents struct {
  2678  	Events []*EnterpriseTopazSidekickAgendaEntry `json:"events,omitempty"`
  2679  	// ForceSendFields is a list of field names (e.g. "Events") to unconditionally
  2680  	// include in API requests. By default, fields with empty or default values are
  2681  	// omitted from API requests. See
  2682  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2683  	// details.
  2684  	ForceSendFields []string `json:"-"`
  2685  	// NullFields is a list of field names (e.g. "Events") to include in API
  2686  	// requests with the JSON null value. By default, fields with empty values are
  2687  	// omitted from API requests. See
  2688  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2689  	NullFields []string `json:"-"`
  2690  }
  2691  
  2692  func (s *EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents) MarshalJSON() ([]byte, error) {
  2693  	type NoMethod EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents
  2694  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2695  }
  2696  
  2697  // EnterpriseTopazSidekickMeetingNotesCardError: Errors in the creation of
  2698  // meeting notes.
  2699  type EnterpriseTopazSidekickMeetingNotesCardError struct {
  2700  	// Description: The description of the reason why create-meeting-notes failed.
  2701  	Description string `json:"description,omitempty"`
  2702  	// Event: The event to request meeting notes creation
  2703  	Event *EnterpriseTopazSidekickAgendaEntry `json:"event,omitempty"`
  2704  	// Reason: The reason why create-meeting-notes failed.
  2705  	//
  2706  	// Possible values:
  2707  	//   "NONE" - No reason (default value).
  2708  	//   "NOT_OWNER" - The user is not an owner.
  2709  	//   "UNKNOWN" - Unknown reason.
  2710  	Reason string `json:"reason,omitempty"`
  2711  	// ForceSendFields is a list of field names (e.g. "Description") to
  2712  	// unconditionally include in API requests. By default, fields with empty or
  2713  	// default values are omitted from API requests. See
  2714  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2715  	// details.
  2716  	ForceSendFields []string `json:"-"`
  2717  	// NullFields is a list of field names (e.g. "Description") to include in API
  2718  	// requests with the JSON null value. By default, fields with empty values are
  2719  	// omitted from API requests. See
  2720  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2721  	NullFields []string `json:"-"`
  2722  }
  2723  
  2724  func (s *EnterpriseTopazSidekickMeetingNotesCardError) MarshalJSON() ([]byte, error) {
  2725  	type NoMethod EnterpriseTopazSidekickMeetingNotesCardError
  2726  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2727  }
  2728  
  2729  // EnterpriseTopazSidekickMeetingNotesCardProto: Information about the meeting
  2730  // notes created.
  2731  type EnterpriseTopazSidekickMeetingNotesCardProto struct {
  2732  	// Event: The event to request meeting notes creation.
  2733  	Event *EnterpriseTopazSidekickAgendaEntry `json:"event,omitempty"`
  2734  	// FileId: Google Drive ID (a.k.a. resource ID) of the file.
  2735  	FileId string `json:"fileId,omitempty"`
  2736  	// Title: Title we want to show for meeting notes in the answer card
  2737  	Title string `json:"title,omitempty"`
  2738  	// Url: New URL.
  2739  	Url string `json:"url,omitempty"`
  2740  	// ForceSendFields is a list of field names (e.g. "Event") to unconditionally
  2741  	// include in API requests. By default, fields with empty or default values are
  2742  	// omitted from API requests. See
  2743  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2744  	// details.
  2745  	ForceSendFields []string `json:"-"`
  2746  	// NullFields is a list of field names (e.g. "Event") to include in API
  2747  	// requests with the JSON null value. By default, fields with empty values are
  2748  	// omitted from API requests. See
  2749  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2750  	NullFields []string `json:"-"`
  2751  }
  2752  
  2753  func (s *EnterpriseTopazSidekickMeetingNotesCardProto) MarshalJSON() ([]byte, error) {
  2754  	type NoMethod EnterpriseTopazSidekickMeetingNotesCardProto
  2755  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2756  }
  2757  
  2758  // EnterpriseTopazSidekickMeetingNotesCardRequest: Meeting notes card request.
  2759  type EnterpriseTopazSidekickMeetingNotesCardRequest struct {
  2760  	// CanCreateFor: Who are the meeting notes created for.
  2761  	//
  2762  	// Possible values:
  2763  	//   "UNKNOWN" - Unknown (default).
  2764  	//   "MYSELF" - For the requester.
  2765  	//   "ALL_ATTENDEES" - For all the meeting attendees.
  2766  	CanCreateFor []string `json:"canCreateFor,omitempty"`
  2767  	// Error: The error and reason if known error occured.
  2768  	Error *EnterpriseTopazSidekickMeetingNotesCardError `json:"error,omitempty"`
  2769  	// Event: The event to request meeting notes creation
  2770  	Event *EnterpriseTopazSidekickAgendaEntry `json:"event,omitempty"`
  2771  	// ForceSendFields is a list of field names (e.g. "CanCreateFor") to
  2772  	// unconditionally include in API requests. By default, fields with empty or
  2773  	// default values are omitted from API requests. See
  2774  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2775  	// details.
  2776  	ForceSendFields []string `json:"-"`
  2777  	// NullFields is a list of field names (e.g. "CanCreateFor") to include in API
  2778  	// requests with the JSON null value. By default, fields with empty values are
  2779  	// omitted from API requests. See
  2780  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2781  	NullFields []string `json:"-"`
  2782  }
  2783  
  2784  func (s *EnterpriseTopazSidekickMeetingNotesCardRequest) MarshalJSON() ([]byte, error) {
  2785  	type NoMethod EnterpriseTopazSidekickMeetingNotesCardRequest
  2786  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2787  }
  2788  
  2789  // EnterpriseTopazSidekickNlpMetadata: Metadata about the NLP interpretation of
  2790  // the query.
  2791  type EnterpriseTopazSidekickNlpMetadata struct {
  2792  	// Confidence: Confidence of the interpretation that generated this card.
  2793  	Confidence float64 `json:"confidence,omitempty"`
  2794  	// ForceSendFields is a list of field names (e.g. "Confidence") to
  2795  	// unconditionally include in API requests. By default, fields with empty or
  2796  	// default values are omitted from API requests. See
  2797  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2798  	// details.
  2799  	ForceSendFields []string `json:"-"`
  2800  	// NullFields is a list of field names (e.g. "Confidence") to include in API
  2801  	// requests with the JSON null value. By default, fields with empty values are
  2802  	// omitted from API requests. See
  2803  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2804  	NullFields []string `json:"-"`
  2805  }
  2806  
  2807  func (s *EnterpriseTopazSidekickNlpMetadata) MarshalJSON() ([]byte, error) {
  2808  	type NoMethod EnterpriseTopazSidekickNlpMetadata
  2809  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2810  }
  2811  
  2812  func (s *EnterpriseTopazSidekickNlpMetadata) UnmarshalJSON(data []byte) error {
  2813  	type NoMethod EnterpriseTopazSidekickNlpMetadata
  2814  	var s1 struct {
  2815  		Confidence gensupport.JSONFloat64 `json:"confidence"`
  2816  		*NoMethod
  2817  	}
  2818  	s1.NoMethod = (*NoMethod)(s)
  2819  	if err := json.Unmarshal(data, &s1); err != nil {
  2820  		return err
  2821  	}
  2822  	s.Confidence = float64(s1.Confidence)
  2823  	return nil
  2824  }
  2825  
  2826  // EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo: Metadata for
  2827  // disambiguation.
  2828  type EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo struct {
  2829  	// Disambiguation: A list of people that also matched the query. This list is
  2830  	// not complete.
  2831  	Disambiguation []*EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson `json:"disambiguation,omitempty"`
  2832  	// Name: The name that was extracted from the query. This may be in the form of
  2833  	// the given name, last name, full name, LDAP, or email address. This name can
  2834  	// be considered suitable for displaying to the user and can largely be
  2835  	// considered to be normalized (e.g. "Bob's" -> "Bob").
  2836  	Name string `json:"name,omitempty"`
  2837  	// ForceSendFields is a list of field names (e.g. "Disambiguation") to
  2838  	// unconditionally include in API requests. By default, fields with empty or
  2839  	// default values are omitted from API requests. See
  2840  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2841  	// details.
  2842  	ForceSendFields []string `json:"-"`
  2843  	// NullFields is a list of field names (e.g. "Disambiguation") to include in
  2844  	// API requests with the JSON null value. By default, fields with empty values
  2845  	// are omitted from API requests. See
  2846  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2847  	NullFields []string `json:"-"`
  2848  }
  2849  
  2850  func (s *EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo) MarshalJSON() ([]byte, error) {
  2851  	type NoMethod EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo
  2852  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2853  }
  2854  
  2855  // EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson: A
  2856  // person that also matches the query, but was not selected due to a lower
  2857  // affinity with the requesting user.
  2858  type EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson struct {
  2859  	// Person: The profile of this person.
  2860  	Person *EnterpriseTopazSidekickCommonPerson `json:"person,omitempty"`
  2861  	// Query: The query that can be used to produce an answer card with the same
  2862  	// attribute, but for this person.
  2863  	Query string `json:"query,omitempty"`
  2864  	// ForceSendFields is a list of field names (e.g. "Person") to unconditionally
  2865  	// include in API requests. By default, fields with empty or default values are
  2866  	// omitted from API requests. See
  2867  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2868  	// details.
  2869  	ForceSendFields []string `json:"-"`
  2870  	// NullFields is a list of field names (e.g. "Person") to include in API
  2871  	// requests with the JSON null value. By default, fields with empty values are
  2872  	// omitted from API requests. See
  2873  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2874  	NullFields []string `json:"-"`
  2875  }
  2876  
  2877  func (s *EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson) MarshalJSON() ([]byte, error) {
  2878  	type NoMethod EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson
  2879  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2880  }
  2881  
  2882  // EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader: Recommended
  2883  // header to display for the card.
  2884  type EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader struct {
  2885  	// Title: The suggested title to display. This defaults to the user's query.
  2886  	Title string `json:"title,omitempty"`
  2887  	// ForceSendFields is a list of field names (e.g. "Title") to unconditionally
  2888  	// include in API requests. By default, fields with empty or default values are
  2889  	// omitted from API requests. See
  2890  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2891  	// details.
  2892  	ForceSendFields []string `json:"-"`
  2893  	// NullFields is a list of field names (e.g. "Title") to include in API
  2894  	// requests with the JSON null value. By default, fields with empty values are
  2895  	// omitted from API requests. See
  2896  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2897  	NullFields []string `json:"-"`
  2898  }
  2899  
  2900  func (s *EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader) MarshalJSON() ([]byte, error) {
  2901  	type NoMethod EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader
  2902  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2903  }
  2904  
  2905  // EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard: An answer card for a
  2906  // single person.
  2907  type EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard struct {
  2908  	// Answer: List of answers.
  2909  	Answer []*SafeHtmlProto `json:"answer,omitempty"`
  2910  	// AnswerText: List of answers.
  2911  	AnswerText *EnterpriseTopazSidekickAnswerAnswerList `json:"answerText,omitempty"`
  2912  	// DisambiguationInfo: Disambiguation information.
  2913  	DisambiguationInfo *EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo `json:"disambiguationInfo,omitempty"`
  2914  	// Header: The header to display for the card.
  2915  	Header *EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader `json:"header,omitempty"`
  2916  	// ResponseStatus: The response status.
  2917  	//
  2918  	// Possible values:
  2919  	//   "UNKNOWN" - Unknown.
  2920  	//   "SUCCESS" - Success.
  2921  	//   "MISSING_PERSON" - No such person was found in the user's domain.
  2922  	//   "MISSING_DATA" - A person was found to match the query, but an answer
  2923  	// could not be obtained.
  2924  	ResponseStatus string `json:"responseStatus,omitempty"`
  2925  	// StatusMessage: Localized user friendly message to display to the user in the
  2926  	// case of missing data or an error.
  2927  	StatusMessage string `json:"statusMessage,omitempty"`
  2928  	// Subject: The profile of the person that was the subject of the query.
  2929  	Subject *EnterpriseTopazSidekickCommonPerson `json:"subject,omitempty"`
  2930  	// ForceSendFields is a list of field names (e.g. "Answer") to unconditionally
  2931  	// include in API requests. By default, fields with empty or default values are
  2932  	// omitted from API requests. See
  2933  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2934  	// details.
  2935  	ForceSendFields []string `json:"-"`
  2936  	// NullFields is a list of field names (e.g. "Answer") to include in API
  2937  	// requests with the JSON null value. By default, fields with empty values are
  2938  	// omitted from API requests. See
  2939  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2940  	NullFields []string `json:"-"`
  2941  }
  2942  
  2943  func (s *EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard) MarshalJSON() ([]byte, error) {
  2944  	type NoMethod EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard
  2945  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2946  }
  2947  
  2948  // EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard: An answer card
  2949  // for a list of people that are related to the subject of the query.
  2950  type EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard struct {
  2951  	// DisambiguationInfo: Disambiguation information.
  2952  	DisambiguationInfo *EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo `json:"disambiguationInfo,omitempty"`
  2953  	// Header: The header to display for the card.
  2954  	Header *EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader `json:"header,omitempty"`
  2955  	// RelatedPeople: A list of people that are related to the query subject.
  2956  	RelatedPeople []*EnterpriseTopazSidekickCommonPerson `json:"relatedPeople,omitempty"`
  2957  	// RelationType: Defines the type of relation the list of people have with the
  2958  	// subject of the card.
  2959  	//
  2960  	// Possible values:
  2961  	//   "UNKNOWN" - Unknown.
  2962  	//   "DIRECT_REPORTS" - Direct reports.
  2963  	//   "MANAGER" - The manager.
  2964  	//   "PEERS" - The teammates/peers of the subject.
  2965  	RelationType string `json:"relationType,omitempty"`
  2966  	// ResponseStatus: The response status.
  2967  	//
  2968  	// Possible values:
  2969  	//   "UNKNOWN" - Unknown.
  2970  	//   "SUCCESS" - Success.
  2971  	//   "MISSING_PERSON" - No such person was found in the user's domain.
  2972  	//   "MISSING_DATA" - A person was found to match the query, but an answer
  2973  	// could not be obtained.
  2974  	ResponseStatus string `json:"responseStatus,omitempty"`
  2975  	// StatusMessage: Localized user friendly message to display to the user in the
  2976  	// case of missing data or an error.
  2977  	StatusMessage string `json:"statusMessage,omitempty"`
  2978  	// Subject: The profile of the person that was the subject of the query.
  2979  	Subject *EnterpriseTopazSidekickCommonPerson `json:"subject,omitempty"`
  2980  	// ForceSendFields is a list of field names (e.g. "DisambiguationInfo") to
  2981  	// unconditionally include in API requests. By default, fields with empty or
  2982  	// default values are omitted from API requests. See
  2983  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  2984  	// details.
  2985  	ForceSendFields []string `json:"-"`
  2986  	// NullFields is a list of field names (e.g. "DisambiguationInfo") to include
  2987  	// in API requests with the JSON null value. By default, fields with empty
  2988  	// values are omitted from API requests. See
  2989  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  2990  	NullFields []string `json:"-"`
  2991  }
  2992  
  2993  func (s *EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard) MarshalJSON() ([]byte, error) {
  2994  	type NoMethod EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard
  2995  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  2996  }
  2997  
  2998  type EnterpriseTopazSidekickPeopleDisambiguationCard struct {
  2999  	// Person: Candidate persons for the query.
  3000  	Person []*EnterpriseTopazSidekickCommonPerson `json:"person,omitempty"`
  3001  	// ForceSendFields is a list of field names (e.g. "Person") to unconditionally
  3002  	// include in API requests. By default, fields with empty or default values are
  3003  	// omitted from API requests. See
  3004  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3005  	// details.
  3006  	ForceSendFields []string `json:"-"`
  3007  	// NullFields is a list of field names (e.g. "Person") to include in API
  3008  	// requests with the JSON null value. By default, fields with empty values are
  3009  	// omitted from API requests. See
  3010  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3011  	NullFields []string `json:"-"`
  3012  }
  3013  
  3014  func (s *EnterpriseTopazSidekickPeopleDisambiguationCard) MarshalJSON() ([]byte, error) {
  3015  	type NoMethod EnterpriseTopazSidekickPeopleDisambiguationCard
  3016  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3017  }
  3018  
  3019  // EnterpriseTopazSidekickPerson: Person.
  3020  type EnterpriseTopazSidekickPerson struct {
  3021  	// AffinityLevel: The level of affinity this person has with the requesting
  3022  	// user.
  3023  	//
  3024  	// Possible values:
  3025  	//   "UNKNOWN"
  3026  	//   "LOW"
  3027  	//   "MEDIUM"
  3028  	//   "HIGH"
  3029  	AffinityLevel string `json:"affinityLevel,omitempty"`
  3030  	// AttendingStatus: Attendance status of the person when included in a meeting
  3031  	// event.
  3032  	//
  3033  	// Possible values:
  3034  	//   "AWAITING" - Awaiting for the user to set the status.
  3035  	//   "YES" - Attending.
  3036  	//   "NO" - Not attending.
  3037  	//   "MAYBE" - Tentatively attending.
  3038  	AttendingStatus string `json:"attendingStatus,omitempty"`
  3039  	// Email: Email.
  3040  	Email string `json:"email,omitempty"`
  3041  	// GaiaId: Gaia id.
  3042  	GaiaId int64 `json:"gaiaId,omitempty,string"`
  3043  	// IsGroup: Whether the invitee is a group.
  3044  	IsGroup bool `json:"isGroup,omitempty"`
  3045  	// Name: Name.
  3046  	Name string `json:"name,omitempty"`
  3047  	// ObfuscatedGaiaId: Obfuscated Gaia id.
  3048  	ObfuscatedGaiaId string `json:"obfuscatedGaiaId,omitempty"`
  3049  	// PhotoUrl: Absolute URL to the profile photo of the person.
  3050  	PhotoUrl string `json:"photoUrl,omitempty"`
  3051  	// ForceSendFields is a list of field names (e.g. "AffinityLevel") to
  3052  	// unconditionally include in API requests. By default, fields with empty or
  3053  	// default values are omitted from API requests. See
  3054  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3055  	// details.
  3056  	ForceSendFields []string `json:"-"`
  3057  	// NullFields is a list of field names (e.g. "AffinityLevel") to include in API
  3058  	// requests with the JSON null value. By default, fields with empty values are
  3059  	// omitted from API requests. See
  3060  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3061  	NullFields []string `json:"-"`
  3062  }
  3063  
  3064  func (s *EnterpriseTopazSidekickPerson) MarshalJSON() ([]byte, error) {
  3065  	type NoMethod EnterpriseTopazSidekickPerson
  3066  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3067  }
  3068  
  3069  type EnterpriseTopazSidekickPersonProfileCard struct {
  3070  	RelatedPeople []*EnterpriseTopazSidekickPersonProfileCardRelatedPeople `json:"relatedPeople,omitempty"`
  3071  	// Subject: The subject of the card.
  3072  	Subject *EnterpriseTopazSidekickCommonPerson `json:"subject,omitempty"`
  3073  	// ForceSendFields is a list of field names (e.g. "RelatedPeople") to
  3074  	// unconditionally include in API requests. By default, fields with empty or
  3075  	// default values are omitted from API requests. See
  3076  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3077  	// details.
  3078  	ForceSendFields []string `json:"-"`
  3079  	// NullFields is a list of field names (e.g. "RelatedPeople") to include in API
  3080  	// requests with the JSON null value. By default, fields with empty values are
  3081  	// omitted from API requests. See
  3082  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3083  	NullFields []string `json:"-"`
  3084  }
  3085  
  3086  func (s *EnterpriseTopazSidekickPersonProfileCard) MarshalJSON() ([]byte, error) {
  3087  	type NoMethod EnterpriseTopazSidekickPersonProfileCard
  3088  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3089  }
  3090  
  3091  type EnterpriseTopazSidekickPersonProfileCardRelatedPeople struct {
  3092  	// RelatedPerson: Related people.
  3093  	RelatedPerson []*EnterpriseTopazSidekickCommonPerson `json:"relatedPerson,omitempty"`
  3094  	// Relation: Relation type.
  3095  	//
  3096  	// Possible values:
  3097  	//   "UNKNOWN"
  3098  	//   "MANAGER"
  3099  	//   "DIRECT_REPORT"
  3100  	Relation string `json:"relation,omitempty"`
  3101  	// ForceSendFields is a list of field names (e.g. "RelatedPerson") to
  3102  	// unconditionally include in API requests. By default, fields with empty or
  3103  	// default values are omitted from API requests. See
  3104  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3105  	// details.
  3106  	ForceSendFields []string `json:"-"`
  3107  	// NullFields is a list of field names (e.g. "RelatedPerson") to include in API
  3108  	// requests with the JSON null value. By default, fields with empty values are
  3109  	// omitted from API requests. See
  3110  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3111  	NullFields []string `json:"-"`
  3112  }
  3113  
  3114  func (s *EnterpriseTopazSidekickPersonProfileCardRelatedPeople) MarshalJSON() ([]byte, error) {
  3115  	type NoMethod EnterpriseTopazSidekickPersonProfileCardRelatedPeople
  3116  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3117  }
  3118  
  3119  // EnterpriseTopazSidekickPersonalizedDocsCardProto: Personalized docs card
  3120  // proto.
  3121  type EnterpriseTopazSidekickPersonalizedDocsCardProto struct {
  3122  	// DocumentGroup: Document group.
  3123  	DocumentGroup []*EnterpriseTopazSidekickDocumentGroup `json:"documentGroup,omitempty"`
  3124  	// ForceSendFields is a list of field names (e.g. "DocumentGroup") to
  3125  	// unconditionally include in API requests. By default, fields with empty or
  3126  	// default values are omitted from API requests. See
  3127  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3128  	// details.
  3129  	ForceSendFields []string `json:"-"`
  3130  	// NullFields is a list of field names (e.g. "DocumentGroup") to include in API
  3131  	// requests with the JSON null value. By default, fields with empty values are
  3132  	// omitted from API requests. See
  3133  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3134  	NullFields []string `json:"-"`
  3135  }
  3136  
  3137  func (s *EnterpriseTopazSidekickPersonalizedDocsCardProto) MarshalJSON() ([]byte, error) {
  3138  	type NoMethod EnterpriseTopazSidekickPersonalizedDocsCardProto
  3139  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3140  }
  3141  
  3142  // EnterpriseTopazSidekickRankingParams: Ranking params.
  3143  type EnterpriseTopazSidekickRankingParams struct {
  3144  	// EndTimeMs: The end-time that this object will expect to occur. If the type
  3145  	// is marked as FIXED, then this end-time will persist after bidding. If the
  3146  	// type is marked as FLEXIBLE, this field is NOT expected to be filled and will
  3147  	// be filled in after it has won a bid. Expected to be set when type is set to
  3148  	// FIXED.
  3149  	EndTimeMs uint64 `json:"endTimeMs,omitempty,string"`
  3150  	// Priority: The priority to determine between objects that have the same
  3151  	// start_time_ms The lower-value of priority == ranked higher. Max-priority =
  3152  	// 0. Expected to be set for all types.
  3153  	//
  3154  	// Possible values:
  3155  	//   "UNKNOWN" - Unknown (default).
  3156  	//   "CRITICAL" - Critical.
  3157  	//   "IMPORTANT" - Important.
  3158  	//   "HIGH" - High.
  3159  	//   "NORMAL" - Normal.
  3160  	//   "BEST_EFFORT" - Best effort.
  3161  	Priority string `json:"priority,omitempty"`
  3162  	// Score: The score of the card to be used to break priority-ties
  3163  	Score float64 `json:"score,omitempty"`
  3164  	// SpanMs: The span that this card will take in the stream Expected to be set
  3165  	// when type is set to FLEXIBLE.
  3166  	SpanMs uint64 `json:"spanMs,omitempty,string"`
  3167  	// StartTimeMs: The start-time that this object will bid-for If the type is
  3168  	// marked as FIXED, then this start-time will persist after bidding. If the
  3169  	// type is marked as FLEXIBLE, then it will occur at the given time or sometime
  3170  	// after the requested time. Expected to be set for all types.
  3171  	StartTimeMs uint64 `json:"startTimeMs,omitempty,string"`
  3172  	// Type: The packing type of this object.
  3173  	//
  3174  	// Possible values:
  3175  	//   "FIXED" - Fixed, i.e., the card is time sensitive.
  3176  	//   "FLEXIBLE" - Flexible, i.e., the card is not time sensitive.
  3177  	Type string `json:"type,omitempty"`
  3178  	// ForceSendFields is a list of field names (e.g. "EndTimeMs") to
  3179  	// unconditionally include in API requests. By default, fields with empty or
  3180  	// default values are omitted from API requests. See
  3181  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3182  	// details.
  3183  	ForceSendFields []string `json:"-"`
  3184  	// NullFields is a list of field names (e.g. "EndTimeMs") to include in API
  3185  	// requests with the JSON null value. By default, fields with empty values are
  3186  	// omitted from API requests. See
  3187  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3188  	NullFields []string `json:"-"`
  3189  }
  3190  
  3191  func (s *EnterpriseTopazSidekickRankingParams) MarshalJSON() ([]byte, error) {
  3192  	type NoMethod EnterpriseTopazSidekickRankingParams
  3193  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3194  }
  3195  
  3196  func (s *EnterpriseTopazSidekickRankingParams) UnmarshalJSON(data []byte) error {
  3197  	type NoMethod EnterpriseTopazSidekickRankingParams
  3198  	var s1 struct {
  3199  		Score gensupport.JSONFloat64 `json:"score"`
  3200  		*NoMethod
  3201  	}
  3202  	s1.NoMethod = (*NoMethod)(s)
  3203  	if err := json.Unmarshal(data, &s1); err != nil {
  3204  		return err
  3205  	}
  3206  	s.Score = float64(s1.Score)
  3207  	return nil
  3208  }
  3209  
  3210  type EnterpriseTopazSidekickRecentDocumentsCardProto struct {
  3211  	Document []*EnterpriseTopazSidekickCommonDocument `json:"document,omitempty"`
  3212  	// ForceSendFields is a list of field names (e.g. "Document") to
  3213  	// unconditionally include in API requests. By default, fields with empty or
  3214  	// default values are omitted from API requests. See
  3215  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3216  	// details.
  3217  	ForceSendFields []string `json:"-"`
  3218  	// NullFields is a list of field names (e.g. "Document") to include in API
  3219  	// requests with the JSON null value. By default, fields with empty values are
  3220  	// omitted from API requests. See
  3221  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3222  	NullFields []string `json:"-"`
  3223  }
  3224  
  3225  func (s *EnterpriseTopazSidekickRecentDocumentsCardProto) MarshalJSON() ([]byte, error) {
  3226  	type NoMethod EnterpriseTopazSidekickRecentDocumentsCardProto
  3227  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3228  }
  3229  
  3230  // EnterpriseTopazSidekickScheduledMeeting: Details about scheduled meetings.
  3231  type EnterpriseTopazSidekickScheduledMeeting struct {
  3232  	// MeetingLocation: The meeting location.
  3233  	MeetingLocation string `json:"meetingLocation,omitempty"`
  3234  	// MeetingTime: The meeting time slot.
  3235  	MeetingTime *EnterpriseTopazSidekickTimeSlot `json:"meetingTime,omitempty"`
  3236  	// MeetingTitle: The meeting title.
  3237  	MeetingTitle string `json:"meetingTitle,omitempty"`
  3238  	// ForceSendFields is a list of field names (e.g. "MeetingLocation") to
  3239  	// unconditionally include in API requests. By default, fields with empty or
  3240  	// default values are omitted from API requests. See
  3241  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3242  	// details.
  3243  	ForceSendFields []string `json:"-"`
  3244  	// NullFields is a list of field names (e.g. "MeetingLocation") to include in
  3245  	// API requests with the JSON null value. By default, fields with empty values
  3246  	// are omitted from API requests. See
  3247  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3248  	NullFields []string `json:"-"`
  3249  }
  3250  
  3251  func (s *EnterpriseTopazSidekickScheduledMeeting) MarshalJSON() ([]byte, error) {
  3252  	type NoMethod EnterpriseTopazSidekickScheduledMeeting
  3253  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3254  }
  3255  
  3256  // EnterpriseTopazSidekickShareMeetingDocsCardProto: Share meeting docs card
  3257  // proto.
  3258  type EnterpriseTopazSidekickShareMeetingDocsCardProto struct {
  3259  	// Document: Documents to share for the given meeting.
  3260  	Document []*EnterpriseTopazSidekickCommonDocument `json:"document,omitempty"`
  3261  	// Event: Event.
  3262  	Event *EnterpriseTopazSidekickAgendaEntry `json:"event,omitempty"`
  3263  	// ForceSendFields is a list of field names (e.g. "Document") to
  3264  	// unconditionally include in API requests. By default, fields with empty or
  3265  	// default values are omitted from API requests. See
  3266  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3267  	// details.
  3268  	ForceSendFields []string `json:"-"`
  3269  	// NullFields is a list of field names (e.g. "Document") to include in API
  3270  	// requests with the JSON null value. By default, fields with empty values are
  3271  	// omitted from API requests. See
  3272  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3273  	NullFields []string `json:"-"`
  3274  }
  3275  
  3276  func (s *EnterpriseTopazSidekickShareMeetingDocsCardProto) MarshalJSON() ([]byte, error) {
  3277  	type NoMethod EnterpriseTopazSidekickShareMeetingDocsCardProto
  3278  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3279  }
  3280  
  3281  // EnterpriseTopazSidekickTimeSlot: Slot of time.
  3282  type EnterpriseTopazSidekickTimeSlot struct {
  3283  	// EndTimeDay: Day end time at the user's timezone.
  3284  	EndTimeDay string `json:"endTimeDay,omitempty"`
  3285  	// EndTimeHourAndMinute: Hour and minute of the end time at the user's
  3286  	// timezone.
  3287  	EndTimeHourAndMinute string `json:"endTimeHourAndMinute,omitempty"`
  3288  	// EndTimeInMillis: End time in milliseconds.
  3289  	EndTimeInMillis int64 `json:"endTimeInMillis,omitempty,string"`
  3290  	// StartTimeDay: Day start time at user's timezone.
  3291  	StartTimeDay string `json:"startTimeDay,omitempty"`
  3292  	// StartTimeHourAndMinute: Hour and minute of the start time at the user's
  3293  	// timezone.
  3294  	StartTimeHourAndMinute string `json:"startTimeHourAndMinute,omitempty"`
  3295  	// StartTimeInMillis: Start time in milliseconds.
  3296  	StartTimeInMillis int64 `json:"startTimeInMillis,omitempty,string"`
  3297  	// ForceSendFields is a list of field names (e.g. "EndTimeDay") to
  3298  	// unconditionally include in API requests. By default, fields with empty or
  3299  	// default values are omitted from API requests. See
  3300  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3301  	// details.
  3302  	ForceSendFields []string `json:"-"`
  3303  	// NullFields is a list of field names (e.g. "EndTimeDay") to include in API
  3304  	// requests with the JSON null value. By default, fields with empty values are
  3305  	// omitted from API requests. See
  3306  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3307  	NullFields []string `json:"-"`
  3308  }
  3309  
  3310  func (s *EnterpriseTopazSidekickTimeSlot) MarshalJSON() ([]byte, error) {
  3311  	type NoMethod EnterpriseTopazSidekickTimeSlot
  3312  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3313  }
  3314  
  3315  // EnumOperatorOptions: Used to provide a search operator for enum properties.
  3316  // This is optional. Search operators let users restrict the query to specific
  3317  // fields relevant to the type of item being searched. For example, if you
  3318  // provide no operator for a *priority* enum property with possible values *p0*
  3319  // and *p1*, a query that contains the term *p0* returns items that have *p0*
  3320  // as the value of the *priority* property, as well as any items that contain
  3321  // the string *p0* in other fields. If you provide an operator name for the
  3322  // enum, such as *priority*, then search users can use that operator to refine
  3323  // results to only items that have *p0* as this property's value, with the
  3324  // query *priority:p0*.
  3325  type EnumOperatorOptions struct {
  3326  	// OperatorName: Indicates the operator name required in the query in order to
  3327  	// isolate the enum property. For example, if operatorName is *priority* and
  3328  	// the property's name is *priorityVal*, then queries like *priority:<value>*
  3329  	// show results only where the value of the property named *priorityVal*
  3330  	// matches *<value>*. By contrast, a search that uses the same *<value>*
  3331  	// without an operator returns all items where *<value>* matches the value of
  3332  	// any String properties or text within the content field for the item. The
  3333  	// operator name can only contain lowercase letters (a-z). The maximum length
  3334  	// is 32 characters.
  3335  	OperatorName string `json:"operatorName,omitempty"`
  3336  	// ForceSendFields is a list of field names (e.g. "OperatorName") to
  3337  	// unconditionally include in API requests. By default, fields with empty or
  3338  	// default values are omitted from API requests. See
  3339  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3340  	// details.
  3341  	ForceSendFields []string `json:"-"`
  3342  	// NullFields is a list of field names (e.g. "OperatorName") to include in API
  3343  	// requests with the JSON null value. By default, fields with empty values are
  3344  	// omitted from API requests. See
  3345  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3346  	NullFields []string `json:"-"`
  3347  }
  3348  
  3349  func (s *EnumOperatorOptions) MarshalJSON() ([]byte, error) {
  3350  	type NoMethod EnumOperatorOptions
  3351  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3352  }
  3353  
  3354  // EnumPropertyOptions: The options for enum properties, which allow you to
  3355  // define a restricted set of strings to match user queries, set rankings for
  3356  // those string values, and define an operator name to be paired with those
  3357  // strings so that users can narrow results to only items with a specific
  3358  // value. For example, for items in a request tracking system with priority
  3359  // information, you could define *p0* as an allowable enum value and tie this
  3360  // enum to the operator name *priority* so that search users could add
  3361  // *priority:p0* to their query to restrict the set of results to only those
  3362  // items indexed with the value *p0*.
  3363  type EnumPropertyOptions struct {
  3364  	// OperatorOptions: If set, describes how the enum should be used as a search
  3365  	// operator.
  3366  	OperatorOptions *EnumOperatorOptions `json:"operatorOptions,omitempty"`
  3367  	// OrderedRanking: Used to specify the ordered ranking for the enumeration that
  3368  	// determines how the integer values provided in the possible EnumValuePairs
  3369  	// are used to rank results. If specified, integer values must be provided for
  3370  	// all possible EnumValuePair values given for this property. Can only be used
  3371  	// if isRepeatable is false.
  3372  	//
  3373  	// Possible values:
  3374  	//   "NO_ORDER" - There is no ranking order for the property. Results aren't
  3375  	// adjusted by this property's value.
  3376  	//   "ASCENDING" - This property is ranked in ascending order. Lower values
  3377  	// indicate lower ranking.
  3378  	//   "DESCENDING" - This property is ranked in descending order. Lower values
  3379  	// indicate higher ranking.
  3380  	OrderedRanking string `json:"orderedRanking,omitempty"`
  3381  	// PossibleValues: The list of possible values for the enumeration property.
  3382  	// All EnumValuePairs must provide a string value. If you specify an integer
  3383  	// value for one EnumValuePair, then all possible EnumValuePairs must provide
  3384  	// an integer value. Both the string value and integer value must be unique
  3385  	// over all possible values. Once set, possible values cannot be removed or
  3386  	// modified. If you supply an ordered ranking and think you might insert
  3387  	// additional enum values in the future, leave gaps in the initial integer
  3388  	// values to allow adding a value in between previously registered values. The
  3389  	// maximum number of elements is 100.
  3390  	PossibleValues []*EnumValuePair `json:"possibleValues,omitempty"`
  3391  	// ForceSendFields is a list of field names (e.g. "OperatorOptions") to
  3392  	// unconditionally include in API requests. By default, fields with empty or
  3393  	// default values are omitted from API requests. See
  3394  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3395  	// details.
  3396  	ForceSendFields []string `json:"-"`
  3397  	// NullFields is a list of field names (e.g. "OperatorOptions") to include in
  3398  	// API requests with the JSON null value. By default, fields with empty values
  3399  	// are omitted from API requests. See
  3400  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3401  	NullFields []string `json:"-"`
  3402  }
  3403  
  3404  func (s *EnumPropertyOptions) MarshalJSON() ([]byte, error) {
  3405  	type NoMethod EnumPropertyOptions
  3406  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3407  }
  3408  
  3409  // EnumValuePair: The enumeration value pair defines two things: a required
  3410  // string value and an optional integer value. The string value defines the
  3411  // necessary query term required to retrieve that item, such as *p0* for a
  3412  // priority item. The integer value determines the ranking of that string value
  3413  // relative to other enumerated values for the same property. For example, you
  3414  // might associate *p0* with *0* and define another enum pair such as *p1* and
  3415  // *1*. You must use the integer value in combination with ordered ranking to
  3416  // set the ranking of a given value relative to other enumerated values for the
  3417  // same property name. Here, a ranking order of DESCENDING for *priority*
  3418  // properties results in a ranking boost for items indexed with a value of *p0*
  3419  // compared to items indexed with a value of *p1*. Without a specified ranking
  3420  // order, the integer value has no effect on item ranking.
  3421  type EnumValuePair struct {
  3422  	// IntegerValue: The integer value of the EnumValuePair which must be
  3423  	// non-negative. Optional.
  3424  	IntegerValue int64 `json:"integerValue,omitempty"`
  3425  	// StringValue: The string value of the EnumValuePair. The maximum length is 32
  3426  	// characters.
  3427  	StringValue string `json:"stringValue,omitempty"`
  3428  	// ForceSendFields is a list of field names (e.g. "IntegerValue") to
  3429  	// unconditionally include in API requests. By default, fields with empty or
  3430  	// default values are omitted from API requests. See
  3431  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3432  	// details.
  3433  	ForceSendFields []string `json:"-"`
  3434  	// NullFields is a list of field names (e.g. "IntegerValue") to include in API
  3435  	// requests with the JSON null value. By default, fields with empty values are
  3436  	// omitted from API requests. See
  3437  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3438  	NullFields []string `json:"-"`
  3439  }
  3440  
  3441  func (s *EnumValuePair) MarshalJSON() ([]byte, error) {
  3442  	type NoMethod EnumValuePair
  3443  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3444  }
  3445  
  3446  // EnumValues: List of enum values.
  3447  type EnumValues struct {
  3448  	// Values: The maximum allowable length for string values is 32 characters.
  3449  	Values []string `json:"values,omitempty"`
  3450  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  3451  	// include in API requests. By default, fields with empty or default values are
  3452  	// omitted from API requests. See
  3453  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3454  	// details.
  3455  	ForceSendFields []string `json:"-"`
  3456  	// NullFields is a list of field names (e.g. "Values") to include in API
  3457  	// requests with the JSON null value. By default, fields with empty values are
  3458  	// omitted from API requests. See
  3459  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3460  	NullFields []string `json:"-"`
  3461  }
  3462  
  3463  func (s *EnumValues) MarshalJSON() ([]byte, error) {
  3464  	type NoMethod EnumValues
  3465  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3466  }
  3467  
  3468  // ErrorInfo: Error information about the response.
  3469  type ErrorInfo struct {
  3470  	ErrorMessages []*ErrorMessage `json:"errorMessages,omitempty"`
  3471  	// ForceSendFields is a list of field names (e.g. "ErrorMessages") to
  3472  	// unconditionally include in API requests. By default, fields with empty or
  3473  	// default values are omitted from API requests. See
  3474  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3475  	// details.
  3476  	ForceSendFields []string `json:"-"`
  3477  	// NullFields is a list of field names (e.g. "ErrorMessages") to include in API
  3478  	// requests with the JSON null value. By default, fields with empty values are
  3479  	// omitted from API requests. See
  3480  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3481  	NullFields []string `json:"-"`
  3482  }
  3483  
  3484  func (s *ErrorInfo) MarshalJSON() ([]byte, error) {
  3485  	type NoMethod ErrorInfo
  3486  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3487  }
  3488  
  3489  // ErrorMessage: Error message per source response.
  3490  type ErrorMessage struct {
  3491  	ErrorMessage string  `json:"errorMessage,omitempty"`
  3492  	Source       *Source `json:"source,omitempty"`
  3493  	// ForceSendFields is a list of field names (e.g. "ErrorMessage") to
  3494  	// unconditionally include in API requests. By default, fields with empty or
  3495  	// default values are omitted from API requests. See
  3496  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3497  	// details.
  3498  	ForceSendFields []string `json:"-"`
  3499  	// NullFields is a list of field names (e.g. "ErrorMessage") to include in API
  3500  	// requests with the JSON null value. By default, fields with empty values are
  3501  	// omitted from API requests. See
  3502  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3503  	NullFields []string `json:"-"`
  3504  }
  3505  
  3506  func (s *ErrorMessage) MarshalJSON() ([]byte, error) {
  3507  	type NoMethod ErrorMessage
  3508  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3509  }
  3510  
  3511  // FacetBucket: A bucket in a facet is the basic unit of operation. A bucket
  3512  // can comprise either a single value OR a contiguous range of values,
  3513  // depending on the type of the field bucketed. FacetBucket is currently used
  3514  // only for returning the response object.
  3515  type FacetBucket struct {
  3516  	// Count: Number of results that match the bucket value. Counts are only
  3517  	// returned for searches when count accuracy is ensured. Cloud Search does not
  3518  	// guarantee facet counts for any query and facet counts might be present only
  3519  	// intermittently, even for identical queries. Do not build dependencies on
  3520  	// facet count existence; instead use facet ount percentages which are always
  3521  	// returned.
  3522  	Count int64 `json:"count,omitempty"`
  3523  	// Filter: Filter to be passed in the search request if the corresponding
  3524  	// bucket is selected.
  3525  	Filter *Filter `json:"filter,omitempty"`
  3526  	// Percentage: Percent of results that match the bucket value. The returned
  3527  	// value is between (0-100], and is rounded down to an integer if fractional.
  3528  	// If the value is not explicitly returned, it represents a percentage value
  3529  	// that rounds to 0. Percentages are returned for all searches, but are an
  3530  	// estimate. Because percentages are always returned, you should render
  3531  	// percentages instead of counts.
  3532  	Percentage int64  `json:"percentage,omitempty"`
  3533  	Value      *Value `json:"value,omitempty"`
  3534  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  3535  	// include in API requests. By default, fields with empty or default values are
  3536  	// omitted from API requests. See
  3537  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3538  	// details.
  3539  	ForceSendFields []string `json:"-"`
  3540  	// NullFields is a list of field names (e.g. "Count") to include in API
  3541  	// requests with the JSON null value. By default, fields with empty values are
  3542  	// omitted from API requests. See
  3543  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3544  	NullFields []string `json:"-"`
  3545  }
  3546  
  3547  func (s *FacetBucket) MarshalJSON() ([]byte, error) {
  3548  	type NoMethod FacetBucket
  3549  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3550  }
  3551  
  3552  // FacetOptions: Specifies operators to return facet results for. There will be
  3553  // one FacetResult for every source_name/object_type/operator_name combination.
  3554  type FacetOptions struct {
  3555  	// IntegerFacetingOptions: If set, describes integer faceting options for the
  3556  	// given integer property. The corresponding integer property in the schema
  3557  	// should be marked isFacetable. The number of buckets returned would be
  3558  	// minimum of this and num_facet_buckets.
  3559  	IntegerFacetingOptions *IntegerFacetingOptions `json:"integerFacetingOptions,omitempty"`
  3560  	// NumFacetBuckets: Maximum number of facet buckets that should be returned for
  3561  	// this facet. Defaults to 10. Maximum value is 100.
  3562  	NumFacetBuckets int64 `json:"numFacetBuckets,omitempty"`
  3563  	// ObjectType: If object_type is set, only those objects of that type will be
  3564  	// used to compute facets. If empty, then all objects will be used to compute
  3565  	// facets.
  3566  	ObjectType string `json:"objectType,omitempty"`
  3567  	// OperatorName: The name of the operator chosen for faceting. @see
  3568  	// cloudsearch.SchemaPropertyOptions
  3569  	OperatorName string `json:"operatorName,omitempty"`
  3570  	// SourceName: Source name to facet on. Format: datasources/{source_id} If
  3571  	// empty, all data sources will be used.
  3572  	SourceName string `json:"sourceName,omitempty"`
  3573  	// ForceSendFields is a list of field names (e.g. "IntegerFacetingOptions") to
  3574  	// unconditionally include in API requests. By default, fields with empty or
  3575  	// default values are omitted from API requests. See
  3576  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3577  	// details.
  3578  	ForceSendFields []string `json:"-"`
  3579  	// NullFields is a list of field names (e.g. "IntegerFacetingOptions") to
  3580  	// include in API requests with the JSON null value. By default, fields with
  3581  	// empty values are omitted from API requests. See
  3582  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3583  	NullFields []string `json:"-"`
  3584  }
  3585  
  3586  func (s *FacetOptions) MarshalJSON() ([]byte, error) {
  3587  	type NoMethod FacetOptions
  3588  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3589  }
  3590  
  3591  // FacetResult: Source specific facet response
  3592  type FacetResult struct {
  3593  	// Buckets: FacetBuckets for values in response containing at least a single
  3594  	// result with the corresponding filter.
  3595  	Buckets []*FacetBucket `json:"buckets,omitempty"`
  3596  	// ObjectType: Object type for which facet results are returned. Can be empty.
  3597  	ObjectType string `json:"objectType,omitempty"`
  3598  	// OperatorName: The name of the operator chosen for faceting. @see
  3599  	// cloudsearch.SchemaPropertyOptions
  3600  	OperatorName string `json:"operatorName,omitempty"`
  3601  	// SourceName: Source name for which facet results are returned. Will not be
  3602  	// empty.
  3603  	SourceName string `json:"sourceName,omitempty"`
  3604  	// ForceSendFields is a list of field names (e.g. "Buckets") to unconditionally
  3605  	// include in API requests. By default, fields with empty or default values are
  3606  	// omitted from API requests. See
  3607  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3608  	// details.
  3609  	ForceSendFields []string `json:"-"`
  3610  	// NullFields is a list of field names (e.g. "Buckets") to include in API
  3611  	// requests with the JSON null value. By default, fields with empty values are
  3612  	// omitted from API requests. See
  3613  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3614  	NullFields []string `json:"-"`
  3615  }
  3616  
  3617  func (s *FacetResult) MarshalJSON() ([]byte, error) {
  3618  	type NoMethod FacetResult
  3619  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3620  }
  3621  
  3622  type FieldViolation struct {
  3623  	// Description: The description of the error.
  3624  	Description string `json:"description,omitempty"`
  3625  	// Field: Path of field with violation.
  3626  	Field string `json:"field,omitempty"`
  3627  	// ForceSendFields is a list of field names (e.g. "Description") to
  3628  	// unconditionally include in API requests. By default, fields with empty or
  3629  	// default values are omitted from API requests. See
  3630  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3631  	// details.
  3632  	ForceSendFields []string `json:"-"`
  3633  	// NullFields is a list of field names (e.g. "Description") to include in API
  3634  	// requests with the JSON null value. By default, fields with empty values are
  3635  	// omitted from API requests. See
  3636  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3637  	NullFields []string `json:"-"`
  3638  }
  3639  
  3640  func (s *FieldViolation) MarshalJSON() ([]byte, error) {
  3641  	type NoMethod FieldViolation
  3642  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3643  }
  3644  
  3645  // Filter: A generic way of expressing filters in a query, which supports two
  3646  // approaches: **1. Setting a ValueFilter.** The name must match an
  3647  // operator_name defined in the schema for your data source. **2. Setting a
  3648  // CompositeFilter.** The filters are evaluated using the logical operator. The
  3649  // top-level operators can only be either an AND or a NOT. AND can appear only
  3650  // at the top-most level. OR can appear only under a top-level AND.
  3651  type Filter struct {
  3652  	CompositeFilter *CompositeFilter `json:"compositeFilter,omitempty"`
  3653  	ValueFilter     *ValueFilter     `json:"valueFilter,omitempty"`
  3654  	// ForceSendFields is a list of field names (e.g. "CompositeFilter") to
  3655  	// unconditionally include in API requests. By default, fields with empty or
  3656  	// default values are omitted from API requests. See
  3657  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3658  	// details.
  3659  	ForceSendFields []string `json:"-"`
  3660  	// NullFields is a list of field names (e.g. "CompositeFilter") to include in
  3661  	// API requests with the JSON null value. By default, fields with empty values
  3662  	// are omitted from API requests. See
  3663  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3664  	NullFields []string `json:"-"`
  3665  }
  3666  
  3667  func (s *Filter) MarshalJSON() ([]byte, error) {
  3668  	type NoMethod Filter
  3669  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3670  }
  3671  
  3672  // FilterOptions: Filter options to be applied on query.
  3673  type FilterOptions struct {
  3674  	// Filter: Generic filter to restrict the search, such as `lang:en`,
  3675  	// `site:xyz`.
  3676  	Filter *Filter `json:"filter,omitempty"`
  3677  	// ObjectType: If object_type is set, only objects of that type are returned.
  3678  	// This should correspond to the name of the object that was registered within
  3679  	// the definition of schema. The maximum length is 256 characters.
  3680  	ObjectType string `json:"objectType,omitempty"`
  3681  	// ForceSendFields is a list of field names (e.g. "Filter") to unconditionally
  3682  	// include in API requests. By default, fields with empty or default values are
  3683  	// omitted from API requests. See
  3684  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3685  	// details.
  3686  	ForceSendFields []string `json:"-"`
  3687  	// NullFields is a list of field names (e.g. "Filter") to include in API
  3688  	// requests with the JSON null value. By default, fields with empty values are
  3689  	// omitted from API requests. See
  3690  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3691  	NullFields []string `json:"-"`
  3692  }
  3693  
  3694  func (s *FilterOptions) MarshalJSON() ([]byte, error) {
  3695  	type NoMethod FilterOptions
  3696  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3697  }
  3698  
  3699  // FreshnessOptions: Indicates which freshness property to use when adjusting
  3700  // search ranking for an item. Fresher, more recent dates indicate higher
  3701  // quality. Use the freshness option property that best works with your data.
  3702  // For fileshare documents, last modified time is most relevant. For calendar
  3703  // event data, the time when the event occurs is a more relevant freshness
  3704  // indicator. In this way, calendar events that occur closer to the time of the
  3705  // search query are considered higher quality and ranked accordingly.
  3706  type FreshnessOptions struct {
  3707  	// FreshnessDuration: The duration after which an object should be considered
  3708  	// stale. The default value is 180 days (in seconds).
  3709  	FreshnessDuration string `json:"freshnessDuration,omitempty"`
  3710  	// FreshnessProperty: This property indicates the freshness level of the object
  3711  	// in the index. If set, this property must be a top-level property within the
  3712  	// property definitions and it must be a timestamp type or date type.
  3713  	// Otherwise, the Indexing API uses updateTime as the freshness indicator. The
  3714  	// maximum length is 256 characters. When a property is used to calculate
  3715  	// freshness, the value defaults to 2 years from the current time.
  3716  	FreshnessProperty string `json:"freshnessProperty,omitempty"`
  3717  	// ForceSendFields is a list of field names (e.g. "FreshnessDuration") to
  3718  	// unconditionally include in API requests. By default, fields with empty or
  3719  	// default values are omitted from API requests. See
  3720  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3721  	// details.
  3722  	ForceSendFields []string `json:"-"`
  3723  	// NullFields is a list of field names (e.g. "FreshnessDuration") to include in
  3724  	// API requests with the JSON null value. By default, fields with empty values
  3725  	// are omitted from API requests. See
  3726  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3727  	NullFields []string `json:"-"`
  3728  }
  3729  
  3730  func (s *FreshnessOptions) MarshalJSON() ([]byte, error) {
  3731  	type NoMethod FreshnessOptions
  3732  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3733  }
  3734  
  3735  type GSuitePrincipal struct {
  3736  	// GsuiteDomain: This principal represents all users of the Google Workspace
  3737  	// domain of the customer.
  3738  	GsuiteDomain bool `json:"gsuiteDomain,omitempty"`
  3739  	// GsuiteGroupEmail: This principal references a Google Workspace group name.
  3740  	GsuiteGroupEmail string `json:"gsuiteGroupEmail,omitempty"`
  3741  	// GsuiteUserEmail: This principal references a Google Workspace user account.
  3742  	GsuiteUserEmail string `json:"gsuiteUserEmail,omitempty"`
  3743  	// ForceSendFields is a list of field names (e.g. "GsuiteDomain") to
  3744  	// unconditionally include in API requests. By default, fields with empty or
  3745  	// default values are omitted from API requests. See
  3746  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3747  	// details.
  3748  	ForceSendFields []string `json:"-"`
  3749  	// NullFields is a list of field names (e.g. "GsuiteDomain") to include in API
  3750  	// requests with the JSON null value. By default, fields with empty values are
  3751  	// omitted from API requests. See
  3752  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3753  	NullFields []string `json:"-"`
  3754  }
  3755  
  3756  func (s *GSuitePrincipal) MarshalJSON() ([]byte, error) {
  3757  	type NoMethod GSuitePrincipal
  3758  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3759  }
  3760  
  3761  type GetCustomerIndexStatsResponse struct {
  3762  	// AverageIndexedItemCount: Average item count for the given date range for
  3763  	// which billing is done.
  3764  	AverageIndexedItemCount int64 `json:"averageIndexedItemCount,omitempty,string"`
  3765  	// Stats: Summary of indexed item counts, one for each day in the requested
  3766  	// range.
  3767  	Stats []*CustomerIndexStats `json:"stats,omitempty"`
  3768  
  3769  	// ServerResponse contains the HTTP response code and headers from the server.
  3770  	googleapi.ServerResponse `json:"-"`
  3771  	// ForceSendFields is a list of field names (e.g. "AverageIndexedItemCount") to
  3772  	// unconditionally include in API requests. By default, fields with empty or
  3773  	// default values are omitted from API requests. See
  3774  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3775  	// details.
  3776  	ForceSendFields []string `json:"-"`
  3777  	// NullFields is a list of field names (e.g. "AverageIndexedItemCount") to
  3778  	// include in API requests with the JSON null value. By default, fields with
  3779  	// empty values are omitted from API requests. See
  3780  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3781  	NullFields []string `json:"-"`
  3782  }
  3783  
  3784  func (s *GetCustomerIndexStatsResponse) MarshalJSON() ([]byte, error) {
  3785  	type NoMethod GetCustomerIndexStatsResponse
  3786  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3787  }
  3788  
  3789  type GetCustomerQueryStatsResponse struct {
  3790  	Stats []*CustomerQueryStats `json:"stats,omitempty"`
  3791  	// TotalQueryCount: Total successful query count (status code 200) for the
  3792  	// given date range.
  3793  	TotalQueryCount int64 `json:"totalQueryCount,omitempty,string"`
  3794  
  3795  	// ServerResponse contains the HTTP response code and headers from the server.
  3796  	googleapi.ServerResponse `json:"-"`
  3797  	// ForceSendFields is a list of field names (e.g. "Stats") to unconditionally
  3798  	// include in API requests. By default, fields with empty or default values are
  3799  	// omitted from API requests. See
  3800  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3801  	// details.
  3802  	ForceSendFields []string `json:"-"`
  3803  	// NullFields is a list of field names (e.g. "Stats") to include in API
  3804  	// requests with the JSON null value. By default, fields with empty values are
  3805  	// omitted from API requests. See
  3806  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3807  	NullFields []string `json:"-"`
  3808  }
  3809  
  3810  func (s *GetCustomerQueryStatsResponse) MarshalJSON() ([]byte, error) {
  3811  	type NoMethod GetCustomerQueryStatsResponse
  3812  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3813  }
  3814  
  3815  // GetCustomerSearchApplicationStatsResponse: Response format for search
  3816  // application stats for a customer.
  3817  type GetCustomerSearchApplicationStatsResponse struct {
  3818  	// AverageSearchApplicationCount: Average search application count for the
  3819  	// given date range.
  3820  	AverageSearchApplicationCount int64 `json:"averageSearchApplicationCount,omitempty,string"`
  3821  	// Stats: Search application stats by date.
  3822  	Stats []*CustomerSearchApplicationStats `json:"stats,omitempty"`
  3823  
  3824  	// ServerResponse contains the HTTP response code and headers from the server.
  3825  	googleapi.ServerResponse `json:"-"`
  3826  	// ForceSendFields is a list of field names (e.g.
  3827  	// "AverageSearchApplicationCount") to unconditionally include in API requests.
  3828  	// By default, fields with empty or default values are omitted from API
  3829  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  3830  	// for more details.
  3831  	ForceSendFields []string `json:"-"`
  3832  	// NullFields is a list of field names (e.g. "AverageSearchApplicationCount")
  3833  	// to include in API requests with the JSON null value. By default, fields with
  3834  	// empty values are omitted from API requests. See
  3835  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3836  	NullFields []string `json:"-"`
  3837  }
  3838  
  3839  func (s *GetCustomerSearchApplicationStatsResponse) MarshalJSON() ([]byte, error) {
  3840  	type NoMethod GetCustomerSearchApplicationStatsResponse
  3841  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3842  }
  3843  
  3844  type GetCustomerSessionStatsResponse struct {
  3845  	Stats []*CustomerSessionStats `json:"stats,omitempty"`
  3846  
  3847  	// ServerResponse contains the HTTP response code and headers from the server.
  3848  	googleapi.ServerResponse `json:"-"`
  3849  	// ForceSendFields is a list of field names (e.g. "Stats") to unconditionally
  3850  	// include in API requests. By default, fields with empty or default values are
  3851  	// omitted from API requests. See
  3852  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3853  	// details.
  3854  	ForceSendFields []string `json:"-"`
  3855  	// NullFields is a list of field names (e.g. "Stats") to include in API
  3856  	// requests with the JSON null value. By default, fields with empty values are
  3857  	// omitted from API requests. See
  3858  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3859  	NullFields []string `json:"-"`
  3860  }
  3861  
  3862  func (s *GetCustomerSessionStatsResponse) MarshalJSON() ([]byte, error) {
  3863  	type NoMethod GetCustomerSessionStatsResponse
  3864  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3865  }
  3866  
  3867  type GetCustomerUserStatsResponse struct {
  3868  	Stats []*CustomerUserStats `json:"stats,omitempty"`
  3869  
  3870  	// ServerResponse contains the HTTP response code and headers from the server.
  3871  	googleapi.ServerResponse `json:"-"`
  3872  	// ForceSendFields is a list of field names (e.g. "Stats") to unconditionally
  3873  	// include in API requests. By default, fields with empty or default values are
  3874  	// omitted from API requests. See
  3875  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3876  	// details.
  3877  	ForceSendFields []string `json:"-"`
  3878  	// NullFields is a list of field names (e.g. "Stats") to include in API
  3879  	// requests with the JSON null value. By default, fields with empty values are
  3880  	// omitted from API requests. See
  3881  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3882  	NullFields []string `json:"-"`
  3883  }
  3884  
  3885  func (s *GetCustomerUserStatsResponse) MarshalJSON() ([]byte, error) {
  3886  	type NoMethod GetCustomerUserStatsResponse
  3887  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3888  }
  3889  
  3890  type GetDataSourceIndexStatsResponse struct {
  3891  	// AverageIndexedItemCount: Average item count for the given date range for
  3892  	// which billing is done.
  3893  	AverageIndexedItemCount int64 `json:"averageIndexedItemCount,omitempty,string"`
  3894  	// Stats: Summary of indexed item counts, one for each day in the requested
  3895  	// range.
  3896  	Stats []*DataSourceIndexStats `json:"stats,omitempty"`
  3897  
  3898  	// ServerResponse contains the HTTP response code and headers from the server.
  3899  	googleapi.ServerResponse `json:"-"`
  3900  	// ForceSendFields is a list of field names (e.g. "AverageIndexedItemCount") to
  3901  	// unconditionally include in API requests. By default, fields with empty or
  3902  	// default values are omitted from API requests. See
  3903  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3904  	// details.
  3905  	ForceSendFields []string `json:"-"`
  3906  	// NullFields is a list of field names (e.g. "AverageIndexedItemCount") to
  3907  	// include in API requests with the JSON null value. By default, fields with
  3908  	// empty values are omitted from API requests. See
  3909  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3910  	NullFields []string `json:"-"`
  3911  }
  3912  
  3913  func (s *GetDataSourceIndexStatsResponse) MarshalJSON() ([]byte, error) {
  3914  	type NoMethod GetDataSourceIndexStatsResponse
  3915  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3916  }
  3917  
  3918  // GetSearchApplicationQueryStatsResponse: Response format for getting query
  3919  // stats for a search application between given dates.
  3920  type GetSearchApplicationQueryStatsResponse struct {
  3921  	// Stats: Query stats per date for a search application.
  3922  	Stats []*SearchApplicationQueryStats `json:"stats,omitempty"`
  3923  	// TotalQueryCount: Total successful query count (status code 200) for the
  3924  	// given date range.
  3925  	TotalQueryCount int64 `json:"totalQueryCount,omitempty,string"`
  3926  
  3927  	// ServerResponse contains the HTTP response code and headers from the server.
  3928  	googleapi.ServerResponse `json:"-"`
  3929  	// ForceSendFields is a list of field names (e.g. "Stats") to unconditionally
  3930  	// include in API requests. By default, fields with empty or default values are
  3931  	// omitted from API requests. See
  3932  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3933  	// details.
  3934  	ForceSendFields []string `json:"-"`
  3935  	// NullFields is a list of field names (e.g. "Stats") to include in API
  3936  	// requests with the JSON null value. By default, fields with empty values are
  3937  	// omitted from API requests. See
  3938  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3939  	NullFields []string `json:"-"`
  3940  }
  3941  
  3942  func (s *GetSearchApplicationQueryStatsResponse) MarshalJSON() ([]byte, error) {
  3943  	type NoMethod GetSearchApplicationQueryStatsResponse
  3944  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3945  }
  3946  
  3947  type GetSearchApplicationSessionStatsResponse struct {
  3948  	Stats []*SearchApplicationSessionStats `json:"stats,omitempty"`
  3949  
  3950  	// ServerResponse contains the HTTP response code and headers from the server.
  3951  	googleapi.ServerResponse `json:"-"`
  3952  	// ForceSendFields is a list of field names (e.g. "Stats") to unconditionally
  3953  	// include in API requests. By default, fields with empty or default values are
  3954  	// omitted from API requests. See
  3955  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3956  	// details.
  3957  	ForceSendFields []string `json:"-"`
  3958  	// NullFields is a list of field names (e.g. "Stats") to include in API
  3959  	// requests with the JSON null value. By default, fields with empty values are
  3960  	// omitted from API requests. See
  3961  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3962  	NullFields []string `json:"-"`
  3963  }
  3964  
  3965  func (s *GetSearchApplicationSessionStatsResponse) MarshalJSON() ([]byte, error) {
  3966  	type NoMethod GetSearchApplicationSessionStatsResponse
  3967  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3968  }
  3969  
  3970  type GetSearchApplicationUserStatsResponse struct {
  3971  	Stats []*SearchApplicationUserStats `json:"stats,omitempty"`
  3972  
  3973  	// ServerResponse contains the HTTP response code and headers from the server.
  3974  	googleapi.ServerResponse `json:"-"`
  3975  	// ForceSendFields is a list of field names (e.g. "Stats") to unconditionally
  3976  	// include in API requests. By default, fields with empty or default values are
  3977  	// omitted from API requests. See
  3978  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  3979  	// details.
  3980  	ForceSendFields []string `json:"-"`
  3981  	// NullFields is a list of field names (e.g. "Stats") to include in API
  3982  	// requests with the JSON null value. By default, fields with empty values are
  3983  	// omitted from API requests. See
  3984  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  3985  	NullFields []string `json:"-"`
  3986  }
  3987  
  3988  func (s *GetSearchApplicationUserStatsResponse) MarshalJSON() ([]byte, error) {
  3989  	type NoMethod GetSearchApplicationUserStatsResponse
  3990  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  3991  }
  3992  
  3993  // HtmlOperatorOptions: Used to provide a search operator for html properties.
  3994  // This is optional. Search operators let users restrict the query to specific
  3995  // fields relevant to the type of item being searched.
  3996  type HtmlOperatorOptions struct {
  3997  	// OperatorName: Indicates the operator name required in the query in order to
  3998  	// isolate the html property. For example, if operatorName is *subject* and the
  3999  	// property's name is *subjectLine*, then queries like *subject:<value>* show
  4000  	// results only where the value of the property named *subjectLine* matches
  4001  	// *<value>*. By contrast, a search that uses the same *<value>* without an
  4002  	// operator return all items where *<value>* matches the value of any html
  4003  	// properties or text within the content field for the item. The operator name
  4004  	// can only contain lowercase letters (a-z). The maximum length is 32
  4005  	// characters.
  4006  	OperatorName string `json:"operatorName,omitempty"`
  4007  	// ForceSendFields is a list of field names (e.g. "OperatorName") to
  4008  	// unconditionally include in API requests. By default, fields with empty or
  4009  	// default values are omitted from API requests. See
  4010  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4011  	// details.
  4012  	ForceSendFields []string `json:"-"`
  4013  	// NullFields is a list of field names (e.g. "OperatorName") to include in API
  4014  	// requests with the JSON null value. By default, fields with empty values are
  4015  	// omitted from API requests. See
  4016  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4017  	NullFields []string `json:"-"`
  4018  }
  4019  
  4020  func (s *HtmlOperatorOptions) MarshalJSON() ([]byte, error) {
  4021  	type NoMethod HtmlOperatorOptions
  4022  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4023  }
  4024  
  4025  // HtmlPropertyOptions: The options for html properties.
  4026  type HtmlPropertyOptions struct {
  4027  	// OperatorOptions: If set, describes how the property should be used as a
  4028  	// search operator.
  4029  	OperatorOptions *HtmlOperatorOptions `json:"operatorOptions,omitempty"`
  4030  	// RetrievalImportance: Indicates the search quality importance of the tokens
  4031  	// within the field when used for retrieval. Can only be set to DEFAULT or
  4032  	// NONE.
  4033  	RetrievalImportance *RetrievalImportance `json:"retrievalImportance,omitempty"`
  4034  	// ForceSendFields is a list of field names (e.g. "OperatorOptions") to
  4035  	// unconditionally include in API requests. By default, fields with empty or
  4036  	// default values are omitted from API requests. See
  4037  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4038  	// details.
  4039  	ForceSendFields []string `json:"-"`
  4040  	// NullFields is a list of field names (e.g. "OperatorOptions") to include in
  4041  	// API requests with the JSON null value. By default, fields with empty values
  4042  	// are omitted from API requests. See
  4043  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4044  	NullFields []string `json:"-"`
  4045  }
  4046  
  4047  func (s *HtmlPropertyOptions) MarshalJSON() ([]byte, error) {
  4048  	type NoMethod HtmlPropertyOptions
  4049  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4050  }
  4051  
  4052  // HtmlValues: List of html values.
  4053  type HtmlValues struct {
  4054  	// Values: The maximum allowable length for html values is 2048 characters.
  4055  	Values []string `json:"values,omitempty"`
  4056  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  4057  	// include in API requests. By default, fields with empty or default values are
  4058  	// omitted from API requests. See
  4059  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4060  	// details.
  4061  	ForceSendFields []string `json:"-"`
  4062  	// NullFields is a list of field names (e.g. "Values") to include in API
  4063  	// requests with the JSON null value. By default, fields with empty values are
  4064  	// omitted from API requests. See
  4065  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4066  	NullFields []string `json:"-"`
  4067  }
  4068  
  4069  func (s *HtmlValues) MarshalJSON() ([]byte, error) {
  4070  	type NoMethod HtmlValues
  4071  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4072  }
  4073  
  4074  type IndexItemOptions struct {
  4075  	// AllowUnknownGsuitePrincipals: Specifies if the index request should allow
  4076  	// Google Workspace principals that do not exist or are deleted.
  4077  	AllowUnknownGsuitePrincipals bool `json:"allowUnknownGsuitePrincipals,omitempty"`
  4078  	// ForceSendFields is a list of field names (e.g.
  4079  	// "AllowUnknownGsuitePrincipals") to unconditionally include in API requests.
  4080  	// By default, fields with empty or default values are omitted from API
  4081  	// requests. See https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields
  4082  	// for more details.
  4083  	ForceSendFields []string `json:"-"`
  4084  	// NullFields is a list of field names (e.g. "AllowUnknownGsuitePrincipals") to
  4085  	// include in API requests with the JSON null value. By default, fields with
  4086  	// empty values are omitted from API requests. See
  4087  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4088  	NullFields []string `json:"-"`
  4089  }
  4090  
  4091  func (s *IndexItemOptions) MarshalJSON() ([]byte, error) {
  4092  	type NoMethod IndexItemOptions
  4093  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4094  }
  4095  
  4096  type IndexItemRequest struct {
  4097  	// ConnectorName: The name of connector making this call. Format:
  4098  	// datasources/{source_id}/connectors/{ID}
  4099  	ConnectorName string `json:"connectorName,omitempty"`
  4100  	// DebugOptions: Common debug options.
  4101  	DebugOptions     *DebugOptions     `json:"debugOptions,omitempty"`
  4102  	IndexItemOptions *IndexItemOptions `json:"indexItemOptions,omitempty"`
  4103  	// Item: The name of the item. Format: datasources/{source_id}/items/{item_id}
  4104  	Item *Item `json:"item,omitempty"`
  4105  	// Mode: Required. The RequestMode for this request.
  4106  	//
  4107  	// Possible values:
  4108  	//   "UNSPECIFIED" - The priority is not specified in the update request.
  4109  	// Leaving priority unspecified results in an update failure.
  4110  	//   "SYNCHRONOUS" - For real-time updates.
  4111  	//   "ASYNCHRONOUS" - For changes that are executed after the response is sent
  4112  	// back to the caller.
  4113  	Mode string `json:"mode,omitempty"`
  4114  	// ForceSendFields is a list of field names (e.g. "ConnectorName") to
  4115  	// unconditionally include in API requests. By default, fields with empty or
  4116  	// default values are omitted from API requests. See
  4117  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4118  	// details.
  4119  	ForceSendFields []string `json:"-"`
  4120  	// NullFields is a list of field names (e.g. "ConnectorName") to include in API
  4121  	// requests with the JSON null value. By default, fields with empty values are
  4122  	// omitted from API requests. See
  4123  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4124  	NullFields []string `json:"-"`
  4125  }
  4126  
  4127  func (s *IndexItemRequest) MarshalJSON() ([]byte, error) {
  4128  	type NoMethod IndexItemRequest
  4129  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4130  }
  4131  
  4132  // InitializeCustomerRequest: Request message for `InitializeCustomer` method.
  4133  type InitializeCustomerRequest struct {
  4134  }
  4135  
  4136  // IntegerFacetingOptions: Used to specify integer faceting options.
  4137  type IntegerFacetingOptions struct {
  4138  	// IntegerBuckets: Buckets for given integer values should be in strictly
  4139  	// ascending order. For example, if values supplied are (1,5,10,100), the
  4140  	// following facet buckets will be formed {<1, [1,5), [5-10), [10-100), >=100}.
  4141  	IntegerBuckets googleapi.Int64s `json:"integerBuckets,omitempty"`
  4142  	// ForceSendFields is a list of field names (e.g. "IntegerBuckets") to
  4143  	// unconditionally include in API requests. By default, fields with empty or
  4144  	// default values are omitted from API requests. See
  4145  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4146  	// details.
  4147  	ForceSendFields []string `json:"-"`
  4148  	// NullFields is a list of field names (e.g. "IntegerBuckets") to include in
  4149  	// API requests with the JSON null value. By default, fields with empty values
  4150  	// are omitted from API requests. See
  4151  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4152  	NullFields []string `json:"-"`
  4153  }
  4154  
  4155  func (s *IntegerFacetingOptions) MarshalJSON() ([]byte, error) {
  4156  	type NoMethod IntegerFacetingOptions
  4157  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4158  }
  4159  
  4160  // IntegerOperatorOptions: Used to provide a search operator for integer
  4161  // properties. This is optional. Search operators let users restrict the query
  4162  // to specific fields relevant to the type of item being searched.
  4163  type IntegerOperatorOptions struct {
  4164  	// GreaterThanOperatorName: Indicates the operator name required in the query
  4165  	// in order to isolate the integer property using the greater-than operator.
  4166  	// For example, if greaterThanOperatorName is *priorityabove* and the
  4167  	// property's name is *priorityVal*, then queries like *priorityabove:<value>*
  4168  	// show results only where the value of the property named *priorityVal* is
  4169  	// greater than *<value>*. The operator name can only contain lowercase letters
  4170  	// (a-z). The maximum length is 32 characters.
  4171  	GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"`
  4172  	// LessThanOperatorName: Indicates the operator name required in the query in
  4173  	// order to isolate the integer property using the less-than operator. For
  4174  	// example, if lessThanOperatorName is *prioritybelow* and the property's name
  4175  	// is *priorityVal*, then queries like *prioritybelow:<value>* show results
  4176  	// only where the value of the property named *priorityVal* is less than
  4177  	// *<value>*. The operator name can only contain lowercase letters (a-z). The
  4178  	// maximum length is 32 characters.
  4179  	LessThanOperatorName string `json:"lessThanOperatorName,omitempty"`
  4180  	// OperatorName: Indicates the operator name required in the query in order to
  4181  	// isolate the integer property. For example, if operatorName is *priority* and
  4182  	// the property's name is *priorityVal*, then queries like *priority:<value>*
  4183  	// show results only where the value of the property named *priorityVal*
  4184  	// matches *<value>*. By contrast, a search that uses the same *<value>*
  4185  	// without an operator returns all items where *<value>* matches the value of
  4186  	// any String properties or text within the content field for the item. The
  4187  	// operator name can only contain lowercase letters (a-z). The maximum length
  4188  	// is 32 characters.
  4189  	OperatorName string `json:"operatorName,omitempty"`
  4190  	// ForceSendFields is a list of field names (e.g. "GreaterThanOperatorName") to
  4191  	// unconditionally include in API requests. By default, fields with empty or
  4192  	// default values are omitted from API requests. See
  4193  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4194  	// details.
  4195  	ForceSendFields []string `json:"-"`
  4196  	// NullFields is a list of field names (e.g. "GreaterThanOperatorName") to
  4197  	// include in API requests with the JSON null value. By default, fields with
  4198  	// empty values are omitted from API requests. See
  4199  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4200  	NullFields []string `json:"-"`
  4201  }
  4202  
  4203  func (s *IntegerOperatorOptions) MarshalJSON() ([]byte, error) {
  4204  	type NoMethod IntegerOperatorOptions
  4205  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4206  }
  4207  
  4208  // IntegerPropertyOptions: The options for integer properties.
  4209  type IntegerPropertyOptions struct {
  4210  	// IntegerFacetingOptions: If set, describes integer faceting options for the
  4211  	// given integer property. The corresponding integer property should be marked
  4212  	// isFacetable.
  4213  	IntegerFacetingOptions *IntegerFacetingOptions `json:"integerFacetingOptions,omitempty"`
  4214  	// MaximumValue: The maximum value of the property. The minimum and maximum
  4215  	// values for the property are used to rank results according to the ordered
  4216  	// ranking. Indexing requests with values greater than the maximum are accepted
  4217  	// and ranked with the same weight as items indexed with the maximum value.
  4218  	MaximumValue int64 `json:"maximumValue,omitempty,string"`
  4219  	// MinimumValue: The minimum value of the property. The minimum and maximum
  4220  	// values for the property are used to rank results according to the ordered
  4221  	// ranking. Indexing requests with values less than the minimum are accepted
  4222  	// and ranked with the same weight as items indexed with the minimum value.
  4223  	MinimumValue int64 `json:"minimumValue,omitempty,string"`
  4224  	// OperatorOptions: If set, describes how the integer should be used as a
  4225  	// search operator.
  4226  	OperatorOptions *IntegerOperatorOptions `json:"operatorOptions,omitempty"`
  4227  	// OrderedRanking: Used to specify the ordered ranking for the integer. Can
  4228  	// only be used if isRepeatable is false.
  4229  	//
  4230  	// Possible values:
  4231  	//   "NO_ORDER" - There is no ranking order for the property. Results are not
  4232  	// adjusted by this property's value.
  4233  	//   "ASCENDING" - This property is ranked in ascending order. Lower values
  4234  	// indicate lower ranking.
  4235  	//   "DESCENDING" - This property is ranked in descending order. Lower values
  4236  	// indicate higher ranking.
  4237  	OrderedRanking string `json:"orderedRanking,omitempty"`
  4238  	// ForceSendFields is a list of field names (e.g. "IntegerFacetingOptions") to
  4239  	// unconditionally include in API requests. By default, fields with empty or
  4240  	// default values are omitted from API requests. See
  4241  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4242  	// details.
  4243  	ForceSendFields []string `json:"-"`
  4244  	// NullFields is a list of field names (e.g. "IntegerFacetingOptions") to
  4245  	// include in API requests with the JSON null value. By default, fields with
  4246  	// empty values are omitted from API requests. See
  4247  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4248  	NullFields []string `json:"-"`
  4249  }
  4250  
  4251  func (s *IntegerPropertyOptions) MarshalJSON() ([]byte, error) {
  4252  	type NoMethod IntegerPropertyOptions
  4253  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4254  }
  4255  
  4256  // IntegerValues: List of integer values.
  4257  type IntegerValues struct {
  4258  	Values googleapi.Int64s `json:"values,omitempty"`
  4259  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  4260  	// include in API requests. By default, fields with empty or default values are
  4261  	// omitted from API requests. See
  4262  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4263  	// details.
  4264  	ForceSendFields []string `json:"-"`
  4265  	// NullFields is a list of field names (e.g. "Values") to include in API
  4266  	// requests with the JSON null value. By default, fields with empty values are
  4267  	// omitted from API requests. See
  4268  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4269  	NullFields []string `json:"-"`
  4270  }
  4271  
  4272  func (s *IntegerValues) MarshalJSON() ([]byte, error) {
  4273  	type NoMethod IntegerValues
  4274  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4275  }
  4276  
  4277  // Interaction: Represents an interaction between a user and an item.
  4278  type Interaction struct {
  4279  	// InteractionTime: The time when the user acted on the item. If multiple
  4280  	// actions of the same type exist for a single user, only the most recent
  4281  	// action is recorded.
  4282  	InteractionTime string `json:"interactionTime,omitempty"`
  4283  	// Principal: The user that acted on the item.
  4284  	Principal *Principal `json:"principal,omitempty"`
  4285  	// Possible values:
  4286  	//   "UNSPECIFIED" - Invalid value.
  4287  	//   "VIEW" - This interaction indicates the user viewed the item.
  4288  	//   "EDIT" - This interaction indicates the user edited the item.
  4289  	Type string `json:"type,omitempty"`
  4290  	// ForceSendFields is a list of field names (e.g. "InteractionTime") to
  4291  	// unconditionally include in API requests. By default, fields with empty or
  4292  	// default values are omitted from API requests. See
  4293  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4294  	// details.
  4295  	ForceSendFields []string `json:"-"`
  4296  	// NullFields is a list of field names (e.g. "InteractionTime") to include in
  4297  	// API requests with the JSON null value. By default, fields with empty values
  4298  	// are omitted from API requests. See
  4299  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4300  	NullFields []string `json:"-"`
  4301  }
  4302  
  4303  func (s *Interaction) MarshalJSON() ([]byte, error) {
  4304  	type NoMethod Interaction
  4305  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4306  }
  4307  
  4308  // Item: Represents a single object that is an item in the search index, such
  4309  // as a file, folder, or a database record.
  4310  type Item struct {
  4311  	// Acl: Access control list for this item.
  4312  	Acl *ItemAcl `json:"acl,omitempty"`
  4313  	// Content: Item content to be indexed and made text searchable.
  4314  	Content *ItemContent `json:"content,omitempty"`
  4315  	// ItemType: The type for this item.
  4316  	//
  4317  	// Possible values:
  4318  	//   "UNSPECIFIED"
  4319  	//   "CONTENT_ITEM" - An item that is indexed for the only purpose of serving
  4320  	// information. These items cannot be referred in containerName or
  4321  	// inheritAclFrom fields.
  4322  	//   "CONTAINER_ITEM" - An item that gets indexed and whose purpose is to
  4323  	// supply other items with ACLs and/or contain other items.
  4324  	//   "VIRTUAL_CONTAINER_ITEM" - An item that does not get indexed, but
  4325  	// otherwise has the same purpose as CONTAINER_ITEM.
  4326  	ItemType string `json:"itemType,omitempty"`
  4327  	// Metadata: The metadata information.
  4328  	Metadata *ItemMetadata `json:"metadata,omitempty"`
  4329  	// Name: The name of the Item. Format: datasources/{source_id}/items/{item_id}
  4330  	// This is a required field. The maximum length is 1536 characters.
  4331  	Name string `json:"name,omitempty"`
  4332  	// Payload: Additional state connector can store for this item. The maximum
  4333  	// length is 10000 bytes.
  4334  	Payload string `json:"payload,omitempty"`
  4335  	// Queue: Queue this item belongs to. The maximum length is 100 characters.
  4336  	Queue string `json:"queue,omitempty"`
  4337  	// Status: Status of the item. Output only field.
  4338  	Status *ItemStatus `json:"status,omitempty"`
  4339  	// StructuredData: The structured data for the item that should conform to a
  4340  	// registered object definition in the schema for the data source.
  4341  	StructuredData *ItemStructuredData `json:"structuredData,omitempty"`
  4342  	// Version: Required. The indexing system stores the version from the
  4343  	// datasource as a byte string and compares the Item version in the index to
  4344  	// the version of the queued Item using lexical ordering. Cloud Search Indexing
  4345  	// won't index or delete any queued item with a version value that is less than
  4346  	// or equal to the version of the currently indexed item. The maximum length
  4347  	// for this field is 1024 bytes. For information on how item version affects
  4348  	// the deletion process, refer to Handle revisions after manual deletes
  4349  	// (https://developers.google.com/cloud-search/docs/guides/operations).
  4350  	Version string `json:"version,omitempty"`
  4351  
  4352  	// ServerResponse contains the HTTP response code and headers from the server.
  4353  	googleapi.ServerResponse `json:"-"`
  4354  	// ForceSendFields is a list of field names (e.g. "Acl") to unconditionally
  4355  	// include in API requests. By default, fields with empty or default values are
  4356  	// omitted from API requests. See
  4357  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4358  	// details.
  4359  	ForceSendFields []string `json:"-"`
  4360  	// NullFields is a list of field names (e.g. "Acl") to include in API requests
  4361  	// with the JSON null value. By default, fields with empty values are omitted
  4362  	// from API requests. See
  4363  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4364  	NullFields []string `json:"-"`
  4365  }
  4366  
  4367  func (s *Item) MarshalJSON() ([]byte, error) {
  4368  	type NoMethod Item
  4369  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4370  }
  4371  
  4372  // ItemAcl: Access control list information for the item. For more information
  4373  // see Map ACLs (https://developers.google.com/cloud-search/docs/guides/acls).
  4374  type ItemAcl struct {
  4375  	// AclInheritanceType: Sets the type of access rules to apply when an item
  4376  	// inherits its ACL from a parent. This should always be set in tandem with the
  4377  	// inheritAclFrom field. Also, when the inheritAclFrom field is set, this field
  4378  	// should be set to a valid AclInheritanceType.
  4379  	//
  4380  	// Possible values:
  4381  	//   "NOT_APPLICABLE" - The default value when this item does not inherit an
  4382  	// ACL. Use NOT_APPLICABLE when inheritAclFrom is empty. An item without ACL
  4383  	// inheritance can still have ACLs supplied by its own readers and
  4384  	// deniedReaders fields.
  4385  	//   "CHILD_OVERRIDE" - During an authorization conflict, the ACL of the child
  4386  	// item determines its read access.
  4387  	//   "PARENT_OVERRIDE" - During an authorization conflict, the ACL of the
  4388  	// parent item specified in the inheritAclFrom field determines read access.
  4389  	//   "BOTH_PERMIT" - Access is granted only if this item and the parent item
  4390  	// specified in the inheritAclFrom field both permit read access.
  4391  	AclInheritanceType string `json:"aclInheritanceType,omitempty"`
  4392  	// DeniedReaders: List of principals who are explicitly denied access to the
  4393  	// item in search results. While principals are denied access by default, use
  4394  	// denied readers to handle exceptions and override the list allowed readers.
  4395  	// The maximum number of elements is 100.
  4396  	DeniedReaders []*Principal `json:"deniedReaders,omitempty"`
  4397  	// InheritAclFrom: The name of the item to inherit the Access Permission List
  4398  	// (ACL) from. Note: ACL inheritance *only* provides access permissions to
  4399  	// child items and does not define structural relationships, nor does it
  4400  	// provide convenient ways to delete large groups of items. Deleting an ACL
  4401  	// parent from the index only alters the access permissions of child items that
  4402  	// reference the parent in the inheritAclFrom field. The item is still in the
  4403  	// index, but may not visible in search results. By contrast, deletion of a
  4404  	// container item also deletes all items that reference the container via the
  4405  	// containerName field. The maximum length for this field is 1536 characters.
  4406  	InheritAclFrom string `json:"inheritAclFrom,omitempty"`
  4407  	// Owners: Optional. List of owners for the item. This field has no bearing on
  4408  	// document access permissions. It does, however, offer a slight ranking boosts
  4409  	// items where the querying user is an owner. The maximum number of elements is
  4410  	// 5.
  4411  	Owners []*Principal `json:"owners,omitempty"`
  4412  	// Readers: List of principals who are allowed to see the item in search
  4413  	// results. Optional if inheriting permissions from another item or if the item
  4414  	// is not intended to be visible, such as virtual containers. The maximum
  4415  	// number of elements is 1000.
  4416  	Readers []*Principal `json:"readers,omitempty"`
  4417  	// ForceSendFields is a list of field names (e.g. "AclInheritanceType") to
  4418  	// unconditionally include in API requests. By default, fields with empty or
  4419  	// default values are omitted from API requests. See
  4420  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4421  	// details.
  4422  	ForceSendFields []string `json:"-"`
  4423  	// NullFields is a list of field names (e.g. "AclInheritanceType") to include
  4424  	// in API requests with the JSON null value. By default, fields with empty
  4425  	// values are omitted from API requests. See
  4426  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4427  	NullFields []string `json:"-"`
  4428  }
  4429  
  4430  func (s *ItemAcl) MarshalJSON() ([]byte, error) {
  4431  	type NoMethod ItemAcl
  4432  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4433  }
  4434  
  4435  // ItemContent: Content of an item to be indexed and surfaced by Cloud Search.
  4436  // Only UTF-8 encoded strings are allowed as inlineContent. If the content is
  4437  // uploaded and not binary, it must be UTF-8 encoded.
  4438  type ItemContent struct {
  4439  	// ContentDataRef: Upload reference ID of a previously uploaded content via
  4440  	// write method.
  4441  	ContentDataRef *UploadItemRef `json:"contentDataRef,omitempty"`
  4442  	// Possible values:
  4443  	//   "UNSPECIFIED" - Invalid value.
  4444  	//   "HTML" - contentFormat is HTML.
  4445  	//   "TEXT" - contentFormat is free text.
  4446  	//   "RAW" - contentFormat is raw bytes.
  4447  	ContentFormat string `json:"contentFormat,omitempty"`
  4448  	// Hash: Hashing info calculated and provided by the API client for content.
  4449  	// Can be used with the items.push method to calculate modified state. The
  4450  	// maximum length is 2048 characters.
  4451  	Hash string `json:"hash,omitempty"`
  4452  	// InlineContent: Content that is supplied inlined within the update method.
  4453  	// The maximum length is 102400 bytes (100 KiB).
  4454  	InlineContent string `json:"inlineContent,omitempty"`
  4455  	// ForceSendFields is a list of field names (e.g. "ContentDataRef") to
  4456  	// unconditionally include in API requests. By default, fields with empty or
  4457  	// default values are omitted from API requests. See
  4458  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4459  	// details.
  4460  	ForceSendFields []string `json:"-"`
  4461  	// NullFields is a list of field names (e.g. "ContentDataRef") to include in
  4462  	// API requests with the JSON null value. By default, fields with empty values
  4463  	// are omitted from API requests. See
  4464  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4465  	NullFields []string `json:"-"`
  4466  }
  4467  
  4468  func (s *ItemContent) MarshalJSON() ([]byte, error) {
  4469  	type NoMethod ItemContent
  4470  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4471  }
  4472  
  4473  type ItemCountByStatus struct {
  4474  	// Count: Number of items matching the status code.
  4475  	Count int64 `json:"count,omitempty,string"`
  4476  	// IndexedItemsCount: Number of items matching the status code for which
  4477  	// billing is done. This excludes virtual container items from the total count.
  4478  	// This count would not be applicable for items with ERROR or NEW_ITEM status
  4479  	// code.
  4480  	IndexedItemsCount int64 `json:"indexedItemsCount,omitempty,string"`
  4481  	// StatusCode: Status of the items.
  4482  	//
  4483  	// Possible values:
  4484  	//   "CODE_UNSPECIFIED" - Input-only value. Used with Items.list to list all
  4485  	// items in the queue, regardless of status.
  4486  	//   "ERROR" - Error encountered by Cloud Search while processing this item.
  4487  	// Details of the error are in repositoryError.
  4488  	//   "MODIFIED" - Item has been modified in the repository, and is out of date
  4489  	// with the version previously accepted into Cloud Search.
  4490  	//   "NEW_ITEM" - Item is known to exist in the repository, but is not yet
  4491  	// accepted by Cloud Search. An item can be in this state when Items.push has
  4492  	// been called for an item of this name that did not exist previously.
  4493  	//   "ACCEPTED" - API has accepted the up-to-date data of this item.
  4494  	StatusCode string `json:"statusCode,omitempty"`
  4495  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  4496  	// include in API requests. By default, fields with empty or default values are
  4497  	// omitted from API requests. See
  4498  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4499  	// details.
  4500  	ForceSendFields []string `json:"-"`
  4501  	// NullFields is a list of field names (e.g. "Count") to include in API
  4502  	// requests with the JSON null value. By default, fields with empty values are
  4503  	// omitted from API requests. See
  4504  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4505  	NullFields []string `json:"-"`
  4506  }
  4507  
  4508  func (s *ItemCountByStatus) MarshalJSON() ([]byte, error) {
  4509  	type NoMethod ItemCountByStatus
  4510  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4511  }
  4512  
  4513  // ItemMetadata: Available metadata fields for the item.
  4514  type ItemMetadata struct {
  4515  	// ContainerName: The name of the container for this item. Deletion of the
  4516  	// container item leads to automatic deletion of this item. Note: ACLs are not
  4517  	// inherited from a container item. To provide ACL inheritance for an item, use
  4518  	// the inheritAclFrom field. The maximum length is 1536 characters.
  4519  	ContainerName string `json:"containerName,omitempty"`
  4520  	// ContentLanguage: The BCP-47 language code for the item, such as "en-US" or
  4521  	// "sr-Latn". For more information, see
  4522  	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. The maximum
  4523  	// length is 32 characters.
  4524  	ContentLanguage string `json:"contentLanguage,omitempty"`
  4525  	// ContextAttributes: A set of named attributes associated with the item. This
  4526  	// can be used for influencing the ranking of the item based on the context in
  4527  	// the request. The maximum number of elements is 10.
  4528  	ContextAttributes []*ContextAttribute `json:"contextAttributes,omitempty"`
  4529  	// CreateTime: The time when the item was created in the source repository.
  4530  	CreateTime string `json:"createTime,omitempty"`
  4531  	// Hash: Hashing value provided by the API caller. This can be used with the
  4532  	// items.push method to calculate modified state. The maximum length is 2048
  4533  	// characters.
  4534  	Hash string `json:"hash,omitempty"`
  4535  	// Interactions: A list of interactions for the item. Interactions are used to
  4536  	// improve Search quality, but are not exposed to end users. The maximum number
  4537  	// of elements is 1000.
  4538  	Interactions []*Interaction `json:"interactions,omitempty"`
  4539  	// Keywords: Additional keywords or phrases that should match the item. Used
  4540  	// internally for user generated content. The maximum number of elements is
  4541  	// 100. The maximum length is 8192 characters.
  4542  	Keywords []string `json:"keywords,omitempty"`
  4543  	// MimeType: The original mime-type of ItemContent.content in the source
  4544  	// repository. The maximum length is 256 characters.
  4545  	MimeType string `json:"mimeType,omitempty"`
  4546  	// ObjectType: The type of the item. This should correspond to the name of an
  4547  	// object definition in the schema registered for the data source. For example,
  4548  	// if the schema for the data source contains an object definition with name
  4549  	// 'document', then item indexing requests for objects of that type should set
  4550  	// objectType to 'document'. The maximum length is 256 characters.
  4551  	ObjectType string `json:"objectType,omitempty"`
  4552  	// SearchQualityMetadata: Additional search quality metadata of the item
  4553  	SearchQualityMetadata *SearchQualityMetadata `json:"searchQualityMetadata,omitempty"`
  4554  	// SourceRepositoryUrl: Link to the source repository serving the data. Seach
  4555  	// results apply this link to the title. Whitespace or special characters may
  4556  	// cause Cloud Seach result links to trigger a redirect notice; to avoid this,
  4557  	// encode the URL. The maximum length is 2048 characters.
  4558  	SourceRepositoryUrl string `json:"sourceRepositoryUrl,omitempty"`
  4559  	// Title: The title of the item. If given, this will be the displayed title of
  4560  	// the Search result. The maximum length is 2048 characters.
  4561  	Title string `json:"title,omitempty"`
  4562  	// UpdateTime: The time when the item was last modified in the source
  4563  	// repository.
  4564  	UpdateTime string `json:"updateTime,omitempty"`
  4565  	// ForceSendFields is a list of field names (e.g. "ContainerName") to
  4566  	// unconditionally include in API requests. By default, fields with empty or
  4567  	// default values are omitted from API requests. See
  4568  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4569  	// details.
  4570  	ForceSendFields []string `json:"-"`
  4571  	// NullFields is a list of field names (e.g. "ContainerName") to include in API
  4572  	// requests with the JSON null value. By default, fields with empty values are
  4573  	// omitted from API requests. See
  4574  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4575  	NullFields []string `json:"-"`
  4576  }
  4577  
  4578  func (s *ItemMetadata) MarshalJSON() ([]byte, error) {
  4579  	type NoMethod ItemMetadata
  4580  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4581  }
  4582  
  4583  // ItemStatus: This contains item's status and any errors.
  4584  type ItemStatus struct {
  4585  	// Code: Status code.
  4586  	//
  4587  	// Possible values:
  4588  	//   "CODE_UNSPECIFIED" - Input-only value. Used with Items.list to list all
  4589  	// items in the queue, regardless of status.
  4590  	//   "ERROR" - Error encountered by Cloud Search while processing this item.
  4591  	// Details of the error are in repositoryError.
  4592  	//   "MODIFIED" - Item has been modified in the repository, and is out of date
  4593  	// with the version previously accepted into Cloud Search.
  4594  	//   "NEW_ITEM" - Item is known to exist in the repository, but is not yet
  4595  	// accepted by Cloud Search. An item can be in this state when Items.push has
  4596  	// been called for an item of this name that did not exist previously.
  4597  	//   "ACCEPTED" - API has accepted the up-to-date data of this item.
  4598  	Code string `json:"code,omitempty"`
  4599  	// ProcessingErrors: Error details in case the item is in ERROR state.
  4600  	ProcessingErrors []*ProcessingError `json:"processingErrors,omitempty"`
  4601  	// RepositoryErrors: Repository error reported by connector.
  4602  	RepositoryErrors []*RepositoryError `json:"repositoryErrors,omitempty"`
  4603  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  4604  	// include in API requests. By default, fields with empty or default values are
  4605  	// omitted from API requests. See
  4606  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4607  	// details.
  4608  	ForceSendFields []string `json:"-"`
  4609  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  4610  	// with the JSON null value. By default, fields with empty values are omitted
  4611  	// from API requests. See
  4612  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4613  	NullFields []string `json:"-"`
  4614  }
  4615  
  4616  func (s *ItemStatus) MarshalJSON() ([]byte, error) {
  4617  	type NoMethod ItemStatus
  4618  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4619  }
  4620  
  4621  // ItemStructuredData: Available structured data fields for the item.
  4622  type ItemStructuredData struct {
  4623  	// Hash: Hashing value provided by the API caller. This can be used with the
  4624  	// items.push method to calculate modified state. The maximum length is 2048
  4625  	// characters.
  4626  	Hash string `json:"hash,omitempty"`
  4627  	// Object: The structured data object that should conform to a registered
  4628  	// object definition in the schema for the data source.
  4629  	Object *StructuredDataObject `json:"object,omitempty"`
  4630  	// ForceSendFields is a list of field names (e.g. "Hash") to unconditionally
  4631  	// include in API requests. By default, fields with empty or default values are
  4632  	// omitted from API requests. See
  4633  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4634  	// details.
  4635  	ForceSendFields []string `json:"-"`
  4636  	// NullFields is a list of field names (e.g. "Hash") to include in API requests
  4637  	// with the JSON null value. By default, fields with empty values are omitted
  4638  	// from API requests. See
  4639  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4640  	NullFields []string `json:"-"`
  4641  }
  4642  
  4643  func (s *ItemStructuredData) MarshalJSON() ([]byte, error) {
  4644  	type NoMethod ItemStructuredData
  4645  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4646  }
  4647  
  4648  type ListDataSourceResponse struct {
  4649  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  4650  	// are no more results in the list.
  4651  	NextPageToken string        `json:"nextPageToken,omitempty"`
  4652  	Sources       []*DataSource `json:"sources,omitempty"`
  4653  
  4654  	// ServerResponse contains the HTTP response code and headers from the server.
  4655  	googleapi.ServerResponse `json:"-"`
  4656  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  4657  	// unconditionally include in API requests. By default, fields with empty or
  4658  	// default values are omitted from API requests. See
  4659  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4660  	// details.
  4661  	ForceSendFields []string `json:"-"`
  4662  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  4663  	// requests with the JSON null value. By default, fields with empty values are
  4664  	// omitted from API requests. See
  4665  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4666  	NullFields []string `json:"-"`
  4667  }
  4668  
  4669  func (s *ListDataSourceResponse) MarshalJSON() ([]byte, error) {
  4670  	type NoMethod ListDataSourceResponse
  4671  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4672  }
  4673  
  4674  type ListItemNamesForUnmappedIdentityResponse struct {
  4675  	ItemNames []string `json:"itemNames,omitempty"`
  4676  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  4677  	// are no more results in the list.
  4678  	NextPageToken string `json:"nextPageToken,omitempty"`
  4679  
  4680  	// ServerResponse contains the HTTP response code and headers from the server.
  4681  	googleapi.ServerResponse `json:"-"`
  4682  	// ForceSendFields is a list of field names (e.g. "ItemNames") to
  4683  	// unconditionally include in API requests. By default, fields with empty or
  4684  	// default values are omitted from API requests. See
  4685  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4686  	// details.
  4687  	ForceSendFields []string `json:"-"`
  4688  	// NullFields is a list of field names (e.g. "ItemNames") to include in API
  4689  	// requests with the JSON null value. By default, fields with empty values are
  4690  	// omitted from API requests. See
  4691  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4692  	NullFields []string `json:"-"`
  4693  }
  4694  
  4695  func (s *ListItemNamesForUnmappedIdentityResponse) MarshalJSON() ([]byte, error) {
  4696  	type NoMethod ListItemNamesForUnmappedIdentityResponse
  4697  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4698  }
  4699  
  4700  type ListItemsResponse struct {
  4701  	Items []*Item `json:"items,omitempty"`
  4702  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  4703  	// are no more results in the list.
  4704  	NextPageToken string `json:"nextPageToken,omitempty"`
  4705  
  4706  	// ServerResponse contains the HTTP response code and headers from the server.
  4707  	googleapi.ServerResponse `json:"-"`
  4708  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
  4709  	// include in API requests. By default, fields with empty or default values are
  4710  	// omitted from API requests. See
  4711  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4712  	// details.
  4713  	ForceSendFields []string `json:"-"`
  4714  	// NullFields is a list of field names (e.g. "Items") to include in API
  4715  	// requests with the JSON null value. By default, fields with empty values are
  4716  	// omitted from API requests. See
  4717  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4718  	NullFields []string `json:"-"`
  4719  }
  4720  
  4721  func (s *ListItemsResponse) MarshalJSON() ([]byte, error) {
  4722  	type NoMethod ListItemsResponse
  4723  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4724  }
  4725  
  4726  // ListOperationsResponse: The response message for Operations.ListOperations.
  4727  type ListOperationsResponse struct {
  4728  	// NextPageToken: The standard List next-page token.
  4729  	NextPageToken string `json:"nextPageToken,omitempty"`
  4730  	// Operations: A list of operations that matches the specified filter in the
  4731  	// request.
  4732  	Operations []*Operation `json:"operations,omitempty"`
  4733  
  4734  	// ServerResponse contains the HTTP response code and headers from the server.
  4735  	googleapi.ServerResponse `json:"-"`
  4736  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  4737  	// unconditionally include in API requests. By default, fields with empty or
  4738  	// default values are omitted from API requests. See
  4739  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4740  	// details.
  4741  	ForceSendFields []string `json:"-"`
  4742  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  4743  	// requests with the JSON null value. By default, fields with empty values are
  4744  	// omitted from API requests. See
  4745  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4746  	NullFields []string `json:"-"`
  4747  }
  4748  
  4749  func (s *ListOperationsResponse) MarshalJSON() ([]byte, error) {
  4750  	type NoMethod ListOperationsResponse
  4751  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4752  }
  4753  
  4754  // ListQuerySourcesResponse: List sources response.
  4755  type ListQuerySourcesResponse struct {
  4756  	NextPageToken string         `json:"nextPageToken,omitempty"`
  4757  	Sources       []*QuerySource `json:"sources,omitempty"`
  4758  
  4759  	// ServerResponse contains the HTTP response code and headers from the server.
  4760  	googleapi.ServerResponse `json:"-"`
  4761  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  4762  	// unconditionally include in API requests. By default, fields with empty or
  4763  	// default values are omitted from API requests. See
  4764  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4765  	// details.
  4766  	ForceSendFields []string `json:"-"`
  4767  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  4768  	// requests with the JSON null value. By default, fields with empty values are
  4769  	// omitted from API requests. See
  4770  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4771  	NullFields []string `json:"-"`
  4772  }
  4773  
  4774  func (s *ListQuerySourcesResponse) MarshalJSON() ([]byte, error) {
  4775  	type NoMethod ListQuerySourcesResponse
  4776  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4777  }
  4778  
  4779  type ListSearchApplicationsResponse struct {
  4780  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  4781  	// are no more results in the list.
  4782  	NextPageToken      string               `json:"nextPageToken,omitempty"`
  4783  	SearchApplications []*SearchApplication `json:"searchApplications,omitempty"`
  4784  
  4785  	// ServerResponse contains the HTTP response code and headers from the server.
  4786  	googleapi.ServerResponse `json:"-"`
  4787  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  4788  	// unconditionally include in API requests. By default, fields with empty or
  4789  	// default values are omitted from API requests. See
  4790  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4791  	// details.
  4792  	ForceSendFields []string `json:"-"`
  4793  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  4794  	// requests with the JSON null value. By default, fields with empty values are
  4795  	// omitted from API requests. See
  4796  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4797  	NullFields []string `json:"-"`
  4798  }
  4799  
  4800  func (s *ListSearchApplicationsResponse) MarshalJSON() ([]byte, error) {
  4801  	type NoMethod ListSearchApplicationsResponse
  4802  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4803  }
  4804  
  4805  type ListUnmappedIdentitiesResponse struct {
  4806  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  4807  	// are no more results in the list.
  4808  	NextPageToken      string              `json:"nextPageToken,omitempty"`
  4809  	UnmappedIdentities []*UnmappedIdentity `json:"unmappedIdentities,omitempty"`
  4810  
  4811  	// ServerResponse contains the HTTP response code and headers from the server.
  4812  	googleapi.ServerResponse `json:"-"`
  4813  	// ForceSendFields is a list of field names (e.g. "NextPageToken") to
  4814  	// unconditionally include in API requests. By default, fields with empty or
  4815  	// default values are omitted from API requests. See
  4816  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4817  	// details.
  4818  	ForceSendFields []string `json:"-"`
  4819  	// NullFields is a list of field names (e.g. "NextPageToken") to include in API
  4820  	// requests with the JSON null value. By default, fields with empty values are
  4821  	// omitted from API requests. See
  4822  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4823  	NullFields []string `json:"-"`
  4824  }
  4825  
  4826  func (s *ListUnmappedIdentitiesResponse) MarshalJSON() ([]byte, error) {
  4827  	type NoMethod ListUnmappedIdentitiesResponse
  4828  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4829  }
  4830  
  4831  // MapInfo: Geo information used for rendering a map that shows the user's work
  4832  // location.
  4833  type MapInfo struct {
  4834  	// Lat: Latitude in degrees
  4835  	Lat float64 `json:"lat,omitempty"`
  4836  	// LocationUrl: URL to a view of a map centered on the user's work location in
  4837  	// Campus Maps (for google.com) or Google Maps (external).
  4838  	LocationUrl *SafeUrlProto `json:"locationUrl,omitempty"`
  4839  	// Long: Longitude in degrees
  4840  	Long float64 `json:"long,omitempty"`
  4841  	// MapTile: MapTiles for the area around a user's work location
  4842  	MapTile []*MapTile `json:"mapTile,omitempty"`
  4843  	// Zoom: The zoom level of the map. A constant zoom value of 18 is used for now
  4844  	// to match the zoom of the map shown on a Moma Teams Profile page
  4845  	Zoom int64 `json:"zoom,omitempty"`
  4846  	// ForceSendFields is a list of field names (e.g. "Lat") to unconditionally
  4847  	// include in API requests. By default, fields with empty or default values are
  4848  	// omitted from API requests. See
  4849  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4850  	// details.
  4851  	ForceSendFields []string `json:"-"`
  4852  	// NullFields is a list of field names (e.g. "Lat") to include in API requests
  4853  	// with the JSON null value. By default, fields with empty values are omitted
  4854  	// from API requests. See
  4855  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4856  	NullFields []string `json:"-"`
  4857  }
  4858  
  4859  func (s *MapInfo) MarshalJSON() ([]byte, error) {
  4860  	type NoMethod MapInfo
  4861  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4862  }
  4863  
  4864  func (s *MapInfo) UnmarshalJSON(data []byte) error {
  4865  	type NoMethod MapInfo
  4866  	var s1 struct {
  4867  		Lat  gensupport.JSONFloat64 `json:"lat"`
  4868  		Long gensupport.JSONFloat64 `json:"long"`
  4869  		*NoMethod
  4870  	}
  4871  	s1.NoMethod = (*NoMethod)(s)
  4872  	if err := json.Unmarshal(data, &s1); err != nil {
  4873  		return err
  4874  	}
  4875  	s.Lat = float64(s1.Lat)
  4876  	s.Long = float64(s1.Long)
  4877  	return nil
  4878  }
  4879  
  4880  // MapTile: Information used to render a map tile image in the proper location
  4881  // on a map.
  4882  type MapTile struct {
  4883  	// ImageUrl: URL to an image file containing an office layout of the user's
  4884  	// location for their organization, if one is available. For google.com, this
  4885  	// image is from Corp Campus Maps.
  4886  	ImageUrl *SafeUrlProto `json:"imageUrl,omitempty"`
  4887  	// TileX: Map tile x coordinate
  4888  	TileX float64 `json:"tileX,omitempty"`
  4889  	// TileY: Map tile y coordinate
  4890  	TileY float64 `json:"tileY,omitempty"`
  4891  	// ForceSendFields is a list of field names (e.g. "ImageUrl") to
  4892  	// unconditionally include in API requests. By default, fields with empty or
  4893  	// default values are omitted from API requests. See
  4894  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4895  	// details.
  4896  	ForceSendFields []string `json:"-"`
  4897  	// NullFields is a list of field names (e.g. "ImageUrl") to include in API
  4898  	// requests with the JSON null value. By default, fields with empty values are
  4899  	// omitted from API requests. See
  4900  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4901  	NullFields []string `json:"-"`
  4902  }
  4903  
  4904  func (s *MapTile) MarshalJSON() ([]byte, error) {
  4905  	type NoMethod MapTile
  4906  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4907  }
  4908  
  4909  func (s *MapTile) UnmarshalJSON(data []byte) error {
  4910  	type NoMethod MapTile
  4911  	var s1 struct {
  4912  		TileX gensupport.JSONFloat64 `json:"tileX"`
  4913  		TileY gensupport.JSONFloat64 `json:"tileY"`
  4914  		*NoMethod
  4915  	}
  4916  	s1.NoMethod = (*NoMethod)(s)
  4917  	if err := json.Unmarshal(data, &s1); err != nil {
  4918  		return err
  4919  	}
  4920  	s.TileX = float64(s1.TileX)
  4921  	s.TileY = float64(s1.TileY)
  4922  	return nil
  4923  }
  4924  
  4925  // MatchRange: Matched range of a snippet [start, end).
  4926  type MatchRange struct {
  4927  	// End: End of the match in the snippet.
  4928  	End int64 `json:"end,omitempty"`
  4929  	// Start: Starting position of the match in the snippet.
  4930  	Start int64 `json:"start,omitempty"`
  4931  	// ForceSendFields is a list of field names (e.g. "End") to unconditionally
  4932  	// include in API requests. By default, fields with empty or default values are
  4933  	// omitted from API requests. See
  4934  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4935  	// details.
  4936  	ForceSendFields []string `json:"-"`
  4937  	// NullFields is a list of field names (e.g. "End") to include in API requests
  4938  	// with the JSON null value. By default, fields with empty values are omitted
  4939  	// from API requests. See
  4940  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4941  	NullFields []string `json:"-"`
  4942  }
  4943  
  4944  func (s *MatchRange) MarshalJSON() ([]byte, error) {
  4945  	type NoMethod MatchRange
  4946  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4947  }
  4948  
  4949  // Media: Media resource.
  4950  type Media struct {
  4951  	// ResourceName: Name of the media resource.
  4952  	ResourceName string `json:"resourceName,omitempty"`
  4953  
  4954  	// ServerResponse contains the HTTP response code and headers from the server.
  4955  	googleapi.ServerResponse `json:"-"`
  4956  	// ForceSendFields is a list of field names (e.g. "ResourceName") to
  4957  	// unconditionally include in API requests. By default, fields with empty or
  4958  	// default values are omitted from API requests. See
  4959  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  4960  	// details.
  4961  	ForceSendFields []string `json:"-"`
  4962  	// NullFields is a list of field names (e.g. "ResourceName") to include in API
  4963  	// requests with the JSON null value. By default, fields with empty values are
  4964  	// omitted from API requests. See
  4965  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  4966  	NullFields []string `json:"-"`
  4967  }
  4968  
  4969  func (s *Media) MarshalJSON() ([]byte, error) {
  4970  	type NoMethod Media
  4971  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  4972  }
  4973  
  4974  // Metadata: Metadata of a matched search result.
  4975  type Metadata struct {
  4976  	// CreateTime: The creation time for this document or object in the search
  4977  	// result.
  4978  	CreateTime string `json:"createTime,omitempty"`
  4979  	// DisplayOptions: Options that specify how to display a structured data search
  4980  	// result.
  4981  	DisplayOptions *ResultDisplayMetadata `json:"displayOptions,omitempty"`
  4982  	// Fields: Indexed fields in structured data, returned as a generic named
  4983  	// property.
  4984  	Fields []*NamedProperty `json:"fields,omitempty"`
  4985  	// MimeType: Mime type of the search result.
  4986  	MimeType string `json:"mimeType,omitempty"`
  4987  	// ObjectType: Object type of the search result.
  4988  	ObjectType string `json:"objectType,omitempty"`
  4989  	// Owner: Owner (usually creator) of the document or object of the search
  4990  	// result.
  4991  	Owner *Person `json:"owner,omitempty"`
  4992  	// Source: The named source for the result, such as Gmail.
  4993  	Source *Source `json:"source,omitempty"`
  4994  	// ThumbnailUrl: The thumbnail URL of the result.
  4995  	ThumbnailUrl string `json:"thumbnailUrl,omitempty"`
  4996  	// UpdateTime: The last modified date for the object in the search result. If
  4997  	// not set in the item, the value returned here is empty. When `updateTime` is
  4998  	// used for calculating freshness and is not set, this value defaults to 2
  4999  	// years from the current time.
  5000  	UpdateTime string `json:"updateTime,omitempty"`
  5001  	// ForceSendFields is a list of field names (e.g. "CreateTime") to
  5002  	// unconditionally include in API requests. By default, fields with empty or
  5003  	// default values are omitted from API requests. See
  5004  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5005  	// details.
  5006  	ForceSendFields []string `json:"-"`
  5007  	// NullFields is a list of field names (e.g. "CreateTime") to include in API
  5008  	// requests with the JSON null value. By default, fields with empty values are
  5009  	// omitted from API requests. See
  5010  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5011  	NullFields []string `json:"-"`
  5012  }
  5013  
  5014  func (s *Metadata) MarshalJSON() ([]byte, error) {
  5015  	type NoMethod Metadata
  5016  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5017  }
  5018  
  5019  // Metaline: A metaline is a list of properties that are displayed along with
  5020  // the search result to provide context.
  5021  type Metaline struct {
  5022  	// Properties: The list of displayed properties for the metaline. The maximum
  5023  	// number of properties is 5.
  5024  	Properties []*DisplayedProperty `json:"properties,omitempty"`
  5025  	// ForceSendFields is a list of field names (e.g. "Properties") to
  5026  	// unconditionally include in API requests. By default, fields with empty or
  5027  	// default values are omitted from API requests. See
  5028  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5029  	// details.
  5030  	ForceSendFields []string `json:"-"`
  5031  	// NullFields is a list of field names (e.g. "Properties") to include in API
  5032  	// requests with the JSON null value. By default, fields with empty values are
  5033  	// omitted from API requests. See
  5034  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5035  	NullFields []string `json:"-"`
  5036  }
  5037  
  5038  func (s *Metaline) MarshalJSON() ([]byte, error) {
  5039  	type NoMethod Metaline
  5040  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5041  }
  5042  
  5043  // Name: A person's name.
  5044  type Name struct {
  5045  	// DisplayName: The read-only display name formatted according to the locale
  5046  	// specified by the viewer's account or the `Accept-Language` HTTP header.
  5047  	DisplayName string `json:"displayName,omitempty"`
  5048  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  5049  	// unconditionally include in API requests. By default, fields with empty or
  5050  	// default values are omitted from API requests. See
  5051  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5052  	// details.
  5053  	ForceSendFields []string `json:"-"`
  5054  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  5055  	// requests with the JSON null value. By default, fields with empty values are
  5056  	// omitted from API requests. See
  5057  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5058  	NullFields []string `json:"-"`
  5059  }
  5060  
  5061  func (s *Name) MarshalJSON() ([]byte, error) {
  5062  	type NoMethod Name
  5063  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5064  }
  5065  
  5066  // NamedProperty: A typed name-value pair for structured data. The type of the
  5067  // value should be the same as the registered type for the `name` property in
  5068  // the object definition of `objectType`.
  5069  type NamedProperty struct {
  5070  	BooleanValue  bool           `json:"booleanValue,omitempty"`
  5071  	DateValues    *DateValues    `json:"dateValues,omitempty"`
  5072  	DoubleValues  *DoubleValues  `json:"doubleValues,omitempty"`
  5073  	EnumValues    *EnumValues    `json:"enumValues,omitempty"`
  5074  	HtmlValues    *HtmlValues    `json:"htmlValues,omitempty"`
  5075  	IntegerValues *IntegerValues `json:"integerValues,omitempty"`
  5076  	// Name: The name of the property. This name should correspond to the name of
  5077  	// the property that was registered for object definition in the schema. The
  5078  	// maximum allowable length for this property is 256 characters.
  5079  	Name            string           `json:"name,omitempty"`
  5080  	ObjectValues    *ObjectValues    `json:"objectValues,omitempty"`
  5081  	TextValues      *TextValues      `json:"textValues,omitempty"`
  5082  	TimestampValues *TimestampValues `json:"timestampValues,omitempty"`
  5083  	// ForceSendFields is a list of field names (e.g. "BooleanValue") to
  5084  	// unconditionally include in API requests. By default, fields with empty or
  5085  	// default values are omitted from API requests. See
  5086  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5087  	// details.
  5088  	ForceSendFields []string `json:"-"`
  5089  	// NullFields is a list of field names (e.g. "BooleanValue") to include in API
  5090  	// requests with the JSON null value. By default, fields with empty values are
  5091  	// omitted from API requests. See
  5092  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5093  	NullFields []string `json:"-"`
  5094  }
  5095  
  5096  func (s *NamedProperty) MarshalJSON() ([]byte, error) {
  5097  	type NoMethod NamedProperty
  5098  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5099  }
  5100  
  5101  // ObjectDefinition: The definition for an object within a data source.
  5102  type ObjectDefinition struct {
  5103  	// Name: The name for the object, which then defines its type. Item indexing
  5104  	// requests should set the objectType field equal to this value. For example,
  5105  	// if *name* is *Document*, then indexing requests for items of type Document
  5106  	// should set objectType equal to *Document*. Each object definition must be
  5107  	// uniquely named within a schema. The name must start with a letter and can
  5108  	// only contain letters (A-Z, a-z) or numbers (0-9). The maximum length is 256
  5109  	// characters.
  5110  	Name string `json:"name,omitempty"`
  5111  	// Options: The optional object-specific options.
  5112  	Options *ObjectOptions `json:"options,omitempty"`
  5113  	// PropertyDefinitions: The property definitions for the object. The maximum
  5114  	// number of elements is 1000.
  5115  	PropertyDefinitions []*PropertyDefinition `json:"propertyDefinitions,omitempty"`
  5116  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  5117  	// include in API requests. By default, fields with empty or default values are
  5118  	// omitted from API requests. See
  5119  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5120  	// details.
  5121  	ForceSendFields []string `json:"-"`
  5122  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  5123  	// with the JSON null value. By default, fields with empty values are omitted
  5124  	// from API requests. See
  5125  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5126  	NullFields []string `json:"-"`
  5127  }
  5128  
  5129  func (s *ObjectDefinition) MarshalJSON() ([]byte, error) {
  5130  	type NoMethod ObjectDefinition
  5131  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5132  }
  5133  
  5134  // ObjectDisplayOptions: The display options for an object.
  5135  type ObjectDisplayOptions struct {
  5136  	// Metalines: Defines the properties that are displayed in the metalines of the
  5137  	// search results. The property values are displayed in the order given here.
  5138  	// If a property holds multiple values, all of the values are displayed before
  5139  	// the next properties. For this reason, it is a good practice to specify
  5140  	// singular properties before repeated properties in this list. All of the
  5141  	// properties must set is_returnable to true. The maximum number of metalines
  5142  	// is 3.
  5143  	Metalines []*Metaline `json:"metalines,omitempty"`
  5144  	// ObjectDisplayLabel: The user friendly label to display in the search result
  5145  	// to indicate the type of the item. This is OPTIONAL; if not provided, an
  5146  	// object label isn't displayed on the context line of the search results. The
  5147  	// maximum length is 64 characters.
  5148  	ObjectDisplayLabel string `json:"objectDisplayLabel,omitempty"`
  5149  	// ForceSendFields is a list of field names (e.g. "Metalines") to
  5150  	// unconditionally include in API requests. By default, fields with empty or
  5151  	// default values are omitted from API requests. See
  5152  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5153  	// details.
  5154  	ForceSendFields []string `json:"-"`
  5155  	// NullFields is a list of field names (e.g. "Metalines") to include in API
  5156  	// requests with the JSON null value. By default, fields with empty values are
  5157  	// omitted from API requests. See
  5158  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5159  	NullFields []string `json:"-"`
  5160  }
  5161  
  5162  func (s *ObjectDisplayOptions) MarshalJSON() ([]byte, error) {
  5163  	type NoMethod ObjectDisplayOptions
  5164  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5165  }
  5166  
  5167  // ObjectOptions: The options for an object.
  5168  type ObjectOptions struct {
  5169  	// DisplayOptions: The options that determine how the object is displayed in
  5170  	// the Cloud Search results page.
  5171  	DisplayOptions *ObjectDisplayOptions `json:"displayOptions,omitempty"`
  5172  	// FreshnessOptions: The freshness options for an object.
  5173  	FreshnessOptions *FreshnessOptions `json:"freshnessOptions,omitempty"`
  5174  	// SuggestionFilteringOperators: Operators that can be used to filter
  5175  	// suggestions. For Suggest API, only operators mentioned here will be honored
  5176  	// in the FilterOptions. Only TEXT and ENUM operators are supported. NOTE:
  5177  	// "objecttype", "type" and "mimetype" are already supported. This property is
  5178  	// to configure schema specific operators. Even though this is an array, only
  5179  	// one operator can be specified. This is an array for future extensibility.
  5180  	// Operators mapping to multiple properties within the same object are not
  5181  	// supported. If the operator spans across different object types, this option
  5182  	// has to be set once for each object definition.
  5183  	SuggestionFilteringOperators []string `json:"suggestionFilteringOperators,omitempty"`
  5184  	// ForceSendFields is a list of field names (e.g. "DisplayOptions") to
  5185  	// unconditionally include in API requests. By default, fields with empty or
  5186  	// default values are omitted from API requests. See
  5187  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5188  	// details.
  5189  	ForceSendFields []string `json:"-"`
  5190  	// NullFields is a list of field names (e.g. "DisplayOptions") to include in
  5191  	// API requests with the JSON null value. By default, fields with empty values
  5192  	// are omitted from API requests. See
  5193  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5194  	NullFields []string `json:"-"`
  5195  }
  5196  
  5197  func (s *ObjectOptions) MarshalJSON() ([]byte, error) {
  5198  	type NoMethod ObjectOptions
  5199  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5200  }
  5201  
  5202  // ObjectPropertyOptions: The options for object properties.
  5203  type ObjectPropertyOptions struct {
  5204  	// SubobjectProperties: The properties of the sub-object. These properties
  5205  	// represent a nested object. For example, if this property represents a postal
  5206  	// address, the subobjectProperties might be named *street*, *city*, and
  5207  	// *state*. The maximum number of elements is 1000.
  5208  	SubobjectProperties []*PropertyDefinition `json:"subobjectProperties,omitempty"`
  5209  	// ForceSendFields is a list of field names (e.g. "SubobjectProperties") to
  5210  	// unconditionally include in API requests. By default, fields with empty or
  5211  	// default values are omitted from API requests. See
  5212  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5213  	// details.
  5214  	ForceSendFields []string `json:"-"`
  5215  	// NullFields is a list of field names (e.g. "SubobjectProperties") to include
  5216  	// in API requests with the JSON null value. By default, fields with empty
  5217  	// values are omitted from API requests. See
  5218  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5219  	NullFields []string `json:"-"`
  5220  }
  5221  
  5222  func (s *ObjectPropertyOptions) MarshalJSON() ([]byte, error) {
  5223  	type NoMethod ObjectPropertyOptions
  5224  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5225  }
  5226  
  5227  // ObjectValues: List of object values.
  5228  type ObjectValues struct {
  5229  	Values []*StructuredDataObject `json:"values,omitempty"`
  5230  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  5231  	// include in API requests. By default, fields with empty or default values are
  5232  	// omitted from API requests. See
  5233  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5234  	// details.
  5235  	ForceSendFields []string `json:"-"`
  5236  	// NullFields is a list of field names (e.g. "Values") to include in API
  5237  	// requests with the JSON null value. By default, fields with empty values are
  5238  	// omitted from API requests. See
  5239  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5240  	NullFields []string `json:"-"`
  5241  }
  5242  
  5243  func (s *ObjectValues) MarshalJSON() ([]byte, error) {
  5244  	type NoMethod ObjectValues
  5245  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5246  }
  5247  
  5248  // Operation: This resource represents a long-running operation that is the
  5249  // result of a network API call.
  5250  type Operation struct {
  5251  	// Done: If the value is `false`, it means the operation is still in progress.
  5252  	// If `true`, the operation is completed, and either `error` or `response` is
  5253  	// available.
  5254  	Done bool `json:"done,omitempty"`
  5255  	// Error: The error result of the operation in case of failure or cancellation.
  5256  	Error *Status `json:"error,omitempty"`
  5257  	// Metadata: Service-specific metadata associated with the operation. It
  5258  	// typically contains progress information and common metadata such as create
  5259  	// time. Some services might not provide such metadata. Any method that returns
  5260  	// a long-running operation should document the metadata type, if any.
  5261  	Metadata googleapi.RawMessage `json:"metadata,omitempty"`
  5262  	// Name: The server-assigned name, which is only unique within the same service
  5263  	// that originally returns it. If you use the default HTTP mapping, the `name`
  5264  	// should be a resource name ending with `operations/{unique_id}`.
  5265  	Name string `json:"name,omitempty"`
  5266  	// Response: The normal, successful response of the operation. If the original
  5267  	// method returns no data on success, such as `Delete`, the response is
  5268  	// `google.protobuf.Empty`. If the original method is standard
  5269  	// `Get`/`Create`/`Update`, the response should be the resource. For other
  5270  	// methods, the response should have the type `XxxResponse`, where `Xxx` is the
  5271  	// original method name. For example, if the original method name is
  5272  	// `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
  5273  	Response googleapi.RawMessage `json:"response,omitempty"`
  5274  
  5275  	// ServerResponse contains the HTTP response code and headers from the server.
  5276  	googleapi.ServerResponse `json:"-"`
  5277  	// ForceSendFields is a list of field names (e.g. "Done") to unconditionally
  5278  	// include in API requests. By default, fields with empty or default values are
  5279  	// omitted from API requests. See
  5280  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5281  	// details.
  5282  	ForceSendFields []string `json:"-"`
  5283  	// NullFields is a list of field names (e.g. "Done") to include in API requests
  5284  	// with the JSON null value. By default, fields with empty values are omitted
  5285  	// from API requests. See
  5286  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5287  	NullFields []string `json:"-"`
  5288  }
  5289  
  5290  func (s *Operation) MarshalJSON() ([]byte, error) {
  5291  	type NoMethod Operation
  5292  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5293  }
  5294  
  5295  type PeoplePromotionCard struct {
  5296  	People []*PersonCore `json:"people,omitempty"`
  5297  	// ForceSendFields is a list of field names (e.g. "People") to unconditionally
  5298  	// include in API requests. By default, fields with empty or default values are
  5299  	// omitted from API requests. See
  5300  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5301  	// details.
  5302  	ForceSendFields []string `json:"-"`
  5303  	// NullFields is a list of field names (e.g. "People") to include in API
  5304  	// requests with the JSON null value. By default, fields with empty values are
  5305  	// omitted from API requests. See
  5306  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5307  	NullFields []string `json:"-"`
  5308  }
  5309  
  5310  func (s *PeoplePromotionCard) MarshalJSON() ([]byte, error) {
  5311  	type NoMethod PeoplePromotionCard
  5312  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5313  }
  5314  
  5315  // PeopleSuggestion: This field contains information about the person being
  5316  // suggested.
  5317  type PeopleSuggestion struct {
  5318  	// Person: Suggested person. All fields of the person object might not be
  5319  	// populated.
  5320  	Person *Person `json:"person,omitempty"`
  5321  	// ForceSendFields is a list of field names (e.g. "Person") to unconditionally
  5322  	// include in API requests. By default, fields with empty or default values are
  5323  	// omitted from API requests. See
  5324  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5325  	// details.
  5326  	ForceSendFields []string `json:"-"`
  5327  	// NullFields is a list of field names (e.g. "Person") to include in API
  5328  	// requests with the JSON null value. By default, fields with empty values are
  5329  	// omitted from API requests. See
  5330  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5331  	NullFields []string `json:"-"`
  5332  }
  5333  
  5334  func (s *PeopleSuggestion) MarshalJSON() ([]byte, error) {
  5335  	type NoMethod PeopleSuggestion
  5336  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5337  }
  5338  
  5339  // Person: Object to represent a person.
  5340  type Person struct {
  5341  	// EmailAddresses: The person's email addresses
  5342  	EmailAddresses []*EmailAddress `json:"emailAddresses,omitempty"`
  5343  	// Name: The resource name of the person to provide information about. See
  5344  	// `People.get` (https://developers.google.com/people/api/rest/v1/people/get)
  5345  	// from the Google People API.
  5346  	Name string `json:"name,omitempty"`
  5347  	// ObfuscatedId: Obfuscated ID of a person.
  5348  	ObfuscatedId string `json:"obfuscatedId,omitempty"`
  5349  	// PersonNames: The person's name
  5350  	PersonNames []*Name `json:"personNames,omitempty"`
  5351  	// PhoneNumbers: The person's phone numbers
  5352  	PhoneNumbers []*PhoneNumber `json:"phoneNumbers,omitempty"`
  5353  	// Photos: A person's read-only photo. A picture shown next to the person's
  5354  	// name to help others recognize the person in search results.
  5355  	Photos []*Photo `json:"photos,omitempty"`
  5356  	// ForceSendFields is a list of field names (e.g. "EmailAddresses") to
  5357  	// unconditionally include in API requests. By default, fields with empty or
  5358  	// default values are omitted from API requests. See
  5359  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5360  	// details.
  5361  	ForceSendFields []string `json:"-"`
  5362  	// NullFields is a list of field names (e.g. "EmailAddresses") to include in
  5363  	// API requests with the JSON null value. By default, fields with empty values
  5364  	// are omitted from API requests. See
  5365  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5366  	NullFields []string `json:"-"`
  5367  }
  5368  
  5369  func (s *Person) MarshalJSON() ([]byte, error) {
  5370  	type NoMethod Person
  5371  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5372  }
  5373  
  5374  // PersonCore: Information for rendering a person. NEXT ID: 37
  5375  type PersonCore struct {
  5376  	// AddressMeAs: Instructions for how to address this person (e.g. custom
  5377  	// pronouns). For google.com this is a set of pronouns from a defined list of
  5378  	// options.
  5379  	AddressMeAs string `json:"addressMeAs,omitempty"`
  5380  	// AdminTo: People the profile owner is an admin to. Note that not all fields
  5381  	// of these PersonCores will be set, in particular, relationships will be
  5382  	// empty.
  5383  	AdminTo []*PersonCore `json:"adminTo,omitempty"`
  5384  	// Admins: The profile owner's admins in no particular order. Note that not all
  5385  	// fields of these PersonCores will be set, in particular, relationships will
  5386  	// be empty.
  5387  	Admins []*PersonCore `json:"admins,omitempty"`
  5388  	// Possible values:
  5389  	//   "UNKNOWN"
  5390  	//   "OUT_OF_OFFICE"
  5391  	//   "OUTSIDE_WORKING_HOURS"
  5392  	//   "AVAILABLE"
  5393  	AvailabilityStatus string `json:"availabilityStatus,omitempty"`
  5394  	// Birthday: Person birthday.
  5395  	Birthday *Date `json:"birthday,omitempty"`
  5396  	// CalendarUrl: The URL to open the profile owner's primary calendar.
  5397  	CalendarUrl *SafeUrlProto `json:"calendarUrl,omitempty"`
  5398  	// ChatUrl: The URL to start a chat conversation with the profile owner. For
  5399  	// google.com this is a Hangouts URL.
  5400  	ChatUrl *SafeUrlProto `json:"chatUrl,omitempty"`
  5401  	// CostCenter: Person's cost center as a string, e.g. "926: Googler Apps".
  5402  	CostCenter string `json:"costCenter,omitempty"`
  5403  	// Department: The person's Organization department, e.g. "People Operations".
  5404  	// For google.com this is usually called "area".
  5405  	Department string `json:"department,omitempty"`
  5406  	// DirectReports: A subset of the profile owner's direct reports. The number of
  5407  	// entities here may be less than total_direct_reports_count, because typically
  5408  	// ProfileResponse does not include all the person's reports, if there are too
  5409  	// many to retrieve efficiently. Note that not all fields of these PersonCores
  5410  	// will be set, in particular, relationships will be empty.
  5411  	DirectReports []*PersonCore `json:"directReports,omitempty"`
  5412  	// DottedLineManagers: The profile owner's direct dotted line managers in no
  5413  	// particular order. Note that not all fields of these PersonCores will be set,
  5414  	// in particular, relationships will be empty.
  5415  	DottedLineManagers []*PersonCore `json:"dottedLineManagers,omitempty"`
  5416  	// DottedLineReports: A subset of the profile owner's dotted-line reports. The
  5417  	// number of entities here may be less than total_dlr_count. Note that not all
  5418  	// fields of these PersonCores will be set, in particular, relationships will
  5419  	// be empty.
  5420  	DottedLineReports []*PersonCore `json:"dottedLineReports,omitempty"`
  5421  	// Emails: E-mail addresses of the person. The primary or preferred email
  5422  	// should be first.
  5423  	Emails []string `json:"emails,omitempty"`
  5424  	// EmployeeId: Person's employee number (external ID of type "organization")
  5425  	// For google.com this is the badge number (e.g. 2 for Larry Page).
  5426  	EmployeeId string `json:"employeeId,omitempty"`
  5427  	// Fingerprint: A fingerprint used by PAPI to reliably determine if a resource
  5428  	// has changed Externally it is used as part of the etag.
  5429  	Fingerprint string `json:"fingerprint,omitempty"`
  5430  	// FtePermille: Full-time equivalent (in ‰) (e.g. 800 for a person who's
  5431  	// working 80%).
  5432  	FtePermille int64    `json:"ftePermille,omitempty,string"`
  5433  	GeoLocation *MapInfo `json:"geoLocation,omitempty"`
  5434  	GmailUrl    string   `json:"gmailUrl,omitempty"`
  5435  	// JobTitle: Profile owner's job title (e.g. "Software Engineer"). For
  5436  	// google.com this is the Workday preferred job title.
  5437  	JobTitle string `json:"jobTitle,omitempty"`
  5438  	// KeywordTypes: List of keys to use from the map 'keywords'.
  5439  	KeywordTypes []string `json:"keywordTypes,omitempty"`
  5440  	// Keywords: Custom keywords the domain admin has added.
  5441  	Keywords map[string]string `json:"keywords,omitempty"`
  5442  	// Links: Custom links the profile owner has added.
  5443  	Links []*EnterpriseTopazFrontendTeamsLink `json:"links,omitempty"`
  5444  	// Location: Detailed desk location within the company. For google.com this is
  5445  	// the desk location code (e.g. "DE-MUC-ARP-6T2-6T2C0C") if the person has a
  5446  	// desk.
  5447  	Location string `json:"location,omitempty"`
  5448  	// Managers: The profile owner's management chain from top to bottom, where
  5449  	// managers[0] is the CEO, manager[N-2] is the person's manager's manager and
  5450  	// managers[N-1] is the person's direct manager. Note that not all fields of
  5451  	// these PersonCores will be set, in particular, relationships will be empty.
  5452  	Managers []*PersonCore `json:"managers,omitempty"`
  5453  	// Mission: Custom mission statement the profile owner has added.
  5454  	Mission string `json:"mission,omitempty"`
  5455  	// Name: Human-readable Unicode display name.
  5456  	Name string `json:"name,omitempty"`
  5457  	// OfficeLocation: Office/building identifier within the company. For
  5458  	// google.com this is the office code (e.g. "DE-MUC-ARP").
  5459  	OfficeLocation string `json:"officeLocation,omitempty"`
  5460  	// PersonId: The person's obfuscated Gaia ID.
  5461  	PersonId     string                                               `json:"personId,omitempty"`
  5462  	PhoneNumbers []*EnterpriseTopazFrontendTeamsPersonCorePhoneNumber `json:"phoneNumbers,omitempty"`
  5463  	// PhotoUrl: Person photo.
  5464  	PhotoUrl *SafeUrlProto `json:"photoUrl,omitempty"`
  5465  	// PostalAddress: Postal address of office/building.
  5466  	PostalAddress string `json:"postalAddress,omitempty"`
  5467  	// TotalDirectReportsCount: Total count of the profile owner's direct reports.
  5468  	TotalDirectReportsCount int64 `json:"totalDirectReportsCount,omitempty"`
  5469  	// TotalDlrCount: Total count of the profile owner's dotted-line reports.
  5470  	TotalDlrCount int64 `json:"totalDlrCount,omitempty"`
  5471  	// TotalFteCount: The sum of all profile owner's reports and their own
  5472  	// full-time-equivalents in ‰ (e.g. 1800 if one report is working 80% and
  5473  	// profile owner 100%).
  5474  	TotalFteCount int64 `json:"totalFteCount,omitempty,string"`
  5475  	// Username: External ID of type "login_id" for the profile. For google.com
  5476  	// this is the username/LDAP.
  5477  	Username          string `json:"username,omitempty"`
  5478  	WaldoComeBackTime string `json:"waldoComeBackTime,omitempty"`
  5479  	// ForceSendFields is a list of field names (e.g. "AddressMeAs") to
  5480  	// unconditionally include in API requests. By default, fields with empty or
  5481  	// default values are omitted from API requests. See
  5482  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5483  	// details.
  5484  	ForceSendFields []string `json:"-"`
  5485  	// NullFields is a list of field names (e.g. "AddressMeAs") to include in API
  5486  	// requests with the JSON null value. By default, fields with empty values are
  5487  	// omitted from API requests. See
  5488  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5489  	NullFields []string `json:"-"`
  5490  }
  5491  
  5492  func (s *PersonCore) MarshalJSON() ([]byte, error) {
  5493  	type NoMethod PersonCore
  5494  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5495  }
  5496  
  5497  // PhoneNumber: A person's Phone Number
  5498  type PhoneNumber struct {
  5499  	// PhoneNumber: The phone number of the person.
  5500  	PhoneNumber string `json:"phoneNumber,omitempty"`
  5501  	// Possible values:
  5502  	//   "OTHER"
  5503  	//   "MOBILE"
  5504  	//   "OFFICE"
  5505  	Type string `json:"type,omitempty"`
  5506  	// ForceSendFields is a list of field names (e.g. "PhoneNumber") to
  5507  	// unconditionally include in API requests. By default, fields with empty or
  5508  	// default values are omitted from API requests. See
  5509  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5510  	// details.
  5511  	ForceSendFields []string `json:"-"`
  5512  	// NullFields is a list of field names (e.g. "PhoneNumber") to include in API
  5513  	// requests with the JSON null value. By default, fields with empty values are
  5514  	// omitted from API requests. See
  5515  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5516  	NullFields []string `json:"-"`
  5517  }
  5518  
  5519  func (s *PhoneNumber) MarshalJSON() ([]byte, error) {
  5520  	type NoMethod PhoneNumber
  5521  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5522  }
  5523  
  5524  // Photo: A person's photo.
  5525  type Photo struct {
  5526  	// Url: The URL of the photo.
  5527  	Url string `json:"url,omitempty"`
  5528  	// ForceSendFields is a list of field names (e.g. "Url") to unconditionally
  5529  	// include in API requests. By default, fields with empty or default values are
  5530  	// omitted from API requests. See
  5531  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5532  	// details.
  5533  	ForceSendFields []string `json:"-"`
  5534  	// NullFields is a list of field names (e.g. "Url") to include in API requests
  5535  	// with the JSON null value. By default, fields with empty values are omitted
  5536  	// from API requests. See
  5537  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5538  	NullFields []string `json:"-"`
  5539  }
  5540  
  5541  func (s *Photo) MarshalJSON() ([]byte, error) {
  5542  	type NoMethod Photo
  5543  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5544  }
  5545  
  5546  type PollItemsRequest struct {
  5547  	// ConnectorName: The name of connector making this call. Format:
  5548  	// datasources/{source_id}/connectors/{ID}
  5549  	ConnectorName string `json:"connectorName,omitempty"`
  5550  	// DebugOptions: Common debug options.
  5551  	DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
  5552  	// Limit: Maximum number of items to return. The maximum value is 100 and the
  5553  	// default value is 20.
  5554  	Limit int64 `json:"limit,omitempty"`
  5555  	// Queue: Queue name to fetch items from. If unspecified, PollItems will fetch
  5556  	// from 'default' queue. The maximum length is 100 characters.
  5557  	Queue string `json:"queue,omitempty"`
  5558  	// StatusCodes: Limit the items polled to the ones with these statuses.
  5559  	//
  5560  	// Possible values:
  5561  	//   "CODE_UNSPECIFIED" - Input-only value. Used with Items.list to list all
  5562  	// items in the queue, regardless of status.
  5563  	//   "ERROR" - Error encountered by Cloud Search while processing this item.
  5564  	// Details of the error are in repositoryError.
  5565  	//   "MODIFIED" - Item has been modified in the repository, and is out of date
  5566  	// with the version previously accepted into Cloud Search.
  5567  	//   "NEW_ITEM" - Item is known to exist in the repository, but is not yet
  5568  	// accepted by Cloud Search. An item can be in this state when Items.push has
  5569  	// been called for an item of this name that did not exist previously.
  5570  	//   "ACCEPTED" - API has accepted the up-to-date data of this item.
  5571  	StatusCodes []string `json:"statusCodes,omitempty"`
  5572  	// ForceSendFields is a list of field names (e.g. "ConnectorName") to
  5573  	// unconditionally include in API requests. By default, fields with empty or
  5574  	// default values are omitted from API requests. See
  5575  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5576  	// details.
  5577  	ForceSendFields []string `json:"-"`
  5578  	// NullFields is a list of field names (e.g. "ConnectorName") to include in API
  5579  	// requests with the JSON null value. By default, fields with empty values are
  5580  	// omitted from API requests. See
  5581  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5582  	NullFields []string `json:"-"`
  5583  }
  5584  
  5585  func (s *PollItemsRequest) MarshalJSON() ([]byte, error) {
  5586  	type NoMethod PollItemsRequest
  5587  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5588  }
  5589  
  5590  type PollItemsResponse struct {
  5591  	// Items: Set of items from the queue available for connector to process. These
  5592  	// items have the following subset of fields populated: version metadata.hash
  5593  	// structured_data.hash content.hash payload status queue
  5594  	Items []*Item `json:"items,omitempty"`
  5595  
  5596  	// ServerResponse contains the HTTP response code and headers from the server.
  5597  	googleapi.ServerResponse `json:"-"`
  5598  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
  5599  	// include in API requests. By default, fields with empty or default values are
  5600  	// omitted from API requests. See
  5601  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5602  	// details.
  5603  	ForceSendFields []string `json:"-"`
  5604  	// NullFields is a list of field names (e.g. "Items") to include in API
  5605  	// requests with the JSON null value. By default, fields with empty values are
  5606  	// omitted from API requests. See
  5607  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5608  	NullFields []string `json:"-"`
  5609  }
  5610  
  5611  func (s *PollItemsResponse) MarshalJSON() ([]byte, error) {
  5612  	type NoMethod PollItemsResponse
  5613  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5614  }
  5615  
  5616  // Principal: Reference to a user, group, or domain.
  5617  type Principal struct {
  5618  	// GroupResourceName: This principal is a group identified using an external
  5619  	// identity. The name field must specify the group resource name with this
  5620  	// format: identitysources/{source_id}/groups/{ID}
  5621  	GroupResourceName string `json:"groupResourceName,omitempty"`
  5622  	// GsuitePrincipal: This principal is a Google Workspace user, group or domain.
  5623  	GsuitePrincipal *GSuitePrincipal `json:"gsuitePrincipal,omitempty"`
  5624  	// UserResourceName: This principal is a user identified using an external
  5625  	// identity. The name field must specify the user resource name with this
  5626  	// format: identitysources/{source_id}/users/{ID}
  5627  	UserResourceName string `json:"userResourceName,omitempty"`
  5628  	// ForceSendFields is a list of field names (e.g. "GroupResourceName") to
  5629  	// unconditionally include in API requests. By default, fields with empty or
  5630  	// default values are omitted from API requests. See
  5631  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5632  	// details.
  5633  	ForceSendFields []string `json:"-"`
  5634  	// NullFields is a list of field names (e.g. "GroupResourceName") to include in
  5635  	// API requests with the JSON null value. By default, fields with empty values
  5636  	// are omitted from API requests. See
  5637  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5638  	NullFields []string `json:"-"`
  5639  }
  5640  
  5641  func (s *Principal) MarshalJSON() ([]byte, error) {
  5642  	type NoMethod Principal
  5643  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5644  }
  5645  
  5646  type ProcessingError struct {
  5647  	// Code: Error code indicating the nature of the error.
  5648  	//
  5649  	// Possible values:
  5650  	//   "PROCESSING_ERROR_CODE_UNSPECIFIED" - Input only value. Use this value in
  5651  	// Items.
  5652  	//   "MALFORMED_REQUEST" - Item's ACL, metadata, or content is malformed or in
  5653  	// invalid state. FieldViolations contains more details on where the problem
  5654  	// is.
  5655  	//   "UNSUPPORTED_CONTENT_FORMAT" - Countent format is unsupported.
  5656  	//   "INDIRECT_BROKEN_ACL" - Items with incomplete ACL information due to
  5657  	// inheriting other items with broken ACL or having groups with unmapped
  5658  	// descendants.
  5659  	//   "ACL_CYCLE" - ACL inheritance graph formed a cycle.
  5660  	Code string `json:"code,omitempty"`
  5661  	// ErrorMessage: The description of the error.
  5662  	ErrorMessage string `json:"errorMessage,omitempty"`
  5663  	// FieldViolations: In case the item fields are invalid, this field contains
  5664  	// the details about the validation errors.
  5665  	FieldViolations []*FieldViolation `json:"fieldViolations,omitempty"`
  5666  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  5667  	// include in API requests. By default, fields with empty or default values are
  5668  	// omitted from API requests. See
  5669  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5670  	// details.
  5671  	ForceSendFields []string `json:"-"`
  5672  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  5673  	// with the JSON null value. By default, fields with empty values are omitted
  5674  	// from API requests. See
  5675  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5676  	NullFields []string `json:"-"`
  5677  }
  5678  
  5679  func (s *ProcessingError) MarshalJSON() ([]byte, error) {
  5680  	type NoMethod ProcessingError
  5681  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5682  }
  5683  
  5684  // PropertyDefinition: The definition of a property within an object.
  5685  type PropertyDefinition struct {
  5686  	BooleanPropertyOptions *BooleanPropertyOptions `json:"booleanPropertyOptions,omitempty"`
  5687  	DatePropertyOptions    *DatePropertyOptions    `json:"datePropertyOptions,omitempty"`
  5688  	// DisplayOptions: The options that determine how the property is displayed in
  5689  	// the Cloud Search results page if it's specified to be displayed in the
  5690  	// object's display options.
  5691  	DisplayOptions         *PropertyDisplayOptions `json:"displayOptions,omitempty"`
  5692  	DoublePropertyOptions  *DoublePropertyOptions  `json:"doublePropertyOptions,omitempty"`
  5693  	EnumPropertyOptions    *EnumPropertyOptions    `json:"enumPropertyOptions,omitempty"`
  5694  	HtmlPropertyOptions    *HtmlPropertyOptions    `json:"htmlPropertyOptions,omitempty"`
  5695  	IntegerPropertyOptions *IntegerPropertyOptions `json:"integerPropertyOptions,omitempty"`
  5696  	// IsFacetable: Indicates that the property can be used for generating facets.
  5697  	// Cannot be true for properties whose type is object. IsReturnable must be
  5698  	// true to set this option. Only supported for boolean, enum, integer, and text
  5699  	// properties.
  5700  	IsFacetable bool `json:"isFacetable,omitempty"`
  5701  	// IsRepeatable: Indicates that multiple values are allowed for the property.
  5702  	// For example, a document only has one description but can have multiple
  5703  	// comments. Cannot be true for properties whose type is a boolean. If set to
  5704  	// false, properties that contain more than one value cause the indexing
  5705  	// request for that item to be rejected.
  5706  	IsRepeatable bool `json:"isRepeatable,omitempty"`
  5707  	// IsReturnable: Indicates that the property identifies data that should be
  5708  	// returned in search results via the Query API. If set to *true*, indicates
  5709  	// that Query API users can use matching property fields in results. However,
  5710  	// storing fields requires more space allocation and uses more bandwidth for
  5711  	// search queries, which impacts performance over large datasets. Set to *true*
  5712  	// here only if the field is needed for search results. Cannot be true for
  5713  	// properties whose type is an object.
  5714  	IsReturnable bool `json:"isReturnable,omitempty"`
  5715  	// IsSortable: Indicates that the property can be used for sorting. Cannot be
  5716  	// true for properties that are repeatable. Cannot be true for properties whose
  5717  	// type is object. IsReturnable must be true to set this option. Only supported
  5718  	// for boolean, date, double, integer, and timestamp properties.
  5719  	IsSortable bool `json:"isSortable,omitempty"`
  5720  	// IsSuggestable: Indicates that the property can be used for generating query
  5721  	// suggestions.
  5722  	IsSuggestable bool `json:"isSuggestable,omitempty"`
  5723  	// IsWildcardSearchable: Indicates that users can perform wildcard search for
  5724  	// this property. Only supported for Text properties. IsReturnable must be true
  5725  	// to set this option. In a given datasource maximum of 5 properties can be
  5726  	// marked as is_wildcard_searchable. For more details, see Define object
  5727  	// properties
  5728  	// (https://developers.google.com/cloud-search/docs/guides/schema-guide#properties)
  5729  	IsWildcardSearchable bool `json:"isWildcardSearchable,omitempty"`
  5730  	// Name: The name of the property. Item indexing requests sent to the Indexing
  5731  	// API should set the property name equal to this value. For example, if name
  5732  	// is *subject_line*, then indexing requests for document items with subject
  5733  	// fields should set the name for that field equal to *subject_line*. Use the
  5734  	// name as the identifier for the object property. Once registered as a
  5735  	// property for an object, you cannot re-use this name for another property
  5736  	// within that object. The name must start with a letter and can only contain
  5737  	// letters (A-Z, a-z) or numbers (0-9). The maximum length is 256 characters.
  5738  	Name                     string                    `json:"name,omitempty"`
  5739  	ObjectPropertyOptions    *ObjectPropertyOptions    `json:"objectPropertyOptions,omitempty"`
  5740  	TextPropertyOptions      *TextPropertyOptions      `json:"textPropertyOptions,omitempty"`
  5741  	TimestampPropertyOptions *TimestampPropertyOptions `json:"timestampPropertyOptions,omitempty"`
  5742  	// ForceSendFields is a list of field names (e.g. "BooleanPropertyOptions") to
  5743  	// unconditionally include in API requests. By default, fields with empty or
  5744  	// default values are omitted from API requests. See
  5745  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5746  	// details.
  5747  	ForceSendFields []string `json:"-"`
  5748  	// NullFields is a list of field names (e.g. "BooleanPropertyOptions") to
  5749  	// include in API requests with the JSON null value. By default, fields with
  5750  	// empty values are omitted from API requests. See
  5751  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5752  	NullFields []string `json:"-"`
  5753  }
  5754  
  5755  func (s *PropertyDefinition) MarshalJSON() ([]byte, error) {
  5756  	type NoMethod PropertyDefinition
  5757  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5758  }
  5759  
  5760  // PropertyDisplayOptions: The display options for a property.
  5761  type PropertyDisplayOptions struct {
  5762  	// DisplayLabel: The user friendly label for the property that is used if the
  5763  	// property is specified to be displayed in ObjectDisplayOptions. If provided,
  5764  	// the display label is shown in front of the property values when the property
  5765  	// is part of the object display options. For example, if the property value is
  5766  	// '1', the value by itself may not be useful context for the user. If the
  5767  	// display name given was 'priority', then the user sees 'priority : 1' in the
  5768  	// search results which provides clear context to search users. This is
  5769  	// OPTIONAL; if not given, only the property values are displayed. The maximum
  5770  	// length is 64 characters.
  5771  	DisplayLabel string `json:"displayLabel,omitempty"`
  5772  	// ForceSendFields is a list of field names (e.g. "DisplayLabel") to
  5773  	// unconditionally include in API requests. By default, fields with empty or
  5774  	// default values are omitted from API requests. See
  5775  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5776  	// details.
  5777  	ForceSendFields []string `json:"-"`
  5778  	// NullFields is a list of field names (e.g. "DisplayLabel") to include in API
  5779  	// requests with the JSON null value. By default, fields with empty values are
  5780  	// omitted from API requests. See
  5781  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5782  	NullFields []string `json:"-"`
  5783  }
  5784  
  5785  func (s *PropertyDisplayOptions) MarshalJSON() ([]byte, error) {
  5786  	type NoMethod PropertyDisplayOptions
  5787  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5788  }
  5789  
  5790  // PushItem: Represents an item to be pushed to the indexing queue.
  5791  type PushItem struct {
  5792  	// ContentHash: Content hash of the item according to the repository. If
  5793  	// specified, this is used to determine how to modify this item's status.
  5794  	// Setting this field and the type field results in argument error. The maximum
  5795  	// length is 2048 characters.
  5796  	ContentHash string `json:"contentHash,omitempty"`
  5797  	// MetadataHash: The metadata hash of the item according to the repository. If
  5798  	// specified, this is used to determine how to modify this item's status.
  5799  	// Setting this field and the type field results in argument error. The maximum
  5800  	// length is 2048 characters.
  5801  	MetadataHash string `json:"metadataHash,omitempty"`
  5802  	// Payload: Provides additional document state information for the connector,
  5803  	// such as an alternate repository ID and other metadata. The maximum length is
  5804  	// 8192 bytes.
  5805  	Payload string `json:"payload,omitempty"`
  5806  	// Queue: Queue to which this item belongs. The `default` queue is chosen if
  5807  	// this field is not specified. The maximum length is 512 characters.
  5808  	Queue string `json:"queue,omitempty"`
  5809  	// RepositoryError: Populate this field to store Connector or repository error
  5810  	// details. This information is displayed in the Admin Console. This field may
  5811  	// only be populated when the Type is REPOSITORY_ERROR.
  5812  	RepositoryError *RepositoryError `json:"repositoryError,omitempty"`
  5813  	// StructuredDataHash: Structured data hash of the item according to the
  5814  	// repository. If specified, this is used to determine how to modify this
  5815  	// item's status. Setting this field and the type field results in argument
  5816  	// error. The maximum length is 2048 characters.
  5817  	StructuredDataHash string `json:"structuredDataHash,omitempty"`
  5818  	// Type: The type of the push operation that defines the push behavior.
  5819  	//
  5820  	// Possible values:
  5821  	//   "UNSPECIFIED" - Default UNSPECIFIED. Specifies that the push operation
  5822  	// should not modify ItemStatus
  5823  	//   "MODIFIED" - Indicates that the repository document has been modified or
  5824  	// updated since the previous update call. This changes status to MODIFIED
  5825  	// state for an existing item. If this is called on a non existing item, the
  5826  	// status is changed to NEW_ITEM.
  5827  	//   "NOT_MODIFIED" - Item in the repository has not been modified since the
  5828  	// last update call. This push operation will set status to ACCEPTED state.
  5829  	//   "REPOSITORY_ERROR" - Connector is facing a repository error regarding this
  5830  	// item. Change status to REPOSITORY_ERROR state. Item is unreserved and
  5831  	// rescheduled at a future time determined by exponential backoff.
  5832  	//   "REQUEUE" - Call push with REQUEUE only for items that have been reserved.
  5833  	// This action unreserves the item and resets its available time to the wall
  5834  	// clock time.
  5835  	Type string `json:"type,omitempty"`
  5836  	// ForceSendFields is a list of field names (e.g. "ContentHash") to
  5837  	// unconditionally include in API requests. By default, fields with empty or
  5838  	// default values are omitted from API requests. See
  5839  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5840  	// details.
  5841  	ForceSendFields []string `json:"-"`
  5842  	// NullFields is a list of field names (e.g. "ContentHash") to include in API
  5843  	// requests with the JSON null value. By default, fields with empty values are
  5844  	// omitted from API requests. See
  5845  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5846  	NullFields []string `json:"-"`
  5847  }
  5848  
  5849  func (s *PushItem) MarshalJSON() ([]byte, error) {
  5850  	type NoMethod PushItem
  5851  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5852  }
  5853  
  5854  type PushItemRequest struct {
  5855  	// ConnectorName: The name of connector making this call. Format:
  5856  	// datasources/{source_id}/connectors/{ID}
  5857  	ConnectorName string `json:"connectorName,omitempty"`
  5858  	// DebugOptions: Common debug options.
  5859  	DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
  5860  	// Item: Item to push onto the queue.
  5861  	Item *PushItem `json:"item,omitempty"`
  5862  	// ForceSendFields is a list of field names (e.g. "ConnectorName") to
  5863  	// unconditionally include in API requests. By default, fields with empty or
  5864  	// default values are omitted from API requests. See
  5865  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5866  	// details.
  5867  	ForceSendFields []string `json:"-"`
  5868  	// NullFields is a list of field names (e.g. "ConnectorName") to include in API
  5869  	// requests with the JSON null value. By default, fields with empty values are
  5870  	// omitted from API requests. See
  5871  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5872  	NullFields []string `json:"-"`
  5873  }
  5874  
  5875  func (s *PushItemRequest) MarshalJSON() ([]byte, error) {
  5876  	type NoMethod PushItemRequest
  5877  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5878  }
  5879  
  5880  // QueryActivity: Details about a user's query activity.
  5881  type QueryActivity struct {
  5882  	// Query: User input query to be logged/removed.
  5883  	Query string `json:"query,omitempty"`
  5884  	// ForceSendFields is a list of field names (e.g. "Query") to unconditionally
  5885  	// include in API requests. By default, fields with empty or default values are
  5886  	// 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. "Query") to include in API
  5891  	// requests with the JSON null value. By default, fields with empty values are
  5892  	// 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 *QueryActivity) MarshalJSON() ([]byte, error) {
  5898  	type NoMethod QueryActivity
  5899  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5900  }
  5901  
  5902  type QueryCountByStatus struct {
  5903  	Count int64 `json:"count,omitempty,string"`
  5904  	// StatusCode: This represents the http status code.
  5905  	StatusCode int64 `json:"statusCode,omitempty"`
  5906  	// ForceSendFields is a list of field names (e.g. "Count") to unconditionally
  5907  	// include in API requests. By default, fields with empty or default values are
  5908  	// omitted from API requests. See
  5909  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5910  	// details.
  5911  	ForceSendFields []string `json:"-"`
  5912  	// NullFields is a list of field names (e.g. "Count") to include in API
  5913  	// requests with the JSON null value. By default, fields with empty values are
  5914  	// omitted from API requests. See
  5915  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5916  	NullFields []string `json:"-"`
  5917  }
  5918  
  5919  func (s *QueryCountByStatus) MarshalJSON() ([]byte, error) {
  5920  	type NoMethod QueryCountByStatus
  5921  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5922  }
  5923  
  5924  type QueryInterpretation struct {
  5925  	// Possible values:
  5926  	//   "NONE" - Neither the natural language interpretation, nor a broader
  5927  	// version of the query is used to fetch the search results.
  5928  	//   "BLEND" - The results from original query are blended with other results.
  5929  	// The reason for blending these other results with the results from original
  5930  	// query is populated in the 'Reason' field below.
  5931  	//   "REPLACE" - The results from original query are replaced. The reason for
  5932  	// replacing the results from original query is populated in the 'Reason' field
  5933  	// below.
  5934  	InterpretationType string `json:"interpretationType,omitempty"`
  5935  	// InterpretedQuery: The interpretation of the query used in search. For
  5936  	// example, queries with natural language intent like "email from john" will be
  5937  	// interpreted as "from:john source:mail". This field will not be filled when
  5938  	// the reason is NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY.
  5939  	InterpretedQuery string `json:"interpretedQuery,omitempty"`
  5940  	// Reason: The reason for interpretation of the query. This field will not be
  5941  	// UNSPECIFIED if the interpretation type is not NONE.
  5942  	//
  5943  	// Possible values:
  5944  	//   "UNSPECIFIED"
  5945  	//   "QUERY_HAS_NATURAL_LANGUAGE_INTENT" - Natural language interpretation of
  5946  	// the query is used to fetch the search results.
  5947  	//   "NOT_ENOUGH_RESULTS_FOUND_FOR_USER_QUERY" - Query and document terms
  5948  	// similarity is used to selectively broaden the query to retrieve additional
  5949  	// search results since enough results were not found for the user query.
  5950  	// Interpreted query will be empty for this case.
  5951  	Reason string `json:"reason,omitempty"`
  5952  	// ForceSendFields is a list of field names (e.g. "InterpretationType") to
  5953  	// unconditionally include in API requests. By default, fields with empty or
  5954  	// default values are omitted from API requests. See
  5955  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5956  	// details.
  5957  	ForceSendFields []string `json:"-"`
  5958  	// NullFields is a list of field names (e.g. "InterpretationType") to include
  5959  	// in API requests with the JSON null value. By default, fields with empty
  5960  	// values are omitted from API requests. See
  5961  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5962  	NullFields []string `json:"-"`
  5963  }
  5964  
  5965  func (s *QueryInterpretation) MarshalJSON() ([]byte, error) {
  5966  	type NoMethod QueryInterpretation
  5967  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  5968  }
  5969  
  5970  // QueryInterpretationConfig: Default options to interpret user query.
  5971  type QueryInterpretationConfig struct {
  5972  	// ForceDisableSupplementalResults: Set this flag to disable supplemental
  5973  	// results retrieval, setting a flag here will not retrieve supplemental
  5974  	// results for queries associated with a given search application. If this flag
  5975  	// is set to True, it will take precedence over the option set at Query level.
  5976  	// For the default value of False, query level flag will set the correct
  5977  	// interpretation for supplemental results.
  5978  	ForceDisableSupplementalResults bool `json:"forceDisableSupplementalResults,omitempty"`
  5979  	// ForceVerbatimMode: Enable this flag to turn off all internal optimizations
  5980  	// like natural language (NL) interpretation of queries, supplemental results
  5981  	// retrieval, and usage of synonyms including custom ones. If this flag is set
  5982  	// to True, it will take precedence over the option set at Query level. For the
  5983  	// default value of False, query level flag will set the correct interpretation
  5984  	// for verbatim mode.
  5985  	ForceVerbatimMode bool `json:"forceVerbatimMode,omitempty"`
  5986  	// ForceSendFields is a list of field names (e.g.
  5987  	// "ForceDisableSupplementalResults") to unconditionally include in API
  5988  	// requests. By default, fields with empty or default values are omitted from
  5989  	// API requests. See
  5990  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  5991  	// details.
  5992  	ForceSendFields []string `json:"-"`
  5993  	// NullFields is a list of field names (e.g. "ForceDisableSupplementalResults")
  5994  	// to include in API requests with the JSON null value. By default, fields with
  5995  	// empty values are omitted from API requests. See
  5996  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  5997  	NullFields []string `json:"-"`
  5998  }
  5999  
  6000  func (s *QueryInterpretationConfig) MarshalJSON() ([]byte, error) {
  6001  	type NoMethod QueryInterpretationConfig
  6002  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6003  }
  6004  
  6005  // QueryInterpretationOptions: Options to interpret user query.
  6006  type QueryInterpretationOptions struct {
  6007  	// DisableNlInterpretation: Flag to disable natural language (NL)
  6008  	// interpretation of queries. Default is false, Set to true to disable natural
  6009  	// language interpretation. NL interpretation only applies to predefined
  6010  	// datasources.
  6011  	DisableNlInterpretation bool `json:"disableNlInterpretation,omitempty"`
  6012  	// DisableSupplementalResults: Use this flag to disable supplemental results
  6013  	// for a query. Supplemental results setting chosen at SearchApplication level
  6014  	// will take precedence if set to True.
  6015  	DisableSupplementalResults bool `json:"disableSupplementalResults,omitempty"`
  6016  	// EnableVerbatimMode: Enable this flag to turn off all internal optimizations
  6017  	// like natural language (NL) interpretation of queries, supplemental result
  6018  	// retrieval, and usage of synonyms including custom ones. Nl interpretation
  6019  	// will be disabled if either one of the two flags is true.
  6020  	EnableVerbatimMode bool `json:"enableVerbatimMode,omitempty"`
  6021  	// ForceSendFields is a list of field names (e.g. "DisableNlInterpretation") to
  6022  	// unconditionally include in API requests. By default, fields with empty or
  6023  	// default values are omitted from API requests. See
  6024  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6025  	// details.
  6026  	ForceSendFields []string `json:"-"`
  6027  	// NullFields is a list of field names (e.g. "DisableNlInterpretation") to
  6028  	// include in API requests with the JSON null value. By default, fields with
  6029  	// empty values are omitted from API requests. See
  6030  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6031  	NullFields []string `json:"-"`
  6032  }
  6033  
  6034  func (s *QueryInterpretationOptions) MarshalJSON() ([]byte, error) {
  6035  	type NoMethod QueryInterpretationOptions
  6036  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6037  }
  6038  
  6039  // QueryItem: Information relevant only to a query entry.
  6040  type QueryItem struct {
  6041  	// IsSynthetic: True if the text was generated by means other than a previous
  6042  	// user search.
  6043  	IsSynthetic bool `json:"isSynthetic,omitempty"`
  6044  	// ForceSendFields is a list of field names (e.g. "IsSynthetic") to
  6045  	// unconditionally include in API requests. By default, fields with empty or
  6046  	// default values are omitted from API requests. See
  6047  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6048  	// details.
  6049  	ForceSendFields []string `json:"-"`
  6050  	// NullFields is a list of field names (e.g. "IsSynthetic") to include in API
  6051  	// requests with the JSON null value. By default, fields with empty values are
  6052  	// omitted from API requests. See
  6053  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6054  	NullFields []string `json:"-"`
  6055  }
  6056  
  6057  func (s *QueryItem) MarshalJSON() ([]byte, error) {
  6058  	type NoMethod QueryItem
  6059  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6060  }
  6061  
  6062  // QueryOperator: The definition of a operator that can be used in a
  6063  // Search/Suggest request.
  6064  type QueryOperator struct {
  6065  	// DisplayName: Display name of the operator
  6066  	DisplayName string `json:"displayName,omitempty"`
  6067  	// EnumValues: Potential list of values for the opeatror field. This field is
  6068  	// only filled when we can safely enumerate all the possible values of this
  6069  	// operator.
  6070  	EnumValues []string `json:"enumValues,omitempty"`
  6071  	// GreaterThanOperatorName: Indicates the operator name that can be used to
  6072  	// isolate the property using the greater-than operator.
  6073  	GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"`
  6074  	// IsFacetable: Can this operator be used to get facets.
  6075  	IsFacetable bool `json:"isFacetable,omitempty"`
  6076  	// IsRepeatable: Indicates if multiple values can be set for this property.
  6077  	IsRepeatable bool `json:"isRepeatable,omitempty"`
  6078  	// IsReturnable: Will the property associated with this facet be returned as
  6079  	// part of search results.
  6080  	IsReturnable bool `json:"isReturnable,omitempty"`
  6081  	// IsSortable: Can this operator be used to sort results.
  6082  	IsSortable bool `json:"isSortable,omitempty"`
  6083  	// IsSuggestable: Can get suggestions for this field.
  6084  	IsSuggestable bool `json:"isSuggestable,omitempty"`
  6085  	// LessThanOperatorName: Indicates the operator name that can be used to
  6086  	// isolate the property using the less-than operator.
  6087  	LessThanOperatorName string `json:"lessThanOperatorName,omitempty"`
  6088  	// ObjectType: The name of the object corresponding to the operator. This field
  6089  	// is only filled for schema-specific operators, and is unset for common
  6090  	// operators.
  6091  	ObjectType string `json:"objectType,omitempty"`
  6092  	// OperatorName: The name of the operator.
  6093  	OperatorName string `json:"operatorName,omitempty"`
  6094  	// Type: The type of the operator.
  6095  	//
  6096  	// Possible values:
  6097  	//   "UNKNOWN" - Invalid value.
  6098  	//   "INTEGER"
  6099  	//   "DOUBLE"
  6100  	//   "TIMESTAMP"
  6101  	//   "BOOLEAN"
  6102  	//   "ENUM"
  6103  	//   "DATE"
  6104  	//   "TEXT"
  6105  	//   "HTML"
  6106  	Type string `json:"type,omitempty"`
  6107  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  6108  	// unconditionally include in API requests. By default, fields with empty or
  6109  	// default values are omitted from API requests. See
  6110  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6111  	// details.
  6112  	ForceSendFields []string `json:"-"`
  6113  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  6114  	// requests with the JSON null value. By default, fields with empty values are
  6115  	// omitted from API requests. See
  6116  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6117  	NullFields []string `json:"-"`
  6118  }
  6119  
  6120  func (s *QueryOperator) MarshalJSON() ([]byte, error) {
  6121  	type NoMethod QueryOperator
  6122  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6123  }
  6124  
  6125  // QuerySource: List of sources that the user can search using the query API.
  6126  type QuerySource struct {
  6127  	// DisplayName: Display name of the data source.
  6128  	DisplayName string `json:"displayName,omitempty"`
  6129  	// Operators: List of all operators applicable for this source.
  6130  	Operators []*QueryOperator `json:"operators,omitempty"`
  6131  	// ShortName: A short name or alias for the source. This value can be used with
  6132  	// the 'source' operator.
  6133  	ShortName string `json:"shortName,omitempty"`
  6134  	// Source: The name of the source
  6135  	Source *Source `json:"source,omitempty"`
  6136  	// ForceSendFields is a list of field names (e.g. "DisplayName") to
  6137  	// unconditionally include in API requests. By default, fields with empty or
  6138  	// default values are omitted from API requests. See
  6139  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6140  	// details.
  6141  	ForceSendFields []string `json:"-"`
  6142  	// NullFields is a list of field names (e.g. "DisplayName") to include in API
  6143  	// requests with the JSON null value. By default, fields with empty values are
  6144  	// omitted from API requests. See
  6145  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6146  	NullFields []string `json:"-"`
  6147  }
  6148  
  6149  func (s *QuerySource) MarshalJSON() ([]byte, error) {
  6150  	type NoMethod QuerySource
  6151  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6152  }
  6153  
  6154  // QuerySuggestion: This field does not contain anything as of now and is just
  6155  // used as an indicator that the suggest result was a phrase completion.
  6156  type QuerySuggestion struct {
  6157  }
  6158  
  6159  // RemoveActivityRequest: Remove Logged Activity Request.
  6160  type RemoveActivityRequest struct {
  6161  	// RequestOptions: Request options, such as the search application and
  6162  	// clientId.
  6163  	RequestOptions *RequestOptions `json:"requestOptions,omitempty"`
  6164  	// UserActivity: User Activity containing the data to be deleted.
  6165  	UserActivity *UserActivity `json:"userActivity,omitempty"`
  6166  	// ForceSendFields is a list of field names (e.g. "RequestOptions") to
  6167  	// unconditionally include in API requests. By default, fields with empty or
  6168  	// default values are omitted from API requests. See
  6169  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6170  	// details.
  6171  	ForceSendFields []string `json:"-"`
  6172  	// NullFields is a list of field names (e.g. "RequestOptions") to include in
  6173  	// API requests with the JSON null value. By default, fields with empty values
  6174  	// are omitted from API requests. See
  6175  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6176  	NullFields []string `json:"-"`
  6177  }
  6178  
  6179  func (s *RemoveActivityRequest) MarshalJSON() ([]byte, error) {
  6180  	type NoMethod RemoveActivityRequest
  6181  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6182  }
  6183  
  6184  // RemoveActivityResponse: Remove Logged Activity Response. will return an
  6185  // empty response for now. Will be revisited in later phases.
  6186  type RemoveActivityResponse struct {
  6187  	// ServerResponse contains the HTTP response code and headers from the server.
  6188  	googleapi.ServerResponse `json:"-"`
  6189  }
  6190  
  6191  // RepositoryError: Errors when the connector is communicating to the source
  6192  // repository.
  6193  type RepositoryError struct {
  6194  	// ErrorMessage: Message that describes the error. The maximum allowable length
  6195  	// of the message is 8192 characters.
  6196  	ErrorMessage string `json:"errorMessage,omitempty"`
  6197  	// HttpStatusCode: Error codes. Matches the definition of HTTP status codes.
  6198  	HttpStatusCode int64 `json:"httpStatusCode,omitempty"`
  6199  	// Type: The type of error.
  6200  	//
  6201  	// Possible values:
  6202  	//   "UNKNOWN" - Unknown error.
  6203  	//   "NETWORK_ERROR" - Unknown or unreachable host.
  6204  	//   "DNS_ERROR" - DNS problem, such as the DNS server is not responding.
  6205  	//   "CONNECTION_ERROR" - Cannot connect to the repository server.
  6206  	//   "AUTHENTICATION_ERROR" - Failed authentication due to incorrect
  6207  	// credentials.
  6208  	//   "AUTHORIZATION_ERROR" - Service account is not authorized for the
  6209  	// repository.
  6210  	//   "SERVER_ERROR" - Repository server error.
  6211  	//   "QUOTA_EXCEEDED" - Quota exceeded.
  6212  	//   "SERVICE_UNAVAILABLE" - Server temporarily unavailable.
  6213  	//   "CLIENT_ERROR" - Client-related error, such as an invalid request from the
  6214  	// connector to the repository server.
  6215  	Type string `json:"type,omitempty"`
  6216  	// ForceSendFields is a list of field names (e.g. "ErrorMessage") to
  6217  	// unconditionally include in API requests. By default, fields with empty or
  6218  	// default values are omitted from API requests. See
  6219  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6220  	// details.
  6221  	ForceSendFields []string `json:"-"`
  6222  	// NullFields is a list of field names (e.g. "ErrorMessage") to include in API
  6223  	// requests with the JSON null value. By default, fields with empty values are
  6224  	// omitted from API requests. See
  6225  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6226  	NullFields []string `json:"-"`
  6227  }
  6228  
  6229  func (s *RepositoryError) MarshalJSON() ([]byte, error) {
  6230  	type NoMethod RepositoryError
  6231  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6232  }
  6233  
  6234  // RequestOptions: Shared request options for all RPC methods.
  6235  type RequestOptions struct {
  6236  	// DebugOptions: Debug options of the request
  6237  	DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
  6238  	// LanguageCode: The BCP-47 language code, such as "en-US" or "sr-Latn". For
  6239  	// more information, see
  6240  	// http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For
  6241  	// translations. Set this field using the language set in browser or for the
  6242  	// page. In the event that the user's language preference is known, set this
  6243  	// field to the known user language. When specified, the documents in search
  6244  	// results are biased towards the specified language. The Suggest API uses this
  6245  	// field as a hint to make better third-party autocomplete predictions.
  6246  	LanguageCode string `json:"languageCode,omitempty"`
  6247  	// SearchApplicationId: The ID generated when you create a search application
  6248  	// using the admin console (https://support.google.com/a/answer/9043922).
  6249  	SearchApplicationId string `json:"searchApplicationId,omitempty"`
  6250  	// TimeZone: Current user's time zone id, such as "America/Los_Angeles" or
  6251  	// "Australia/Sydney". These IDs are defined by Unicode Common Locale Data
  6252  	// Repository (CLDR) (http://cldr.unicode.org/) project, and currently
  6253  	// available in the file timezone.xml
  6254  	// (http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml). This field
  6255  	// is used to correctly interpret date and time queries. If this field is not
  6256  	// specified, the default time zone (UTC) is used.
  6257  	TimeZone string `json:"timeZone,omitempty"`
  6258  	// ForceSendFields is a list of field names (e.g. "DebugOptions") to
  6259  	// unconditionally include in API requests. By default, fields with empty or
  6260  	// default values are omitted from API requests. See
  6261  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6262  	// details.
  6263  	ForceSendFields []string `json:"-"`
  6264  	// NullFields is a list of field names (e.g. "DebugOptions") to include in API
  6265  	// requests with the JSON null value. By default, fields with empty values are
  6266  	// omitted from API requests. See
  6267  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6268  	NullFields []string `json:"-"`
  6269  }
  6270  
  6271  func (s *RequestOptions) MarshalJSON() ([]byte, error) {
  6272  	type NoMethod RequestOptions
  6273  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6274  }
  6275  
  6276  type ResetSearchApplicationRequest struct {
  6277  	// DebugOptions: Common debug options.
  6278  	DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
  6279  	// ForceSendFields is a list of field names (e.g. "DebugOptions") to
  6280  	// unconditionally include in API requests. By default, fields with empty or
  6281  	// default values are omitted from API requests. See
  6282  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6283  	// details.
  6284  	ForceSendFields []string `json:"-"`
  6285  	// NullFields is a list of field names (e.g. "DebugOptions") to include in API
  6286  	// requests with the JSON null value. By default, fields with empty values are
  6287  	// omitted from API requests. See
  6288  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6289  	NullFields []string `json:"-"`
  6290  }
  6291  
  6292  func (s *ResetSearchApplicationRequest) MarshalJSON() ([]byte, error) {
  6293  	type NoMethod ResetSearchApplicationRequest
  6294  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6295  }
  6296  
  6297  // ResponseDebugInfo: Debugging information about the response.
  6298  type ResponseDebugInfo struct {
  6299  	// FormattedDebugInfo: General debug info formatted for display.
  6300  	FormattedDebugInfo string `json:"formattedDebugInfo,omitempty"`
  6301  	// ForceSendFields is a list of field names (e.g. "FormattedDebugInfo") to
  6302  	// unconditionally include in API requests. By default, fields with empty or
  6303  	// default values are omitted from API requests. See
  6304  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6305  	// details.
  6306  	ForceSendFields []string `json:"-"`
  6307  	// NullFields is a list of field names (e.g. "FormattedDebugInfo") to include
  6308  	// in API requests with the JSON null value. By default, fields with empty
  6309  	// values are omitted from API requests. See
  6310  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6311  	NullFields []string `json:"-"`
  6312  }
  6313  
  6314  func (s *ResponseDebugInfo) MarshalJSON() ([]byte, error) {
  6315  	type NoMethod ResponseDebugInfo
  6316  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6317  }
  6318  
  6319  // RestrictItem: Information relevant only to a restrict entry. NextId: 12
  6320  type RestrictItem struct {
  6321  	DriveFollowUpRestrict *DriveFollowUpRestrict `json:"driveFollowUpRestrict,omitempty"`
  6322  	DriveLocationRestrict *DriveLocationRestrict `json:"driveLocationRestrict,omitempty"`
  6323  	// DriveMimeTypeRestrict: Drive Types.
  6324  	DriveMimeTypeRestrict *DriveMimeTypeRestrict `json:"driveMimeTypeRestrict,omitempty"`
  6325  	DriveTimeSpanRestrict *DriveTimeSpanRestrict `json:"driveTimeSpanRestrict,omitempty"`
  6326  	// SearchOperator: The search restrict (e.g. "after:2017-09-11
  6327  	// before:2017-09-12").
  6328  	SearchOperator string `json:"searchOperator,omitempty"`
  6329  	// ForceSendFields is a list of field names (e.g. "DriveFollowUpRestrict") to
  6330  	// unconditionally include in API requests. By default, fields with empty or
  6331  	// default values are omitted from API requests. See
  6332  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6333  	// details.
  6334  	ForceSendFields []string `json:"-"`
  6335  	// NullFields is a list of field names (e.g. "DriveFollowUpRestrict") to
  6336  	// include in API requests with the JSON null value. By default, fields with
  6337  	// empty values are omitted from API requests. See
  6338  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6339  	NullFields []string `json:"-"`
  6340  }
  6341  
  6342  func (s *RestrictItem) MarshalJSON() ([]byte, error) {
  6343  	type NoMethod RestrictItem
  6344  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6345  }
  6346  
  6347  // ResultCounts: Result count information
  6348  type ResultCounts struct {
  6349  	// SourceResultCounts: Result count information for each source with results.
  6350  	SourceResultCounts []*SourceResultCount `json:"sourceResultCounts,omitempty"`
  6351  	// ForceSendFields is a list of field names (e.g. "SourceResultCounts") to
  6352  	// unconditionally include in API requests. By default, fields with empty or
  6353  	// default values are omitted from API requests. See
  6354  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6355  	// details.
  6356  	ForceSendFields []string `json:"-"`
  6357  	// NullFields is a list of field names (e.g. "SourceResultCounts") to include
  6358  	// in API requests with the JSON null value. By default, fields with empty
  6359  	// values are omitted from API requests. See
  6360  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6361  	NullFields []string `json:"-"`
  6362  }
  6363  
  6364  func (s *ResultCounts) MarshalJSON() ([]byte, error) {
  6365  	type NoMethod ResultCounts
  6366  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6367  }
  6368  
  6369  // ResultDebugInfo: Debugging information about the result.
  6370  type ResultDebugInfo struct {
  6371  	// FormattedDebugInfo: General debug info formatted for display.
  6372  	FormattedDebugInfo string `json:"formattedDebugInfo,omitempty"`
  6373  	// ForceSendFields is a list of field names (e.g. "FormattedDebugInfo") to
  6374  	// unconditionally include in API requests. By default, fields with empty or
  6375  	// default values are omitted from API requests. See
  6376  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6377  	// details.
  6378  	ForceSendFields []string `json:"-"`
  6379  	// NullFields is a list of field names (e.g. "FormattedDebugInfo") to include
  6380  	// in API requests with the JSON null value. By default, fields with empty
  6381  	// values are omitted from API requests. See
  6382  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6383  	NullFields []string `json:"-"`
  6384  }
  6385  
  6386  func (s *ResultDebugInfo) MarshalJSON() ([]byte, error) {
  6387  	type NoMethod ResultDebugInfo
  6388  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6389  }
  6390  
  6391  // ResultDisplayField: Display Fields for Search Results
  6392  type ResultDisplayField struct {
  6393  	// Label: The display label for the property.
  6394  	Label string `json:"label,omitempty"`
  6395  	// OperatorName: The operator name of the property.
  6396  	OperatorName string `json:"operatorName,omitempty"`
  6397  	// Property: The name value pair for the property.
  6398  	Property *NamedProperty `json:"property,omitempty"`
  6399  	// ForceSendFields is a list of field names (e.g. "Label") to unconditionally
  6400  	// include in API requests. By default, fields with empty or default values are
  6401  	// omitted from API requests. See
  6402  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6403  	// details.
  6404  	ForceSendFields []string `json:"-"`
  6405  	// NullFields is a list of field names (e.g. "Label") to include in API
  6406  	// requests with the JSON null value. By default, fields with empty values are
  6407  	// omitted from API requests. See
  6408  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6409  	NullFields []string `json:"-"`
  6410  }
  6411  
  6412  func (s *ResultDisplayField) MarshalJSON() ([]byte, error) {
  6413  	type NoMethod ResultDisplayField
  6414  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6415  }
  6416  
  6417  // ResultDisplayLine: The collection of fields that make up a displayed line
  6418  type ResultDisplayLine struct {
  6419  	Fields []*ResultDisplayField `json:"fields,omitempty"`
  6420  	// ForceSendFields is a list of field names (e.g. "Fields") to unconditionally
  6421  	// include in API requests. By default, fields with empty or default values are
  6422  	// omitted from API requests. See
  6423  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6424  	// details.
  6425  	ForceSendFields []string `json:"-"`
  6426  	// NullFields is a list of field names (e.g. "Fields") to include in API
  6427  	// requests with the JSON null value. By default, fields with empty values are
  6428  	// omitted from API requests. See
  6429  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6430  	NullFields []string `json:"-"`
  6431  }
  6432  
  6433  func (s *ResultDisplayLine) MarshalJSON() ([]byte, error) {
  6434  	type NoMethod ResultDisplayLine
  6435  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6436  }
  6437  
  6438  type ResultDisplayMetadata struct {
  6439  	// Metalines: The metalines content to be displayed with the result.
  6440  	Metalines []*ResultDisplayLine `json:"metalines,omitempty"`
  6441  	// ObjectTypeLabel: The display label for the object.
  6442  	ObjectTypeLabel string `json:"objectTypeLabel,omitempty"`
  6443  	// ForceSendFields is a list of field names (e.g. "Metalines") to
  6444  	// unconditionally include in API requests. By default, fields with empty or
  6445  	// default values are omitted from API requests. See
  6446  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6447  	// details.
  6448  	ForceSendFields []string `json:"-"`
  6449  	// NullFields is a list of field names (e.g. "Metalines") to include in API
  6450  	// requests with the JSON null value. By default, fields with empty values are
  6451  	// omitted from API requests. See
  6452  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6453  	NullFields []string `json:"-"`
  6454  }
  6455  
  6456  func (s *ResultDisplayMetadata) MarshalJSON() ([]byte, error) {
  6457  	type NoMethod ResultDisplayMetadata
  6458  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6459  }
  6460  
  6461  type RetrievalImportance struct {
  6462  	// Importance: Indicates the ranking importance given to property when it is
  6463  	// matched during retrieval. Once set, the token importance of a property
  6464  	// cannot be changed.
  6465  	//
  6466  	// Possible values:
  6467  	//   "DEFAULT" - Treat the match like a body text match.
  6468  	//   "HIGHEST" - Treat the match like a match against title of the item.
  6469  	//   "HIGH" - Treat the match with higher importance than body text.
  6470  	//   "LOW" - Treat the match with lower importance than body text.
  6471  	//   "NONE" - Do not match against this field during retrieval. The property
  6472  	// can still be used for operator matching, faceting, and suggest if desired.
  6473  	Importance string `json:"importance,omitempty"`
  6474  	// ForceSendFields is a list of field names (e.g. "Importance") to
  6475  	// unconditionally include in API requests. By default, fields with empty or
  6476  	// default values are omitted from API requests. See
  6477  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6478  	// details.
  6479  	ForceSendFields []string `json:"-"`
  6480  	// NullFields is a list of field names (e.g. "Importance") to include in API
  6481  	// requests with the JSON null value. By default, fields with empty values are
  6482  	// omitted from API requests. See
  6483  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6484  	NullFields []string `json:"-"`
  6485  }
  6486  
  6487  func (s *RetrievalImportance) MarshalJSON() ([]byte, error) {
  6488  	type NoMethod RetrievalImportance
  6489  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6490  }
  6491  
  6492  // RewrittenQueries: The rewritten queries returned by Apps Search Query
  6493  // Understanding service.
  6494  type RewrittenQueries struct {
  6495  	RewrittenQueries []*RewrittenQuery `json:"rewrittenQueries,omitempty"`
  6496  	// SelectedQueryIndex: The index of the selected query in `rewritten_queries`
  6497  	// that is used by QAPI to call CSSR to get search results. If none of the
  6498  	// queries were used (i.e. they all give empty search results),
  6499  	// `selected_query_index` would default to -1.
  6500  	SelectedQueryIndex int64 `json:"selectedQueryIndex,omitempty"`
  6501  	// ForceSendFields is a list of field names (e.g. "RewrittenQueries") to
  6502  	// unconditionally include in API requests. By default, fields with empty or
  6503  	// default values are omitted from API requests. See
  6504  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6505  	// details.
  6506  	ForceSendFields []string `json:"-"`
  6507  	// NullFields is a list of field names (e.g. "RewrittenQueries") to include in
  6508  	// API requests with the JSON null value. By default, fields with empty values
  6509  	// are omitted from API requests. See
  6510  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6511  	NullFields []string `json:"-"`
  6512  }
  6513  
  6514  func (s *RewrittenQueries) MarshalJSON() ([]byte, error) {
  6515  	type NoMethod RewrittenQueries
  6516  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6517  }
  6518  
  6519  type RewrittenQuery struct {
  6520  	RewrittenQuery string  `json:"rewrittenQuery,omitempty"`
  6521  	Score          float64 `json:"score,omitempty"`
  6522  	// Possible values:
  6523  	//   "SORTBY_UNSUPPORTED"
  6524  	//   "SORTBY_RELEVANCY"
  6525  	//   "SORTBY_LATEST"
  6526  	//   "SORTBY_OLDEST"
  6527  	//   "SORTBY_LARGEST"
  6528  	//   "SORTBY_SMALLEST"
  6529  	//   "SORTBY_MODIFY_LATEST"
  6530  	//   "SORTBY_MODIFY_OLDEST"
  6531  	//   "SORTBY_VIEW_LATEST"
  6532  	//   "SORTBY_VIEW_OLDEST"
  6533  	//   "SORTBY_CREATE_LATEST"
  6534  	//   "SORTBY_CREATE_OLDEST"
  6535  	SortBy string `json:"sortBy,omitempty"`
  6536  	// ForceSendFields is a list of field names (e.g. "RewrittenQuery") to
  6537  	// unconditionally include in API requests. By default, fields with empty or
  6538  	// default values are omitted from API requests. See
  6539  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6540  	// details.
  6541  	ForceSendFields []string `json:"-"`
  6542  	// NullFields is a list of field names (e.g. "RewrittenQuery") to include in
  6543  	// API requests with the JSON null value. By default, fields with empty values
  6544  	// are omitted from API requests. See
  6545  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6546  	NullFields []string `json:"-"`
  6547  }
  6548  
  6549  func (s *RewrittenQuery) MarshalJSON() ([]byte, error) {
  6550  	type NoMethod RewrittenQuery
  6551  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6552  }
  6553  
  6554  func (s *RewrittenQuery) UnmarshalJSON(data []byte) error {
  6555  	type NoMethod RewrittenQuery
  6556  	var s1 struct {
  6557  		Score gensupport.JSONFloat64 `json:"score"`
  6558  		*NoMethod
  6559  	}
  6560  	s1.NoMethod = (*NoMethod)(s)
  6561  	if err := json.Unmarshal(data, &s1); err != nil {
  6562  		return err
  6563  	}
  6564  	s.Score = float64(s1.Score)
  6565  	return nil
  6566  }
  6567  
  6568  // SafeHtmlProto: IMPORTANT: It is unsafe to accept this message from an
  6569  // untrusted source, since it's trivial for an attacker to forge serialized
  6570  // messages that don't fulfill the type's safety contract -- for example, it
  6571  // could contain attacker controlled script. A system which receives a
  6572  // SafeHtmlProto implicitly trusts the producer of the SafeHtmlProto. So, it's
  6573  // generally safe to return this message in RPC responses, but generally unsafe
  6574  // to accept it in RPC requests.
  6575  type SafeHtmlProto struct {
  6576  	// PrivateDoNotAccessOrElseSafeHtmlWrappedValue: IMPORTANT: Never set or read
  6577  	// this field, even from tests, it is private. See documentation at the top of
  6578  	// .proto file for programming language packages with which to create or read
  6579  	// this message.
  6580  	PrivateDoNotAccessOrElseSafeHtmlWrappedValue string `json:"privateDoNotAccessOrElseSafeHtmlWrappedValue,omitempty"`
  6581  	// ForceSendFields is a list of field names (e.g.
  6582  	// "PrivateDoNotAccessOrElseSafeHtmlWrappedValue") to unconditionally include
  6583  	// in API requests. By default, fields with empty or default values are omitted
  6584  	// from API requests. See
  6585  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6586  	// details.
  6587  	ForceSendFields []string `json:"-"`
  6588  	// NullFields is a list of field names (e.g.
  6589  	// "PrivateDoNotAccessOrElseSafeHtmlWrappedValue") to include in API requests
  6590  	// with the JSON null value. By default, fields with empty values are omitted
  6591  	// from API requests. See
  6592  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6593  	NullFields []string `json:"-"`
  6594  }
  6595  
  6596  func (s *SafeHtmlProto) MarshalJSON() ([]byte, error) {
  6597  	type NoMethod SafeHtmlProto
  6598  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6599  }
  6600  
  6601  // SafeUrlProto: Message containing a string that is safe to use in URL
  6602  // contexts in DOM APIs and HTML documents, where the URL context does not
  6603  // refer to a resource that loads code.
  6604  type SafeUrlProto struct {
  6605  	// PrivateDoNotAccessOrElseSafeUrlWrappedValue: IMPORTANT: Never set or read
  6606  	// this field, even from tests, it is private. See documentation at the top of
  6607  	// .proto file for programming language packages with which to create or read
  6608  	// this message.
  6609  	PrivateDoNotAccessOrElseSafeUrlWrappedValue string `json:"privateDoNotAccessOrElseSafeUrlWrappedValue,omitempty"`
  6610  	// ForceSendFields is a list of field names (e.g.
  6611  	// "PrivateDoNotAccessOrElseSafeUrlWrappedValue") to unconditionally include in
  6612  	// API requests. By default, fields with empty or default values are omitted
  6613  	// from API requests. See
  6614  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6615  	// details.
  6616  	ForceSendFields []string `json:"-"`
  6617  	// NullFields is a list of field names (e.g.
  6618  	// "PrivateDoNotAccessOrElseSafeUrlWrappedValue") to include in API requests
  6619  	// with the JSON null value. By default, fields with empty values are omitted
  6620  	// from API requests. See
  6621  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6622  	NullFields []string `json:"-"`
  6623  }
  6624  
  6625  func (s *SafeUrlProto) MarshalJSON() ([]byte, error) {
  6626  	type NoMethod SafeUrlProto
  6627  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6628  }
  6629  
  6630  // Schema: The schema definition for a data source.
  6631  type Schema struct {
  6632  	// ObjectDefinitions: The list of top-level objects for the data source. The
  6633  	// maximum number of elements is 10.
  6634  	ObjectDefinitions []*ObjectDefinition `json:"objectDefinitions,omitempty"`
  6635  	// OperationIds: IDs of the Long Running Operations (LROs) currently running
  6636  	// for this schema. After modifying the schema, wait for operations to complete
  6637  	// before indexing additional content.
  6638  	OperationIds []string `json:"operationIds,omitempty"`
  6639  
  6640  	// ServerResponse contains the HTTP response code and headers from the server.
  6641  	googleapi.ServerResponse `json:"-"`
  6642  	// ForceSendFields is a list of field names (e.g. "ObjectDefinitions") to
  6643  	// unconditionally include in API requests. By default, fields with empty or
  6644  	// default values are omitted from API requests. See
  6645  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6646  	// details.
  6647  	ForceSendFields []string `json:"-"`
  6648  	// NullFields is a list of field names (e.g. "ObjectDefinitions") to include in
  6649  	// API requests with the JSON null value. By default, fields with empty values
  6650  	// are omitted from API requests. See
  6651  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6652  	NullFields []string `json:"-"`
  6653  }
  6654  
  6655  func (s *Schema) MarshalJSON() ([]byte, error) {
  6656  	type NoMethod Schema
  6657  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6658  }
  6659  
  6660  // ScoringConfig: Scoring configurations for a source while processing a Search
  6661  // or Suggest request.
  6662  type ScoringConfig struct {
  6663  	// DisableFreshness: Whether to use freshness as a ranking signal. By default,
  6664  	// freshness is used as a ranking signal. Note that this setting is not
  6665  	// available in the Admin UI.
  6666  	DisableFreshness bool `json:"disableFreshness,omitempty"`
  6667  	// DisablePersonalization: Whether to personalize the results. By default,
  6668  	// personal signals will be used to boost results.
  6669  	DisablePersonalization bool `json:"disablePersonalization,omitempty"`
  6670  	// ForceSendFields is a list of field names (e.g. "DisableFreshness") to
  6671  	// unconditionally include in API requests. By default, fields with empty or
  6672  	// default values are omitted from API requests. See
  6673  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6674  	// details.
  6675  	ForceSendFields []string `json:"-"`
  6676  	// NullFields is a list of field names (e.g. "DisableFreshness") to include in
  6677  	// API requests with the JSON null value. By default, fields with empty values
  6678  	// are omitted from API requests. See
  6679  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6680  	NullFields []string `json:"-"`
  6681  }
  6682  
  6683  func (s *ScoringConfig) MarshalJSON() ([]byte, error) {
  6684  	type NoMethod ScoringConfig
  6685  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6686  }
  6687  
  6688  // SearchApplication: SearchApplication
  6689  type SearchApplication struct {
  6690  	// DataSourceRestrictions: Retrictions applied to the configurations. The
  6691  	// maximum number of elements is 10.
  6692  	DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"`
  6693  	// DefaultFacetOptions: The default fields for returning facet results. The
  6694  	// sources specified here also have been included in data_source_restrictions
  6695  	// above.
  6696  	DefaultFacetOptions []*FacetOptions `json:"defaultFacetOptions,omitempty"`
  6697  	// DefaultSortOptions: The default options for sorting the search results
  6698  	DefaultSortOptions *SortOptions `json:"defaultSortOptions,omitempty"`
  6699  	// DisplayName: Display name of the Search Application. The maximum length is
  6700  	// 300 characters.
  6701  	DisplayName string `json:"displayName,omitempty"`
  6702  	// EnableAuditLog: Indicates whether audit logging is on/off for requests made
  6703  	// for the search application in query APIs.
  6704  	EnableAuditLog bool `json:"enableAuditLog,omitempty"`
  6705  	// Name: The name of the Search Application. Format:
  6706  	// searchapplications/{application_id}.
  6707  	Name string `json:"name,omitempty"`
  6708  	// OperationIds: Output only. IDs of the Long Running Operations (LROs)
  6709  	// currently running for this schema. Output only field.
  6710  	OperationIds []string `json:"operationIds,omitempty"`
  6711  	// QueryInterpretationConfig: The default options for query interpretation
  6712  	QueryInterpretationConfig *QueryInterpretationConfig `json:"queryInterpretationConfig,omitempty"`
  6713  	// ReturnResultThumbnailUrls: With each result we should return the URI for its
  6714  	// thumbnail (when applicable)
  6715  	ReturnResultThumbnailUrls bool `json:"returnResultThumbnailUrls,omitempty"`
  6716  	// ScoringConfig: Configuration for ranking results.
  6717  	ScoringConfig *ScoringConfig `json:"scoringConfig,omitempty"`
  6718  	// SourceConfig: Configuration for a sources specified in
  6719  	// data_source_restrictions.
  6720  	SourceConfig []*SourceConfig `json:"sourceConfig,omitempty"`
  6721  
  6722  	// ServerResponse contains the HTTP response code and headers from the server.
  6723  	googleapi.ServerResponse `json:"-"`
  6724  	// ForceSendFields is a list of field names (e.g. "DataSourceRestrictions") to
  6725  	// unconditionally include in API requests. By default, fields with empty or
  6726  	// default values are omitted from API requests. See
  6727  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6728  	// details.
  6729  	ForceSendFields []string `json:"-"`
  6730  	// NullFields is a list of field names (e.g. "DataSourceRestrictions") to
  6731  	// include in API requests with the JSON null value. By default, fields with
  6732  	// empty values are omitted from API requests. See
  6733  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6734  	NullFields []string `json:"-"`
  6735  }
  6736  
  6737  func (s *SearchApplication) MarshalJSON() ([]byte, error) {
  6738  	type NoMethod SearchApplication
  6739  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6740  }
  6741  
  6742  // SearchApplicationQueryStats: Search application level query stats per date
  6743  type SearchApplicationQueryStats struct {
  6744  	// Date: The date for which query stats were calculated. Stats calculated on
  6745  	// the next day close to midnight are returned.
  6746  	Date               *Date                 `json:"date,omitempty"`
  6747  	QueryCountByStatus []*QueryCountByStatus `json:"queryCountByStatus,omitempty"`
  6748  	// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
  6749  	// include in API requests. By default, fields with empty or default values are
  6750  	// omitted from API requests. See
  6751  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6752  	// details.
  6753  	ForceSendFields []string `json:"-"`
  6754  	// NullFields is a list of field names (e.g. "Date") to include in API requests
  6755  	// with the JSON null value. By default, fields with empty values are omitted
  6756  	// from API requests. See
  6757  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6758  	NullFields []string `json:"-"`
  6759  }
  6760  
  6761  func (s *SearchApplicationQueryStats) MarshalJSON() ([]byte, error) {
  6762  	type NoMethod SearchApplicationQueryStats
  6763  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6764  }
  6765  
  6766  type SearchApplicationSessionStats struct {
  6767  	// Date: The date for which session stats were calculated. Stats are calculated
  6768  	// on the following day, close to midnight PST, and then returned.
  6769  	Date *Date `json:"date,omitempty"`
  6770  	// SearchSessionsCount: The count of search sessions on the day
  6771  	SearchSessionsCount int64 `json:"searchSessionsCount,omitempty,string"`
  6772  	// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
  6773  	// include in API requests. By default, fields with empty or default values are
  6774  	// omitted from API requests. See
  6775  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6776  	// details.
  6777  	ForceSendFields []string `json:"-"`
  6778  	// NullFields is a list of field names (e.g. "Date") to include in API requests
  6779  	// with the JSON null value. By default, fields with empty values are omitted
  6780  	// from API requests. See
  6781  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6782  	NullFields []string `json:"-"`
  6783  }
  6784  
  6785  func (s *SearchApplicationSessionStats) MarshalJSON() ([]byte, error) {
  6786  	type NoMethod SearchApplicationSessionStats
  6787  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6788  }
  6789  
  6790  type SearchApplicationUserStats struct {
  6791  	// Date: The date for which session stats were calculated. Stats calculated on
  6792  	// the next day close to midnight are returned.
  6793  	Date *Date `json:"date,omitempty"`
  6794  	// OneDayActiveUsersCount: The count of unique active users in the past one day
  6795  	OneDayActiveUsersCount int64 `json:"oneDayActiveUsersCount,omitempty,string"`
  6796  	// SevenDaysActiveUsersCount: The count of unique active users in the past
  6797  	// seven days
  6798  	SevenDaysActiveUsersCount int64 `json:"sevenDaysActiveUsersCount,omitempty,string"`
  6799  	// ThirtyDaysActiveUsersCount: The count of unique active users in the past
  6800  	// thirty days
  6801  	ThirtyDaysActiveUsersCount int64 `json:"thirtyDaysActiveUsersCount,omitempty,string"`
  6802  	// ForceSendFields is a list of field names (e.g. "Date") to unconditionally
  6803  	// include in API requests. By default, fields with empty or default values are
  6804  	// omitted from API requests. See
  6805  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6806  	// details.
  6807  	ForceSendFields []string `json:"-"`
  6808  	// NullFields is a list of field names (e.g. "Date") to include in API requests
  6809  	// with the JSON null value. By default, fields with empty values are omitted
  6810  	// from API requests. See
  6811  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6812  	NullFields []string `json:"-"`
  6813  }
  6814  
  6815  func (s *SearchApplicationUserStats) MarshalJSON() ([]byte, error) {
  6816  	type NoMethod SearchApplicationUserStats
  6817  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6818  }
  6819  
  6820  type SearchItemsByViewUrlRequest struct {
  6821  	// DebugOptions: Common debug options.
  6822  	DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
  6823  	// PageToken: The next_page_token value returned from a previous request, if
  6824  	// any.
  6825  	PageToken string `json:"pageToken,omitempty"`
  6826  	// ViewUrl: Specify the full view URL to find the corresponding item. The
  6827  	// maximum length is 2048 characters.
  6828  	ViewUrl string `json:"viewUrl,omitempty"`
  6829  	// ForceSendFields is a list of field names (e.g. "DebugOptions") to
  6830  	// unconditionally include in API requests. By default, fields with empty or
  6831  	// default values are omitted from API requests. See
  6832  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6833  	// details.
  6834  	ForceSendFields []string `json:"-"`
  6835  	// NullFields is a list of field names (e.g. "DebugOptions") to include in API
  6836  	// requests with the JSON null value. By default, fields with empty values are
  6837  	// omitted from API requests. See
  6838  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6839  	NullFields []string `json:"-"`
  6840  }
  6841  
  6842  func (s *SearchItemsByViewUrlRequest) MarshalJSON() ([]byte, error) {
  6843  	type NoMethod SearchItemsByViewUrlRequest
  6844  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6845  }
  6846  
  6847  type SearchItemsByViewUrlResponse struct {
  6848  	Items []*Item `json:"items,omitempty"`
  6849  	// NextPageToken: Token to retrieve the next page of results, or empty if there
  6850  	// are no more results in the list.
  6851  	NextPageToken string `json:"nextPageToken,omitempty"`
  6852  
  6853  	// ServerResponse contains the HTTP response code and headers from the server.
  6854  	googleapi.ServerResponse `json:"-"`
  6855  	// ForceSendFields is a list of field names (e.g. "Items") to unconditionally
  6856  	// include in API requests. By default, fields with empty or default values are
  6857  	// omitted from API requests. See
  6858  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6859  	// details.
  6860  	ForceSendFields []string `json:"-"`
  6861  	// NullFields is a list of field names (e.g. "Items") to include in API
  6862  	// requests with the JSON null value. By default, fields with empty values are
  6863  	// omitted from API requests. See
  6864  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6865  	NullFields []string `json:"-"`
  6866  }
  6867  
  6868  func (s *SearchItemsByViewUrlResponse) MarshalJSON() ([]byte, error) {
  6869  	type NoMethod SearchItemsByViewUrlResponse
  6870  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6871  }
  6872  
  6873  // SearchQualityMetadata: Additional search quality metadata of the item.
  6874  type SearchQualityMetadata struct {
  6875  	// Quality: An indication of the quality of the item, used to influence search
  6876  	// quality. Value should be between 0.0 (lowest quality) and 1.0 (highest
  6877  	// quality). The default value is 0.0.
  6878  	Quality float64 `json:"quality,omitempty"`
  6879  	// ForceSendFields is a list of field names (e.g. "Quality") to unconditionally
  6880  	// include in API requests. By default, fields with empty or default values are
  6881  	// omitted from API requests. See
  6882  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6883  	// details.
  6884  	ForceSendFields []string `json:"-"`
  6885  	// NullFields is a list of field names (e.g. "Quality") to include in API
  6886  	// requests with the JSON null value. By default, fields with empty values are
  6887  	// omitted from API requests. See
  6888  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6889  	NullFields []string `json:"-"`
  6890  }
  6891  
  6892  func (s *SearchQualityMetadata) MarshalJSON() ([]byte, error) {
  6893  	type NoMethod SearchQualityMetadata
  6894  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6895  }
  6896  
  6897  func (s *SearchQualityMetadata) UnmarshalJSON(data []byte) error {
  6898  	type NoMethod SearchQualityMetadata
  6899  	var s1 struct {
  6900  		Quality gensupport.JSONFloat64 `json:"quality"`
  6901  		*NoMethod
  6902  	}
  6903  	s1.NoMethod = (*NoMethod)(s)
  6904  	if err := json.Unmarshal(data, &s1); err != nil {
  6905  		return err
  6906  	}
  6907  	s.Quality = float64(s1.Quality)
  6908  	return nil
  6909  }
  6910  
  6911  // SearchRequest: The search API request.
  6912  type SearchRequest struct {
  6913  	// ContextAttributes: Context attributes for the request which will be used to
  6914  	// adjust ranking of search results. The maximum number of elements is 10.
  6915  	ContextAttributes []*ContextAttribute `json:"contextAttributes,omitempty"`
  6916  	// DataSourceRestrictions: The sources to use for querying. If not specified,
  6917  	// all data sources from the current search application are used.
  6918  	DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"`
  6919  	FacetOptions           []*FacetOptions          `json:"facetOptions,omitempty"`
  6920  	// PageSize: Maximum number of search results to return in one page. Valid
  6921  	// values are between 1 and 100, inclusive. Default value is 10. Minimum value
  6922  	// is 50 when results beyond 2000 are requested.
  6923  	PageSize int64 `json:"pageSize,omitempty"`
  6924  	// Query: The raw query string. See supported search operators in the Narrow
  6925  	// your search with operators
  6926  	// (https://support.google.com/cloudsearch/answer/6172299)
  6927  	Query string `json:"query,omitempty"`
  6928  	// QueryInterpretationOptions: Options to interpret the user query.
  6929  	QueryInterpretationOptions *QueryInterpretationOptions `json:"queryInterpretationOptions,omitempty"`
  6930  	// RequestOptions: Request options, such as the search application and user
  6931  	// timezone.
  6932  	RequestOptions *RequestOptions `json:"requestOptions,omitempty"`
  6933  	// SortOptions: The options for sorting the search results
  6934  	SortOptions *SortOptions `json:"sortOptions,omitempty"`
  6935  	// Start: Starting index of the results.
  6936  	Start int64 `json:"start,omitempty"`
  6937  	// ForceSendFields is a list of field names (e.g. "ContextAttributes") to
  6938  	// unconditionally include in API requests. By default, fields with empty or
  6939  	// default values are omitted from API requests. See
  6940  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6941  	// details.
  6942  	ForceSendFields []string `json:"-"`
  6943  	// NullFields is a list of field names (e.g. "ContextAttributes") to include in
  6944  	// API requests with the JSON null value. By default, fields with empty values
  6945  	// are omitted from API requests. See
  6946  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6947  	NullFields []string `json:"-"`
  6948  }
  6949  
  6950  func (s *SearchRequest) MarshalJSON() ([]byte, error) {
  6951  	type NoMethod SearchRequest
  6952  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  6953  }
  6954  
  6955  // SearchResponse: The search API response.
  6956  type SearchResponse struct {
  6957  	// DebugInfo: Debugging information about the response.
  6958  	DebugInfo *ResponseDebugInfo `json:"debugInfo,omitempty"`
  6959  	// ErrorInfo: Error information about the response.
  6960  	ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"`
  6961  	// FacetResults: Repeated facet results.
  6962  	FacetResults []*FacetResult `json:"facetResults,omitempty"`
  6963  	// HasMoreResults: Whether there are more search results matching the query.
  6964  	HasMoreResults bool `json:"hasMoreResults,omitempty"`
  6965  	// QueryInterpretation: Query interpretation result for user query. Empty if
  6966  	// query interpretation is disabled.
  6967  	QueryInterpretation *QueryInterpretation `json:"queryInterpretation,omitempty"`
  6968  	// ResultCountEstimate: The estimated result count for this query.
  6969  	ResultCountEstimate int64 `json:"resultCountEstimate,omitempty,string"`
  6970  	// ResultCountExact: The exact result count for this query.
  6971  	ResultCountExact int64 `json:"resultCountExact,omitempty,string"`
  6972  	// ResultCounts: Expanded result count information.
  6973  	ResultCounts *ResultCounts `json:"resultCounts,omitempty"`
  6974  	// Results: Results from a search query.
  6975  	Results []*SearchResult `json:"results,omitempty"`
  6976  	// SpellResults: Suggested spelling for the query.
  6977  	SpellResults []*SpellResult `json:"spellResults,omitempty"`
  6978  	// StructuredResults: Structured results for the user query. These results are
  6979  	// not counted against the page_size.
  6980  	StructuredResults []*StructuredResult `json:"structuredResults,omitempty"`
  6981  
  6982  	// ServerResponse contains the HTTP response code and headers from the server.
  6983  	googleapi.ServerResponse `json:"-"`
  6984  	// ForceSendFields is a list of field names (e.g. "DebugInfo") to
  6985  	// unconditionally include in API requests. By default, fields with empty or
  6986  	// default values are omitted from API requests. See
  6987  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  6988  	// details.
  6989  	ForceSendFields []string `json:"-"`
  6990  	// NullFields is a list of field names (e.g. "DebugInfo") to include in API
  6991  	// requests with the JSON null value. By default, fields with empty values are
  6992  	// omitted from API requests. See
  6993  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  6994  	NullFields []string `json:"-"`
  6995  }
  6996  
  6997  func (s *SearchResponse) MarshalJSON() ([]byte, error) {
  6998  	type NoMethod SearchResponse
  6999  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7000  }
  7001  
  7002  // SearchResult: Results containing indexed information for a document.
  7003  type SearchResult struct {
  7004  	// ClusteredResults: If source is clustered, provide list of clustered results.
  7005  	// There will only be one level of clustered results. If current source is not
  7006  	// enabled for clustering, this field will be empty.
  7007  	ClusteredResults []*SearchResult `json:"clusteredResults,omitempty"`
  7008  	// DebugInfo: Debugging information about this search result.
  7009  	DebugInfo *ResultDebugInfo `json:"debugInfo,omitempty"`
  7010  	// Metadata: Metadata of the search result.
  7011  	Metadata *Metadata `json:"metadata,omitempty"`
  7012  	// Snippet: The concatenation of all snippets (summaries) available for this
  7013  	// result.
  7014  	Snippet *Snippet `json:"snippet,omitempty"`
  7015  	// Title: Title of the search result.
  7016  	Title string `json:"title,omitempty"`
  7017  	// Url: The URL of the search result. The URL contains a Google redirect to the
  7018  	// actual item. This URL is signed and shouldn't be changed.
  7019  	Url string `json:"url,omitempty"`
  7020  	// ForceSendFields is a list of field names (e.g. "ClusteredResults") to
  7021  	// unconditionally include in API requests. By default, fields with empty or
  7022  	// default values are omitted from API requests. See
  7023  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7024  	// details.
  7025  	ForceSendFields []string `json:"-"`
  7026  	// NullFields is a list of field names (e.g. "ClusteredResults") to include in
  7027  	// API requests with the JSON null value. By default, fields with empty values
  7028  	// are omitted from API requests. See
  7029  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7030  	NullFields []string `json:"-"`
  7031  }
  7032  
  7033  func (s *SearchResult) MarshalJSON() ([]byte, error) {
  7034  	type NoMethod SearchResult
  7035  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7036  }
  7037  
  7038  // Snippet: Snippet of the search result, which summarizes the content of the
  7039  // resulting page.
  7040  type Snippet struct {
  7041  	// MatchRanges: The matched ranges in the snippet.
  7042  	MatchRanges []*MatchRange `json:"matchRanges,omitempty"`
  7043  	// Snippet: The snippet of the document. May contain escaped HTML character
  7044  	// that should be unescaped prior to rendering.
  7045  	Snippet string `json:"snippet,omitempty"`
  7046  	// ForceSendFields is a list of field names (e.g. "MatchRanges") to
  7047  	// unconditionally include in API requests. By default, fields with empty or
  7048  	// default values are omitted from API requests. See
  7049  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7050  	// details.
  7051  	ForceSendFields []string `json:"-"`
  7052  	// NullFields is a list of field names (e.g. "MatchRanges") to include in API
  7053  	// requests with the JSON null value. By default, fields with empty values are
  7054  	// omitted from API requests. See
  7055  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7056  	NullFields []string `json:"-"`
  7057  }
  7058  
  7059  func (s *Snippet) MarshalJSON() ([]byte, error) {
  7060  	type NoMethod Snippet
  7061  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7062  }
  7063  
  7064  type SortOptions struct {
  7065  	// OperatorName: The name of the operator corresponding to the field to sort
  7066  	// on. The corresponding property must be marked as sortable.
  7067  	OperatorName string `json:"operatorName,omitempty"`
  7068  	// SortOrder: Ascending is the default sort order
  7069  	//
  7070  	// Possible values:
  7071  	//   "ASCENDING"
  7072  	//   "DESCENDING"
  7073  	SortOrder string `json:"sortOrder,omitempty"`
  7074  	// ForceSendFields is a list of field names (e.g. "OperatorName") to
  7075  	// unconditionally include in API requests. By default, fields with empty or
  7076  	// default values are omitted from API requests. See
  7077  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7078  	// details.
  7079  	ForceSendFields []string `json:"-"`
  7080  	// NullFields is a list of field names (e.g. "OperatorName") to include in API
  7081  	// requests with the JSON null value. By default, fields with empty values are
  7082  	// omitted from API requests. See
  7083  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7084  	NullFields []string `json:"-"`
  7085  }
  7086  
  7087  func (s *SortOptions) MarshalJSON() ([]byte, error) {
  7088  	type NoMethod SortOptions
  7089  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7090  }
  7091  
  7092  // Source: Defines sources for the suggest/search APIs.
  7093  type Source struct {
  7094  	// Name: Source name for content indexed by the Indexing API.
  7095  	Name string `json:"name,omitempty"`
  7096  	// PredefinedSource: Predefined content source for Google Apps.
  7097  	//
  7098  	// Possible values:
  7099  	//   "NONE"
  7100  	//   "QUERY_HISTORY" - Suggests queries issued by the user in the past. Only
  7101  	// valid when used with the suggest API. Ignored when used in the query API.
  7102  	//   "PERSON" - Suggests people in the organization. Only valid when used with
  7103  	// the suggest API. Results in an error when used in the query API.
  7104  	//   "GOOGLE_DRIVE"
  7105  	//   "GOOGLE_GMAIL"
  7106  	//   "GOOGLE_SITES"
  7107  	//   "GOOGLE_GROUPS"
  7108  	//   "GOOGLE_CALENDAR"
  7109  	//   "GOOGLE_KEEP"
  7110  	PredefinedSource string `json:"predefinedSource,omitempty"`
  7111  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  7112  	// include in API requests. By default, fields with empty or default values are
  7113  	// omitted from API requests. See
  7114  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7115  	// details.
  7116  	ForceSendFields []string `json:"-"`
  7117  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  7118  	// with the JSON null value. By default, fields with empty values are omitted
  7119  	// from API requests. See
  7120  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7121  	NullFields []string `json:"-"`
  7122  }
  7123  
  7124  func (s *Source) MarshalJSON() ([]byte, error) {
  7125  	type NoMethod Source
  7126  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7127  }
  7128  
  7129  // SourceConfig: Configurations for a source while processing a Search or
  7130  // Suggest request.
  7131  type SourceConfig struct {
  7132  	// CrowdingConfig: The crowding configuration for the source.
  7133  	CrowdingConfig *SourceCrowdingConfig `json:"crowdingConfig,omitempty"`
  7134  	// ScoringConfig: The scoring configuration for the source.
  7135  	ScoringConfig *SourceScoringConfig `json:"scoringConfig,omitempty"`
  7136  	// Source: The source for which this configuration is to be used.
  7137  	Source *Source `json:"source,omitempty"`
  7138  	// ForceSendFields is a list of field names (e.g. "CrowdingConfig") to
  7139  	// unconditionally include in API requests. By default, fields with empty or
  7140  	// default values are omitted from API requests. See
  7141  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7142  	// details.
  7143  	ForceSendFields []string `json:"-"`
  7144  	// NullFields is a list of field names (e.g. "CrowdingConfig") to include in
  7145  	// API requests with the JSON null value. By default, fields with empty values
  7146  	// are omitted from API requests. See
  7147  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7148  	NullFields []string `json:"-"`
  7149  }
  7150  
  7151  func (s *SourceConfig) MarshalJSON() ([]byte, error) {
  7152  	type NoMethod SourceConfig
  7153  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7154  }
  7155  
  7156  // SourceCrowdingConfig: Set search results crowding limits. Crowding is a
  7157  // situation in which multiple results from the same source or host "crowd out"
  7158  // other results, diminishing the quality of search for users. To foster better
  7159  // search quality and source diversity in search results, you can set a
  7160  // condition to reduce repetitive results by source.
  7161  type SourceCrowdingConfig struct {
  7162  	// NumResults: Maximum number of results allowed from a datasource in a result
  7163  	// page as long as results from other sources are not exhausted. Value
  7164  	// specified must not be negative. A default value is used if this value is
  7165  	// equal to 0. To disable crowding, set the value greater than 100.
  7166  	NumResults int64 `json:"numResults,omitempty"`
  7167  	// NumSuggestions: Maximum number of suggestions allowed from a source. No
  7168  	// limits will be set on results if this value is less than or equal to 0.
  7169  	NumSuggestions int64 `json:"numSuggestions,omitempty"`
  7170  	// ForceSendFields is a list of field names (e.g. "NumResults") to
  7171  	// unconditionally include in API requests. By default, fields with empty or
  7172  	// default values are omitted from API requests. See
  7173  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7174  	// details.
  7175  	ForceSendFields []string `json:"-"`
  7176  	// NullFields is a list of field names (e.g. "NumResults") to include in API
  7177  	// requests with the JSON null value. By default, fields with empty values are
  7178  	// omitted from API requests. See
  7179  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7180  	NullFields []string `json:"-"`
  7181  }
  7182  
  7183  func (s *SourceCrowdingConfig) MarshalJSON() ([]byte, error) {
  7184  	type NoMethod SourceCrowdingConfig
  7185  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7186  }
  7187  
  7188  // SourceResultCount: Per source result count information.
  7189  type SourceResultCount struct {
  7190  	// HasMoreResults: Whether there are more search results for this source.
  7191  	HasMoreResults bool `json:"hasMoreResults,omitempty"`
  7192  	// ResultCountEstimate: The estimated result count for this source.
  7193  	ResultCountEstimate int64 `json:"resultCountEstimate,omitempty,string"`
  7194  	// ResultCountExact: The exact result count for this source.
  7195  	ResultCountExact int64 `json:"resultCountExact,omitempty,string"`
  7196  	// Source: The source the result count information is associated with.
  7197  	Source *Source `json:"source,omitempty"`
  7198  	// ForceSendFields is a list of field names (e.g. "HasMoreResults") to
  7199  	// unconditionally include in API requests. By default, fields with empty or
  7200  	// default values are 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. "HasMoreResults") to include in
  7205  	// API requests with the JSON null value. By default, fields with empty values
  7206  	// are 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 *SourceResultCount) MarshalJSON() ([]byte, error) {
  7212  	type NoMethod SourceResultCount
  7213  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7214  }
  7215  
  7216  // SourceScoringConfig: Set the scoring configuration. This allows modifying
  7217  // the ranking of results for a source.
  7218  type SourceScoringConfig struct {
  7219  	// SourceImportance: Importance of the source.
  7220  	//
  7221  	// Possible values:
  7222  	//   "DEFAULT"
  7223  	//   "LOW"
  7224  	//   "HIGH"
  7225  	SourceImportance string `json:"sourceImportance,omitempty"`
  7226  	// ForceSendFields is a list of field names (e.g. "SourceImportance") to
  7227  	// unconditionally include in API requests. By default, fields with empty or
  7228  	// default values are omitted from API requests. See
  7229  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7230  	// details.
  7231  	ForceSendFields []string `json:"-"`
  7232  	// NullFields is a list of field names (e.g. "SourceImportance") to include in
  7233  	// API requests with the JSON null value. By default, fields with empty values
  7234  	// are omitted from API requests. See
  7235  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7236  	NullFields []string `json:"-"`
  7237  }
  7238  
  7239  func (s *SourceScoringConfig) MarshalJSON() ([]byte, error) {
  7240  	type NoMethod SourceScoringConfig
  7241  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7242  }
  7243  
  7244  type SpellResult struct {
  7245  	// SuggestedQuery: The suggested spelling of the query.
  7246  	SuggestedQuery string `json:"suggestedQuery,omitempty"`
  7247  	// SuggestedQueryHtml: The sanitized HTML representing the spell corrected
  7248  	// query that can be used in the UI. This usually has language-specific tags to
  7249  	// mark up parts of the query that are spell checked.
  7250  	SuggestedQueryHtml *SafeHtmlProto `json:"suggestedQueryHtml,omitempty"`
  7251  	// SuggestionType: Suggestion triggered for the current query.
  7252  	//
  7253  	// Possible values:
  7254  	//   "SUGGESTION_TYPE_UNSPECIFIED" - Default spell check type
  7255  	//   "NON_EMPTY_RESULTS_SPELL_SUGGESTION" - Spell suggestion without any
  7256  	// results changed. The results are still shown for the original query (which
  7257  	// has non zero / results) with a suggestion for spelling that would have
  7258  	// results.
  7259  	//   "ZERO_RESULTS_FULL_PAGE_REPLACEMENT" - Spell suggestion triggered when
  7260  	// original query has no results. When the original query has no results, and
  7261  	// spell suggestion has results we trigger results for the spell corrected
  7262  	// query.
  7263  	SuggestionType string `json:"suggestionType,omitempty"`
  7264  	// ForceSendFields is a list of field names (e.g. "SuggestedQuery") to
  7265  	// unconditionally include in API requests. By default, fields with empty or
  7266  	// default values are omitted from API requests. See
  7267  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7268  	// details.
  7269  	ForceSendFields []string `json:"-"`
  7270  	// NullFields is a list of field names (e.g. "SuggestedQuery") to include in
  7271  	// API requests with the JSON null value. By default, fields with empty values
  7272  	// are omitted from API requests. See
  7273  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7274  	NullFields []string `json:"-"`
  7275  }
  7276  
  7277  func (s *SpellResult) MarshalJSON() ([]byte, error) {
  7278  	type NoMethod SpellResult
  7279  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7280  }
  7281  
  7282  // StartUploadItemRequest: Start upload file request.
  7283  type StartUploadItemRequest struct {
  7284  	// ConnectorName: The name of connector making this call. Format:
  7285  	// datasources/{source_id}/connectors/{ID}
  7286  	ConnectorName string `json:"connectorName,omitempty"`
  7287  	// DebugOptions: Common debug options.
  7288  	DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
  7289  	// ForceSendFields is a list of field names (e.g. "ConnectorName") to
  7290  	// unconditionally include in API requests. By default, fields with empty or
  7291  	// default values are omitted from API requests. See
  7292  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7293  	// details.
  7294  	ForceSendFields []string `json:"-"`
  7295  	// NullFields is a list of field names (e.g. "ConnectorName") to include in API
  7296  	// requests with the JSON null value. By default, fields with empty values are
  7297  	// omitted from API requests. See
  7298  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7299  	NullFields []string `json:"-"`
  7300  }
  7301  
  7302  func (s *StartUploadItemRequest) MarshalJSON() ([]byte, error) {
  7303  	type NoMethod StartUploadItemRequest
  7304  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7305  }
  7306  
  7307  // Status: The `Status` type defines a logical error model that is suitable for
  7308  // different programming environments, including REST APIs and RPC APIs. It is
  7309  // used by gRPC (https://github.com/grpc). Each `Status` message contains three
  7310  // pieces of data: error code, error message, and error details. You can find
  7311  // out more about this error model and how to work with it in the API Design
  7312  // Guide (https://cloud.google.com/apis/design/errors).
  7313  type Status struct {
  7314  	// Code: The status code, which should be an enum value of google.rpc.Code.
  7315  	Code int64 `json:"code,omitempty"`
  7316  	// Details: A list of messages that carry the error details. There is a common
  7317  	// set of message types for APIs to use.
  7318  	Details []googleapi.RawMessage `json:"details,omitempty"`
  7319  	// Message: A developer-facing error message, which should be in English. Any
  7320  	// user-facing error message should be localized and sent in the
  7321  	// google.rpc.Status.details field, or localized by the client.
  7322  	Message string `json:"message,omitempty"`
  7323  	// ForceSendFields is a list of field names (e.g. "Code") to unconditionally
  7324  	// include in API requests. By default, fields with empty or default values are
  7325  	// omitted from API requests. See
  7326  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7327  	// details.
  7328  	ForceSendFields []string `json:"-"`
  7329  	// NullFields is a list of field names (e.g. "Code") to include in API requests
  7330  	// with the JSON null value. By default, fields with empty values are omitted
  7331  	// from API requests. See
  7332  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7333  	NullFields []string `json:"-"`
  7334  }
  7335  
  7336  func (s *Status) MarshalJSON() ([]byte, error) {
  7337  	type NoMethod Status
  7338  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7339  }
  7340  
  7341  // StructuredDataObject: A structured data object consisting of named
  7342  // properties.
  7343  type StructuredDataObject struct {
  7344  	// Properties: The properties for the object. The maximum number of elements is
  7345  	// 1000.
  7346  	Properties []*NamedProperty `json:"properties,omitempty"`
  7347  	// ForceSendFields is a list of field names (e.g. "Properties") to
  7348  	// unconditionally include in API requests. By default, fields with empty or
  7349  	// default values are omitted from API requests. See
  7350  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7351  	// details.
  7352  	ForceSendFields []string `json:"-"`
  7353  	// NullFields is a list of field names (e.g. "Properties") to include in API
  7354  	// requests with the JSON null value. By default, fields with empty values are
  7355  	// omitted from API requests. See
  7356  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7357  	NullFields []string `json:"-"`
  7358  }
  7359  
  7360  func (s *StructuredDataObject) MarshalJSON() ([]byte, error) {
  7361  	type NoMethod StructuredDataObject
  7362  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7363  }
  7364  
  7365  // StructuredResult: Structured results that are returned as part of search
  7366  // request.
  7367  type StructuredResult struct {
  7368  	// Person: Representation of a person
  7369  	Person *Person `json:"person,omitempty"`
  7370  	// ForceSendFields is a list of field names (e.g. "Person") to unconditionally
  7371  	// include in API requests. By default, fields with empty or default values are
  7372  	// omitted from API requests. See
  7373  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7374  	// details.
  7375  	ForceSendFields []string `json:"-"`
  7376  	// NullFields is a list of field names (e.g. "Person") to include in API
  7377  	// requests with the JSON null value. By default, fields with empty values are
  7378  	// omitted from API requests. See
  7379  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7380  	NullFields []string `json:"-"`
  7381  }
  7382  
  7383  func (s *StructuredResult) MarshalJSON() ([]byte, error) {
  7384  	type NoMethod StructuredResult
  7385  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7386  }
  7387  
  7388  // SuggestRequest: Request of suggest API.
  7389  type SuggestRequest struct {
  7390  	// DataSourceRestrictions: The sources to use for suggestions. If not
  7391  	// specified, the data sources are taken from the current search application.
  7392  	// NOTE: Suggestions are only supported for the following sources: *
  7393  	// Third-party data sources * PredefinedSource.PERSON *
  7394  	// PredefinedSource.GOOGLE_DRIVE
  7395  	DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"`
  7396  	// Query: Partial query for which autocomplete suggestions will be shown. For
  7397  	// example, if the query is "sea", then the server might return "season",
  7398  	// "search", "seagull" and so on.
  7399  	Query string `json:"query,omitempty"`
  7400  	// RequestOptions: Request options, such as the search application and user
  7401  	// timezone.
  7402  	RequestOptions *RequestOptions `json:"requestOptions,omitempty"`
  7403  	// ForceSendFields is a list of field names (e.g. "DataSourceRestrictions") 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. "DataSourceRestrictions") to
  7410  	// include in API requests with the JSON null value. By default, fields with
  7411  	// empty values are 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 *SuggestRequest) MarshalJSON() ([]byte, error) {
  7417  	type NoMethod SuggestRequest
  7418  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7419  }
  7420  
  7421  // SuggestResponse: Response of the suggest API.
  7422  type SuggestResponse struct {
  7423  	// SuggestResults: List of suggestions.
  7424  	SuggestResults []*SuggestResult `json:"suggestResults,omitempty"`
  7425  
  7426  	// ServerResponse contains the HTTP response code and headers from the server.
  7427  	googleapi.ServerResponse `json:"-"`
  7428  	// ForceSendFields is a list of field names (e.g. "SuggestResults") to
  7429  	// unconditionally include in API requests. By default, fields with empty or
  7430  	// default values are omitted from API requests. See
  7431  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7432  	// details.
  7433  	ForceSendFields []string `json:"-"`
  7434  	// NullFields is a list of field names (e.g. "SuggestResults") to include in
  7435  	// API requests with the JSON null value. By default, fields with empty values
  7436  	// are omitted from API requests. See
  7437  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7438  	NullFields []string `json:"-"`
  7439  }
  7440  
  7441  func (s *SuggestResponse) MarshalJSON() ([]byte, error) {
  7442  	type NoMethod SuggestResponse
  7443  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7444  }
  7445  
  7446  // SuggestResult: One suggestion result.
  7447  type SuggestResult struct {
  7448  	// PeopleSuggestion: This is present when the suggestion indicates a person. It
  7449  	// contains more information about the person - like their email ID, name etc.
  7450  	PeopleSuggestion *PeopleSuggestion `json:"peopleSuggestion,omitempty"`
  7451  	// QuerySuggestion: This field will be present if the suggested query is a
  7452  	// word/phrase completion.
  7453  	QuerySuggestion *QuerySuggestion `json:"querySuggestion,omitempty"`
  7454  	// Source: The source of the suggestion.
  7455  	Source *Source `json:"source,omitempty"`
  7456  	// SuggestedQuery: The suggested query that will be used for search, when the
  7457  	// user clicks on the suggestion
  7458  	SuggestedQuery string `json:"suggestedQuery,omitempty"`
  7459  	// ForceSendFields is a list of field names (e.g. "PeopleSuggestion") to
  7460  	// unconditionally include in API requests. By default, fields with empty or
  7461  	// default values are omitted from API requests. See
  7462  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7463  	// details.
  7464  	ForceSendFields []string `json:"-"`
  7465  	// NullFields is a list of field names (e.g. "PeopleSuggestion") to include in
  7466  	// API requests with the JSON null value. By default, fields with empty values
  7467  	// are omitted from API requests. See
  7468  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7469  	NullFields []string `json:"-"`
  7470  }
  7471  
  7472  func (s *SuggestResult) MarshalJSON() ([]byte, error) {
  7473  	type NoMethod SuggestResult
  7474  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7475  }
  7476  
  7477  // TextOperatorOptions: Used to provide a search operator for text properties.
  7478  // This is optional. Search operators let users restrict the query to specific
  7479  // fields relevant to the type of item being searched.
  7480  type TextOperatorOptions struct {
  7481  	// ExactMatchWithOperator: If true, the text value is tokenized as one atomic
  7482  	// value in operator searches and facet matches. For example, if the operator
  7483  	// name is "genre" and the value is "science-fiction" the query restrictions
  7484  	// "genre:science" and "genre:fiction" doesn't match the item;
  7485  	// "genre:science-fiction" does. Text value matching is case-sensitive and does
  7486  	// not remove special characters. If false, the text is tokenized. For example,
  7487  	// if the value is "science-fiction" the queries "genre:science" and
  7488  	// "genre:fiction" matches the item.
  7489  	ExactMatchWithOperator bool `json:"exactMatchWithOperator,omitempty"`
  7490  	// OperatorName: Indicates the operator name required in the query in order to
  7491  	// isolate the text property. For example, if operatorName is *subject* and the
  7492  	// property's name is *subjectLine*, then queries like *subject:<value>* show
  7493  	// results only where the value of the property named *subjectLine* matches
  7494  	// *<value>*. By contrast, a search that uses the same *<value>* without an
  7495  	// operator returns all items where *<value>* matches the value of any text
  7496  	// properties or text within the content field for the item. The operator name
  7497  	// can only contain lowercase letters (a-z). The maximum length is 32
  7498  	// characters.
  7499  	OperatorName string `json:"operatorName,omitempty"`
  7500  	// ForceSendFields is a list of field names (e.g. "ExactMatchWithOperator") to
  7501  	// unconditionally include in API requests. By default, fields with empty or
  7502  	// default values are omitted from API requests. See
  7503  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7504  	// details.
  7505  	ForceSendFields []string `json:"-"`
  7506  	// NullFields is a list of field names (e.g. "ExactMatchWithOperator") to
  7507  	// include in API requests with the JSON null value. By default, fields with
  7508  	// empty values are omitted from API requests. See
  7509  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7510  	NullFields []string `json:"-"`
  7511  }
  7512  
  7513  func (s *TextOperatorOptions) MarshalJSON() ([]byte, error) {
  7514  	type NoMethod TextOperatorOptions
  7515  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7516  }
  7517  
  7518  // TextPropertyOptions: The options for text properties.
  7519  type TextPropertyOptions struct {
  7520  	// OperatorOptions: If set, describes how the property should be used as a
  7521  	// search operator.
  7522  	OperatorOptions *TextOperatorOptions `json:"operatorOptions,omitempty"`
  7523  	// RetrievalImportance: Indicates the search quality importance of the tokens
  7524  	// within the field when used for retrieval.
  7525  	RetrievalImportance *RetrievalImportance `json:"retrievalImportance,omitempty"`
  7526  	// ForceSendFields is a list of field names (e.g. "OperatorOptions") to
  7527  	// unconditionally include in API requests. By default, fields with empty or
  7528  	// default values are omitted from API requests. See
  7529  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7530  	// details.
  7531  	ForceSendFields []string `json:"-"`
  7532  	// NullFields is a list of field names (e.g. "OperatorOptions") to include in
  7533  	// API requests with the JSON null value. By default, fields with empty values
  7534  	// are omitted from API requests. See
  7535  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7536  	NullFields []string `json:"-"`
  7537  }
  7538  
  7539  func (s *TextPropertyOptions) MarshalJSON() ([]byte, error) {
  7540  	type NoMethod TextPropertyOptions
  7541  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7542  }
  7543  
  7544  // TextValues: List of text values.
  7545  type TextValues struct {
  7546  	// Values: The maximum allowable length for text values is 2048 characters.
  7547  	Values []string `json:"values,omitempty"`
  7548  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  7549  	// include in API requests. By default, fields with empty or default values are
  7550  	// omitted from API requests. See
  7551  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7552  	// details.
  7553  	ForceSendFields []string `json:"-"`
  7554  	// NullFields is a list of field names (e.g. "Values") to include in API
  7555  	// requests with the JSON null value. By default, fields with empty values are
  7556  	// omitted from API requests. See
  7557  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7558  	NullFields []string `json:"-"`
  7559  }
  7560  
  7561  func (s *TextValues) MarshalJSON() ([]byte, error) {
  7562  	type NoMethod TextValues
  7563  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7564  }
  7565  
  7566  type ThirdPartyGenericCard struct {
  7567  	// CardId: Unique identifier for the card.
  7568  	CardId string `json:"cardId,omitempty"`
  7569  	// Category: Category that the card belongs to.
  7570  	Category string `json:"category,omitempty"`
  7571  	// Content: [Required] Card content.
  7572  	Content *Content `json:"content,omitempty"`
  7573  	// Context: [Required] Context where the card should be triggered.
  7574  	Context *Context `json:"context,omitempty"`
  7575  	// IsDismissible: Whether the card can be dismissed.
  7576  	IsDismissible bool `json:"isDismissible,omitempty"`
  7577  	// Priority: Priority of the card, where 0 is the highest priority.
  7578  	Priority int64 `json:"priority,omitempty"`
  7579  	// ForceSendFields is a list of field names (e.g. "CardId") to unconditionally
  7580  	// include in API requests. By default, fields with empty or default values are
  7581  	// omitted from API requests. See
  7582  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7583  	// details.
  7584  	ForceSendFields []string `json:"-"`
  7585  	// NullFields is a list of field names (e.g. "CardId") to include in API
  7586  	// requests with the JSON null value. By default, fields with empty values are
  7587  	// omitted from API requests. See
  7588  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7589  	NullFields []string `json:"-"`
  7590  }
  7591  
  7592  func (s *ThirdPartyGenericCard) MarshalJSON() ([]byte, error) {
  7593  	type NoMethod ThirdPartyGenericCard
  7594  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7595  }
  7596  
  7597  // TimestampOperatorOptions: Used to provide a search operator for timestamp
  7598  // properties. This is optional. Search operators let users restrict the query
  7599  // to specific fields relevant to the type of item being searched.
  7600  type TimestampOperatorOptions struct {
  7601  	// GreaterThanOperatorName: Indicates the operator name required in the query
  7602  	// in order to isolate the timestamp property using the greater-than operator.
  7603  	// For example, if greaterThanOperatorName is *closedafter* and the property's
  7604  	// name is *closeDate*, then queries like *closedafter:<value>* show results
  7605  	// only where the value of the property named *closeDate* is later than
  7606  	// *<value>*. The operator name can only contain lowercase letters (a-z). The
  7607  	// maximum length is 32 characters.
  7608  	GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"`
  7609  	// LessThanOperatorName: Indicates the operator name required in the query in
  7610  	// order to isolate the timestamp property using the less-than operator. For
  7611  	// example, if lessThanOperatorName is *closedbefore* and the property's name
  7612  	// is *closeDate*, then queries like *closedbefore:<value>* show results only
  7613  	// where the value of the property named *closeDate* is earlier than *<value>*.
  7614  	// The operator name can only contain lowercase letters (a-z). The maximum
  7615  	// length is 32 characters.
  7616  	LessThanOperatorName string `json:"lessThanOperatorName,omitempty"`
  7617  	// OperatorName: Indicates the operator name required in the query in order to
  7618  	// isolate the timestamp property. For example, if operatorName is *closedon*
  7619  	// and the property's name is *closeDate*, then queries like *closedon:<value>*
  7620  	// show results only where the value of the property named *closeDate* matches
  7621  	// *<value>*. By contrast, a search that uses the same *<value>* without an
  7622  	// operator returns all items where *<value>* matches the value of any String
  7623  	// properties or text within the content field for the item. The operator name
  7624  	// can only contain lowercase letters (a-z). The maximum length is 32
  7625  	// characters.
  7626  	OperatorName string `json:"operatorName,omitempty"`
  7627  	// ForceSendFields is a list of field names (e.g. "GreaterThanOperatorName") to
  7628  	// unconditionally include in API requests. By default, fields with empty or
  7629  	// default values are omitted from API requests. See
  7630  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7631  	// details.
  7632  	ForceSendFields []string `json:"-"`
  7633  	// NullFields is a list of field names (e.g. "GreaterThanOperatorName") to
  7634  	// include in API requests with the JSON null value. By default, fields with
  7635  	// empty values are omitted from API requests. See
  7636  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7637  	NullFields []string `json:"-"`
  7638  }
  7639  
  7640  func (s *TimestampOperatorOptions) MarshalJSON() ([]byte, error) {
  7641  	type NoMethod TimestampOperatorOptions
  7642  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7643  }
  7644  
  7645  // TimestampPropertyOptions: The options for timestamp properties.
  7646  type TimestampPropertyOptions struct {
  7647  	// OperatorOptions: If set, describes how the timestamp should be used as a
  7648  	// search operator.
  7649  	OperatorOptions *TimestampOperatorOptions `json:"operatorOptions,omitempty"`
  7650  	// ForceSendFields is a list of field names (e.g. "OperatorOptions") to
  7651  	// unconditionally include in API requests. By default, fields with empty or
  7652  	// default values are omitted from API requests. See
  7653  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7654  	// details.
  7655  	ForceSendFields []string `json:"-"`
  7656  	// NullFields is a list of field names (e.g. "OperatorOptions") to include in
  7657  	// API requests with the JSON null value. By default, fields with empty values
  7658  	// are omitted from API requests. See
  7659  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7660  	NullFields []string `json:"-"`
  7661  }
  7662  
  7663  func (s *TimestampPropertyOptions) MarshalJSON() ([]byte, error) {
  7664  	type NoMethod TimestampPropertyOptions
  7665  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7666  }
  7667  
  7668  // TimestampValues: List of timestamp values.
  7669  type TimestampValues struct {
  7670  	Values []string `json:"values,omitempty"`
  7671  	// ForceSendFields is a list of field names (e.g. "Values") to unconditionally
  7672  	// include in API requests. By default, fields with empty or default values are
  7673  	// omitted from API requests. See
  7674  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7675  	// details.
  7676  	ForceSendFields []string `json:"-"`
  7677  	// NullFields is a list of field names (e.g. "Values") to include in API
  7678  	// requests with the JSON null value. By default, fields with empty values are
  7679  	// omitted from API requests. See
  7680  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7681  	NullFields []string `json:"-"`
  7682  }
  7683  
  7684  func (s *TimestampValues) MarshalJSON() ([]byte, error) {
  7685  	type NoMethod TimestampValues
  7686  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7687  }
  7688  
  7689  type UnmappedIdentity struct {
  7690  	// ExternalIdentity: The resource name for an external user.
  7691  	ExternalIdentity *Principal `json:"externalIdentity,omitempty"`
  7692  	// ResolutionStatusCode: The resolution status for the external identity.
  7693  	//
  7694  	// Possible values:
  7695  	//   "CODE_UNSPECIFIED" - Input-only value. Used to list all unmapped
  7696  	// identities regardless of status.
  7697  	//   "NOT_FOUND" - The unmapped identity was not found in IDaaS, and needs to
  7698  	// be provided by the user.
  7699  	//   "IDENTITY_SOURCE_NOT_FOUND" - The identity source associated with the
  7700  	// identity was either not found or deleted.
  7701  	//   "IDENTITY_SOURCE_MISCONFIGURED" - IDaaS does not understand the identity
  7702  	// source, probably because the schema was modified in a non compatible way.
  7703  	//   "TOO_MANY_MAPPINGS_FOUND" - The number of users associated with the
  7704  	// external identity is too large.
  7705  	//   "INTERNAL_ERROR" - Internal error.
  7706  	ResolutionStatusCode string `json:"resolutionStatusCode,omitempty"`
  7707  	// ForceSendFields is a list of field names (e.g. "ExternalIdentity") to
  7708  	// unconditionally include in API requests. By default, fields with empty or
  7709  	// default values are omitted from API requests. See
  7710  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7711  	// details.
  7712  	ForceSendFields []string `json:"-"`
  7713  	// NullFields is a list of field names (e.g. "ExternalIdentity") to include in
  7714  	// API requests with the JSON null value. By default, fields with empty values
  7715  	// are omitted from API requests. See
  7716  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7717  	NullFields []string `json:"-"`
  7718  }
  7719  
  7720  func (s *UnmappedIdentity) MarshalJSON() ([]byte, error) {
  7721  	type NoMethod UnmappedIdentity
  7722  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7723  }
  7724  
  7725  type UnreserveItemsRequest struct {
  7726  	// ConnectorName: The name of connector making this call. Format:
  7727  	// datasources/{source_id}/connectors/{ID}
  7728  	ConnectorName string `json:"connectorName,omitempty"`
  7729  	// DebugOptions: Common debug options.
  7730  	DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
  7731  	// Queue: The name of a queue to unreserve items from.
  7732  	Queue string `json:"queue,omitempty"`
  7733  	// ForceSendFields is a list of field names (e.g. "ConnectorName") to
  7734  	// unconditionally include in API requests. By default, fields with empty or
  7735  	// default values are omitted from API requests. See
  7736  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7737  	// details.
  7738  	ForceSendFields []string `json:"-"`
  7739  	// NullFields is a list of field names (e.g. "ConnectorName") to include in API
  7740  	// requests with the JSON null value. By default, fields with empty values are
  7741  	// omitted from API requests. See
  7742  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7743  	NullFields []string `json:"-"`
  7744  }
  7745  
  7746  func (s *UnreserveItemsRequest) MarshalJSON() ([]byte, error) {
  7747  	type NoMethod UnreserveItemsRequest
  7748  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7749  }
  7750  
  7751  type UpdateDataSourceRequest struct {
  7752  	// DebugOptions: Common debug options.
  7753  	DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
  7754  	Source       *DataSource   `json:"source,omitempty"`
  7755  	// UpdateMask: Only applies to `settings.datasources.patch`
  7756  	// (https://developers.google.com/cloud-search/docs/reference/rest/v1/settings.datasources/patch).
  7757  	// Update mask to control which fields to update. Example field paths: `name`,
  7758  	// `displayName`. * If `update_mask` is non-empty, then only the fields
  7759  	// specified in the `update_mask` are updated. * If you specify a field in the
  7760  	// `update_mask`, but don't specify its value in the source, that field is
  7761  	// cleared. * If the `update_mask` is not present or empty or has the value
  7762  	// `*`, then all fields are updated.
  7763  	UpdateMask string `json:"updateMask,omitempty"`
  7764  	// ForceSendFields is a list of field names (e.g. "DebugOptions") to
  7765  	// unconditionally include in API requests. By default, fields with empty or
  7766  	// default values are omitted from API requests. See
  7767  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7768  	// details.
  7769  	ForceSendFields []string `json:"-"`
  7770  	// NullFields is a list of field names (e.g. "DebugOptions") to include in API
  7771  	// requests with the JSON null value. By default, fields with empty values are
  7772  	// omitted from API requests. See
  7773  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7774  	NullFields []string `json:"-"`
  7775  }
  7776  
  7777  func (s *UpdateDataSourceRequest) MarshalJSON() ([]byte, error) {
  7778  	type NoMethod UpdateDataSourceRequest
  7779  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7780  }
  7781  
  7782  type UpdateSchemaRequest struct {
  7783  	// DebugOptions: Common debug options.
  7784  	DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
  7785  	// Schema: The new schema for the source.
  7786  	Schema *Schema `json:"schema,omitempty"`
  7787  	// ValidateOnly: If true, the schema will be checked for validity, but will not
  7788  	// be registered with the data source, even if valid.
  7789  	ValidateOnly bool `json:"validateOnly,omitempty"`
  7790  	// ForceSendFields is a list of field names (e.g. "DebugOptions") to
  7791  	// unconditionally include in API requests. By default, fields with empty or
  7792  	// default values are omitted from API requests. See
  7793  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7794  	// details.
  7795  	ForceSendFields []string `json:"-"`
  7796  	// NullFields is a list of field names (e.g. "DebugOptions") to include in API
  7797  	// requests with the JSON null value. By default, fields with empty values are
  7798  	// omitted from API requests. See
  7799  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7800  	NullFields []string `json:"-"`
  7801  }
  7802  
  7803  func (s *UpdateSchemaRequest) MarshalJSON() ([]byte, error) {
  7804  	type NoMethod UpdateSchemaRequest
  7805  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7806  }
  7807  
  7808  // UploadItemRef: Represents an upload session reference. This reference is
  7809  // created via upload method. This reference is valid for 30 days after its
  7810  // creation. Updating of item content may refer to this uploaded content via
  7811  // contentDataRef.
  7812  type UploadItemRef struct {
  7813  	// Name: The name of the content reference. The maximum length is 2048
  7814  	// characters.
  7815  	Name string `json:"name,omitempty"`
  7816  
  7817  	// ServerResponse contains the HTTP response code and headers from the server.
  7818  	googleapi.ServerResponse `json:"-"`
  7819  	// ForceSendFields is a list of field names (e.g. "Name") to unconditionally
  7820  	// include in API requests. By default, fields with empty or default values are
  7821  	// omitted from API requests. See
  7822  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7823  	// details.
  7824  	ForceSendFields []string `json:"-"`
  7825  	// NullFields is a list of field names (e.g. "Name") to include in API requests
  7826  	// with the JSON null value. By default, fields with empty values are omitted
  7827  	// from API requests. See
  7828  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7829  	NullFields []string `json:"-"`
  7830  }
  7831  
  7832  func (s *UploadItemRef) MarshalJSON() ([]byte, error) {
  7833  	type NoMethod UploadItemRef
  7834  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7835  }
  7836  
  7837  // UserActivity: User's single or bulk query activity. This can be a logging
  7838  // query or deletion query.
  7839  type UserActivity struct {
  7840  	// QueryActivity: Contains data which needs to be logged/removed.
  7841  	QueryActivity *QueryActivity `json:"queryActivity,omitempty"`
  7842  	// ForceSendFields is a list of field names (e.g. "QueryActivity") to
  7843  	// unconditionally include in API requests. By default, fields with empty or
  7844  	// default values are omitted from API requests. See
  7845  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7846  	// details.
  7847  	ForceSendFields []string `json:"-"`
  7848  	// NullFields is a list of field names (e.g. "QueryActivity") to include in API
  7849  	// requests with the JSON null value. By default, fields with empty values are
  7850  	// omitted from API requests. See
  7851  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7852  	NullFields []string `json:"-"`
  7853  }
  7854  
  7855  func (s *UserActivity) MarshalJSON() ([]byte, error) {
  7856  	type NoMethod UserActivity
  7857  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7858  }
  7859  
  7860  type VPCSettings struct {
  7861  	// Project: The resource name of the GCP Project to be used for VPC SC policy
  7862  	// check. VPC security settings on this project will be honored for Cloud
  7863  	// Search APIs after project_name has been updated through CustomerService.
  7864  	// Format: projects/{project_id}
  7865  	Project string `json:"project,omitempty"`
  7866  	// ForceSendFields is a list of field names (e.g. "Project") to unconditionally
  7867  	// include in API requests. By default, fields with empty or default values are
  7868  	// omitted from API requests. See
  7869  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7870  	// details.
  7871  	ForceSendFields []string `json:"-"`
  7872  	// NullFields is a list of field names (e.g. "Project") to include in API
  7873  	// requests with the JSON null value. By default, fields with empty values are
  7874  	// omitted from API requests. See
  7875  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7876  	NullFields []string `json:"-"`
  7877  }
  7878  
  7879  func (s *VPCSettings) MarshalJSON() ([]byte, error) {
  7880  	type NoMethod VPCSettings
  7881  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7882  }
  7883  
  7884  // Value: Definition of a single value with generic type.
  7885  type Value struct {
  7886  	BooleanValue   bool    `json:"booleanValue,omitempty"`
  7887  	DateValue      *Date   `json:"dateValue,omitempty"`
  7888  	DoubleValue    float64 `json:"doubleValue,omitempty"`
  7889  	IntegerValue   int64   `json:"integerValue,omitempty,string"`
  7890  	StringValue    string  `json:"stringValue,omitempty"`
  7891  	TimestampValue string  `json:"timestampValue,omitempty"`
  7892  	// ForceSendFields is a list of field names (e.g. "BooleanValue") to
  7893  	// unconditionally include in API requests. By default, fields with empty or
  7894  	// default values are omitted from API requests. See
  7895  	// https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more
  7896  	// details.
  7897  	ForceSendFields []string `json:"-"`
  7898  	// NullFields is a list of field names (e.g. "BooleanValue") to include in API
  7899  	// requests with the JSON null value. By default, fields with empty values are
  7900  	// omitted from API requests. See
  7901  	// https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.
  7902  	NullFields []string `json:"-"`
  7903  }
  7904  
  7905  func (s *Value) MarshalJSON() ([]byte, error) {
  7906  	type NoMethod Value
  7907  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7908  }
  7909  
  7910  func (s *Value) UnmarshalJSON(data []byte) error {
  7911  	type NoMethod Value
  7912  	var s1 struct {
  7913  		DoubleValue gensupport.JSONFloat64 `json:"doubleValue"`
  7914  		*NoMethod
  7915  	}
  7916  	s1.NoMethod = (*NoMethod)(s)
  7917  	if err := json.Unmarshal(data, &s1); err != nil {
  7918  		return err
  7919  	}
  7920  	s.DoubleValue = float64(s1.DoubleValue)
  7921  	return nil
  7922  }
  7923  
  7924  type ValueFilter struct {
  7925  	// OperatorName: The `operator_name` applied to the query, such as
  7926  	// *price_greater_than*. The filter can work against both types of filters
  7927  	// defined in the schema for your data source: 1. `operator_name`, where the
  7928  	// query filters results by the property that matches the value. 2.
  7929  	// `greater_than_operator_name` or `less_than_operator_name` in your schema.
  7930  	// The query filters the results for the property values that are greater than
  7931  	// or less than the supplied value in the query.
  7932  	OperatorName string `json:"operatorName,omitempty"`
  7933  	// Value: The value to be compared with.
  7934  	Value *Value `json:"value,omitempty"`
  7935  	// ForceSendFields is a list of field names (e.g. "OperatorName") 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. "OperatorName") to include in API
  7942  	// requests with the JSON null value. By default, fields with empty values are
  7943  	// 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 *ValueFilter) MarshalJSON() ([]byte, error) {
  7949  	type NoMethod ValueFilter
  7950  	return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
  7951  }
  7952  
  7953  type DebugDatasourcesItemsCheckAccessCall struct {
  7954  	s          *Service
  7955  	name       string
  7956  	principal  *Principal
  7957  	urlParams_ gensupport.URLParams
  7958  	ctx_       context.Context
  7959  	header_    http.Header
  7960  }
  7961  
  7962  // CheckAccess: Checks whether an item is accessible by specified principal.
  7963  // Principal must be a user; groups and domain values aren't supported.
  7964  // **Note:** This API requires an admin account to execute.
  7965  //
  7966  // - name: Item name, format: datasources/{source_id}/items/{item_id}.
  7967  func (r *DebugDatasourcesItemsService) CheckAccess(name string, principal *Principal) *DebugDatasourcesItemsCheckAccessCall {
  7968  	c := &DebugDatasourcesItemsCheckAccessCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  7969  	c.name = name
  7970  	c.principal = principal
  7971  	return c
  7972  }
  7973  
  7974  // DebugOptionsEnableDebugging sets the optional parameter
  7975  // "debugOptions.enableDebugging": If you are asked by Google to help with
  7976  // debugging, set this field. Otherwise, ignore this field.
  7977  func (c *DebugDatasourcesItemsCheckAccessCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *DebugDatasourcesItemsCheckAccessCall {
  7978  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
  7979  	return c
  7980  }
  7981  
  7982  // Fields allows partial responses to be retrieved. See
  7983  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  7984  // details.
  7985  func (c *DebugDatasourcesItemsCheckAccessCall) Fields(s ...googleapi.Field) *DebugDatasourcesItemsCheckAccessCall {
  7986  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  7987  	return c
  7988  }
  7989  
  7990  // Context sets the context to be used in this call's Do method.
  7991  func (c *DebugDatasourcesItemsCheckAccessCall) Context(ctx context.Context) *DebugDatasourcesItemsCheckAccessCall {
  7992  	c.ctx_ = ctx
  7993  	return c
  7994  }
  7995  
  7996  // Header returns a http.Header that can be modified by the caller to add
  7997  // headers to the request.
  7998  func (c *DebugDatasourcesItemsCheckAccessCall) Header() http.Header {
  7999  	if c.header_ == nil {
  8000  		c.header_ = make(http.Header)
  8001  	}
  8002  	return c.header_
  8003  }
  8004  
  8005  func (c *DebugDatasourcesItemsCheckAccessCall) doRequest(alt string) (*http.Response, error) {
  8006  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8007  	var body io.Reader = nil
  8008  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.principal)
  8009  	if err != nil {
  8010  		return nil, err
  8011  	}
  8012  	c.urlParams_.Set("alt", alt)
  8013  	c.urlParams_.Set("prettyPrint", "false")
  8014  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/debug/{+name}:checkAccess")
  8015  	urls += "?" + c.urlParams_.Encode()
  8016  	req, err := http.NewRequest("POST", urls, body)
  8017  	if err != nil {
  8018  		return nil, err
  8019  	}
  8020  	req.Header = reqHeaders
  8021  	googleapi.Expand(req.URL, map[string]string{
  8022  		"name": c.name,
  8023  	})
  8024  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8025  }
  8026  
  8027  // Do executes the "cloudsearch.debug.datasources.items.checkAccess" call.
  8028  // Any non-2xx status code is an error. Response headers are in either
  8029  // *CheckAccessResponse.ServerResponse.Header or (if a response was returned at
  8030  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  8031  // check whether the returned error was because http.StatusNotModified was
  8032  // returned.
  8033  func (c *DebugDatasourcesItemsCheckAccessCall) Do(opts ...googleapi.CallOption) (*CheckAccessResponse, error) {
  8034  	gensupport.SetOptions(c.urlParams_, opts...)
  8035  	res, err := c.doRequest("json")
  8036  	if res != nil && res.StatusCode == http.StatusNotModified {
  8037  		if res.Body != nil {
  8038  			res.Body.Close()
  8039  		}
  8040  		return nil, gensupport.WrapError(&googleapi.Error{
  8041  			Code:   res.StatusCode,
  8042  			Header: res.Header,
  8043  		})
  8044  	}
  8045  	if err != nil {
  8046  		return nil, err
  8047  	}
  8048  	defer googleapi.CloseBody(res)
  8049  	if err := googleapi.CheckResponse(res); err != nil {
  8050  		return nil, gensupport.WrapError(err)
  8051  	}
  8052  	ret := &CheckAccessResponse{
  8053  		ServerResponse: googleapi.ServerResponse{
  8054  			Header:         res.Header,
  8055  			HTTPStatusCode: res.StatusCode,
  8056  		},
  8057  	}
  8058  	target := &ret
  8059  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8060  		return nil, err
  8061  	}
  8062  	return ret, nil
  8063  }
  8064  
  8065  type DebugDatasourcesItemsSearchByViewUrlCall struct {
  8066  	s                           *Service
  8067  	name                        string
  8068  	searchitemsbyviewurlrequest *SearchItemsByViewUrlRequest
  8069  	urlParams_                  gensupport.URLParams
  8070  	ctx_                        context.Context
  8071  	header_                     http.Header
  8072  }
  8073  
  8074  // SearchByViewUrl: Fetches the item whose viewUrl exactly matches that of the
  8075  // URL provided in the request. **Note:** This API requires an admin account to
  8076  // execute.
  8077  //
  8078  // - name: Source name, format: datasources/{source_id}.
  8079  func (r *DebugDatasourcesItemsService) SearchByViewUrl(name string, searchitemsbyviewurlrequest *SearchItemsByViewUrlRequest) *DebugDatasourcesItemsSearchByViewUrlCall {
  8080  	c := &DebugDatasourcesItemsSearchByViewUrlCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8081  	c.name = name
  8082  	c.searchitemsbyviewurlrequest = searchitemsbyviewurlrequest
  8083  	return c
  8084  }
  8085  
  8086  // Fields allows partial responses to be retrieved. See
  8087  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8088  // details.
  8089  func (c *DebugDatasourcesItemsSearchByViewUrlCall) Fields(s ...googleapi.Field) *DebugDatasourcesItemsSearchByViewUrlCall {
  8090  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8091  	return c
  8092  }
  8093  
  8094  // Context sets the context to be used in this call's Do method.
  8095  func (c *DebugDatasourcesItemsSearchByViewUrlCall) Context(ctx context.Context) *DebugDatasourcesItemsSearchByViewUrlCall {
  8096  	c.ctx_ = ctx
  8097  	return c
  8098  }
  8099  
  8100  // Header returns a http.Header that can be modified by the caller to add
  8101  // headers to the request.
  8102  func (c *DebugDatasourcesItemsSearchByViewUrlCall) Header() http.Header {
  8103  	if c.header_ == nil {
  8104  		c.header_ = make(http.Header)
  8105  	}
  8106  	return c.header_
  8107  }
  8108  
  8109  func (c *DebugDatasourcesItemsSearchByViewUrlCall) doRequest(alt string) (*http.Response, error) {
  8110  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8111  	var body io.Reader = nil
  8112  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchitemsbyviewurlrequest)
  8113  	if err != nil {
  8114  		return nil, err
  8115  	}
  8116  	c.urlParams_.Set("alt", alt)
  8117  	c.urlParams_.Set("prettyPrint", "false")
  8118  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/debug/{+name}/items:searchByViewUrl")
  8119  	urls += "?" + c.urlParams_.Encode()
  8120  	req, err := http.NewRequest("POST", urls, body)
  8121  	if err != nil {
  8122  		return nil, err
  8123  	}
  8124  	req.Header = reqHeaders
  8125  	googleapi.Expand(req.URL, map[string]string{
  8126  		"name": c.name,
  8127  	})
  8128  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8129  }
  8130  
  8131  // Do executes the "cloudsearch.debug.datasources.items.searchByViewUrl" call.
  8132  // Any non-2xx status code is an error. Response headers are in either
  8133  // *SearchItemsByViewUrlResponse.ServerResponse.Header or (if a response was
  8134  // returned at all) in error.(*googleapi.Error).Header. Use
  8135  // googleapi.IsNotModified to check whether the returned error was because
  8136  // http.StatusNotModified was returned.
  8137  func (c *DebugDatasourcesItemsSearchByViewUrlCall) Do(opts ...googleapi.CallOption) (*SearchItemsByViewUrlResponse, error) {
  8138  	gensupport.SetOptions(c.urlParams_, opts...)
  8139  	res, err := c.doRequest("json")
  8140  	if res != nil && res.StatusCode == http.StatusNotModified {
  8141  		if res.Body != nil {
  8142  			res.Body.Close()
  8143  		}
  8144  		return nil, gensupport.WrapError(&googleapi.Error{
  8145  			Code:   res.StatusCode,
  8146  			Header: res.Header,
  8147  		})
  8148  	}
  8149  	if err != nil {
  8150  		return nil, err
  8151  	}
  8152  	defer googleapi.CloseBody(res)
  8153  	if err := googleapi.CheckResponse(res); err != nil {
  8154  		return nil, gensupport.WrapError(err)
  8155  	}
  8156  	ret := &SearchItemsByViewUrlResponse{
  8157  		ServerResponse: googleapi.ServerResponse{
  8158  			Header:         res.Header,
  8159  			HTTPStatusCode: res.StatusCode,
  8160  		},
  8161  	}
  8162  	target := &ret
  8163  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8164  		return nil, err
  8165  	}
  8166  	return ret, nil
  8167  }
  8168  
  8169  // Pages invokes f for each page of results.
  8170  // A non-nil error returned from f will halt the iteration.
  8171  // The provided context supersedes any context provided to the Context method.
  8172  func (c *DebugDatasourcesItemsSearchByViewUrlCall) Pages(ctx context.Context, f func(*SearchItemsByViewUrlResponse) error) error {
  8173  	c.ctx_ = ctx
  8174  	defer func(pt string) { c.searchitemsbyviewurlrequest.PageToken = pt }(c.searchitemsbyviewurlrequest.PageToken)
  8175  	for {
  8176  		x, err := c.Do()
  8177  		if err != nil {
  8178  			return err
  8179  		}
  8180  		if err := f(x); err != nil {
  8181  			return err
  8182  		}
  8183  		if x.NextPageToken == "" {
  8184  			return nil
  8185  		}
  8186  		c.searchitemsbyviewurlrequest.PageToken = x.NextPageToken
  8187  	}
  8188  }
  8189  
  8190  type DebugDatasourcesItemsUnmappedidsListCall struct {
  8191  	s            *Service
  8192  	parent       string
  8193  	urlParams_   gensupport.URLParams
  8194  	ifNoneMatch_ string
  8195  	ctx_         context.Context
  8196  	header_      http.Header
  8197  }
  8198  
  8199  // List: List all unmapped identities for a specific item. **Note:** This API
  8200  // requires an admin account to execute.
  8201  //
  8202  //   - parent: The name of the item, in the following format:
  8203  //     datasources/{source_id}/items/{ID}.
  8204  func (r *DebugDatasourcesItemsUnmappedidsService) List(parent string) *DebugDatasourcesItemsUnmappedidsListCall {
  8205  	c := &DebugDatasourcesItemsUnmappedidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8206  	c.parent = parent
  8207  	return c
  8208  }
  8209  
  8210  // DebugOptionsEnableDebugging sets the optional parameter
  8211  // "debugOptions.enableDebugging": If you are asked by Google to help with
  8212  // debugging, set this field. Otherwise, ignore this field.
  8213  func (c *DebugDatasourcesItemsUnmappedidsListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *DebugDatasourcesItemsUnmappedidsListCall {
  8214  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
  8215  	return c
  8216  }
  8217  
  8218  // PageSize sets the optional parameter "pageSize": Maximum number of items to
  8219  // fetch in a request. Defaults to 100.
  8220  func (c *DebugDatasourcesItemsUnmappedidsListCall) PageSize(pageSize int64) *DebugDatasourcesItemsUnmappedidsListCall {
  8221  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8222  	return c
  8223  }
  8224  
  8225  // PageToken sets the optional parameter "pageToken": The next_page_token value
  8226  // returned from a previous List request, if any.
  8227  func (c *DebugDatasourcesItemsUnmappedidsListCall) PageToken(pageToken string) *DebugDatasourcesItemsUnmappedidsListCall {
  8228  	c.urlParams_.Set("pageToken", pageToken)
  8229  	return c
  8230  }
  8231  
  8232  // Fields allows partial responses to be retrieved. See
  8233  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8234  // details.
  8235  func (c *DebugDatasourcesItemsUnmappedidsListCall) Fields(s ...googleapi.Field) *DebugDatasourcesItemsUnmappedidsListCall {
  8236  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8237  	return c
  8238  }
  8239  
  8240  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8241  // object's ETag matches the given value. This is useful for getting updates
  8242  // only after the object has changed since the last request.
  8243  func (c *DebugDatasourcesItemsUnmappedidsListCall) IfNoneMatch(entityTag string) *DebugDatasourcesItemsUnmappedidsListCall {
  8244  	c.ifNoneMatch_ = entityTag
  8245  	return c
  8246  }
  8247  
  8248  // Context sets the context to be used in this call's Do method.
  8249  func (c *DebugDatasourcesItemsUnmappedidsListCall) Context(ctx context.Context) *DebugDatasourcesItemsUnmappedidsListCall {
  8250  	c.ctx_ = ctx
  8251  	return c
  8252  }
  8253  
  8254  // Header returns a http.Header that can be modified by the caller to add
  8255  // headers to the request.
  8256  func (c *DebugDatasourcesItemsUnmappedidsListCall) Header() http.Header {
  8257  	if c.header_ == nil {
  8258  		c.header_ = make(http.Header)
  8259  	}
  8260  	return c.header_
  8261  }
  8262  
  8263  func (c *DebugDatasourcesItemsUnmappedidsListCall) doRequest(alt string) (*http.Response, error) {
  8264  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8265  	if c.ifNoneMatch_ != "" {
  8266  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8267  	}
  8268  	var body io.Reader = nil
  8269  	c.urlParams_.Set("alt", alt)
  8270  	c.urlParams_.Set("prettyPrint", "false")
  8271  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/debug/{+parent}/unmappedids")
  8272  	urls += "?" + c.urlParams_.Encode()
  8273  	req, err := http.NewRequest("GET", urls, body)
  8274  	if err != nil {
  8275  		return nil, err
  8276  	}
  8277  	req.Header = reqHeaders
  8278  	googleapi.Expand(req.URL, map[string]string{
  8279  		"parent": c.parent,
  8280  	})
  8281  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8282  }
  8283  
  8284  // Do executes the "cloudsearch.debug.datasources.items.unmappedids.list" call.
  8285  // Any non-2xx status code is an error. Response headers are in either
  8286  // *ListUnmappedIdentitiesResponse.ServerResponse.Header or (if a response was
  8287  // returned at all) in error.(*googleapi.Error).Header. Use
  8288  // googleapi.IsNotModified to check whether the returned error was because
  8289  // http.StatusNotModified was returned.
  8290  func (c *DebugDatasourcesItemsUnmappedidsListCall) Do(opts ...googleapi.CallOption) (*ListUnmappedIdentitiesResponse, error) {
  8291  	gensupport.SetOptions(c.urlParams_, opts...)
  8292  	res, err := c.doRequest("json")
  8293  	if res != nil && res.StatusCode == http.StatusNotModified {
  8294  		if res.Body != nil {
  8295  			res.Body.Close()
  8296  		}
  8297  		return nil, gensupport.WrapError(&googleapi.Error{
  8298  			Code:   res.StatusCode,
  8299  			Header: res.Header,
  8300  		})
  8301  	}
  8302  	if err != nil {
  8303  		return nil, err
  8304  	}
  8305  	defer googleapi.CloseBody(res)
  8306  	if err := googleapi.CheckResponse(res); err != nil {
  8307  		return nil, gensupport.WrapError(err)
  8308  	}
  8309  	ret := &ListUnmappedIdentitiesResponse{
  8310  		ServerResponse: googleapi.ServerResponse{
  8311  			Header:         res.Header,
  8312  			HTTPStatusCode: res.StatusCode,
  8313  		},
  8314  	}
  8315  	target := &ret
  8316  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8317  		return nil, err
  8318  	}
  8319  	return ret, nil
  8320  }
  8321  
  8322  // Pages invokes f for each page of results.
  8323  // A non-nil error returned from f will halt the iteration.
  8324  // The provided context supersedes any context provided to the Context method.
  8325  func (c *DebugDatasourcesItemsUnmappedidsListCall) Pages(ctx context.Context, f func(*ListUnmappedIdentitiesResponse) error) error {
  8326  	c.ctx_ = ctx
  8327  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8328  	for {
  8329  		x, err := c.Do()
  8330  		if err != nil {
  8331  			return err
  8332  		}
  8333  		if err := f(x); err != nil {
  8334  			return err
  8335  		}
  8336  		if x.NextPageToken == "" {
  8337  			return nil
  8338  		}
  8339  		c.PageToken(x.NextPageToken)
  8340  	}
  8341  }
  8342  
  8343  type DebugIdentitysourcesItemsListForunmappedidentityCall struct {
  8344  	s            *Service
  8345  	parent       string
  8346  	urlParams_   gensupport.URLParams
  8347  	ifNoneMatch_ string
  8348  	ctx_         context.Context
  8349  	header_      http.Header
  8350  }
  8351  
  8352  // ListForunmappedidentity: Lists names of items associated with an unmapped
  8353  // identity. **Note:** This API requires an admin account to execute.
  8354  //
  8355  //   - parent: The name of the identity source, in the following format:
  8356  //     identitysources/{source_id}}.
  8357  func (r *DebugIdentitysourcesItemsService) ListForunmappedidentity(parent string) *DebugIdentitysourcesItemsListForunmappedidentityCall {
  8358  	c := &DebugIdentitysourcesItemsListForunmappedidentityCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8359  	c.parent = parent
  8360  	return c
  8361  }
  8362  
  8363  // DebugOptionsEnableDebugging sets the optional parameter
  8364  // "debugOptions.enableDebugging": If you are asked by Google to help with
  8365  // debugging, set this field. Otherwise, ignore this field.
  8366  func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *DebugIdentitysourcesItemsListForunmappedidentityCall {
  8367  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
  8368  	return c
  8369  }
  8370  
  8371  // GroupResourceName sets the optional parameter "groupResourceName":
  8372  func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) GroupResourceName(groupResourceName string) *DebugIdentitysourcesItemsListForunmappedidentityCall {
  8373  	c.urlParams_.Set("groupResourceName", groupResourceName)
  8374  	return c
  8375  }
  8376  
  8377  // PageSize sets the optional parameter "pageSize": Maximum number of items to
  8378  // fetch in a request. Defaults to 100.
  8379  func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) PageSize(pageSize int64) *DebugIdentitysourcesItemsListForunmappedidentityCall {
  8380  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8381  	return c
  8382  }
  8383  
  8384  // PageToken sets the optional parameter "pageToken": The next_page_token value
  8385  // returned from a previous List request, if any.
  8386  func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) PageToken(pageToken string) *DebugIdentitysourcesItemsListForunmappedidentityCall {
  8387  	c.urlParams_.Set("pageToken", pageToken)
  8388  	return c
  8389  }
  8390  
  8391  // UserResourceName sets the optional parameter "userResourceName":
  8392  func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) UserResourceName(userResourceName string) *DebugIdentitysourcesItemsListForunmappedidentityCall {
  8393  	c.urlParams_.Set("userResourceName", userResourceName)
  8394  	return c
  8395  }
  8396  
  8397  // Fields allows partial responses to be retrieved. See
  8398  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8399  // details.
  8400  func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Fields(s ...googleapi.Field) *DebugIdentitysourcesItemsListForunmappedidentityCall {
  8401  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8402  	return c
  8403  }
  8404  
  8405  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8406  // object's ETag matches the given value. This is useful for getting updates
  8407  // only after the object has changed since the last request.
  8408  func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) IfNoneMatch(entityTag string) *DebugIdentitysourcesItemsListForunmappedidentityCall {
  8409  	c.ifNoneMatch_ = entityTag
  8410  	return c
  8411  }
  8412  
  8413  // Context sets the context to be used in this call's Do method.
  8414  func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Context(ctx context.Context) *DebugIdentitysourcesItemsListForunmappedidentityCall {
  8415  	c.ctx_ = ctx
  8416  	return c
  8417  }
  8418  
  8419  // Header returns a http.Header that can be modified by the caller to add
  8420  // headers to the request.
  8421  func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Header() http.Header {
  8422  	if c.header_ == nil {
  8423  		c.header_ = make(http.Header)
  8424  	}
  8425  	return c.header_
  8426  }
  8427  
  8428  func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) doRequest(alt string) (*http.Response, error) {
  8429  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8430  	if c.ifNoneMatch_ != "" {
  8431  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8432  	}
  8433  	var body io.Reader = nil
  8434  	c.urlParams_.Set("alt", alt)
  8435  	c.urlParams_.Set("prettyPrint", "false")
  8436  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/debug/{+parent}/items:forunmappedidentity")
  8437  	urls += "?" + c.urlParams_.Encode()
  8438  	req, err := http.NewRequest("GET", urls, body)
  8439  	if err != nil {
  8440  		return nil, err
  8441  	}
  8442  	req.Header = reqHeaders
  8443  	googleapi.Expand(req.URL, map[string]string{
  8444  		"parent": c.parent,
  8445  	})
  8446  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8447  }
  8448  
  8449  // Do executes the "cloudsearch.debug.identitysources.items.listForunmappedidentity" call.
  8450  // Any non-2xx status code is an error. Response headers are in either
  8451  // *ListItemNamesForUnmappedIdentityResponse.ServerResponse.Header or (if a
  8452  // response was returned at all) in error.(*googleapi.Error).Header. Use
  8453  // googleapi.IsNotModified to check whether the returned error was because
  8454  // http.StatusNotModified was returned.
  8455  func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Do(opts ...googleapi.CallOption) (*ListItemNamesForUnmappedIdentityResponse, error) {
  8456  	gensupport.SetOptions(c.urlParams_, opts...)
  8457  	res, err := c.doRequest("json")
  8458  	if res != nil && res.StatusCode == http.StatusNotModified {
  8459  		if res.Body != nil {
  8460  			res.Body.Close()
  8461  		}
  8462  		return nil, gensupport.WrapError(&googleapi.Error{
  8463  			Code:   res.StatusCode,
  8464  			Header: res.Header,
  8465  		})
  8466  	}
  8467  	if err != nil {
  8468  		return nil, err
  8469  	}
  8470  	defer googleapi.CloseBody(res)
  8471  	if err := googleapi.CheckResponse(res); err != nil {
  8472  		return nil, gensupport.WrapError(err)
  8473  	}
  8474  	ret := &ListItemNamesForUnmappedIdentityResponse{
  8475  		ServerResponse: googleapi.ServerResponse{
  8476  			Header:         res.Header,
  8477  			HTTPStatusCode: res.StatusCode,
  8478  		},
  8479  	}
  8480  	target := &ret
  8481  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8482  		return nil, err
  8483  	}
  8484  	return ret, nil
  8485  }
  8486  
  8487  // Pages invokes f for each page of results.
  8488  // A non-nil error returned from f will halt the iteration.
  8489  // The provided context supersedes any context provided to the Context method.
  8490  func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Pages(ctx context.Context, f func(*ListItemNamesForUnmappedIdentityResponse) error) error {
  8491  	c.ctx_ = ctx
  8492  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8493  	for {
  8494  		x, err := c.Do()
  8495  		if err != nil {
  8496  			return err
  8497  		}
  8498  		if err := f(x); err != nil {
  8499  			return err
  8500  		}
  8501  		if x.NextPageToken == "" {
  8502  			return nil
  8503  		}
  8504  		c.PageToken(x.NextPageToken)
  8505  	}
  8506  }
  8507  
  8508  type DebugIdentitysourcesUnmappedidsListCall struct {
  8509  	s            *Service
  8510  	parent       string
  8511  	urlParams_   gensupport.URLParams
  8512  	ifNoneMatch_ string
  8513  	ctx_         context.Context
  8514  	header_      http.Header
  8515  }
  8516  
  8517  // List: Lists unmapped user identities for an identity source. **Note:** This
  8518  // API requires an admin account to execute.
  8519  //
  8520  //   - parent: The name of the identity source, in the following format:
  8521  //     identitysources/{source_id}.
  8522  func (r *DebugIdentitysourcesUnmappedidsService) List(parent string) *DebugIdentitysourcesUnmappedidsListCall {
  8523  	c := &DebugIdentitysourcesUnmappedidsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8524  	c.parent = parent
  8525  	return c
  8526  }
  8527  
  8528  // DebugOptionsEnableDebugging sets the optional parameter
  8529  // "debugOptions.enableDebugging": If you are asked by Google to help with
  8530  // debugging, set this field. Otherwise, ignore this field.
  8531  func (c *DebugIdentitysourcesUnmappedidsListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *DebugIdentitysourcesUnmappedidsListCall {
  8532  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
  8533  	return c
  8534  }
  8535  
  8536  // PageSize sets the optional parameter "pageSize": Maximum number of items to
  8537  // fetch in a request. Defaults to 100.
  8538  func (c *DebugIdentitysourcesUnmappedidsListCall) PageSize(pageSize int64) *DebugIdentitysourcesUnmappedidsListCall {
  8539  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  8540  	return c
  8541  }
  8542  
  8543  // PageToken sets the optional parameter "pageToken": The next_page_token value
  8544  // returned from a previous List request, if any.
  8545  func (c *DebugIdentitysourcesUnmappedidsListCall) PageToken(pageToken string) *DebugIdentitysourcesUnmappedidsListCall {
  8546  	c.urlParams_.Set("pageToken", pageToken)
  8547  	return c
  8548  }
  8549  
  8550  // ResolutionStatusCode sets the optional parameter "resolutionStatusCode":
  8551  // Limit users selection to this status.
  8552  //
  8553  // Possible values:
  8554  //
  8555  //	"CODE_UNSPECIFIED" - Input-only value. Used to list all unmapped
  8556  //
  8557  // identities regardless of status.
  8558  //
  8559  //	"NOT_FOUND" - The unmapped identity was not found in IDaaS, and needs to
  8560  //
  8561  // be provided by the user.
  8562  //
  8563  //	"IDENTITY_SOURCE_NOT_FOUND" - The identity source associated with the
  8564  //
  8565  // identity was either not found or deleted.
  8566  //
  8567  //	"IDENTITY_SOURCE_MISCONFIGURED" - IDaaS does not understand the identity
  8568  //
  8569  // source, probably because the schema was modified in a non compatible way.
  8570  //
  8571  //	"TOO_MANY_MAPPINGS_FOUND" - The number of users associated with the
  8572  //
  8573  // external identity is too large.
  8574  //
  8575  //	"INTERNAL_ERROR" - Internal error.
  8576  func (c *DebugIdentitysourcesUnmappedidsListCall) ResolutionStatusCode(resolutionStatusCode string) *DebugIdentitysourcesUnmappedidsListCall {
  8577  	c.urlParams_.Set("resolutionStatusCode", resolutionStatusCode)
  8578  	return c
  8579  }
  8580  
  8581  // Fields allows partial responses to be retrieved. See
  8582  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8583  // details.
  8584  func (c *DebugIdentitysourcesUnmappedidsListCall) Fields(s ...googleapi.Field) *DebugIdentitysourcesUnmappedidsListCall {
  8585  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8586  	return c
  8587  }
  8588  
  8589  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8590  // object's ETag matches the given value. This is useful for getting updates
  8591  // only after the object has changed since the last request.
  8592  func (c *DebugIdentitysourcesUnmappedidsListCall) IfNoneMatch(entityTag string) *DebugIdentitysourcesUnmappedidsListCall {
  8593  	c.ifNoneMatch_ = entityTag
  8594  	return c
  8595  }
  8596  
  8597  // Context sets the context to be used in this call's Do method.
  8598  func (c *DebugIdentitysourcesUnmappedidsListCall) Context(ctx context.Context) *DebugIdentitysourcesUnmappedidsListCall {
  8599  	c.ctx_ = ctx
  8600  	return c
  8601  }
  8602  
  8603  // Header returns a http.Header that can be modified by the caller to add
  8604  // headers to the request.
  8605  func (c *DebugIdentitysourcesUnmappedidsListCall) Header() http.Header {
  8606  	if c.header_ == nil {
  8607  		c.header_ = make(http.Header)
  8608  	}
  8609  	return c.header_
  8610  }
  8611  
  8612  func (c *DebugIdentitysourcesUnmappedidsListCall) doRequest(alt string) (*http.Response, error) {
  8613  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8614  	if c.ifNoneMatch_ != "" {
  8615  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8616  	}
  8617  	var body io.Reader = nil
  8618  	c.urlParams_.Set("alt", alt)
  8619  	c.urlParams_.Set("prettyPrint", "false")
  8620  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/debug/{+parent}/unmappedids")
  8621  	urls += "?" + c.urlParams_.Encode()
  8622  	req, err := http.NewRequest("GET", urls, body)
  8623  	if err != nil {
  8624  		return nil, err
  8625  	}
  8626  	req.Header = reqHeaders
  8627  	googleapi.Expand(req.URL, map[string]string{
  8628  		"parent": c.parent,
  8629  	})
  8630  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8631  }
  8632  
  8633  // Do executes the "cloudsearch.debug.identitysources.unmappedids.list" call.
  8634  // Any non-2xx status code is an error. Response headers are in either
  8635  // *ListUnmappedIdentitiesResponse.ServerResponse.Header or (if a response was
  8636  // returned at all) in error.(*googleapi.Error).Header. Use
  8637  // googleapi.IsNotModified to check whether the returned error was because
  8638  // http.StatusNotModified was returned.
  8639  func (c *DebugIdentitysourcesUnmappedidsListCall) Do(opts ...googleapi.CallOption) (*ListUnmappedIdentitiesResponse, error) {
  8640  	gensupport.SetOptions(c.urlParams_, opts...)
  8641  	res, err := c.doRequest("json")
  8642  	if res != nil && res.StatusCode == http.StatusNotModified {
  8643  		if res.Body != nil {
  8644  			res.Body.Close()
  8645  		}
  8646  		return nil, gensupport.WrapError(&googleapi.Error{
  8647  			Code:   res.StatusCode,
  8648  			Header: res.Header,
  8649  		})
  8650  	}
  8651  	if err != nil {
  8652  		return nil, err
  8653  	}
  8654  	defer googleapi.CloseBody(res)
  8655  	if err := googleapi.CheckResponse(res); err != nil {
  8656  		return nil, gensupport.WrapError(err)
  8657  	}
  8658  	ret := &ListUnmappedIdentitiesResponse{
  8659  		ServerResponse: googleapi.ServerResponse{
  8660  			Header:         res.Header,
  8661  			HTTPStatusCode: res.StatusCode,
  8662  		},
  8663  	}
  8664  	target := &ret
  8665  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8666  		return nil, err
  8667  	}
  8668  	return ret, nil
  8669  }
  8670  
  8671  // Pages invokes f for each page of results.
  8672  // A non-nil error returned from f will halt the iteration.
  8673  // The provided context supersedes any context provided to the Context method.
  8674  func (c *DebugIdentitysourcesUnmappedidsListCall) Pages(ctx context.Context, f func(*ListUnmappedIdentitiesResponse) error) error {
  8675  	c.ctx_ = ctx
  8676  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  8677  	for {
  8678  		x, err := c.Do()
  8679  		if err != nil {
  8680  			return err
  8681  		}
  8682  		if err := f(x); err != nil {
  8683  			return err
  8684  		}
  8685  		if x.NextPageToken == "" {
  8686  			return nil
  8687  		}
  8688  		c.PageToken(x.NextPageToken)
  8689  	}
  8690  }
  8691  
  8692  type IndexingDatasourcesDeleteSchemaCall struct {
  8693  	s          *Service
  8694  	name       string
  8695  	urlParams_ gensupport.URLParams
  8696  	ctx_       context.Context
  8697  	header_    http.Header
  8698  }
  8699  
  8700  // DeleteSchema: Deletes the schema of a data source. **Note:** This API
  8701  // requires an admin or service account to execute.
  8702  //
  8703  //   - name: The name of the data source to delete Schema. Format:
  8704  //     datasources/{source_id}.
  8705  func (r *IndexingDatasourcesService) DeleteSchema(name string) *IndexingDatasourcesDeleteSchemaCall {
  8706  	c := &IndexingDatasourcesDeleteSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8707  	c.name = name
  8708  	return c
  8709  }
  8710  
  8711  // DebugOptionsEnableDebugging sets the optional parameter
  8712  // "debugOptions.enableDebugging": If you are asked by Google to help with
  8713  // debugging, set this field. Otherwise, ignore this field.
  8714  func (c *IndexingDatasourcesDeleteSchemaCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesDeleteSchemaCall {
  8715  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
  8716  	return c
  8717  }
  8718  
  8719  // Fields allows partial responses to be retrieved. See
  8720  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8721  // details.
  8722  func (c *IndexingDatasourcesDeleteSchemaCall) Fields(s ...googleapi.Field) *IndexingDatasourcesDeleteSchemaCall {
  8723  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8724  	return c
  8725  }
  8726  
  8727  // Context sets the context to be used in this call's Do method.
  8728  func (c *IndexingDatasourcesDeleteSchemaCall) Context(ctx context.Context) *IndexingDatasourcesDeleteSchemaCall {
  8729  	c.ctx_ = ctx
  8730  	return c
  8731  }
  8732  
  8733  // Header returns a http.Header that can be modified by the caller to add
  8734  // headers to the request.
  8735  func (c *IndexingDatasourcesDeleteSchemaCall) Header() http.Header {
  8736  	if c.header_ == nil {
  8737  		c.header_ = make(http.Header)
  8738  	}
  8739  	return c.header_
  8740  }
  8741  
  8742  func (c *IndexingDatasourcesDeleteSchemaCall) doRequest(alt string) (*http.Response, error) {
  8743  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8744  	var body io.Reader = nil
  8745  	c.urlParams_.Set("alt", alt)
  8746  	c.urlParams_.Set("prettyPrint", "false")
  8747  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/indexing/{+name}/schema")
  8748  	urls += "?" + c.urlParams_.Encode()
  8749  	req, err := http.NewRequest("DELETE", urls, body)
  8750  	if err != nil {
  8751  		return nil, err
  8752  	}
  8753  	req.Header = reqHeaders
  8754  	googleapi.Expand(req.URL, map[string]string{
  8755  		"name": c.name,
  8756  	})
  8757  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8758  }
  8759  
  8760  // Do executes the "cloudsearch.indexing.datasources.deleteSchema" call.
  8761  // Any non-2xx status code is an error. Response headers are in either
  8762  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8763  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8764  // whether the returned error was because http.StatusNotModified was returned.
  8765  func (c *IndexingDatasourcesDeleteSchemaCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8766  	gensupport.SetOptions(c.urlParams_, opts...)
  8767  	res, err := c.doRequest("json")
  8768  	if res != nil && res.StatusCode == http.StatusNotModified {
  8769  		if res.Body != nil {
  8770  			res.Body.Close()
  8771  		}
  8772  		return nil, gensupport.WrapError(&googleapi.Error{
  8773  			Code:   res.StatusCode,
  8774  			Header: res.Header,
  8775  		})
  8776  	}
  8777  	if err != nil {
  8778  		return nil, err
  8779  	}
  8780  	defer googleapi.CloseBody(res)
  8781  	if err := googleapi.CheckResponse(res); err != nil {
  8782  		return nil, gensupport.WrapError(err)
  8783  	}
  8784  	ret := &Operation{
  8785  		ServerResponse: googleapi.ServerResponse{
  8786  			Header:         res.Header,
  8787  			HTTPStatusCode: res.StatusCode,
  8788  		},
  8789  	}
  8790  	target := &ret
  8791  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8792  		return nil, err
  8793  	}
  8794  	return ret, nil
  8795  }
  8796  
  8797  type IndexingDatasourcesGetSchemaCall struct {
  8798  	s            *Service
  8799  	name         string
  8800  	urlParams_   gensupport.URLParams
  8801  	ifNoneMatch_ string
  8802  	ctx_         context.Context
  8803  	header_      http.Header
  8804  }
  8805  
  8806  // GetSchema: Gets the schema of a data source. **Note:** This API requires an
  8807  // admin or service account to execute.
  8808  //
  8809  //   - name: The name of the data source to get Schema. Format:
  8810  //     datasources/{source_id}.
  8811  func (r *IndexingDatasourcesService) GetSchema(name string) *IndexingDatasourcesGetSchemaCall {
  8812  	c := &IndexingDatasourcesGetSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8813  	c.name = name
  8814  	return c
  8815  }
  8816  
  8817  // DebugOptionsEnableDebugging sets the optional parameter
  8818  // "debugOptions.enableDebugging": If you are asked by Google to help with
  8819  // debugging, set this field. Otherwise, ignore this field.
  8820  func (c *IndexingDatasourcesGetSchemaCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesGetSchemaCall {
  8821  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
  8822  	return c
  8823  }
  8824  
  8825  // Fields allows partial responses to be retrieved. See
  8826  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8827  // details.
  8828  func (c *IndexingDatasourcesGetSchemaCall) Fields(s ...googleapi.Field) *IndexingDatasourcesGetSchemaCall {
  8829  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8830  	return c
  8831  }
  8832  
  8833  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  8834  // object's ETag matches the given value. This is useful for getting updates
  8835  // only after the object has changed since the last request.
  8836  func (c *IndexingDatasourcesGetSchemaCall) IfNoneMatch(entityTag string) *IndexingDatasourcesGetSchemaCall {
  8837  	c.ifNoneMatch_ = entityTag
  8838  	return c
  8839  }
  8840  
  8841  // Context sets the context to be used in this call's Do method.
  8842  func (c *IndexingDatasourcesGetSchemaCall) Context(ctx context.Context) *IndexingDatasourcesGetSchemaCall {
  8843  	c.ctx_ = ctx
  8844  	return c
  8845  }
  8846  
  8847  // Header returns a http.Header that can be modified by the caller to add
  8848  // headers to the request.
  8849  func (c *IndexingDatasourcesGetSchemaCall) Header() http.Header {
  8850  	if c.header_ == nil {
  8851  		c.header_ = make(http.Header)
  8852  	}
  8853  	return c.header_
  8854  }
  8855  
  8856  func (c *IndexingDatasourcesGetSchemaCall) doRequest(alt string) (*http.Response, error) {
  8857  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  8858  	if c.ifNoneMatch_ != "" {
  8859  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  8860  	}
  8861  	var body io.Reader = nil
  8862  	c.urlParams_.Set("alt", alt)
  8863  	c.urlParams_.Set("prettyPrint", "false")
  8864  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/indexing/{+name}/schema")
  8865  	urls += "?" + c.urlParams_.Encode()
  8866  	req, err := http.NewRequest("GET", urls, body)
  8867  	if err != nil {
  8868  		return nil, err
  8869  	}
  8870  	req.Header = reqHeaders
  8871  	googleapi.Expand(req.URL, map[string]string{
  8872  		"name": c.name,
  8873  	})
  8874  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8875  }
  8876  
  8877  // Do executes the "cloudsearch.indexing.datasources.getSchema" call.
  8878  // Any non-2xx status code is an error. Response headers are in either
  8879  // *Schema.ServerResponse.Header or (if a response was returned at all) in
  8880  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8881  // whether the returned error was because http.StatusNotModified was returned.
  8882  func (c *IndexingDatasourcesGetSchemaCall) Do(opts ...googleapi.CallOption) (*Schema, error) {
  8883  	gensupport.SetOptions(c.urlParams_, opts...)
  8884  	res, err := c.doRequest("json")
  8885  	if res != nil && res.StatusCode == http.StatusNotModified {
  8886  		if res.Body != nil {
  8887  			res.Body.Close()
  8888  		}
  8889  		return nil, gensupport.WrapError(&googleapi.Error{
  8890  			Code:   res.StatusCode,
  8891  			Header: res.Header,
  8892  		})
  8893  	}
  8894  	if err != nil {
  8895  		return nil, err
  8896  	}
  8897  	defer googleapi.CloseBody(res)
  8898  	if err := googleapi.CheckResponse(res); err != nil {
  8899  		return nil, gensupport.WrapError(err)
  8900  	}
  8901  	ret := &Schema{
  8902  		ServerResponse: googleapi.ServerResponse{
  8903  			Header:         res.Header,
  8904  			HTTPStatusCode: res.StatusCode,
  8905  		},
  8906  	}
  8907  	target := &ret
  8908  	if err := gensupport.DecodeResponse(target, res); err != nil {
  8909  		return nil, err
  8910  	}
  8911  	return ret, nil
  8912  }
  8913  
  8914  type IndexingDatasourcesUpdateSchemaCall struct {
  8915  	s                   *Service
  8916  	name                string
  8917  	updateschemarequest *UpdateSchemaRequest
  8918  	urlParams_          gensupport.URLParams
  8919  	ctx_                context.Context
  8920  	header_             http.Header
  8921  }
  8922  
  8923  // UpdateSchema: Updates the schema of a data source. This method does not
  8924  // perform incremental updates to the schema. Instead, this method updates the
  8925  // schema by overwriting the entire schema. **Note:** This API requires an
  8926  // admin or service account to execute.
  8927  //
  8928  //   - name: The name of the data source to update Schema. Format:
  8929  //     datasources/{source_id}.
  8930  func (r *IndexingDatasourcesService) UpdateSchema(name string, updateschemarequest *UpdateSchemaRequest) *IndexingDatasourcesUpdateSchemaCall {
  8931  	c := &IndexingDatasourcesUpdateSchemaCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  8932  	c.name = name
  8933  	c.updateschemarequest = updateschemarequest
  8934  	return c
  8935  }
  8936  
  8937  // Fields allows partial responses to be retrieved. See
  8938  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  8939  // details.
  8940  func (c *IndexingDatasourcesUpdateSchemaCall) Fields(s ...googleapi.Field) *IndexingDatasourcesUpdateSchemaCall {
  8941  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  8942  	return c
  8943  }
  8944  
  8945  // Context sets the context to be used in this call's Do method.
  8946  func (c *IndexingDatasourcesUpdateSchemaCall) Context(ctx context.Context) *IndexingDatasourcesUpdateSchemaCall {
  8947  	c.ctx_ = ctx
  8948  	return c
  8949  }
  8950  
  8951  // Header returns a http.Header that can be modified by the caller to add
  8952  // headers to the request.
  8953  func (c *IndexingDatasourcesUpdateSchemaCall) Header() http.Header {
  8954  	if c.header_ == nil {
  8955  		c.header_ = make(http.Header)
  8956  	}
  8957  	return c.header_
  8958  }
  8959  
  8960  func (c *IndexingDatasourcesUpdateSchemaCall) doRequest(alt string) (*http.Response, error) {
  8961  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  8962  	var body io.Reader = nil
  8963  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.updateschemarequest)
  8964  	if err != nil {
  8965  		return nil, err
  8966  	}
  8967  	c.urlParams_.Set("alt", alt)
  8968  	c.urlParams_.Set("prettyPrint", "false")
  8969  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/indexing/{+name}/schema")
  8970  	urls += "?" + c.urlParams_.Encode()
  8971  	req, err := http.NewRequest("PUT", urls, body)
  8972  	if err != nil {
  8973  		return nil, err
  8974  	}
  8975  	req.Header = reqHeaders
  8976  	googleapi.Expand(req.URL, map[string]string{
  8977  		"name": c.name,
  8978  	})
  8979  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  8980  }
  8981  
  8982  // Do executes the "cloudsearch.indexing.datasources.updateSchema" call.
  8983  // Any non-2xx status code is an error. Response headers are in either
  8984  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  8985  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  8986  // whether the returned error was because http.StatusNotModified was returned.
  8987  func (c *IndexingDatasourcesUpdateSchemaCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  8988  	gensupport.SetOptions(c.urlParams_, opts...)
  8989  	res, err := c.doRequest("json")
  8990  	if res != nil && res.StatusCode == http.StatusNotModified {
  8991  		if res.Body != nil {
  8992  			res.Body.Close()
  8993  		}
  8994  		return nil, gensupport.WrapError(&googleapi.Error{
  8995  			Code:   res.StatusCode,
  8996  			Header: res.Header,
  8997  		})
  8998  	}
  8999  	if err != nil {
  9000  		return nil, err
  9001  	}
  9002  	defer googleapi.CloseBody(res)
  9003  	if err := googleapi.CheckResponse(res); err != nil {
  9004  		return nil, gensupport.WrapError(err)
  9005  	}
  9006  	ret := &Operation{
  9007  		ServerResponse: googleapi.ServerResponse{
  9008  			Header:         res.Header,
  9009  			HTTPStatusCode: res.StatusCode,
  9010  		},
  9011  	}
  9012  	target := &ret
  9013  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9014  		return nil, err
  9015  	}
  9016  	return ret, nil
  9017  }
  9018  
  9019  type IndexingDatasourcesItemsDeleteCall struct {
  9020  	s          *Service
  9021  	name       string
  9022  	urlParams_ gensupport.URLParams
  9023  	ctx_       context.Context
  9024  	header_    http.Header
  9025  }
  9026  
  9027  // Delete: Deletes Item resource for the specified resource name. This API
  9028  // requires an admin or service account to execute. The service account used is
  9029  // the one whitelisted in the corresponding data source.
  9030  //
  9031  //   - name: The name of the item to delete. Format:
  9032  //     datasources/{source_id}/items/{item_id}.
  9033  func (r *IndexingDatasourcesItemsService) Delete(name string) *IndexingDatasourcesItemsDeleteCall {
  9034  	c := &IndexingDatasourcesItemsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9035  	c.name = name
  9036  	return c
  9037  }
  9038  
  9039  // ConnectorName sets the optional parameter "connectorName": The name of
  9040  // connector making this call. Format: datasources/{source_id}/connectors/{ID}
  9041  func (c *IndexingDatasourcesItemsDeleteCall) ConnectorName(connectorName string) *IndexingDatasourcesItemsDeleteCall {
  9042  	c.urlParams_.Set("connectorName", connectorName)
  9043  	return c
  9044  }
  9045  
  9046  // DebugOptionsEnableDebugging sets the optional parameter
  9047  // "debugOptions.enableDebugging": If you are asked by Google to help with
  9048  // debugging, set this field. Otherwise, ignore this field.
  9049  func (c *IndexingDatasourcesItemsDeleteCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesItemsDeleteCall {
  9050  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
  9051  	return c
  9052  }
  9053  
  9054  // Mode sets the optional parameter "mode": Required. The RequestMode for this
  9055  // request.
  9056  //
  9057  // Possible values:
  9058  //
  9059  //	"UNSPECIFIED" - The priority is not specified in the update request.
  9060  //
  9061  // Leaving priority unspecified results in an update failure.
  9062  //
  9063  //	"SYNCHRONOUS" - For real-time updates.
  9064  //	"ASYNCHRONOUS" - For changes that are executed after the response is sent
  9065  //
  9066  // back to the caller.
  9067  func (c *IndexingDatasourcesItemsDeleteCall) Mode(mode string) *IndexingDatasourcesItemsDeleteCall {
  9068  	c.urlParams_.Set("mode", mode)
  9069  	return c
  9070  }
  9071  
  9072  // Version sets the optional parameter "version": Required. The incremented
  9073  // version of the item to delete from the index. The indexing system stores the
  9074  // version from the datasource as a byte string and compares the Item version
  9075  // in the index to the version of the queued Item using lexical ordering. Cloud
  9076  // Search Indexing won't delete any queued item with a version value that is
  9077  // less than or equal to the version of the currently indexed item. The maximum
  9078  // length for this field is 1024 bytes. For information on how item version
  9079  // affects the deletion process, refer to Handle revisions after manual deletes
  9080  // (https://developers.google.com/cloud-search/docs/guides/operations).
  9081  func (c *IndexingDatasourcesItemsDeleteCall) Version(version string) *IndexingDatasourcesItemsDeleteCall {
  9082  	c.urlParams_.Set("version", version)
  9083  	return c
  9084  }
  9085  
  9086  // Fields allows partial responses to be retrieved. See
  9087  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9088  // details.
  9089  func (c *IndexingDatasourcesItemsDeleteCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsDeleteCall {
  9090  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9091  	return c
  9092  }
  9093  
  9094  // Context sets the context to be used in this call's Do method.
  9095  func (c *IndexingDatasourcesItemsDeleteCall) Context(ctx context.Context) *IndexingDatasourcesItemsDeleteCall {
  9096  	c.ctx_ = ctx
  9097  	return c
  9098  }
  9099  
  9100  // Header returns a http.Header that can be modified by the caller to add
  9101  // headers to the request.
  9102  func (c *IndexingDatasourcesItemsDeleteCall) Header() http.Header {
  9103  	if c.header_ == nil {
  9104  		c.header_ = make(http.Header)
  9105  	}
  9106  	return c.header_
  9107  }
  9108  
  9109  func (c *IndexingDatasourcesItemsDeleteCall) doRequest(alt string) (*http.Response, error) {
  9110  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9111  	var body io.Reader = nil
  9112  	c.urlParams_.Set("alt", alt)
  9113  	c.urlParams_.Set("prettyPrint", "false")
  9114  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/indexing/{+name}")
  9115  	urls += "?" + c.urlParams_.Encode()
  9116  	req, err := http.NewRequest("DELETE", urls, body)
  9117  	if err != nil {
  9118  		return nil, err
  9119  	}
  9120  	req.Header = reqHeaders
  9121  	googleapi.Expand(req.URL, map[string]string{
  9122  		"name": c.name,
  9123  	})
  9124  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9125  }
  9126  
  9127  // Do executes the "cloudsearch.indexing.datasources.items.delete" call.
  9128  // Any non-2xx status code is an error. Response headers are in either
  9129  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9130  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9131  // whether the returned error was because http.StatusNotModified was returned.
  9132  func (c *IndexingDatasourcesItemsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9133  	gensupport.SetOptions(c.urlParams_, opts...)
  9134  	res, err := c.doRequest("json")
  9135  	if res != nil && res.StatusCode == http.StatusNotModified {
  9136  		if res.Body != nil {
  9137  			res.Body.Close()
  9138  		}
  9139  		return nil, gensupport.WrapError(&googleapi.Error{
  9140  			Code:   res.StatusCode,
  9141  			Header: res.Header,
  9142  		})
  9143  	}
  9144  	if err != nil {
  9145  		return nil, err
  9146  	}
  9147  	defer googleapi.CloseBody(res)
  9148  	if err := googleapi.CheckResponse(res); err != nil {
  9149  		return nil, gensupport.WrapError(err)
  9150  	}
  9151  	ret := &Operation{
  9152  		ServerResponse: googleapi.ServerResponse{
  9153  			Header:         res.Header,
  9154  			HTTPStatusCode: res.StatusCode,
  9155  		},
  9156  	}
  9157  	target := &ret
  9158  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9159  		return nil, err
  9160  	}
  9161  	return ret, nil
  9162  }
  9163  
  9164  type IndexingDatasourcesItemsDeleteQueueItemsCall struct {
  9165  	s                       *Service
  9166  	name                    string
  9167  	deletequeueitemsrequest *DeleteQueueItemsRequest
  9168  	urlParams_              gensupport.URLParams
  9169  	ctx_                    context.Context
  9170  	header_                 http.Header
  9171  }
  9172  
  9173  // DeleteQueueItems: Deletes all items in a queue. This method is useful for
  9174  // deleting stale items. This API requires an admin or service account to
  9175  // execute. The service account used is the one whitelisted in the
  9176  // corresponding data source.
  9177  //
  9178  //   - name: The name of the Data Source to delete items in a queue. Format:
  9179  //     datasources/{source_id}.
  9180  func (r *IndexingDatasourcesItemsService) DeleteQueueItems(name string, deletequeueitemsrequest *DeleteQueueItemsRequest) *IndexingDatasourcesItemsDeleteQueueItemsCall {
  9181  	c := &IndexingDatasourcesItemsDeleteQueueItemsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9182  	c.name = name
  9183  	c.deletequeueitemsrequest = deletequeueitemsrequest
  9184  	return c
  9185  }
  9186  
  9187  // Fields allows partial responses to be retrieved. See
  9188  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9189  // details.
  9190  func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsDeleteQueueItemsCall {
  9191  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9192  	return c
  9193  }
  9194  
  9195  // Context sets the context to be used in this call's Do method.
  9196  func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) Context(ctx context.Context) *IndexingDatasourcesItemsDeleteQueueItemsCall {
  9197  	c.ctx_ = ctx
  9198  	return c
  9199  }
  9200  
  9201  // Header returns a http.Header that can be modified by the caller to add
  9202  // headers to the request.
  9203  func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) Header() http.Header {
  9204  	if c.header_ == nil {
  9205  		c.header_ = make(http.Header)
  9206  	}
  9207  	return c.header_
  9208  }
  9209  
  9210  func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) doRequest(alt string) (*http.Response, error) {
  9211  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9212  	var body io.Reader = nil
  9213  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.deletequeueitemsrequest)
  9214  	if err != nil {
  9215  		return nil, err
  9216  	}
  9217  	c.urlParams_.Set("alt", alt)
  9218  	c.urlParams_.Set("prettyPrint", "false")
  9219  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/indexing/{+name}/items:deleteQueueItems")
  9220  	urls += "?" + c.urlParams_.Encode()
  9221  	req, err := http.NewRequest("POST", urls, body)
  9222  	if err != nil {
  9223  		return nil, err
  9224  	}
  9225  	req.Header = reqHeaders
  9226  	googleapi.Expand(req.URL, map[string]string{
  9227  		"name": c.name,
  9228  	})
  9229  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9230  }
  9231  
  9232  // Do executes the "cloudsearch.indexing.datasources.items.deleteQueueItems" call.
  9233  // Any non-2xx status code is an error. Response headers are in either
  9234  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9235  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9236  // whether the returned error was because http.StatusNotModified was returned.
  9237  func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9238  	gensupport.SetOptions(c.urlParams_, opts...)
  9239  	res, err := c.doRequest("json")
  9240  	if res != nil && res.StatusCode == http.StatusNotModified {
  9241  		if res.Body != nil {
  9242  			res.Body.Close()
  9243  		}
  9244  		return nil, gensupport.WrapError(&googleapi.Error{
  9245  			Code:   res.StatusCode,
  9246  			Header: res.Header,
  9247  		})
  9248  	}
  9249  	if err != nil {
  9250  		return nil, err
  9251  	}
  9252  	defer googleapi.CloseBody(res)
  9253  	if err := googleapi.CheckResponse(res); err != nil {
  9254  		return nil, gensupport.WrapError(err)
  9255  	}
  9256  	ret := &Operation{
  9257  		ServerResponse: googleapi.ServerResponse{
  9258  			Header:         res.Header,
  9259  			HTTPStatusCode: res.StatusCode,
  9260  		},
  9261  	}
  9262  	target := &ret
  9263  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9264  		return nil, err
  9265  	}
  9266  	return ret, nil
  9267  }
  9268  
  9269  type IndexingDatasourcesItemsGetCall struct {
  9270  	s            *Service
  9271  	name         string
  9272  	urlParams_   gensupport.URLParams
  9273  	ifNoneMatch_ string
  9274  	ctx_         context.Context
  9275  	header_      http.Header
  9276  }
  9277  
  9278  // Get: Gets Item resource by item name. This API requires an admin or service
  9279  // account to execute. The service account used is the one whitelisted in the
  9280  // corresponding data source.
  9281  //
  9282  //   - name: The name of the item to get info. Format:
  9283  //     datasources/{source_id}/items/{item_id}.
  9284  func (r *IndexingDatasourcesItemsService) Get(name string) *IndexingDatasourcesItemsGetCall {
  9285  	c := &IndexingDatasourcesItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9286  	c.name = name
  9287  	return c
  9288  }
  9289  
  9290  // ConnectorName sets the optional parameter "connectorName": The name of
  9291  // connector making this call. Format: datasources/{source_id}/connectors/{ID}
  9292  func (c *IndexingDatasourcesItemsGetCall) ConnectorName(connectorName string) *IndexingDatasourcesItemsGetCall {
  9293  	c.urlParams_.Set("connectorName", connectorName)
  9294  	return c
  9295  }
  9296  
  9297  // DebugOptionsEnableDebugging sets the optional parameter
  9298  // "debugOptions.enableDebugging": If you are asked by Google to help with
  9299  // debugging, set this field. Otherwise, ignore this field.
  9300  func (c *IndexingDatasourcesItemsGetCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesItemsGetCall {
  9301  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
  9302  	return c
  9303  }
  9304  
  9305  // Fields allows partial responses to be retrieved. See
  9306  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9307  // details.
  9308  func (c *IndexingDatasourcesItemsGetCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsGetCall {
  9309  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9310  	return c
  9311  }
  9312  
  9313  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9314  // object's ETag matches the given value. This is useful for getting updates
  9315  // only after the object has changed since the last request.
  9316  func (c *IndexingDatasourcesItemsGetCall) IfNoneMatch(entityTag string) *IndexingDatasourcesItemsGetCall {
  9317  	c.ifNoneMatch_ = entityTag
  9318  	return c
  9319  }
  9320  
  9321  // Context sets the context to be used in this call's Do method.
  9322  func (c *IndexingDatasourcesItemsGetCall) Context(ctx context.Context) *IndexingDatasourcesItemsGetCall {
  9323  	c.ctx_ = ctx
  9324  	return c
  9325  }
  9326  
  9327  // Header returns a http.Header that can be modified by the caller to add
  9328  // headers to the request.
  9329  func (c *IndexingDatasourcesItemsGetCall) Header() http.Header {
  9330  	if c.header_ == nil {
  9331  		c.header_ = make(http.Header)
  9332  	}
  9333  	return c.header_
  9334  }
  9335  
  9336  func (c *IndexingDatasourcesItemsGetCall) doRequest(alt string) (*http.Response, error) {
  9337  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9338  	if c.ifNoneMatch_ != "" {
  9339  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9340  	}
  9341  	var body io.Reader = nil
  9342  	c.urlParams_.Set("alt", alt)
  9343  	c.urlParams_.Set("prettyPrint", "false")
  9344  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/indexing/{+name}")
  9345  	urls += "?" + c.urlParams_.Encode()
  9346  	req, err := http.NewRequest("GET", urls, body)
  9347  	if err != nil {
  9348  		return nil, err
  9349  	}
  9350  	req.Header = reqHeaders
  9351  	googleapi.Expand(req.URL, map[string]string{
  9352  		"name": c.name,
  9353  	})
  9354  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9355  }
  9356  
  9357  // Do executes the "cloudsearch.indexing.datasources.items.get" call.
  9358  // Any non-2xx status code is an error. Response headers are in either
  9359  // *Item.ServerResponse.Header or (if a response was returned at all) in
  9360  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9361  // whether the returned error was because http.StatusNotModified was returned.
  9362  func (c *IndexingDatasourcesItemsGetCall) Do(opts ...googleapi.CallOption) (*Item, error) {
  9363  	gensupport.SetOptions(c.urlParams_, opts...)
  9364  	res, err := c.doRequest("json")
  9365  	if res != nil && res.StatusCode == http.StatusNotModified {
  9366  		if res.Body != nil {
  9367  			res.Body.Close()
  9368  		}
  9369  		return nil, gensupport.WrapError(&googleapi.Error{
  9370  			Code:   res.StatusCode,
  9371  			Header: res.Header,
  9372  		})
  9373  	}
  9374  	if err != nil {
  9375  		return nil, err
  9376  	}
  9377  	defer googleapi.CloseBody(res)
  9378  	if err := googleapi.CheckResponse(res); err != nil {
  9379  		return nil, gensupport.WrapError(err)
  9380  	}
  9381  	ret := &Item{
  9382  		ServerResponse: googleapi.ServerResponse{
  9383  			Header:         res.Header,
  9384  			HTTPStatusCode: res.StatusCode,
  9385  		},
  9386  	}
  9387  	target := &ret
  9388  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9389  		return nil, err
  9390  	}
  9391  	return ret, nil
  9392  }
  9393  
  9394  type IndexingDatasourcesItemsIndexCall struct {
  9395  	s                *Service
  9396  	name             string
  9397  	indexitemrequest *IndexItemRequest
  9398  	urlParams_       gensupport.URLParams
  9399  	ctx_             context.Context
  9400  	header_          http.Header
  9401  }
  9402  
  9403  // Index: Updates Item ACL, metadata, and content. It will insert the Item if
  9404  // it does not exist. This method does not support partial updates. Fields with
  9405  // no provided values are cleared out in the Cloud Search index. This API
  9406  // requires an admin or service account to execute. The service account used is
  9407  // the one whitelisted in the corresponding data source.
  9408  //
  9409  //   - name: The name of the Item. Format:
  9410  //     datasources/{source_id}/items/{item_id} This is a required field. The
  9411  //     maximum length is 1536 characters.
  9412  func (r *IndexingDatasourcesItemsService) Index(name string, indexitemrequest *IndexItemRequest) *IndexingDatasourcesItemsIndexCall {
  9413  	c := &IndexingDatasourcesItemsIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9414  	c.name = name
  9415  	c.indexitemrequest = indexitemrequest
  9416  	return c
  9417  }
  9418  
  9419  // Fields allows partial responses to be retrieved. See
  9420  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9421  // details.
  9422  func (c *IndexingDatasourcesItemsIndexCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsIndexCall {
  9423  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9424  	return c
  9425  }
  9426  
  9427  // Context sets the context to be used in this call's Do method.
  9428  func (c *IndexingDatasourcesItemsIndexCall) Context(ctx context.Context) *IndexingDatasourcesItemsIndexCall {
  9429  	c.ctx_ = ctx
  9430  	return c
  9431  }
  9432  
  9433  // Header returns a http.Header that can be modified by the caller to add
  9434  // headers to the request.
  9435  func (c *IndexingDatasourcesItemsIndexCall) Header() http.Header {
  9436  	if c.header_ == nil {
  9437  		c.header_ = make(http.Header)
  9438  	}
  9439  	return c.header_
  9440  }
  9441  
  9442  func (c *IndexingDatasourcesItemsIndexCall) doRequest(alt string) (*http.Response, error) {
  9443  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9444  	var body io.Reader = nil
  9445  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.indexitemrequest)
  9446  	if err != nil {
  9447  		return nil, err
  9448  	}
  9449  	c.urlParams_.Set("alt", alt)
  9450  	c.urlParams_.Set("prettyPrint", "false")
  9451  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/indexing/{+name}:index")
  9452  	urls += "?" + c.urlParams_.Encode()
  9453  	req, err := http.NewRequest("POST", urls, body)
  9454  	if err != nil {
  9455  		return nil, err
  9456  	}
  9457  	req.Header = reqHeaders
  9458  	googleapi.Expand(req.URL, map[string]string{
  9459  		"name": c.name,
  9460  	})
  9461  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9462  }
  9463  
  9464  // Do executes the "cloudsearch.indexing.datasources.items.index" call.
  9465  // Any non-2xx status code is an error. Response headers are in either
  9466  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9467  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9468  // whether the returned error was because http.StatusNotModified was returned.
  9469  func (c *IndexingDatasourcesItemsIndexCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9470  	gensupport.SetOptions(c.urlParams_, opts...)
  9471  	res, err := c.doRequest("json")
  9472  	if res != nil && res.StatusCode == http.StatusNotModified {
  9473  		if res.Body != nil {
  9474  			res.Body.Close()
  9475  		}
  9476  		return nil, gensupport.WrapError(&googleapi.Error{
  9477  			Code:   res.StatusCode,
  9478  			Header: res.Header,
  9479  		})
  9480  	}
  9481  	if err != nil {
  9482  		return nil, err
  9483  	}
  9484  	defer googleapi.CloseBody(res)
  9485  	if err := googleapi.CheckResponse(res); err != nil {
  9486  		return nil, gensupport.WrapError(err)
  9487  	}
  9488  	ret := &Operation{
  9489  		ServerResponse: googleapi.ServerResponse{
  9490  			Header:         res.Header,
  9491  			HTTPStatusCode: res.StatusCode,
  9492  		},
  9493  	}
  9494  	target := &ret
  9495  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9496  		return nil, err
  9497  	}
  9498  	return ret, nil
  9499  }
  9500  
  9501  type IndexingDatasourcesItemsListCall struct {
  9502  	s            *Service
  9503  	name         string
  9504  	urlParams_   gensupport.URLParams
  9505  	ifNoneMatch_ string
  9506  	ctx_         context.Context
  9507  	header_      http.Header
  9508  }
  9509  
  9510  // List: Lists all or a subset of Item resources. This API requires an admin or
  9511  // service account to execute. The service account used is the one whitelisted
  9512  // in the corresponding data source.
  9513  //
  9514  //   - name: The name of the Data Source to list Items. Format:
  9515  //     datasources/{source_id}.
  9516  func (r *IndexingDatasourcesItemsService) List(name string) *IndexingDatasourcesItemsListCall {
  9517  	c := &IndexingDatasourcesItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9518  	c.name = name
  9519  	return c
  9520  }
  9521  
  9522  // Brief sets the optional parameter "brief": When set to true, the indexing
  9523  // system only populates the following fields: name, version, queue.
  9524  // metadata.hash, metadata.title, metadata.sourceRepositoryURL,
  9525  // metadata.objectType, metadata.createTime, metadata.updateTime,
  9526  // metadata.contentLanguage, metadata.mimeType, structured_data.hash,
  9527  // content.hash, itemType, itemStatus.code, itemStatus.processingError.code,
  9528  // itemStatus.repositoryError.type, If this value is false, then all the fields
  9529  // are populated in Item.
  9530  func (c *IndexingDatasourcesItemsListCall) Brief(brief bool) *IndexingDatasourcesItemsListCall {
  9531  	c.urlParams_.Set("brief", fmt.Sprint(brief))
  9532  	return c
  9533  }
  9534  
  9535  // ConnectorName sets the optional parameter "connectorName": The name of
  9536  // connector making this call. Format: datasources/{source_id}/connectors/{ID}
  9537  func (c *IndexingDatasourcesItemsListCall) ConnectorName(connectorName string) *IndexingDatasourcesItemsListCall {
  9538  	c.urlParams_.Set("connectorName", connectorName)
  9539  	return c
  9540  }
  9541  
  9542  // DebugOptionsEnableDebugging sets the optional parameter
  9543  // "debugOptions.enableDebugging": If you are asked by Google to help with
  9544  // debugging, set this field. Otherwise, ignore this field.
  9545  func (c *IndexingDatasourcesItemsListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesItemsListCall {
  9546  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
  9547  	return c
  9548  }
  9549  
  9550  // PageSize sets the optional parameter "pageSize": Maximum number of items to
  9551  // fetch in a request. The max value is 1000 when brief is true. The max value
  9552  // is 10 if brief is false. The default value is 10
  9553  func (c *IndexingDatasourcesItemsListCall) PageSize(pageSize int64) *IndexingDatasourcesItemsListCall {
  9554  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
  9555  	return c
  9556  }
  9557  
  9558  // PageToken sets the optional parameter "pageToken": The next_page_token value
  9559  // returned from a previous List request, if any.
  9560  func (c *IndexingDatasourcesItemsListCall) PageToken(pageToken string) *IndexingDatasourcesItemsListCall {
  9561  	c.urlParams_.Set("pageToken", pageToken)
  9562  	return c
  9563  }
  9564  
  9565  // Fields allows partial responses to be retrieved. See
  9566  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9567  // details.
  9568  func (c *IndexingDatasourcesItemsListCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsListCall {
  9569  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9570  	return c
  9571  }
  9572  
  9573  // IfNoneMatch sets an optional parameter which makes the operation fail if the
  9574  // object's ETag matches the given value. This is useful for getting updates
  9575  // only after the object has changed since the last request.
  9576  func (c *IndexingDatasourcesItemsListCall) IfNoneMatch(entityTag string) *IndexingDatasourcesItemsListCall {
  9577  	c.ifNoneMatch_ = entityTag
  9578  	return c
  9579  }
  9580  
  9581  // Context sets the context to be used in this call's Do method.
  9582  func (c *IndexingDatasourcesItemsListCall) Context(ctx context.Context) *IndexingDatasourcesItemsListCall {
  9583  	c.ctx_ = ctx
  9584  	return c
  9585  }
  9586  
  9587  // Header returns a http.Header that can be modified by the caller to add
  9588  // headers to the request.
  9589  func (c *IndexingDatasourcesItemsListCall) Header() http.Header {
  9590  	if c.header_ == nil {
  9591  		c.header_ = make(http.Header)
  9592  	}
  9593  	return c.header_
  9594  }
  9595  
  9596  func (c *IndexingDatasourcesItemsListCall) doRequest(alt string) (*http.Response, error) {
  9597  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
  9598  	if c.ifNoneMatch_ != "" {
  9599  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
  9600  	}
  9601  	var body io.Reader = nil
  9602  	c.urlParams_.Set("alt", alt)
  9603  	c.urlParams_.Set("prettyPrint", "false")
  9604  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/indexing/{+name}/items")
  9605  	urls += "?" + c.urlParams_.Encode()
  9606  	req, err := http.NewRequest("GET", urls, body)
  9607  	if err != nil {
  9608  		return nil, err
  9609  	}
  9610  	req.Header = reqHeaders
  9611  	googleapi.Expand(req.URL, map[string]string{
  9612  		"name": c.name,
  9613  	})
  9614  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9615  }
  9616  
  9617  // Do executes the "cloudsearch.indexing.datasources.items.list" call.
  9618  // Any non-2xx status code is an error. Response headers are in either
  9619  // *ListItemsResponse.ServerResponse.Header or (if a response was returned at
  9620  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9621  // check whether the returned error was because http.StatusNotModified was
  9622  // returned.
  9623  func (c *IndexingDatasourcesItemsListCall) Do(opts ...googleapi.CallOption) (*ListItemsResponse, error) {
  9624  	gensupport.SetOptions(c.urlParams_, opts...)
  9625  	res, err := c.doRequest("json")
  9626  	if res != nil && res.StatusCode == http.StatusNotModified {
  9627  		if res.Body != nil {
  9628  			res.Body.Close()
  9629  		}
  9630  		return nil, gensupport.WrapError(&googleapi.Error{
  9631  			Code:   res.StatusCode,
  9632  			Header: res.Header,
  9633  		})
  9634  	}
  9635  	if err != nil {
  9636  		return nil, err
  9637  	}
  9638  	defer googleapi.CloseBody(res)
  9639  	if err := googleapi.CheckResponse(res); err != nil {
  9640  		return nil, gensupport.WrapError(err)
  9641  	}
  9642  	ret := &ListItemsResponse{
  9643  		ServerResponse: googleapi.ServerResponse{
  9644  			Header:         res.Header,
  9645  			HTTPStatusCode: res.StatusCode,
  9646  		},
  9647  	}
  9648  	target := &ret
  9649  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9650  		return nil, err
  9651  	}
  9652  	return ret, nil
  9653  }
  9654  
  9655  // Pages invokes f for each page of results.
  9656  // A non-nil error returned from f will halt the iteration.
  9657  // The provided context supersedes any context provided to the Context method.
  9658  func (c *IndexingDatasourcesItemsListCall) Pages(ctx context.Context, f func(*ListItemsResponse) error) error {
  9659  	c.ctx_ = ctx
  9660  	defer c.PageToken(c.urlParams_.Get("pageToken"))
  9661  	for {
  9662  		x, err := c.Do()
  9663  		if err != nil {
  9664  			return err
  9665  		}
  9666  		if err := f(x); err != nil {
  9667  			return err
  9668  		}
  9669  		if x.NextPageToken == "" {
  9670  			return nil
  9671  		}
  9672  		c.PageToken(x.NextPageToken)
  9673  	}
  9674  }
  9675  
  9676  type IndexingDatasourcesItemsPollCall struct {
  9677  	s                *Service
  9678  	name             string
  9679  	pollitemsrequest *PollItemsRequest
  9680  	urlParams_       gensupport.URLParams
  9681  	ctx_             context.Context
  9682  	header_          http.Header
  9683  }
  9684  
  9685  // Poll: Polls for unreserved items from the indexing queue and marks a set as
  9686  // reserved, starting with items that have the oldest timestamp from the
  9687  // highest priority ItemStatus. The priority order is as follows: ERROR
  9688  // MODIFIED NEW_ITEM ACCEPTED Reserving items ensures that polling from other
  9689  // threads cannot create overlapping sets. After handling the reserved items,
  9690  // the client should put items back into the unreserved state, either by
  9691  // calling index, or by calling push with the type REQUEUE. Items automatically
  9692  // become available (unreserved) after 4 hours even if no update or push method
  9693  // is called. This API requires an admin or service account to execute. The
  9694  // service account used is the one whitelisted in the corresponding data
  9695  // source.
  9696  //
  9697  //   - name: The name of the Data Source to poll items. Format:
  9698  //     datasources/{source_id}.
  9699  func (r *IndexingDatasourcesItemsService) Poll(name string, pollitemsrequest *PollItemsRequest) *IndexingDatasourcesItemsPollCall {
  9700  	c := &IndexingDatasourcesItemsPollCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9701  	c.name = name
  9702  	c.pollitemsrequest = pollitemsrequest
  9703  	return c
  9704  }
  9705  
  9706  // Fields allows partial responses to be retrieved. See
  9707  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9708  // details.
  9709  func (c *IndexingDatasourcesItemsPollCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsPollCall {
  9710  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9711  	return c
  9712  }
  9713  
  9714  // Context sets the context to be used in this call's Do method.
  9715  func (c *IndexingDatasourcesItemsPollCall) Context(ctx context.Context) *IndexingDatasourcesItemsPollCall {
  9716  	c.ctx_ = ctx
  9717  	return c
  9718  }
  9719  
  9720  // Header returns a http.Header that can be modified by the caller to add
  9721  // headers to the request.
  9722  func (c *IndexingDatasourcesItemsPollCall) Header() http.Header {
  9723  	if c.header_ == nil {
  9724  		c.header_ = make(http.Header)
  9725  	}
  9726  	return c.header_
  9727  }
  9728  
  9729  func (c *IndexingDatasourcesItemsPollCall) doRequest(alt string) (*http.Response, error) {
  9730  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9731  	var body io.Reader = nil
  9732  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.pollitemsrequest)
  9733  	if err != nil {
  9734  		return nil, err
  9735  	}
  9736  	c.urlParams_.Set("alt", alt)
  9737  	c.urlParams_.Set("prettyPrint", "false")
  9738  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/indexing/{+name}/items:poll")
  9739  	urls += "?" + c.urlParams_.Encode()
  9740  	req, err := http.NewRequest("POST", urls, body)
  9741  	if err != nil {
  9742  		return nil, err
  9743  	}
  9744  	req.Header = reqHeaders
  9745  	googleapi.Expand(req.URL, map[string]string{
  9746  		"name": c.name,
  9747  	})
  9748  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9749  }
  9750  
  9751  // Do executes the "cloudsearch.indexing.datasources.items.poll" call.
  9752  // Any non-2xx status code is an error. Response headers are in either
  9753  // *PollItemsResponse.ServerResponse.Header or (if a response was returned at
  9754  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
  9755  // check whether the returned error was because http.StatusNotModified was
  9756  // returned.
  9757  func (c *IndexingDatasourcesItemsPollCall) Do(opts ...googleapi.CallOption) (*PollItemsResponse, error) {
  9758  	gensupport.SetOptions(c.urlParams_, opts...)
  9759  	res, err := c.doRequest("json")
  9760  	if res != nil && res.StatusCode == http.StatusNotModified {
  9761  		if res.Body != nil {
  9762  			res.Body.Close()
  9763  		}
  9764  		return nil, gensupport.WrapError(&googleapi.Error{
  9765  			Code:   res.StatusCode,
  9766  			Header: res.Header,
  9767  		})
  9768  	}
  9769  	if err != nil {
  9770  		return nil, err
  9771  	}
  9772  	defer googleapi.CloseBody(res)
  9773  	if err := googleapi.CheckResponse(res); err != nil {
  9774  		return nil, gensupport.WrapError(err)
  9775  	}
  9776  	ret := &PollItemsResponse{
  9777  		ServerResponse: googleapi.ServerResponse{
  9778  			Header:         res.Header,
  9779  			HTTPStatusCode: res.StatusCode,
  9780  		},
  9781  	}
  9782  	target := &ret
  9783  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9784  		return nil, err
  9785  	}
  9786  	return ret, nil
  9787  }
  9788  
  9789  type IndexingDatasourcesItemsPushCall struct {
  9790  	s               *Service
  9791  	name            string
  9792  	pushitemrequest *PushItemRequest
  9793  	urlParams_      gensupport.URLParams
  9794  	ctx_            context.Context
  9795  	header_         http.Header
  9796  }
  9797  
  9798  // Push: Pushes an item onto a queue for later polling and updating. This API
  9799  // requires an admin or service account to execute. The service account used is
  9800  // the one whitelisted in the corresponding data source.
  9801  //
  9802  //   - name: The name of the item to push into the indexing queue. Format:
  9803  //     datasources/{source_id}/items/{ID} This is a required field. The maximum
  9804  //     length is 1536 characters.
  9805  func (r *IndexingDatasourcesItemsService) Push(name string, pushitemrequest *PushItemRequest) *IndexingDatasourcesItemsPushCall {
  9806  	c := &IndexingDatasourcesItemsPushCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9807  	c.name = name
  9808  	c.pushitemrequest = pushitemrequest
  9809  	return c
  9810  }
  9811  
  9812  // Fields allows partial responses to be retrieved. See
  9813  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9814  // details.
  9815  func (c *IndexingDatasourcesItemsPushCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsPushCall {
  9816  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9817  	return c
  9818  }
  9819  
  9820  // Context sets the context to be used in this call's Do method.
  9821  func (c *IndexingDatasourcesItemsPushCall) Context(ctx context.Context) *IndexingDatasourcesItemsPushCall {
  9822  	c.ctx_ = ctx
  9823  	return c
  9824  }
  9825  
  9826  // Header returns a http.Header that can be modified by the caller to add
  9827  // headers to the request.
  9828  func (c *IndexingDatasourcesItemsPushCall) Header() http.Header {
  9829  	if c.header_ == nil {
  9830  		c.header_ = make(http.Header)
  9831  	}
  9832  	return c.header_
  9833  }
  9834  
  9835  func (c *IndexingDatasourcesItemsPushCall) doRequest(alt string) (*http.Response, error) {
  9836  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9837  	var body io.Reader = nil
  9838  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.pushitemrequest)
  9839  	if err != nil {
  9840  		return nil, err
  9841  	}
  9842  	c.urlParams_.Set("alt", alt)
  9843  	c.urlParams_.Set("prettyPrint", "false")
  9844  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/indexing/{+name}:push")
  9845  	urls += "?" + c.urlParams_.Encode()
  9846  	req, err := http.NewRequest("POST", urls, body)
  9847  	if err != nil {
  9848  		return nil, err
  9849  	}
  9850  	req.Header = reqHeaders
  9851  	googleapi.Expand(req.URL, map[string]string{
  9852  		"name": c.name,
  9853  	})
  9854  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9855  }
  9856  
  9857  // Do executes the "cloudsearch.indexing.datasources.items.push" call.
  9858  // Any non-2xx status code is an error. Response headers are in either
  9859  // *Item.ServerResponse.Header or (if a response was returned at all) in
  9860  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9861  // whether the returned error was because http.StatusNotModified was returned.
  9862  func (c *IndexingDatasourcesItemsPushCall) Do(opts ...googleapi.CallOption) (*Item, error) {
  9863  	gensupport.SetOptions(c.urlParams_, opts...)
  9864  	res, err := c.doRequest("json")
  9865  	if res != nil && res.StatusCode == http.StatusNotModified {
  9866  		if res.Body != nil {
  9867  			res.Body.Close()
  9868  		}
  9869  		return nil, gensupport.WrapError(&googleapi.Error{
  9870  			Code:   res.StatusCode,
  9871  			Header: res.Header,
  9872  		})
  9873  	}
  9874  	if err != nil {
  9875  		return nil, err
  9876  	}
  9877  	defer googleapi.CloseBody(res)
  9878  	if err := googleapi.CheckResponse(res); err != nil {
  9879  		return nil, gensupport.WrapError(err)
  9880  	}
  9881  	ret := &Item{
  9882  		ServerResponse: googleapi.ServerResponse{
  9883  			Header:         res.Header,
  9884  			HTTPStatusCode: res.StatusCode,
  9885  		},
  9886  	}
  9887  	target := &ret
  9888  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9889  		return nil, err
  9890  	}
  9891  	return ret, nil
  9892  }
  9893  
  9894  type IndexingDatasourcesItemsUnreserveCall struct {
  9895  	s                     *Service
  9896  	name                  string
  9897  	unreserveitemsrequest *UnreserveItemsRequest
  9898  	urlParams_            gensupport.URLParams
  9899  	ctx_                  context.Context
  9900  	header_               http.Header
  9901  }
  9902  
  9903  // Unreserve: Unreserves all items from a queue, making them all eligible to be
  9904  // polled. This method is useful for resetting the indexing queue after a
  9905  // connector has been restarted. This API requires an admin or service account
  9906  // to execute. The service account used is the one whitelisted in the
  9907  // corresponding data source.
  9908  //
  9909  //   - name: The name of the Data Source to unreserve all items. Format:
  9910  //     datasources/{source_id}.
  9911  func (r *IndexingDatasourcesItemsService) Unreserve(name string, unreserveitemsrequest *UnreserveItemsRequest) *IndexingDatasourcesItemsUnreserveCall {
  9912  	c := &IndexingDatasourcesItemsUnreserveCall{s: r.s, urlParams_: make(gensupport.URLParams)}
  9913  	c.name = name
  9914  	c.unreserveitemsrequest = unreserveitemsrequest
  9915  	return c
  9916  }
  9917  
  9918  // Fields allows partial responses to be retrieved. See
  9919  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
  9920  // details.
  9921  func (c *IndexingDatasourcesItemsUnreserveCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsUnreserveCall {
  9922  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
  9923  	return c
  9924  }
  9925  
  9926  // Context sets the context to be used in this call's Do method.
  9927  func (c *IndexingDatasourcesItemsUnreserveCall) Context(ctx context.Context) *IndexingDatasourcesItemsUnreserveCall {
  9928  	c.ctx_ = ctx
  9929  	return c
  9930  }
  9931  
  9932  // Header returns a http.Header that can be modified by the caller to add
  9933  // headers to the request.
  9934  func (c *IndexingDatasourcesItemsUnreserveCall) Header() http.Header {
  9935  	if c.header_ == nil {
  9936  		c.header_ = make(http.Header)
  9937  	}
  9938  	return c.header_
  9939  }
  9940  
  9941  func (c *IndexingDatasourcesItemsUnreserveCall) doRequest(alt string) (*http.Response, error) {
  9942  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
  9943  	var body io.Reader = nil
  9944  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.unreserveitemsrequest)
  9945  	if err != nil {
  9946  		return nil, err
  9947  	}
  9948  	c.urlParams_.Set("alt", alt)
  9949  	c.urlParams_.Set("prettyPrint", "false")
  9950  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/indexing/{+name}/items:unreserve")
  9951  	urls += "?" + c.urlParams_.Encode()
  9952  	req, err := http.NewRequest("POST", urls, body)
  9953  	if err != nil {
  9954  		return nil, err
  9955  	}
  9956  	req.Header = reqHeaders
  9957  	googleapi.Expand(req.URL, map[string]string{
  9958  		"name": c.name,
  9959  	})
  9960  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
  9961  }
  9962  
  9963  // Do executes the "cloudsearch.indexing.datasources.items.unreserve" call.
  9964  // Any non-2xx status code is an error. Response headers are in either
  9965  // *Operation.ServerResponse.Header or (if a response was returned at all) in
  9966  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
  9967  // whether the returned error was because http.StatusNotModified was returned.
  9968  func (c *IndexingDatasourcesItemsUnreserveCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
  9969  	gensupport.SetOptions(c.urlParams_, opts...)
  9970  	res, err := c.doRequest("json")
  9971  	if res != nil && res.StatusCode == http.StatusNotModified {
  9972  		if res.Body != nil {
  9973  			res.Body.Close()
  9974  		}
  9975  		return nil, gensupport.WrapError(&googleapi.Error{
  9976  			Code:   res.StatusCode,
  9977  			Header: res.Header,
  9978  		})
  9979  	}
  9980  	if err != nil {
  9981  		return nil, err
  9982  	}
  9983  	defer googleapi.CloseBody(res)
  9984  	if err := googleapi.CheckResponse(res); err != nil {
  9985  		return nil, gensupport.WrapError(err)
  9986  	}
  9987  	ret := &Operation{
  9988  		ServerResponse: googleapi.ServerResponse{
  9989  			Header:         res.Header,
  9990  			HTTPStatusCode: res.StatusCode,
  9991  		},
  9992  	}
  9993  	target := &ret
  9994  	if err := gensupport.DecodeResponse(target, res); err != nil {
  9995  		return nil, err
  9996  	}
  9997  	return ret, nil
  9998  }
  9999  
 10000  type IndexingDatasourcesItemsUploadCall struct {
 10001  	s                      *Service
 10002  	name                   string
 10003  	startuploaditemrequest *StartUploadItemRequest
 10004  	urlParams_             gensupport.URLParams
 10005  	ctx_                   context.Context
 10006  	header_                http.Header
 10007  }
 10008  
 10009  // Upload: Creates an upload session for uploading item content. For items
 10010  // smaller than 100 KB, it's easier to embed the content inline within an index
 10011  // request. This API requires an admin or service account to execute. The
 10012  // service account used is the one whitelisted in the corresponding data
 10013  // source.
 10014  //
 10015  //   - name: The name of the Item to start a resumable upload. Format:
 10016  //     datasources/{source_id}/items/{item_id}. The maximum length is 1536 bytes.
 10017  func (r *IndexingDatasourcesItemsService) Upload(name string, startuploaditemrequest *StartUploadItemRequest) *IndexingDatasourcesItemsUploadCall {
 10018  	c := &IndexingDatasourcesItemsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10019  	c.name = name
 10020  	c.startuploaditemrequest = startuploaditemrequest
 10021  	return c
 10022  }
 10023  
 10024  // Fields allows partial responses to be retrieved. See
 10025  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10026  // details.
 10027  func (c *IndexingDatasourcesItemsUploadCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsUploadCall {
 10028  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10029  	return c
 10030  }
 10031  
 10032  // Context sets the context to be used in this call's Do method.
 10033  func (c *IndexingDatasourcesItemsUploadCall) Context(ctx context.Context) *IndexingDatasourcesItemsUploadCall {
 10034  	c.ctx_ = ctx
 10035  	return c
 10036  }
 10037  
 10038  // Header returns a http.Header that can be modified by the caller to add
 10039  // headers to the request.
 10040  func (c *IndexingDatasourcesItemsUploadCall) Header() http.Header {
 10041  	if c.header_ == nil {
 10042  		c.header_ = make(http.Header)
 10043  	}
 10044  	return c.header_
 10045  }
 10046  
 10047  func (c *IndexingDatasourcesItemsUploadCall) doRequest(alt string) (*http.Response, error) {
 10048  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10049  	var body io.Reader = nil
 10050  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.startuploaditemrequest)
 10051  	if err != nil {
 10052  		return nil, err
 10053  	}
 10054  	c.urlParams_.Set("alt", alt)
 10055  	c.urlParams_.Set("prettyPrint", "false")
 10056  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/indexing/{+name}:upload")
 10057  	urls += "?" + c.urlParams_.Encode()
 10058  	req, err := http.NewRequest("POST", urls, body)
 10059  	if err != nil {
 10060  		return nil, err
 10061  	}
 10062  	req.Header = reqHeaders
 10063  	googleapi.Expand(req.URL, map[string]string{
 10064  		"name": c.name,
 10065  	})
 10066  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10067  }
 10068  
 10069  // Do executes the "cloudsearch.indexing.datasources.items.upload" call.
 10070  // Any non-2xx status code is an error. Response headers are in either
 10071  // *UploadItemRef.ServerResponse.Header or (if a response was returned at all)
 10072  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10073  // whether the returned error was because http.StatusNotModified was returned.
 10074  func (c *IndexingDatasourcesItemsUploadCall) Do(opts ...googleapi.CallOption) (*UploadItemRef, error) {
 10075  	gensupport.SetOptions(c.urlParams_, opts...)
 10076  	res, err := c.doRequest("json")
 10077  	if res != nil && res.StatusCode == http.StatusNotModified {
 10078  		if res.Body != nil {
 10079  			res.Body.Close()
 10080  		}
 10081  		return nil, gensupport.WrapError(&googleapi.Error{
 10082  			Code:   res.StatusCode,
 10083  			Header: res.Header,
 10084  		})
 10085  	}
 10086  	if err != nil {
 10087  		return nil, err
 10088  	}
 10089  	defer googleapi.CloseBody(res)
 10090  	if err := googleapi.CheckResponse(res); err != nil {
 10091  		return nil, gensupport.WrapError(err)
 10092  	}
 10093  	ret := &UploadItemRef{
 10094  		ServerResponse: googleapi.ServerResponse{
 10095  			Header:         res.Header,
 10096  			HTTPStatusCode: res.StatusCode,
 10097  		},
 10098  	}
 10099  	target := &ret
 10100  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10101  		return nil, err
 10102  	}
 10103  	return ret, nil
 10104  }
 10105  
 10106  type MediaUploadCall struct {
 10107  	s            *Service
 10108  	resourceName string
 10109  	media        *Media
 10110  	urlParams_   gensupport.URLParams
 10111  	mediaInfo_   *gensupport.MediaInfo
 10112  	ctx_         context.Context
 10113  	header_      http.Header
 10114  }
 10115  
 10116  // Upload: Uploads media for indexing. The upload endpoint supports direct and
 10117  // resumable upload protocols and is intended for large items that can not be
 10118  // inlined during index requests
 10119  // (https://developers.google.com/cloud-search/docs/reference/rest/v1/indexing.datasources.items#itemcontent).
 10120  // To index large content: 1. Call indexing.datasources.items.upload with the
 10121  // item name to begin an upload session and retrieve the UploadItemRef. 1. Call
 10122  // media.upload to upload the content, as a streaming request, using the same
 10123  // resource name from the UploadItemRef from step 1. 1. Call
 10124  // indexing.datasources.items.index to index the item. Populate the ItemContent
 10125  // (/cloud-search/docs/reference/rest/v1/indexing.datasources.items#ItemContent)
 10126  //
 10127  //	with the UploadItemRef from step 1. For additional information, see Create
 10128  //
 10129  // a content connector using the REST API
 10130  // (https://developers.google.com/cloud-search/docs/guides/content-connector#rest).
 10131  // **Note:** This API requires a service account to execute.
 10132  //
 10133  //   - resourceName: Name of the media that is being downloaded. See
 10134  //     ReadRequest.resource_name.
 10135  func (r *MediaService) Upload(resourceName string, media *Media) *MediaUploadCall {
 10136  	c := &MediaUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10137  	c.resourceName = resourceName
 10138  	c.media = media
 10139  	return c
 10140  }
 10141  
 10142  // Media specifies the media to upload in one or more chunks. The chunk size
 10143  // may be controlled by supplying a MediaOption generated by
 10144  // googleapi.ChunkSize. The chunk size defaults to
 10145  // googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload
 10146  // request will be determined by sniffing the contents of r, unless a
 10147  // MediaOption generated by googleapi.ContentType is supplied.
 10148  // At most one of Media and ResumableMedia may be set.
 10149  func (c *MediaUploadCall) Media(r io.Reader, options ...googleapi.MediaOption) *MediaUploadCall {
 10150  	c.mediaInfo_ = gensupport.NewInfoFromMedia(r, options)
 10151  	return c
 10152  }
 10153  
 10154  // ResumableMedia specifies the media to upload in chunks and can be canceled
 10155  // with ctx.
 10156  //
 10157  // Deprecated: use Media instead.
 10158  //
 10159  // At most one of Media and ResumableMedia may be set. mediaType identifies the
 10160  // MIME media type of the upload, such as "image/png". If mediaType is "", it
 10161  // will be auto-detected. The provided ctx will supersede any context
 10162  // previously provided to the Context method.
 10163  func (c *MediaUploadCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *MediaUploadCall {
 10164  	c.ctx_ = ctx
 10165  	c.mediaInfo_ = gensupport.NewInfoFromResumableMedia(r, size, mediaType)
 10166  	return c
 10167  }
 10168  
 10169  // ProgressUpdater provides a callback function that will be called after every
 10170  // chunk. It should be a low-latency function in order to not slow down the
 10171  // upload operation. This should only be called when using ResumableMedia (as
 10172  // opposed to Media).
 10173  func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall {
 10174  	c.mediaInfo_.SetProgressUpdater(pu)
 10175  	return c
 10176  }
 10177  
 10178  // Fields allows partial responses to be retrieved. See
 10179  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10180  // details.
 10181  func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall {
 10182  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10183  	return c
 10184  }
 10185  
 10186  // Context sets the context to be used in this call's Do method.
 10187  // This context will supersede any context previously provided to the
 10188  // ResumableMedia method.
 10189  func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall {
 10190  	c.ctx_ = ctx
 10191  	return c
 10192  }
 10193  
 10194  // Header returns a http.Header that can be modified by the caller to add
 10195  // headers to the request.
 10196  func (c *MediaUploadCall) Header() http.Header {
 10197  	if c.header_ == nil {
 10198  		c.header_ = make(http.Header)
 10199  	}
 10200  	return c.header_
 10201  }
 10202  
 10203  func (c *MediaUploadCall) doRequest(alt string) (*http.Response, error) {
 10204  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10205  	var body io.Reader = nil
 10206  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.media)
 10207  	if err != nil {
 10208  		return nil, err
 10209  	}
 10210  	c.urlParams_.Set("alt", alt)
 10211  	c.urlParams_.Set("prettyPrint", "false")
 10212  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/media/{+resourceName}")
 10213  	if c.mediaInfo_ != nil {
 10214  		urls = googleapi.ResolveRelative(c.s.BasePath, "/upload/v1/media/{+resourceName}")
 10215  		c.urlParams_.Set("uploadType", c.mediaInfo_.UploadType())
 10216  	}
 10217  	if body == nil {
 10218  		body = new(bytes.Buffer)
 10219  		reqHeaders.Set("Content-Type", "application/json")
 10220  	}
 10221  	body, getBody, cleanup := c.mediaInfo_.UploadRequest(reqHeaders, body)
 10222  	defer cleanup()
 10223  	urls += "?" + c.urlParams_.Encode()
 10224  	req, err := http.NewRequest("POST", urls, body)
 10225  	if err != nil {
 10226  		return nil, err
 10227  	}
 10228  	req.Header = reqHeaders
 10229  	req.GetBody = getBody
 10230  	googleapi.Expand(req.URL, map[string]string{
 10231  		"resourceName": c.resourceName,
 10232  	})
 10233  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10234  }
 10235  
 10236  // Do executes the "cloudsearch.media.upload" call.
 10237  // Any non-2xx status code is an error. Response headers are in either
 10238  // *Media.ServerResponse.Header or (if a response was returned at all) in
 10239  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10240  // whether the returned error was because http.StatusNotModified was returned.
 10241  func (c *MediaUploadCall) Do(opts ...googleapi.CallOption) (*Media, error) {
 10242  	gensupport.SetOptions(c.urlParams_, opts...)
 10243  	res, err := c.doRequest("json")
 10244  	if res != nil && res.StatusCode == http.StatusNotModified {
 10245  		if res.Body != nil {
 10246  			res.Body.Close()
 10247  		}
 10248  		return nil, gensupport.WrapError(&googleapi.Error{
 10249  			Code:   res.StatusCode,
 10250  			Header: res.Header,
 10251  		})
 10252  	}
 10253  	if err != nil {
 10254  		return nil, err
 10255  	}
 10256  	defer googleapi.CloseBody(res)
 10257  	if err := googleapi.CheckResponse(res); err != nil {
 10258  		return nil, gensupport.WrapError(err)
 10259  	}
 10260  	rx := c.mediaInfo_.ResumableUpload(res.Header.Get("Location"))
 10261  	if rx != nil {
 10262  		rx.Client = c.s.client
 10263  		rx.UserAgent = c.s.userAgent()
 10264  		ctx := c.ctx_
 10265  		if ctx == nil {
 10266  			ctx = context.TODO()
 10267  		}
 10268  		res, err = rx.Upload(ctx)
 10269  		if err != nil {
 10270  			return nil, err
 10271  		}
 10272  		defer res.Body.Close()
 10273  		if err := googleapi.CheckResponse(res); err != nil {
 10274  			return nil, gensupport.WrapError(err)
 10275  		}
 10276  	}
 10277  	ret := &Media{
 10278  		ServerResponse: googleapi.ServerResponse{
 10279  			Header:         res.Header,
 10280  			HTTPStatusCode: res.StatusCode,
 10281  		},
 10282  	}
 10283  	target := &ret
 10284  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10285  		return nil, err
 10286  	}
 10287  	return ret, nil
 10288  }
 10289  
 10290  type OperationsGetCall struct {
 10291  	s            *Service
 10292  	name         string
 10293  	urlParams_   gensupport.URLParams
 10294  	ifNoneMatch_ string
 10295  	ctx_         context.Context
 10296  	header_      http.Header
 10297  }
 10298  
 10299  // Get: Gets the latest state of a long-running operation. Clients can use this
 10300  // method to poll the operation result at intervals as recommended by the API
 10301  // service.
 10302  //
 10303  // - name: The name of the operation resource.
 10304  func (r *OperationsService) Get(name string) *OperationsGetCall {
 10305  	c := &OperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10306  	c.name = name
 10307  	return c
 10308  }
 10309  
 10310  // Fields allows partial responses to be retrieved. See
 10311  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10312  // details.
 10313  func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall {
 10314  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10315  	return c
 10316  }
 10317  
 10318  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10319  // object's ETag matches the given value. This is useful for getting updates
 10320  // only after the object has changed since the last request.
 10321  func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall {
 10322  	c.ifNoneMatch_ = entityTag
 10323  	return c
 10324  }
 10325  
 10326  // Context sets the context to be used in this call's Do method.
 10327  func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall {
 10328  	c.ctx_ = ctx
 10329  	return c
 10330  }
 10331  
 10332  // Header returns a http.Header that can be modified by the caller to add
 10333  // headers to the request.
 10334  func (c *OperationsGetCall) Header() http.Header {
 10335  	if c.header_ == nil {
 10336  		c.header_ = make(http.Header)
 10337  	}
 10338  	return c.header_
 10339  }
 10340  
 10341  func (c *OperationsGetCall) doRequest(alt string) (*http.Response, error) {
 10342  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10343  	if c.ifNoneMatch_ != "" {
 10344  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10345  	}
 10346  	var body io.Reader = nil
 10347  	c.urlParams_.Set("alt", alt)
 10348  	c.urlParams_.Set("prettyPrint", "false")
 10349  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
 10350  	urls += "?" + c.urlParams_.Encode()
 10351  	req, err := http.NewRequest("GET", urls, body)
 10352  	if err != nil {
 10353  		return nil, err
 10354  	}
 10355  	req.Header = reqHeaders
 10356  	googleapi.Expand(req.URL, map[string]string{
 10357  		"name": c.name,
 10358  	})
 10359  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10360  }
 10361  
 10362  // Do executes the "cloudsearch.operations.get" call.
 10363  // Any non-2xx status code is an error. Response headers are in either
 10364  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 10365  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10366  // whether the returned error was because http.StatusNotModified was returned.
 10367  func (c *OperationsGetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 10368  	gensupport.SetOptions(c.urlParams_, opts...)
 10369  	res, err := c.doRequest("json")
 10370  	if res != nil && res.StatusCode == http.StatusNotModified {
 10371  		if res.Body != nil {
 10372  			res.Body.Close()
 10373  		}
 10374  		return nil, gensupport.WrapError(&googleapi.Error{
 10375  			Code:   res.StatusCode,
 10376  			Header: res.Header,
 10377  		})
 10378  	}
 10379  	if err != nil {
 10380  		return nil, err
 10381  	}
 10382  	defer googleapi.CloseBody(res)
 10383  	if err := googleapi.CheckResponse(res); err != nil {
 10384  		return nil, gensupport.WrapError(err)
 10385  	}
 10386  	ret := &Operation{
 10387  		ServerResponse: googleapi.ServerResponse{
 10388  			Header:         res.Header,
 10389  			HTTPStatusCode: res.StatusCode,
 10390  		},
 10391  	}
 10392  	target := &ret
 10393  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10394  		return nil, err
 10395  	}
 10396  	return ret, nil
 10397  }
 10398  
 10399  type OperationsLroListCall struct {
 10400  	s            *Service
 10401  	name         string
 10402  	urlParams_   gensupport.URLParams
 10403  	ifNoneMatch_ string
 10404  	ctx_         context.Context
 10405  	header_      http.Header
 10406  }
 10407  
 10408  // List: Lists operations that match the specified filter in the request. If
 10409  // the server doesn't support this method, it returns `UNIMPLEMENTED`.
 10410  //
 10411  // - name: The name of the operation's parent resource.
 10412  func (r *OperationsLroService) List(name string) *OperationsLroListCall {
 10413  	c := &OperationsLroListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10414  	c.name = name
 10415  	return c
 10416  }
 10417  
 10418  // Filter sets the optional parameter "filter": The standard list filter.
 10419  func (c *OperationsLroListCall) Filter(filter string) *OperationsLroListCall {
 10420  	c.urlParams_.Set("filter", filter)
 10421  	return c
 10422  }
 10423  
 10424  // PageSize sets the optional parameter "pageSize": The standard list page
 10425  // size.
 10426  func (c *OperationsLroListCall) PageSize(pageSize int64) *OperationsLroListCall {
 10427  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 10428  	return c
 10429  }
 10430  
 10431  // PageToken sets the optional parameter "pageToken": The standard list page
 10432  // token.
 10433  func (c *OperationsLroListCall) PageToken(pageToken string) *OperationsLroListCall {
 10434  	c.urlParams_.Set("pageToken", pageToken)
 10435  	return c
 10436  }
 10437  
 10438  // Fields allows partial responses to be retrieved. See
 10439  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10440  // details.
 10441  func (c *OperationsLroListCall) Fields(s ...googleapi.Field) *OperationsLroListCall {
 10442  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10443  	return c
 10444  }
 10445  
 10446  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10447  // object's ETag matches the given value. This is useful for getting updates
 10448  // only after the object has changed since the last request.
 10449  func (c *OperationsLroListCall) IfNoneMatch(entityTag string) *OperationsLroListCall {
 10450  	c.ifNoneMatch_ = entityTag
 10451  	return c
 10452  }
 10453  
 10454  // Context sets the context to be used in this call's Do method.
 10455  func (c *OperationsLroListCall) Context(ctx context.Context) *OperationsLroListCall {
 10456  	c.ctx_ = ctx
 10457  	return c
 10458  }
 10459  
 10460  // Header returns a http.Header that can be modified by the caller to add
 10461  // headers to the request.
 10462  func (c *OperationsLroListCall) Header() http.Header {
 10463  	if c.header_ == nil {
 10464  		c.header_ = make(http.Header)
 10465  	}
 10466  	return c.header_
 10467  }
 10468  
 10469  func (c *OperationsLroListCall) doRequest(alt string) (*http.Response, error) {
 10470  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10471  	if c.ifNoneMatch_ != "" {
 10472  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10473  	}
 10474  	var body io.Reader = nil
 10475  	c.urlParams_.Set("alt", alt)
 10476  	c.urlParams_.Set("prettyPrint", "false")
 10477  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/lro")
 10478  	urls += "?" + c.urlParams_.Encode()
 10479  	req, err := http.NewRequest("GET", urls, body)
 10480  	if err != nil {
 10481  		return nil, err
 10482  	}
 10483  	req.Header = reqHeaders
 10484  	googleapi.Expand(req.URL, map[string]string{
 10485  		"name": c.name,
 10486  	})
 10487  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10488  }
 10489  
 10490  // Do executes the "cloudsearch.operations.lro.list" call.
 10491  // Any non-2xx status code is an error. Response headers are in either
 10492  // *ListOperationsResponse.ServerResponse.Header or (if a response was returned
 10493  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10494  // check whether the returned error was because http.StatusNotModified was
 10495  // returned.
 10496  func (c *OperationsLroListCall) Do(opts ...googleapi.CallOption) (*ListOperationsResponse, error) {
 10497  	gensupport.SetOptions(c.urlParams_, opts...)
 10498  	res, err := c.doRequest("json")
 10499  	if res != nil && res.StatusCode == http.StatusNotModified {
 10500  		if res.Body != nil {
 10501  			res.Body.Close()
 10502  		}
 10503  		return nil, gensupport.WrapError(&googleapi.Error{
 10504  			Code:   res.StatusCode,
 10505  			Header: res.Header,
 10506  		})
 10507  	}
 10508  	if err != nil {
 10509  		return nil, err
 10510  	}
 10511  	defer googleapi.CloseBody(res)
 10512  	if err := googleapi.CheckResponse(res); err != nil {
 10513  		return nil, gensupport.WrapError(err)
 10514  	}
 10515  	ret := &ListOperationsResponse{
 10516  		ServerResponse: googleapi.ServerResponse{
 10517  			Header:         res.Header,
 10518  			HTTPStatusCode: res.StatusCode,
 10519  		},
 10520  	}
 10521  	target := &ret
 10522  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10523  		return nil, err
 10524  	}
 10525  	return ret, nil
 10526  }
 10527  
 10528  // Pages invokes f for each page of results.
 10529  // A non-nil error returned from f will halt the iteration.
 10530  // The provided context supersedes any context provided to the Context method.
 10531  func (c *OperationsLroListCall) Pages(ctx context.Context, f func(*ListOperationsResponse) error) error {
 10532  	c.ctx_ = ctx
 10533  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 10534  	for {
 10535  		x, err := c.Do()
 10536  		if err != nil {
 10537  			return err
 10538  		}
 10539  		if err := f(x); err != nil {
 10540  			return err
 10541  		}
 10542  		if x.NextPageToken == "" {
 10543  			return nil
 10544  		}
 10545  		c.PageToken(x.NextPageToken)
 10546  	}
 10547  }
 10548  
 10549  type QueryRemoveActivityCall struct {
 10550  	s                     *Service
 10551  	removeactivityrequest *RemoveActivityRequest
 10552  	urlParams_            gensupport.URLParams
 10553  	ctx_                  context.Context
 10554  	header_               http.Header
 10555  }
 10556  
 10557  // RemoveActivity: Provides functionality to remove logged activity for a user.
 10558  // Currently to be used only for Chat 1p clients **Note:** This API requires a
 10559  // standard end user account to execute. A service account can't perform Remove
 10560  // Activity requests directly; to use a service account to perform queries, set
 10561  // up Google Workspace domain-wide delegation of authority
 10562  // (https://developers.google.com/cloud-search/docs/guides/delegation/).
 10563  func (r *QueryService) RemoveActivity(removeactivityrequest *RemoveActivityRequest) *QueryRemoveActivityCall {
 10564  	c := &QueryRemoveActivityCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10565  	c.removeactivityrequest = removeactivityrequest
 10566  	return c
 10567  }
 10568  
 10569  // Fields allows partial responses to be retrieved. See
 10570  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10571  // details.
 10572  func (c *QueryRemoveActivityCall) Fields(s ...googleapi.Field) *QueryRemoveActivityCall {
 10573  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10574  	return c
 10575  }
 10576  
 10577  // Context sets the context to be used in this call's Do method.
 10578  func (c *QueryRemoveActivityCall) Context(ctx context.Context) *QueryRemoveActivityCall {
 10579  	c.ctx_ = ctx
 10580  	return c
 10581  }
 10582  
 10583  // Header returns a http.Header that can be modified by the caller to add
 10584  // headers to the request.
 10585  func (c *QueryRemoveActivityCall) Header() http.Header {
 10586  	if c.header_ == nil {
 10587  		c.header_ = make(http.Header)
 10588  	}
 10589  	return c.header_
 10590  }
 10591  
 10592  func (c *QueryRemoveActivityCall) doRequest(alt string) (*http.Response, error) {
 10593  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10594  	var body io.Reader = nil
 10595  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.removeactivityrequest)
 10596  	if err != nil {
 10597  		return nil, err
 10598  	}
 10599  	c.urlParams_.Set("alt", alt)
 10600  	c.urlParams_.Set("prettyPrint", "false")
 10601  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/query:removeActivity")
 10602  	urls += "?" + c.urlParams_.Encode()
 10603  	req, err := http.NewRequest("POST", urls, body)
 10604  	if err != nil {
 10605  		return nil, err
 10606  	}
 10607  	req.Header = reqHeaders
 10608  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10609  }
 10610  
 10611  // Do executes the "cloudsearch.query.removeActivity" call.
 10612  // Any non-2xx status code is an error. Response headers are in either
 10613  // *RemoveActivityResponse.ServerResponse.Header or (if a response was returned
 10614  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10615  // check whether the returned error was because http.StatusNotModified was
 10616  // returned.
 10617  func (c *QueryRemoveActivityCall) Do(opts ...googleapi.CallOption) (*RemoveActivityResponse, error) {
 10618  	gensupport.SetOptions(c.urlParams_, opts...)
 10619  	res, err := c.doRequest("json")
 10620  	if res != nil && res.StatusCode == http.StatusNotModified {
 10621  		if res.Body != nil {
 10622  			res.Body.Close()
 10623  		}
 10624  		return nil, gensupport.WrapError(&googleapi.Error{
 10625  			Code:   res.StatusCode,
 10626  			Header: res.Header,
 10627  		})
 10628  	}
 10629  	if err != nil {
 10630  		return nil, err
 10631  	}
 10632  	defer googleapi.CloseBody(res)
 10633  	if err := googleapi.CheckResponse(res); err != nil {
 10634  		return nil, gensupport.WrapError(err)
 10635  	}
 10636  	ret := &RemoveActivityResponse{
 10637  		ServerResponse: googleapi.ServerResponse{
 10638  			Header:         res.Header,
 10639  			HTTPStatusCode: res.StatusCode,
 10640  		},
 10641  	}
 10642  	target := &ret
 10643  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10644  		return nil, err
 10645  	}
 10646  	return ret, nil
 10647  }
 10648  
 10649  type QuerySearchCall struct {
 10650  	s             *Service
 10651  	searchrequest *SearchRequest
 10652  	urlParams_    gensupport.URLParams
 10653  	ctx_          context.Context
 10654  	header_       http.Header
 10655  }
 10656  
 10657  // Search: The Cloud Search Query API provides the search method, which returns
 10658  // the most relevant results from a user query. The results can come from
 10659  // Google Workspace apps, such as Gmail or Google Drive, or they can come from
 10660  // data that you have indexed from a third party. **Note:** This API requires a
 10661  // standard end user account to execute. A service account can't perform Query
 10662  // API requests directly; to use a service account to perform queries, set up
 10663  // Google Workspace domain-wide delegation of authority
 10664  // (https://developers.google.com/cloud-search/docs/guides/delegation/).
 10665  func (r *QueryService) Search(searchrequest *SearchRequest) *QuerySearchCall {
 10666  	c := &QuerySearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10667  	c.searchrequest = searchrequest
 10668  	return c
 10669  }
 10670  
 10671  // Fields allows partial responses to be retrieved. See
 10672  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10673  // details.
 10674  func (c *QuerySearchCall) Fields(s ...googleapi.Field) *QuerySearchCall {
 10675  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10676  	return c
 10677  }
 10678  
 10679  // Context sets the context to be used in this call's Do method.
 10680  func (c *QuerySearchCall) Context(ctx context.Context) *QuerySearchCall {
 10681  	c.ctx_ = ctx
 10682  	return c
 10683  }
 10684  
 10685  // Header returns a http.Header that can be modified by the caller to add
 10686  // headers to the request.
 10687  func (c *QuerySearchCall) Header() http.Header {
 10688  	if c.header_ == nil {
 10689  		c.header_ = make(http.Header)
 10690  	}
 10691  	return c.header_
 10692  }
 10693  
 10694  func (c *QuerySearchCall) doRequest(alt string) (*http.Response, error) {
 10695  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10696  	var body io.Reader = nil
 10697  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchrequest)
 10698  	if err != nil {
 10699  		return nil, err
 10700  	}
 10701  	c.urlParams_.Set("alt", alt)
 10702  	c.urlParams_.Set("prettyPrint", "false")
 10703  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/query/search")
 10704  	urls += "?" + c.urlParams_.Encode()
 10705  	req, err := http.NewRequest("POST", urls, body)
 10706  	if err != nil {
 10707  		return nil, err
 10708  	}
 10709  	req.Header = reqHeaders
 10710  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10711  }
 10712  
 10713  // Do executes the "cloudsearch.query.search" call.
 10714  // Any non-2xx status code is an error. Response headers are in either
 10715  // *SearchResponse.ServerResponse.Header or (if a response was returned at all)
 10716  // in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 10717  // whether the returned error was because http.StatusNotModified was returned.
 10718  func (c *QuerySearchCall) Do(opts ...googleapi.CallOption) (*SearchResponse, error) {
 10719  	gensupport.SetOptions(c.urlParams_, opts...)
 10720  	res, err := c.doRequest("json")
 10721  	if res != nil && res.StatusCode == http.StatusNotModified {
 10722  		if res.Body != nil {
 10723  			res.Body.Close()
 10724  		}
 10725  		return nil, gensupport.WrapError(&googleapi.Error{
 10726  			Code:   res.StatusCode,
 10727  			Header: res.Header,
 10728  		})
 10729  	}
 10730  	if err != nil {
 10731  		return nil, err
 10732  	}
 10733  	defer googleapi.CloseBody(res)
 10734  	if err := googleapi.CheckResponse(res); err != nil {
 10735  		return nil, gensupport.WrapError(err)
 10736  	}
 10737  	ret := &SearchResponse{
 10738  		ServerResponse: googleapi.ServerResponse{
 10739  			Header:         res.Header,
 10740  			HTTPStatusCode: res.StatusCode,
 10741  		},
 10742  	}
 10743  	target := &ret
 10744  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10745  		return nil, err
 10746  	}
 10747  	return ret, nil
 10748  }
 10749  
 10750  type QuerySuggestCall struct {
 10751  	s              *Service
 10752  	suggestrequest *SuggestRequest
 10753  	urlParams_     gensupport.URLParams
 10754  	ctx_           context.Context
 10755  	header_        http.Header
 10756  }
 10757  
 10758  // Suggest: Provides suggestions for autocompleting the query. **Note:** This
 10759  // API requires a standard end user account to execute. A service account can't
 10760  // perform Query API requests directly; to use a service account to perform
 10761  // queries, set up Google Workspace domain-wide delegation of authority
 10762  // (https://developers.google.com/cloud-search/docs/guides/delegation/).
 10763  func (r *QueryService) Suggest(suggestrequest *SuggestRequest) *QuerySuggestCall {
 10764  	c := &QuerySuggestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10765  	c.suggestrequest = suggestrequest
 10766  	return c
 10767  }
 10768  
 10769  // Fields allows partial responses to be retrieved. See
 10770  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10771  // details.
 10772  func (c *QuerySuggestCall) Fields(s ...googleapi.Field) *QuerySuggestCall {
 10773  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10774  	return c
 10775  }
 10776  
 10777  // Context sets the context to be used in this call's Do method.
 10778  func (c *QuerySuggestCall) Context(ctx context.Context) *QuerySuggestCall {
 10779  	c.ctx_ = ctx
 10780  	return c
 10781  }
 10782  
 10783  // Header returns a http.Header that can be modified by the caller to add
 10784  // headers to the request.
 10785  func (c *QuerySuggestCall) Header() http.Header {
 10786  	if c.header_ == nil {
 10787  		c.header_ = make(http.Header)
 10788  	}
 10789  	return c.header_
 10790  }
 10791  
 10792  func (c *QuerySuggestCall) doRequest(alt string) (*http.Response, error) {
 10793  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 10794  	var body io.Reader = nil
 10795  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.suggestrequest)
 10796  	if err != nil {
 10797  		return nil, err
 10798  	}
 10799  	c.urlParams_.Set("alt", alt)
 10800  	c.urlParams_.Set("prettyPrint", "false")
 10801  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/query/suggest")
 10802  	urls += "?" + c.urlParams_.Encode()
 10803  	req, err := http.NewRequest("POST", urls, body)
 10804  	if err != nil {
 10805  		return nil, err
 10806  	}
 10807  	req.Header = reqHeaders
 10808  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10809  }
 10810  
 10811  // Do executes the "cloudsearch.query.suggest" call.
 10812  // Any non-2xx status code is an error. Response headers are in either
 10813  // *SuggestResponse.ServerResponse.Header or (if a response was returned at
 10814  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 10815  // check whether the returned error was because http.StatusNotModified was
 10816  // returned.
 10817  func (c *QuerySuggestCall) Do(opts ...googleapi.CallOption) (*SuggestResponse, error) {
 10818  	gensupport.SetOptions(c.urlParams_, opts...)
 10819  	res, err := c.doRequest("json")
 10820  	if res != nil && res.StatusCode == http.StatusNotModified {
 10821  		if res.Body != nil {
 10822  			res.Body.Close()
 10823  		}
 10824  		return nil, gensupport.WrapError(&googleapi.Error{
 10825  			Code:   res.StatusCode,
 10826  			Header: res.Header,
 10827  		})
 10828  	}
 10829  	if err != nil {
 10830  		return nil, err
 10831  	}
 10832  	defer googleapi.CloseBody(res)
 10833  	if err := googleapi.CheckResponse(res); err != nil {
 10834  		return nil, gensupport.WrapError(err)
 10835  	}
 10836  	ret := &SuggestResponse{
 10837  		ServerResponse: googleapi.ServerResponse{
 10838  			Header:         res.Header,
 10839  			HTTPStatusCode: res.StatusCode,
 10840  		},
 10841  	}
 10842  	target := &ret
 10843  	if err := gensupport.DecodeResponse(target, res); err != nil {
 10844  		return nil, err
 10845  	}
 10846  	return ret, nil
 10847  }
 10848  
 10849  type QuerySourcesListCall struct {
 10850  	s            *Service
 10851  	urlParams_   gensupport.URLParams
 10852  	ifNoneMatch_ string
 10853  	ctx_         context.Context
 10854  	header_      http.Header
 10855  }
 10856  
 10857  // List: Returns list of sources that user can use for Search and Suggest APIs.
 10858  // **Note:** This API requires a standard end user account to execute. A
 10859  // service account can't perform Query API requests directly; to use a service
 10860  // account to perform queries, set up Google Workspace domain-wide delegation
 10861  // of authority
 10862  // (https://developers.google.com/cloud-search/docs/guides/delegation/).
 10863  func (r *QuerySourcesService) List() *QuerySourcesListCall {
 10864  	c := &QuerySourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 10865  	return c
 10866  }
 10867  
 10868  // PageToken sets the optional parameter "pageToken": Number of sources to
 10869  // return in the response.
 10870  func (c *QuerySourcesListCall) PageToken(pageToken string) *QuerySourcesListCall {
 10871  	c.urlParams_.Set("pageToken", pageToken)
 10872  	return c
 10873  }
 10874  
 10875  // RequestOptionsDebugOptionsEnableDebugging sets the optional parameter
 10876  // "requestOptions.debugOptions.enableDebugging": If you are asked by Google to
 10877  // help with debugging, set this field. Otherwise, ignore this field.
 10878  func (c *QuerySourcesListCall) RequestOptionsDebugOptionsEnableDebugging(requestOptionsDebugOptionsEnableDebugging bool) *QuerySourcesListCall {
 10879  	c.urlParams_.Set("requestOptions.debugOptions.enableDebugging", fmt.Sprint(requestOptionsDebugOptionsEnableDebugging))
 10880  	return c
 10881  }
 10882  
 10883  // RequestOptionsLanguageCode sets the optional parameter
 10884  // "requestOptions.languageCode": The BCP-47 language code, such as "en-US" or
 10885  // "sr-Latn". For more information, see
 10886  // http://www.unicode.org/reports/tr35/#Unicode_locale_identifier. For
 10887  // translations. Set this field using the language set in browser or for the
 10888  // page. In the event that the user's language preference is known, set this
 10889  // field to the known user language. When specified, the documents in search
 10890  // results are biased towards the specified language. The Suggest API uses this
 10891  // field as a hint to make better third-party autocomplete predictions.
 10892  func (c *QuerySourcesListCall) RequestOptionsLanguageCode(requestOptionsLanguageCode string) *QuerySourcesListCall {
 10893  	c.urlParams_.Set("requestOptions.languageCode", requestOptionsLanguageCode)
 10894  	return c
 10895  }
 10896  
 10897  // RequestOptionsSearchApplicationId sets the optional parameter
 10898  // "requestOptions.searchApplicationId": The ID generated when you create a
 10899  // search application using the admin console
 10900  // (https://support.google.com/a/answer/9043922).
 10901  func (c *QuerySourcesListCall) RequestOptionsSearchApplicationId(requestOptionsSearchApplicationId string) *QuerySourcesListCall {
 10902  	c.urlParams_.Set("requestOptions.searchApplicationId", requestOptionsSearchApplicationId)
 10903  	return c
 10904  }
 10905  
 10906  // RequestOptionsTimeZone sets the optional parameter
 10907  // "requestOptions.timeZone": Current user's time zone id, such as
 10908  // "America/Los_Angeles" or "Australia/Sydney". These IDs are defined by
 10909  // Unicode Common Locale Data Repository (CLDR) (http://cldr.unicode.org/)
 10910  // project, and currently available in the file timezone.xml
 10911  // (http://unicode.org/repos/cldr/trunk/common/bcp47/timezone.xml). This field
 10912  // is used to correctly interpret date and time queries. If this field is not
 10913  // specified, the default time zone (UTC) is used.
 10914  func (c *QuerySourcesListCall) RequestOptionsTimeZone(requestOptionsTimeZone string) *QuerySourcesListCall {
 10915  	c.urlParams_.Set("requestOptions.timeZone", requestOptionsTimeZone)
 10916  	return c
 10917  }
 10918  
 10919  // Fields allows partial responses to be retrieved. See
 10920  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 10921  // details.
 10922  func (c *QuerySourcesListCall) Fields(s ...googleapi.Field) *QuerySourcesListCall {
 10923  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 10924  	return c
 10925  }
 10926  
 10927  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 10928  // object's ETag matches the given value. This is useful for getting updates
 10929  // only after the object has changed since the last request.
 10930  func (c *QuerySourcesListCall) IfNoneMatch(entityTag string) *QuerySourcesListCall {
 10931  	c.ifNoneMatch_ = entityTag
 10932  	return c
 10933  }
 10934  
 10935  // Context sets the context to be used in this call's Do method.
 10936  func (c *QuerySourcesListCall) Context(ctx context.Context) *QuerySourcesListCall {
 10937  	c.ctx_ = ctx
 10938  	return c
 10939  }
 10940  
 10941  // Header returns a http.Header that can be modified by the caller to add
 10942  // headers to the request.
 10943  func (c *QuerySourcesListCall) Header() http.Header {
 10944  	if c.header_ == nil {
 10945  		c.header_ = make(http.Header)
 10946  	}
 10947  	return c.header_
 10948  }
 10949  
 10950  func (c *QuerySourcesListCall) doRequest(alt string) (*http.Response, error) {
 10951  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 10952  	if c.ifNoneMatch_ != "" {
 10953  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 10954  	}
 10955  	var body io.Reader = nil
 10956  	c.urlParams_.Set("alt", alt)
 10957  	c.urlParams_.Set("prettyPrint", "false")
 10958  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/query/sources")
 10959  	urls += "?" + c.urlParams_.Encode()
 10960  	req, err := http.NewRequest("GET", urls, body)
 10961  	if err != nil {
 10962  		return nil, err
 10963  	}
 10964  	req.Header = reqHeaders
 10965  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 10966  }
 10967  
 10968  // Do executes the "cloudsearch.query.sources.list" call.
 10969  // Any non-2xx status code is an error. Response headers are in either
 10970  // *ListQuerySourcesResponse.ServerResponse.Header or (if a response was
 10971  // returned at all) in error.(*googleapi.Error).Header. Use
 10972  // googleapi.IsNotModified to check whether the returned error was because
 10973  // http.StatusNotModified was returned.
 10974  func (c *QuerySourcesListCall) Do(opts ...googleapi.CallOption) (*ListQuerySourcesResponse, error) {
 10975  	gensupport.SetOptions(c.urlParams_, opts...)
 10976  	res, err := c.doRequest("json")
 10977  	if res != nil && res.StatusCode == http.StatusNotModified {
 10978  		if res.Body != nil {
 10979  			res.Body.Close()
 10980  		}
 10981  		return nil, gensupport.WrapError(&googleapi.Error{
 10982  			Code:   res.StatusCode,
 10983  			Header: res.Header,
 10984  		})
 10985  	}
 10986  	if err != nil {
 10987  		return nil, err
 10988  	}
 10989  	defer googleapi.CloseBody(res)
 10990  	if err := googleapi.CheckResponse(res); err != nil {
 10991  		return nil, gensupport.WrapError(err)
 10992  	}
 10993  	ret := &ListQuerySourcesResponse{
 10994  		ServerResponse: googleapi.ServerResponse{
 10995  			Header:         res.Header,
 10996  			HTTPStatusCode: res.StatusCode,
 10997  		},
 10998  	}
 10999  	target := &ret
 11000  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11001  		return nil, err
 11002  	}
 11003  	return ret, nil
 11004  }
 11005  
 11006  // Pages invokes f for each page of results.
 11007  // A non-nil error returned from f will halt the iteration.
 11008  // The provided context supersedes any context provided to the Context method.
 11009  func (c *QuerySourcesListCall) Pages(ctx context.Context, f func(*ListQuerySourcesResponse) error) error {
 11010  	c.ctx_ = ctx
 11011  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11012  	for {
 11013  		x, err := c.Do()
 11014  		if err != nil {
 11015  			return err
 11016  		}
 11017  		if err := f(x); err != nil {
 11018  			return err
 11019  		}
 11020  		if x.NextPageToken == "" {
 11021  			return nil
 11022  		}
 11023  		c.PageToken(x.NextPageToken)
 11024  	}
 11025  }
 11026  
 11027  type SettingsGetCustomerCall struct {
 11028  	s            *Service
 11029  	urlParams_   gensupport.URLParams
 11030  	ifNoneMatch_ string
 11031  	ctx_         context.Context
 11032  	header_      http.Header
 11033  }
 11034  
 11035  // GetCustomer: Get customer settings. **Note:** This API requires an admin
 11036  // account to execute.
 11037  func (r *SettingsService) GetCustomer() *SettingsGetCustomerCall {
 11038  	c := &SettingsGetCustomerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11039  	return c
 11040  }
 11041  
 11042  // Fields allows partial responses to be retrieved. See
 11043  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11044  // details.
 11045  func (c *SettingsGetCustomerCall) Fields(s ...googleapi.Field) *SettingsGetCustomerCall {
 11046  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11047  	return c
 11048  }
 11049  
 11050  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11051  // object's ETag matches the given value. This is useful for getting updates
 11052  // only after the object has changed since the last request.
 11053  func (c *SettingsGetCustomerCall) IfNoneMatch(entityTag string) *SettingsGetCustomerCall {
 11054  	c.ifNoneMatch_ = entityTag
 11055  	return c
 11056  }
 11057  
 11058  // Context sets the context to be used in this call's Do method.
 11059  func (c *SettingsGetCustomerCall) Context(ctx context.Context) *SettingsGetCustomerCall {
 11060  	c.ctx_ = ctx
 11061  	return c
 11062  }
 11063  
 11064  // Header returns a http.Header that can be modified by the caller to add
 11065  // headers to the request.
 11066  func (c *SettingsGetCustomerCall) Header() http.Header {
 11067  	if c.header_ == nil {
 11068  		c.header_ = make(http.Header)
 11069  	}
 11070  	return c.header_
 11071  }
 11072  
 11073  func (c *SettingsGetCustomerCall) doRequest(alt string) (*http.Response, error) {
 11074  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11075  	if c.ifNoneMatch_ != "" {
 11076  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11077  	}
 11078  	var body io.Reader = nil
 11079  	c.urlParams_.Set("alt", alt)
 11080  	c.urlParams_.Set("prettyPrint", "false")
 11081  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/customer")
 11082  	urls += "?" + c.urlParams_.Encode()
 11083  	req, err := http.NewRequest("GET", urls, body)
 11084  	if err != nil {
 11085  		return nil, err
 11086  	}
 11087  	req.Header = reqHeaders
 11088  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11089  }
 11090  
 11091  // Do executes the "cloudsearch.settings.getCustomer" call.
 11092  // Any non-2xx status code is an error. Response headers are in either
 11093  // *CustomerSettings.ServerResponse.Header or (if a response was returned at
 11094  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11095  // check whether the returned error was because http.StatusNotModified was
 11096  // returned.
 11097  func (c *SettingsGetCustomerCall) Do(opts ...googleapi.CallOption) (*CustomerSettings, error) {
 11098  	gensupport.SetOptions(c.urlParams_, opts...)
 11099  	res, err := c.doRequest("json")
 11100  	if res != nil && res.StatusCode == http.StatusNotModified {
 11101  		if res.Body != nil {
 11102  			res.Body.Close()
 11103  		}
 11104  		return nil, gensupport.WrapError(&googleapi.Error{
 11105  			Code:   res.StatusCode,
 11106  			Header: res.Header,
 11107  		})
 11108  	}
 11109  	if err != nil {
 11110  		return nil, err
 11111  	}
 11112  	defer googleapi.CloseBody(res)
 11113  	if err := googleapi.CheckResponse(res); err != nil {
 11114  		return nil, gensupport.WrapError(err)
 11115  	}
 11116  	ret := &CustomerSettings{
 11117  		ServerResponse: googleapi.ServerResponse{
 11118  			Header:         res.Header,
 11119  			HTTPStatusCode: res.StatusCode,
 11120  		},
 11121  	}
 11122  	target := &ret
 11123  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11124  		return nil, err
 11125  	}
 11126  	return ret, nil
 11127  }
 11128  
 11129  type SettingsUpdateCustomerCall struct {
 11130  	s                *Service
 11131  	customersettings *CustomerSettings
 11132  	urlParams_       gensupport.URLParams
 11133  	ctx_             context.Context
 11134  	header_          http.Header
 11135  }
 11136  
 11137  // UpdateCustomer: Update customer settings. **Note:** This API requires an
 11138  // admin account to execute.
 11139  func (r *SettingsService) UpdateCustomer(customersettings *CustomerSettings) *SettingsUpdateCustomerCall {
 11140  	c := &SettingsUpdateCustomerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11141  	c.customersettings = customersettings
 11142  	return c
 11143  }
 11144  
 11145  // UpdateMask sets the optional parameter "updateMask": Update mask to control
 11146  // which fields get updated. If you specify a field in the update_mask but
 11147  // don't specify its value here, that field will be cleared. If the mask is not
 11148  // present or empty, all fields will be updated. Currently supported field
 11149  // paths: vpc_settings and audit_logging_settings
 11150  func (c *SettingsUpdateCustomerCall) UpdateMask(updateMask string) *SettingsUpdateCustomerCall {
 11151  	c.urlParams_.Set("updateMask", updateMask)
 11152  	return c
 11153  }
 11154  
 11155  // Fields allows partial responses to be retrieved. See
 11156  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11157  // details.
 11158  func (c *SettingsUpdateCustomerCall) Fields(s ...googleapi.Field) *SettingsUpdateCustomerCall {
 11159  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11160  	return c
 11161  }
 11162  
 11163  // Context sets the context to be used in this call's Do method.
 11164  func (c *SettingsUpdateCustomerCall) Context(ctx context.Context) *SettingsUpdateCustomerCall {
 11165  	c.ctx_ = ctx
 11166  	return c
 11167  }
 11168  
 11169  // Header returns a http.Header that can be modified by the caller to add
 11170  // headers to the request.
 11171  func (c *SettingsUpdateCustomerCall) Header() http.Header {
 11172  	if c.header_ == nil {
 11173  		c.header_ = make(http.Header)
 11174  	}
 11175  	return c.header_
 11176  }
 11177  
 11178  func (c *SettingsUpdateCustomerCall) doRequest(alt string) (*http.Response, error) {
 11179  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11180  	var body io.Reader = nil
 11181  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.customersettings)
 11182  	if err != nil {
 11183  		return nil, err
 11184  	}
 11185  	c.urlParams_.Set("alt", alt)
 11186  	c.urlParams_.Set("prettyPrint", "false")
 11187  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/customer")
 11188  	urls += "?" + c.urlParams_.Encode()
 11189  	req, err := http.NewRequest("PATCH", urls, body)
 11190  	if err != nil {
 11191  		return nil, err
 11192  	}
 11193  	req.Header = reqHeaders
 11194  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11195  }
 11196  
 11197  // Do executes the "cloudsearch.settings.updateCustomer" call.
 11198  // Any non-2xx status code is an error. Response headers are in either
 11199  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11200  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11201  // whether the returned error was because http.StatusNotModified was returned.
 11202  func (c *SettingsUpdateCustomerCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11203  	gensupport.SetOptions(c.urlParams_, opts...)
 11204  	res, err := c.doRequest("json")
 11205  	if res != nil && res.StatusCode == http.StatusNotModified {
 11206  		if res.Body != nil {
 11207  			res.Body.Close()
 11208  		}
 11209  		return nil, gensupport.WrapError(&googleapi.Error{
 11210  			Code:   res.StatusCode,
 11211  			Header: res.Header,
 11212  		})
 11213  	}
 11214  	if err != nil {
 11215  		return nil, err
 11216  	}
 11217  	defer googleapi.CloseBody(res)
 11218  	if err := googleapi.CheckResponse(res); err != nil {
 11219  		return nil, gensupport.WrapError(err)
 11220  	}
 11221  	ret := &Operation{
 11222  		ServerResponse: googleapi.ServerResponse{
 11223  			Header:         res.Header,
 11224  			HTTPStatusCode: res.StatusCode,
 11225  		},
 11226  	}
 11227  	target := &ret
 11228  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11229  		return nil, err
 11230  	}
 11231  	return ret, nil
 11232  }
 11233  
 11234  type SettingsDatasourcesCreateCall struct {
 11235  	s          *Service
 11236  	datasource *DataSource
 11237  	urlParams_ gensupport.URLParams
 11238  	ctx_       context.Context
 11239  	header_    http.Header
 11240  }
 11241  
 11242  // Create: Creates a datasource. **Note:** This API requires an admin account
 11243  // to execute.
 11244  func (r *SettingsDatasourcesService) Create(datasource *DataSource) *SettingsDatasourcesCreateCall {
 11245  	c := &SettingsDatasourcesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11246  	c.datasource = datasource
 11247  	return c
 11248  }
 11249  
 11250  // Fields allows partial responses to be retrieved. See
 11251  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11252  // details.
 11253  func (c *SettingsDatasourcesCreateCall) Fields(s ...googleapi.Field) *SettingsDatasourcesCreateCall {
 11254  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11255  	return c
 11256  }
 11257  
 11258  // Context sets the context to be used in this call's Do method.
 11259  func (c *SettingsDatasourcesCreateCall) Context(ctx context.Context) *SettingsDatasourcesCreateCall {
 11260  	c.ctx_ = ctx
 11261  	return c
 11262  }
 11263  
 11264  // Header returns a http.Header that can be modified by the caller to add
 11265  // headers to the request.
 11266  func (c *SettingsDatasourcesCreateCall) Header() http.Header {
 11267  	if c.header_ == nil {
 11268  		c.header_ = make(http.Header)
 11269  	}
 11270  	return c.header_
 11271  }
 11272  
 11273  func (c *SettingsDatasourcesCreateCall) doRequest(alt string) (*http.Response, error) {
 11274  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11275  	var body io.Reader = nil
 11276  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.datasource)
 11277  	if err != nil {
 11278  		return nil, err
 11279  	}
 11280  	c.urlParams_.Set("alt", alt)
 11281  	c.urlParams_.Set("prettyPrint", "false")
 11282  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/datasources")
 11283  	urls += "?" + c.urlParams_.Encode()
 11284  	req, err := http.NewRequest("POST", urls, body)
 11285  	if err != nil {
 11286  		return nil, err
 11287  	}
 11288  	req.Header = reqHeaders
 11289  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11290  }
 11291  
 11292  // Do executes the "cloudsearch.settings.datasources.create" call.
 11293  // Any non-2xx status code is an error. Response headers are in either
 11294  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11295  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11296  // whether the returned error was because http.StatusNotModified was returned.
 11297  func (c *SettingsDatasourcesCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11298  	gensupport.SetOptions(c.urlParams_, opts...)
 11299  	res, err := c.doRequest("json")
 11300  	if res != nil && res.StatusCode == http.StatusNotModified {
 11301  		if res.Body != nil {
 11302  			res.Body.Close()
 11303  		}
 11304  		return nil, gensupport.WrapError(&googleapi.Error{
 11305  			Code:   res.StatusCode,
 11306  			Header: res.Header,
 11307  		})
 11308  	}
 11309  	if err != nil {
 11310  		return nil, err
 11311  	}
 11312  	defer googleapi.CloseBody(res)
 11313  	if err := googleapi.CheckResponse(res); err != nil {
 11314  		return nil, gensupport.WrapError(err)
 11315  	}
 11316  	ret := &Operation{
 11317  		ServerResponse: googleapi.ServerResponse{
 11318  			Header:         res.Header,
 11319  			HTTPStatusCode: res.StatusCode,
 11320  		},
 11321  	}
 11322  	target := &ret
 11323  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11324  		return nil, err
 11325  	}
 11326  	return ret, nil
 11327  }
 11328  
 11329  type SettingsDatasourcesDeleteCall struct {
 11330  	s          *Service
 11331  	name       string
 11332  	urlParams_ gensupport.URLParams
 11333  	ctx_       context.Context
 11334  	header_    http.Header
 11335  }
 11336  
 11337  // Delete: Deletes a datasource. **Note:** This API requires an admin account
 11338  // to execute.
 11339  //
 11340  // - name: The name of the datasource. Format: datasources/{source_id}.
 11341  func (r *SettingsDatasourcesService) Delete(name string) *SettingsDatasourcesDeleteCall {
 11342  	c := &SettingsDatasourcesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11343  	c.name = name
 11344  	return c
 11345  }
 11346  
 11347  // DebugOptionsEnableDebugging sets the optional parameter
 11348  // "debugOptions.enableDebugging": If you are asked by Google to help with
 11349  // debugging, set this field. Otherwise, ignore this field.
 11350  func (c *SettingsDatasourcesDeleteCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsDatasourcesDeleteCall {
 11351  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
 11352  	return c
 11353  }
 11354  
 11355  // Fields allows partial responses to be retrieved. See
 11356  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11357  // details.
 11358  func (c *SettingsDatasourcesDeleteCall) Fields(s ...googleapi.Field) *SettingsDatasourcesDeleteCall {
 11359  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11360  	return c
 11361  }
 11362  
 11363  // Context sets the context to be used in this call's Do method.
 11364  func (c *SettingsDatasourcesDeleteCall) Context(ctx context.Context) *SettingsDatasourcesDeleteCall {
 11365  	c.ctx_ = ctx
 11366  	return c
 11367  }
 11368  
 11369  // Header returns a http.Header that can be modified by the caller to add
 11370  // headers to the request.
 11371  func (c *SettingsDatasourcesDeleteCall) Header() http.Header {
 11372  	if c.header_ == nil {
 11373  		c.header_ = make(http.Header)
 11374  	}
 11375  	return c.header_
 11376  }
 11377  
 11378  func (c *SettingsDatasourcesDeleteCall) doRequest(alt string) (*http.Response, error) {
 11379  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11380  	var body io.Reader = nil
 11381  	c.urlParams_.Set("alt", alt)
 11382  	c.urlParams_.Set("prettyPrint", "false")
 11383  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/{+name}")
 11384  	urls += "?" + c.urlParams_.Encode()
 11385  	req, err := http.NewRequest("DELETE", urls, body)
 11386  	if err != nil {
 11387  		return nil, err
 11388  	}
 11389  	req.Header = reqHeaders
 11390  	googleapi.Expand(req.URL, map[string]string{
 11391  		"name": c.name,
 11392  	})
 11393  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11394  }
 11395  
 11396  // Do executes the "cloudsearch.settings.datasources.delete" call.
 11397  // Any non-2xx status code is an error. Response headers are in either
 11398  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11399  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11400  // whether the returned error was because http.StatusNotModified was returned.
 11401  func (c *SettingsDatasourcesDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11402  	gensupport.SetOptions(c.urlParams_, opts...)
 11403  	res, err := c.doRequest("json")
 11404  	if res != nil && res.StatusCode == http.StatusNotModified {
 11405  		if res.Body != nil {
 11406  			res.Body.Close()
 11407  		}
 11408  		return nil, gensupport.WrapError(&googleapi.Error{
 11409  			Code:   res.StatusCode,
 11410  			Header: res.Header,
 11411  		})
 11412  	}
 11413  	if err != nil {
 11414  		return nil, err
 11415  	}
 11416  	defer googleapi.CloseBody(res)
 11417  	if err := googleapi.CheckResponse(res); err != nil {
 11418  		return nil, gensupport.WrapError(err)
 11419  	}
 11420  	ret := &Operation{
 11421  		ServerResponse: googleapi.ServerResponse{
 11422  			Header:         res.Header,
 11423  			HTTPStatusCode: res.StatusCode,
 11424  		},
 11425  	}
 11426  	target := &ret
 11427  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11428  		return nil, err
 11429  	}
 11430  	return ret, nil
 11431  }
 11432  
 11433  type SettingsDatasourcesGetCall struct {
 11434  	s            *Service
 11435  	name         string
 11436  	urlParams_   gensupport.URLParams
 11437  	ifNoneMatch_ string
 11438  	ctx_         context.Context
 11439  	header_      http.Header
 11440  }
 11441  
 11442  // Get: Gets a datasource. **Note:** This API requires an admin account to
 11443  // execute.
 11444  //
 11445  //   - name: The name of the datasource resource. Format:
 11446  //     datasources/{source_id}.
 11447  func (r *SettingsDatasourcesService) Get(name string) *SettingsDatasourcesGetCall {
 11448  	c := &SettingsDatasourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11449  	c.name = name
 11450  	return c
 11451  }
 11452  
 11453  // DebugOptionsEnableDebugging sets the optional parameter
 11454  // "debugOptions.enableDebugging": If you are asked by Google to help with
 11455  // debugging, set this field. Otherwise, ignore this field.
 11456  func (c *SettingsDatasourcesGetCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsDatasourcesGetCall {
 11457  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
 11458  	return c
 11459  }
 11460  
 11461  // Fields allows partial responses to be retrieved. See
 11462  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11463  // details.
 11464  func (c *SettingsDatasourcesGetCall) Fields(s ...googleapi.Field) *SettingsDatasourcesGetCall {
 11465  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11466  	return c
 11467  }
 11468  
 11469  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11470  // object's ETag matches the given value. This is useful for getting updates
 11471  // only after the object has changed since the last request.
 11472  func (c *SettingsDatasourcesGetCall) IfNoneMatch(entityTag string) *SettingsDatasourcesGetCall {
 11473  	c.ifNoneMatch_ = entityTag
 11474  	return c
 11475  }
 11476  
 11477  // Context sets the context to be used in this call's Do method.
 11478  func (c *SettingsDatasourcesGetCall) Context(ctx context.Context) *SettingsDatasourcesGetCall {
 11479  	c.ctx_ = ctx
 11480  	return c
 11481  }
 11482  
 11483  // Header returns a http.Header that can be modified by the caller to add
 11484  // headers to the request.
 11485  func (c *SettingsDatasourcesGetCall) Header() http.Header {
 11486  	if c.header_ == nil {
 11487  		c.header_ = make(http.Header)
 11488  	}
 11489  	return c.header_
 11490  }
 11491  
 11492  func (c *SettingsDatasourcesGetCall) doRequest(alt string) (*http.Response, error) {
 11493  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11494  	if c.ifNoneMatch_ != "" {
 11495  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11496  	}
 11497  	var body io.Reader = nil
 11498  	c.urlParams_.Set("alt", alt)
 11499  	c.urlParams_.Set("prettyPrint", "false")
 11500  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/{+name}")
 11501  	urls += "?" + c.urlParams_.Encode()
 11502  	req, err := http.NewRequest("GET", urls, body)
 11503  	if err != nil {
 11504  		return nil, err
 11505  	}
 11506  	req.Header = reqHeaders
 11507  	googleapi.Expand(req.URL, map[string]string{
 11508  		"name": c.name,
 11509  	})
 11510  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11511  }
 11512  
 11513  // Do executes the "cloudsearch.settings.datasources.get" call.
 11514  // Any non-2xx status code is an error. Response headers are in either
 11515  // *DataSource.ServerResponse.Header or (if a response was returned at all) in
 11516  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11517  // whether the returned error was because http.StatusNotModified was returned.
 11518  func (c *SettingsDatasourcesGetCall) Do(opts ...googleapi.CallOption) (*DataSource, error) {
 11519  	gensupport.SetOptions(c.urlParams_, opts...)
 11520  	res, err := c.doRequest("json")
 11521  	if res != nil && res.StatusCode == http.StatusNotModified {
 11522  		if res.Body != nil {
 11523  			res.Body.Close()
 11524  		}
 11525  		return nil, gensupport.WrapError(&googleapi.Error{
 11526  			Code:   res.StatusCode,
 11527  			Header: res.Header,
 11528  		})
 11529  	}
 11530  	if err != nil {
 11531  		return nil, err
 11532  	}
 11533  	defer googleapi.CloseBody(res)
 11534  	if err := googleapi.CheckResponse(res); err != nil {
 11535  		return nil, gensupport.WrapError(err)
 11536  	}
 11537  	ret := &DataSource{
 11538  		ServerResponse: googleapi.ServerResponse{
 11539  			Header:         res.Header,
 11540  			HTTPStatusCode: res.StatusCode,
 11541  		},
 11542  	}
 11543  	target := &ret
 11544  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11545  		return nil, err
 11546  	}
 11547  	return ret, nil
 11548  }
 11549  
 11550  type SettingsDatasourcesListCall struct {
 11551  	s            *Service
 11552  	urlParams_   gensupport.URLParams
 11553  	ifNoneMatch_ string
 11554  	ctx_         context.Context
 11555  	header_      http.Header
 11556  }
 11557  
 11558  // List: Lists datasources. **Note:** This API requires an admin account to
 11559  // execute.
 11560  func (r *SettingsDatasourcesService) List() *SettingsDatasourcesListCall {
 11561  	c := &SettingsDatasourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11562  	return c
 11563  }
 11564  
 11565  // DebugOptionsEnableDebugging sets the optional parameter
 11566  // "debugOptions.enableDebugging": If you are asked by Google to help with
 11567  // debugging, set this field. Otherwise, ignore this field.
 11568  func (c *SettingsDatasourcesListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsDatasourcesListCall {
 11569  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
 11570  	return c
 11571  }
 11572  
 11573  // PageSize sets the optional parameter "pageSize": Maximum number of
 11574  // datasources to fetch in a request. The max value is 1000. The default value
 11575  // is 1000.
 11576  func (c *SettingsDatasourcesListCall) PageSize(pageSize int64) *SettingsDatasourcesListCall {
 11577  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 11578  	return c
 11579  }
 11580  
 11581  // PageToken sets the optional parameter "pageToken": Starting index of the
 11582  // results.
 11583  func (c *SettingsDatasourcesListCall) PageToken(pageToken string) *SettingsDatasourcesListCall {
 11584  	c.urlParams_.Set("pageToken", pageToken)
 11585  	return c
 11586  }
 11587  
 11588  // Fields allows partial responses to be retrieved. See
 11589  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11590  // details.
 11591  func (c *SettingsDatasourcesListCall) Fields(s ...googleapi.Field) *SettingsDatasourcesListCall {
 11592  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11593  	return c
 11594  }
 11595  
 11596  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 11597  // object's ETag matches the given value. This is useful for getting updates
 11598  // only after the object has changed since the last request.
 11599  func (c *SettingsDatasourcesListCall) IfNoneMatch(entityTag string) *SettingsDatasourcesListCall {
 11600  	c.ifNoneMatch_ = entityTag
 11601  	return c
 11602  }
 11603  
 11604  // Context sets the context to be used in this call's Do method.
 11605  func (c *SettingsDatasourcesListCall) Context(ctx context.Context) *SettingsDatasourcesListCall {
 11606  	c.ctx_ = ctx
 11607  	return c
 11608  }
 11609  
 11610  // Header returns a http.Header that can be modified by the caller to add
 11611  // headers to the request.
 11612  func (c *SettingsDatasourcesListCall) Header() http.Header {
 11613  	if c.header_ == nil {
 11614  		c.header_ = make(http.Header)
 11615  	}
 11616  	return c.header_
 11617  }
 11618  
 11619  func (c *SettingsDatasourcesListCall) doRequest(alt string) (*http.Response, error) {
 11620  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 11621  	if c.ifNoneMatch_ != "" {
 11622  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 11623  	}
 11624  	var body io.Reader = nil
 11625  	c.urlParams_.Set("alt", alt)
 11626  	c.urlParams_.Set("prettyPrint", "false")
 11627  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/datasources")
 11628  	urls += "?" + c.urlParams_.Encode()
 11629  	req, err := http.NewRequest("GET", urls, body)
 11630  	if err != nil {
 11631  		return nil, err
 11632  	}
 11633  	req.Header = reqHeaders
 11634  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11635  }
 11636  
 11637  // Do executes the "cloudsearch.settings.datasources.list" call.
 11638  // Any non-2xx status code is an error. Response headers are in either
 11639  // *ListDataSourceResponse.ServerResponse.Header or (if a response was returned
 11640  // at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 11641  // check whether the returned error was because http.StatusNotModified was
 11642  // returned.
 11643  func (c *SettingsDatasourcesListCall) Do(opts ...googleapi.CallOption) (*ListDataSourceResponse, error) {
 11644  	gensupport.SetOptions(c.urlParams_, opts...)
 11645  	res, err := c.doRequest("json")
 11646  	if res != nil && res.StatusCode == http.StatusNotModified {
 11647  		if res.Body != nil {
 11648  			res.Body.Close()
 11649  		}
 11650  		return nil, gensupport.WrapError(&googleapi.Error{
 11651  			Code:   res.StatusCode,
 11652  			Header: res.Header,
 11653  		})
 11654  	}
 11655  	if err != nil {
 11656  		return nil, err
 11657  	}
 11658  	defer googleapi.CloseBody(res)
 11659  	if err := googleapi.CheckResponse(res); err != nil {
 11660  		return nil, gensupport.WrapError(err)
 11661  	}
 11662  	ret := &ListDataSourceResponse{
 11663  		ServerResponse: googleapi.ServerResponse{
 11664  			Header:         res.Header,
 11665  			HTTPStatusCode: res.StatusCode,
 11666  		},
 11667  	}
 11668  	target := &ret
 11669  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11670  		return nil, err
 11671  	}
 11672  	return ret, nil
 11673  }
 11674  
 11675  // Pages invokes f for each page of results.
 11676  // A non-nil error returned from f will halt the iteration.
 11677  // The provided context supersedes any context provided to the Context method.
 11678  func (c *SettingsDatasourcesListCall) Pages(ctx context.Context, f func(*ListDataSourceResponse) error) error {
 11679  	c.ctx_ = ctx
 11680  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 11681  	for {
 11682  		x, err := c.Do()
 11683  		if err != nil {
 11684  			return err
 11685  		}
 11686  		if err := f(x); err != nil {
 11687  			return err
 11688  		}
 11689  		if x.NextPageToken == "" {
 11690  			return nil
 11691  		}
 11692  		c.PageToken(x.NextPageToken)
 11693  	}
 11694  }
 11695  
 11696  type SettingsDatasourcesPatchCall struct {
 11697  	s          *Service
 11698  	name       string
 11699  	datasource *DataSource
 11700  	urlParams_ gensupport.URLParams
 11701  	ctx_       context.Context
 11702  	header_    http.Header
 11703  }
 11704  
 11705  // Patch: Updates a datasource. **Note:** This API requires an admin account to
 11706  // execute.
 11707  //
 11708  //   - name: The name of the datasource resource. Format:
 11709  //     datasources/{source_id}. The name is ignored when creating a datasource.
 11710  func (r *SettingsDatasourcesService) Patch(name string, datasource *DataSource) *SettingsDatasourcesPatchCall {
 11711  	c := &SettingsDatasourcesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11712  	c.name = name
 11713  	c.datasource = datasource
 11714  	return c
 11715  }
 11716  
 11717  // DebugOptionsEnableDebugging sets the optional parameter
 11718  // "debugOptions.enableDebugging": If you are asked by Google to help with
 11719  // debugging, set this field. Otherwise, ignore this field.
 11720  func (c *SettingsDatasourcesPatchCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsDatasourcesPatchCall {
 11721  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
 11722  	return c
 11723  }
 11724  
 11725  // UpdateMask sets the optional parameter "updateMask": Only applies to
 11726  // `settings.datasources.patch`
 11727  // (https://developers.google.com/cloud-search/docs/reference/rest/v1/settings.datasources/patch).
 11728  // Update mask to control which fields to update. Example field paths: `name`,
 11729  // `displayName`. * If `update_mask` is non-empty, then only the fields
 11730  // specified in the `update_mask` are updated. * If you specify a field in the
 11731  // `update_mask`, but don't specify its value in the source, that field is
 11732  // cleared. * If the `update_mask` is not present or empty or has the value
 11733  // `*`, then all fields are updated.
 11734  func (c *SettingsDatasourcesPatchCall) UpdateMask(updateMask string) *SettingsDatasourcesPatchCall {
 11735  	c.urlParams_.Set("updateMask", updateMask)
 11736  	return c
 11737  }
 11738  
 11739  // Fields allows partial responses to be retrieved. See
 11740  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11741  // details.
 11742  func (c *SettingsDatasourcesPatchCall) Fields(s ...googleapi.Field) *SettingsDatasourcesPatchCall {
 11743  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11744  	return c
 11745  }
 11746  
 11747  // Context sets the context to be used in this call's Do method.
 11748  func (c *SettingsDatasourcesPatchCall) Context(ctx context.Context) *SettingsDatasourcesPatchCall {
 11749  	c.ctx_ = ctx
 11750  	return c
 11751  }
 11752  
 11753  // Header returns a http.Header that can be modified by the caller to add
 11754  // headers to the request.
 11755  func (c *SettingsDatasourcesPatchCall) Header() http.Header {
 11756  	if c.header_ == nil {
 11757  		c.header_ = make(http.Header)
 11758  	}
 11759  	return c.header_
 11760  }
 11761  
 11762  func (c *SettingsDatasourcesPatchCall) doRequest(alt string) (*http.Response, error) {
 11763  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11764  	var body io.Reader = nil
 11765  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.datasource)
 11766  	if err != nil {
 11767  		return nil, err
 11768  	}
 11769  	c.urlParams_.Set("alt", alt)
 11770  	c.urlParams_.Set("prettyPrint", "false")
 11771  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/{+name}")
 11772  	urls += "?" + c.urlParams_.Encode()
 11773  	req, err := http.NewRequest("PATCH", urls, body)
 11774  	if err != nil {
 11775  		return nil, err
 11776  	}
 11777  	req.Header = reqHeaders
 11778  	googleapi.Expand(req.URL, map[string]string{
 11779  		"name": c.name,
 11780  	})
 11781  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11782  }
 11783  
 11784  // Do executes the "cloudsearch.settings.datasources.patch" call.
 11785  // Any non-2xx status code is an error. Response headers are in either
 11786  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11787  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11788  // whether the returned error was because http.StatusNotModified was returned.
 11789  func (c *SettingsDatasourcesPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11790  	gensupport.SetOptions(c.urlParams_, opts...)
 11791  	res, err := c.doRequest("json")
 11792  	if res != nil && res.StatusCode == http.StatusNotModified {
 11793  		if res.Body != nil {
 11794  			res.Body.Close()
 11795  		}
 11796  		return nil, gensupport.WrapError(&googleapi.Error{
 11797  			Code:   res.StatusCode,
 11798  			Header: res.Header,
 11799  		})
 11800  	}
 11801  	if err != nil {
 11802  		return nil, err
 11803  	}
 11804  	defer googleapi.CloseBody(res)
 11805  	if err := googleapi.CheckResponse(res); err != nil {
 11806  		return nil, gensupport.WrapError(err)
 11807  	}
 11808  	ret := &Operation{
 11809  		ServerResponse: googleapi.ServerResponse{
 11810  			Header:         res.Header,
 11811  			HTTPStatusCode: res.StatusCode,
 11812  		},
 11813  	}
 11814  	target := &ret
 11815  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11816  		return nil, err
 11817  	}
 11818  	return ret, nil
 11819  }
 11820  
 11821  type SettingsDatasourcesUpdateCall struct {
 11822  	s                       *Service
 11823  	name                    string
 11824  	updatedatasourcerequest *UpdateDataSourceRequest
 11825  	urlParams_              gensupport.URLParams
 11826  	ctx_                    context.Context
 11827  	header_                 http.Header
 11828  }
 11829  
 11830  // Update: Updates a datasource. **Note:** This API requires an admin account
 11831  // to execute.
 11832  //
 11833  //   - name: The name of the datasource resource. Format:
 11834  //     datasources/{source_id}. The name is ignored when creating a datasource.
 11835  func (r *SettingsDatasourcesService) Update(name string, updatedatasourcerequest *UpdateDataSourceRequest) *SettingsDatasourcesUpdateCall {
 11836  	c := &SettingsDatasourcesUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11837  	c.name = name
 11838  	c.updatedatasourcerequest = updatedatasourcerequest
 11839  	return c
 11840  }
 11841  
 11842  // Fields allows partial responses to be retrieved. See
 11843  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11844  // details.
 11845  func (c *SettingsDatasourcesUpdateCall) Fields(s ...googleapi.Field) *SettingsDatasourcesUpdateCall {
 11846  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11847  	return c
 11848  }
 11849  
 11850  // Context sets the context to be used in this call's Do method.
 11851  func (c *SettingsDatasourcesUpdateCall) Context(ctx context.Context) *SettingsDatasourcesUpdateCall {
 11852  	c.ctx_ = ctx
 11853  	return c
 11854  }
 11855  
 11856  // Header returns a http.Header that can be modified by the caller to add
 11857  // headers to the request.
 11858  func (c *SettingsDatasourcesUpdateCall) Header() http.Header {
 11859  	if c.header_ == nil {
 11860  		c.header_ = make(http.Header)
 11861  	}
 11862  	return c.header_
 11863  }
 11864  
 11865  func (c *SettingsDatasourcesUpdateCall) doRequest(alt string) (*http.Response, error) {
 11866  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11867  	var body io.Reader = nil
 11868  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.updatedatasourcerequest)
 11869  	if err != nil {
 11870  		return nil, err
 11871  	}
 11872  	c.urlParams_.Set("alt", alt)
 11873  	c.urlParams_.Set("prettyPrint", "false")
 11874  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/{+name}")
 11875  	urls += "?" + c.urlParams_.Encode()
 11876  	req, err := http.NewRequest("PUT", urls, body)
 11877  	if err != nil {
 11878  		return nil, err
 11879  	}
 11880  	req.Header = reqHeaders
 11881  	googleapi.Expand(req.URL, map[string]string{
 11882  		"name": c.name,
 11883  	})
 11884  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11885  }
 11886  
 11887  // Do executes the "cloudsearch.settings.datasources.update" call.
 11888  // Any non-2xx status code is an error. Response headers are in either
 11889  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11890  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11891  // whether the returned error was because http.StatusNotModified was returned.
 11892  func (c *SettingsDatasourcesUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11893  	gensupport.SetOptions(c.urlParams_, opts...)
 11894  	res, err := c.doRequest("json")
 11895  	if res != nil && res.StatusCode == http.StatusNotModified {
 11896  		if res.Body != nil {
 11897  			res.Body.Close()
 11898  		}
 11899  		return nil, gensupport.WrapError(&googleapi.Error{
 11900  			Code:   res.StatusCode,
 11901  			Header: res.Header,
 11902  		})
 11903  	}
 11904  	if err != nil {
 11905  		return nil, err
 11906  	}
 11907  	defer googleapi.CloseBody(res)
 11908  	if err := googleapi.CheckResponse(res); err != nil {
 11909  		return nil, gensupport.WrapError(err)
 11910  	}
 11911  	ret := &Operation{
 11912  		ServerResponse: googleapi.ServerResponse{
 11913  			Header:         res.Header,
 11914  			HTTPStatusCode: res.StatusCode,
 11915  		},
 11916  	}
 11917  	target := &ret
 11918  	if err := gensupport.DecodeResponse(target, res); err != nil {
 11919  		return nil, err
 11920  	}
 11921  	return ret, nil
 11922  }
 11923  
 11924  type SettingsSearchapplicationsCreateCall struct {
 11925  	s                 *Service
 11926  	searchapplication *SearchApplication
 11927  	urlParams_        gensupport.URLParams
 11928  	ctx_              context.Context
 11929  	header_           http.Header
 11930  }
 11931  
 11932  // Create: Creates a search application. **Note:** This API requires an admin
 11933  // account to execute.
 11934  func (r *SettingsSearchapplicationsService) Create(searchapplication *SearchApplication) *SettingsSearchapplicationsCreateCall {
 11935  	c := &SettingsSearchapplicationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 11936  	c.searchapplication = searchapplication
 11937  	return c
 11938  }
 11939  
 11940  // Fields allows partial responses to be retrieved. See
 11941  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 11942  // details.
 11943  func (c *SettingsSearchapplicationsCreateCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsCreateCall {
 11944  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 11945  	return c
 11946  }
 11947  
 11948  // Context sets the context to be used in this call's Do method.
 11949  func (c *SettingsSearchapplicationsCreateCall) Context(ctx context.Context) *SettingsSearchapplicationsCreateCall {
 11950  	c.ctx_ = ctx
 11951  	return c
 11952  }
 11953  
 11954  // Header returns a http.Header that can be modified by the caller to add
 11955  // headers to the request.
 11956  func (c *SettingsSearchapplicationsCreateCall) Header() http.Header {
 11957  	if c.header_ == nil {
 11958  		c.header_ = make(http.Header)
 11959  	}
 11960  	return c.header_
 11961  }
 11962  
 11963  func (c *SettingsSearchapplicationsCreateCall) doRequest(alt string) (*http.Response, error) {
 11964  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 11965  	var body io.Reader = nil
 11966  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchapplication)
 11967  	if err != nil {
 11968  		return nil, err
 11969  	}
 11970  	c.urlParams_.Set("alt", alt)
 11971  	c.urlParams_.Set("prettyPrint", "false")
 11972  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/searchapplications")
 11973  	urls += "?" + c.urlParams_.Encode()
 11974  	req, err := http.NewRequest("POST", urls, body)
 11975  	if err != nil {
 11976  		return nil, err
 11977  	}
 11978  	req.Header = reqHeaders
 11979  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 11980  }
 11981  
 11982  // Do executes the "cloudsearch.settings.searchapplications.create" call.
 11983  // Any non-2xx status code is an error. Response headers are in either
 11984  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 11985  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 11986  // whether the returned error was because http.StatusNotModified was returned.
 11987  func (c *SettingsSearchapplicationsCreateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 11988  	gensupport.SetOptions(c.urlParams_, opts...)
 11989  	res, err := c.doRequest("json")
 11990  	if res != nil && res.StatusCode == http.StatusNotModified {
 11991  		if res.Body != nil {
 11992  			res.Body.Close()
 11993  		}
 11994  		return nil, gensupport.WrapError(&googleapi.Error{
 11995  			Code:   res.StatusCode,
 11996  			Header: res.Header,
 11997  		})
 11998  	}
 11999  	if err != nil {
 12000  		return nil, err
 12001  	}
 12002  	defer googleapi.CloseBody(res)
 12003  	if err := googleapi.CheckResponse(res); err != nil {
 12004  		return nil, gensupport.WrapError(err)
 12005  	}
 12006  	ret := &Operation{
 12007  		ServerResponse: googleapi.ServerResponse{
 12008  			Header:         res.Header,
 12009  			HTTPStatusCode: res.StatusCode,
 12010  		},
 12011  	}
 12012  	target := &ret
 12013  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12014  		return nil, err
 12015  	}
 12016  	return ret, nil
 12017  }
 12018  
 12019  type SettingsSearchapplicationsDeleteCall struct {
 12020  	s          *Service
 12021  	name       string
 12022  	urlParams_ gensupport.URLParams
 12023  	ctx_       context.Context
 12024  	header_    http.Header
 12025  }
 12026  
 12027  // Delete: Deletes a search application. **Note:** This API requires an admin
 12028  // account to execute.
 12029  //
 12030  //   - name: The name of the search application to be deleted. Format:
 12031  //     applications/{application_id}.
 12032  func (r *SettingsSearchapplicationsService) Delete(name string) *SettingsSearchapplicationsDeleteCall {
 12033  	c := &SettingsSearchapplicationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12034  	c.name = name
 12035  	return c
 12036  }
 12037  
 12038  // DebugOptionsEnableDebugging sets the optional parameter
 12039  // "debugOptions.enableDebugging": If you are asked by Google to help with
 12040  // debugging, set this field. Otherwise, ignore this field.
 12041  func (c *SettingsSearchapplicationsDeleteCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsSearchapplicationsDeleteCall {
 12042  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
 12043  	return c
 12044  }
 12045  
 12046  // Fields allows partial responses to be retrieved. See
 12047  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12048  // details.
 12049  func (c *SettingsSearchapplicationsDeleteCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsDeleteCall {
 12050  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12051  	return c
 12052  }
 12053  
 12054  // Context sets the context to be used in this call's Do method.
 12055  func (c *SettingsSearchapplicationsDeleteCall) Context(ctx context.Context) *SettingsSearchapplicationsDeleteCall {
 12056  	c.ctx_ = ctx
 12057  	return c
 12058  }
 12059  
 12060  // Header returns a http.Header that can be modified by the caller to add
 12061  // headers to the request.
 12062  func (c *SettingsSearchapplicationsDeleteCall) Header() http.Header {
 12063  	if c.header_ == nil {
 12064  		c.header_ = make(http.Header)
 12065  	}
 12066  	return c.header_
 12067  }
 12068  
 12069  func (c *SettingsSearchapplicationsDeleteCall) doRequest(alt string) (*http.Response, error) {
 12070  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12071  	var body io.Reader = nil
 12072  	c.urlParams_.Set("alt", alt)
 12073  	c.urlParams_.Set("prettyPrint", "false")
 12074  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/{+name}")
 12075  	urls += "?" + c.urlParams_.Encode()
 12076  	req, err := http.NewRequest("DELETE", urls, body)
 12077  	if err != nil {
 12078  		return nil, err
 12079  	}
 12080  	req.Header = reqHeaders
 12081  	googleapi.Expand(req.URL, map[string]string{
 12082  		"name": c.name,
 12083  	})
 12084  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12085  }
 12086  
 12087  // Do executes the "cloudsearch.settings.searchapplications.delete" call.
 12088  // Any non-2xx status code is an error. Response headers are in either
 12089  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 12090  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12091  // whether the returned error was because http.StatusNotModified was returned.
 12092  func (c *SettingsSearchapplicationsDeleteCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 12093  	gensupport.SetOptions(c.urlParams_, opts...)
 12094  	res, err := c.doRequest("json")
 12095  	if res != nil && res.StatusCode == http.StatusNotModified {
 12096  		if res.Body != nil {
 12097  			res.Body.Close()
 12098  		}
 12099  		return nil, gensupport.WrapError(&googleapi.Error{
 12100  			Code:   res.StatusCode,
 12101  			Header: res.Header,
 12102  		})
 12103  	}
 12104  	if err != nil {
 12105  		return nil, err
 12106  	}
 12107  	defer googleapi.CloseBody(res)
 12108  	if err := googleapi.CheckResponse(res); err != nil {
 12109  		return nil, gensupport.WrapError(err)
 12110  	}
 12111  	ret := &Operation{
 12112  		ServerResponse: googleapi.ServerResponse{
 12113  			Header:         res.Header,
 12114  			HTTPStatusCode: res.StatusCode,
 12115  		},
 12116  	}
 12117  	target := &ret
 12118  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12119  		return nil, err
 12120  	}
 12121  	return ret, nil
 12122  }
 12123  
 12124  type SettingsSearchapplicationsGetCall struct {
 12125  	s            *Service
 12126  	name         string
 12127  	urlParams_   gensupport.URLParams
 12128  	ifNoneMatch_ string
 12129  	ctx_         context.Context
 12130  	header_      http.Header
 12131  }
 12132  
 12133  // Get: Gets the specified search application. **Note:** This API requires an
 12134  // admin account to execute.
 12135  //
 12136  //   - name: The name of the search application. Format:
 12137  //     searchapplications/{application_id}.
 12138  func (r *SettingsSearchapplicationsService) Get(name string) *SettingsSearchapplicationsGetCall {
 12139  	c := &SettingsSearchapplicationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12140  	c.name = name
 12141  	return c
 12142  }
 12143  
 12144  // DebugOptionsEnableDebugging sets the optional parameter
 12145  // "debugOptions.enableDebugging": If you are asked by Google to help with
 12146  // debugging, set this field. Otherwise, ignore this field.
 12147  func (c *SettingsSearchapplicationsGetCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsSearchapplicationsGetCall {
 12148  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
 12149  	return c
 12150  }
 12151  
 12152  // Fields allows partial responses to be retrieved. See
 12153  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12154  // details.
 12155  func (c *SettingsSearchapplicationsGetCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsGetCall {
 12156  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12157  	return c
 12158  }
 12159  
 12160  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12161  // object's ETag matches the given value. This is useful for getting updates
 12162  // only after the object has changed since the last request.
 12163  func (c *SettingsSearchapplicationsGetCall) IfNoneMatch(entityTag string) *SettingsSearchapplicationsGetCall {
 12164  	c.ifNoneMatch_ = entityTag
 12165  	return c
 12166  }
 12167  
 12168  // Context sets the context to be used in this call's Do method.
 12169  func (c *SettingsSearchapplicationsGetCall) Context(ctx context.Context) *SettingsSearchapplicationsGetCall {
 12170  	c.ctx_ = ctx
 12171  	return c
 12172  }
 12173  
 12174  // Header returns a http.Header that can be modified by the caller to add
 12175  // headers to the request.
 12176  func (c *SettingsSearchapplicationsGetCall) Header() http.Header {
 12177  	if c.header_ == nil {
 12178  		c.header_ = make(http.Header)
 12179  	}
 12180  	return c.header_
 12181  }
 12182  
 12183  func (c *SettingsSearchapplicationsGetCall) doRequest(alt string) (*http.Response, error) {
 12184  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12185  	if c.ifNoneMatch_ != "" {
 12186  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12187  	}
 12188  	var body io.Reader = nil
 12189  	c.urlParams_.Set("alt", alt)
 12190  	c.urlParams_.Set("prettyPrint", "false")
 12191  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/{+name}")
 12192  	urls += "?" + c.urlParams_.Encode()
 12193  	req, err := http.NewRequest("GET", urls, body)
 12194  	if err != nil {
 12195  		return nil, err
 12196  	}
 12197  	req.Header = reqHeaders
 12198  	googleapi.Expand(req.URL, map[string]string{
 12199  		"name": c.name,
 12200  	})
 12201  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12202  }
 12203  
 12204  // Do executes the "cloudsearch.settings.searchapplications.get" call.
 12205  // Any non-2xx status code is an error. Response headers are in either
 12206  // *SearchApplication.ServerResponse.Header or (if a response was returned at
 12207  // all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to
 12208  // check whether the returned error was because http.StatusNotModified was
 12209  // returned.
 12210  func (c *SettingsSearchapplicationsGetCall) Do(opts ...googleapi.CallOption) (*SearchApplication, error) {
 12211  	gensupport.SetOptions(c.urlParams_, opts...)
 12212  	res, err := c.doRequest("json")
 12213  	if res != nil && res.StatusCode == http.StatusNotModified {
 12214  		if res.Body != nil {
 12215  			res.Body.Close()
 12216  		}
 12217  		return nil, gensupport.WrapError(&googleapi.Error{
 12218  			Code:   res.StatusCode,
 12219  			Header: res.Header,
 12220  		})
 12221  	}
 12222  	if err != nil {
 12223  		return nil, err
 12224  	}
 12225  	defer googleapi.CloseBody(res)
 12226  	if err := googleapi.CheckResponse(res); err != nil {
 12227  		return nil, gensupport.WrapError(err)
 12228  	}
 12229  	ret := &SearchApplication{
 12230  		ServerResponse: googleapi.ServerResponse{
 12231  			Header:         res.Header,
 12232  			HTTPStatusCode: res.StatusCode,
 12233  		},
 12234  	}
 12235  	target := &ret
 12236  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12237  		return nil, err
 12238  	}
 12239  	return ret, nil
 12240  }
 12241  
 12242  type SettingsSearchapplicationsListCall struct {
 12243  	s            *Service
 12244  	urlParams_   gensupport.URLParams
 12245  	ifNoneMatch_ string
 12246  	ctx_         context.Context
 12247  	header_      http.Header
 12248  }
 12249  
 12250  // List: Lists all search applications. **Note:** This API requires an admin
 12251  // account to execute.
 12252  func (r *SettingsSearchapplicationsService) List() *SettingsSearchapplicationsListCall {
 12253  	c := &SettingsSearchapplicationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12254  	return c
 12255  }
 12256  
 12257  // DebugOptionsEnableDebugging sets the optional parameter
 12258  // "debugOptions.enableDebugging": If you are asked by Google to help with
 12259  // debugging, set this field. Otherwise, ignore this field.
 12260  func (c *SettingsSearchapplicationsListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsSearchapplicationsListCall {
 12261  	c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
 12262  	return c
 12263  }
 12264  
 12265  // PageSize sets the optional parameter "pageSize": The maximum number of items
 12266  // to return.
 12267  func (c *SettingsSearchapplicationsListCall) PageSize(pageSize int64) *SettingsSearchapplicationsListCall {
 12268  	c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
 12269  	return c
 12270  }
 12271  
 12272  // PageToken sets the optional parameter "pageToken": The next_page_token value
 12273  // returned from a previous List request, if any. The default value is 10
 12274  func (c *SettingsSearchapplicationsListCall) PageToken(pageToken string) *SettingsSearchapplicationsListCall {
 12275  	c.urlParams_.Set("pageToken", pageToken)
 12276  	return c
 12277  }
 12278  
 12279  // Fields allows partial responses to be retrieved. See
 12280  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12281  // details.
 12282  func (c *SettingsSearchapplicationsListCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsListCall {
 12283  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12284  	return c
 12285  }
 12286  
 12287  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12288  // object's ETag matches the given value. This is useful for getting updates
 12289  // only after the object has changed since the last request.
 12290  func (c *SettingsSearchapplicationsListCall) IfNoneMatch(entityTag string) *SettingsSearchapplicationsListCall {
 12291  	c.ifNoneMatch_ = entityTag
 12292  	return c
 12293  }
 12294  
 12295  // Context sets the context to be used in this call's Do method.
 12296  func (c *SettingsSearchapplicationsListCall) Context(ctx context.Context) *SettingsSearchapplicationsListCall {
 12297  	c.ctx_ = ctx
 12298  	return c
 12299  }
 12300  
 12301  // Header returns a http.Header that can be modified by the caller to add
 12302  // headers to the request.
 12303  func (c *SettingsSearchapplicationsListCall) Header() http.Header {
 12304  	if c.header_ == nil {
 12305  		c.header_ = make(http.Header)
 12306  	}
 12307  	return c.header_
 12308  }
 12309  
 12310  func (c *SettingsSearchapplicationsListCall) doRequest(alt string) (*http.Response, error) {
 12311  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12312  	if c.ifNoneMatch_ != "" {
 12313  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12314  	}
 12315  	var body io.Reader = nil
 12316  	c.urlParams_.Set("alt", alt)
 12317  	c.urlParams_.Set("prettyPrint", "false")
 12318  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/searchapplications")
 12319  	urls += "?" + c.urlParams_.Encode()
 12320  	req, err := http.NewRequest("GET", urls, body)
 12321  	if err != nil {
 12322  		return nil, err
 12323  	}
 12324  	req.Header = reqHeaders
 12325  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12326  }
 12327  
 12328  // Do executes the "cloudsearch.settings.searchapplications.list" call.
 12329  // Any non-2xx status code is an error. Response headers are in either
 12330  // *ListSearchApplicationsResponse.ServerResponse.Header or (if a response was
 12331  // returned at all) in error.(*googleapi.Error).Header. Use
 12332  // googleapi.IsNotModified to check whether the returned error was because
 12333  // http.StatusNotModified was returned.
 12334  func (c *SettingsSearchapplicationsListCall) Do(opts ...googleapi.CallOption) (*ListSearchApplicationsResponse, error) {
 12335  	gensupport.SetOptions(c.urlParams_, opts...)
 12336  	res, err := c.doRequest("json")
 12337  	if res != nil && res.StatusCode == http.StatusNotModified {
 12338  		if res.Body != nil {
 12339  			res.Body.Close()
 12340  		}
 12341  		return nil, gensupport.WrapError(&googleapi.Error{
 12342  			Code:   res.StatusCode,
 12343  			Header: res.Header,
 12344  		})
 12345  	}
 12346  	if err != nil {
 12347  		return nil, err
 12348  	}
 12349  	defer googleapi.CloseBody(res)
 12350  	if err := googleapi.CheckResponse(res); err != nil {
 12351  		return nil, gensupport.WrapError(err)
 12352  	}
 12353  	ret := &ListSearchApplicationsResponse{
 12354  		ServerResponse: googleapi.ServerResponse{
 12355  			Header:         res.Header,
 12356  			HTTPStatusCode: res.StatusCode,
 12357  		},
 12358  	}
 12359  	target := &ret
 12360  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12361  		return nil, err
 12362  	}
 12363  	return ret, nil
 12364  }
 12365  
 12366  // Pages invokes f for each page of results.
 12367  // A non-nil error returned from f will halt the iteration.
 12368  // The provided context supersedes any context provided to the Context method.
 12369  func (c *SettingsSearchapplicationsListCall) Pages(ctx context.Context, f func(*ListSearchApplicationsResponse) error) error {
 12370  	c.ctx_ = ctx
 12371  	defer c.PageToken(c.urlParams_.Get("pageToken"))
 12372  	for {
 12373  		x, err := c.Do()
 12374  		if err != nil {
 12375  			return err
 12376  		}
 12377  		if err := f(x); err != nil {
 12378  			return err
 12379  		}
 12380  		if x.NextPageToken == "" {
 12381  			return nil
 12382  		}
 12383  		c.PageToken(x.NextPageToken)
 12384  	}
 12385  }
 12386  
 12387  type SettingsSearchapplicationsPatchCall struct {
 12388  	s                 *Service
 12389  	name              string
 12390  	searchapplication *SearchApplication
 12391  	urlParams_        gensupport.URLParams
 12392  	ctx_              context.Context
 12393  	header_           http.Header
 12394  }
 12395  
 12396  // Patch: Updates a search application. **Note:** This API requires an admin
 12397  // account to execute.
 12398  //
 12399  //   - name: The name of the Search Application. Format:
 12400  //     searchapplications/{application_id}.
 12401  func (r *SettingsSearchapplicationsService) Patch(name string, searchapplication *SearchApplication) *SettingsSearchapplicationsPatchCall {
 12402  	c := &SettingsSearchapplicationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12403  	c.name = name
 12404  	c.searchapplication = searchapplication
 12405  	return c
 12406  }
 12407  
 12408  // UpdateMask sets the optional parameter "updateMask": Only applies to
 12409  // `settings.searchapplications.patch`
 12410  // (https://developers.google.com/cloud-search/docs/reference/rest/v1/settings.searchapplications/patch).
 12411  // Update mask to control which fields to update. Example field paths:
 12412  // `search_application.name`, `search_application.displayName`. * If
 12413  // `update_mask` is non-empty, then only the fields specified in the
 12414  // `update_mask` are updated. * If you specify a field in the `update_mask`,
 12415  // but don't specify its value in the `search_application`, then that field is
 12416  // cleared. * If the `update_mask` is not present or empty or has the value
 12417  // `*`, then all fields are updated.
 12418  func (c *SettingsSearchapplicationsPatchCall) UpdateMask(updateMask string) *SettingsSearchapplicationsPatchCall {
 12419  	c.urlParams_.Set("updateMask", updateMask)
 12420  	return c
 12421  }
 12422  
 12423  // Fields allows partial responses to be retrieved. See
 12424  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12425  // details.
 12426  func (c *SettingsSearchapplicationsPatchCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsPatchCall {
 12427  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12428  	return c
 12429  }
 12430  
 12431  // Context sets the context to be used in this call's Do method.
 12432  func (c *SettingsSearchapplicationsPatchCall) Context(ctx context.Context) *SettingsSearchapplicationsPatchCall {
 12433  	c.ctx_ = ctx
 12434  	return c
 12435  }
 12436  
 12437  // Header returns a http.Header that can be modified by the caller to add
 12438  // headers to the request.
 12439  func (c *SettingsSearchapplicationsPatchCall) Header() http.Header {
 12440  	if c.header_ == nil {
 12441  		c.header_ = make(http.Header)
 12442  	}
 12443  	return c.header_
 12444  }
 12445  
 12446  func (c *SettingsSearchapplicationsPatchCall) doRequest(alt string) (*http.Response, error) {
 12447  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12448  	var body io.Reader = nil
 12449  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchapplication)
 12450  	if err != nil {
 12451  		return nil, err
 12452  	}
 12453  	c.urlParams_.Set("alt", alt)
 12454  	c.urlParams_.Set("prettyPrint", "false")
 12455  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/{+name}")
 12456  	urls += "?" + c.urlParams_.Encode()
 12457  	req, err := http.NewRequest("PATCH", urls, body)
 12458  	if err != nil {
 12459  		return nil, err
 12460  	}
 12461  	req.Header = reqHeaders
 12462  	googleapi.Expand(req.URL, map[string]string{
 12463  		"name": c.name,
 12464  	})
 12465  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12466  }
 12467  
 12468  // Do executes the "cloudsearch.settings.searchapplications.patch" call.
 12469  // Any non-2xx status code is an error. Response headers are in either
 12470  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 12471  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12472  // whether the returned error was because http.StatusNotModified was returned.
 12473  func (c *SettingsSearchapplicationsPatchCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 12474  	gensupport.SetOptions(c.urlParams_, opts...)
 12475  	res, err := c.doRequest("json")
 12476  	if res != nil && res.StatusCode == http.StatusNotModified {
 12477  		if res.Body != nil {
 12478  			res.Body.Close()
 12479  		}
 12480  		return nil, gensupport.WrapError(&googleapi.Error{
 12481  			Code:   res.StatusCode,
 12482  			Header: res.Header,
 12483  		})
 12484  	}
 12485  	if err != nil {
 12486  		return nil, err
 12487  	}
 12488  	defer googleapi.CloseBody(res)
 12489  	if err := googleapi.CheckResponse(res); err != nil {
 12490  		return nil, gensupport.WrapError(err)
 12491  	}
 12492  	ret := &Operation{
 12493  		ServerResponse: googleapi.ServerResponse{
 12494  			Header:         res.Header,
 12495  			HTTPStatusCode: res.StatusCode,
 12496  		},
 12497  	}
 12498  	target := &ret
 12499  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12500  		return nil, err
 12501  	}
 12502  	return ret, nil
 12503  }
 12504  
 12505  type SettingsSearchapplicationsResetCall struct {
 12506  	s                             *Service
 12507  	name                          string
 12508  	resetsearchapplicationrequest *ResetSearchApplicationRequest
 12509  	urlParams_                    gensupport.URLParams
 12510  	ctx_                          context.Context
 12511  	header_                       http.Header
 12512  }
 12513  
 12514  // Reset: Resets a search application to default settings. This will return an
 12515  // empty response. **Note:** This API requires an admin account to execute.
 12516  //
 12517  //   - name: The name of the search application to be reset. Format:
 12518  //     applications/{application_id}.
 12519  func (r *SettingsSearchapplicationsService) Reset(name string, resetsearchapplicationrequest *ResetSearchApplicationRequest) *SettingsSearchapplicationsResetCall {
 12520  	c := &SettingsSearchapplicationsResetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12521  	c.name = name
 12522  	c.resetsearchapplicationrequest = resetsearchapplicationrequest
 12523  	return c
 12524  }
 12525  
 12526  // Fields allows partial responses to be retrieved. See
 12527  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12528  // details.
 12529  func (c *SettingsSearchapplicationsResetCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsResetCall {
 12530  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12531  	return c
 12532  }
 12533  
 12534  // Context sets the context to be used in this call's Do method.
 12535  func (c *SettingsSearchapplicationsResetCall) Context(ctx context.Context) *SettingsSearchapplicationsResetCall {
 12536  	c.ctx_ = ctx
 12537  	return c
 12538  }
 12539  
 12540  // Header returns a http.Header that can be modified by the caller to add
 12541  // headers to the request.
 12542  func (c *SettingsSearchapplicationsResetCall) Header() http.Header {
 12543  	if c.header_ == nil {
 12544  		c.header_ = make(http.Header)
 12545  	}
 12546  	return c.header_
 12547  }
 12548  
 12549  func (c *SettingsSearchapplicationsResetCall) doRequest(alt string) (*http.Response, error) {
 12550  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12551  	var body io.Reader = nil
 12552  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.resetsearchapplicationrequest)
 12553  	if err != nil {
 12554  		return nil, err
 12555  	}
 12556  	c.urlParams_.Set("alt", alt)
 12557  	c.urlParams_.Set("prettyPrint", "false")
 12558  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/{+name}:reset")
 12559  	urls += "?" + c.urlParams_.Encode()
 12560  	req, err := http.NewRequest("POST", urls, body)
 12561  	if err != nil {
 12562  		return nil, err
 12563  	}
 12564  	req.Header = reqHeaders
 12565  	googleapi.Expand(req.URL, map[string]string{
 12566  		"name": c.name,
 12567  	})
 12568  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12569  }
 12570  
 12571  // Do executes the "cloudsearch.settings.searchapplications.reset" call.
 12572  // Any non-2xx status code is an error. Response headers are in either
 12573  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 12574  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12575  // whether the returned error was because http.StatusNotModified was returned.
 12576  func (c *SettingsSearchapplicationsResetCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 12577  	gensupport.SetOptions(c.urlParams_, opts...)
 12578  	res, err := c.doRequest("json")
 12579  	if res != nil && res.StatusCode == http.StatusNotModified {
 12580  		if res.Body != nil {
 12581  			res.Body.Close()
 12582  		}
 12583  		return nil, gensupport.WrapError(&googleapi.Error{
 12584  			Code:   res.StatusCode,
 12585  			Header: res.Header,
 12586  		})
 12587  	}
 12588  	if err != nil {
 12589  		return nil, err
 12590  	}
 12591  	defer googleapi.CloseBody(res)
 12592  	if err := googleapi.CheckResponse(res); err != nil {
 12593  		return nil, gensupport.WrapError(err)
 12594  	}
 12595  	ret := &Operation{
 12596  		ServerResponse: googleapi.ServerResponse{
 12597  			Header:         res.Header,
 12598  			HTTPStatusCode: res.StatusCode,
 12599  		},
 12600  	}
 12601  	target := &ret
 12602  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12603  		return nil, err
 12604  	}
 12605  	return ret, nil
 12606  }
 12607  
 12608  type SettingsSearchapplicationsUpdateCall struct {
 12609  	s                 *Service
 12610  	name              string
 12611  	searchapplication *SearchApplication
 12612  	urlParams_        gensupport.URLParams
 12613  	ctx_              context.Context
 12614  	header_           http.Header
 12615  }
 12616  
 12617  // Update: Updates a search application. **Note:** This API requires an admin
 12618  // account to execute.
 12619  //
 12620  //   - name: The name of the Search Application. Format:
 12621  //     searchapplications/{application_id}.
 12622  func (r *SettingsSearchapplicationsService) Update(name string, searchapplication *SearchApplication) *SettingsSearchapplicationsUpdateCall {
 12623  	c := &SettingsSearchapplicationsUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12624  	c.name = name
 12625  	c.searchapplication = searchapplication
 12626  	return c
 12627  }
 12628  
 12629  // UpdateMask sets the optional parameter "updateMask": Only applies to
 12630  // `settings.searchapplications.patch`
 12631  // (https://developers.google.com/cloud-search/docs/reference/rest/v1/settings.searchapplications/patch).
 12632  // Update mask to control which fields to update. Example field paths:
 12633  // `search_application.name`, `search_application.displayName`. * If
 12634  // `update_mask` is non-empty, then only the fields specified in the
 12635  // `update_mask` are updated. * If you specify a field in the `update_mask`,
 12636  // but don't specify its value in the `search_application`, then that field is
 12637  // cleared. * If the `update_mask` is not present or empty or has the value
 12638  // `*`, then all fields are updated.
 12639  func (c *SettingsSearchapplicationsUpdateCall) UpdateMask(updateMask string) *SettingsSearchapplicationsUpdateCall {
 12640  	c.urlParams_.Set("updateMask", updateMask)
 12641  	return c
 12642  }
 12643  
 12644  // Fields allows partial responses to be retrieved. See
 12645  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12646  // details.
 12647  func (c *SettingsSearchapplicationsUpdateCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsUpdateCall {
 12648  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12649  	return c
 12650  }
 12651  
 12652  // Context sets the context to be used in this call's Do method.
 12653  func (c *SettingsSearchapplicationsUpdateCall) Context(ctx context.Context) *SettingsSearchapplicationsUpdateCall {
 12654  	c.ctx_ = ctx
 12655  	return c
 12656  }
 12657  
 12658  // Header returns a http.Header that can be modified by the caller to add
 12659  // headers to the request.
 12660  func (c *SettingsSearchapplicationsUpdateCall) Header() http.Header {
 12661  	if c.header_ == nil {
 12662  		c.header_ = make(http.Header)
 12663  	}
 12664  	return c.header_
 12665  }
 12666  
 12667  func (c *SettingsSearchapplicationsUpdateCall) doRequest(alt string) (*http.Response, error) {
 12668  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 12669  	var body io.Reader = nil
 12670  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.searchapplication)
 12671  	if err != nil {
 12672  		return nil, err
 12673  	}
 12674  	c.urlParams_.Set("alt", alt)
 12675  	c.urlParams_.Set("prettyPrint", "false")
 12676  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/settings/{+name}")
 12677  	urls += "?" + c.urlParams_.Encode()
 12678  	req, err := http.NewRequest("PUT", urls, body)
 12679  	if err != nil {
 12680  		return nil, err
 12681  	}
 12682  	req.Header = reqHeaders
 12683  	googleapi.Expand(req.URL, map[string]string{
 12684  		"name": c.name,
 12685  	})
 12686  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12687  }
 12688  
 12689  // Do executes the "cloudsearch.settings.searchapplications.update" call.
 12690  // Any non-2xx status code is an error. Response headers are in either
 12691  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 12692  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 12693  // whether the returned error was because http.StatusNotModified was returned.
 12694  func (c *SettingsSearchapplicationsUpdateCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 12695  	gensupport.SetOptions(c.urlParams_, opts...)
 12696  	res, err := c.doRequest("json")
 12697  	if res != nil && res.StatusCode == http.StatusNotModified {
 12698  		if res.Body != nil {
 12699  			res.Body.Close()
 12700  		}
 12701  		return nil, gensupport.WrapError(&googleapi.Error{
 12702  			Code:   res.StatusCode,
 12703  			Header: res.Header,
 12704  		})
 12705  	}
 12706  	if err != nil {
 12707  		return nil, err
 12708  	}
 12709  	defer googleapi.CloseBody(res)
 12710  	if err := googleapi.CheckResponse(res); err != nil {
 12711  		return nil, gensupport.WrapError(err)
 12712  	}
 12713  	ret := &Operation{
 12714  		ServerResponse: googleapi.ServerResponse{
 12715  			Header:         res.Header,
 12716  			HTTPStatusCode: res.StatusCode,
 12717  		},
 12718  	}
 12719  	target := &ret
 12720  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12721  		return nil, err
 12722  	}
 12723  	return ret, nil
 12724  }
 12725  
 12726  type StatsGetIndexCall struct {
 12727  	s            *Service
 12728  	urlParams_   gensupport.URLParams
 12729  	ifNoneMatch_ string
 12730  	ctx_         context.Context
 12731  	header_      http.Header
 12732  }
 12733  
 12734  // GetIndex: Gets indexed item statistics aggreggated across all data sources.
 12735  // This API only returns statistics for previous dates; it doesn't return
 12736  // statistics for the current day. **Note:** This API requires a standard end
 12737  // user account to execute.
 12738  func (r *StatsService) GetIndex() *StatsGetIndexCall {
 12739  	c := &StatsGetIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12740  	return c
 12741  }
 12742  
 12743  // FromDateDay sets the optional parameter "fromDate.day": Day of month. Must
 12744  // be from 1 to 31 and valid for the year and month.
 12745  func (c *StatsGetIndexCall) FromDateDay(fromDateDay int64) *StatsGetIndexCall {
 12746  	c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
 12747  	return c
 12748  }
 12749  
 12750  // FromDateMonth sets the optional parameter "fromDate.month": Month of date.
 12751  // Must be from 1 to 12.
 12752  func (c *StatsGetIndexCall) FromDateMonth(fromDateMonth int64) *StatsGetIndexCall {
 12753  	c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
 12754  	return c
 12755  }
 12756  
 12757  // FromDateYear sets the optional parameter "fromDate.year": Year of date. Must
 12758  // be from 1 to 9999.
 12759  func (c *StatsGetIndexCall) FromDateYear(fromDateYear int64) *StatsGetIndexCall {
 12760  	c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
 12761  	return c
 12762  }
 12763  
 12764  // ToDateDay sets the optional parameter "toDate.day": Day of month. Must be
 12765  // from 1 to 31 and valid for the year and month.
 12766  func (c *StatsGetIndexCall) ToDateDay(toDateDay int64) *StatsGetIndexCall {
 12767  	c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
 12768  	return c
 12769  }
 12770  
 12771  // ToDateMonth sets the optional parameter "toDate.month": Month of date. Must
 12772  // be from 1 to 12.
 12773  func (c *StatsGetIndexCall) ToDateMonth(toDateMonth int64) *StatsGetIndexCall {
 12774  	c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
 12775  	return c
 12776  }
 12777  
 12778  // ToDateYear sets the optional parameter "toDate.year": Year of date. Must be
 12779  // from 1 to 9999.
 12780  func (c *StatsGetIndexCall) ToDateYear(toDateYear int64) *StatsGetIndexCall {
 12781  	c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
 12782  	return c
 12783  }
 12784  
 12785  // Fields allows partial responses to be retrieved. See
 12786  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12787  // details.
 12788  func (c *StatsGetIndexCall) Fields(s ...googleapi.Field) *StatsGetIndexCall {
 12789  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12790  	return c
 12791  }
 12792  
 12793  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12794  // object's ETag matches the given value. This is useful for getting updates
 12795  // only after the object has changed since the last request.
 12796  func (c *StatsGetIndexCall) IfNoneMatch(entityTag string) *StatsGetIndexCall {
 12797  	c.ifNoneMatch_ = entityTag
 12798  	return c
 12799  }
 12800  
 12801  // Context sets the context to be used in this call's Do method.
 12802  func (c *StatsGetIndexCall) Context(ctx context.Context) *StatsGetIndexCall {
 12803  	c.ctx_ = ctx
 12804  	return c
 12805  }
 12806  
 12807  // Header returns a http.Header that can be modified by the caller to add
 12808  // headers to the request.
 12809  func (c *StatsGetIndexCall) Header() http.Header {
 12810  	if c.header_ == nil {
 12811  		c.header_ = make(http.Header)
 12812  	}
 12813  	return c.header_
 12814  }
 12815  
 12816  func (c *StatsGetIndexCall) doRequest(alt string) (*http.Response, error) {
 12817  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12818  	if c.ifNoneMatch_ != "" {
 12819  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12820  	}
 12821  	var body io.Reader = nil
 12822  	c.urlParams_.Set("alt", alt)
 12823  	c.urlParams_.Set("prettyPrint", "false")
 12824  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/stats/index")
 12825  	urls += "?" + c.urlParams_.Encode()
 12826  	req, err := http.NewRequest("GET", urls, body)
 12827  	if err != nil {
 12828  		return nil, err
 12829  	}
 12830  	req.Header = reqHeaders
 12831  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12832  }
 12833  
 12834  // Do executes the "cloudsearch.stats.getIndex" call.
 12835  // Any non-2xx status code is an error. Response headers are in either
 12836  // *GetCustomerIndexStatsResponse.ServerResponse.Header or (if a response was
 12837  // returned at all) in error.(*googleapi.Error).Header. Use
 12838  // googleapi.IsNotModified to check whether the returned error was because
 12839  // http.StatusNotModified was returned.
 12840  func (c *StatsGetIndexCall) Do(opts ...googleapi.CallOption) (*GetCustomerIndexStatsResponse, error) {
 12841  	gensupport.SetOptions(c.urlParams_, opts...)
 12842  	res, err := c.doRequest("json")
 12843  	if res != nil && res.StatusCode == http.StatusNotModified {
 12844  		if res.Body != nil {
 12845  			res.Body.Close()
 12846  		}
 12847  		return nil, gensupport.WrapError(&googleapi.Error{
 12848  			Code:   res.StatusCode,
 12849  			Header: res.Header,
 12850  		})
 12851  	}
 12852  	if err != nil {
 12853  		return nil, err
 12854  	}
 12855  	defer googleapi.CloseBody(res)
 12856  	if err := googleapi.CheckResponse(res); err != nil {
 12857  		return nil, gensupport.WrapError(err)
 12858  	}
 12859  	ret := &GetCustomerIndexStatsResponse{
 12860  		ServerResponse: googleapi.ServerResponse{
 12861  			Header:         res.Header,
 12862  			HTTPStatusCode: res.StatusCode,
 12863  		},
 12864  	}
 12865  	target := &ret
 12866  	if err := gensupport.DecodeResponse(target, res); err != nil {
 12867  		return nil, err
 12868  	}
 12869  	return ret, nil
 12870  }
 12871  
 12872  type StatsGetQueryCall struct {
 12873  	s            *Service
 12874  	urlParams_   gensupport.URLParams
 12875  	ifNoneMatch_ string
 12876  	ctx_         context.Context
 12877  	header_      http.Header
 12878  }
 12879  
 12880  // GetQuery: Get the query statistics for customer. **Note:** This API requires
 12881  // a standard end user account to execute.
 12882  func (r *StatsService) GetQuery() *StatsGetQueryCall {
 12883  	c := &StatsGetQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 12884  	return c
 12885  }
 12886  
 12887  // FromDateDay sets the optional parameter "fromDate.day": Day of month. Must
 12888  // be from 1 to 31 and valid for the year and month.
 12889  func (c *StatsGetQueryCall) FromDateDay(fromDateDay int64) *StatsGetQueryCall {
 12890  	c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
 12891  	return c
 12892  }
 12893  
 12894  // FromDateMonth sets the optional parameter "fromDate.month": Month of date.
 12895  // Must be from 1 to 12.
 12896  func (c *StatsGetQueryCall) FromDateMonth(fromDateMonth int64) *StatsGetQueryCall {
 12897  	c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
 12898  	return c
 12899  }
 12900  
 12901  // FromDateYear sets the optional parameter "fromDate.year": Year of date. Must
 12902  // be from 1 to 9999.
 12903  func (c *StatsGetQueryCall) FromDateYear(fromDateYear int64) *StatsGetQueryCall {
 12904  	c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
 12905  	return c
 12906  }
 12907  
 12908  // ToDateDay sets the optional parameter "toDate.day": Day of month. Must be
 12909  // from 1 to 31 and valid for the year and month.
 12910  func (c *StatsGetQueryCall) ToDateDay(toDateDay int64) *StatsGetQueryCall {
 12911  	c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
 12912  	return c
 12913  }
 12914  
 12915  // ToDateMonth sets the optional parameter "toDate.month": Month of date. Must
 12916  // be from 1 to 12.
 12917  func (c *StatsGetQueryCall) ToDateMonth(toDateMonth int64) *StatsGetQueryCall {
 12918  	c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
 12919  	return c
 12920  }
 12921  
 12922  // ToDateYear sets the optional parameter "toDate.year": Year of date. Must be
 12923  // from 1 to 9999.
 12924  func (c *StatsGetQueryCall) ToDateYear(toDateYear int64) *StatsGetQueryCall {
 12925  	c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
 12926  	return c
 12927  }
 12928  
 12929  // Fields allows partial responses to be retrieved. See
 12930  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 12931  // details.
 12932  func (c *StatsGetQueryCall) Fields(s ...googleapi.Field) *StatsGetQueryCall {
 12933  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 12934  	return c
 12935  }
 12936  
 12937  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 12938  // object's ETag matches the given value. This is useful for getting updates
 12939  // only after the object has changed since the last request.
 12940  func (c *StatsGetQueryCall) IfNoneMatch(entityTag string) *StatsGetQueryCall {
 12941  	c.ifNoneMatch_ = entityTag
 12942  	return c
 12943  }
 12944  
 12945  // Context sets the context to be used in this call's Do method.
 12946  func (c *StatsGetQueryCall) Context(ctx context.Context) *StatsGetQueryCall {
 12947  	c.ctx_ = ctx
 12948  	return c
 12949  }
 12950  
 12951  // Header returns a http.Header that can be modified by the caller to add
 12952  // headers to the request.
 12953  func (c *StatsGetQueryCall) Header() http.Header {
 12954  	if c.header_ == nil {
 12955  		c.header_ = make(http.Header)
 12956  	}
 12957  	return c.header_
 12958  }
 12959  
 12960  func (c *StatsGetQueryCall) doRequest(alt string) (*http.Response, error) {
 12961  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 12962  	if c.ifNoneMatch_ != "" {
 12963  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 12964  	}
 12965  	var body io.Reader = nil
 12966  	c.urlParams_.Set("alt", alt)
 12967  	c.urlParams_.Set("prettyPrint", "false")
 12968  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/stats/query")
 12969  	urls += "?" + c.urlParams_.Encode()
 12970  	req, err := http.NewRequest("GET", urls, body)
 12971  	if err != nil {
 12972  		return nil, err
 12973  	}
 12974  	req.Header = reqHeaders
 12975  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 12976  }
 12977  
 12978  // Do executes the "cloudsearch.stats.getQuery" call.
 12979  // Any non-2xx status code is an error. Response headers are in either
 12980  // *GetCustomerQueryStatsResponse.ServerResponse.Header or (if a response was
 12981  // returned at all) in error.(*googleapi.Error).Header. Use
 12982  // googleapi.IsNotModified to check whether the returned error was because
 12983  // http.StatusNotModified was returned.
 12984  func (c *StatsGetQueryCall) Do(opts ...googleapi.CallOption) (*GetCustomerQueryStatsResponse, error) {
 12985  	gensupport.SetOptions(c.urlParams_, opts...)
 12986  	res, err := c.doRequest("json")
 12987  	if res != nil && res.StatusCode == http.StatusNotModified {
 12988  		if res.Body != nil {
 12989  			res.Body.Close()
 12990  		}
 12991  		return nil, gensupport.WrapError(&googleapi.Error{
 12992  			Code:   res.StatusCode,
 12993  			Header: res.Header,
 12994  		})
 12995  	}
 12996  	if err != nil {
 12997  		return nil, err
 12998  	}
 12999  	defer googleapi.CloseBody(res)
 13000  	if err := googleapi.CheckResponse(res); err != nil {
 13001  		return nil, gensupport.WrapError(err)
 13002  	}
 13003  	ret := &GetCustomerQueryStatsResponse{
 13004  		ServerResponse: googleapi.ServerResponse{
 13005  			Header:         res.Header,
 13006  			HTTPStatusCode: res.StatusCode,
 13007  		},
 13008  	}
 13009  	target := &ret
 13010  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13011  		return nil, err
 13012  	}
 13013  	return ret, nil
 13014  }
 13015  
 13016  type StatsGetSearchapplicationCall struct {
 13017  	s            *Service
 13018  	urlParams_   gensupport.URLParams
 13019  	ifNoneMatch_ string
 13020  	ctx_         context.Context
 13021  	header_      http.Header
 13022  }
 13023  
 13024  // GetSearchapplication: Get search application stats for customer. **Note:**
 13025  // This API requires a standard end user account to execute.
 13026  func (r *StatsService) GetSearchapplication() *StatsGetSearchapplicationCall {
 13027  	c := &StatsGetSearchapplicationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13028  	return c
 13029  }
 13030  
 13031  // EndDateDay sets the optional parameter "endDate.day": Day of month. Must be
 13032  // from 1 to 31 and valid for the year and month.
 13033  func (c *StatsGetSearchapplicationCall) EndDateDay(endDateDay int64) *StatsGetSearchapplicationCall {
 13034  	c.urlParams_.Set("endDate.day", fmt.Sprint(endDateDay))
 13035  	return c
 13036  }
 13037  
 13038  // EndDateMonth sets the optional parameter "endDate.month": Month of date.
 13039  // Must be from 1 to 12.
 13040  func (c *StatsGetSearchapplicationCall) EndDateMonth(endDateMonth int64) *StatsGetSearchapplicationCall {
 13041  	c.urlParams_.Set("endDate.month", fmt.Sprint(endDateMonth))
 13042  	return c
 13043  }
 13044  
 13045  // EndDateYear sets the optional parameter "endDate.year": Year of date. Must
 13046  // be from 1 to 9999.
 13047  func (c *StatsGetSearchapplicationCall) EndDateYear(endDateYear int64) *StatsGetSearchapplicationCall {
 13048  	c.urlParams_.Set("endDate.year", fmt.Sprint(endDateYear))
 13049  	return c
 13050  }
 13051  
 13052  // StartDateDay sets the optional parameter "startDate.day": Day of month. Must
 13053  // be from 1 to 31 and valid for the year and month.
 13054  func (c *StatsGetSearchapplicationCall) StartDateDay(startDateDay int64) *StatsGetSearchapplicationCall {
 13055  	c.urlParams_.Set("startDate.day", fmt.Sprint(startDateDay))
 13056  	return c
 13057  }
 13058  
 13059  // StartDateMonth sets the optional parameter "startDate.month": Month of date.
 13060  // Must be from 1 to 12.
 13061  func (c *StatsGetSearchapplicationCall) StartDateMonth(startDateMonth int64) *StatsGetSearchapplicationCall {
 13062  	c.urlParams_.Set("startDate.month", fmt.Sprint(startDateMonth))
 13063  	return c
 13064  }
 13065  
 13066  // StartDateYear sets the optional parameter "startDate.year": Year of date.
 13067  // Must be from 1 to 9999.
 13068  func (c *StatsGetSearchapplicationCall) StartDateYear(startDateYear int64) *StatsGetSearchapplicationCall {
 13069  	c.urlParams_.Set("startDate.year", fmt.Sprint(startDateYear))
 13070  	return c
 13071  }
 13072  
 13073  // Fields allows partial responses to be retrieved. See
 13074  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13075  // details.
 13076  func (c *StatsGetSearchapplicationCall) Fields(s ...googleapi.Field) *StatsGetSearchapplicationCall {
 13077  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13078  	return c
 13079  }
 13080  
 13081  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13082  // object's ETag matches the given value. This is useful for getting updates
 13083  // only after the object has changed since the last request.
 13084  func (c *StatsGetSearchapplicationCall) IfNoneMatch(entityTag string) *StatsGetSearchapplicationCall {
 13085  	c.ifNoneMatch_ = entityTag
 13086  	return c
 13087  }
 13088  
 13089  // Context sets the context to be used in this call's Do method.
 13090  func (c *StatsGetSearchapplicationCall) Context(ctx context.Context) *StatsGetSearchapplicationCall {
 13091  	c.ctx_ = ctx
 13092  	return c
 13093  }
 13094  
 13095  // Header returns a http.Header that can be modified by the caller to add
 13096  // headers to the request.
 13097  func (c *StatsGetSearchapplicationCall) Header() http.Header {
 13098  	if c.header_ == nil {
 13099  		c.header_ = make(http.Header)
 13100  	}
 13101  	return c.header_
 13102  }
 13103  
 13104  func (c *StatsGetSearchapplicationCall) doRequest(alt string) (*http.Response, error) {
 13105  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13106  	if c.ifNoneMatch_ != "" {
 13107  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13108  	}
 13109  	var body io.Reader = nil
 13110  	c.urlParams_.Set("alt", alt)
 13111  	c.urlParams_.Set("prettyPrint", "false")
 13112  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/stats/searchapplication")
 13113  	urls += "?" + c.urlParams_.Encode()
 13114  	req, err := http.NewRequest("GET", urls, body)
 13115  	if err != nil {
 13116  		return nil, err
 13117  	}
 13118  	req.Header = reqHeaders
 13119  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13120  }
 13121  
 13122  // Do executes the "cloudsearch.stats.getSearchapplication" call.
 13123  // Any non-2xx status code is an error. Response headers are in either
 13124  // *GetCustomerSearchApplicationStatsResponse.ServerResponse.Header or (if a
 13125  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13126  // googleapi.IsNotModified to check whether the returned error was because
 13127  // http.StatusNotModified was returned.
 13128  func (c *StatsGetSearchapplicationCall) Do(opts ...googleapi.CallOption) (*GetCustomerSearchApplicationStatsResponse, error) {
 13129  	gensupport.SetOptions(c.urlParams_, opts...)
 13130  	res, err := c.doRequest("json")
 13131  	if res != nil && res.StatusCode == http.StatusNotModified {
 13132  		if res.Body != nil {
 13133  			res.Body.Close()
 13134  		}
 13135  		return nil, gensupport.WrapError(&googleapi.Error{
 13136  			Code:   res.StatusCode,
 13137  			Header: res.Header,
 13138  		})
 13139  	}
 13140  	if err != nil {
 13141  		return nil, err
 13142  	}
 13143  	defer googleapi.CloseBody(res)
 13144  	if err := googleapi.CheckResponse(res); err != nil {
 13145  		return nil, gensupport.WrapError(err)
 13146  	}
 13147  	ret := &GetCustomerSearchApplicationStatsResponse{
 13148  		ServerResponse: googleapi.ServerResponse{
 13149  			Header:         res.Header,
 13150  			HTTPStatusCode: res.StatusCode,
 13151  		},
 13152  	}
 13153  	target := &ret
 13154  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13155  		return nil, err
 13156  	}
 13157  	return ret, nil
 13158  }
 13159  
 13160  type StatsGetSessionCall struct {
 13161  	s            *Service
 13162  	urlParams_   gensupport.URLParams
 13163  	ifNoneMatch_ string
 13164  	ctx_         context.Context
 13165  	header_      http.Header
 13166  }
 13167  
 13168  // GetSession: Get the # of search sessions, % of successful sessions with a
 13169  // click query statistics for customer. **Note:** This API requires a standard
 13170  // end user account to execute.
 13171  func (r *StatsService) GetSession() *StatsGetSessionCall {
 13172  	c := &StatsGetSessionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13173  	return c
 13174  }
 13175  
 13176  // FromDateDay sets the optional parameter "fromDate.day": Day of month. Must
 13177  // be from 1 to 31 and valid for the year and month.
 13178  func (c *StatsGetSessionCall) FromDateDay(fromDateDay int64) *StatsGetSessionCall {
 13179  	c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
 13180  	return c
 13181  }
 13182  
 13183  // FromDateMonth sets the optional parameter "fromDate.month": Month of date.
 13184  // Must be from 1 to 12.
 13185  func (c *StatsGetSessionCall) FromDateMonth(fromDateMonth int64) *StatsGetSessionCall {
 13186  	c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
 13187  	return c
 13188  }
 13189  
 13190  // FromDateYear sets the optional parameter "fromDate.year": Year of date. Must
 13191  // be from 1 to 9999.
 13192  func (c *StatsGetSessionCall) FromDateYear(fromDateYear int64) *StatsGetSessionCall {
 13193  	c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
 13194  	return c
 13195  }
 13196  
 13197  // ToDateDay sets the optional parameter "toDate.day": Day of month. Must be
 13198  // from 1 to 31 and valid for the year and month.
 13199  func (c *StatsGetSessionCall) ToDateDay(toDateDay int64) *StatsGetSessionCall {
 13200  	c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
 13201  	return c
 13202  }
 13203  
 13204  // ToDateMonth sets the optional parameter "toDate.month": Month of date. Must
 13205  // be from 1 to 12.
 13206  func (c *StatsGetSessionCall) ToDateMonth(toDateMonth int64) *StatsGetSessionCall {
 13207  	c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
 13208  	return c
 13209  }
 13210  
 13211  // ToDateYear sets the optional parameter "toDate.year": Year of date. Must be
 13212  // from 1 to 9999.
 13213  func (c *StatsGetSessionCall) ToDateYear(toDateYear int64) *StatsGetSessionCall {
 13214  	c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
 13215  	return c
 13216  }
 13217  
 13218  // Fields allows partial responses to be retrieved. See
 13219  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13220  // details.
 13221  func (c *StatsGetSessionCall) Fields(s ...googleapi.Field) *StatsGetSessionCall {
 13222  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13223  	return c
 13224  }
 13225  
 13226  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13227  // object's ETag matches the given value. This is useful for getting updates
 13228  // only after the object has changed since the last request.
 13229  func (c *StatsGetSessionCall) IfNoneMatch(entityTag string) *StatsGetSessionCall {
 13230  	c.ifNoneMatch_ = entityTag
 13231  	return c
 13232  }
 13233  
 13234  // Context sets the context to be used in this call's Do method.
 13235  func (c *StatsGetSessionCall) Context(ctx context.Context) *StatsGetSessionCall {
 13236  	c.ctx_ = ctx
 13237  	return c
 13238  }
 13239  
 13240  // Header returns a http.Header that can be modified by the caller to add
 13241  // headers to the request.
 13242  func (c *StatsGetSessionCall) Header() http.Header {
 13243  	if c.header_ == nil {
 13244  		c.header_ = make(http.Header)
 13245  	}
 13246  	return c.header_
 13247  }
 13248  
 13249  func (c *StatsGetSessionCall) doRequest(alt string) (*http.Response, error) {
 13250  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13251  	if c.ifNoneMatch_ != "" {
 13252  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13253  	}
 13254  	var body io.Reader = nil
 13255  	c.urlParams_.Set("alt", alt)
 13256  	c.urlParams_.Set("prettyPrint", "false")
 13257  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/stats/session")
 13258  	urls += "?" + c.urlParams_.Encode()
 13259  	req, err := http.NewRequest("GET", urls, body)
 13260  	if err != nil {
 13261  		return nil, err
 13262  	}
 13263  	req.Header = reqHeaders
 13264  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13265  }
 13266  
 13267  // Do executes the "cloudsearch.stats.getSession" call.
 13268  // Any non-2xx status code is an error. Response headers are in either
 13269  // *GetCustomerSessionStatsResponse.ServerResponse.Header or (if a response was
 13270  // returned at all) in error.(*googleapi.Error).Header. Use
 13271  // googleapi.IsNotModified to check whether the returned error was because
 13272  // http.StatusNotModified was returned.
 13273  func (c *StatsGetSessionCall) Do(opts ...googleapi.CallOption) (*GetCustomerSessionStatsResponse, error) {
 13274  	gensupport.SetOptions(c.urlParams_, opts...)
 13275  	res, err := c.doRequest("json")
 13276  	if res != nil && res.StatusCode == http.StatusNotModified {
 13277  		if res.Body != nil {
 13278  			res.Body.Close()
 13279  		}
 13280  		return nil, gensupport.WrapError(&googleapi.Error{
 13281  			Code:   res.StatusCode,
 13282  			Header: res.Header,
 13283  		})
 13284  	}
 13285  	if err != nil {
 13286  		return nil, err
 13287  	}
 13288  	defer googleapi.CloseBody(res)
 13289  	if err := googleapi.CheckResponse(res); err != nil {
 13290  		return nil, gensupport.WrapError(err)
 13291  	}
 13292  	ret := &GetCustomerSessionStatsResponse{
 13293  		ServerResponse: googleapi.ServerResponse{
 13294  			Header:         res.Header,
 13295  			HTTPStatusCode: res.StatusCode,
 13296  		},
 13297  	}
 13298  	target := &ret
 13299  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13300  		return nil, err
 13301  	}
 13302  	return ret, nil
 13303  }
 13304  
 13305  type StatsGetUserCall struct {
 13306  	s            *Service
 13307  	urlParams_   gensupport.URLParams
 13308  	ifNoneMatch_ string
 13309  	ctx_         context.Context
 13310  	header_      http.Header
 13311  }
 13312  
 13313  // GetUser: Get the users statistics for customer. **Note:** This API requires
 13314  // a standard end user account to execute.
 13315  func (r *StatsService) GetUser() *StatsGetUserCall {
 13316  	c := &StatsGetUserCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13317  	return c
 13318  }
 13319  
 13320  // FromDateDay sets the optional parameter "fromDate.day": Day of month. Must
 13321  // be from 1 to 31 and valid for the year and month.
 13322  func (c *StatsGetUserCall) FromDateDay(fromDateDay int64) *StatsGetUserCall {
 13323  	c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
 13324  	return c
 13325  }
 13326  
 13327  // FromDateMonth sets the optional parameter "fromDate.month": Month of date.
 13328  // Must be from 1 to 12.
 13329  func (c *StatsGetUserCall) FromDateMonth(fromDateMonth int64) *StatsGetUserCall {
 13330  	c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
 13331  	return c
 13332  }
 13333  
 13334  // FromDateYear sets the optional parameter "fromDate.year": Year of date. Must
 13335  // be from 1 to 9999.
 13336  func (c *StatsGetUserCall) FromDateYear(fromDateYear int64) *StatsGetUserCall {
 13337  	c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
 13338  	return c
 13339  }
 13340  
 13341  // ToDateDay sets the optional parameter "toDate.day": Day of month. Must be
 13342  // from 1 to 31 and valid for the year and month.
 13343  func (c *StatsGetUserCall) ToDateDay(toDateDay int64) *StatsGetUserCall {
 13344  	c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
 13345  	return c
 13346  }
 13347  
 13348  // ToDateMonth sets the optional parameter "toDate.month": Month of date. Must
 13349  // be from 1 to 12.
 13350  func (c *StatsGetUserCall) ToDateMonth(toDateMonth int64) *StatsGetUserCall {
 13351  	c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
 13352  	return c
 13353  }
 13354  
 13355  // ToDateYear sets the optional parameter "toDate.year": Year of date. Must be
 13356  // from 1 to 9999.
 13357  func (c *StatsGetUserCall) ToDateYear(toDateYear int64) *StatsGetUserCall {
 13358  	c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
 13359  	return c
 13360  }
 13361  
 13362  // Fields allows partial responses to be retrieved. See
 13363  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13364  // details.
 13365  func (c *StatsGetUserCall) Fields(s ...googleapi.Field) *StatsGetUserCall {
 13366  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13367  	return c
 13368  }
 13369  
 13370  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13371  // object's ETag matches the given value. This is useful for getting updates
 13372  // only after the object has changed since the last request.
 13373  func (c *StatsGetUserCall) IfNoneMatch(entityTag string) *StatsGetUserCall {
 13374  	c.ifNoneMatch_ = entityTag
 13375  	return c
 13376  }
 13377  
 13378  // Context sets the context to be used in this call's Do method.
 13379  func (c *StatsGetUserCall) Context(ctx context.Context) *StatsGetUserCall {
 13380  	c.ctx_ = ctx
 13381  	return c
 13382  }
 13383  
 13384  // Header returns a http.Header that can be modified by the caller to add
 13385  // headers to the request.
 13386  func (c *StatsGetUserCall) Header() http.Header {
 13387  	if c.header_ == nil {
 13388  		c.header_ = make(http.Header)
 13389  	}
 13390  	return c.header_
 13391  }
 13392  
 13393  func (c *StatsGetUserCall) doRequest(alt string) (*http.Response, error) {
 13394  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13395  	if c.ifNoneMatch_ != "" {
 13396  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13397  	}
 13398  	var body io.Reader = nil
 13399  	c.urlParams_.Set("alt", alt)
 13400  	c.urlParams_.Set("prettyPrint", "false")
 13401  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/stats/user")
 13402  	urls += "?" + c.urlParams_.Encode()
 13403  	req, err := http.NewRequest("GET", urls, body)
 13404  	if err != nil {
 13405  		return nil, err
 13406  	}
 13407  	req.Header = reqHeaders
 13408  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13409  }
 13410  
 13411  // Do executes the "cloudsearch.stats.getUser" call.
 13412  // Any non-2xx status code is an error. Response headers are in either
 13413  // *GetCustomerUserStatsResponse.ServerResponse.Header or (if a response was
 13414  // returned at all) in error.(*googleapi.Error).Header. Use
 13415  // googleapi.IsNotModified to check whether the returned error was because
 13416  // http.StatusNotModified was returned.
 13417  func (c *StatsGetUserCall) Do(opts ...googleapi.CallOption) (*GetCustomerUserStatsResponse, error) {
 13418  	gensupport.SetOptions(c.urlParams_, opts...)
 13419  	res, err := c.doRequest("json")
 13420  	if res != nil && res.StatusCode == http.StatusNotModified {
 13421  		if res.Body != nil {
 13422  			res.Body.Close()
 13423  		}
 13424  		return nil, gensupport.WrapError(&googleapi.Error{
 13425  			Code:   res.StatusCode,
 13426  			Header: res.Header,
 13427  		})
 13428  	}
 13429  	if err != nil {
 13430  		return nil, err
 13431  	}
 13432  	defer googleapi.CloseBody(res)
 13433  	if err := googleapi.CheckResponse(res); err != nil {
 13434  		return nil, gensupport.WrapError(err)
 13435  	}
 13436  	ret := &GetCustomerUserStatsResponse{
 13437  		ServerResponse: googleapi.ServerResponse{
 13438  			Header:         res.Header,
 13439  			HTTPStatusCode: res.StatusCode,
 13440  		},
 13441  	}
 13442  	target := &ret
 13443  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13444  		return nil, err
 13445  	}
 13446  	return ret, nil
 13447  }
 13448  
 13449  type StatsIndexDatasourcesGetCall struct {
 13450  	s            *Service
 13451  	name         string
 13452  	urlParams_   gensupport.URLParams
 13453  	ifNoneMatch_ string
 13454  	ctx_         context.Context
 13455  	header_      http.Header
 13456  }
 13457  
 13458  // Get: Gets indexed item statistics for a single data source. **Note:** This
 13459  // API requires a standard end user account to execute.
 13460  //
 13461  //   - name: The resource id of the data source to retrieve statistics for, in
 13462  //     the following format: "datasources/{source_id}".
 13463  func (r *StatsIndexDatasourcesService) Get(name string) *StatsIndexDatasourcesGetCall {
 13464  	c := &StatsIndexDatasourcesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13465  	c.name = name
 13466  	return c
 13467  }
 13468  
 13469  // FromDateDay sets the optional parameter "fromDate.day": Day of month. Must
 13470  // be from 1 to 31 and valid for the year and month.
 13471  func (c *StatsIndexDatasourcesGetCall) FromDateDay(fromDateDay int64) *StatsIndexDatasourcesGetCall {
 13472  	c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
 13473  	return c
 13474  }
 13475  
 13476  // FromDateMonth sets the optional parameter "fromDate.month": Month of date.
 13477  // Must be from 1 to 12.
 13478  func (c *StatsIndexDatasourcesGetCall) FromDateMonth(fromDateMonth int64) *StatsIndexDatasourcesGetCall {
 13479  	c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
 13480  	return c
 13481  }
 13482  
 13483  // FromDateYear sets the optional parameter "fromDate.year": Year of date. Must
 13484  // be from 1 to 9999.
 13485  func (c *StatsIndexDatasourcesGetCall) FromDateYear(fromDateYear int64) *StatsIndexDatasourcesGetCall {
 13486  	c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
 13487  	return c
 13488  }
 13489  
 13490  // ToDateDay sets the optional parameter "toDate.day": Day of month. Must be
 13491  // from 1 to 31 and valid for the year and month.
 13492  func (c *StatsIndexDatasourcesGetCall) ToDateDay(toDateDay int64) *StatsIndexDatasourcesGetCall {
 13493  	c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
 13494  	return c
 13495  }
 13496  
 13497  // ToDateMonth sets the optional parameter "toDate.month": Month of date. Must
 13498  // be from 1 to 12.
 13499  func (c *StatsIndexDatasourcesGetCall) ToDateMonth(toDateMonth int64) *StatsIndexDatasourcesGetCall {
 13500  	c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
 13501  	return c
 13502  }
 13503  
 13504  // ToDateYear sets the optional parameter "toDate.year": Year of date. Must be
 13505  // from 1 to 9999.
 13506  func (c *StatsIndexDatasourcesGetCall) ToDateYear(toDateYear int64) *StatsIndexDatasourcesGetCall {
 13507  	c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
 13508  	return c
 13509  }
 13510  
 13511  // Fields allows partial responses to be retrieved. See
 13512  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13513  // details.
 13514  func (c *StatsIndexDatasourcesGetCall) Fields(s ...googleapi.Field) *StatsIndexDatasourcesGetCall {
 13515  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13516  	return c
 13517  }
 13518  
 13519  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13520  // object's ETag matches the given value. This is useful for getting updates
 13521  // only after the object has changed since the last request.
 13522  func (c *StatsIndexDatasourcesGetCall) IfNoneMatch(entityTag string) *StatsIndexDatasourcesGetCall {
 13523  	c.ifNoneMatch_ = entityTag
 13524  	return c
 13525  }
 13526  
 13527  // Context sets the context to be used in this call's Do method.
 13528  func (c *StatsIndexDatasourcesGetCall) Context(ctx context.Context) *StatsIndexDatasourcesGetCall {
 13529  	c.ctx_ = ctx
 13530  	return c
 13531  }
 13532  
 13533  // Header returns a http.Header that can be modified by the caller to add
 13534  // headers to the request.
 13535  func (c *StatsIndexDatasourcesGetCall) Header() http.Header {
 13536  	if c.header_ == nil {
 13537  		c.header_ = make(http.Header)
 13538  	}
 13539  	return c.header_
 13540  }
 13541  
 13542  func (c *StatsIndexDatasourcesGetCall) doRequest(alt string) (*http.Response, error) {
 13543  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13544  	if c.ifNoneMatch_ != "" {
 13545  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13546  	}
 13547  	var body io.Reader = nil
 13548  	c.urlParams_.Set("alt", alt)
 13549  	c.urlParams_.Set("prettyPrint", "false")
 13550  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/stats/index/{+name}")
 13551  	urls += "?" + c.urlParams_.Encode()
 13552  	req, err := http.NewRequest("GET", urls, body)
 13553  	if err != nil {
 13554  		return nil, err
 13555  	}
 13556  	req.Header = reqHeaders
 13557  	googleapi.Expand(req.URL, map[string]string{
 13558  		"name": c.name,
 13559  	})
 13560  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13561  }
 13562  
 13563  // Do executes the "cloudsearch.stats.index.datasources.get" call.
 13564  // Any non-2xx status code is an error. Response headers are in either
 13565  // *GetDataSourceIndexStatsResponse.ServerResponse.Header or (if a response was
 13566  // returned at all) in error.(*googleapi.Error).Header. Use
 13567  // googleapi.IsNotModified to check whether the returned error was because
 13568  // http.StatusNotModified was returned.
 13569  func (c *StatsIndexDatasourcesGetCall) Do(opts ...googleapi.CallOption) (*GetDataSourceIndexStatsResponse, error) {
 13570  	gensupport.SetOptions(c.urlParams_, opts...)
 13571  	res, err := c.doRequest("json")
 13572  	if res != nil && res.StatusCode == http.StatusNotModified {
 13573  		if res.Body != nil {
 13574  			res.Body.Close()
 13575  		}
 13576  		return nil, gensupport.WrapError(&googleapi.Error{
 13577  			Code:   res.StatusCode,
 13578  			Header: res.Header,
 13579  		})
 13580  	}
 13581  	if err != nil {
 13582  		return nil, err
 13583  	}
 13584  	defer googleapi.CloseBody(res)
 13585  	if err := googleapi.CheckResponse(res); err != nil {
 13586  		return nil, gensupport.WrapError(err)
 13587  	}
 13588  	ret := &GetDataSourceIndexStatsResponse{
 13589  		ServerResponse: googleapi.ServerResponse{
 13590  			Header:         res.Header,
 13591  			HTTPStatusCode: res.StatusCode,
 13592  		},
 13593  	}
 13594  	target := &ret
 13595  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13596  		return nil, err
 13597  	}
 13598  	return ret, nil
 13599  }
 13600  
 13601  type StatsQuerySearchapplicationsGetCall struct {
 13602  	s            *Service
 13603  	name         string
 13604  	urlParams_   gensupport.URLParams
 13605  	ifNoneMatch_ string
 13606  	ctx_         context.Context
 13607  	header_      http.Header
 13608  }
 13609  
 13610  // Get: Get the query statistics for search application. **Note:** This API
 13611  // requires a standard end user account to execute.
 13612  //
 13613  //   - name: The resource id of the search application query stats, in the
 13614  //     following format: searchapplications/{application_id}.
 13615  func (r *StatsQuerySearchapplicationsService) Get(name string) *StatsQuerySearchapplicationsGetCall {
 13616  	c := &StatsQuerySearchapplicationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13617  	c.name = name
 13618  	return c
 13619  }
 13620  
 13621  // FromDateDay sets the optional parameter "fromDate.day": Day of month. Must
 13622  // be from 1 to 31 and valid for the year and month.
 13623  func (c *StatsQuerySearchapplicationsGetCall) FromDateDay(fromDateDay int64) *StatsQuerySearchapplicationsGetCall {
 13624  	c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
 13625  	return c
 13626  }
 13627  
 13628  // FromDateMonth sets the optional parameter "fromDate.month": Month of date.
 13629  // Must be from 1 to 12.
 13630  func (c *StatsQuerySearchapplicationsGetCall) FromDateMonth(fromDateMonth int64) *StatsQuerySearchapplicationsGetCall {
 13631  	c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
 13632  	return c
 13633  }
 13634  
 13635  // FromDateYear sets the optional parameter "fromDate.year": Year of date. Must
 13636  // be from 1 to 9999.
 13637  func (c *StatsQuerySearchapplicationsGetCall) FromDateYear(fromDateYear int64) *StatsQuerySearchapplicationsGetCall {
 13638  	c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
 13639  	return c
 13640  }
 13641  
 13642  // ToDateDay sets the optional parameter "toDate.day": Day of month. Must be
 13643  // from 1 to 31 and valid for the year and month.
 13644  func (c *StatsQuerySearchapplicationsGetCall) ToDateDay(toDateDay int64) *StatsQuerySearchapplicationsGetCall {
 13645  	c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
 13646  	return c
 13647  }
 13648  
 13649  // ToDateMonth sets the optional parameter "toDate.month": Month of date. Must
 13650  // be from 1 to 12.
 13651  func (c *StatsQuerySearchapplicationsGetCall) ToDateMonth(toDateMonth int64) *StatsQuerySearchapplicationsGetCall {
 13652  	c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
 13653  	return c
 13654  }
 13655  
 13656  // ToDateYear sets the optional parameter "toDate.year": Year of date. Must be
 13657  // from 1 to 9999.
 13658  func (c *StatsQuerySearchapplicationsGetCall) ToDateYear(toDateYear int64) *StatsQuerySearchapplicationsGetCall {
 13659  	c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
 13660  	return c
 13661  }
 13662  
 13663  // Fields allows partial responses to be retrieved. See
 13664  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13665  // details.
 13666  func (c *StatsQuerySearchapplicationsGetCall) Fields(s ...googleapi.Field) *StatsQuerySearchapplicationsGetCall {
 13667  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13668  	return c
 13669  }
 13670  
 13671  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13672  // object's ETag matches the given value. This is useful for getting updates
 13673  // only after the object has changed since the last request.
 13674  func (c *StatsQuerySearchapplicationsGetCall) IfNoneMatch(entityTag string) *StatsQuerySearchapplicationsGetCall {
 13675  	c.ifNoneMatch_ = entityTag
 13676  	return c
 13677  }
 13678  
 13679  // Context sets the context to be used in this call's Do method.
 13680  func (c *StatsQuerySearchapplicationsGetCall) Context(ctx context.Context) *StatsQuerySearchapplicationsGetCall {
 13681  	c.ctx_ = ctx
 13682  	return c
 13683  }
 13684  
 13685  // Header returns a http.Header that can be modified by the caller to add
 13686  // headers to the request.
 13687  func (c *StatsQuerySearchapplicationsGetCall) Header() http.Header {
 13688  	if c.header_ == nil {
 13689  		c.header_ = make(http.Header)
 13690  	}
 13691  	return c.header_
 13692  }
 13693  
 13694  func (c *StatsQuerySearchapplicationsGetCall) doRequest(alt string) (*http.Response, error) {
 13695  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13696  	if c.ifNoneMatch_ != "" {
 13697  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13698  	}
 13699  	var body io.Reader = nil
 13700  	c.urlParams_.Set("alt", alt)
 13701  	c.urlParams_.Set("prettyPrint", "false")
 13702  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/stats/query/{+name}")
 13703  	urls += "?" + c.urlParams_.Encode()
 13704  	req, err := http.NewRequest("GET", urls, body)
 13705  	if err != nil {
 13706  		return nil, err
 13707  	}
 13708  	req.Header = reqHeaders
 13709  	googleapi.Expand(req.URL, map[string]string{
 13710  		"name": c.name,
 13711  	})
 13712  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13713  }
 13714  
 13715  // Do executes the "cloudsearch.stats.query.searchapplications.get" call.
 13716  // Any non-2xx status code is an error. Response headers are in either
 13717  // *GetSearchApplicationQueryStatsResponse.ServerResponse.Header or (if a
 13718  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13719  // googleapi.IsNotModified to check whether the returned error was because
 13720  // http.StatusNotModified was returned.
 13721  func (c *StatsQuerySearchapplicationsGetCall) Do(opts ...googleapi.CallOption) (*GetSearchApplicationQueryStatsResponse, error) {
 13722  	gensupport.SetOptions(c.urlParams_, opts...)
 13723  	res, err := c.doRequest("json")
 13724  	if res != nil && res.StatusCode == http.StatusNotModified {
 13725  		if res.Body != nil {
 13726  			res.Body.Close()
 13727  		}
 13728  		return nil, gensupport.WrapError(&googleapi.Error{
 13729  			Code:   res.StatusCode,
 13730  			Header: res.Header,
 13731  		})
 13732  	}
 13733  	if err != nil {
 13734  		return nil, err
 13735  	}
 13736  	defer googleapi.CloseBody(res)
 13737  	if err := googleapi.CheckResponse(res); err != nil {
 13738  		return nil, gensupport.WrapError(err)
 13739  	}
 13740  	ret := &GetSearchApplicationQueryStatsResponse{
 13741  		ServerResponse: googleapi.ServerResponse{
 13742  			Header:         res.Header,
 13743  			HTTPStatusCode: res.StatusCode,
 13744  		},
 13745  	}
 13746  	target := &ret
 13747  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13748  		return nil, err
 13749  	}
 13750  	return ret, nil
 13751  }
 13752  
 13753  type StatsSessionSearchapplicationsGetCall struct {
 13754  	s            *Service
 13755  	name         string
 13756  	urlParams_   gensupport.URLParams
 13757  	ifNoneMatch_ string
 13758  	ctx_         context.Context
 13759  	header_      http.Header
 13760  }
 13761  
 13762  // Get: Get the # of search sessions, % of successful sessions with a click
 13763  // query statistics for search application. **Note:** This API requires a
 13764  // standard end user account to execute.
 13765  //
 13766  //   - name: The resource id of the search application session stats, in the
 13767  //     following format: searchapplications/{application_id}.
 13768  func (r *StatsSessionSearchapplicationsService) Get(name string) *StatsSessionSearchapplicationsGetCall {
 13769  	c := &StatsSessionSearchapplicationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13770  	c.name = name
 13771  	return c
 13772  }
 13773  
 13774  // FromDateDay sets the optional parameter "fromDate.day": Day of month. Must
 13775  // be from 1 to 31 and valid for the year and month.
 13776  func (c *StatsSessionSearchapplicationsGetCall) FromDateDay(fromDateDay int64) *StatsSessionSearchapplicationsGetCall {
 13777  	c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
 13778  	return c
 13779  }
 13780  
 13781  // FromDateMonth sets the optional parameter "fromDate.month": Month of date.
 13782  // Must be from 1 to 12.
 13783  func (c *StatsSessionSearchapplicationsGetCall) FromDateMonth(fromDateMonth int64) *StatsSessionSearchapplicationsGetCall {
 13784  	c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
 13785  	return c
 13786  }
 13787  
 13788  // FromDateYear sets the optional parameter "fromDate.year": Year of date. Must
 13789  // be from 1 to 9999.
 13790  func (c *StatsSessionSearchapplicationsGetCall) FromDateYear(fromDateYear int64) *StatsSessionSearchapplicationsGetCall {
 13791  	c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
 13792  	return c
 13793  }
 13794  
 13795  // ToDateDay sets the optional parameter "toDate.day": Day of month. Must be
 13796  // from 1 to 31 and valid for the year and month.
 13797  func (c *StatsSessionSearchapplicationsGetCall) ToDateDay(toDateDay int64) *StatsSessionSearchapplicationsGetCall {
 13798  	c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
 13799  	return c
 13800  }
 13801  
 13802  // ToDateMonth sets the optional parameter "toDate.month": Month of date. Must
 13803  // be from 1 to 12.
 13804  func (c *StatsSessionSearchapplicationsGetCall) ToDateMonth(toDateMonth int64) *StatsSessionSearchapplicationsGetCall {
 13805  	c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
 13806  	return c
 13807  }
 13808  
 13809  // ToDateYear sets the optional parameter "toDate.year": Year of date. Must be
 13810  // from 1 to 9999.
 13811  func (c *StatsSessionSearchapplicationsGetCall) ToDateYear(toDateYear int64) *StatsSessionSearchapplicationsGetCall {
 13812  	c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
 13813  	return c
 13814  }
 13815  
 13816  // Fields allows partial responses to be retrieved. See
 13817  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13818  // details.
 13819  func (c *StatsSessionSearchapplicationsGetCall) Fields(s ...googleapi.Field) *StatsSessionSearchapplicationsGetCall {
 13820  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13821  	return c
 13822  }
 13823  
 13824  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13825  // object's ETag matches the given value. This is useful for getting updates
 13826  // only after the object has changed since the last request.
 13827  func (c *StatsSessionSearchapplicationsGetCall) IfNoneMatch(entityTag string) *StatsSessionSearchapplicationsGetCall {
 13828  	c.ifNoneMatch_ = entityTag
 13829  	return c
 13830  }
 13831  
 13832  // Context sets the context to be used in this call's Do method.
 13833  func (c *StatsSessionSearchapplicationsGetCall) Context(ctx context.Context) *StatsSessionSearchapplicationsGetCall {
 13834  	c.ctx_ = ctx
 13835  	return c
 13836  }
 13837  
 13838  // Header returns a http.Header that can be modified by the caller to add
 13839  // headers to the request.
 13840  func (c *StatsSessionSearchapplicationsGetCall) Header() http.Header {
 13841  	if c.header_ == nil {
 13842  		c.header_ = make(http.Header)
 13843  	}
 13844  	return c.header_
 13845  }
 13846  
 13847  func (c *StatsSessionSearchapplicationsGetCall) doRequest(alt string) (*http.Response, error) {
 13848  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 13849  	if c.ifNoneMatch_ != "" {
 13850  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 13851  	}
 13852  	var body io.Reader = nil
 13853  	c.urlParams_.Set("alt", alt)
 13854  	c.urlParams_.Set("prettyPrint", "false")
 13855  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/stats/session/{+name}")
 13856  	urls += "?" + c.urlParams_.Encode()
 13857  	req, err := http.NewRequest("GET", urls, body)
 13858  	if err != nil {
 13859  		return nil, err
 13860  	}
 13861  	req.Header = reqHeaders
 13862  	googleapi.Expand(req.URL, map[string]string{
 13863  		"name": c.name,
 13864  	})
 13865  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 13866  }
 13867  
 13868  // Do executes the "cloudsearch.stats.session.searchapplications.get" call.
 13869  // Any non-2xx status code is an error. Response headers are in either
 13870  // *GetSearchApplicationSessionStatsResponse.ServerResponse.Header or (if a
 13871  // response was returned at all) in error.(*googleapi.Error).Header. Use
 13872  // googleapi.IsNotModified to check whether the returned error was because
 13873  // http.StatusNotModified was returned.
 13874  func (c *StatsSessionSearchapplicationsGetCall) Do(opts ...googleapi.CallOption) (*GetSearchApplicationSessionStatsResponse, error) {
 13875  	gensupport.SetOptions(c.urlParams_, opts...)
 13876  	res, err := c.doRequest("json")
 13877  	if res != nil && res.StatusCode == http.StatusNotModified {
 13878  		if res.Body != nil {
 13879  			res.Body.Close()
 13880  		}
 13881  		return nil, gensupport.WrapError(&googleapi.Error{
 13882  			Code:   res.StatusCode,
 13883  			Header: res.Header,
 13884  		})
 13885  	}
 13886  	if err != nil {
 13887  		return nil, err
 13888  	}
 13889  	defer googleapi.CloseBody(res)
 13890  	if err := googleapi.CheckResponse(res); err != nil {
 13891  		return nil, gensupport.WrapError(err)
 13892  	}
 13893  	ret := &GetSearchApplicationSessionStatsResponse{
 13894  		ServerResponse: googleapi.ServerResponse{
 13895  			Header:         res.Header,
 13896  			HTTPStatusCode: res.StatusCode,
 13897  		},
 13898  	}
 13899  	target := &ret
 13900  	if err := gensupport.DecodeResponse(target, res); err != nil {
 13901  		return nil, err
 13902  	}
 13903  	return ret, nil
 13904  }
 13905  
 13906  type StatsUserSearchapplicationsGetCall struct {
 13907  	s            *Service
 13908  	name         string
 13909  	urlParams_   gensupport.URLParams
 13910  	ifNoneMatch_ string
 13911  	ctx_         context.Context
 13912  	header_      http.Header
 13913  }
 13914  
 13915  // Get: Get the users statistics for search application. **Note:** This API
 13916  // requires a standard end user account to execute.
 13917  //
 13918  //   - name: The resource id of the search application session stats, in the
 13919  //     following format: searchapplications/{application_id}.
 13920  func (r *StatsUserSearchapplicationsService) Get(name string) *StatsUserSearchapplicationsGetCall {
 13921  	c := &StatsUserSearchapplicationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 13922  	c.name = name
 13923  	return c
 13924  }
 13925  
 13926  // FromDateDay sets the optional parameter "fromDate.day": Day of month. Must
 13927  // be from 1 to 31 and valid for the year and month.
 13928  func (c *StatsUserSearchapplicationsGetCall) FromDateDay(fromDateDay int64) *StatsUserSearchapplicationsGetCall {
 13929  	c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
 13930  	return c
 13931  }
 13932  
 13933  // FromDateMonth sets the optional parameter "fromDate.month": Month of date.
 13934  // Must be from 1 to 12.
 13935  func (c *StatsUserSearchapplicationsGetCall) FromDateMonth(fromDateMonth int64) *StatsUserSearchapplicationsGetCall {
 13936  	c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
 13937  	return c
 13938  }
 13939  
 13940  // FromDateYear sets the optional parameter "fromDate.year": Year of date. Must
 13941  // be from 1 to 9999.
 13942  func (c *StatsUserSearchapplicationsGetCall) FromDateYear(fromDateYear int64) *StatsUserSearchapplicationsGetCall {
 13943  	c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
 13944  	return c
 13945  }
 13946  
 13947  // ToDateDay sets the optional parameter "toDate.day": Day of month. Must be
 13948  // from 1 to 31 and valid for the year and month.
 13949  func (c *StatsUserSearchapplicationsGetCall) ToDateDay(toDateDay int64) *StatsUserSearchapplicationsGetCall {
 13950  	c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
 13951  	return c
 13952  }
 13953  
 13954  // ToDateMonth sets the optional parameter "toDate.month": Month of date. Must
 13955  // be from 1 to 12.
 13956  func (c *StatsUserSearchapplicationsGetCall) ToDateMonth(toDateMonth int64) *StatsUserSearchapplicationsGetCall {
 13957  	c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
 13958  	return c
 13959  }
 13960  
 13961  // ToDateYear sets the optional parameter "toDate.year": Year of date. Must be
 13962  // from 1 to 9999.
 13963  func (c *StatsUserSearchapplicationsGetCall) ToDateYear(toDateYear int64) *StatsUserSearchapplicationsGetCall {
 13964  	c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
 13965  	return c
 13966  }
 13967  
 13968  // Fields allows partial responses to be retrieved. See
 13969  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 13970  // details.
 13971  func (c *StatsUserSearchapplicationsGetCall) Fields(s ...googleapi.Field) *StatsUserSearchapplicationsGetCall {
 13972  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 13973  	return c
 13974  }
 13975  
 13976  // IfNoneMatch sets an optional parameter which makes the operation fail if the
 13977  // object's ETag matches the given value. This is useful for getting updates
 13978  // only after the object has changed since the last request.
 13979  func (c *StatsUserSearchapplicationsGetCall) IfNoneMatch(entityTag string) *StatsUserSearchapplicationsGetCall {
 13980  	c.ifNoneMatch_ = entityTag
 13981  	return c
 13982  }
 13983  
 13984  // Context sets the context to be used in this call's Do method.
 13985  func (c *StatsUserSearchapplicationsGetCall) Context(ctx context.Context) *StatsUserSearchapplicationsGetCall {
 13986  	c.ctx_ = ctx
 13987  	return c
 13988  }
 13989  
 13990  // Header returns a http.Header that can be modified by the caller to add
 13991  // headers to the request.
 13992  func (c *StatsUserSearchapplicationsGetCall) Header() http.Header {
 13993  	if c.header_ == nil {
 13994  		c.header_ = make(http.Header)
 13995  	}
 13996  	return c.header_
 13997  }
 13998  
 13999  func (c *StatsUserSearchapplicationsGetCall) doRequest(alt string) (*http.Response, error) {
 14000  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
 14001  	if c.ifNoneMatch_ != "" {
 14002  		reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
 14003  	}
 14004  	var body io.Reader = nil
 14005  	c.urlParams_.Set("alt", alt)
 14006  	c.urlParams_.Set("prettyPrint", "false")
 14007  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1/stats/user/{+name}")
 14008  	urls += "?" + c.urlParams_.Encode()
 14009  	req, err := http.NewRequest("GET", urls, body)
 14010  	if err != nil {
 14011  		return nil, err
 14012  	}
 14013  	req.Header = reqHeaders
 14014  	googleapi.Expand(req.URL, map[string]string{
 14015  		"name": c.name,
 14016  	})
 14017  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14018  }
 14019  
 14020  // Do executes the "cloudsearch.stats.user.searchapplications.get" call.
 14021  // Any non-2xx status code is an error. Response headers are in either
 14022  // *GetSearchApplicationUserStatsResponse.ServerResponse.Header or (if a
 14023  // response was returned at all) in error.(*googleapi.Error).Header. Use
 14024  // googleapi.IsNotModified to check whether the returned error was because
 14025  // http.StatusNotModified was returned.
 14026  func (c *StatsUserSearchapplicationsGetCall) Do(opts ...googleapi.CallOption) (*GetSearchApplicationUserStatsResponse, error) {
 14027  	gensupport.SetOptions(c.urlParams_, opts...)
 14028  	res, err := c.doRequest("json")
 14029  	if res != nil && res.StatusCode == http.StatusNotModified {
 14030  		if res.Body != nil {
 14031  			res.Body.Close()
 14032  		}
 14033  		return nil, gensupport.WrapError(&googleapi.Error{
 14034  			Code:   res.StatusCode,
 14035  			Header: res.Header,
 14036  		})
 14037  	}
 14038  	if err != nil {
 14039  		return nil, err
 14040  	}
 14041  	defer googleapi.CloseBody(res)
 14042  	if err := googleapi.CheckResponse(res); err != nil {
 14043  		return nil, gensupport.WrapError(err)
 14044  	}
 14045  	ret := &GetSearchApplicationUserStatsResponse{
 14046  		ServerResponse: googleapi.ServerResponse{
 14047  			Header:         res.Header,
 14048  			HTTPStatusCode: res.StatusCode,
 14049  		},
 14050  	}
 14051  	target := &ret
 14052  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14053  		return nil, err
 14054  	}
 14055  	return ret, nil
 14056  }
 14057  
 14058  type V1InitializeCustomerCall struct {
 14059  	s                         *Service
 14060  	initializecustomerrequest *InitializeCustomerRequest
 14061  	urlParams_                gensupport.URLParams
 14062  	ctx_                      context.Context
 14063  	header_                   http.Header
 14064  }
 14065  
 14066  // InitializeCustomer: Enables `third party` support in Google Cloud Search.
 14067  // **Note:** This API requires an admin account to execute.
 14068  func (r *V1Service) InitializeCustomer(initializecustomerrequest *InitializeCustomerRequest) *V1InitializeCustomerCall {
 14069  	c := &V1InitializeCustomerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
 14070  	c.initializecustomerrequest = initializecustomerrequest
 14071  	return c
 14072  }
 14073  
 14074  // Fields allows partial responses to be retrieved. See
 14075  // https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more
 14076  // details.
 14077  func (c *V1InitializeCustomerCall) Fields(s ...googleapi.Field) *V1InitializeCustomerCall {
 14078  	c.urlParams_.Set("fields", googleapi.CombineFields(s))
 14079  	return c
 14080  }
 14081  
 14082  // Context sets the context to be used in this call's Do method.
 14083  func (c *V1InitializeCustomerCall) Context(ctx context.Context) *V1InitializeCustomerCall {
 14084  	c.ctx_ = ctx
 14085  	return c
 14086  }
 14087  
 14088  // Header returns a http.Header that can be modified by the caller to add
 14089  // headers to the request.
 14090  func (c *V1InitializeCustomerCall) Header() http.Header {
 14091  	if c.header_ == nil {
 14092  		c.header_ = make(http.Header)
 14093  	}
 14094  	return c.header_
 14095  }
 14096  
 14097  func (c *V1InitializeCustomerCall) doRequest(alt string) (*http.Response, error) {
 14098  	reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
 14099  	var body io.Reader = nil
 14100  	body, err := googleapi.WithoutDataWrapper.JSONReader(c.initializecustomerrequest)
 14101  	if err != nil {
 14102  		return nil, err
 14103  	}
 14104  	c.urlParams_.Set("alt", alt)
 14105  	c.urlParams_.Set("prettyPrint", "false")
 14106  	urls := googleapi.ResolveRelative(c.s.BasePath, "v1:initializeCustomer")
 14107  	urls += "?" + c.urlParams_.Encode()
 14108  	req, err := http.NewRequest("POST", urls, body)
 14109  	if err != nil {
 14110  		return nil, err
 14111  	}
 14112  	req.Header = reqHeaders
 14113  	return gensupport.SendRequest(c.ctx_, c.s.client, req)
 14114  }
 14115  
 14116  // Do executes the "cloudsearch.initializeCustomer" call.
 14117  // Any non-2xx status code is an error. Response headers are in either
 14118  // *Operation.ServerResponse.Header or (if a response was returned at all) in
 14119  // error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check
 14120  // whether the returned error was because http.StatusNotModified was returned.
 14121  func (c *V1InitializeCustomerCall) Do(opts ...googleapi.CallOption) (*Operation, error) {
 14122  	gensupport.SetOptions(c.urlParams_, opts...)
 14123  	res, err := c.doRequest("json")
 14124  	if res != nil && res.StatusCode == http.StatusNotModified {
 14125  		if res.Body != nil {
 14126  			res.Body.Close()
 14127  		}
 14128  		return nil, gensupport.WrapError(&googleapi.Error{
 14129  			Code:   res.StatusCode,
 14130  			Header: res.Header,
 14131  		})
 14132  	}
 14133  	if err != nil {
 14134  		return nil, err
 14135  	}
 14136  	defer googleapi.CloseBody(res)
 14137  	if err := googleapi.CheckResponse(res); err != nil {
 14138  		return nil, gensupport.WrapError(err)
 14139  	}
 14140  	ret := &Operation{
 14141  		ServerResponse: googleapi.ServerResponse{
 14142  			Header:         res.Header,
 14143  			HTTPStatusCode: res.StatusCode,
 14144  		},
 14145  	}
 14146  	target := &ret
 14147  	if err := gensupport.DecodeResponse(target, res); err != nil {
 14148  		return nil, err
 14149  	}
 14150  	return ret, nil
 14151  }
 14152  

View as plain text