1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56 package cloudsearch
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
79
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
102 const (
103
104 CloudSearchScope = "https://www.googleapis.com/auth/cloud_search"
105
106
107 CloudSearchDebugScope = "https://www.googleapis.com/auth/cloud_search.debug"
108
109
110 CloudSearchIndexingScope = "https://www.googleapis.com/auth/cloud_search.indexing"
111
112
113 CloudSearchQueryScope = "https://www.googleapis.com/auth/cloud_search.query"
114
115
116 CloudSearchSettingsScope = "https://www.googleapis.com/auth/cloud_search.settings"
117
118
119 CloudSearchSettingsIndexingScope = "https://www.googleapis.com/auth/cloud_search.settings.indexing"
120
121
122 CloudSearchSettingsQueryScope = "https://www.googleapis.com/auth/cloud_search.settings.query"
123
124
125 CloudSearchStatsScope = "https://www.googleapis.com/auth/cloud_search.stats"
126
127
128 CloudSearchStatsIndexingScope = "https://www.googleapis.com/auth/cloud_search.stats.indexing"
129 )
130
131
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
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
165
166
167
168
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
188 UserAgent string
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
528 Title string `json:"title,omitempty"`
529
530 Url string `json:"url,omitempty"`
531
532
533
534
535
536 ForceSendFields []string `json:"-"`
537
538
539
540
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
550 type AuditLoggingSettings struct {
551
552
553
554 LogAdminReadActions bool `json:"logAdminReadActions,omitempty"`
555
556
557 LogDataReadActions bool `json:"logDataReadActions,omitempty"`
558
559
560 LogDataWriteActions bool `json:"logDataWriteActions,omitempty"`
561
562
563
564 Project string `json:"project,omitempty"`
565
566
567
568
569
570 ForceSendFields []string `json:"-"`
571
572
573
574
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
585
586
587
588
589
590
591
592
593
594
595
596 BackgroundColor string `json:"backgroundColor,omitempty"`
597
598 Text string `json:"text,omitempty"`
599
600
601
602
603
604 ForceSendFields []string `json:"-"`
605
606
607
608
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
618
619
620 type BooleanOperatorOptions struct {
621
622
623
624
625
626
627
628
629
630 OperatorName string `json:"operatorName,omitempty"`
631
632
633
634
635
636 ForceSendFields []string `json:"-"`
637
638
639
640
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
650 type BooleanPropertyOptions struct {
651
652
653 OperatorOptions *BooleanOperatorOptions `json:"operatorOptions,omitempty"`
654
655
656
657
658
659 ForceSendFields []string `json:"-"`
660
661
662
663
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
674 HasAccess bool `json:"hasAccess,omitempty"`
675
676
677 googleapi.ServerResponse `json:"-"`
678
679
680
681
682
683 ForceSendFields []string `json:"-"`
684
685
686
687
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
698
699
700
701
702
703 LogicOperator string `json:"logicOperator,omitempty"`
704
705 SubFilters []*Filter `json:"subFilters,omitempty"`
706
707
708
709
710
711 ForceSendFields []string `json:"-"`
712
713
714
715
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
726 Actions []*Action `json:"actions,omitempty"`
727
728 Description *SafeHtmlProto `json:"description,omitempty"`
729
730 Subtitle *BackgroundColoredText `json:"subtitle,omitempty"`
731
732 Title *BackgroundColoredText `json:"title,omitempty"`
733
734
735
736
737
738 ForceSendFields []string `json:"-"`
739
740
741
742
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
753
754
755
756
757
758
759 App []string `json:"app,omitempty"`
760
761
762 DayOfWeek []int64 `json:"dayOfWeek,omitempty"`
763
764
765 EndDateSec int64 `json:"endDateSec,omitempty,string"`
766
767
768
769
770 EndDayOffsetSec int64 `json:"endDayOffsetSec,omitempty,string"`
771
772
773
774 Locale []string `json:"locale,omitempty"`
775
776
777
778 Location []string `json:"location,omitempty"`
779
780
781
782 Query []string `json:"query,omitempty"`
783
784
785 StartDateSec int64 `json:"startDateSec,omitempty,string"`
786
787
788
789 StartDayOffsetSec int64 `json:"startDayOffsetSec,omitempty,string"`
790
791
792
793
794
795
796
797
798
799
800 Surface []string `json:"surface,omitempty"`
801
802
803
804
805
806
807
808 Type []string `json:"type,omitempty"`
809
810
811
812
813
814 ForceSendFields []string `json:"-"`
815
816
817
818
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
828
829
830 type ContextAttribute struct {
831
832
833
834
835 Name string `json:"name,omitempty"`
836
837
838
839 Values []string `json:"values,omitempty"`
840
841
842
843
844
845 ForceSendFields []string `json:"-"`
846
847
848
849
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
859
860 type CustomerIndexStats struct {
861
862 Date *Date `json:"date,omitempty"`
863
864 ItemCountByStatus []*ItemCountByStatus `json:"itemCountByStatus,omitempty"`
865
866
867
868
869
870 ForceSendFields []string `json:"-"`
871
872
873
874
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
885
886 Date *Date `json:"date,omitempty"`
887 QueryCountByStatus []*QueryCountByStatus `json:"queryCountByStatus,omitempty"`
888
889
890
891
892
893 ForceSendFields []string `json:"-"`
894
895
896
897
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
907
908 type CustomerSearchApplicationStats struct {
909
910 Count int64 `json:"count,omitempty,string"`
911
912 Date *Date `json:"date,omitempty"`
913
914
915
916
917
918 ForceSendFields []string `json:"-"`
919
920
921
922
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
933
934 Date *Date `json:"date,omitempty"`
935
936 SearchSessionsCount int64 `json:"searchSessionsCount,omitempty,string"`
937
938
939
940
941
942 ForceSendFields []string `json:"-"`
943
944
945
946
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
956 type CustomerSettings struct {
957
958
959
960 AuditLoggingSettings *AuditLoggingSettings `json:"auditLoggingSettings,omitempty"`
961
962
963 VpcSettings *VPCSettings `json:"vpcSettings,omitempty"`
964
965
966 googleapi.ServerResponse `json:"-"`
967
968
969
970
971
972 ForceSendFields []string `json:"-"`
973
974
975
976
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
987
988 Date *Date `json:"date,omitempty"`
989
990 OneDayActiveUsersCount int64 `json:"oneDayActiveUsersCount,omitempty,string"`
991
992
993 SevenDaysActiveUsersCount int64 `json:"sevenDaysActiveUsersCount,omitempty,string"`
994
995
996 ThirtyDaysActiveUsersCount int64 `json:"thirtyDaysActiveUsersCount,omitempty,string"`
997
998
999
1000
1001
1002 ForceSendFields []string `json:"-"`
1003
1004
1005
1006
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
1016
1017
1018 type DataSource struct {
1019
1020
1021
1022
1023 DisableModifications bool `json:"disableModifications,omitempty"`
1024
1025 DisableServing bool `json:"disableServing,omitempty"`
1026
1027
1028 DisplayName string `json:"displayName,omitempty"`
1029
1030 IndexingServiceAccounts []string `json:"indexingServiceAccounts,omitempty"`
1031
1032
1033
1034
1035
1036
1037 ItemsVisibility []*GSuitePrincipal `json:"itemsVisibility,omitempty"`
1038
1039
1040 Name string `json:"name,omitempty"`
1041
1042
1043 OperationIds []string `json:"operationIds,omitempty"`
1044
1045
1046 ReturnThumbnailUrls bool `json:"returnThumbnailUrls,omitempty"`
1047
1048
1049
1050
1051
1052
1053
1054
1055 ShortName string `json:"shortName,omitempty"`
1056
1057
1058 googleapi.ServerResponse `json:"-"`
1059
1060
1061
1062
1063
1064 ForceSendFields []string `json:"-"`
1065
1066
1067
1068
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
1078
1079 type DataSourceIndexStats struct {
1080
1081
1082
1083
1084 Date *Date `json:"date,omitempty"`
1085
1086 ItemCountByStatus []*ItemCountByStatus `json:"itemCountByStatus,omitempty"`
1087
1088
1089
1090
1091
1092 ForceSendFields []string `json:"-"`
1093
1094
1095
1096
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
1106 type DataSourceRestriction struct {
1107
1108
1109
1110
1111
1112
1113
1114 FilterOptions []*FilterOptions `json:"filterOptions,omitempty"`
1115
1116 Source *Source `json:"source,omitempty"`
1117
1118
1119
1120
1121
1122 ForceSendFields []string `json:"-"`
1123
1124
1125
1126
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
1136
1137
1138
1139
1140 type Date struct {
1141
1142 Day int64 `json:"day,omitempty"`
1143
1144 Month int64 `json:"month,omitempty"`
1145
1146 Year int64 `json:"year,omitempty"`
1147
1148
1149
1150
1151
1152 ForceSendFields []string `json:"-"`
1153
1154
1155
1156
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
1166
1167
1168 type DateOperatorOptions struct {
1169
1170
1171
1172
1173
1174
1175
1176 GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"`
1177
1178
1179
1180
1181
1182
1183
1184 LessThanOperatorName string `json:"lessThanOperatorName,omitempty"`
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195 OperatorName string `json:"operatorName,omitempty"`
1196
1197
1198
1199
1200
1201 ForceSendFields []string `json:"-"`
1202
1203
1204
1205
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
1215 type DatePropertyOptions struct {
1216
1217
1218 OperatorOptions *DateOperatorOptions `json:"operatorOptions,omitempty"`
1219
1220
1221
1222
1223
1224 ForceSendFields []string `json:"-"`
1225
1226
1227
1228
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
1238 type DateValues struct {
1239 Values []*Date `json:"values,omitempty"`
1240
1241
1242
1243
1244
1245 ForceSendFields []string `json:"-"`
1246
1247
1248
1249
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
1259 type DebugOptions struct {
1260
1261
1262 EnableDebugging bool `json:"enableDebugging,omitempty"`
1263
1264
1265
1266
1267
1268 ForceSendFields []string `json:"-"`
1269
1270
1271
1272
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
1283
1284 ConnectorName string `json:"connectorName,omitempty"`
1285
1286 DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
1287
1288 Queue string `json:"queue,omitempty"`
1289
1290
1291
1292
1293
1294 ForceSendFields []string `json:"-"`
1295
1296
1297
1298
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
1308
1309
1310
1311
1312 type DisplayedProperty struct {
1313
1314
1315
1316 PropertyName string `json:"propertyName,omitempty"`
1317
1318
1319
1320
1321
1322 ForceSendFields []string `json:"-"`
1323
1324
1325
1326
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
1336
1337
1338 type DoubleOperatorOptions struct {
1339
1340
1341
1342 OperatorName string `json:"operatorName,omitempty"`
1343
1344
1345
1346
1347
1348 ForceSendFields []string `json:"-"`
1349
1350
1351
1352
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
1362 type DoublePropertyOptions struct {
1363
1364
1365 OperatorOptions *DoubleOperatorOptions `json:"operatorOptions,omitempty"`
1366
1367
1368
1369
1370
1371 ForceSendFields []string `json:"-"`
1372
1373
1374
1375
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
1385 type DoubleValues struct {
1386 Values []float64 `json:"values,omitempty"`
1387
1388
1389
1390
1391
1392 ForceSendFields []string `json:"-"`
1393
1394
1395
1396
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
1423
1424 type DriveFollowUpRestrict struct {
1425
1426
1427
1428
1429 Type string `json:"type,omitempty"`
1430
1431
1432
1433
1434
1435 ForceSendFields []string `json:"-"`
1436
1437
1438
1439
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
1449 type DriveLocationRestrict struct {
1450
1451
1452
1453
1454 Type string `json:"type,omitempty"`
1455
1456
1457
1458
1459
1460 ForceSendFields []string `json:"-"`
1461
1462
1463
1464
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
1474 type DriveMimeTypeRestrict struct {
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491 Type string `json:"type,omitempty"`
1492
1493
1494
1495
1496
1497 ForceSendFields []string `json:"-"`
1498
1499
1500
1501
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
1511
1512 type DriveTimeSpanRestrict struct {
1513
1514
1515
1516
1517
1518
1519
1520 Type string `json:"type,omitempty"`
1521
1522
1523
1524
1525
1526 ForceSendFields []string `json:"-"`
1527
1528
1529
1530
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
1540 type EmailAddress struct {
1541
1542
1543 CustomType string `json:"customType,omitempty"`
1544
1545 EmailAddress string `json:"emailAddress,omitempty"`
1546
1547 EmailUrl string `json:"emailUrl,omitempty"`
1548
1549
1550 Primary bool `json:"primary,omitempty"`
1551
1552
1553 Type string `json:"type,omitempty"`
1554
1555
1556
1557
1558
1559 ForceSendFields []string `json:"-"`
1560
1561
1562
1563
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
1574 Type string `json:"type,omitempty"`
1575 Url *SafeUrlProto `json:"url,omitempty"`
1576
1577
1578
1579
1580
1581 ForceSendFields []string `json:"-"`
1582
1583
1584
1585
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
1596
1597 PhoneNumber string `json:"phoneNumber,omitempty"`
1598
1599 PhoneUrl *SafeUrlProto `json:"phoneUrl,omitempty"`
1600
1601
1602
1603
1604
1605 Type string `json:"type,omitempty"`
1606
1607
1608
1609
1610
1611 ForceSendFields []string `json:"-"`
1612
1613
1614
1615
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
1625 type EnterpriseTopazSidekickAgendaEntry struct {
1626
1627 AgendaItemUrl string `json:"agendaItemUrl,omitempty"`
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638 Chronology string `json:"chronology,omitempty"`
1639
1640 Creator *EnterpriseTopazSidekickPerson `json:"creator,omitempty"`
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650 CurrentUserAttendingStatus string `json:"currentUserAttendingStatus,omitempty"`
1651
1652
1653 Description string `json:"description,omitempty"`
1654
1655
1656 Document []*EnterpriseTopazSidekickCommonDocument `json:"document,omitempty"`
1657
1658 EndDate string `json:"endDate,omitempty"`
1659
1660 EndTime string `json:"endTime,omitempty"`
1661
1662 EndTimeMs int64 `json:"endTimeMs,omitempty,string"`
1663
1664 EventId string `json:"eventId,omitempty"`
1665
1666 GuestsCanInviteOthers bool `json:"guestsCanInviteOthers,omitempty"`
1667
1668 GuestsCanModify bool `json:"guestsCanModify,omitempty"`
1669
1670
1671
1672 GuestsCanSeeGuests bool `json:"guestsCanSeeGuests,omitempty"`
1673
1674 HangoutId string `json:"hangoutId,omitempty"`
1675
1676 HangoutUrl string `json:"hangoutUrl,omitempty"`
1677
1678 Invitee []*EnterpriseTopazSidekickPerson `json:"invitee,omitempty"`
1679
1680 IsAllDay bool `json:"isAllDay,omitempty"`
1681
1682 LastModificationTimeMs int64 `json:"lastModificationTimeMs,omitempty,string"`
1683
1684 Location string `json:"location,omitempty"`
1685
1686 NotifyToUser bool `json:"notifyToUser,omitempty"`
1687
1688
1689 OtherAttendeesExcluded bool `json:"otherAttendeesExcluded,omitempty"`
1690
1691 RequesterIsOwner bool `json:"requesterIsOwner,omitempty"`
1692
1693
1694 ShowFullEventDetailsToUse bool `json:"showFullEventDetailsToUse,omitempty"`
1695
1696 StartDate string `json:"startDate,omitempty"`
1697
1698 StartTime string `json:"startTime,omitempty"`
1699
1700 StartTimeMs int64 `json:"startTimeMs,omitempty,string"`
1701
1702 TimeZone string `json:"timeZone,omitempty"`
1703
1704 Title string `json:"title,omitempty"`
1705
1706
1707
1708
1709
1710 ForceSendFields []string `json:"-"`
1711
1712
1713
1714
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
1728
1729
1730
1731
1732 ForceSendFields []string `json:"-"`
1733
1734
1735
1736
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
1746
1747 type EnterpriseTopazSidekickAgendaGroupCardProtoContext struct {
1748
1749
1750
1751 Context string `json:"context,omitempty"`
1752
1753
1754 Date string `json:"date,omitempty"`
1755
1756
1757
1758
1759
1760
1761 EventsRestrict string `json:"eventsRestrict,omitempty"`
1762
1763
1764
1765
1766
1767 ForceSendFields []string `json:"-"`
1768
1769
1770
1771
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
1785
1786
1787
1788
1789 ForceSendFields []string `json:"-"`
1790
1791
1792
1793
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
1803
1804 type EnterpriseTopazSidekickAnswerAnswerList struct {
1805
1806 LabeledAnswer []*EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer `json:"labeledAnswer,omitempty"`
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818 Type string `json:"type,omitempty"`
1819
1820
1821
1822
1823
1824 ForceSendFields []string `json:"-"`
1825
1826
1827
1828
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
1838
1839 type EnterpriseTopazSidekickAnswerAnswerListLabeledAnswer struct {
1840
1841 Answer string `json:"answer,omitempty"`
1842
1843 Label string `json:"label,omitempty"`
1844
1845
1846
1847
1848
1849 ForceSendFields []string `json:"-"`
1850
1851
1852
1853
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
1863
1864
1865 type EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard struct {
1866
1867 SuggestedQueryCategory []*EnterpriseTopazSidekickAnswerSuggestedQueryCategory `json:"suggestedQueryCategory,omitempty"`
1868
1869
1870
1871
1872
1873 ForceSendFields []string `json:"-"`
1874
1875
1876
1877
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
1887
1888 type EnterpriseTopazSidekickAnswerSuggestedQueryCategory struct {
1889
1890
1891
1892
1893
1894
1895
1896 Category string `json:"category,omitempty"`
1897
1898 IsEnabled bool `json:"isEnabled,omitempty"`
1899
1900 Query []string `json:"query,omitempty"`
1901
1902
1903
1904
1905
1906 ForceSendFields []string `json:"-"`
1907
1908
1909
1910
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
1920 type EnterpriseTopazSidekickAssistCardProto struct {
1921
1922 AgendaGroupCardProto *EnterpriseTopazSidekickAgendaGroupCardProto `json:"agendaGroupCardProto,omitempty"`
1923
1924 CardMetadata *EnterpriseTopazSidekickCardMetadata `json:"cardMetadata,omitempty"`
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961
1962
1963
1964
1965
1966
1967
1968
1969
1970
1971
1972
1973
1974
1975
1976
1977
1978
1979
1980 CardType string `json:"cardType,omitempty"`
1981
1982 ConflictingMeetingsCard *EnterpriseTopazSidekickConflictingEventsCardProto `json:"conflictingMeetingsCard,omitempty"`
1983
1984
1985 DocumentListCard *EnterpriseTopazSidekickDocumentPerCategoryList `json:"documentListCard,omitempty"`
1986
1987 DocumentsWithMentions *EnterpriseTopazSidekickDocumentPerCategoryList `json:"documentsWithMentions,omitempty"`
1988
1989 FindMeetingTimeCard *EnterpriseTopazSidekickFindMeetingTimeCardProto `json:"findMeetingTimeCard,omitempty"`
1990
1991 GenericAnswerCard *EnterpriseTopazSidekickGenericAnswerCard `json:"genericAnswerCard,omitempty"`
1992
1993 GetAndKeepAheadCard *EnterpriseTopazSidekickGetAndKeepAheadCardProto `json:"getAndKeepAheadCard,omitempty"`
1994
1995 Meeting *EnterpriseTopazSidekickAgendaEntry `json:"meeting,omitempty"`
1996
1997 MeetingNotesCard *EnterpriseTopazSidekickMeetingNotesCardProto `json:"meetingNotesCard,omitempty"`
1998
1999 MeetingNotesCardRequest *EnterpriseTopazSidekickMeetingNotesCardRequest `json:"meetingNotesCardRequest,omitempty"`
2000
2001 PeopleDisambiguationCard *EnterpriseTopazSidekickPeopleDisambiguationCard `json:"peopleDisambiguationCard,omitempty"`
2002
2003 PeoplePromotionCard *PeoplePromotionCard `json:"peoplePromotionCard,omitempty"`
2004
2005 PersonAnswerCard *EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard `json:"personAnswerCard,omitempty"`
2006
2007 PersonProfileCard *EnterpriseTopazSidekickPersonProfileCard `json:"personProfileCard,omitempty"`
2008
2009 PersonalizedDocsCard *EnterpriseTopazSidekickPersonalizedDocsCardProto `json:"personalizedDocsCard,omitempty"`
2010
2011
2012 RelatedPeopleAnswerCard *EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard `json:"relatedPeopleAnswerCard,omitempty"`
2013
2014 ShareMeetingDocsCard *EnterpriseTopazSidekickShareMeetingDocsCardProto `json:"shareMeetingDocsCard,omitempty"`
2015
2016 SharedDocuments *EnterpriseTopazSidekickDocumentPerCategoryList `json:"sharedDocuments,omitempty"`
2017
2018
2019 SuggestedQueryAnswerCard *EnterpriseTopazSidekickAnswerSuggestedQueryAnswerCard `json:"suggestedQueryAnswerCard,omitempty"`
2020
2021 ThirdPartyAnswerCard *ThirdPartyGenericCard `json:"thirdPartyAnswerCard,omitempty"`
2022
2023 WorkInProgressCardProto *EnterpriseTopazSidekickRecentDocumentsCardProto `json:"workInProgressCardProto,omitempty"`
2024
2025
2026
2027
2028
2029 ForceSendFields []string `json:"-"`
2030
2031
2032
2033
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
2043 type EnterpriseTopazSidekickCardMetadata struct {
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059 CardCategory string `json:"cardCategory,omitempty"`
2060
2061
2062
2063
2064
2065
2066
2067 CardId string `json:"cardId,omitempty"`
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077 Chronology string `json:"chronology,omitempty"`
2078
2079 DebugInfo string `json:"debugInfo,omitempty"`
2080
2081 NlpMetadata *EnterpriseTopazSidekickNlpMetadata `json:"nlpMetadata,omitempty"`
2082
2083 RankingParams *EnterpriseTopazSidekickRankingParams `json:"rankingParams,omitempty"`
2084
2085
2086
2087
2088
2089
2090 RenderMode string `json:"renderMode,omitempty"`
2091
2092
2093
2094
2095
2096 ForceSendFields []string `json:"-"`
2097
2098
2099
2100
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
2110
2111 type EnterpriseTopazSidekickCommonDebugInfo struct {
2112
2113 Message string `json:"message,omitempty"`
2114
2115
2116
2117
2118
2119 ForceSendFields []string `json:"-"`
2120
2121
2122
2123
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
2133
2134 type EnterpriseTopazSidekickCommonDocument struct {
2135
2136
2137
2138
2139
2140
2141
2142 AccessType string `json:"accessType,omitempty"`
2143
2144 DebugInfo *EnterpriseTopazSidekickCommonDebugInfo `json:"debugInfo,omitempty"`
2145
2146 DocumentId string `json:"documentId,omitempty"`
2147
2148 DriveDocumentMetadata *EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata `json:"driveDocumentMetadata,omitempty"`
2149
2150
2151 GenericUrl string `json:"genericUrl,omitempty"`
2152
2153 Justification *EnterpriseTopazSidekickCommonDocumentJustification `json:"justification,omitempty"`
2154
2155 MimeType string `json:"mimeType,omitempty"`
2156
2157
2158
2159
2160
2161
2162
2163
2164 Provenance string `json:"provenance,omitempty"`
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185
2186
2187
2188 Reason string `json:"reason,omitempty"`
2189
2190 Snippet string `json:"snippet,omitempty"`
2191
2192 ThumbnailUrl string `json:"thumbnailUrl,omitempty"`
2193
2194 Title string `json:"title,omitempty"`
2195
2196
2197
2198
2199
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209
2210
2211
2212
2213
2214
2215
2216
2217
2218
2219
2220
2221
2222
2223
2224
2225
2226
2227 Type string `json:"type,omitempty"`
2228
2229 Url string `json:"url,omitempty"`
2230
2231
2232
2233
2234
2235 ForceSendFields []string `json:"-"`
2236
2237
2238
2239
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
2249
2250 type EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata struct {
2251
2252
2253 DocumentId string `json:"documentId,omitempty"`
2254
2255
2256
2257
2258 IsPrivate bool `json:"isPrivate,omitempty"`
2259
2260
2261 LastCommentTimeMs uint64 `json:"lastCommentTimeMs,omitempty,string"`
2262
2263
2264 LastEditTimeMs uint64 `json:"lastEditTimeMs,omitempty,string"`
2265
2266
2267 LastModificationTimeMillis int64 `json:"lastModificationTimeMillis,omitempty,string"`
2268
2269
2270 LastUpdatedTimeMs uint64 `json:"lastUpdatedTimeMs,omitempty,string"`
2271
2272
2273 LastViewTimeMs uint64 `json:"lastViewTimeMs,omitempty,string"`
2274
2275 Owner *EnterpriseTopazSidekickCommonPerson `json:"owner,omitempty"`
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287 Scope string `json:"scope,omitempty"`
2288
2289
2290
2291
2292
2293 ForceSendFields []string `json:"-"`
2294
2295
2296
2297
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
2307
2308 type EnterpriseTopazSidekickCommonDocumentJustification struct {
2309
2310
2311 Justification string `json:"justification,omitempty"`
2312
2313
2314
2315
2316
2317
2318
2319
2320
2321
2322
2323
2324
2325
2326
2327
2328
2329
2330
2331
2332
2333
2334
2335
2336 Reason string `json:"reason,omitempty"`
2337
2338
2339
2340
2341
2342 ForceSendFields []string `json:"-"`
2343
2344
2345
2346
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
2356 type EnterpriseTopazSidekickCommonPerson struct {
2357
2358 Birthday *EnterpriseTopazSidekickCommonPersonBirthday `json:"birthday,omitempty"`
2359
2360 CellPhone string `json:"cellPhone,omitempty"`
2361
2362 Department string `json:"department,omitempty"`
2363
2364 DeskLocation string `json:"deskLocation,omitempty"`
2365
2366 DeskPhone string `json:"deskPhone,omitempty"`
2367
2368 DisplayName string `json:"displayName,omitempty"`
2369
2370 Email string `json:"email,omitempty"`
2371
2372 FamilyName string `json:"familyName,omitempty"`
2373
2374
2375 FullAddress string `json:"fullAddress,omitempty"`
2376
2377 GaiaId int64 `json:"gaiaId,omitempty,string"`
2378
2379 GivenName string `json:"givenName,omitempty"`
2380
2381 JobTitle string `json:"jobTitle,omitempty"`
2382
2383 Manager *EnterpriseTopazSidekickCommonPerson `json:"manager,omitempty"`
2384
2385 ObfuscatedId string `json:"obfuscatedId,omitempty"`
2386
2387 PhotoUrl string `json:"photoUrl,omitempty"`
2388
2389 StreetAddress string `json:"streetAddress,omitempty"`
2390
2391
2392
2393
2394
2395 ForceSendFields []string `json:"-"`
2396
2397
2398
2399
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
2410 Value string `json:"value,omitempty"`
2411
2412
2413
2414
2415
2416 ForceSendFields []string `json:"-"`
2417
2418
2419
2420
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
2430
2431 type EnterpriseTopazSidekickConflictingEventsCardProto struct {
2432
2433 ConflictingEvent []*EnterpriseTopazSidekickAgendaEntry `json:"conflictingEvent,omitempty"`
2434
2435 MainEvent *EnterpriseTopazSidekickAgendaEntry `json:"mainEvent,omitempty"`
2436
2437
2438
2439
2440
2441 ForceSendFields []string `json:"-"`
2442
2443
2444
2445
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
2455
2456
2457 type EnterpriseTopazSidekickDocumentGroup struct {
2458
2459
2460
2461
2462
2463 GroupType string `json:"groupType,omitempty"`
2464
2465 PersonalizedDocument []*EnterpriseTopazSidekickCommonDocument `json:"personalizedDocument,omitempty"`
2466
2467
2468
2469
2470
2471 ForceSendFields []string `json:"-"`
2472
2473
2474
2475
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
2487
2488 HelpMessage string `json:"helpMessage,omitempty"`
2489
2490
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503 ListType string `json:"listType,omitempty"`
2504
2505
2506 ListTypeDescription string `json:"listTypeDescription,omitempty"`
2507
2508
2509 ResponseMessage string `json:"responseMessage,omitempty"`
2510
2511
2512
2513
2514
2515 ForceSendFields []string `json:"-"`
2516
2517
2518
2519
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
2530
2531
2532
2533
2534
2535
2536
2537
2538
2539
2540
2541
2542 Category string `json:"category,omitempty"`
2543 Document *EnterpriseTopazSidekickCommonDocument `json:"document,omitempty"`
2544
2545 Rationale string `json:"rationale,omitempty"`
2546
2547
2548
2549
2550
2551 ForceSendFields []string `json:"-"`
2552
2553
2554
2555
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
2565
2566 type EnterpriseTopazSidekickFindMeetingTimeCardProto struct {
2567
2568 CommonAvailableTimeSlots []*EnterpriseTopazSidekickTimeSlot `json:"commonAvailableTimeSlots,omitempty"`
2569
2570 Invitees []*EnterpriseTopazSidekickPerson `json:"invitees,omitempty"`
2571
2572 Requester *EnterpriseTopazSidekickPerson `json:"requester,omitempty"`
2573
2574 ScheduledMeeting *EnterpriseTopazSidekickScheduledMeeting `json:"scheduledMeeting,omitempty"`
2575
2576
2577 SkippedInvitees []*EnterpriseTopazSidekickPerson `json:"skippedInvitees,omitempty"`
2578
2579
2580 TimeBoundaries *EnterpriseTopazSidekickTimeSlot `json:"timeBoundaries,omitempty"`
2581
2582 TimezoneId string `json:"timezoneId,omitempty"`
2583
2584
2585
2586
2587
2588 ForceSendFields []string `json:"-"`
2589
2590
2591
2592
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
2603 DisplayRemainingTime string `json:"displayRemainingTime,omitempty"`
2604
2605 EndTime string `json:"endTime,omitempty"`
2606 EndTimeMs uint64 `json:"endTimeMs,omitempty,string"`
2607 RemainingTime string `json:"remainingTime,omitempty"`
2608
2609 StartTime string `json:"startTime,omitempty"`
2610 StartTimeMs uint64 `json:"startTimeMs,omitempty,string"`
2611
2612
2613
2614
2615
2616 ForceSendFields []string `json:"-"`
2617
2618
2619
2620
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
2631 Answer string `json:"answer,omitempty"`
2632
2633 Title string `json:"title,omitempty"`
2634
2635
2636
2637
2638
2639 ForceSendFields []string `json:"-"`
2640
2641
2642
2643
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
2653 type EnterpriseTopazSidekickGetAndKeepAheadCardProto struct {
2654 DeclinedEvents *EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents `json:"declinedEvents,omitempty"`
2655 MentionedDocuments *EnterpriseTopazSidekickDocumentPerCategoryList `json:"mentionedDocuments,omitempty"`
2656 SharedDocuments *EnterpriseTopazSidekickDocumentPerCategoryList `json:"sharedDocuments,omitempty"`
2657
2658
2659
2660
2661
2662 ForceSendFields []string `json:"-"`
2663
2664
2665
2666
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
2676
2677 type EnterpriseTopazSidekickGetAndKeepAheadCardProtoDeclinedEvents struct {
2678 Events []*EnterpriseTopazSidekickAgendaEntry `json:"events,omitempty"`
2679
2680
2681
2682
2683
2684 ForceSendFields []string `json:"-"`
2685
2686
2687
2688
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
2698
2699 type EnterpriseTopazSidekickMeetingNotesCardError struct {
2700
2701 Description string `json:"description,omitempty"`
2702
2703 Event *EnterpriseTopazSidekickAgendaEntry `json:"event,omitempty"`
2704
2705
2706
2707
2708
2709
2710 Reason string `json:"reason,omitempty"`
2711
2712
2713
2714
2715
2716 ForceSendFields []string `json:"-"`
2717
2718
2719
2720
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
2730
2731 type EnterpriseTopazSidekickMeetingNotesCardProto struct {
2732
2733 Event *EnterpriseTopazSidekickAgendaEntry `json:"event,omitempty"`
2734
2735 FileId string `json:"fileId,omitempty"`
2736
2737 Title string `json:"title,omitempty"`
2738
2739 Url string `json:"url,omitempty"`
2740
2741
2742
2743
2744
2745 ForceSendFields []string `json:"-"`
2746
2747
2748
2749
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
2759 type EnterpriseTopazSidekickMeetingNotesCardRequest struct {
2760
2761
2762
2763
2764
2765
2766 CanCreateFor []string `json:"canCreateFor,omitempty"`
2767
2768 Error *EnterpriseTopazSidekickMeetingNotesCardError `json:"error,omitempty"`
2769
2770 Event *EnterpriseTopazSidekickAgendaEntry `json:"event,omitempty"`
2771
2772
2773
2774
2775
2776 ForceSendFields []string `json:"-"`
2777
2778
2779
2780
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
2790
2791 type EnterpriseTopazSidekickNlpMetadata struct {
2792
2793 Confidence float64 `json:"confidence,omitempty"`
2794
2795
2796
2797
2798
2799 ForceSendFields []string `json:"-"`
2800
2801
2802
2803
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
2827
2828 type EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo struct {
2829
2830
2831 Disambiguation []*EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson `json:"disambiguation,omitempty"`
2832
2833
2834
2835
2836 Name string `json:"name,omitempty"`
2837
2838
2839
2840
2841
2842 ForceSendFields []string `json:"-"`
2843
2844
2845
2846
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
2856
2857
2858 type EnterpriseTopazSidekickPeopleAnswerDisambiguationInfoDisambiguationPerson struct {
2859
2860 Person *EnterpriseTopazSidekickCommonPerson `json:"person,omitempty"`
2861
2862
2863 Query string `json:"query,omitempty"`
2864
2865
2866
2867
2868
2869 ForceSendFields []string `json:"-"`
2870
2871
2872
2873
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
2883
2884 type EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader struct {
2885
2886 Title string `json:"title,omitempty"`
2887
2888
2889
2890
2891
2892 ForceSendFields []string `json:"-"`
2893
2894
2895
2896
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
2906
2907 type EnterpriseTopazSidekickPeopleAnswerPersonAnswerCard struct {
2908
2909 Answer []*SafeHtmlProto `json:"answer,omitempty"`
2910
2911 AnswerText *EnterpriseTopazSidekickAnswerAnswerList `json:"answerText,omitempty"`
2912
2913 DisambiguationInfo *EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo `json:"disambiguationInfo,omitempty"`
2914
2915 Header *EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader `json:"header,omitempty"`
2916
2917
2918
2919
2920
2921
2922
2923
2924 ResponseStatus string `json:"responseStatus,omitempty"`
2925
2926
2927 StatusMessage string `json:"statusMessage,omitempty"`
2928
2929 Subject *EnterpriseTopazSidekickCommonPerson `json:"subject,omitempty"`
2930
2931
2932
2933
2934
2935 ForceSendFields []string `json:"-"`
2936
2937
2938
2939
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
2949
2950 type EnterpriseTopazSidekickPeopleAnswerRelatedPeopleAnswerCard struct {
2951
2952 DisambiguationInfo *EnterpriseTopazSidekickPeopleAnswerDisambiguationInfo `json:"disambiguationInfo,omitempty"`
2953
2954 Header *EnterpriseTopazSidekickPeopleAnswerPeopleAnswerCardHeader `json:"header,omitempty"`
2955
2956 RelatedPeople []*EnterpriseTopazSidekickCommonPerson `json:"relatedPeople,omitempty"`
2957
2958
2959
2960
2961
2962
2963
2964
2965 RelationType string `json:"relationType,omitempty"`
2966
2967
2968
2969
2970
2971
2972
2973
2974 ResponseStatus string `json:"responseStatus,omitempty"`
2975
2976
2977 StatusMessage string `json:"statusMessage,omitempty"`
2978
2979 Subject *EnterpriseTopazSidekickCommonPerson `json:"subject,omitempty"`
2980
2981
2982
2983
2984
2985 ForceSendFields []string `json:"-"`
2986
2987
2988
2989
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
3000 Person []*EnterpriseTopazSidekickCommonPerson `json:"person,omitempty"`
3001
3002
3003
3004
3005
3006 ForceSendFields []string `json:"-"`
3007
3008
3009
3010
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
3020 type EnterpriseTopazSidekickPerson struct {
3021
3022
3023
3024
3025
3026
3027
3028
3029 AffinityLevel string `json:"affinityLevel,omitempty"`
3030
3031
3032
3033
3034
3035
3036
3037
3038 AttendingStatus string `json:"attendingStatus,omitempty"`
3039
3040 Email string `json:"email,omitempty"`
3041
3042 GaiaId int64 `json:"gaiaId,omitempty,string"`
3043
3044 IsGroup bool `json:"isGroup,omitempty"`
3045
3046 Name string `json:"name,omitempty"`
3047
3048 ObfuscatedGaiaId string `json:"obfuscatedGaiaId,omitempty"`
3049
3050 PhotoUrl string `json:"photoUrl,omitempty"`
3051
3052
3053
3054
3055
3056 ForceSendFields []string `json:"-"`
3057
3058
3059
3060
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
3072 Subject *EnterpriseTopazSidekickCommonPerson `json:"subject,omitempty"`
3073
3074
3075
3076
3077
3078 ForceSendFields []string `json:"-"`
3079
3080
3081
3082
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
3093 RelatedPerson []*EnterpriseTopazSidekickCommonPerson `json:"relatedPerson,omitempty"`
3094
3095
3096
3097
3098
3099
3100 Relation string `json:"relation,omitempty"`
3101
3102
3103
3104
3105
3106 ForceSendFields []string `json:"-"`
3107
3108
3109
3110
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
3120
3121 type EnterpriseTopazSidekickPersonalizedDocsCardProto struct {
3122
3123 DocumentGroup []*EnterpriseTopazSidekickDocumentGroup `json:"documentGroup,omitempty"`
3124
3125
3126
3127
3128
3129 ForceSendFields []string `json:"-"`
3130
3131
3132
3133
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
3143 type EnterpriseTopazSidekickRankingParams struct {
3144
3145
3146
3147
3148
3149 EndTimeMs uint64 `json:"endTimeMs,omitempty,string"`
3150
3151
3152
3153
3154
3155
3156
3157
3158
3159
3160
3161 Priority string `json:"priority,omitempty"`
3162
3163 Score float64 `json:"score,omitempty"`
3164
3165
3166 SpanMs uint64 `json:"spanMs,omitempty,string"`
3167
3168
3169
3170
3171 StartTimeMs uint64 `json:"startTimeMs,omitempty,string"`
3172
3173
3174
3175
3176
3177 Type string `json:"type,omitempty"`
3178
3179
3180
3181
3182
3183 ForceSendFields []string `json:"-"`
3184
3185
3186
3187
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
3213
3214
3215
3216
3217 ForceSendFields []string `json:"-"`
3218
3219
3220
3221
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
3231 type EnterpriseTopazSidekickScheduledMeeting struct {
3232
3233 MeetingLocation string `json:"meetingLocation,omitempty"`
3234
3235 MeetingTime *EnterpriseTopazSidekickTimeSlot `json:"meetingTime,omitempty"`
3236
3237 MeetingTitle string `json:"meetingTitle,omitempty"`
3238
3239
3240
3241
3242
3243 ForceSendFields []string `json:"-"`
3244
3245
3246
3247
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
3257
3258 type EnterpriseTopazSidekickShareMeetingDocsCardProto struct {
3259
3260 Document []*EnterpriseTopazSidekickCommonDocument `json:"document,omitempty"`
3261
3262 Event *EnterpriseTopazSidekickAgendaEntry `json:"event,omitempty"`
3263
3264
3265
3266
3267
3268 ForceSendFields []string `json:"-"`
3269
3270
3271
3272
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
3282 type EnterpriseTopazSidekickTimeSlot struct {
3283
3284 EndTimeDay string `json:"endTimeDay,omitempty"`
3285
3286
3287 EndTimeHourAndMinute string `json:"endTimeHourAndMinute,omitempty"`
3288
3289 EndTimeInMillis int64 `json:"endTimeInMillis,omitempty,string"`
3290
3291 StartTimeDay string `json:"startTimeDay,omitempty"`
3292
3293
3294 StartTimeHourAndMinute string `json:"startTimeHourAndMinute,omitempty"`
3295
3296 StartTimeInMillis int64 `json:"startTimeInMillis,omitempty,string"`
3297
3298
3299
3300
3301
3302 ForceSendFields []string `json:"-"`
3303
3304
3305
3306
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
3316
3317
3318
3319
3320
3321
3322
3323
3324
3325 type EnumOperatorOptions struct {
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335 OperatorName string `json:"operatorName,omitempty"`
3336
3337
3338
3339
3340
3341 ForceSendFields []string `json:"-"`
3342
3343
3344
3345
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
3355
3356
3357
3358
3359
3360
3361
3362
3363 type EnumPropertyOptions struct {
3364
3365
3366 OperatorOptions *EnumOperatorOptions `json:"operatorOptions,omitempty"`
3367
3368
3369
3370
3371
3372
3373
3374
3375
3376
3377
3378
3379
3380 OrderedRanking string `json:"orderedRanking,omitempty"`
3381
3382
3383
3384
3385
3386
3387
3388
3389
3390 PossibleValues []*EnumValuePair `json:"possibleValues,omitempty"`
3391
3392
3393
3394
3395
3396 ForceSendFields []string `json:"-"`
3397
3398
3399
3400
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
3410
3411
3412
3413
3414
3415
3416
3417
3418
3419
3420
3421 type EnumValuePair struct {
3422
3423
3424 IntegerValue int64 `json:"integerValue,omitempty"`
3425
3426
3427 StringValue string `json:"stringValue,omitempty"`
3428
3429
3430
3431
3432
3433 ForceSendFields []string `json:"-"`
3434
3435
3436
3437
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
3447 type EnumValues struct {
3448
3449 Values []string `json:"values,omitempty"`
3450
3451
3452
3453
3454
3455 ForceSendFields []string `json:"-"`
3456
3457
3458
3459
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
3469 type ErrorInfo struct {
3470 ErrorMessages []*ErrorMessage `json:"errorMessages,omitempty"`
3471
3472
3473
3474
3475
3476 ForceSendFields []string `json:"-"`
3477
3478
3479
3480
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
3490 type ErrorMessage struct {
3491 ErrorMessage string `json:"errorMessage,omitempty"`
3492 Source *Source `json:"source,omitempty"`
3493
3494
3495
3496
3497
3498 ForceSendFields []string `json:"-"`
3499
3500
3501
3502
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
3512
3513
3514
3515 type FacetBucket struct {
3516
3517
3518
3519
3520
3521
3522 Count int64 `json:"count,omitempty"`
3523
3524
3525 Filter *Filter `json:"filter,omitempty"`
3526
3527
3528
3529
3530
3531
3532 Percentage int64 `json:"percentage,omitempty"`
3533 Value *Value `json:"value,omitempty"`
3534
3535
3536
3537
3538
3539 ForceSendFields []string `json:"-"`
3540
3541
3542
3543
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
3553
3554 type FacetOptions struct {
3555
3556
3557
3558
3559 IntegerFacetingOptions *IntegerFacetingOptions `json:"integerFacetingOptions,omitempty"`
3560
3561
3562 NumFacetBuckets int64 `json:"numFacetBuckets,omitempty"`
3563
3564
3565
3566 ObjectType string `json:"objectType,omitempty"`
3567
3568
3569 OperatorName string `json:"operatorName,omitempty"`
3570
3571
3572 SourceName string `json:"sourceName,omitempty"`
3573
3574
3575
3576
3577
3578 ForceSendFields []string `json:"-"`
3579
3580
3581
3582
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
3592 type FacetResult struct {
3593
3594
3595 Buckets []*FacetBucket `json:"buckets,omitempty"`
3596
3597 ObjectType string `json:"objectType,omitempty"`
3598
3599
3600 OperatorName string `json:"operatorName,omitempty"`
3601
3602
3603 SourceName string `json:"sourceName,omitempty"`
3604
3605
3606
3607
3608
3609 ForceSendFields []string `json:"-"`
3610
3611
3612
3613
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
3624 Description string `json:"description,omitempty"`
3625
3626 Field string `json:"field,omitempty"`
3627
3628
3629
3630
3631
3632 ForceSendFields []string `json:"-"`
3633
3634
3635
3636
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
3646
3647
3648
3649
3650
3651 type Filter struct {
3652 CompositeFilter *CompositeFilter `json:"compositeFilter,omitempty"`
3653 ValueFilter *ValueFilter `json:"valueFilter,omitempty"`
3654
3655
3656
3657
3658
3659 ForceSendFields []string `json:"-"`
3660
3661
3662
3663
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
3673 type FilterOptions struct {
3674
3675
3676 Filter *Filter `json:"filter,omitempty"`
3677
3678
3679
3680 ObjectType string `json:"objectType,omitempty"`
3681
3682
3683
3684
3685
3686 ForceSendFields []string `json:"-"`
3687
3688
3689
3690
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
3700
3701
3702
3703
3704
3705
3706 type FreshnessOptions struct {
3707
3708
3709 FreshnessDuration string `json:"freshnessDuration,omitempty"`
3710
3711
3712
3713
3714
3715
3716 FreshnessProperty string `json:"freshnessProperty,omitempty"`
3717
3718
3719
3720
3721
3722 ForceSendFields []string `json:"-"`
3723
3724
3725
3726
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
3737
3738 GsuiteDomain bool `json:"gsuiteDomain,omitempty"`
3739
3740 GsuiteGroupEmail string `json:"gsuiteGroupEmail,omitempty"`
3741
3742 GsuiteUserEmail string `json:"gsuiteUserEmail,omitempty"`
3743
3744
3745
3746
3747
3748 ForceSendFields []string `json:"-"`
3749
3750
3751
3752
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
3763
3764 AverageIndexedItemCount int64 `json:"averageIndexedItemCount,omitempty,string"`
3765
3766
3767 Stats []*CustomerIndexStats `json:"stats,omitempty"`
3768
3769
3770 googleapi.ServerResponse `json:"-"`
3771
3772
3773
3774
3775
3776 ForceSendFields []string `json:"-"`
3777
3778
3779
3780
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
3792
3793 TotalQueryCount int64 `json:"totalQueryCount,omitempty,string"`
3794
3795
3796 googleapi.ServerResponse `json:"-"`
3797
3798
3799
3800
3801
3802 ForceSendFields []string `json:"-"`
3803
3804
3805
3806
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
3816
3817 type GetCustomerSearchApplicationStatsResponse struct {
3818
3819
3820 AverageSearchApplicationCount int64 `json:"averageSearchApplicationCount,omitempty,string"`
3821
3822 Stats []*CustomerSearchApplicationStats `json:"stats,omitempty"`
3823
3824
3825 googleapi.ServerResponse `json:"-"`
3826
3827
3828
3829
3830
3831 ForceSendFields []string `json:"-"`
3832
3833
3834
3835
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
3848 googleapi.ServerResponse `json:"-"`
3849
3850
3851
3852
3853
3854 ForceSendFields []string `json:"-"`
3855
3856
3857
3858
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
3871 googleapi.ServerResponse `json:"-"`
3872
3873
3874
3875
3876
3877 ForceSendFields []string `json:"-"`
3878
3879
3880
3881
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
3892
3893 AverageIndexedItemCount int64 `json:"averageIndexedItemCount,omitempty,string"`
3894
3895
3896 Stats []*DataSourceIndexStats `json:"stats,omitempty"`
3897
3898
3899 googleapi.ServerResponse `json:"-"`
3900
3901
3902
3903
3904
3905 ForceSendFields []string `json:"-"`
3906
3907
3908
3909
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
3919
3920 type GetSearchApplicationQueryStatsResponse struct {
3921
3922 Stats []*SearchApplicationQueryStats `json:"stats,omitempty"`
3923
3924
3925 TotalQueryCount int64 `json:"totalQueryCount,omitempty,string"`
3926
3927
3928 googleapi.ServerResponse `json:"-"`
3929
3930
3931
3932
3933
3934 ForceSendFields []string `json:"-"`
3935
3936
3937
3938
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
3951 googleapi.ServerResponse `json:"-"`
3952
3953
3954
3955
3956
3957 ForceSendFields []string `json:"-"`
3958
3959
3960
3961
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
3974 googleapi.ServerResponse `json:"-"`
3975
3976
3977
3978
3979
3980 ForceSendFields []string `json:"-"`
3981
3982
3983
3984
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
3994
3995
3996 type HtmlOperatorOptions struct {
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006 OperatorName string `json:"operatorName,omitempty"`
4007
4008
4009
4010
4011
4012 ForceSendFields []string `json:"-"`
4013
4014
4015
4016
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
4026 type HtmlPropertyOptions struct {
4027
4028
4029 OperatorOptions *HtmlOperatorOptions `json:"operatorOptions,omitempty"`
4030
4031
4032
4033 RetrievalImportance *RetrievalImportance `json:"retrievalImportance,omitempty"`
4034
4035
4036
4037
4038
4039 ForceSendFields []string `json:"-"`
4040
4041
4042
4043
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
4053 type HtmlValues struct {
4054
4055 Values []string `json:"values,omitempty"`
4056
4057
4058
4059
4060
4061 ForceSendFields []string `json:"-"`
4062
4063
4064
4065
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
4076
4077 AllowUnknownGsuitePrincipals bool `json:"allowUnknownGsuitePrincipals,omitempty"`
4078
4079
4080
4081
4082
4083 ForceSendFields []string `json:"-"`
4084
4085
4086
4087
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
4098
4099 ConnectorName string `json:"connectorName,omitempty"`
4100
4101 DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
4102 IndexItemOptions *IndexItemOptions `json:"indexItemOptions,omitempty"`
4103
4104 Item *Item `json:"item,omitempty"`
4105
4106
4107
4108
4109
4110
4111
4112
4113 Mode string `json:"mode,omitempty"`
4114
4115
4116
4117
4118
4119 ForceSendFields []string `json:"-"`
4120
4121
4122
4123
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
4133 type InitializeCustomerRequest struct {
4134 }
4135
4136
4137 type IntegerFacetingOptions struct {
4138
4139
4140
4141 IntegerBuckets googleapi.Int64s `json:"integerBuckets,omitempty"`
4142
4143
4144
4145
4146
4147 ForceSendFields []string `json:"-"`
4148
4149
4150
4151
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
4161
4162
4163 type IntegerOperatorOptions struct {
4164
4165
4166
4167
4168
4169
4170
4171 GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"`
4172
4173
4174
4175
4176
4177
4178
4179 LessThanOperatorName string `json:"lessThanOperatorName,omitempty"`
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189 OperatorName string `json:"operatorName,omitempty"`
4190
4191
4192
4193
4194
4195 ForceSendFields []string `json:"-"`
4196
4197
4198
4199
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
4209 type IntegerPropertyOptions struct {
4210
4211
4212
4213 IntegerFacetingOptions *IntegerFacetingOptions `json:"integerFacetingOptions,omitempty"`
4214
4215
4216
4217
4218 MaximumValue int64 `json:"maximumValue,omitempty,string"`
4219
4220
4221
4222
4223 MinimumValue int64 `json:"minimumValue,omitempty,string"`
4224
4225
4226 OperatorOptions *IntegerOperatorOptions `json:"operatorOptions,omitempty"`
4227
4228
4229
4230
4231
4232
4233
4234
4235
4236
4237 OrderedRanking string `json:"orderedRanking,omitempty"`
4238
4239
4240
4241
4242
4243 ForceSendFields []string `json:"-"`
4244
4245
4246
4247
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
4257 type IntegerValues struct {
4258 Values googleapi.Int64s `json:"values,omitempty"`
4259
4260
4261
4262
4263
4264 ForceSendFields []string `json:"-"`
4265
4266
4267
4268
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
4278 type Interaction struct {
4279
4280
4281
4282 InteractionTime string `json:"interactionTime,omitempty"`
4283
4284 Principal *Principal `json:"principal,omitempty"`
4285
4286
4287
4288
4289 Type string `json:"type,omitempty"`
4290
4291
4292
4293
4294
4295 ForceSendFields []string `json:"-"`
4296
4297
4298
4299
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
4309
4310 type Item struct {
4311
4312 Acl *ItemAcl `json:"acl,omitempty"`
4313
4314 Content *ItemContent `json:"content,omitempty"`
4315
4316
4317
4318
4319
4320
4321
4322
4323
4324
4325
4326 ItemType string `json:"itemType,omitempty"`
4327
4328 Metadata *ItemMetadata `json:"metadata,omitempty"`
4329
4330
4331 Name string `json:"name,omitempty"`
4332
4333
4334 Payload string `json:"payload,omitempty"`
4335
4336 Queue string `json:"queue,omitempty"`
4337
4338 Status *ItemStatus `json:"status,omitempty"`
4339
4340
4341 StructuredData *ItemStructuredData `json:"structuredData,omitempty"`
4342
4343
4344
4345
4346
4347
4348
4349
4350 Version string `json:"version,omitempty"`
4351
4352
4353 googleapi.ServerResponse `json:"-"`
4354
4355
4356
4357
4358
4359 ForceSendFields []string `json:"-"`
4360
4361
4362
4363
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
4373
4374 type ItemAcl struct {
4375
4376
4377
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387
4388
4389
4390
4391 AclInheritanceType string `json:"aclInheritanceType,omitempty"`
4392
4393
4394
4395
4396 DeniedReaders []*Principal `json:"deniedReaders,omitempty"`
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406 InheritAclFrom string `json:"inheritAclFrom,omitempty"`
4407
4408
4409
4410
4411 Owners []*Principal `json:"owners,omitempty"`
4412
4413
4414
4415
4416 Readers []*Principal `json:"readers,omitempty"`
4417
4418
4419
4420
4421
4422 ForceSendFields []string `json:"-"`
4423
4424
4425
4426
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
4436
4437
4438 type ItemContent struct {
4439
4440
4441 ContentDataRef *UploadItemRef `json:"contentDataRef,omitempty"`
4442
4443
4444
4445
4446
4447 ContentFormat string `json:"contentFormat,omitempty"`
4448
4449
4450
4451 Hash string `json:"hash,omitempty"`
4452
4453
4454 InlineContent string `json:"inlineContent,omitempty"`
4455
4456
4457
4458
4459
4460 ForceSendFields []string `json:"-"`
4461
4462
4463
4464
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
4475 Count int64 `json:"count,omitempty,string"`
4476
4477
4478
4479
4480 IndexedItemsCount int64 `json:"indexedItemsCount,omitempty,string"`
4481
4482
4483
4484
4485
4486
4487
4488
4489
4490
4491
4492
4493
4494 StatusCode string `json:"statusCode,omitempty"`
4495
4496
4497
4498
4499
4500 ForceSendFields []string `json:"-"`
4501
4502
4503
4504
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
4514 type ItemMetadata struct {
4515
4516
4517
4518
4519 ContainerName string `json:"containerName,omitempty"`
4520
4521
4522
4523
4524 ContentLanguage string `json:"contentLanguage,omitempty"`
4525
4526
4527
4528 ContextAttributes []*ContextAttribute `json:"contextAttributes,omitempty"`
4529
4530 CreateTime string `json:"createTime,omitempty"`
4531
4532
4533
4534 Hash string `json:"hash,omitempty"`
4535
4536
4537
4538 Interactions []*Interaction `json:"interactions,omitempty"`
4539
4540
4541
4542 Keywords []string `json:"keywords,omitempty"`
4543
4544
4545 MimeType string `json:"mimeType,omitempty"`
4546
4547
4548
4549
4550
4551 ObjectType string `json:"objectType,omitempty"`
4552
4553 SearchQualityMetadata *SearchQualityMetadata `json:"searchQualityMetadata,omitempty"`
4554
4555
4556
4557
4558 SourceRepositoryUrl string `json:"sourceRepositoryUrl,omitempty"`
4559
4560
4561 Title string `json:"title,omitempty"`
4562
4563
4564 UpdateTime string `json:"updateTime,omitempty"`
4565
4566
4567
4568
4569
4570 ForceSendFields []string `json:"-"`
4571
4572
4573
4574
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
4584 type ItemStatus struct {
4585
4586
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598 Code string `json:"code,omitempty"`
4599
4600 ProcessingErrors []*ProcessingError `json:"processingErrors,omitempty"`
4601
4602 RepositoryErrors []*RepositoryError `json:"repositoryErrors,omitempty"`
4603
4604
4605
4606
4607
4608 ForceSendFields []string `json:"-"`
4609
4610
4611
4612
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
4622 type ItemStructuredData struct {
4623
4624
4625
4626 Hash string `json:"hash,omitempty"`
4627
4628
4629 Object *StructuredDataObject `json:"object,omitempty"`
4630
4631
4632
4633
4634
4635 ForceSendFields []string `json:"-"`
4636
4637
4638
4639
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
4650
4651 NextPageToken string `json:"nextPageToken,omitempty"`
4652 Sources []*DataSource `json:"sources,omitempty"`
4653
4654
4655 googleapi.ServerResponse `json:"-"`
4656
4657
4658
4659
4660
4661 ForceSendFields []string `json:"-"`
4662
4663
4664
4665
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
4677
4678 NextPageToken string `json:"nextPageToken,omitempty"`
4679
4680
4681 googleapi.ServerResponse `json:"-"`
4682
4683
4684
4685
4686
4687 ForceSendFields []string `json:"-"`
4688
4689
4690
4691
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
4703
4704 NextPageToken string `json:"nextPageToken,omitempty"`
4705
4706
4707 googleapi.ServerResponse `json:"-"`
4708
4709
4710
4711
4712
4713 ForceSendFields []string `json:"-"`
4714
4715
4716
4717
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
4727 type ListOperationsResponse struct {
4728
4729 NextPageToken string `json:"nextPageToken,omitempty"`
4730
4731
4732 Operations []*Operation `json:"operations,omitempty"`
4733
4734
4735 googleapi.ServerResponse `json:"-"`
4736
4737
4738
4739
4740
4741 ForceSendFields []string `json:"-"`
4742
4743
4744
4745
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
4755 type ListQuerySourcesResponse struct {
4756 NextPageToken string `json:"nextPageToken,omitempty"`
4757 Sources []*QuerySource `json:"sources,omitempty"`
4758
4759
4760 googleapi.ServerResponse `json:"-"`
4761
4762
4763
4764
4765
4766 ForceSendFields []string `json:"-"`
4767
4768
4769
4770
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
4781
4782 NextPageToken string `json:"nextPageToken,omitempty"`
4783 SearchApplications []*SearchApplication `json:"searchApplications,omitempty"`
4784
4785
4786 googleapi.ServerResponse `json:"-"`
4787
4788
4789
4790
4791
4792 ForceSendFields []string `json:"-"`
4793
4794
4795
4796
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
4807
4808 NextPageToken string `json:"nextPageToken,omitempty"`
4809 UnmappedIdentities []*UnmappedIdentity `json:"unmappedIdentities,omitempty"`
4810
4811
4812 googleapi.ServerResponse `json:"-"`
4813
4814
4815
4816
4817
4818 ForceSendFields []string `json:"-"`
4819
4820
4821
4822
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
4832
4833 type MapInfo struct {
4834
4835 Lat float64 `json:"lat,omitempty"`
4836
4837
4838 LocationUrl *SafeUrlProto `json:"locationUrl,omitempty"`
4839
4840 Long float64 `json:"long,omitempty"`
4841
4842 MapTile []*MapTile `json:"mapTile,omitempty"`
4843
4844
4845 Zoom int64 `json:"zoom,omitempty"`
4846
4847
4848
4849
4850
4851 ForceSendFields []string `json:"-"`
4852
4853
4854
4855
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
4881
4882 type MapTile struct {
4883
4884
4885
4886 ImageUrl *SafeUrlProto `json:"imageUrl,omitempty"`
4887
4888 TileX float64 `json:"tileX,omitempty"`
4889
4890 TileY float64 `json:"tileY,omitempty"`
4891
4892
4893
4894
4895
4896 ForceSendFields []string `json:"-"`
4897
4898
4899
4900
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
4926 type MatchRange struct {
4927
4928 End int64 `json:"end,omitempty"`
4929
4930 Start int64 `json:"start,omitempty"`
4931
4932
4933
4934
4935
4936 ForceSendFields []string `json:"-"`
4937
4938
4939
4940
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
4950 type Media struct {
4951
4952 ResourceName string `json:"resourceName,omitempty"`
4953
4954
4955 googleapi.ServerResponse `json:"-"`
4956
4957
4958
4959
4960
4961 ForceSendFields []string `json:"-"`
4962
4963
4964
4965
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
4975 type Metadata struct {
4976
4977
4978 CreateTime string `json:"createTime,omitempty"`
4979
4980
4981 DisplayOptions *ResultDisplayMetadata `json:"displayOptions,omitempty"`
4982
4983
4984 Fields []*NamedProperty `json:"fields,omitempty"`
4985
4986 MimeType string `json:"mimeType,omitempty"`
4987
4988 ObjectType string `json:"objectType,omitempty"`
4989
4990
4991 Owner *Person `json:"owner,omitempty"`
4992
4993 Source *Source `json:"source,omitempty"`
4994
4995 ThumbnailUrl string `json:"thumbnailUrl,omitempty"`
4996
4997
4998
4999
5000 UpdateTime string `json:"updateTime,omitempty"`
5001
5002
5003
5004
5005
5006 ForceSendFields []string `json:"-"`
5007
5008
5009
5010
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
5020
5021 type Metaline struct {
5022
5023
5024 Properties []*DisplayedProperty `json:"properties,omitempty"`
5025
5026
5027
5028
5029
5030 ForceSendFields []string `json:"-"`
5031
5032
5033
5034
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
5044 type Name struct {
5045
5046
5047 DisplayName string `json:"displayName,omitempty"`
5048
5049
5050
5051
5052
5053 ForceSendFields []string `json:"-"`
5054
5055
5056
5057
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
5067
5068
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
5077
5078
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
5084
5085
5086
5087
5088 ForceSendFields []string `json:"-"`
5089
5090
5091
5092
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
5102 type ObjectDefinition struct {
5103
5104
5105
5106
5107
5108
5109
5110 Name string `json:"name,omitempty"`
5111
5112 Options *ObjectOptions `json:"options,omitempty"`
5113
5114
5115 PropertyDefinitions []*PropertyDefinition `json:"propertyDefinitions,omitempty"`
5116
5117
5118
5119
5120
5121 ForceSendFields []string `json:"-"`
5122
5123
5124
5125
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
5135 type ObjectDisplayOptions struct {
5136
5137
5138
5139
5140
5141
5142
5143 Metalines []*Metaline `json:"metalines,omitempty"`
5144
5145
5146
5147
5148 ObjectDisplayLabel string `json:"objectDisplayLabel,omitempty"`
5149
5150
5151
5152
5153
5154 ForceSendFields []string `json:"-"`
5155
5156
5157
5158
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
5168 type ObjectOptions struct {
5169
5170
5171 DisplayOptions *ObjectDisplayOptions `json:"displayOptions,omitempty"`
5172
5173 FreshnessOptions *FreshnessOptions `json:"freshnessOptions,omitempty"`
5174
5175
5176
5177
5178
5179
5180
5181
5182
5183 SuggestionFilteringOperators []string `json:"suggestionFilteringOperators,omitempty"`
5184
5185
5186
5187
5188
5189 ForceSendFields []string `json:"-"`
5190
5191
5192
5193
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
5203 type ObjectPropertyOptions struct {
5204
5205
5206
5207
5208 SubobjectProperties []*PropertyDefinition `json:"subobjectProperties,omitempty"`
5209
5210
5211
5212
5213
5214 ForceSendFields []string `json:"-"`
5215
5216
5217
5218
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
5228 type ObjectValues struct {
5229 Values []*StructuredDataObject `json:"values,omitempty"`
5230
5231
5232
5233
5234
5235 ForceSendFields []string `json:"-"`
5236
5237
5238
5239
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
5249
5250 type Operation struct {
5251
5252
5253
5254 Done bool `json:"done,omitempty"`
5255
5256 Error *Status `json:"error,omitempty"`
5257
5258
5259
5260
5261 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
5262
5263
5264
5265 Name string `json:"name,omitempty"`
5266
5267
5268
5269
5270
5271
5272
5273 Response googleapi.RawMessage `json:"response,omitempty"`
5274
5275
5276 googleapi.ServerResponse `json:"-"`
5277
5278
5279
5280
5281
5282 ForceSendFields []string `json:"-"`
5283
5284
5285
5286
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
5298
5299
5300
5301
5302 ForceSendFields []string `json:"-"`
5303
5304
5305
5306
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
5316
5317 type PeopleSuggestion struct {
5318
5319
5320 Person *Person `json:"person,omitempty"`
5321
5322
5323
5324
5325
5326 ForceSendFields []string `json:"-"`
5327
5328
5329
5330
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
5340 type Person struct {
5341
5342 EmailAddresses []*EmailAddress `json:"emailAddresses,omitempty"`
5343
5344
5345
5346 Name string `json:"name,omitempty"`
5347
5348 ObfuscatedId string `json:"obfuscatedId,omitempty"`
5349
5350 PersonNames []*Name `json:"personNames,omitempty"`
5351
5352 PhoneNumbers []*PhoneNumber `json:"phoneNumbers,omitempty"`
5353
5354
5355 Photos []*Photo `json:"photos,omitempty"`
5356
5357
5358
5359
5360
5361 ForceSendFields []string `json:"-"`
5362
5363
5364
5365
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
5375 type PersonCore struct {
5376
5377
5378
5379 AddressMeAs string `json:"addressMeAs,omitempty"`
5380
5381
5382
5383 AdminTo []*PersonCore `json:"adminTo,omitempty"`
5384
5385
5386
5387 Admins []*PersonCore `json:"admins,omitempty"`
5388
5389
5390
5391
5392
5393 AvailabilityStatus string `json:"availabilityStatus,omitempty"`
5394
5395 Birthday *Date `json:"birthday,omitempty"`
5396
5397 CalendarUrl *SafeUrlProto `json:"calendarUrl,omitempty"`
5398
5399
5400 ChatUrl *SafeUrlProto `json:"chatUrl,omitempty"`
5401
5402 CostCenter string `json:"costCenter,omitempty"`
5403
5404
5405 Department string `json:"department,omitempty"`
5406
5407
5408
5409
5410
5411 DirectReports []*PersonCore `json:"directReports,omitempty"`
5412
5413
5414
5415 DottedLineManagers []*PersonCore `json:"dottedLineManagers,omitempty"`
5416
5417
5418
5419
5420 DottedLineReports []*PersonCore `json:"dottedLineReports,omitempty"`
5421
5422
5423 Emails []string `json:"emails,omitempty"`
5424
5425
5426 EmployeeId string `json:"employeeId,omitempty"`
5427
5428
5429 Fingerprint string `json:"fingerprint,omitempty"`
5430
5431
5432 FtePermille int64 `json:"ftePermille,omitempty,string"`
5433 GeoLocation *MapInfo `json:"geoLocation,omitempty"`
5434 GmailUrl string `json:"gmailUrl,omitempty"`
5435
5436
5437 JobTitle string `json:"jobTitle,omitempty"`
5438
5439 KeywordTypes []string `json:"keywordTypes,omitempty"`
5440
5441 Keywords map[string]string `json:"keywords,omitempty"`
5442
5443 Links []*EnterpriseTopazFrontendTeamsLink `json:"links,omitempty"`
5444
5445
5446
5447 Location string `json:"location,omitempty"`
5448
5449
5450
5451
5452 Managers []*PersonCore `json:"managers,omitempty"`
5453
5454 Mission string `json:"mission,omitempty"`
5455
5456 Name string `json:"name,omitempty"`
5457
5458
5459 OfficeLocation string `json:"officeLocation,omitempty"`
5460
5461 PersonId string `json:"personId,omitempty"`
5462 PhoneNumbers []*EnterpriseTopazFrontendTeamsPersonCorePhoneNumber `json:"phoneNumbers,omitempty"`
5463
5464 PhotoUrl *SafeUrlProto `json:"photoUrl,omitempty"`
5465
5466 PostalAddress string `json:"postalAddress,omitempty"`
5467
5468 TotalDirectReportsCount int64 `json:"totalDirectReportsCount,omitempty"`
5469
5470 TotalDlrCount int64 `json:"totalDlrCount,omitempty"`
5471
5472
5473
5474 TotalFteCount int64 `json:"totalFteCount,omitempty,string"`
5475
5476
5477 Username string `json:"username,omitempty"`
5478 WaldoComeBackTime string `json:"waldoComeBackTime,omitempty"`
5479
5480
5481
5482
5483
5484 ForceSendFields []string `json:"-"`
5485
5486
5487
5488
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
5498 type PhoneNumber struct {
5499
5500 PhoneNumber string `json:"phoneNumber,omitempty"`
5501
5502
5503
5504
5505 Type string `json:"type,omitempty"`
5506
5507
5508
5509
5510
5511 ForceSendFields []string `json:"-"`
5512
5513
5514
5515
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
5525 type Photo struct {
5526
5527 Url string `json:"url,omitempty"`
5528
5529
5530
5531
5532
5533 ForceSendFields []string `json:"-"`
5534
5535
5536
5537
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
5548
5549 ConnectorName string `json:"connectorName,omitempty"`
5550
5551 DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
5552
5553
5554 Limit int64 `json:"limit,omitempty"`
5555
5556
5557 Queue string `json:"queue,omitempty"`
5558
5559
5560
5561
5562
5563
5564
5565
5566
5567
5568
5569
5570
5571 StatusCodes []string `json:"statusCodes,omitempty"`
5572
5573
5574
5575
5576
5577 ForceSendFields []string `json:"-"`
5578
5579
5580
5581
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
5592
5593
5594 Items []*Item `json:"items,omitempty"`
5595
5596
5597 googleapi.ServerResponse `json:"-"`
5598
5599
5600
5601
5602
5603 ForceSendFields []string `json:"-"`
5604
5605
5606
5607
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
5617 type Principal struct {
5618
5619
5620
5621 GroupResourceName string `json:"groupResourceName,omitempty"`
5622
5623 GsuitePrincipal *GSuitePrincipal `json:"gsuitePrincipal,omitempty"`
5624
5625
5626
5627 UserResourceName string `json:"userResourceName,omitempty"`
5628
5629
5630
5631
5632
5633 ForceSendFields []string `json:"-"`
5634
5635
5636
5637
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
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660 Code string `json:"code,omitempty"`
5661
5662 ErrorMessage string `json:"errorMessage,omitempty"`
5663
5664
5665 FieldViolations []*FieldViolation `json:"fieldViolations,omitempty"`
5666
5667
5668
5669
5670
5671 ForceSendFields []string `json:"-"`
5672
5673
5674
5675
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
5685 type PropertyDefinition struct {
5686 BooleanPropertyOptions *BooleanPropertyOptions `json:"booleanPropertyOptions,omitempty"`
5687 DatePropertyOptions *DatePropertyOptions `json:"datePropertyOptions,omitempty"`
5688
5689
5690
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
5697
5698
5699
5700 IsFacetable bool `json:"isFacetable,omitempty"`
5701
5702
5703
5704
5705
5706 IsRepeatable bool `json:"isRepeatable,omitempty"`
5707
5708
5709
5710
5711
5712
5713
5714 IsReturnable bool `json:"isReturnable,omitempty"`
5715
5716
5717
5718
5719 IsSortable bool `json:"isSortable,omitempty"`
5720
5721
5722 IsSuggestable bool `json:"isSuggestable,omitempty"`
5723
5724
5725
5726
5727
5728
5729 IsWildcardSearchable bool `json:"isWildcardSearchable,omitempty"`
5730
5731
5732
5733
5734
5735
5736
5737
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
5743
5744
5745
5746
5747 ForceSendFields []string `json:"-"`
5748
5749
5750
5751
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
5761 type PropertyDisplayOptions struct {
5762
5763
5764
5765
5766
5767
5768
5769
5770
5771 DisplayLabel string `json:"displayLabel,omitempty"`
5772
5773
5774
5775
5776
5777 ForceSendFields []string `json:"-"`
5778
5779
5780
5781
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
5791 type PushItem struct {
5792
5793
5794
5795
5796 ContentHash string `json:"contentHash,omitempty"`
5797
5798
5799
5800
5801 MetadataHash string `json:"metadataHash,omitempty"`
5802
5803
5804
5805 Payload string `json:"payload,omitempty"`
5806
5807
5808 Queue string `json:"queue,omitempty"`
5809
5810
5811
5812 RepositoryError *RepositoryError `json:"repositoryError,omitempty"`
5813
5814
5815
5816
5817 StructuredDataHash string `json:"structuredDataHash,omitempty"`
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833
5834
5835 Type string `json:"type,omitempty"`
5836
5837
5838
5839
5840
5841 ForceSendFields []string `json:"-"`
5842
5843
5844
5845
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
5856
5857 ConnectorName string `json:"connectorName,omitempty"`
5858
5859 DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
5860
5861 Item *PushItem `json:"item,omitempty"`
5862
5863
5864
5865
5866
5867 ForceSendFields []string `json:"-"`
5868
5869
5870
5871
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
5881 type QueryActivity struct {
5882
5883 Query string `json:"query,omitempty"`
5884
5885
5886
5887
5888
5889 ForceSendFields []string `json:"-"`
5890
5891
5892
5893
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
5905 StatusCode int64 `json:"statusCode,omitempty"`
5906
5907
5908
5909
5910
5911 ForceSendFields []string `json:"-"`
5912
5913
5914
5915
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
5926
5927
5928
5929
5930
5931
5932
5933
5934 InterpretationType string `json:"interpretationType,omitempty"`
5935
5936
5937
5938
5939 InterpretedQuery string `json:"interpretedQuery,omitempty"`
5940
5941
5942
5943
5944
5945
5946
5947
5948
5949
5950
5951 Reason string `json:"reason,omitempty"`
5952
5953
5954
5955
5956
5957 ForceSendFields []string `json:"-"`
5958
5959
5960
5961
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
5971 type QueryInterpretationConfig struct {
5972
5973
5974
5975
5976
5977
5978 ForceDisableSupplementalResults bool `json:"forceDisableSupplementalResults,omitempty"`
5979
5980
5981
5982
5983
5984
5985 ForceVerbatimMode bool `json:"forceVerbatimMode,omitempty"`
5986
5987
5988
5989
5990
5991
5992 ForceSendFields []string `json:"-"`
5993
5994
5995
5996
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
6006 type QueryInterpretationOptions struct {
6007
6008
6009
6010
6011 DisableNlInterpretation bool `json:"disableNlInterpretation,omitempty"`
6012
6013
6014
6015 DisableSupplementalResults bool `json:"disableSupplementalResults,omitempty"`
6016
6017
6018
6019
6020 EnableVerbatimMode bool `json:"enableVerbatimMode,omitempty"`
6021
6022
6023
6024
6025
6026 ForceSendFields []string `json:"-"`
6027
6028
6029
6030
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
6040 type QueryItem struct {
6041
6042
6043 IsSynthetic bool `json:"isSynthetic,omitempty"`
6044
6045
6046
6047
6048
6049 ForceSendFields []string `json:"-"`
6050
6051
6052
6053
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
6063
6064 type QueryOperator struct {
6065
6066 DisplayName string `json:"displayName,omitempty"`
6067
6068
6069
6070 EnumValues []string `json:"enumValues,omitempty"`
6071
6072
6073 GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"`
6074
6075 IsFacetable bool `json:"isFacetable,omitempty"`
6076
6077 IsRepeatable bool `json:"isRepeatable,omitempty"`
6078
6079
6080 IsReturnable bool `json:"isReturnable,omitempty"`
6081
6082 IsSortable bool `json:"isSortable,omitempty"`
6083
6084 IsSuggestable bool `json:"isSuggestable,omitempty"`
6085
6086
6087 LessThanOperatorName string `json:"lessThanOperatorName,omitempty"`
6088
6089
6090
6091 ObjectType string `json:"objectType,omitempty"`
6092
6093 OperatorName string `json:"operatorName,omitempty"`
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105
6106 Type string `json:"type,omitempty"`
6107
6108
6109
6110
6111
6112 ForceSendFields []string `json:"-"`
6113
6114
6115
6116
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
6126 type QuerySource struct {
6127
6128 DisplayName string `json:"displayName,omitempty"`
6129
6130 Operators []*QueryOperator `json:"operators,omitempty"`
6131
6132
6133 ShortName string `json:"shortName,omitempty"`
6134
6135 Source *Source `json:"source,omitempty"`
6136
6137
6138
6139
6140
6141 ForceSendFields []string `json:"-"`
6142
6143
6144
6145
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
6155
6156 type QuerySuggestion struct {
6157 }
6158
6159
6160 type RemoveActivityRequest struct {
6161
6162
6163 RequestOptions *RequestOptions `json:"requestOptions,omitempty"`
6164
6165 UserActivity *UserActivity `json:"userActivity,omitempty"`
6166
6167
6168
6169
6170
6171 ForceSendFields []string `json:"-"`
6172
6173
6174
6175
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
6185
6186 type RemoveActivityResponse struct {
6187
6188 googleapi.ServerResponse `json:"-"`
6189 }
6190
6191
6192
6193 type RepositoryError struct {
6194
6195
6196 ErrorMessage string `json:"errorMessage,omitempty"`
6197
6198 HttpStatusCode int64 `json:"httpStatusCode,omitempty"`
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 Type string `json:"type,omitempty"`
6216
6217
6218
6219
6220
6221 ForceSendFields []string `json:"-"`
6222
6223
6224
6225
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
6235 type RequestOptions struct {
6236
6237 DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
6238
6239
6240
6241
6242
6243
6244
6245
6246 LanguageCode string `json:"languageCode,omitempty"`
6247
6248
6249 SearchApplicationId string `json:"searchApplicationId,omitempty"`
6250
6251
6252
6253
6254
6255
6256
6257 TimeZone string `json:"timeZone,omitempty"`
6258
6259
6260
6261
6262
6263 ForceSendFields []string `json:"-"`
6264
6265
6266
6267
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
6278 DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
6279
6280
6281
6282
6283
6284 ForceSendFields []string `json:"-"`
6285
6286
6287
6288
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
6298 type ResponseDebugInfo struct {
6299
6300 FormattedDebugInfo string `json:"formattedDebugInfo,omitempty"`
6301
6302
6303
6304
6305
6306 ForceSendFields []string `json:"-"`
6307
6308
6309
6310
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
6320 type RestrictItem struct {
6321 DriveFollowUpRestrict *DriveFollowUpRestrict `json:"driveFollowUpRestrict,omitempty"`
6322 DriveLocationRestrict *DriveLocationRestrict `json:"driveLocationRestrict,omitempty"`
6323
6324 DriveMimeTypeRestrict *DriveMimeTypeRestrict `json:"driveMimeTypeRestrict,omitempty"`
6325 DriveTimeSpanRestrict *DriveTimeSpanRestrict `json:"driveTimeSpanRestrict,omitempty"`
6326
6327
6328 SearchOperator string `json:"searchOperator,omitempty"`
6329
6330
6331
6332
6333
6334 ForceSendFields []string `json:"-"`
6335
6336
6337
6338
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
6348 type ResultCounts struct {
6349
6350 SourceResultCounts []*SourceResultCount `json:"sourceResultCounts,omitempty"`
6351
6352
6353
6354
6355
6356 ForceSendFields []string `json:"-"`
6357
6358
6359
6360
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
6370 type ResultDebugInfo struct {
6371
6372 FormattedDebugInfo string `json:"formattedDebugInfo,omitempty"`
6373
6374
6375
6376
6377
6378 ForceSendFields []string `json:"-"`
6379
6380
6381
6382
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
6392 type ResultDisplayField struct {
6393
6394 Label string `json:"label,omitempty"`
6395
6396 OperatorName string `json:"operatorName,omitempty"`
6397
6398 Property *NamedProperty `json:"property,omitempty"`
6399
6400
6401
6402
6403
6404 ForceSendFields []string `json:"-"`
6405
6406
6407
6408
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
6418 type ResultDisplayLine struct {
6419 Fields []*ResultDisplayField `json:"fields,omitempty"`
6420
6421
6422
6423
6424
6425 ForceSendFields []string `json:"-"`
6426
6427
6428
6429
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
6440 Metalines []*ResultDisplayLine `json:"metalines,omitempty"`
6441
6442 ObjectTypeLabel string `json:"objectTypeLabel,omitempty"`
6443
6444
6445
6446
6447
6448 ForceSendFields []string `json:"-"`
6449
6450
6451
6452
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
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472
6473 Importance string `json:"importance,omitempty"`
6474
6475
6476
6477
6478
6479 ForceSendFields []string `json:"-"`
6480
6481
6482
6483
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
6493
6494 type RewrittenQueries struct {
6495 RewrittenQueries []*RewrittenQuery `json:"rewrittenQueries,omitempty"`
6496
6497
6498
6499
6500 SelectedQueryIndex int64 `json:"selectedQueryIndex,omitempty"`
6501
6502
6503
6504
6505
6506 ForceSendFields []string `json:"-"`
6507
6508
6509
6510
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
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532
6533
6534
6535 SortBy string `json:"sortBy,omitempty"`
6536
6537
6538
6539
6540
6541 ForceSendFields []string `json:"-"`
6542
6543
6544
6545
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
6569
6570
6571
6572
6573
6574
6575 type SafeHtmlProto struct {
6576
6577
6578
6579
6580 PrivateDoNotAccessOrElseSafeHtmlWrappedValue string `json:"privateDoNotAccessOrElseSafeHtmlWrappedValue,omitempty"`
6581
6582
6583
6584
6585
6586
6587 ForceSendFields []string `json:"-"`
6588
6589
6590
6591
6592
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
6602
6603
6604 type SafeUrlProto struct {
6605
6606
6607
6608
6609 PrivateDoNotAccessOrElseSafeUrlWrappedValue string `json:"privateDoNotAccessOrElseSafeUrlWrappedValue,omitempty"`
6610
6611
6612
6613
6614
6615
6616 ForceSendFields []string `json:"-"`
6617
6618
6619
6620
6621
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
6631 type Schema struct {
6632
6633
6634 ObjectDefinitions []*ObjectDefinition `json:"objectDefinitions,omitempty"`
6635
6636
6637
6638 OperationIds []string `json:"operationIds,omitempty"`
6639
6640
6641 googleapi.ServerResponse `json:"-"`
6642
6643
6644
6645
6646
6647 ForceSendFields []string `json:"-"`
6648
6649
6650
6651
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
6661
6662 type ScoringConfig struct {
6663
6664
6665
6666 DisableFreshness bool `json:"disableFreshness,omitempty"`
6667
6668
6669 DisablePersonalization bool `json:"disablePersonalization,omitempty"`
6670
6671
6672
6673
6674
6675 ForceSendFields []string `json:"-"`
6676
6677
6678
6679
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
6689 type SearchApplication struct {
6690
6691
6692 DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"`
6693
6694
6695
6696 DefaultFacetOptions []*FacetOptions `json:"defaultFacetOptions,omitempty"`
6697
6698 DefaultSortOptions *SortOptions `json:"defaultSortOptions,omitempty"`
6699
6700
6701 DisplayName string `json:"displayName,omitempty"`
6702
6703
6704 EnableAuditLog bool `json:"enableAuditLog,omitempty"`
6705
6706
6707 Name string `json:"name,omitempty"`
6708
6709
6710 OperationIds []string `json:"operationIds,omitempty"`
6711
6712 QueryInterpretationConfig *QueryInterpretationConfig `json:"queryInterpretationConfig,omitempty"`
6713
6714
6715 ReturnResultThumbnailUrls bool `json:"returnResultThumbnailUrls,omitempty"`
6716
6717 ScoringConfig *ScoringConfig `json:"scoringConfig,omitempty"`
6718
6719
6720 SourceConfig []*SourceConfig `json:"sourceConfig,omitempty"`
6721
6722
6723 googleapi.ServerResponse `json:"-"`
6724
6725
6726
6727
6728
6729 ForceSendFields []string `json:"-"`
6730
6731
6732
6733
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
6743 type SearchApplicationQueryStats struct {
6744
6745
6746 Date *Date `json:"date,omitempty"`
6747 QueryCountByStatus []*QueryCountByStatus `json:"queryCountByStatus,omitempty"`
6748
6749
6750
6751
6752
6753 ForceSendFields []string `json:"-"`
6754
6755
6756
6757
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
6768
6769 Date *Date `json:"date,omitempty"`
6770
6771 SearchSessionsCount int64 `json:"searchSessionsCount,omitempty,string"`
6772
6773
6774
6775
6776
6777 ForceSendFields []string `json:"-"`
6778
6779
6780
6781
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
6792
6793 Date *Date `json:"date,omitempty"`
6794
6795 OneDayActiveUsersCount int64 `json:"oneDayActiveUsersCount,omitempty,string"`
6796
6797
6798 SevenDaysActiveUsersCount int64 `json:"sevenDaysActiveUsersCount,omitempty,string"`
6799
6800
6801 ThirtyDaysActiveUsersCount int64 `json:"thirtyDaysActiveUsersCount,omitempty,string"`
6802
6803
6804
6805
6806
6807 ForceSendFields []string `json:"-"`
6808
6809
6810
6811
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
6822 DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
6823
6824
6825 PageToken string `json:"pageToken,omitempty"`
6826
6827
6828 ViewUrl string `json:"viewUrl,omitempty"`
6829
6830
6831
6832
6833
6834 ForceSendFields []string `json:"-"`
6835
6836
6837
6838
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
6850
6851 NextPageToken string `json:"nextPageToken,omitempty"`
6852
6853
6854 googleapi.ServerResponse `json:"-"`
6855
6856
6857
6858
6859
6860 ForceSendFields []string `json:"-"`
6861
6862
6863
6864
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
6874 type SearchQualityMetadata struct {
6875
6876
6877
6878 Quality float64 `json:"quality,omitempty"`
6879
6880
6881
6882
6883
6884 ForceSendFields []string `json:"-"`
6885
6886
6887
6888
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
6912 type SearchRequest struct {
6913
6914
6915 ContextAttributes []*ContextAttribute `json:"contextAttributes,omitempty"`
6916
6917
6918 DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"`
6919 FacetOptions []*FacetOptions `json:"facetOptions,omitempty"`
6920
6921
6922
6923 PageSize int64 `json:"pageSize,omitempty"`
6924
6925
6926
6927 Query string `json:"query,omitempty"`
6928
6929 QueryInterpretationOptions *QueryInterpretationOptions `json:"queryInterpretationOptions,omitempty"`
6930
6931
6932 RequestOptions *RequestOptions `json:"requestOptions,omitempty"`
6933
6934 SortOptions *SortOptions `json:"sortOptions,omitempty"`
6935
6936 Start int64 `json:"start,omitempty"`
6937
6938
6939
6940
6941
6942 ForceSendFields []string `json:"-"`
6943
6944
6945
6946
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
6956 type SearchResponse struct {
6957
6958 DebugInfo *ResponseDebugInfo `json:"debugInfo,omitempty"`
6959
6960 ErrorInfo *ErrorInfo `json:"errorInfo,omitempty"`
6961
6962 FacetResults []*FacetResult `json:"facetResults,omitempty"`
6963
6964 HasMoreResults bool `json:"hasMoreResults,omitempty"`
6965
6966
6967 QueryInterpretation *QueryInterpretation `json:"queryInterpretation,omitempty"`
6968
6969 ResultCountEstimate int64 `json:"resultCountEstimate,omitempty,string"`
6970
6971 ResultCountExact int64 `json:"resultCountExact,omitempty,string"`
6972
6973 ResultCounts *ResultCounts `json:"resultCounts,omitempty"`
6974
6975 Results []*SearchResult `json:"results,omitempty"`
6976
6977 SpellResults []*SpellResult `json:"spellResults,omitempty"`
6978
6979
6980 StructuredResults []*StructuredResult `json:"structuredResults,omitempty"`
6981
6982
6983 googleapi.ServerResponse `json:"-"`
6984
6985
6986
6987
6988
6989 ForceSendFields []string `json:"-"`
6990
6991
6992
6993
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
7003 type SearchResult struct {
7004
7005
7006
7007 ClusteredResults []*SearchResult `json:"clusteredResults,omitempty"`
7008
7009 DebugInfo *ResultDebugInfo `json:"debugInfo,omitempty"`
7010
7011 Metadata *Metadata `json:"metadata,omitempty"`
7012
7013
7014 Snippet *Snippet `json:"snippet,omitempty"`
7015
7016 Title string `json:"title,omitempty"`
7017
7018
7019 Url string `json:"url,omitempty"`
7020
7021
7022
7023
7024
7025 ForceSendFields []string `json:"-"`
7026
7027
7028
7029
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
7039
7040 type Snippet struct {
7041
7042 MatchRanges []*MatchRange `json:"matchRanges,omitempty"`
7043
7044
7045 Snippet string `json:"snippet,omitempty"`
7046
7047
7048
7049
7050
7051 ForceSendFields []string `json:"-"`
7052
7053
7054
7055
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
7066
7067 OperatorName string `json:"operatorName,omitempty"`
7068
7069
7070
7071
7072
7073 SortOrder string `json:"sortOrder,omitempty"`
7074
7075
7076
7077
7078
7079 ForceSendFields []string `json:"-"`
7080
7081
7082
7083
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
7093 type Source struct {
7094
7095 Name string `json:"name,omitempty"`
7096
7097
7098
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109
7110 PredefinedSource string `json:"predefinedSource,omitempty"`
7111
7112
7113
7114
7115
7116 ForceSendFields []string `json:"-"`
7117
7118
7119
7120
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
7130
7131 type SourceConfig struct {
7132
7133 CrowdingConfig *SourceCrowdingConfig `json:"crowdingConfig,omitempty"`
7134
7135 ScoringConfig *SourceScoringConfig `json:"scoringConfig,omitempty"`
7136
7137 Source *Source `json:"source,omitempty"`
7138
7139
7140
7141
7142
7143 ForceSendFields []string `json:"-"`
7144
7145
7146
7147
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
7157
7158
7159
7160
7161 type SourceCrowdingConfig struct {
7162
7163
7164
7165
7166 NumResults int64 `json:"numResults,omitempty"`
7167
7168
7169 NumSuggestions int64 `json:"numSuggestions,omitempty"`
7170
7171
7172
7173
7174
7175 ForceSendFields []string `json:"-"`
7176
7177
7178
7179
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
7189 type SourceResultCount struct {
7190
7191 HasMoreResults bool `json:"hasMoreResults,omitempty"`
7192
7193 ResultCountEstimate int64 `json:"resultCountEstimate,omitempty,string"`
7194
7195 ResultCountExact int64 `json:"resultCountExact,omitempty,string"`
7196
7197 Source *Source `json:"source,omitempty"`
7198
7199
7200
7201
7202
7203 ForceSendFields []string `json:"-"`
7204
7205
7206
7207
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
7217
7218 type SourceScoringConfig struct {
7219
7220
7221
7222
7223
7224
7225 SourceImportance string `json:"sourceImportance,omitempty"`
7226
7227
7228
7229
7230
7231 ForceSendFields []string `json:"-"`
7232
7233
7234
7235
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
7246 SuggestedQuery string `json:"suggestedQuery,omitempty"`
7247
7248
7249
7250 SuggestedQueryHtml *SafeHtmlProto `json:"suggestedQueryHtml,omitempty"`
7251
7252
7253
7254
7255
7256
7257
7258
7259
7260
7261
7262
7263 SuggestionType string `json:"suggestionType,omitempty"`
7264
7265
7266
7267
7268
7269 ForceSendFields []string `json:"-"`
7270
7271
7272
7273
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
7283 type StartUploadItemRequest struct {
7284
7285
7286 ConnectorName string `json:"connectorName,omitempty"`
7287
7288 DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
7289
7290
7291
7292
7293
7294 ForceSendFields []string `json:"-"`
7295
7296
7297
7298
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
7308
7309
7310
7311
7312
7313 type Status struct {
7314
7315 Code int64 `json:"code,omitempty"`
7316
7317
7318 Details []googleapi.RawMessage `json:"details,omitempty"`
7319
7320
7321
7322 Message string `json:"message,omitempty"`
7323
7324
7325
7326
7327
7328 ForceSendFields []string `json:"-"`
7329
7330
7331
7332
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
7342
7343 type StructuredDataObject struct {
7344
7345
7346 Properties []*NamedProperty `json:"properties,omitempty"`
7347
7348
7349
7350
7351
7352 ForceSendFields []string `json:"-"`
7353
7354
7355
7356
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
7366
7367 type StructuredResult struct {
7368
7369 Person *Person `json:"person,omitempty"`
7370
7371
7372
7373
7374
7375 ForceSendFields []string `json:"-"`
7376
7377
7378
7379
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
7389 type SuggestRequest struct {
7390
7391
7392
7393
7394
7395 DataSourceRestrictions []*DataSourceRestriction `json:"dataSourceRestrictions,omitempty"`
7396
7397
7398
7399 Query string `json:"query,omitempty"`
7400
7401
7402 RequestOptions *RequestOptions `json:"requestOptions,omitempty"`
7403
7404
7405
7406
7407
7408 ForceSendFields []string `json:"-"`
7409
7410
7411
7412
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
7422 type SuggestResponse struct {
7423
7424 SuggestResults []*SuggestResult `json:"suggestResults,omitempty"`
7425
7426
7427 googleapi.ServerResponse `json:"-"`
7428
7429
7430
7431
7432
7433 ForceSendFields []string `json:"-"`
7434
7435
7436
7437
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
7447 type SuggestResult struct {
7448
7449
7450 PeopleSuggestion *PeopleSuggestion `json:"peopleSuggestion,omitempty"`
7451
7452
7453 QuerySuggestion *QuerySuggestion `json:"querySuggestion,omitempty"`
7454
7455 Source *Source `json:"source,omitempty"`
7456
7457
7458 SuggestedQuery string `json:"suggestedQuery,omitempty"`
7459
7460
7461
7462
7463
7464 ForceSendFields []string `json:"-"`
7465
7466
7467
7468
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
7478
7479
7480 type TextOperatorOptions struct {
7481
7482
7483
7484
7485
7486
7487
7488
7489 ExactMatchWithOperator bool `json:"exactMatchWithOperator,omitempty"`
7490
7491
7492
7493
7494
7495
7496
7497
7498
7499 OperatorName string `json:"operatorName,omitempty"`
7500
7501
7502
7503
7504
7505 ForceSendFields []string `json:"-"`
7506
7507
7508
7509
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
7519 type TextPropertyOptions struct {
7520
7521
7522 OperatorOptions *TextOperatorOptions `json:"operatorOptions,omitempty"`
7523
7524
7525 RetrievalImportance *RetrievalImportance `json:"retrievalImportance,omitempty"`
7526
7527
7528
7529
7530
7531 ForceSendFields []string `json:"-"`
7532
7533
7534
7535
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
7545 type TextValues struct {
7546
7547 Values []string `json:"values,omitempty"`
7548
7549
7550
7551
7552
7553 ForceSendFields []string `json:"-"`
7554
7555
7556
7557
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
7568 CardId string `json:"cardId,omitempty"`
7569
7570 Category string `json:"category,omitempty"`
7571
7572 Content *Content `json:"content,omitempty"`
7573
7574 Context *Context `json:"context,omitempty"`
7575
7576 IsDismissible bool `json:"isDismissible,omitempty"`
7577
7578 Priority int64 `json:"priority,omitempty"`
7579
7580
7581
7582
7583
7584 ForceSendFields []string `json:"-"`
7585
7586
7587
7588
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
7598
7599
7600 type TimestampOperatorOptions struct {
7601
7602
7603
7604
7605
7606
7607
7608 GreaterThanOperatorName string `json:"greaterThanOperatorName,omitempty"`
7609
7610
7611
7612
7613
7614
7615
7616 LessThanOperatorName string `json:"lessThanOperatorName,omitempty"`
7617
7618
7619
7620
7621
7622
7623
7624
7625
7626 OperatorName string `json:"operatorName,omitempty"`
7627
7628
7629
7630
7631
7632 ForceSendFields []string `json:"-"`
7633
7634
7635
7636
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
7646 type TimestampPropertyOptions struct {
7647
7648
7649 OperatorOptions *TimestampOperatorOptions `json:"operatorOptions,omitempty"`
7650
7651
7652
7653
7654
7655 ForceSendFields []string `json:"-"`
7656
7657
7658
7659
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
7669 type TimestampValues struct {
7670 Values []string `json:"values,omitempty"`
7671
7672
7673
7674
7675
7676 ForceSendFields []string `json:"-"`
7677
7678
7679
7680
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
7691 ExternalIdentity *Principal `json:"externalIdentity,omitempty"`
7692
7693
7694
7695
7696
7697
7698
7699
7700
7701
7702
7703
7704
7705
7706 ResolutionStatusCode string `json:"resolutionStatusCode,omitempty"`
7707
7708
7709
7710
7711
7712 ForceSendFields []string `json:"-"`
7713
7714
7715
7716
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
7727
7728 ConnectorName string `json:"connectorName,omitempty"`
7729
7730 DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
7731
7732 Queue string `json:"queue,omitempty"`
7733
7734
7735
7736
7737
7738 ForceSendFields []string `json:"-"`
7739
7740
7741
7742
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
7753 DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
7754 Source *DataSource `json:"source,omitempty"`
7755
7756
7757
7758
7759
7760
7761
7762
7763 UpdateMask string `json:"updateMask,omitempty"`
7764
7765
7766
7767
7768
7769 ForceSendFields []string `json:"-"`
7770
7771
7772
7773
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
7784 DebugOptions *DebugOptions `json:"debugOptions,omitempty"`
7785
7786 Schema *Schema `json:"schema,omitempty"`
7787
7788
7789 ValidateOnly bool `json:"validateOnly,omitempty"`
7790
7791
7792
7793
7794
7795 ForceSendFields []string `json:"-"`
7796
7797
7798
7799
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
7809
7810
7811
7812 type UploadItemRef struct {
7813
7814
7815 Name string `json:"name,omitempty"`
7816
7817
7818 googleapi.ServerResponse `json:"-"`
7819
7820
7821
7822
7823
7824 ForceSendFields []string `json:"-"`
7825
7826
7827
7828
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
7838
7839 type UserActivity struct {
7840
7841 QueryActivity *QueryActivity `json:"queryActivity,omitempty"`
7842
7843
7844
7845
7846
7847 ForceSendFields []string `json:"-"`
7848
7849
7850
7851
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
7862
7863
7864
7865 Project string `json:"project,omitempty"`
7866
7867
7868
7869
7870
7871 ForceSendFields []string `json:"-"`
7872
7873
7874
7875
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
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
7893
7894
7895
7896
7897 ForceSendFields []string `json:"-"`
7898
7899
7900
7901
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
7926
7927
7928
7929
7930
7931
7932 OperatorName string `json:"operatorName,omitempty"`
7933
7934 Value *Value `json:"value,omitempty"`
7935
7936
7937
7938
7939
7940 ForceSendFields []string `json:"-"`
7941
7942
7943
7944
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
7963
7964
7965
7966
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
7975
7976
7977 func (c *DebugDatasourcesItemsCheckAccessCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *DebugDatasourcesItemsCheckAccessCall {
7978 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
7979 return c
7980 }
7981
7982
7983
7984
7985 func (c *DebugDatasourcesItemsCheckAccessCall) Fields(s ...googleapi.Field) *DebugDatasourcesItemsCheckAccessCall {
7986 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7987 return c
7988 }
7989
7990
7991 func (c *DebugDatasourcesItemsCheckAccessCall) Context(ctx context.Context) *DebugDatasourcesItemsCheckAccessCall {
7992 c.ctx_ = ctx
7993 return c
7994 }
7995
7996
7997
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
8028
8029
8030
8031
8032
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
8075
8076
8077
8078
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
8087
8088
8089 func (c *DebugDatasourcesItemsSearchByViewUrlCall) Fields(s ...googleapi.Field) *DebugDatasourcesItemsSearchByViewUrlCall {
8090 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8091 return c
8092 }
8093
8094
8095 func (c *DebugDatasourcesItemsSearchByViewUrlCall) Context(ctx context.Context) *DebugDatasourcesItemsSearchByViewUrlCall {
8096 c.ctx_ = ctx
8097 return c
8098 }
8099
8100
8101
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
8132
8133
8134
8135
8136
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
8170
8171
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
8200
8201
8202
8203
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
8211
8212
8213 func (c *DebugDatasourcesItemsUnmappedidsListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *DebugDatasourcesItemsUnmappedidsListCall {
8214 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
8215 return c
8216 }
8217
8218
8219
8220 func (c *DebugDatasourcesItemsUnmappedidsListCall) PageSize(pageSize int64) *DebugDatasourcesItemsUnmappedidsListCall {
8221 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8222 return c
8223 }
8224
8225
8226
8227 func (c *DebugDatasourcesItemsUnmappedidsListCall) PageToken(pageToken string) *DebugDatasourcesItemsUnmappedidsListCall {
8228 c.urlParams_.Set("pageToken", pageToken)
8229 return c
8230 }
8231
8232
8233
8234
8235 func (c *DebugDatasourcesItemsUnmappedidsListCall) Fields(s ...googleapi.Field) *DebugDatasourcesItemsUnmappedidsListCall {
8236 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8237 return c
8238 }
8239
8240
8241
8242
8243 func (c *DebugDatasourcesItemsUnmappedidsListCall) IfNoneMatch(entityTag string) *DebugDatasourcesItemsUnmappedidsListCall {
8244 c.ifNoneMatch_ = entityTag
8245 return c
8246 }
8247
8248
8249 func (c *DebugDatasourcesItemsUnmappedidsListCall) Context(ctx context.Context) *DebugDatasourcesItemsUnmappedidsListCall {
8250 c.ctx_ = ctx
8251 return c
8252 }
8253
8254
8255
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
8285
8286
8287
8288
8289
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
8323
8324
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
8353
8354
8355
8356
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
8364
8365
8366 func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *DebugIdentitysourcesItemsListForunmappedidentityCall {
8367 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
8368 return c
8369 }
8370
8371
8372 func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) GroupResourceName(groupResourceName string) *DebugIdentitysourcesItemsListForunmappedidentityCall {
8373 c.urlParams_.Set("groupResourceName", groupResourceName)
8374 return c
8375 }
8376
8377
8378
8379 func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) PageSize(pageSize int64) *DebugIdentitysourcesItemsListForunmappedidentityCall {
8380 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8381 return c
8382 }
8383
8384
8385
8386 func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) PageToken(pageToken string) *DebugIdentitysourcesItemsListForunmappedidentityCall {
8387 c.urlParams_.Set("pageToken", pageToken)
8388 return c
8389 }
8390
8391
8392 func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) UserResourceName(userResourceName string) *DebugIdentitysourcesItemsListForunmappedidentityCall {
8393 c.urlParams_.Set("userResourceName", userResourceName)
8394 return c
8395 }
8396
8397
8398
8399
8400 func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Fields(s ...googleapi.Field) *DebugIdentitysourcesItemsListForunmappedidentityCall {
8401 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8402 return c
8403 }
8404
8405
8406
8407
8408 func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) IfNoneMatch(entityTag string) *DebugIdentitysourcesItemsListForunmappedidentityCall {
8409 c.ifNoneMatch_ = entityTag
8410 return c
8411 }
8412
8413
8414 func (c *DebugIdentitysourcesItemsListForunmappedidentityCall) Context(ctx context.Context) *DebugIdentitysourcesItemsListForunmappedidentityCall {
8415 c.ctx_ = ctx
8416 return c
8417 }
8418
8419
8420
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
8450
8451
8452
8453
8454
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
8488
8489
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
8518
8519
8520
8521
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
8529
8530
8531 func (c *DebugIdentitysourcesUnmappedidsListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *DebugIdentitysourcesUnmappedidsListCall {
8532 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
8533 return c
8534 }
8535
8536
8537
8538 func (c *DebugIdentitysourcesUnmappedidsListCall) PageSize(pageSize int64) *DebugIdentitysourcesUnmappedidsListCall {
8539 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8540 return c
8541 }
8542
8543
8544
8545 func (c *DebugIdentitysourcesUnmappedidsListCall) PageToken(pageToken string) *DebugIdentitysourcesUnmappedidsListCall {
8546 c.urlParams_.Set("pageToken", pageToken)
8547 return c
8548 }
8549
8550
8551
8552
8553
8554
8555
8556
8557
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572
8573
8574
8575
8576 func (c *DebugIdentitysourcesUnmappedidsListCall) ResolutionStatusCode(resolutionStatusCode string) *DebugIdentitysourcesUnmappedidsListCall {
8577 c.urlParams_.Set("resolutionStatusCode", resolutionStatusCode)
8578 return c
8579 }
8580
8581
8582
8583
8584 func (c *DebugIdentitysourcesUnmappedidsListCall) Fields(s ...googleapi.Field) *DebugIdentitysourcesUnmappedidsListCall {
8585 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8586 return c
8587 }
8588
8589
8590
8591
8592 func (c *DebugIdentitysourcesUnmappedidsListCall) IfNoneMatch(entityTag string) *DebugIdentitysourcesUnmappedidsListCall {
8593 c.ifNoneMatch_ = entityTag
8594 return c
8595 }
8596
8597
8598 func (c *DebugIdentitysourcesUnmappedidsListCall) Context(ctx context.Context) *DebugIdentitysourcesUnmappedidsListCall {
8599 c.ctx_ = ctx
8600 return c
8601 }
8602
8603
8604
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
8634
8635
8636
8637
8638
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
8672
8673
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
8701
8702
8703
8704
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
8712
8713
8714 func (c *IndexingDatasourcesDeleteSchemaCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesDeleteSchemaCall {
8715 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
8716 return c
8717 }
8718
8719
8720
8721
8722 func (c *IndexingDatasourcesDeleteSchemaCall) Fields(s ...googleapi.Field) *IndexingDatasourcesDeleteSchemaCall {
8723 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8724 return c
8725 }
8726
8727
8728 func (c *IndexingDatasourcesDeleteSchemaCall) Context(ctx context.Context) *IndexingDatasourcesDeleteSchemaCall {
8729 c.ctx_ = ctx
8730 return c
8731 }
8732
8733
8734
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
8761
8762
8763
8764
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
8807
8808
8809
8810
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
8818
8819
8820 func (c *IndexingDatasourcesGetSchemaCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesGetSchemaCall {
8821 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
8822 return c
8823 }
8824
8825
8826
8827
8828 func (c *IndexingDatasourcesGetSchemaCall) Fields(s ...googleapi.Field) *IndexingDatasourcesGetSchemaCall {
8829 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8830 return c
8831 }
8832
8833
8834
8835
8836 func (c *IndexingDatasourcesGetSchemaCall) IfNoneMatch(entityTag string) *IndexingDatasourcesGetSchemaCall {
8837 c.ifNoneMatch_ = entityTag
8838 return c
8839 }
8840
8841
8842 func (c *IndexingDatasourcesGetSchemaCall) Context(ctx context.Context) *IndexingDatasourcesGetSchemaCall {
8843 c.ctx_ = ctx
8844 return c
8845 }
8846
8847
8848
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
8878
8879
8880
8881
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
8924
8925
8926
8927
8928
8929
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
8938
8939
8940 func (c *IndexingDatasourcesUpdateSchemaCall) Fields(s ...googleapi.Field) *IndexingDatasourcesUpdateSchemaCall {
8941 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8942 return c
8943 }
8944
8945
8946 func (c *IndexingDatasourcesUpdateSchemaCall) Context(ctx context.Context) *IndexingDatasourcesUpdateSchemaCall {
8947 c.ctx_ = ctx
8948 return c
8949 }
8950
8951
8952
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
8983
8984
8985
8986
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
9028
9029
9030
9031
9032
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
9040
9041 func (c *IndexingDatasourcesItemsDeleteCall) ConnectorName(connectorName string) *IndexingDatasourcesItemsDeleteCall {
9042 c.urlParams_.Set("connectorName", connectorName)
9043 return c
9044 }
9045
9046
9047
9048
9049 func (c *IndexingDatasourcesItemsDeleteCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesItemsDeleteCall {
9050 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
9051 return c
9052 }
9053
9054
9055
9056
9057
9058
9059
9060
9061
9062
9063
9064
9065
9066
9067 func (c *IndexingDatasourcesItemsDeleteCall) Mode(mode string) *IndexingDatasourcesItemsDeleteCall {
9068 c.urlParams_.Set("mode", mode)
9069 return c
9070 }
9071
9072
9073
9074
9075
9076
9077
9078
9079
9080
9081 func (c *IndexingDatasourcesItemsDeleteCall) Version(version string) *IndexingDatasourcesItemsDeleteCall {
9082 c.urlParams_.Set("version", version)
9083 return c
9084 }
9085
9086
9087
9088
9089 func (c *IndexingDatasourcesItemsDeleteCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsDeleteCall {
9090 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9091 return c
9092 }
9093
9094
9095 func (c *IndexingDatasourcesItemsDeleteCall) Context(ctx context.Context) *IndexingDatasourcesItemsDeleteCall {
9096 c.ctx_ = ctx
9097 return c
9098 }
9099
9100
9101
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
9128
9129
9130
9131
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
9174
9175
9176
9177
9178
9179
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
9188
9189
9190 func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsDeleteQueueItemsCall {
9191 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9192 return c
9193 }
9194
9195
9196 func (c *IndexingDatasourcesItemsDeleteQueueItemsCall) Context(ctx context.Context) *IndexingDatasourcesItemsDeleteQueueItemsCall {
9197 c.ctx_ = ctx
9198 return c
9199 }
9200
9201
9202
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
9233
9234
9235
9236
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
9279
9280
9281
9282
9283
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
9291
9292 func (c *IndexingDatasourcesItemsGetCall) ConnectorName(connectorName string) *IndexingDatasourcesItemsGetCall {
9293 c.urlParams_.Set("connectorName", connectorName)
9294 return c
9295 }
9296
9297
9298
9299
9300 func (c *IndexingDatasourcesItemsGetCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesItemsGetCall {
9301 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
9302 return c
9303 }
9304
9305
9306
9307
9308 func (c *IndexingDatasourcesItemsGetCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsGetCall {
9309 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9310 return c
9311 }
9312
9313
9314
9315
9316 func (c *IndexingDatasourcesItemsGetCall) IfNoneMatch(entityTag string) *IndexingDatasourcesItemsGetCall {
9317 c.ifNoneMatch_ = entityTag
9318 return c
9319 }
9320
9321
9322 func (c *IndexingDatasourcesItemsGetCall) Context(ctx context.Context) *IndexingDatasourcesItemsGetCall {
9323 c.ctx_ = ctx
9324 return c
9325 }
9326
9327
9328
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
9358
9359
9360
9361
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
9404
9405
9406
9407
9408
9409
9410
9411
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
9420
9421
9422 func (c *IndexingDatasourcesItemsIndexCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsIndexCall {
9423 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9424 return c
9425 }
9426
9427
9428 func (c *IndexingDatasourcesItemsIndexCall) Context(ctx context.Context) *IndexingDatasourcesItemsIndexCall {
9429 c.ctx_ = ctx
9430 return c
9431 }
9432
9433
9434
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
9465
9466
9467
9468
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
9511
9512
9513
9514
9515
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
9523
9524
9525
9526
9527
9528
9529
9530 func (c *IndexingDatasourcesItemsListCall) Brief(brief bool) *IndexingDatasourcesItemsListCall {
9531 c.urlParams_.Set("brief", fmt.Sprint(brief))
9532 return c
9533 }
9534
9535
9536
9537 func (c *IndexingDatasourcesItemsListCall) ConnectorName(connectorName string) *IndexingDatasourcesItemsListCall {
9538 c.urlParams_.Set("connectorName", connectorName)
9539 return c
9540 }
9541
9542
9543
9544
9545 func (c *IndexingDatasourcesItemsListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *IndexingDatasourcesItemsListCall {
9546 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
9547 return c
9548 }
9549
9550
9551
9552
9553 func (c *IndexingDatasourcesItemsListCall) PageSize(pageSize int64) *IndexingDatasourcesItemsListCall {
9554 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9555 return c
9556 }
9557
9558
9559
9560 func (c *IndexingDatasourcesItemsListCall) PageToken(pageToken string) *IndexingDatasourcesItemsListCall {
9561 c.urlParams_.Set("pageToken", pageToken)
9562 return c
9563 }
9564
9565
9566
9567
9568 func (c *IndexingDatasourcesItemsListCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsListCall {
9569 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9570 return c
9571 }
9572
9573
9574
9575
9576 func (c *IndexingDatasourcesItemsListCall) IfNoneMatch(entityTag string) *IndexingDatasourcesItemsListCall {
9577 c.ifNoneMatch_ = entityTag
9578 return c
9579 }
9580
9581
9582 func (c *IndexingDatasourcesItemsListCall) Context(ctx context.Context) *IndexingDatasourcesItemsListCall {
9583 c.ctx_ = ctx
9584 return c
9585 }
9586
9587
9588
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
9618
9619
9620
9621
9622
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
9656
9657
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
9686
9687
9688
9689
9690
9691
9692
9693
9694
9695
9696
9697
9698
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
9707
9708
9709 func (c *IndexingDatasourcesItemsPollCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsPollCall {
9710 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9711 return c
9712 }
9713
9714
9715 func (c *IndexingDatasourcesItemsPollCall) Context(ctx context.Context) *IndexingDatasourcesItemsPollCall {
9716 c.ctx_ = ctx
9717 return c
9718 }
9719
9720
9721
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
9752
9753
9754
9755
9756
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
9799
9800
9801
9802
9803
9804
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
9813
9814
9815 func (c *IndexingDatasourcesItemsPushCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsPushCall {
9816 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9817 return c
9818 }
9819
9820
9821 func (c *IndexingDatasourcesItemsPushCall) Context(ctx context.Context) *IndexingDatasourcesItemsPushCall {
9822 c.ctx_ = ctx
9823 return c
9824 }
9825
9826
9827
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
9858
9859
9860
9861
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
9904
9905
9906
9907
9908
9909
9910
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
9919
9920
9921 func (c *IndexingDatasourcesItemsUnreserveCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsUnreserveCall {
9922 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9923 return c
9924 }
9925
9926
9927 func (c *IndexingDatasourcesItemsUnreserveCall) Context(ctx context.Context) *IndexingDatasourcesItemsUnreserveCall {
9928 c.ctx_ = ctx
9929 return c
9930 }
9931
9932
9933
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
9964
9965
9966
9967
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
10010
10011
10012
10013
10014
10015
10016
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
10025
10026
10027 func (c *IndexingDatasourcesItemsUploadCall) Fields(s ...googleapi.Field) *IndexingDatasourcesItemsUploadCall {
10028 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10029 return c
10030 }
10031
10032
10033 func (c *IndexingDatasourcesItemsUploadCall) Context(ctx context.Context) *IndexingDatasourcesItemsUploadCall {
10034 c.ctx_ = ctx
10035 return c
10036 }
10037
10038
10039
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
10070
10071
10072
10073
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
10117
10118
10119
10120
10121
10122
10123
10124
10125
10126
10127
10128
10129
10130
10131
10132
10133
10134
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
10143
10144
10145
10146
10147
10148
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
10155
10156
10157
10158
10159
10160
10161
10162
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
10170
10171
10172
10173 func (c *MediaUploadCall) ProgressUpdater(pu googleapi.ProgressUpdater) *MediaUploadCall {
10174 c.mediaInfo_.SetProgressUpdater(pu)
10175 return c
10176 }
10177
10178
10179
10180
10181 func (c *MediaUploadCall) Fields(s ...googleapi.Field) *MediaUploadCall {
10182 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10183 return c
10184 }
10185
10186
10187
10188
10189 func (c *MediaUploadCall) Context(ctx context.Context) *MediaUploadCall {
10190 c.ctx_ = ctx
10191 return c
10192 }
10193
10194
10195
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
10237
10238
10239
10240
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
10300
10301
10302
10303
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
10311
10312
10313 func (c *OperationsGetCall) Fields(s ...googleapi.Field) *OperationsGetCall {
10314 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10315 return c
10316 }
10317
10318
10319
10320
10321 func (c *OperationsGetCall) IfNoneMatch(entityTag string) *OperationsGetCall {
10322 c.ifNoneMatch_ = entityTag
10323 return c
10324 }
10325
10326
10327 func (c *OperationsGetCall) Context(ctx context.Context) *OperationsGetCall {
10328 c.ctx_ = ctx
10329 return c
10330 }
10331
10332
10333
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
10363
10364
10365
10366
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
10409
10410
10411
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
10419 func (c *OperationsLroListCall) Filter(filter string) *OperationsLroListCall {
10420 c.urlParams_.Set("filter", filter)
10421 return c
10422 }
10423
10424
10425
10426 func (c *OperationsLroListCall) PageSize(pageSize int64) *OperationsLroListCall {
10427 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10428 return c
10429 }
10430
10431
10432
10433 func (c *OperationsLroListCall) PageToken(pageToken string) *OperationsLroListCall {
10434 c.urlParams_.Set("pageToken", pageToken)
10435 return c
10436 }
10437
10438
10439
10440
10441 func (c *OperationsLroListCall) Fields(s ...googleapi.Field) *OperationsLroListCall {
10442 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10443 return c
10444 }
10445
10446
10447
10448
10449 func (c *OperationsLroListCall) IfNoneMatch(entityTag string) *OperationsLroListCall {
10450 c.ifNoneMatch_ = entityTag
10451 return c
10452 }
10453
10454
10455 func (c *OperationsLroListCall) Context(ctx context.Context) *OperationsLroListCall {
10456 c.ctx_ = ctx
10457 return c
10458 }
10459
10460
10461
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
10491
10492
10493
10494
10495
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
10529
10530
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
10558
10559
10560
10561
10562
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
10570
10571
10572 func (c *QueryRemoveActivityCall) Fields(s ...googleapi.Field) *QueryRemoveActivityCall {
10573 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10574 return c
10575 }
10576
10577
10578 func (c *QueryRemoveActivityCall) Context(ctx context.Context) *QueryRemoveActivityCall {
10579 c.ctx_ = ctx
10580 return c
10581 }
10582
10583
10584
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
10612
10613
10614
10615
10616
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
10658
10659
10660
10661
10662
10663
10664
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
10672
10673
10674 func (c *QuerySearchCall) Fields(s ...googleapi.Field) *QuerySearchCall {
10675 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10676 return c
10677 }
10678
10679
10680 func (c *QuerySearchCall) Context(ctx context.Context) *QuerySearchCall {
10681 c.ctx_ = ctx
10682 return c
10683 }
10684
10685
10686
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
10714
10715
10716
10717
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
10759
10760
10761
10762
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
10770
10771
10772 func (c *QuerySuggestCall) Fields(s ...googleapi.Field) *QuerySuggestCall {
10773 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10774 return c
10775 }
10776
10777
10778 func (c *QuerySuggestCall) Context(ctx context.Context) *QuerySuggestCall {
10779 c.ctx_ = ctx
10780 return c
10781 }
10782
10783
10784
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
10812
10813
10814
10815
10816
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
10858
10859
10860
10861
10862
10863 func (r *QuerySourcesService) List() *QuerySourcesListCall {
10864 c := &QuerySourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10865 return c
10866 }
10867
10868
10869
10870 func (c *QuerySourcesListCall) PageToken(pageToken string) *QuerySourcesListCall {
10871 c.urlParams_.Set("pageToken", pageToken)
10872 return c
10873 }
10874
10875
10876
10877
10878 func (c *QuerySourcesListCall) RequestOptionsDebugOptionsEnableDebugging(requestOptionsDebugOptionsEnableDebugging bool) *QuerySourcesListCall {
10879 c.urlParams_.Set("requestOptions.debugOptions.enableDebugging", fmt.Sprint(requestOptionsDebugOptionsEnableDebugging))
10880 return c
10881 }
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891
10892 func (c *QuerySourcesListCall) RequestOptionsLanguageCode(requestOptionsLanguageCode string) *QuerySourcesListCall {
10893 c.urlParams_.Set("requestOptions.languageCode", requestOptionsLanguageCode)
10894 return c
10895 }
10896
10897
10898
10899
10900
10901 func (c *QuerySourcesListCall) RequestOptionsSearchApplicationId(requestOptionsSearchApplicationId string) *QuerySourcesListCall {
10902 c.urlParams_.Set("requestOptions.searchApplicationId", requestOptionsSearchApplicationId)
10903 return c
10904 }
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914 func (c *QuerySourcesListCall) RequestOptionsTimeZone(requestOptionsTimeZone string) *QuerySourcesListCall {
10915 c.urlParams_.Set("requestOptions.timeZone", requestOptionsTimeZone)
10916 return c
10917 }
10918
10919
10920
10921
10922 func (c *QuerySourcesListCall) Fields(s ...googleapi.Field) *QuerySourcesListCall {
10923 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10924 return c
10925 }
10926
10927
10928
10929
10930 func (c *QuerySourcesListCall) IfNoneMatch(entityTag string) *QuerySourcesListCall {
10931 c.ifNoneMatch_ = entityTag
10932 return c
10933 }
10934
10935
10936 func (c *QuerySourcesListCall) Context(ctx context.Context) *QuerySourcesListCall {
10937 c.ctx_ = ctx
10938 return c
10939 }
10940
10941
10942
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
10969
10970
10971
10972
10973
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
11007
11008
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
11036
11037 func (r *SettingsService) GetCustomer() *SettingsGetCustomerCall {
11038 c := &SettingsGetCustomerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11039 return c
11040 }
11041
11042
11043
11044
11045 func (c *SettingsGetCustomerCall) Fields(s ...googleapi.Field) *SettingsGetCustomerCall {
11046 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11047 return c
11048 }
11049
11050
11051
11052
11053 func (c *SettingsGetCustomerCall) IfNoneMatch(entityTag string) *SettingsGetCustomerCall {
11054 c.ifNoneMatch_ = entityTag
11055 return c
11056 }
11057
11058
11059 func (c *SettingsGetCustomerCall) Context(ctx context.Context) *SettingsGetCustomerCall {
11060 c.ctx_ = ctx
11061 return c
11062 }
11063
11064
11065
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
11092
11093
11094
11095
11096
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
11138
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
11146
11147
11148
11149
11150 func (c *SettingsUpdateCustomerCall) UpdateMask(updateMask string) *SettingsUpdateCustomerCall {
11151 c.urlParams_.Set("updateMask", updateMask)
11152 return c
11153 }
11154
11155
11156
11157
11158 func (c *SettingsUpdateCustomerCall) Fields(s ...googleapi.Field) *SettingsUpdateCustomerCall {
11159 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11160 return c
11161 }
11162
11163
11164 func (c *SettingsUpdateCustomerCall) Context(ctx context.Context) *SettingsUpdateCustomerCall {
11165 c.ctx_ = ctx
11166 return c
11167 }
11168
11169
11170
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
11198
11199
11200
11201
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
11243
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
11251
11252
11253 func (c *SettingsDatasourcesCreateCall) Fields(s ...googleapi.Field) *SettingsDatasourcesCreateCall {
11254 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11255 return c
11256 }
11257
11258
11259 func (c *SettingsDatasourcesCreateCall) Context(ctx context.Context) *SettingsDatasourcesCreateCall {
11260 c.ctx_ = ctx
11261 return c
11262 }
11263
11264
11265
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
11293
11294
11295
11296
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
11338
11339
11340
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
11348
11349
11350 func (c *SettingsDatasourcesDeleteCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsDatasourcesDeleteCall {
11351 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
11352 return c
11353 }
11354
11355
11356
11357
11358 func (c *SettingsDatasourcesDeleteCall) Fields(s ...googleapi.Field) *SettingsDatasourcesDeleteCall {
11359 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11360 return c
11361 }
11362
11363
11364 func (c *SettingsDatasourcesDeleteCall) Context(ctx context.Context) *SettingsDatasourcesDeleteCall {
11365 c.ctx_ = ctx
11366 return c
11367 }
11368
11369
11370
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
11397
11398
11399
11400
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
11443
11444
11445
11446
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
11454
11455
11456 func (c *SettingsDatasourcesGetCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsDatasourcesGetCall {
11457 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
11458 return c
11459 }
11460
11461
11462
11463
11464 func (c *SettingsDatasourcesGetCall) Fields(s ...googleapi.Field) *SettingsDatasourcesGetCall {
11465 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11466 return c
11467 }
11468
11469
11470
11471
11472 func (c *SettingsDatasourcesGetCall) IfNoneMatch(entityTag string) *SettingsDatasourcesGetCall {
11473 c.ifNoneMatch_ = entityTag
11474 return c
11475 }
11476
11477
11478 func (c *SettingsDatasourcesGetCall) Context(ctx context.Context) *SettingsDatasourcesGetCall {
11479 c.ctx_ = ctx
11480 return c
11481 }
11482
11483
11484
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
11514
11515
11516
11517
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
11559
11560 func (r *SettingsDatasourcesService) List() *SettingsDatasourcesListCall {
11561 c := &SettingsDatasourcesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11562 return c
11563 }
11564
11565
11566
11567
11568 func (c *SettingsDatasourcesListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsDatasourcesListCall {
11569 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
11570 return c
11571 }
11572
11573
11574
11575
11576 func (c *SettingsDatasourcesListCall) PageSize(pageSize int64) *SettingsDatasourcesListCall {
11577 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11578 return c
11579 }
11580
11581
11582
11583 func (c *SettingsDatasourcesListCall) PageToken(pageToken string) *SettingsDatasourcesListCall {
11584 c.urlParams_.Set("pageToken", pageToken)
11585 return c
11586 }
11587
11588
11589
11590
11591 func (c *SettingsDatasourcesListCall) Fields(s ...googleapi.Field) *SettingsDatasourcesListCall {
11592 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11593 return c
11594 }
11595
11596
11597
11598
11599 func (c *SettingsDatasourcesListCall) IfNoneMatch(entityTag string) *SettingsDatasourcesListCall {
11600 c.ifNoneMatch_ = entityTag
11601 return c
11602 }
11603
11604
11605 func (c *SettingsDatasourcesListCall) Context(ctx context.Context) *SettingsDatasourcesListCall {
11606 c.ctx_ = ctx
11607 return c
11608 }
11609
11610
11611
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
11638
11639
11640
11641
11642
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
11676
11677
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
11706
11707
11708
11709
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
11718
11719
11720 func (c *SettingsDatasourcesPatchCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsDatasourcesPatchCall {
11721 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
11722 return c
11723 }
11724
11725
11726
11727
11728
11729
11730
11731
11732
11733
11734 func (c *SettingsDatasourcesPatchCall) UpdateMask(updateMask string) *SettingsDatasourcesPatchCall {
11735 c.urlParams_.Set("updateMask", updateMask)
11736 return c
11737 }
11738
11739
11740
11741
11742 func (c *SettingsDatasourcesPatchCall) Fields(s ...googleapi.Field) *SettingsDatasourcesPatchCall {
11743 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11744 return c
11745 }
11746
11747
11748 func (c *SettingsDatasourcesPatchCall) Context(ctx context.Context) *SettingsDatasourcesPatchCall {
11749 c.ctx_ = ctx
11750 return c
11751 }
11752
11753
11754
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
11785
11786
11787
11788
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
11831
11832
11833
11834
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
11843
11844
11845 func (c *SettingsDatasourcesUpdateCall) Fields(s ...googleapi.Field) *SettingsDatasourcesUpdateCall {
11846 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11847 return c
11848 }
11849
11850
11851 func (c *SettingsDatasourcesUpdateCall) Context(ctx context.Context) *SettingsDatasourcesUpdateCall {
11852 c.ctx_ = ctx
11853 return c
11854 }
11855
11856
11857
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
11888
11889
11890
11891
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
11933
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
11941
11942
11943 func (c *SettingsSearchapplicationsCreateCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsCreateCall {
11944 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11945 return c
11946 }
11947
11948
11949 func (c *SettingsSearchapplicationsCreateCall) Context(ctx context.Context) *SettingsSearchapplicationsCreateCall {
11950 c.ctx_ = ctx
11951 return c
11952 }
11953
11954
11955
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
11983
11984
11985
11986
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
12028
12029
12030
12031
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
12039
12040
12041 func (c *SettingsSearchapplicationsDeleteCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsSearchapplicationsDeleteCall {
12042 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
12043 return c
12044 }
12045
12046
12047
12048
12049 func (c *SettingsSearchapplicationsDeleteCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsDeleteCall {
12050 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12051 return c
12052 }
12053
12054
12055 func (c *SettingsSearchapplicationsDeleteCall) Context(ctx context.Context) *SettingsSearchapplicationsDeleteCall {
12056 c.ctx_ = ctx
12057 return c
12058 }
12059
12060
12061
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
12088
12089
12090
12091
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
12134
12135
12136
12137
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
12145
12146
12147 func (c *SettingsSearchapplicationsGetCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsSearchapplicationsGetCall {
12148 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
12149 return c
12150 }
12151
12152
12153
12154
12155 func (c *SettingsSearchapplicationsGetCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsGetCall {
12156 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12157 return c
12158 }
12159
12160
12161
12162
12163 func (c *SettingsSearchapplicationsGetCall) IfNoneMatch(entityTag string) *SettingsSearchapplicationsGetCall {
12164 c.ifNoneMatch_ = entityTag
12165 return c
12166 }
12167
12168
12169 func (c *SettingsSearchapplicationsGetCall) Context(ctx context.Context) *SettingsSearchapplicationsGetCall {
12170 c.ctx_ = ctx
12171 return c
12172 }
12173
12174
12175
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
12205
12206
12207
12208
12209
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
12251
12252 func (r *SettingsSearchapplicationsService) List() *SettingsSearchapplicationsListCall {
12253 c := &SettingsSearchapplicationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12254 return c
12255 }
12256
12257
12258
12259
12260 func (c *SettingsSearchapplicationsListCall) DebugOptionsEnableDebugging(debugOptionsEnableDebugging bool) *SettingsSearchapplicationsListCall {
12261 c.urlParams_.Set("debugOptions.enableDebugging", fmt.Sprint(debugOptionsEnableDebugging))
12262 return c
12263 }
12264
12265
12266
12267 func (c *SettingsSearchapplicationsListCall) PageSize(pageSize int64) *SettingsSearchapplicationsListCall {
12268 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12269 return c
12270 }
12271
12272
12273
12274 func (c *SettingsSearchapplicationsListCall) PageToken(pageToken string) *SettingsSearchapplicationsListCall {
12275 c.urlParams_.Set("pageToken", pageToken)
12276 return c
12277 }
12278
12279
12280
12281
12282 func (c *SettingsSearchapplicationsListCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsListCall {
12283 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12284 return c
12285 }
12286
12287
12288
12289
12290 func (c *SettingsSearchapplicationsListCall) IfNoneMatch(entityTag string) *SettingsSearchapplicationsListCall {
12291 c.ifNoneMatch_ = entityTag
12292 return c
12293 }
12294
12295
12296 func (c *SettingsSearchapplicationsListCall) Context(ctx context.Context) *SettingsSearchapplicationsListCall {
12297 c.ctx_ = ctx
12298 return c
12299 }
12300
12301
12302
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
12329
12330
12331
12332
12333
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
12367
12368
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
12397
12398
12399
12400
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
12409
12410
12411
12412
12413
12414
12415
12416
12417
12418 func (c *SettingsSearchapplicationsPatchCall) UpdateMask(updateMask string) *SettingsSearchapplicationsPatchCall {
12419 c.urlParams_.Set("updateMask", updateMask)
12420 return c
12421 }
12422
12423
12424
12425
12426 func (c *SettingsSearchapplicationsPatchCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsPatchCall {
12427 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12428 return c
12429 }
12430
12431
12432 func (c *SettingsSearchapplicationsPatchCall) Context(ctx context.Context) *SettingsSearchapplicationsPatchCall {
12433 c.ctx_ = ctx
12434 return c
12435 }
12436
12437
12438
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
12469
12470
12471
12472
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
12515
12516
12517
12518
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
12527
12528
12529 func (c *SettingsSearchapplicationsResetCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsResetCall {
12530 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12531 return c
12532 }
12533
12534
12535 func (c *SettingsSearchapplicationsResetCall) Context(ctx context.Context) *SettingsSearchapplicationsResetCall {
12536 c.ctx_ = ctx
12537 return c
12538 }
12539
12540
12541
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
12572
12573
12574
12575
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
12618
12619
12620
12621
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
12630
12631
12632
12633
12634
12635
12636
12637
12638
12639 func (c *SettingsSearchapplicationsUpdateCall) UpdateMask(updateMask string) *SettingsSearchapplicationsUpdateCall {
12640 c.urlParams_.Set("updateMask", updateMask)
12641 return c
12642 }
12643
12644
12645
12646
12647 func (c *SettingsSearchapplicationsUpdateCall) Fields(s ...googleapi.Field) *SettingsSearchapplicationsUpdateCall {
12648 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12649 return c
12650 }
12651
12652
12653 func (c *SettingsSearchapplicationsUpdateCall) Context(ctx context.Context) *SettingsSearchapplicationsUpdateCall {
12654 c.ctx_ = ctx
12655 return c
12656 }
12657
12658
12659
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
12690
12691
12692
12693
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
12735
12736
12737
12738 func (r *StatsService) GetIndex() *StatsGetIndexCall {
12739 c := &StatsGetIndexCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12740 return c
12741 }
12742
12743
12744
12745 func (c *StatsGetIndexCall) FromDateDay(fromDateDay int64) *StatsGetIndexCall {
12746 c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
12747 return c
12748 }
12749
12750
12751
12752 func (c *StatsGetIndexCall) FromDateMonth(fromDateMonth int64) *StatsGetIndexCall {
12753 c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
12754 return c
12755 }
12756
12757
12758
12759 func (c *StatsGetIndexCall) FromDateYear(fromDateYear int64) *StatsGetIndexCall {
12760 c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
12761 return c
12762 }
12763
12764
12765
12766 func (c *StatsGetIndexCall) ToDateDay(toDateDay int64) *StatsGetIndexCall {
12767 c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
12768 return c
12769 }
12770
12771
12772
12773 func (c *StatsGetIndexCall) ToDateMonth(toDateMonth int64) *StatsGetIndexCall {
12774 c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
12775 return c
12776 }
12777
12778
12779
12780 func (c *StatsGetIndexCall) ToDateYear(toDateYear int64) *StatsGetIndexCall {
12781 c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
12782 return c
12783 }
12784
12785
12786
12787
12788 func (c *StatsGetIndexCall) Fields(s ...googleapi.Field) *StatsGetIndexCall {
12789 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12790 return c
12791 }
12792
12793
12794
12795
12796 func (c *StatsGetIndexCall) IfNoneMatch(entityTag string) *StatsGetIndexCall {
12797 c.ifNoneMatch_ = entityTag
12798 return c
12799 }
12800
12801
12802 func (c *StatsGetIndexCall) Context(ctx context.Context) *StatsGetIndexCall {
12803 c.ctx_ = ctx
12804 return c
12805 }
12806
12807
12808
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
12835
12836
12837
12838
12839
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
12881
12882 func (r *StatsService) GetQuery() *StatsGetQueryCall {
12883 c := &StatsGetQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12884 return c
12885 }
12886
12887
12888
12889 func (c *StatsGetQueryCall) FromDateDay(fromDateDay int64) *StatsGetQueryCall {
12890 c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
12891 return c
12892 }
12893
12894
12895
12896 func (c *StatsGetQueryCall) FromDateMonth(fromDateMonth int64) *StatsGetQueryCall {
12897 c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
12898 return c
12899 }
12900
12901
12902
12903 func (c *StatsGetQueryCall) FromDateYear(fromDateYear int64) *StatsGetQueryCall {
12904 c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
12905 return c
12906 }
12907
12908
12909
12910 func (c *StatsGetQueryCall) ToDateDay(toDateDay int64) *StatsGetQueryCall {
12911 c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
12912 return c
12913 }
12914
12915
12916
12917 func (c *StatsGetQueryCall) ToDateMonth(toDateMonth int64) *StatsGetQueryCall {
12918 c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
12919 return c
12920 }
12921
12922
12923
12924 func (c *StatsGetQueryCall) ToDateYear(toDateYear int64) *StatsGetQueryCall {
12925 c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
12926 return c
12927 }
12928
12929
12930
12931
12932 func (c *StatsGetQueryCall) Fields(s ...googleapi.Field) *StatsGetQueryCall {
12933 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12934 return c
12935 }
12936
12937
12938
12939
12940 func (c *StatsGetQueryCall) IfNoneMatch(entityTag string) *StatsGetQueryCall {
12941 c.ifNoneMatch_ = entityTag
12942 return c
12943 }
12944
12945
12946 func (c *StatsGetQueryCall) Context(ctx context.Context) *StatsGetQueryCall {
12947 c.ctx_ = ctx
12948 return c
12949 }
12950
12951
12952
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
12979
12980
12981
12982
12983
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
13025
13026 func (r *StatsService) GetSearchapplication() *StatsGetSearchapplicationCall {
13027 c := &StatsGetSearchapplicationCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13028 return c
13029 }
13030
13031
13032
13033 func (c *StatsGetSearchapplicationCall) EndDateDay(endDateDay int64) *StatsGetSearchapplicationCall {
13034 c.urlParams_.Set("endDate.day", fmt.Sprint(endDateDay))
13035 return c
13036 }
13037
13038
13039
13040 func (c *StatsGetSearchapplicationCall) EndDateMonth(endDateMonth int64) *StatsGetSearchapplicationCall {
13041 c.urlParams_.Set("endDate.month", fmt.Sprint(endDateMonth))
13042 return c
13043 }
13044
13045
13046
13047 func (c *StatsGetSearchapplicationCall) EndDateYear(endDateYear int64) *StatsGetSearchapplicationCall {
13048 c.urlParams_.Set("endDate.year", fmt.Sprint(endDateYear))
13049 return c
13050 }
13051
13052
13053
13054 func (c *StatsGetSearchapplicationCall) StartDateDay(startDateDay int64) *StatsGetSearchapplicationCall {
13055 c.urlParams_.Set("startDate.day", fmt.Sprint(startDateDay))
13056 return c
13057 }
13058
13059
13060
13061 func (c *StatsGetSearchapplicationCall) StartDateMonth(startDateMonth int64) *StatsGetSearchapplicationCall {
13062 c.urlParams_.Set("startDate.month", fmt.Sprint(startDateMonth))
13063 return c
13064 }
13065
13066
13067
13068 func (c *StatsGetSearchapplicationCall) StartDateYear(startDateYear int64) *StatsGetSearchapplicationCall {
13069 c.urlParams_.Set("startDate.year", fmt.Sprint(startDateYear))
13070 return c
13071 }
13072
13073
13074
13075
13076 func (c *StatsGetSearchapplicationCall) Fields(s ...googleapi.Field) *StatsGetSearchapplicationCall {
13077 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13078 return c
13079 }
13080
13081
13082
13083
13084 func (c *StatsGetSearchapplicationCall) IfNoneMatch(entityTag string) *StatsGetSearchapplicationCall {
13085 c.ifNoneMatch_ = entityTag
13086 return c
13087 }
13088
13089
13090 func (c *StatsGetSearchapplicationCall) Context(ctx context.Context) *StatsGetSearchapplicationCall {
13091 c.ctx_ = ctx
13092 return c
13093 }
13094
13095
13096
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
13123
13124
13125
13126
13127
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
13169
13170
13171 func (r *StatsService) GetSession() *StatsGetSessionCall {
13172 c := &StatsGetSessionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13173 return c
13174 }
13175
13176
13177
13178 func (c *StatsGetSessionCall) FromDateDay(fromDateDay int64) *StatsGetSessionCall {
13179 c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
13180 return c
13181 }
13182
13183
13184
13185 func (c *StatsGetSessionCall) FromDateMonth(fromDateMonth int64) *StatsGetSessionCall {
13186 c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
13187 return c
13188 }
13189
13190
13191
13192 func (c *StatsGetSessionCall) FromDateYear(fromDateYear int64) *StatsGetSessionCall {
13193 c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
13194 return c
13195 }
13196
13197
13198
13199 func (c *StatsGetSessionCall) ToDateDay(toDateDay int64) *StatsGetSessionCall {
13200 c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
13201 return c
13202 }
13203
13204
13205
13206 func (c *StatsGetSessionCall) ToDateMonth(toDateMonth int64) *StatsGetSessionCall {
13207 c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
13208 return c
13209 }
13210
13211
13212
13213 func (c *StatsGetSessionCall) ToDateYear(toDateYear int64) *StatsGetSessionCall {
13214 c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
13215 return c
13216 }
13217
13218
13219
13220
13221 func (c *StatsGetSessionCall) Fields(s ...googleapi.Field) *StatsGetSessionCall {
13222 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13223 return c
13224 }
13225
13226
13227
13228
13229 func (c *StatsGetSessionCall) IfNoneMatch(entityTag string) *StatsGetSessionCall {
13230 c.ifNoneMatch_ = entityTag
13231 return c
13232 }
13233
13234
13235 func (c *StatsGetSessionCall) Context(ctx context.Context) *StatsGetSessionCall {
13236 c.ctx_ = ctx
13237 return c
13238 }
13239
13240
13241
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
13268
13269
13270
13271
13272
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
13314
13315 func (r *StatsService) GetUser() *StatsGetUserCall {
13316 c := &StatsGetUserCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13317 return c
13318 }
13319
13320
13321
13322 func (c *StatsGetUserCall) FromDateDay(fromDateDay int64) *StatsGetUserCall {
13323 c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
13324 return c
13325 }
13326
13327
13328
13329 func (c *StatsGetUserCall) FromDateMonth(fromDateMonth int64) *StatsGetUserCall {
13330 c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
13331 return c
13332 }
13333
13334
13335
13336 func (c *StatsGetUserCall) FromDateYear(fromDateYear int64) *StatsGetUserCall {
13337 c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
13338 return c
13339 }
13340
13341
13342
13343 func (c *StatsGetUserCall) ToDateDay(toDateDay int64) *StatsGetUserCall {
13344 c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
13345 return c
13346 }
13347
13348
13349
13350 func (c *StatsGetUserCall) ToDateMonth(toDateMonth int64) *StatsGetUserCall {
13351 c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
13352 return c
13353 }
13354
13355
13356
13357 func (c *StatsGetUserCall) ToDateYear(toDateYear int64) *StatsGetUserCall {
13358 c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
13359 return c
13360 }
13361
13362
13363
13364
13365 func (c *StatsGetUserCall) Fields(s ...googleapi.Field) *StatsGetUserCall {
13366 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13367 return c
13368 }
13369
13370
13371
13372
13373 func (c *StatsGetUserCall) IfNoneMatch(entityTag string) *StatsGetUserCall {
13374 c.ifNoneMatch_ = entityTag
13375 return c
13376 }
13377
13378
13379 func (c *StatsGetUserCall) Context(ctx context.Context) *StatsGetUserCall {
13380 c.ctx_ = ctx
13381 return c
13382 }
13383
13384
13385
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
13412
13413
13414
13415
13416
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
13459
13460
13461
13462
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
13470
13471 func (c *StatsIndexDatasourcesGetCall) FromDateDay(fromDateDay int64) *StatsIndexDatasourcesGetCall {
13472 c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
13473 return c
13474 }
13475
13476
13477
13478 func (c *StatsIndexDatasourcesGetCall) FromDateMonth(fromDateMonth int64) *StatsIndexDatasourcesGetCall {
13479 c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
13480 return c
13481 }
13482
13483
13484
13485 func (c *StatsIndexDatasourcesGetCall) FromDateYear(fromDateYear int64) *StatsIndexDatasourcesGetCall {
13486 c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
13487 return c
13488 }
13489
13490
13491
13492 func (c *StatsIndexDatasourcesGetCall) ToDateDay(toDateDay int64) *StatsIndexDatasourcesGetCall {
13493 c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
13494 return c
13495 }
13496
13497
13498
13499 func (c *StatsIndexDatasourcesGetCall) ToDateMonth(toDateMonth int64) *StatsIndexDatasourcesGetCall {
13500 c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
13501 return c
13502 }
13503
13504
13505
13506 func (c *StatsIndexDatasourcesGetCall) ToDateYear(toDateYear int64) *StatsIndexDatasourcesGetCall {
13507 c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
13508 return c
13509 }
13510
13511
13512
13513
13514 func (c *StatsIndexDatasourcesGetCall) Fields(s ...googleapi.Field) *StatsIndexDatasourcesGetCall {
13515 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13516 return c
13517 }
13518
13519
13520
13521
13522 func (c *StatsIndexDatasourcesGetCall) IfNoneMatch(entityTag string) *StatsIndexDatasourcesGetCall {
13523 c.ifNoneMatch_ = entityTag
13524 return c
13525 }
13526
13527
13528 func (c *StatsIndexDatasourcesGetCall) Context(ctx context.Context) *StatsIndexDatasourcesGetCall {
13529 c.ctx_ = ctx
13530 return c
13531 }
13532
13533
13534
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
13564
13565
13566
13567
13568
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
13611
13612
13613
13614
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
13622
13623 func (c *StatsQuerySearchapplicationsGetCall) FromDateDay(fromDateDay int64) *StatsQuerySearchapplicationsGetCall {
13624 c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
13625 return c
13626 }
13627
13628
13629
13630 func (c *StatsQuerySearchapplicationsGetCall) FromDateMonth(fromDateMonth int64) *StatsQuerySearchapplicationsGetCall {
13631 c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
13632 return c
13633 }
13634
13635
13636
13637 func (c *StatsQuerySearchapplicationsGetCall) FromDateYear(fromDateYear int64) *StatsQuerySearchapplicationsGetCall {
13638 c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
13639 return c
13640 }
13641
13642
13643
13644 func (c *StatsQuerySearchapplicationsGetCall) ToDateDay(toDateDay int64) *StatsQuerySearchapplicationsGetCall {
13645 c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
13646 return c
13647 }
13648
13649
13650
13651 func (c *StatsQuerySearchapplicationsGetCall) ToDateMonth(toDateMonth int64) *StatsQuerySearchapplicationsGetCall {
13652 c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
13653 return c
13654 }
13655
13656
13657
13658 func (c *StatsQuerySearchapplicationsGetCall) ToDateYear(toDateYear int64) *StatsQuerySearchapplicationsGetCall {
13659 c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
13660 return c
13661 }
13662
13663
13664
13665
13666 func (c *StatsQuerySearchapplicationsGetCall) Fields(s ...googleapi.Field) *StatsQuerySearchapplicationsGetCall {
13667 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13668 return c
13669 }
13670
13671
13672
13673
13674 func (c *StatsQuerySearchapplicationsGetCall) IfNoneMatch(entityTag string) *StatsQuerySearchapplicationsGetCall {
13675 c.ifNoneMatch_ = entityTag
13676 return c
13677 }
13678
13679
13680 func (c *StatsQuerySearchapplicationsGetCall) Context(ctx context.Context) *StatsQuerySearchapplicationsGetCall {
13681 c.ctx_ = ctx
13682 return c
13683 }
13684
13685
13686
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
13716
13717
13718
13719
13720
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
13763
13764
13765
13766
13767
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
13775
13776 func (c *StatsSessionSearchapplicationsGetCall) FromDateDay(fromDateDay int64) *StatsSessionSearchapplicationsGetCall {
13777 c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
13778 return c
13779 }
13780
13781
13782
13783 func (c *StatsSessionSearchapplicationsGetCall) FromDateMonth(fromDateMonth int64) *StatsSessionSearchapplicationsGetCall {
13784 c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
13785 return c
13786 }
13787
13788
13789
13790 func (c *StatsSessionSearchapplicationsGetCall) FromDateYear(fromDateYear int64) *StatsSessionSearchapplicationsGetCall {
13791 c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
13792 return c
13793 }
13794
13795
13796
13797 func (c *StatsSessionSearchapplicationsGetCall) ToDateDay(toDateDay int64) *StatsSessionSearchapplicationsGetCall {
13798 c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
13799 return c
13800 }
13801
13802
13803
13804 func (c *StatsSessionSearchapplicationsGetCall) ToDateMonth(toDateMonth int64) *StatsSessionSearchapplicationsGetCall {
13805 c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
13806 return c
13807 }
13808
13809
13810
13811 func (c *StatsSessionSearchapplicationsGetCall) ToDateYear(toDateYear int64) *StatsSessionSearchapplicationsGetCall {
13812 c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
13813 return c
13814 }
13815
13816
13817
13818
13819 func (c *StatsSessionSearchapplicationsGetCall) Fields(s ...googleapi.Field) *StatsSessionSearchapplicationsGetCall {
13820 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13821 return c
13822 }
13823
13824
13825
13826
13827 func (c *StatsSessionSearchapplicationsGetCall) IfNoneMatch(entityTag string) *StatsSessionSearchapplicationsGetCall {
13828 c.ifNoneMatch_ = entityTag
13829 return c
13830 }
13831
13832
13833 func (c *StatsSessionSearchapplicationsGetCall) Context(ctx context.Context) *StatsSessionSearchapplicationsGetCall {
13834 c.ctx_ = ctx
13835 return c
13836 }
13837
13838
13839
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
13869
13870
13871
13872
13873
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
13916
13917
13918
13919
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
13927
13928 func (c *StatsUserSearchapplicationsGetCall) FromDateDay(fromDateDay int64) *StatsUserSearchapplicationsGetCall {
13929 c.urlParams_.Set("fromDate.day", fmt.Sprint(fromDateDay))
13930 return c
13931 }
13932
13933
13934
13935 func (c *StatsUserSearchapplicationsGetCall) FromDateMonth(fromDateMonth int64) *StatsUserSearchapplicationsGetCall {
13936 c.urlParams_.Set("fromDate.month", fmt.Sprint(fromDateMonth))
13937 return c
13938 }
13939
13940
13941
13942 func (c *StatsUserSearchapplicationsGetCall) FromDateYear(fromDateYear int64) *StatsUserSearchapplicationsGetCall {
13943 c.urlParams_.Set("fromDate.year", fmt.Sprint(fromDateYear))
13944 return c
13945 }
13946
13947
13948
13949 func (c *StatsUserSearchapplicationsGetCall) ToDateDay(toDateDay int64) *StatsUserSearchapplicationsGetCall {
13950 c.urlParams_.Set("toDate.day", fmt.Sprint(toDateDay))
13951 return c
13952 }
13953
13954
13955
13956 func (c *StatsUserSearchapplicationsGetCall) ToDateMonth(toDateMonth int64) *StatsUserSearchapplicationsGetCall {
13957 c.urlParams_.Set("toDate.month", fmt.Sprint(toDateMonth))
13958 return c
13959 }
13960
13961
13962
13963 func (c *StatsUserSearchapplicationsGetCall) ToDateYear(toDateYear int64) *StatsUserSearchapplicationsGetCall {
13964 c.urlParams_.Set("toDate.year", fmt.Sprint(toDateYear))
13965 return c
13966 }
13967
13968
13969
13970
13971 func (c *StatsUserSearchapplicationsGetCall) Fields(s ...googleapi.Field) *StatsUserSearchapplicationsGetCall {
13972 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13973 return c
13974 }
13975
13976
13977
13978
13979 func (c *StatsUserSearchapplicationsGetCall) IfNoneMatch(entityTag string) *StatsUserSearchapplicationsGetCall {
13980 c.ifNoneMatch_ = entityTag
13981 return c
13982 }
13983
13984
13985 func (c *StatsUserSearchapplicationsGetCall) Context(ctx context.Context) *StatsUserSearchapplicationsGetCall {
13986 c.ctx_ = ctx
13987 return c
13988 }
13989
13990
13991
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
14021
14022
14023
14024
14025
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
14067
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
14075
14076
14077 func (c *V1InitializeCustomerCall) Fields(s ...googleapi.Field) *V1InitializeCustomerCall {
14078 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14079 return c
14080 }
14081
14082
14083 func (c *V1InitializeCustomerCall) Context(ctx context.Context) *V1InitializeCustomerCall {
14084 c.ctx_ = ctx
14085 return c
14086 }
14087
14088
14089
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
14117
14118
14119
14120
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