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 package discoveryengine
52
53 import (
54 "bytes"
55 "context"
56 "encoding/json"
57 "errors"
58 "fmt"
59 "io"
60 "net/http"
61 "net/url"
62 "strconv"
63 "strings"
64
65 googleapi "google.golang.org/api/googleapi"
66 internal "google.golang.org/api/internal"
67 gensupport "google.golang.org/api/internal/gensupport"
68 option "google.golang.org/api/option"
69 internaloption "google.golang.org/api/option/internaloption"
70 htransport "google.golang.org/api/transport/http"
71 )
72
73
74
75 var _ = bytes.NewBuffer
76 var _ = strconv.Itoa
77 var _ = fmt.Sprintf
78 var _ = json.NewDecoder
79 var _ = io.Copy
80 var _ = url.Parse
81 var _ = gensupport.MarshalJSON
82 var _ = googleapi.Version
83 var _ = errors.New
84 var _ = strings.Replace
85 var _ = context.Canceled
86 var _ = internaloption.WithDefaultEndpoint
87 var _ = internal.Version
88
89 const apiId = "discoveryengine:v1"
90 const apiName = "discoveryengine"
91 const apiVersion = "v1"
92 const basePath = "https://discoveryengine.googleapis.com/"
93 const basePathTemplate = "https://discoveryengine.UNIVERSE_DOMAIN/"
94 const mtlsBasePath = "https://discoveryengine.mtls.googleapis.com/"
95
96
97 const (
98
99
100 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
101 )
102
103
104 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
105 scopesOption := internaloption.WithDefaultScopes(
106 "https://www.googleapis.com/auth/cloud-platform",
107 )
108
109 opts = append([]option.ClientOption{scopesOption}, opts...)
110 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
111 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
112 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
113 opts = append(opts, internaloption.EnableNewAuthLibrary())
114 client, endpoint, err := htransport.NewClient(ctx, opts...)
115 if err != nil {
116 return nil, err
117 }
118 s, err := New(client)
119 if err != nil {
120 return nil, err
121 }
122 if endpoint != "" {
123 s.BasePath = endpoint
124 }
125 return s, nil
126 }
127
128
129
130
131
132
133 func New(client *http.Client) (*Service, error) {
134 if client == nil {
135 return nil, errors.New("client is nil")
136 }
137 s := &Service{client: client, BasePath: basePath}
138 s.Projects = NewProjectsService(s)
139 return s, nil
140 }
141
142 type Service struct {
143 client *http.Client
144 BasePath string
145 UserAgent string
146
147 Projects *ProjectsService
148 }
149
150 func (s *Service) userAgent() string {
151 if s.UserAgent == "" {
152 return googleapi.UserAgent
153 }
154 return googleapi.UserAgent + " " + s.UserAgent
155 }
156
157 func NewProjectsService(s *Service) *ProjectsService {
158 rs := &ProjectsService{s: s}
159 rs.Locations = NewProjectsLocationsService(s)
160 rs.Operations = NewProjectsOperationsService(s)
161 return rs
162 }
163
164 type ProjectsService struct {
165 s *Service
166
167 Locations *ProjectsLocationsService
168
169 Operations *ProjectsOperationsService
170 }
171
172 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
173 rs := &ProjectsLocationsService{s: s}
174 rs.Collections = NewProjectsLocationsCollectionsService(s)
175 rs.DataStores = NewProjectsLocationsDataStoresService(s)
176 rs.GroundingConfigs = NewProjectsLocationsGroundingConfigsService(s)
177 rs.Operations = NewProjectsLocationsOperationsService(s)
178 rs.UserEvents = NewProjectsLocationsUserEventsService(s)
179 return rs
180 }
181
182 type ProjectsLocationsService struct {
183 s *Service
184
185 Collections *ProjectsLocationsCollectionsService
186
187 DataStores *ProjectsLocationsDataStoresService
188
189 GroundingConfigs *ProjectsLocationsGroundingConfigsService
190
191 Operations *ProjectsLocationsOperationsService
192
193 UserEvents *ProjectsLocationsUserEventsService
194 }
195
196 func NewProjectsLocationsCollectionsService(s *Service) *ProjectsLocationsCollectionsService {
197 rs := &ProjectsLocationsCollectionsService{s: s}
198 rs.DataConnector = NewProjectsLocationsCollectionsDataConnectorService(s)
199 rs.DataStores = NewProjectsLocationsCollectionsDataStoresService(s)
200 rs.Engines = NewProjectsLocationsCollectionsEnginesService(s)
201 rs.Operations = NewProjectsLocationsCollectionsOperationsService(s)
202 return rs
203 }
204
205 type ProjectsLocationsCollectionsService struct {
206 s *Service
207
208 DataConnector *ProjectsLocationsCollectionsDataConnectorService
209
210 DataStores *ProjectsLocationsCollectionsDataStoresService
211
212 Engines *ProjectsLocationsCollectionsEnginesService
213
214 Operations *ProjectsLocationsCollectionsOperationsService
215 }
216
217 func NewProjectsLocationsCollectionsDataConnectorService(s *Service) *ProjectsLocationsCollectionsDataConnectorService {
218 rs := &ProjectsLocationsCollectionsDataConnectorService{s: s}
219 rs.Operations = NewProjectsLocationsCollectionsDataConnectorOperationsService(s)
220 return rs
221 }
222
223 type ProjectsLocationsCollectionsDataConnectorService struct {
224 s *Service
225
226 Operations *ProjectsLocationsCollectionsDataConnectorOperationsService
227 }
228
229 func NewProjectsLocationsCollectionsDataConnectorOperationsService(s *Service) *ProjectsLocationsCollectionsDataConnectorOperationsService {
230 rs := &ProjectsLocationsCollectionsDataConnectorOperationsService{s: s}
231 return rs
232 }
233
234 type ProjectsLocationsCollectionsDataConnectorOperationsService struct {
235 s *Service
236 }
237
238 func NewProjectsLocationsCollectionsDataStoresService(s *Service) *ProjectsLocationsCollectionsDataStoresService {
239 rs := &ProjectsLocationsCollectionsDataStoresService{s: s}
240 rs.Branches = NewProjectsLocationsCollectionsDataStoresBranchesService(s)
241 rs.Conversations = NewProjectsLocationsCollectionsDataStoresConversationsService(s)
242 rs.Models = NewProjectsLocationsCollectionsDataStoresModelsService(s)
243 rs.Operations = NewProjectsLocationsCollectionsDataStoresOperationsService(s)
244 rs.Schemas = NewProjectsLocationsCollectionsDataStoresSchemasService(s)
245 rs.ServingConfigs = NewProjectsLocationsCollectionsDataStoresServingConfigsService(s)
246 rs.SiteSearchEngine = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s)
247 rs.SuggestionDenyListEntries = NewProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService(s)
248 rs.UserEvents = NewProjectsLocationsCollectionsDataStoresUserEventsService(s)
249 return rs
250 }
251
252 type ProjectsLocationsCollectionsDataStoresService struct {
253 s *Service
254
255 Branches *ProjectsLocationsCollectionsDataStoresBranchesService
256
257 Conversations *ProjectsLocationsCollectionsDataStoresConversationsService
258
259 Models *ProjectsLocationsCollectionsDataStoresModelsService
260
261 Operations *ProjectsLocationsCollectionsDataStoresOperationsService
262
263 Schemas *ProjectsLocationsCollectionsDataStoresSchemasService
264
265 ServingConfigs *ProjectsLocationsCollectionsDataStoresServingConfigsService
266
267 SiteSearchEngine *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService
268
269 SuggestionDenyListEntries *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService
270
271 UserEvents *ProjectsLocationsCollectionsDataStoresUserEventsService
272 }
273
274 func NewProjectsLocationsCollectionsDataStoresBranchesService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesService {
275 rs := &ProjectsLocationsCollectionsDataStoresBranchesService{s: s}
276 rs.Documents = NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s)
277 rs.Operations = NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s)
278 return rs
279 }
280
281 type ProjectsLocationsCollectionsDataStoresBranchesService struct {
282 s *Service
283
284 Documents *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService
285
286 Operations *ProjectsLocationsCollectionsDataStoresBranchesOperationsService
287 }
288
289 func NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService {
290 rs := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsService{s: s}
291 return rs
292 }
293
294 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsService struct {
295 s *Service
296 }
297
298 func NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesOperationsService {
299 rs := &ProjectsLocationsCollectionsDataStoresBranchesOperationsService{s: s}
300 return rs
301 }
302
303 type ProjectsLocationsCollectionsDataStoresBranchesOperationsService struct {
304 s *Service
305 }
306
307 func NewProjectsLocationsCollectionsDataStoresConversationsService(s *Service) *ProjectsLocationsCollectionsDataStoresConversationsService {
308 rs := &ProjectsLocationsCollectionsDataStoresConversationsService{s: s}
309 return rs
310 }
311
312 type ProjectsLocationsCollectionsDataStoresConversationsService struct {
313 s *Service
314 }
315
316 func NewProjectsLocationsCollectionsDataStoresModelsService(s *Service) *ProjectsLocationsCollectionsDataStoresModelsService {
317 rs := &ProjectsLocationsCollectionsDataStoresModelsService{s: s}
318 rs.Operations = NewProjectsLocationsCollectionsDataStoresModelsOperationsService(s)
319 return rs
320 }
321
322 type ProjectsLocationsCollectionsDataStoresModelsService struct {
323 s *Service
324
325 Operations *ProjectsLocationsCollectionsDataStoresModelsOperationsService
326 }
327
328 func NewProjectsLocationsCollectionsDataStoresModelsOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresModelsOperationsService {
329 rs := &ProjectsLocationsCollectionsDataStoresModelsOperationsService{s: s}
330 return rs
331 }
332
333 type ProjectsLocationsCollectionsDataStoresModelsOperationsService struct {
334 s *Service
335 }
336
337 func NewProjectsLocationsCollectionsDataStoresOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresOperationsService {
338 rs := &ProjectsLocationsCollectionsDataStoresOperationsService{s: s}
339 return rs
340 }
341
342 type ProjectsLocationsCollectionsDataStoresOperationsService struct {
343 s *Service
344 }
345
346 func NewProjectsLocationsCollectionsDataStoresSchemasService(s *Service) *ProjectsLocationsCollectionsDataStoresSchemasService {
347 rs := &ProjectsLocationsCollectionsDataStoresSchemasService{s: s}
348 rs.Operations = NewProjectsLocationsCollectionsDataStoresSchemasOperationsService(s)
349 return rs
350 }
351
352 type ProjectsLocationsCollectionsDataStoresSchemasService struct {
353 s *Service
354
355 Operations *ProjectsLocationsCollectionsDataStoresSchemasOperationsService
356 }
357
358 func NewProjectsLocationsCollectionsDataStoresSchemasOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSchemasOperationsService {
359 rs := &ProjectsLocationsCollectionsDataStoresSchemasOperationsService{s: s}
360 return rs
361 }
362
363 type ProjectsLocationsCollectionsDataStoresSchemasOperationsService struct {
364 s *Service
365 }
366
367 func NewProjectsLocationsCollectionsDataStoresServingConfigsService(s *Service) *ProjectsLocationsCollectionsDataStoresServingConfigsService {
368 rs := &ProjectsLocationsCollectionsDataStoresServingConfigsService{s: s}
369 return rs
370 }
371
372 type ProjectsLocationsCollectionsDataStoresServingConfigsService struct {
373 s *Service
374 }
375
376 func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService {
377 rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineService{s: s}
378 rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s)
379 rs.TargetSites = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s)
380 return rs
381 }
382
383 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineService struct {
384 s *Service
385
386 Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService
387
388 TargetSites *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService
389 }
390
391 func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService {
392 rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService{s: s}
393 return rs
394 }
395
396 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService struct {
397 s *Service
398 }
399
400 func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService {
401 rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService{s: s}
402 rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s)
403 return rs
404 }
405
406 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService struct {
407 s *Service
408
409 Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService
410 }
411
412 func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService {
413 rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService{s: s}
414 return rs
415 }
416
417 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService struct {
418 s *Service
419 }
420
421 func NewProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService(s *Service) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService {
422 rs := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService{s: s}
423 return rs
424 }
425
426 type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService struct {
427 s *Service
428 }
429
430 func NewProjectsLocationsCollectionsDataStoresUserEventsService(s *Service) *ProjectsLocationsCollectionsDataStoresUserEventsService {
431 rs := &ProjectsLocationsCollectionsDataStoresUserEventsService{s: s}
432 return rs
433 }
434
435 type ProjectsLocationsCollectionsDataStoresUserEventsService struct {
436 s *Service
437 }
438
439 func NewProjectsLocationsCollectionsEnginesService(s *Service) *ProjectsLocationsCollectionsEnginesService {
440 rs := &ProjectsLocationsCollectionsEnginesService{s: s}
441 rs.Conversations = NewProjectsLocationsCollectionsEnginesConversationsService(s)
442 rs.Operations = NewProjectsLocationsCollectionsEnginesOperationsService(s)
443 rs.ServingConfigs = NewProjectsLocationsCollectionsEnginesServingConfigsService(s)
444 return rs
445 }
446
447 type ProjectsLocationsCollectionsEnginesService struct {
448 s *Service
449
450 Conversations *ProjectsLocationsCollectionsEnginesConversationsService
451
452 Operations *ProjectsLocationsCollectionsEnginesOperationsService
453
454 ServingConfigs *ProjectsLocationsCollectionsEnginesServingConfigsService
455 }
456
457 func NewProjectsLocationsCollectionsEnginesConversationsService(s *Service) *ProjectsLocationsCollectionsEnginesConversationsService {
458 rs := &ProjectsLocationsCollectionsEnginesConversationsService{s: s}
459 return rs
460 }
461
462 type ProjectsLocationsCollectionsEnginesConversationsService struct {
463 s *Service
464 }
465
466 func NewProjectsLocationsCollectionsEnginesOperationsService(s *Service) *ProjectsLocationsCollectionsEnginesOperationsService {
467 rs := &ProjectsLocationsCollectionsEnginesOperationsService{s: s}
468 return rs
469 }
470
471 type ProjectsLocationsCollectionsEnginesOperationsService struct {
472 s *Service
473 }
474
475 func NewProjectsLocationsCollectionsEnginesServingConfigsService(s *Service) *ProjectsLocationsCollectionsEnginesServingConfigsService {
476 rs := &ProjectsLocationsCollectionsEnginesServingConfigsService{s: s}
477 return rs
478 }
479
480 type ProjectsLocationsCollectionsEnginesServingConfigsService struct {
481 s *Service
482 }
483
484 func NewProjectsLocationsCollectionsOperationsService(s *Service) *ProjectsLocationsCollectionsOperationsService {
485 rs := &ProjectsLocationsCollectionsOperationsService{s: s}
486 return rs
487 }
488
489 type ProjectsLocationsCollectionsOperationsService struct {
490 s *Service
491 }
492
493 func NewProjectsLocationsDataStoresService(s *Service) *ProjectsLocationsDataStoresService {
494 rs := &ProjectsLocationsDataStoresService{s: s}
495 rs.Branches = NewProjectsLocationsDataStoresBranchesService(s)
496 rs.Conversations = NewProjectsLocationsDataStoresConversationsService(s)
497 rs.Models = NewProjectsLocationsDataStoresModelsService(s)
498 rs.Operations = NewProjectsLocationsDataStoresOperationsService(s)
499 rs.Schemas = NewProjectsLocationsDataStoresSchemasService(s)
500 rs.ServingConfigs = NewProjectsLocationsDataStoresServingConfigsService(s)
501 rs.SiteSearchEngine = NewProjectsLocationsDataStoresSiteSearchEngineService(s)
502 rs.SuggestionDenyListEntries = NewProjectsLocationsDataStoresSuggestionDenyListEntriesService(s)
503 rs.UserEvents = NewProjectsLocationsDataStoresUserEventsService(s)
504 return rs
505 }
506
507 type ProjectsLocationsDataStoresService struct {
508 s *Service
509
510 Branches *ProjectsLocationsDataStoresBranchesService
511
512 Conversations *ProjectsLocationsDataStoresConversationsService
513
514 Models *ProjectsLocationsDataStoresModelsService
515
516 Operations *ProjectsLocationsDataStoresOperationsService
517
518 Schemas *ProjectsLocationsDataStoresSchemasService
519
520 ServingConfigs *ProjectsLocationsDataStoresServingConfigsService
521
522 SiteSearchEngine *ProjectsLocationsDataStoresSiteSearchEngineService
523
524 SuggestionDenyListEntries *ProjectsLocationsDataStoresSuggestionDenyListEntriesService
525
526 UserEvents *ProjectsLocationsDataStoresUserEventsService
527 }
528
529 func NewProjectsLocationsDataStoresBranchesService(s *Service) *ProjectsLocationsDataStoresBranchesService {
530 rs := &ProjectsLocationsDataStoresBranchesService{s: s}
531 rs.Documents = NewProjectsLocationsDataStoresBranchesDocumentsService(s)
532 rs.Operations = NewProjectsLocationsDataStoresBranchesOperationsService(s)
533 return rs
534 }
535
536 type ProjectsLocationsDataStoresBranchesService struct {
537 s *Service
538
539 Documents *ProjectsLocationsDataStoresBranchesDocumentsService
540
541 Operations *ProjectsLocationsDataStoresBranchesOperationsService
542 }
543
544 func NewProjectsLocationsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsDataStoresBranchesDocumentsService {
545 rs := &ProjectsLocationsDataStoresBranchesDocumentsService{s: s}
546 return rs
547 }
548
549 type ProjectsLocationsDataStoresBranchesDocumentsService struct {
550 s *Service
551 }
552
553 func NewProjectsLocationsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsDataStoresBranchesOperationsService {
554 rs := &ProjectsLocationsDataStoresBranchesOperationsService{s: s}
555 return rs
556 }
557
558 type ProjectsLocationsDataStoresBranchesOperationsService struct {
559 s *Service
560 }
561
562 func NewProjectsLocationsDataStoresConversationsService(s *Service) *ProjectsLocationsDataStoresConversationsService {
563 rs := &ProjectsLocationsDataStoresConversationsService{s: s}
564 return rs
565 }
566
567 type ProjectsLocationsDataStoresConversationsService struct {
568 s *Service
569 }
570
571 func NewProjectsLocationsDataStoresModelsService(s *Service) *ProjectsLocationsDataStoresModelsService {
572 rs := &ProjectsLocationsDataStoresModelsService{s: s}
573 rs.Operations = NewProjectsLocationsDataStoresModelsOperationsService(s)
574 return rs
575 }
576
577 type ProjectsLocationsDataStoresModelsService struct {
578 s *Service
579
580 Operations *ProjectsLocationsDataStoresModelsOperationsService
581 }
582
583 func NewProjectsLocationsDataStoresModelsOperationsService(s *Service) *ProjectsLocationsDataStoresModelsOperationsService {
584 rs := &ProjectsLocationsDataStoresModelsOperationsService{s: s}
585 return rs
586 }
587
588 type ProjectsLocationsDataStoresModelsOperationsService struct {
589 s *Service
590 }
591
592 func NewProjectsLocationsDataStoresOperationsService(s *Service) *ProjectsLocationsDataStoresOperationsService {
593 rs := &ProjectsLocationsDataStoresOperationsService{s: s}
594 return rs
595 }
596
597 type ProjectsLocationsDataStoresOperationsService struct {
598 s *Service
599 }
600
601 func NewProjectsLocationsDataStoresSchemasService(s *Service) *ProjectsLocationsDataStoresSchemasService {
602 rs := &ProjectsLocationsDataStoresSchemasService{s: s}
603 return rs
604 }
605
606 type ProjectsLocationsDataStoresSchemasService struct {
607 s *Service
608 }
609
610 func NewProjectsLocationsDataStoresServingConfigsService(s *Service) *ProjectsLocationsDataStoresServingConfigsService {
611 rs := &ProjectsLocationsDataStoresServingConfigsService{s: s}
612 return rs
613 }
614
615 type ProjectsLocationsDataStoresServingConfigsService struct {
616 s *Service
617 }
618
619 func NewProjectsLocationsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineService {
620 rs := &ProjectsLocationsDataStoresSiteSearchEngineService{s: s}
621 rs.TargetSites = NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s)
622 return rs
623 }
624
625 type ProjectsLocationsDataStoresSiteSearchEngineService struct {
626 s *Service
627
628 TargetSites *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService
629 }
630
631 func NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService {
632 rs := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService{s: s}
633 return rs
634 }
635
636 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService struct {
637 s *Service
638 }
639
640 func NewProjectsLocationsDataStoresSuggestionDenyListEntriesService(s *Service) *ProjectsLocationsDataStoresSuggestionDenyListEntriesService {
641 rs := &ProjectsLocationsDataStoresSuggestionDenyListEntriesService{s: s}
642 return rs
643 }
644
645 type ProjectsLocationsDataStoresSuggestionDenyListEntriesService struct {
646 s *Service
647 }
648
649 func NewProjectsLocationsDataStoresUserEventsService(s *Service) *ProjectsLocationsDataStoresUserEventsService {
650 rs := &ProjectsLocationsDataStoresUserEventsService{s: s}
651 return rs
652 }
653
654 type ProjectsLocationsDataStoresUserEventsService struct {
655 s *Service
656 }
657
658 func NewProjectsLocationsGroundingConfigsService(s *Service) *ProjectsLocationsGroundingConfigsService {
659 rs := &ProjectsLocationsGroundingConfigsService{s: s}
660 return rs
661 }
662
663 type ProjectsLocationsGroundingConfigsService struct {
664 s *Service
665 }
666
667 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
668 rs := &ProjectsLocationsOperationsService{s: s}
669 return rs
670 }
671
672 type ProjectsLocationsOperationsService struct {
673 s *Service
674 }
675
676 func NewProjectsLocationsUserEventsService(s *Service) *ProjectsLocationsUserEventsService {
677 rs := &ProjectsLocationsUserEventsService{s: s}
678 return rs
679 }
680
681 type ProjectsLocationsUserEventsService struct {
682 s *Service
683 }
684
685 func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
686 rs := &ProjectsOperationsService{s: s}
687 return rs
688 }
689
690 type ProjectsOperationsService struct {
691 s *Service
692 }
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711 type GoogleApiHttpBody struct {
712
713
714 ContentType string `json:"contentType,omitempty"`
715
716 Data string `json:"data,omitempty"`
717
718
719 Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
720
721
722 googleapi.ServerResponse `json:"-"`
723
724
725
726
727
728 ForceSendFields []string `json:"-"`
729
730
731
732
733 NullFields []string `json:"-"`
734 }
735
736 func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
737 type NoMethod GoogleApiHttpBody
738 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
739 }
740
741
742
743 type GoogleCloudDiscoveryengineLoggingErrorContext struct {
744
745
746 HttpRequest *GoogleCloudDiscoveryengineLoggingHttpRequestContext `json:"httpRequest,omitempty"`
747
748
749 ReportLocation *GoogleCloudDiscoveryengineLoggingSourceLocation `json:"reportLocation,omitempty"`
750
751
752
753
754
755 ForceSendFields []string `json:"-"`
756
757
758
759
760 NullFields []string `json:"-"`
761 }
762
763 func (s *GoogleCloudDiscoveryengineLoggingErrorContext) MarshalJSON() ([]byte, error) {
764 type NoMethod GoogleCloudDiscoveryengineLoggingErrorContext
765 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
766 }
767
768
769
770 type GoogleCloudDiscoveryengineLoggingErrorLog struct {
771
772 Context *GoogleCloudDiscoveryengineLoggingErrorContext `json:"context,omitempty"`
773
774 ImportPayload *GoogleCloudDiscoveryengineLoggingImportErrorContext `json:"importPayload,omitempty"`
775
776 Message string `json:"message,omitempty"`
777
778
779
780
781
782
783 RequestPayload googleapi.RawMessage `json:"requestPayload,omitempty"`
784
785
786
787
788
789
790
791 ResponsePayload googleapi.RawMessage `json:"responsePayload,omitempty"`
792
793 ServiceContext *GoogleCloudDiscoveryengineLoggingServiceContext `json:"serviceContext,omitempty"`
794
795 Status *GoogleRpcStatus `json:"status,omitempty"`
796
797
798
799
800
801 ForceSendFields []string `json:"-"`
802
803
804
805
806 NullFields []string `json:"-"`
807 }
808
809 func (s *GoogleCloudDiscoveryengineLoggingErrorLog) MarshalJSON() ([]byte, error) {
810 type NoMethod GoogleCloudDiscoveryengineLoggingErrorLog
811 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
812 }
813
814
815
816 type GoogleCloudDiscoveryengineLoggingHttpRequestContext struct {
817
818 ResponseStatusCode int64 `json:"responseStatusCode,omitempty"`
819
820
821
822
823
824 ForceSendFields []string `json:"-"`
825
826
827
828
829 NullFields []string `json:"-"`
830 }
831
832 func (s *GoogleCloudDiscoveryengineLoggingHttpRequestContext) MarshalJSON() ([]byte, error) {
833 type NoMethod GoogleCloudDiscoveryengineLoggingHttpRequestContext
834 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
835 }
836
837
838
839
840
841 type GoogleCloudDiscoveryengineLoggingImportErrorContext struct {
842
843
844 Document string `json:"document,omitempty"`
845
846
847 GcsPath string `json:"gcsPath,omitempty"`
848
849
850 LineNumber string `json:"lineNumber,omitempty"`
851
852 Operation string `json:"operation,omitempty"`
853
854
855 UserEvent string `json:"userEvent,omitempty"`
856
857
858
859
860
861 ForceSendFields []string `json:"-"`
862
863
864
865
866 NullFields []string `json:"-"`
867 }
868
869 func (s *GoogleCloudDiscoveryengineLoggingImportErrorContext) MarshalJSON() ([]byte, error) {
870 type NoMethod GoogleCloudDiscoveryengineLoggingImportErrorContext
871 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
872 }
873
874
875
876 type GoogleCloudDiscoveryengineLoggingServiceContext struct {
877
878
879 Service string `json:"service,omitempty"`
880
881
882
883
884
885 ForceSendFields []string `json:"-"`
886
887
888
889
890 NullFields []string `json:"-"`
891 }
892
893 func (s *GoogleCloudDiscoveryengineLoggingServiceContext) MarshalJSON() ([]byte, error) {
894 type NoMethod GoogleCloudDiscoveryengineLoggingServiceContext
895 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
896 }
897
898
899
900 type GoogleCloudDiscoveryengineLoggingSourceLocation struct {
901
902
903 FunctionName string `json:"functionName,omitempty"`
904
905
906
907
908
909 ForceSendFields []string `json:"-"`
910
911
912
913
914 NullFields []string `json:"-"`
915 }
916
917 func (s *GoogleCloudDiscoveryengineLoggingSourceLocation) MarshalJSON() ([]byte, error) {
918 type NoMethod GoogleCloudDiscoveryengineLoggingSourceLocation
919 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
920 }
921
922
923
924
925
926 type GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata struct {
927
928 CreateTime string `json:"createTime,omitempty"`
929
930
931 UpdateTime string `json:"updateTime,omitempty"`
932
933
934
935
936
937 ForceSendFields []string `json:"-"`
938
939
940
941
942 NullFields []string `json:"-"`
943 }
944
945 func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
946 type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata
947 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
948 }
949
950
951
952 type GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest struct {
953
954
955 Requests []*GoogleCloudDiscoveryengineV1CreateTargetSiteRequest `json:"requests,omitempty"`
956
957
958
959
960
961 ForceSendFields []string `json:"-"`
962
963
964
965
966 NullFields []string `json:"-"`
967 }
968
969 func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest) MarshalJSON() ([]byte, error) {
970 type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest
971 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
972 }
973
974
975
976 type GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse struct {
977
978 TargetSites []*GoogleCloudDiscoveryengineV1TargetSite `json:"targetSites,omitempty"`
979
980
981
982
983
984 ForceSendFields []string `json:"-"`
985
986
987
988
989 NullFields []string `json:"-"`
990 }
991
992 func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
993 type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse
994 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
995 }
996
997
998
999 type GoogleCloudDiscoveryengineV1BatchVerifyTargetSitesRequest struct {
1000 }
1001
1002
1003
1004 type GoogleCloudDiscoveryengineV1BigQuerySource struct {
1005
1006
1007
1008
1009
1010
1011
1012
1013 DataSchema string `json:"dataSchema,omitempty"`
1014
1015
1016 DatasetId string `json:"datasetId,omitempty"`
1017
1018
1019
1020 GcsStagingDir string `json:"gcsStagingDir,omitempty"`
1021
1022
1023 PartitionDate *GoogleTypeDate `json:"partitionDate,omitempty"`
1024
1025
1026
1027 ProjectId string `json:"projectId,omitempty"`
1028
1029
1030 TableId string `json:"tableId,omitempty"`
1031
1032
1033
1034
1035
1036 ForceSendFields []string `json:"-"`
1037
1038
1039
1040
1041 NullFields []string `json:"-"`
1042 }
1043
1044 func (s *GoogleCloudDiscoveryengineV1BigQuerySource) MarshalJSON() ([]byte, error) {
1045 type NoMethod GoogleCloudDiscoveryengineV1BigQuerySource
1046 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1047 }
1048
1049
1050
1051 type GoogleCloudDiscoveryengineV1BigtableOptions struct {
1052
1053
1054
1055 Families map[string]GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumnFamily `json:"families,omitempty"`
1056
1057
1058 KeyFieldName string `json:"keyFieldName,omitempty"`
1059
1060
1061
1062
1063
1064 ForceSendFields []string `json:"-"`
1065
1066
1067
1068
1069 NullFields []string `json:"-"`
1070 }
1071
1072 func (s *GoogleCloudDiscoveryengineV1BigtableOptions) MarshalJSON() ([]byte, error) {
1073 type NoMethod GoogleCloudDiscoveryengineV1BigtableOptions
1074 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1075 }
1076
1077
1078
1079 type GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumn struct {
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091 Encoding string `json:"encoding,omitempty"`
1092
1093
1094
1095
1096 FieldName string `json:"fieldName,omitempty"`
1097
1098
1099 Qualifier string `json:"qualifier,omitempty"`
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113 Type string `json:"type,omitempty"`
1114
1115
1116
1117
1118
1119 ForceSendFields []string `json:"-"`
1120
1121
1122
1123
1124 NullFields []string `json:"-"`
1125 }
1126
1127 func (s *GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumn) MarshalJSON() ([]byte, error) {
1128 type NoMethod GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumn
1129 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1130 }
1131
1132
1133
1134 type GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumnFamily struct {
1135
1136
1137 Columns []*GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumn `json:"columns,omitempty"`
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149 Encoding string `json:"encoding,omitempty"`
1150
1151
1152
1153
1154 FieldName string `json:"fieldName,omitempty"`
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168 Type string `json:"type,omitempty"`
1169
1170
1171
1172
1173
1174 ForceSendFields []string `json:"-"`
1175
1176
1177
1178
1179 NullFields []string `json:"-"`
1180 }
1181
1182 func (s *GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumnFamily) MarshalJSON() ([]byte, error) {
1183 type NoMethod GoogleCloudDiscoveryengineV1BigtableOptionsBigtableColumnFamily
1184 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1185 }
1186
1187
1188
1189 type GoogleCloudDiscoveryengineV1BigtableSource struct {
1190
1191
1192
1193 BigtableOptions *GoogleCloudDiscoveryengineV1BigtableOptions `json:"bigtableOptions,omitempty"`
1194
1195
1196 InstanceId string `json:"instanceId,omitempty"`
1197
1198
1199
1200 ProjectId string `json:"projectId,omitempty"`
1201
1202
1203 TableId string `json:"tableId,omitempty"`
1204
1205
1206
1207
1208
1209 ForceSendFields []string `json:"-"`
1210
1211
1212
1213
1214 NullFields []string `json:"-"`
1215 }
1216
1217 func (s *GoogleCloudDiscoveryengineV1BigtableSource) MarshalJSON() ([]byte, error) {
1218 type NoMethod GoogleCloudDiscoveryengineV1BigtableSource
1219 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1220 }
1221
1222
1223
1224 type GoogleCloudDiscoveryengineV1CheckGroundingRequest struct {
1225
1226
1227 AnswerCandidate string `json:"answerCandidate,omitempty"`
1228
1229 Facts []*GoogleCloudDiscoveryengineV1GroundingFact `json:"facts,omitempty"`
1230
1231 GroundingSpec *GoogleCloudDiscoveryengineV1CheckGroundingSpec `json:"groundingSpec,omitempty"`
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244 UserLabels map[string]string `json:"userLabels,omitempty"`
1245
1246
1247
1248
1249
1250 ForceSendFields []string `json:"-"`
1251
1252
1253
1254
1255 NullFields []string `json:"-"`
1256 }
1257
1258 func (s *GoogleCloudDiscoveryengineV1CheckGroundingRequest) MarshalJSON() ([]byte, error) {
1259 type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingRequest
1260 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1261 }
1262
1263
1264
1265 type GoogleCloudDiscoveryengineV1CheckGroundingResponse struct {
1266
1267
1268 CitedChunks []*GoogleCloudDiscoveryengineV1FactChunk `json:"citedChunks,omitempty"`
1269
1270
1271 Claims []*GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim `json:"claims,omitempty"`
1272
1273
1274
1275 SupportScore float64 `json:"supportScore,omitempty"`
1276
1277
1278 googleapi.ServerResponse `json:"-"`
1279
1280
1281
1282
1283
1284 ForceSendFields []string `json:"-"`
1285
1286
1287
1288
1289 NullFields []string `json:"-"`
1290 }
1291
1292 func (s *GoogleCloudDiscoveryengineV1CheckGroundingResponse) MarshalJSON() ([]byte, error) {
1293 type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingResponse
1294 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1295 }
1296
1297 func (s *GoogleCloudDiscoveryengineV1CheckGroundingResponse) UnmarshalJSON(data []byte) error {
1298 type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingResponse
1299 var s1 struct {
1300 SupportScore gensupport.JSONFloat64 `json:"supportScore"`
1301 *NoMethod
1302 }
1303 s1.NoMethod = (*NoMethod)(s)
1304 if err := json.Unmarshal(data, &s1); err != nil {
1305 return err
1306 }
1307 s.SupportScore = float64(s1.SupportScore)
1308 return nil
1309 }
1310
1311
1312
1313 type GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim struct {
1314
1315
1316
1317
1318
1319 CitationIndices []int64 `json:"citationIndices,omitempty"`
1320
1321
1322 ClaimText string `json:"claimText,omitempty"`
1323
1324
1325 EndPos int64 `json:"endPos,omitempty"`
1326
1327
1328
1329
1330
1331 GroundingCheckRequired bool `json:"groundingCheckRequired,omitempty"`
1332
1333
1334 StartPos int64 `json:"startPos,omitempty"`
1335
1336
1337
1338
1339
1340 ForceSendFields []string `json:"-"`
1341
1342
1343
1344
1345 NullFields []string `json:"-"`
1346 }
1347
1348 func (s *GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim) MarshalJSON() ([]byte, error) {
1349 type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingResponseClaim
1350 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1351 }
1352
1353
1354
1355 type GoogleCloudDiscoveryengineV1CheckGroundingSpec struct {
1356
1357
1358
1359
1360
1361 CitationThreshold float64 `json:"citationThreshold,omitempty"`
1362
1363
1364
1365
1366
1367 ForceSendFields []string `json:"-"`
1368
1369
1370
1371
1372 NullFields []string `json:"-"`
1373 }
1374
1375 func (s *GoogleCloudDiscoveryengineV1CheckGroundingSpec) MarshalJSON() ([]byte, error) {
1376 type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingSpec
1377 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1378 }
1379
1380 func (s *GoogleCloudDiscoveryengineV1CheckGroundingSpec) UnmarshalJSON(data []byte) error {
1381 type NoMethod GoogleCloudDiscoveryengineV1CheckGroundingSpec
1382 var s1 struct {
1383 CitationThreshold gensupport.JSONFloat64 `json:"citationThreshold"`
1384 *NoMethod
1385 }
1386 s1.NoMethod = (*NoMethod)(s)
1387 if err := json.Unmarshal(data, &s1); err != nil {
1388 return err
1389 }
1390 s.CitationThreshold = float64(s1.CitationThreshold)
1391 return nil
1392 }
1393
1394
1395
1396 type GoogleCloudDiscoveryengineV1CloudSqlSource struct {
1397
1398
1399 DatabaseId string `json:"databaseId,omitempty"`
1400
1401
1402
1403
1404
1405 GcsStagingDir string `json:"gcsStagingDir,omitempty"`
1406
1407
1408 InstanceId string `json:"instanceId,omitempty"`
1409
1410
1411
1412 Offload bool `json:"offload,omitempty"`
1413
1414
1415
1416 ProjectId string `json:"projectId,omitempty"`
1417
1418
1419 TableId string `json:"tableId,omitempty"`
1420
1421
1422
1423
1424
1425 ForceSendFields []string `json:"-"`
1426
1427
1428
1429
1430 NullFields []string `json:"-"`
1431 }
1432
1433 func (s *GoogleCloudDiscoveryengineV1CloudSqlSource) MarshalJSON() ([]byte, error) {
1434 type NoMethod GoogleCloudDiscoveryengineV1CloudSqlSource
1435 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1436 }
1437
1438
1439
1440 type GoogleCloudDiscoveryengineV1CompleteQueryResponse struct {
1441
1442
1443 QuerySuggestions []*GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion `json:"querySuggestions,omitempty"`
1444
1445
1446
1447
1448 TailMatchTriggered bool `json:"tailMatchTriggered,omitempty"`
1449
1450
1451 googleapi.ServerResponse `json:"-"`
1452
1453
1454
1455
1456
1457 ForceSendFields []string `json:"-"`
1458
1459
1460
1461
1462 NullFields []string `json:"-"`
1463 }
1464
1465 func (s *GoogleCloudDiscoveryengineV1CompleteQueryResponse) MarshalJSON() ([]byte, error) {
1466 type NoMethod GoogleCloudDiscoveryengineV1CompleteQueryResponse
1467 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1468 }
1469
1470
1471
1472 type GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion struct {
1473
1474
1475
1476 CompletableFieldPaths []string `json:"completableFieldPaths,omitempty"`
1477
1478 Suggestion string `json:"suggestion,omitempty"`
1479
1480
1481
1482
1483
1484 ForceSendFields []string `json:"-"`
1485
1486
1487
1488
1489 NullFields []string `json:"-"`
1490 }
1491
1492 func (s *GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion) MarshalJSON() ([]byte, error) {
1493 type NoMethod GoogleCloudDiscoveryengineV1CompleteQueryResponseQuerySuggestion
1494 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1495 }
1496
1497
1498
1499 type GoogleCloudDiscoveryengineV1CompletionInfo struct {
1500
1501
1502 SelectedPosition int64 `json:"selectedPosition,omitempty"`
1503
1504
1505 SelectedSuggestion string `json:"selectedSuggestion,omitempty"`
1506
1507
1508
1509
1510
1511 ForceSendFields []string `json:"-"`
1512
1513
1514
1515
1516 NullFields []string `json:"-"`
1517 }
1518
1519 func (s *GoogleCloudDiscoveryengineV1CompletionInfo) MarshalJSON() ([]byte, error) {
1520 type NoMethod GoogleCloudDiscoveryengineV1CompletionInfo
1521 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1522 }
1523
1524
1525
1526 type GoogleCloudDiscoveryengineV1Conversation struct {
1527
1528 EndTime string `json:"endTime,omitempty"`
1529
1530 Messages []*GoogleCloudDiscoveryengineV1ConversationMessage `json:"messages,omitempty"`
1531
1532
1533
1534
1535
1536 Name string `json:"name,omitempty"`
1537
1538 StartTime string `json:"startTime,omitempty"`
1539
1540
1541
1542
1543
1544
1545 State string `json:"state,omitempty"`
1546
1547 UserPseudoId string `json:"userPseudoId,omitempty"`
1548
1549
1550 googleapi.ServerResponse `json:"-"`
1551
1552
1553
1554
1555
1556 ForceSendFields []string `json:"-"`
1557
1558
1559
1560
1561 NullFields []string `json:"-"`
1562 }
1563
1564 func (s *GoogleCloudDiscoveryengineV1Conversation) MarshalJSON() ([]byte, error) {
1565 type NoMethod GoogleCloudDiscoveryengineV1Conversation
1566 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1567 }
1568
1569
1570
1571 type GoogleCloudDiscoveryengineV1ConversationContext struct {
1572
1573
1574 ActiveDocument string `json:"activeDocument,omitempty"`
1575
1576
1577 ContextDocuments []string `json:"contextDocuments,omitempty"`
1578
1579
1580
1581
1582
1583 ForceSendFields []string `json:"-"`
1584
1585
1586
1587
1588 NullFields []string `json:"-"`
1589 }
1590
1591 func (s *GoogleCloudDiscoveryengineV1ConversationContext) MarshalJSON() ([]byte, error) {
1592 type NoMethod GoogleCloudDiscoveryengineV1ConversationContext
1593 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1594 }
1595
1596
1597
1598 type GoogleCloudDiscoveryengineV1ConversationMessage struct {
1599
1600 CreateTime string `json:"createTime,omitempty"`
1601
1602 Reply *GoogleCloudDiscoveryengineV1Reply `json:"reply,omitempty"`
1603
1604 UserInput *GoogleCloudDiscoveryengineV1TextInput `json:"userInput,omitempty"`
1605
1606
1607
1608
1609
1610 ForceSendFields []string `json:"-"`
1611
1612
1613
1614
1615 NullFields []string `json:"-"`
1616 }
1617
1618 func (s *GoogleCloudDiscoveryengineV1ConversationMessage) MarshalJSON() ([]byte, error) {
1619 type NoMethod GoogleCloudDiscoveryengineV1ConversationMessage
1620 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1621 }
1622
1623
1624
1625 type GoogleCloudDiscoveryengineV1ConverseConversationRequest struct {
1626
1627
1628
1629 BoostSpec *GoogleCloudDiscoveryengineV1SearchRequestBoostSpec `json:"boostSpec,omitempty"`
1630
1631
1632
1633 Conversation *GoogleCloudDiscoveryengineV1Conversation `json:"conversation,omitempty"`
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646 Filter string `json:"filter,omitempty"`
1647
1648 Query *GoogleCloudDiscoveryengineV1TextInput `json:"query,omitempty"`
1649
1650 SafeSearch bool `json:"safeSearch,omitempty"`
1651
1652
1653
1654
1655 ServingConfig string `json:"servingConfig,omitempty"`
1656
1657
1658 SummarySpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec `json:"summarySpec,omitempty"`
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671 UserLabels map[string]string `json:"userLabels,omitempty"`
1672
1673
1674
1675
1676
1677 ForceSendFields []string `json:"-"`
1678
1679
1680
1681
1682 NullFields []string `json:"-"`
1683 }
1684
1685 func (s *GoogleCloudDiscoveryengineV1ConverseConversationRequest) MarshalJSON() ([]byte, error) {
1686 type NoMethod GoogleCloudDiscoveryengineV1ConverseConversationRequest
1687 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1688 }
1689
1690
1691
1692 type GoogleCloudDiscoveryengineV1ConverseConversationResponse struct {
1693
1694 Conversation *GoogleCloudDiscoveryengineV1Conversation `json:"conversation,omitempty"`
1695
1696 Reply *GoogleCloudDiscoveryengineV1Reply `json:"reply,omitempty"`
1697
1698 SearchResults []*GoogleCloudDiscoveryengineV1SearchResponseSearchResult `json:"searchResults,omitempty"`
1699
1700
1701 googleapi.ServerResponse `json:"-"`
1702
1703
1704
1705
1706
1707 ForceSendFields []string `json:"-"`
1708
1709
1710
1711
1712 NullFields []string `json:"-"`
1713 }
1714
1715 func (s *GoogleCloudDiscoveryengineV1ConverseConversationResponse) MarshalJSON() ([]byte, error) {
1716 type NoMethod GoogleCloudDiscoveryengineV1ConverseConversationResponse
1717 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1718 }
1719
1720
1721
1722
1723 type GoogleCloudDiscoveryengineV1CreateDataStoreMetadata struct {
1724
1725 CreateTime string `json:"createTime,omitempty"`
1726
1727
1728 UpdateTime string `json:"updateTime,omitempty"`
1729
1730
1731
1732
1733
1734 ForceSendFields []string `json:"-"`
1735
1736
1737
1738
1739 NullFields []string `json:"-"`
1740 }
1741
1742 func (s *GoogleCloudDiscoveryengineV1CreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
1743 type NoMethod GoogleCloudDiscoveryengineV1CreateDataStoreMetadata
1744 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1745 }
1746
1747
1748
1749
1750 type GoogleCloudDiscoveryengineV1CreateEngineMetadata struct {
1751
1752 CreateTime string `json:"createTime,omitempty"`
1753
1754
1755 UpdateTime string `json:"updateTime,omitempty"`
1756
1757
1758
1759
1760
1761 ForceSendFields []string `json:"-"`
1762
1763
1764
1765
1766 NullFields []string `json:"-"`
1767 }
1768
1769 func (s *GoogleCloudDiscoveryengineV1CreateEngineMetadata) MarshalJSON() ([]byte, error) {
1770 type NoMethod GoogleCloudDiscoveryengineV1CreateEngineMetadata
1771 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1772 }
1773
1774
1775
1776 type GoogleCloudDiscoveryengineV1CreateSchemaMetadata struct {
1777
1778 CreateTime string `json:"createTime,omitempty"`
1779
1780
1781 UpdateTime string `json:"updateTime,omitempty"`
1782
1783
1784
1785
1786
1787 ForceSendFields []string `json:"-"`
1788
1789
1790
1791
1792 NullFields []string `json:"-"`
1793 }
1794
1795 func (s *GoogleCloudDiscoveryengineV1CreateSchemaMetadata) MarshalJSON() ([]byte, error) {
1796 type NoMethod GoogleCloudDiscoveryengineV1CreateSchemaMetadata
1797 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1798 }
1799
1800
1801
1802
1803 type GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata struct {
1804
1805 CreateTime string `json:"createTime,omitempty"`
1806
1807
1808 UpdateTime string `json:"updateTime,omitempty"`
1809
1810
1811
1812
1813
1814 ForceSendFields []string `json:"-"`
1815
1816
1817
1818
1819 NullFields []string `json:"-"`
1820 }
1821
1822 func (s *GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
1823 type NoMethod GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata
1824 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1825 }
1826
1827
1828
1829 type GoogleCloudDiscoveryengineV1CreateTargetSiteRequest struct {
1830
1831
1832
1833 Parent string `json:"parent,omitempty"`
1834
1835 TargetSite *GoogleCloudDiscoveryengineV1TargetSite `json:"targetSite,omitempty"`
1836
1837
1838
1839
1840
1841 ForceSendFields []string `json:"-"`
1842
1843
1844
1845
1846 NullFields []string `json:"-"`
1847 }
1848
1849 func (s *GoogleCloudDiscoveryengineV1CreateTargetSiteRequest) MarshalJSON() ([]byte, error) {
1850 type NoMethod GoogleCloudDiscoveryengineV1CreateTargetSiteRequest
1851 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1852 }
1853
1854
1855
1856 type GoogleCloudDiscoveryengineV1CustomAttribute struct {
1857
1858
1859
1860
1861 Numbers []float64 `json:"numbers,omitempty"`
1862
1863
1864
1865
1866
1867 Text []string `json:"text,omitempty"`
1868
1869
1870
1871
1872
1873 ForceSendFields []string `json:"-"`
1874
1875
1876
1877
1878 NullFields []string `json:"-"`
1879 }
1880
1881 func (s *GoogleCloudDiscoveryengineV1CustomAttribute) MarshalJSON() ([]byte, error) {
1882 type NoMethod GoogleCloudDiscoveryengineV1CustomAttribute
1883 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1884 }
1885
1886 func (s *GoogleCloudDiscoveryengineV1CustomAttribute) UnmarshalJSON(data []byte) error {
1887 type NoMethod GoogleCloudDiscoveryengineV1CustomAttribute
1888 var s1 struct {
1889 Numbers []gensupport.JSONFloat64 `json:"numbers"`
1890 *NoMethod
1891 }
1892 s1.NoMethod = (*NoMethod)(s)
1893 if err := json.Unmarshal(data, &s1); err != nil {
1894 return err
1895 }
1896 s.Numbers = make([]float64, len(s1.Numbers))
1897 for i := range s1.Numbers {
1898 s.Numbers[i] = float64(s1.Numbers[i])
1899 }
1900 return nil
1901 }
1902
1903
1904
1905 type GoogleCloudDiscoveryengineV1DataStore struct {
1906
1907
1908
1909
1910
1911
1912
1913
1914 ContentConfig string `json:"contentConfig,omitempty"`
1915
1916 CreateTime string `json:"createTime,omitempty"`
1917
1918
1919 DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
1920
1921
1922
1923 DisplayName string `json:"displayName,omitempty"`
1924
1925
1926 DocumentProcessingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936 IndustryVertical string `json:"industryVertical,omitempty"`
1937
1938
1939
1940
1941 Name string `json:"name,omitempty"`
1942
1943
1944
1945
1946
1947
1948
1949
1950
1951
1952
1953
1954
1955
1956
1957 SolutionTypes []string `json:"solutionTypes,omitempty"`
1958
1959
1960
1961
1962
1963
1964
1965
1966 StartingSchema *GoogleCloudDiscoveryengineV1Schema `json:"startingSchema,omitempty"`
1967
1968
1969 googleapi.ServerResponse `json:"-"`
1970
1971
1972
1973
1974
1975 ForceSendFields []string `json:"-"`
1976
1977
1978
1979
1980 NullFields []string `json:"-"`
1981 }
1982
1983 func (s *GoogleCloudDiscoveryengineV1DataStore) MarshalJSON() ([]byte, error) {
1984 type NoMethod GoogleCloudDiscoveryengineV1DataStore
1985 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1986 }
1987
1988
1989
1990
1991 type GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata struct {
1992
1993 CreateTime string `json:"createTime,omitempty"`
1994
1995
1996 UpdateTime string `json:"updateTime,omitempty"`
1997
1998
1999
2000
2001
2002 ForceSendFields []string `json:"-"`
2003
2004
2005
2006
2007 NullFields []string `json:"-"`
2008 }
2009
2010 func (s *GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
2011 type NoMethod GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata
2012 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2013 }
2014
2015
2016
2017
2018 type GoogleCloudDiscoveryengineV1DeleteEngineMetadata struct {
2019
2020 CreateTime string `json:"createTime,omitempty"`
2021
2022
2023 UpdateTime string `json:"updateTime,omitempty"`
2024
2025
2026
2027
2028
2029 ForceSendFields []string `json:"-"`
2030
2031
2032
2033
2034 NullFields []string `json:"-"`
2035 }
2036
2037 func (s *GoogleCloudDiscoveryengineV1DeleteEngineMetadata) MarshalJSON() ([]byte, error) {
2038 type NoMethod GoogleCloudDiscoveryengineV1DeleteEngineMetadata
2039 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2040 }
2041
2042
2043
2044 type GoogleCloudDiscoveryengineV1DeleteSchemaMetadata struct {
2045
2046 CreateTime string `json:"createTime,omitempty"`
2047
2048
2049 UpdateTime string `json:"updateTime,omitempty"`
2050
2051
2052
2053
2054
2055 ForceSendFields []string `json:"-"`
2056
2057
2058
2059
2060 NullFields []string `json:"-"`
2061 }
2062
2063 func (s *GoogleCloudDiscoveryengineV1DeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
2064 type NoMethod GoogleCloudDiscoveryengineV1DeleteSchemaMetadata
2065 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2066 }
2067
2068
2069
2070
2071 type GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata struct {
2072
2073 CreateTime string `json:"createTime,omitempty"`
2074
2075
2076 UpdateTime string `json:"updateTime,omitempty"`
2077
2078
2079
2080
2081
2082 ForceSendFields []string `json:"-"`
2083
2084
2085
2086
2087 NullFields []string `json:"-"`
2088 }
2089
2090 func (s *GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
2091 type NoMethod GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata
2092 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2093 }
2094
2095
2096
2097
2098
2099 type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata struct {
2100
2101 CreateTime string `json:"createTime,omitempty"`
2102
2103
2104 UpdateTime string `json:"updateTime,omitempty"`
2105
2106
2107
2108
2109
2110 ForceSendFields []string `json:"-"`
2111
2112
2113
2114
2115 NullFields []string `json:"-"`
2116 }
2117
2118 func (s *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
2119 type NoMethod GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata
2120 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2121 }
2122
2123
2124
2125 type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest struct {
2126 }
2127
2128
2129
2130 type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse struct {
2131 }
2132
2133
2134
2135 type GoogleCloudDiscoveryengineV1Document struct {
2136
2137
2138 Content *GoogleCloudDiscoveryengineV1DocumentContent `json:"content,omitempty"`
2139
2140
2141 DerivedStructData googleapi.RawMessage `json:"derivedStructData,omitempty"`
2142
2143
2144
2145 Id string `json:"id,omitempty"`
2146
2147
2148
2149
2150 IndexTime string `json:"indexTime,omitempty"`
2151
2152
2153 JsonData string `json:"jsonData,omitempty"`
2154
2155
2156
2157
2158 Name string `json:"name,omitempty"`
2159
2160
2161
2162
2163 ParentDocumentId string `json:"parentDocumentId,omitempty"`
2164
2165 SchemaId string `json:"schemaId,omitempty"`
2166
2167
2168 StructData googleapi.RawMessage `json:"structData,omitempty"`
2169
2170
2171 googleapi.ServerResponse `json:"-"`
2172
2173
2174
2175
2176
2177 ForceSendFields []string `json:"-"`
2178
2179
2180
2181
2182 NullFields []string `json:"-"`
2183 }
2184
2185 func (s *GoogleCloudDiscoveryengineV1Document) MarshalJSON() ([]byte, error) {
2186 type NoMethod GoogleCloudDiscoveryengineV1Document
2187 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2188 }
2189
2190
2191
2192 type GoogleCloudDiscoveryengineV1DocumentContent struct {
2193
2194
2195
2196
2197
2198
2199
2200 MimeType string `json:"mimeType,omitempty"`
2201
2202
2203
2204
2205
2206
2207 RawBytes string `json:"rawBytes,omitempty"`
2208
2209
2210
2211 Uri string `json:"uri,omitempty"`
2212
2213
2214
2215
2216
2217 ForceSendFields []string `json:"-"`
2218
2219
2220
2221
2222 NullFields []string `json:"-"`
2223 }
2224
2225 func (s *GoogleCloudDiscoveryengineV1DocumentContent) MarshalJSON() ([]byte, error) {
2226 type NoMethod GoogleCloudDiscoveryengineV1DocumentContent
2227 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2228 }
2229
2230
2231
2232 type GoogleCloudDiscoveryengineV1DocumentInfo struct {
2233
2234 Id string `json:"id,omitempty"`
2235
2236
2237
2238 Name string `json:"name,omitempty"`
2239
2240
2241 PromotionIds []string `json:"promotionIds,omitempty"`
2242
2243
2244
2245
2246 Quantity int64 `json:"quantity,omitempty"`
2247
2248 Uri string `json:"uri,omitempty"`
2249
2250
2251
2252
2253
2254 ForceSendFields []string `json:"-"`
2255
2256
2257
2258
2259 NullFields []string `json:"-"`
2260 }
2261
2262 func (s *GoogleCloudDiscoveryengineV1DocumentInfo) MarshalJSON() ([]byte, error) {
2263 type NoMethod GoogleCloudDiscoveryengineV1DocumentInfo
2264 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2265 }
2266
2267
2268
2269
2270
2271
2272 type GoogleCloudDiscoveryengineV1DocumentProcessingConfig struct {
2273
2274
2275
2276
2277 DefaultParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
2278
2279
2280 Name string `json:"name,omitempty"`
2281
2282
2283
2284
2285
2286
2287
2288 ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
2289
2290
2291
2292
2293
2294 ForceSendFields []string `json:"-"`
2295
2296
2297
2298
2299 NullFields []string `json:"-"`
2300 }
2301
2302 func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfig) MarshalJSON() ([]byte, error) {
2303 type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfig
2304 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2305 }
2306
2307
2308
2309 type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig struct {
2310
2311 DigitalParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
2312
2313
2314 OcrParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
2315
2316
2317
2318
2319
2320 ForceSendFields []string `json:"-"`
2321
2322
2323
2324
2325 NullFields []string `json:"-"`
2326 }
2327
2328 func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
2329 type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig
2330 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2331 }
2332
2333
2334
2335 type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
2336 }
2337
2338
2339
2340 type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig struct {
2341
2342
2343
2344 EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
2345
2346
2347 UseNativeText bool `json:"useNativeText,omitempty"`
2348
2349
2350
2351
2352
2353 ForceSendFields []string `json:"-"`
2354
2355
2356
2357
2358 NullFields []string `json:"-"`
2359 }
2360
2361 func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
2362 type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig
2363 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2364 }
2365
2366
2367
2368
2369
2370 type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata struct {
2371
2372 CreateTime string `json:"createTime,omitempty"`
2373
2374
2375 UpdateTime string `json:"updateTime,omitempty"`
2376
2377
2378
2379
2380
2381 ForceSendFields []string `json:"-"`
2382
2383
2384
2385
2386 NullFields []string `json:"-"`
2387 }
2388
2389 func (s *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
2390 type NoMethod GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata
2391 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2392 }
2393
2394
2395
2396 type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest struct {
2397 }
2398
2399
2400
2401 type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchResponse struct {
2402 }
2403
2404
2405
2406 type GoogleCloudDiscoveryengineV1Engine struct {
2407
2408
2409 ChatEngineConfig *GoogleCloudDiscoveryengineV1EngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
2410
2411
2412 ChatEngineMetadata *GoogleCloudDiscoveryengineV1EngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
2413
2414 CommonConfig *GoogleCloudDiscoveryengineV1EngineCommonConfig `json:"commonConfig,omitempty"`
2415
2416 CreateTime string `json:"createTime,omitempty"`
2417
2418
2419
2420
2421
2422
2423 DataStoreIds []string `json:"dataStoreIds,omitempty"`
2424
2425
2426 DisplayName string `json:"displayName,omitempty"`
2427
2428
2429
2430
2431
2432
2433
2434
2435
2436
2437
2438 IndustryVertical string `json:"industryVertical,omitempty"`
2439
2440
2441
2442
2443
2444
2445 Name string `json:"name,omitempty"`
2446
2447
2448 SearchEngineConfig *GoogleCloudDiscoveryengineV1EngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460 SolutionType string `json:"solutionType,omitempty"`
2461
2462
2463 UpdateTime string `json:"updateTime,omitempty"`
2464
2465
2466 googleapi.ServerResponse `json:"-"`
2467
2468
2469
2470
2471
2472 ForceSendFields []string `json:"-"`
2473
2474
2475
2476
2477 NullFields []string `json:"-"`
2478 }
2479
2480 func (s *GoogleCloudDiscoveryengineV1Engine) MarshalJSON() ([]byte, error) {
2481 type NoMethod GoogleCloudDiscoveryengineV1Engine
2482 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2483 }
2484
2485
2486
2487 type GoogleCloudDiscoveryengineV1EngineChatEngineConfig struct {
2488
2489
2490
2491
2492
2493 AgentCreationConfig *GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
2494
2495
2496
2497
2498
2499
2500
2501
2502
2503 DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
2504
2505
2506
2507
2508
2509 ForceSendFields []string `json:"-"`
2510
2511
2512
2513
2514 NullFields []string `json:"-"`
2515 }
2516
2517 func (s *GoogleCloudDiscoveryengineV1EngineChatEngineConfig) MarshalJSON() ([]byte, error) {
2518 type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineConfig
2519 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2520 }
2521
2522
2523
2524
2525
2526
2527 type GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig struct {
2528
2529
2530
2531 Business string `json:"business,omitempty"`
2532
2533
2534
2535
2536 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
2537
2538
2539
2540 Location string `json:"location,omitempty"`
2541
2542
2543 TimeZone string `json:"timeZone,omitempty"`
2544
2545
2546
2547
2548
2549 ForceSendFields []string `json:"-"`
2550
2551
2552
2553
2554 NullFields []string `json:"-"`
2555 }
2556
2557 func (s *GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
2558 type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig
2559 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2560 }
2561
2562
2563
2564 type GoogleCloudDiscoveryengineV1EngineChatEngineMetadata struct {
2565
2566
2567 DialogflowAgent string `json:"dialogflowAgent,omitempty"`
2568
2569
2570
2571
2572
2573 ForceSendFields []string `json:"-"`
2574
2575
2576
2577
2578 NullFields []string `json:"-"`
2579 }
2580
2581 func (s *GoogleCloudDiscoveryengineV1EngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
2582 type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineMetadata
2583 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2584 }
2585
2586
2587
2588 type GoogleCloudDiscoveryengineV1EngineCommonConfig struct {
2589
2590
2591
2592 CompanyName string `json:"companyName,omitempty"`
2593
2594
2595
2596
2597
2598 ForceSendFields []string `json:"-"`
2599
2600
2601
2602
2603 NullFields []string `json:"-"`
2604 }
2605
2606 func (s *GoogleCloudDiscoveryengineV1EngineCommonConfig) MarshalJSON() ([]byte, error) {
2607 type NoMethod GoogleCloudDiscoveryengineV1EngineCommonConfig
2608 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2609 }
2610
2611
2612
2613 type GoogleCloudDiscoveryengineV1EngineSearchEngineConfig struct {
2614
2615
2616
2617
2618
2619
2620 SearchAddOns []string `json:"searchAddOns,omitempty"`
2621
2622
2623
2624
2625
2626
2627
2628
2629
2630 SearchTier string `json:"searchTier,omitempty"`
2631
2632
2633
2634
2635
2636 ForceSendFields []string `json:"-"`
2637
2638
2639
2640
2641 NullFields []string `json:"-"`
2642 }
2643
2644 func (s *GoogleCloudDiscoveryengineV1EngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
2645 type NoMethod GoogleCloudDiscoveryengineV1EngineSearchEngineConfig
2646 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2647 }
2648
2649
2650 type GoogleCloudDiscoveryengineV1FactChunk struct {
2651
2652
2653 ChunkText string `json:"chunkText,omitempty"`
2654
2655 Index int64 `json:"index,omitempty"`
2656
2657
2658
2659 Source string `json:"source,omitempty"`
2660
2661 SourceMetadata map[string]string `json:"sourceMetadata,omitempty"`
2662
2663
2664
2665
2666
2667 ForceSendFields []string `json:"-"`
2668
2669
2670
2671
2672 NullFields []string `json:"-"`
2673 }
2674
2675 func (s *GoogleCloudDiscoveryengineV1FactChunk) MarshalJSON() ([]byte, error) {
2676 type NoMethod GoogleCloudDiscoveryengineV1FactChunk
2677 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2678 }
2679
2680
2681
2682 type GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse struct {
2683
2684
2685 NextPageToken string `json:"nextPageToken,omitempty"`
2686
2687 TargetSites []*GoogleCloudDiscoveryengineV1TargetSite `json:"targetSites,omitempty"`
2688
2689
2690 TotalSize int64 `json:"totalSize,omitempty"`
2691
2692
2693 googleapi.ServerResponse `json:"-"`
2694
2695
2696
2697
2698
2699 ForceSendFields []string `json:"-"`
2700
2701
2702
2703
2704 NullFields []string `json:"-"`
2705 }
2706
2707 func (s *GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse) MarshalJSON() ([]byte, error) {
2708 type NoMethod GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse
2709 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2710 }
2711
2712
2713
2714 type GoogleCloudDiscoveryengineV1FhirStoreSource struct {
2715
2716
2717
2718
2719 FhirStore string `json:"fhirStore,omitempty"`
2720
2721
2722
2723 GcsStagingDir string `json:"gcsStagingDir,omitempty"`
2724
2725
2726
2727
2728
2729 ForceSendFields []string `json:"-"`
2730
2731
2732
2733
2734 NullFields []string `json:"-"`
2735 }
2736
2737 func (s *GoogleCloudDiscoveryengineV1FhirStoreSource) MarshalJSON() ([]byte, error) {
2738 type NoMethod GoogleCloudDiscoveryengineV1FhirStoreSource
2739 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2740 }
2741
2742
2743
2744 type GoogleCloudDiscoveryengineV1FirestoreSource struct {
2745
2746
2747 CollectionId string `json:"collectionId,omitempty"`
2748
2749
2750 DatabaseId string `json:"databaseId,omitempty"`
2751
2752
2753
2754
2755
2756 GcsStagingDir string `json:"gcsStagingDir,omitempty"`
2757
2758
2759
2760 ProjectId string `json:"projectId,omitempty"`
2761
2762
2763
2764
2765
2766 ForceSendFields []string `json:"-"`
2767
2768
2769
2770
2771 NullFields []string `json:"-"`
2772 }
2773
2774 func (s *GoogleCloudDiscoveryengineV1FirestoreSource) MarshalJSON() ([]byte, error) {
2775 type NoMethod GoogleCloudDiscoveryengineV1FirestoreSource
2776 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2777 }
2778
2779
2780
2781 type GoogleCloudDiscoveryengineV1GcsSource struct {
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792
2793
2794 DataSchema string `json:"dataSchema,omitempty"`
2795
2796
2797
2798
2799
2800
2801 InputUris []string `json:"inputUris,omitempty"`
2802
2803
2804
2805
2806
2807 ForceSendFields []string `json:"-"`
2808
2809
2810
2811
2812 NullFields []string `json:"-"`
2813 }
2814
2815 func (s *GoogleCloudDiscoveryengineV1GcsSource) MarshalJSON() ([]byte, error) {
2816 type NoMethod GoogleCloudDiscoveryengineV1GcsSource
2817 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2818 }
2819
2820
2821 type GoogleCloudDiscoveryengineV1GroundingFact struct {
2822
2823
2824
2825 Attributes map[string]string `json:"attributes,omitempty"`
2826
2827 FactText string `json:"factText,omitempty"`
2828
2829
2830
2831
2832
2833 ForceSendFields []string `json:"-"`
2834
2835
2836
2837
2838 NullFields []string `json:"-"`
2839 }
2840
2841 func (s *GoogleCloudDiscoveryengineV1GroundingFact) MarshalJSON() ([]byte, error) {
2842 type NoMethod GoogleCloudDiscoveryengineV1GroundingFact
2843 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2844 }
2845
2846
2847
2848
2849 type GoogleCloudDiscoveryengineV1ImportDocumentsMetadata struct {
2850
2851 CreateTime string `json:"createTime,omitempty"`
2852
2853 FailureCount int64 `json:"failureCount,omitempty,string"`
2854
2855 SuccessCount int64 `json:"successCount,omitempty,string"`
2856
2857 TotalCount int64 `json:"totalCount,omitempty,string"`
2858
2859
2860 UpdateTime string `json:"updateTime,omitempty"`
2861
2862
2863
2864
2865
2866 ForceSendFields []string `json:"-"`
2867
2868
2869
2870
2871 NullFields []string `json:"-"`
2872 }
2873
2874 func (s *GoogleCloudDiscoveryengineV1ImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
2875 type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
2876 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2877 }
2878
2879
2880
2881 type GoogleCloudDiscoveryengineV1ImportDocumentsRequest struct {
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893 AutoGenerateIds bool `json:"autoGenerateIds,omitempty"`
2894
2895 BigquerySource *GoogleCloudDiscoveryengineV1BigQuerySource `json:"bigquerySource,omitempty"`
2896
2897 BigtableSource *GoogleCloudDiscoveryengineV1BigtableSource `json:"bigtableSource,omitempty"`
2898
2899 CloudSqlSource *GoogleCloudDiscoveryengineV1CloudSqlSource `json:"cloudSqlSource,omitempty"`
2900
2901 ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
2902
2903 FhirStoreSource *GoogleCloudDiscoveryengineV1FhirStoreSource `json:"fhirStoreSource,omitempty"`
2904
2905 FirestoreSource *GoogleCloudDiscoveryengineV1FirestoreSource `json:"firestoreSource,omitempty"`
2906
2907 GcsSource *GoogleCloudDiscoveryengineV1GcsSource `json:"gcsSource,omitempty"`
2908
2909
2910
2911
2912
2913
2914
2915
2916
2917
2918
2919
2920
2921
2922
2923
2924 IdField string `json:"idField,omitempty"`
2925
2926 InlineSource *GoogleCloudDiscoveryengineV1ImportDocumentsRequestInlineSource `json:"inlineSource,omitempty"`
2927
2928
2929
2930
2931
2932
2933
2934
2935
2936
2937 ReconciliationMode string `json:"reconciliationMode,omitempty"`
2938
2939 SpannerSource *GoogleCloudDiscoveryengineV1SpannerSource `json:"spannerSource,omitempty"`
2940
2941
2942 UpdateMask string `json:"updateMask,omitempty"`
2943
2944
2945
2946
2947
2948 ForceSendFields []string `json:"-"`
2949
2950
2951
2952
2953 NullFields []string `json:"-"`
2954 }
2955
2956 func (s *GoogleCloudDiscoveryengineV1ImportDocumentsRequest) MarshalJSON() ([]byte, error) {
2957 type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsRequest
2958 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2959 }
2960
2961
2962
2963 type GoogleCloudDiscoveryengineV1ImportDocumentsRequestInlineSource struct {
2964
2965
2966 Documents []*GoogleCloudDiscoveryengineV1Document `json:"documents,omitempty"`
2967
2968
2969
2970
2971
2972 ForceSendFields []string `json:"-"`
2973
2974
2975
2976
2977 NullFields []string `json:"-"`
2978 }
2979
2980 func (s *GoogleCloudDiscoveryengineV1ImportDocumentsRequestInlineSource) MarshalJSON() ([]byte, error) {
2981 type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsRequestInlineSource
2982 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2983 }
2984
2985
2986
2987
2988
2989 type GoogleCloudDiscoveryengineV1ImportDocumentsResponse struct {
2990
2991
2992 ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
2993
2994 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
2995
2996
2997
2998
2999
3000 ForceSendFields []string `json:"-"`
3001
3002
3003
3004
3005 NullFields []string `json:"-"`
3006 }
3007
3008 func (s *GoogleCloudDiscoveryengineV1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
3009 type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsResponse
3010 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3011 }
3012
3013
3014
3015 type GoogleCloudDiscoveryengineV1ImportErrorConfig struct {
3016
3017
3018
3019
3020 GcsPrefix string `json:"gcsPrefix,omitempty"`
3021
3022
3023
3024
3025
3026 ForceSendFields []string `json:"-"`
3027
3028
3029
3030
3031 NullFields []string `json:"-"`
3032 }
3033
3034 func (s *GoogleCloudDiscoveryengineV1ImportErrorConfig) MarshalJSON() ([]byte, error) {
3035 type NoMethod GoogleCloudDiscoveryengineV1ImportErrorConfig
3036 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3037 }
3038
3039
3040
3041
3042
3043 type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata struct {
3044
3045 CreateTime string `json:"createTime,omitempty"`
3046
3047
3048 UpdateTime string `json:"updateTime,omitempty"`
3049
3050
3051
3052
3053
3054 ForceSendFields []string `json:"-"`
3055
3056
3057
3058
3059 NullFields []string `json:"-"`
3060 }
3061
3062 func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
3063 type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata
3064 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3065 }
3066
3067
3068
3069 type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest struct {
3070
3071
3072
3073
3074
3075 GcsSource *GoogleCloudDiscoveryengineV1GcsSource `json:"gcsSource,omitempty"`
3076
3077
3078 InlineSource *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequestInlineSource `json:"inlineSource,omitempty"`
3079
3080
3081
3082
3083
3084 ForceSendFields []string `json:"-"`
3085
3086
3087
3088
3089 NullFields []string `json:"-"`
3090 }
3091
3092 func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest) MarshalJSON() ([]byte, error) {
3093 type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest
3094 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3095 }
3096
3097
3098
3099 type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequestInlineSource struct {
3100
3101
3102 Entries []*GoogleCloudDiscoveryengineV1SuggestionDenyListEntry `json:"entries,omitempty"`
3103
3104
3105
3106
3107
3108 ForceSendFields []string `json:"-"`
3109
3110
3111
3112
3113 NullFields []string `json:"-"`
3114 }
3115
3116 func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequestInlineSource) MarshalJSON() ([]byte, error) {
3117 type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequestInlineSource
3118 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3119 }
3120
3121
3122
3123
3124 type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse struct {
3125
3126 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
3127
3128 FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
3129
3130 ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
3131
3132
3133
3134
3135
3136 ForceSendFields []string `json:"-"`
3137
3138
3139
3140
3141 NullFields []string `json:"-"`
3142 }
3143
3144 func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
3145 type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse
3146 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3147 }
3148
3149
3150
3151
3152 type GoogleCloudDiscoveryengineV1ImportUserEventsMetadata struct {
3153
3154 CreateTime string `json:"createTime,omitempty"`
3155
3156 FailureCount int64 `json:"failureCount,omitempty,string"`
3157
3158 SuccessCount int64 `json:"successCount,omitempty,string"`
3159
3160
3161 UpdateTime string `json:"updateTime,omitempty"`
3162
3163
3164
3165
3166
3167 ForceSendFields []string `json:"-"`
3168
3169
3170
3171
3172 NullFields []string `json:"-"`
3173 }
3174
3175 func (s *GoogleCloudDiscoveryengineV1ImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
3176 type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsMetadata
3177 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3178 }
3179
3180
3181
3182 type GoogleCloudDiscoveryengineV1ImportUserEventsRequest struct {
3183
3184 BigquerySource *GoogleCloudDiscoveryengineV1BigQuerySource `json:"bigquerySource,omitempty"`
3185
3186
3187 ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
3188
3189 GcsSource *GoogleCloudDiscoveryengineV1GcsSource `json:"gcsSource,omitempty"`
3190
3191 InlineSource *GoogleCloudDiscoveryengineV1ImportUserEventsRequestInlineSource `json:"inlineSource,omitempty"`
3192
3193
3194
3195
3196
3197 ForceSendFields []string `json:"-"`
3198
3199
3200
3201
3202 NullFields []string `json:"-"`
3203 }
3204
3205 func (s *GoogleCloudDiscoveryengineV1ImportUserEventsRequest) MarshalJSON() ([]byte, error) {
3206 type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsRequest
3207 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3208 }
3209
3210
3211
3212 type GoogleCloudDiscoveryengineV1ImportUserEventsRequestInlineSource struct {
3213
3214
3215 UserEvents []*GoogleCloudDiscoveryengineV1UserEvent `json:"userEvents,omitempty"`
3216
3217
3218
3219
3220
3221 ForceSendFields []string `json:"-"`
3222
3223
3224
3225
3226 NullFields []string `json:"-"`
3227 }
3228
3229 func (s *GoogleCloudDiscoveryengineV1ImportUserEventsRequestInlineSource) MarshalJSON() ([]byte, error) {
3230 type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsRequestInlineSource
3231 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3232 }
3233
3234
3235
3236
3237
3238 type GoogleCloudDiscoveryengineV1ImportUserEventsResponse struct {
3239
3240
3241 ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
3242
3243 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
3244
3245
3246 JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
3247
3248
3249 UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
3250
3251
3252
3253
3254
3255 ForceSendFields []string `json:"-"`
3256
3257
3258
3259
3260 NullFields []string `json:"-"`
3261 }
3262
3263 func (s *GoogleCloudDiscoveryengineV1ImportUserEventsResponse) MarshalJSON() ([]byte, error) {
3264 type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsResponse
3265 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3266 }
3267
3268
3269 type GoogleCloudDiscoveryengineV1Interval struct {
3270
3271 ExclusiveMaximum float64 `json:"exclusiveMaximum,omitempty"`
3272
3273 ExclusiveMinimum float64 `json:"exclusiveMinimum,omitempty"`
3274
3275 Maximum float64 `json:"maximum,omitempty"`
3276
3277 Minimum float64 `json:"minimum,omitempty"`
3278
3279
3280
3281
3282
3283 ForceSendFields []string `json:"-"`
3284
3285
3286
3287
3288 NullFields []string `json:"-"`
3289 }
3290
3291 func (s *GoogleCloudDiscoveryengineV1Interval) MarshalJSON() ([]byte, error) {
3292 type NoMethod GoogleCloudDiscoveryengineV1Interval
3293 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3294 }
3295
3296 func (s *GoogleCloudDiscoveryengineV1Interval) UnmarshalJSON(data []byte) error {
3297 type NoMethod GoogleCloudDiscoveryengineV1Interval
3298 var s1 struct {
3299 ExclusiveMaximum gensupport.JSONFloat64 `json:"exclusiveMaximum"`
3300 ExclusiveMinimum gensupport.JSONFloat64 `json:"exclusiveMinimum"`
3301 Maximum gensupport.JSONFloat64 `json:"maximum"`
3302 Minimum gensupport.JSONFloat64 `json:"minimum"`
3303 *NoMethod
3304 }
3305 s1.NoMethod = (*NoMethod)(s)
3306 if err := json.Unmarshal(data, &s1); err != nil {
3307 return err
3308 }
3309 s.ExclusiveMaximum = float64(s1.ExclusiveMaximum)
3310 s.ExclusiveMinimum = float64(s1.ExclusiveMinimum)
3311 s.Maximum = float64(s1.Maximum)
3312 s.Minimum = float64(s1.Minimum)
3313 return nil
3314 }
3315
3316
3317
3318 type GoogleCloudDiscoveryengineV1ListConversationsResponse struct {
3319
3320 Conversations []*GoogleCloudDiscoveryengineV1Conversation `json:"conversations,omitempty"`
3321
3322 NextPageToken string `json:"nextPageToken,omitempty"`
3323
3324
3325 googleapi.ServerResponse `json:"-"`
3326
3327
3328
3329
3330
3331 ForceSendFields []string `json:"-"`
3332
3333
3334
3335
3336 NullFields []string `json:"-"`
3337 }
3338
3339 func (s *GoogleCloudDiscoveryengineV1ListConversationsResponse) MarshalJSON() ([]byte, error) {
3340 type NoMethod GoogleCloudDiscoveryengineV1ListConversationsResponse
3341 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3342 }
3343
3344
3345
3346 type GoogleCloudDiscoveryengineV1ListDataStoresResponse struct {
3347
3348 DataStores []*GoogleCloudDiscoveryengineV1DataStore `json:"dataStores,omitempty"`
3349
3350
3351
3352 NextPageToken string `json:"nextPageToken,omitempty"`
3353
3354
3355 googleapi.ServerResponse `json:"-"`
3356
3357
3358
3359
3360
3361 ForceSendFields []string `json:"-"`
3362
3363
3364
3365
3366 NullFields []string `json:"-"`
3367 }
3368
3369 func (s *GoogleCloudDiscoveryengineV1ListDataStoresResponse) MarshalJSON() ([]byte, error) {
3370 type NoMethod GoogleCloudDiscoveryengineV1ListDataStoresResponse
3371 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3372 }
3373
3374
3375
3376 type GoogleCloudDiscoveryengineV1ListDocumentsResponse struct {
3377
3378 Documents []*GoogleCloudDiscoveryengineV1Document `json:"documents,omitempty"`
3379
3380
3381
3382 NextPageToken string `json:"nextPageToken,omitempty"`
3383
3384
3385 googleapi.ServerResponse `json:"-"`
3386
3387
3388
3389
3390
3391 ForceSendFields []string `json:"-"`
3392
3393
3394
3395
3396 NullFields []string `json:"-"`
3397 }
3398
3399 func (s *GoogleCloudDiscoveryengineV1ListDocumentsResponse) MarshalJSON() ([]byte, error) {
3400 type NoMethod GoogleCloudDiscoveryengineV1ListDocumentsResponse
3401 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3402 }
3403
3404
3405
3406 type GoogleCloudDiscoveryengineV1ListEnginesResponse struct {
3407
3408 Engines []*GoogleCloudDiscoveryengineV1Engine `json:"engines,omitempty"`
3409
3410 NextPageToken string `json:"nextPageToken,omitempty"`
3411
3412
3413 googleapi.ServerResponse `json:"-"`
3414
3415
3416
3417
3418
3419 ForceSendFields []string `json:"-"`
3420
3421
3422
3423
3424 NullFields []string `json:"-"`
3425 }
3426
3427 func (s *GoogleCloudDiscoveryengineV1ListEnginesResponse) MarshalJSON() ([]byte, error) {
3428 type NoMethod GoogleCloudDiscoveryengineV1ListEnginesResponse
3429 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3430 }
3431
3432
3433
3434 type GoogleCloudDiscoveryengineV1ListSchemasResponse struct {
3435
3436
3437
3438 NextPageToken string `json:"nextPageToken,omitempty"`
3439
3440 Schemas []*GoogleCloudDiscoveryengineV1Schema `json:"schemas,omitempty"`
3441
3442
3443 googleapi.ServerResponse `json:"-"`
3444
3445
3446
3447
3448
3449 ForceSendFields []string `json:"-"`
3450
3451
3452
3453
3454 NullFields []string `json:"-"`
3455 }
3456
3457 func (s *GoogleCloudDiscoveryengineV1ListSchemasResponse) MarshalJSON() ([]byte, error) {
3458 type NoMethod GoogleCloudDiscoveryengineV1ListSchemasResponse
3459 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3460 }
3461
3462
3463
3464 type GoogleCloudDiscoveryengineV1ListTargetSitesResponse struct {
3465
3466
3467 NextPageToken string `json:"nextPageToken,omitempty"`
3468
3469 TargetSites []*GoogleCloudDiscoveryengineV1TargetSite `json:"targetSites,omitempty"`
3470
3471
3472 TotalSize int64 `json:"totalSize,omitempty"`
3473
3474
3475 googleapi.ServerResponse `json:"-"`
3476
3477
3478
3479
3480
3481 ForceSendFields []string `json:"-"`
3482
3483
3484
3485
3486 NullFields []string `json:"-"`
3487 }
3488
3489 func (s *GoogleCloudDiscoveryengineV1ListTargetSitesResponse) MarshalJSON() ([]byte, error) {
3490 type NoMethod GoogleCloudDiscoveryengineV1ListTargetSitesResponse
3491 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3492 }
3493
3494
3495
3496 type GoogleCloudDiscoveryengineV1MediaInfo struct {
3497
3498
3499
3500 MediaProgressDuration string `json:"mediaProgressDuration,omitempty"`
3501
3502
3503
3504
3505 MediaProgressPercentage float64 `json:"mediaProgressPercentage,omitempty"`
3506
3507
3508
3509
3510
3511 ForceSendFields []string `json:"-"`
3512
3513
3514
3515
3516 NullFields []string `json:"-"`
3517 }
3518
3519 func (s *GoogleCloudDiscoveryengineV1MediaInfo) MarshalJSON() ([]byte, error) {
3520 type NoMethod GoogleCloudDiscoveryengineV1MediaInfo
3521 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3522 }
3523
3524 func (s *GoogleCloudDiscoveryengineV1MediaInfo) UnmarshalJSON(data []byte) error {
3525 type NoMethod GoogleCloudDiscoveryengineV1MediaInfo
3526 var s1 struct {
3527 MediaProgressPercentage gensupport.JSONFloat64 `json:"mediaProgressPercentage"`
3528 *NoMethod
3529 }
3530 s1.NoMethod = (*NoMethod)(s)
3531 if err := json.Unmarshal(data, &s1); err != nil {
3532 return err
3533 }
3534 s.MediaProgressPercentage = float64(s1.MediaProgressPercentage)
3535 return nil
3536 }
3537
3538
3539 type GoogleCloudDiscoveryengineV1PageInfo struct {
3540
3541
3542
3543
3544
3545
3546
3547
3548 PageCategory string `json:"pageCategory,omitempty"`
3549
3550
3551
3552
3553
3554
3555
3556 PageviewId string `json:"pageviewId,omitempty"`
3557
3558
3559
3560
3561 ReferrerUri string `json:"referrerUri,omitempty"`
3562
3563
3564
3565
3566 Uri string `json:"uri,omitempty"`
3567
3568
3569
3570
3571
3572 ForceSendFields []string `json:"-"`
3573
3574
3575
3576
3577 NullFields []string `json:"-"`
3578 }
3579
3580 func (s *GoogleCloudDiscoveryengineV1PageInfo) MarshalJSON() ([]byte, error) {
3581 type NoMethod GoogleCloudDiscoveryengineV1PageInfo
3582 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3583 }
3584
3585
3586
3587 type GoogleCloudDiscoveryengineV1PanelInfo struct {
3588
3589 DisplayName string `json:"displayName,omitempty"`
3590
3591 PanelId string `json:"panelId,omitempty"`
3592
3593
3594 PanelPosition int64 `json:"panelPosition,omitempty"`
3595
3596
3597 TotalPanels int64 `json:"totalPanels,omitempty"`
3598
3599
3600
3601
3602
3603 ForceSendFields []string `json:"-"`
3604
3605
3606
3607
3608 NullFields []string `json:"-"`
3609 }
3610
3611 func (s *GoogleCloudDiscoveryengineV1PanelInfo) MarshalJSON() ([]byte, error) {
3612 type NoMethod GoogleCloudDiscoveryengineV1PanelInfo
3613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3614 }
3615
3616
3617
3618
3619 type GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata struct {
3620
3621 CreateTime string `json:"createTime,omitempty"`
3622
3623 FailureCount int64 `json:"failureCount,omitempty,string"`
3624
3625 IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
3626
3627 SuccessCount int64 `json:"successCount,omitempty,string"`
3628
3629
3630 UpdateTime string `json:"updateTime,omitempty"`
3631
3632
3633
3634
3635
3636 ForceSendFields []string `json:"-"`
3637
3638
3639
3640
3641 NullFields []string `json:"-"`
3642 }
3643
3644 func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
3645 type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
3646 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3647 }
3648
3649
3650
3651 type GoogleCloudDiscoveryengineV1PurgeDocumentsRequest struct {
3652
3653
3654 Filter string `json:"filter,omitempty"`
3655
3656
3657 Force bool `json:"force,omitempty"`
3658
3659
3660
3661
3662
3663 ForceSendFields []string `json:"-"`
3664
3665
3666
3667
3668 NullFields []string `json:"-"`
3669 }
3670
3671 func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsRequest) MarshalJSON() ([]byte, error) {
3672 type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsRequest
3673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3674 }
3675
3676
3677
3678
3679
3680 type GoogleCloudDiscoveryengineV1PurgeDocumentsResponse struct {
3681
3682
3683 PurgeCount int64 `json:"purgeCount,omitempty,string"`
3684
3685
3686
3687 PurgeSample []string `json:"purgeSample,omitempty"`
3688
3689
3690
3691
3692
3693 ForceSendFields []string `json:"-"`
3694
3695
3696
3697
3698 NullFields []string `json:"-"`
3699 }
3700
3701 func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
3702 type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsResponse
3703 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3704 }
3705
3706
3707
3708
3709 type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata struct {
3710
3711 CreateTime string `json:"createTime,omitempty"`
3712
3713
3714 UpdateTime string `json:"updateTime,omitempty"`
3715
3716
3717
3718
3719
3720 ForceSendFields []string `json:"-"`
3721
3722
3723
3724
3725 NullFields []string `json:"-"`
3726 }
3727
3728 func (s *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
3729 type NoMethod GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata
3730 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3731 }
3732
3733
3734
3735 type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest struct {
3736 }
3737
3738
3739
3740 type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse struct {
3741
3742 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
3743
3744 PurgeCount int64 `json:"purgeCount,omitempty,string"`
3745
3746
3747
3748
3749
3750 ForceSendFields []string `json:"-"`
3751
3752
3753
3754
3755 NullFields []string `json:"-"`
3756 }
3757
3758 func (s *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
3759 type NoMethod GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse
3760 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3761 }
3762
3763
3764
3765 type GoogleCloudDiscoveryengineV1RecommendRequest struct {
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775
3776
3777
3778
3779
3780 Filter string `json:"filter,omitempty"`
3781
3782
3783
3784
3785 PageSize int64 `json:"pageSize,omitempty"`
3786
3787
3788
3789
3790
3791
3792
3793
3794
3795
3796
3797
3798
3799
3800
3801
3802 Params googleapi.RawMessage `json:"params,omitempty"`
3803
3804
3805
3806
3807
3808
3809
3810
3811
3812 UserEvent *GoogleCloudDiscoveryengineV1UserEvent `json:"userEvent,omitempty"`
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822
3823
3824
3825 UserLabels map[string]string `json:"userLabels,omitempty"`
3826
3827
3828
3829
3830 ValidateOnly bool `json:"validateOnly,omitempty"`
3831
3832
3833
3834
3835
3836 ForceSendFields []string `json:"-"`
3837
3838
3839
3840
3841 NullFields []string `json:"-"`
3842 }
3843
3844 func (s *GoogleCloudDiscoveryengineV1RecommendRequest) MarshalJSON() ([]byte, error) {
3845 type NoMethod GoogleCloudDiscoveryengineV1RecommendRequest
3846 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3847 }
3848
3849
3850
3851 type GoogleCloudDiscoveryengineV1RecommendResponse struct {
3852
3853
3854
3855 AttributionToken string `json:"attributionToken,omitempty"`
3856
3857
3858 MissingIds []string `json:"missingIds,omitempty"`
3859
3860
3861 Results []*GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult `json:"results,omitempty"`
3862
3863 ValidateOnly bool `json:"validateOnly,omitempty"`
3864
3865
3866 googleapi.ServerResponse `json:"-"`
3867
3868
3869
3870
3871
3872 ForceSendFields []string `json:"-"`
3873
3874
3875
3876
3877 NullFields []string `json:"-"`
3878 }
3879
3880 func (s *GoogleCloudDiscoveryengineV1RecommendResponse) MarshalJSON() ([]byte, error) {
3881 type NoMethod GoogleCloudDiscoveryengineV1RecommendResponse
3882 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3883 }
3884
3885
3886
3887
3888 type GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult struct {
3889
3890 Document *GoogleCloudDiscoveryengineV1Document `json:"document,omitempty"`
3891
3892 Id string `json:"id,omitempty"`
3893
3894
3895
3896 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3897
3898
3899
3900
3901
3902 ForceSendFields []string `json:"-"`
3903
3904
3905
3906
3907 NullFields []string `json:"-"`
3908 }
3909
3910 func (s *GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult) MarshalJSON() ([]byte, error) {
3911 type NoMethod GoogleCloudDiscoveryengineV1RecommendResponseRecommendationResult
3912 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3913 }
3914
3915
3916
3917 type GoogleCloudDiscoveryengineV1RecrawlUrisRequest struct {
3918
3919
3920
3921 Uris []string `json:"uris,omitempty"`
3922
3923
3924
3925
3926
3927 ForceSendFields []string `json:"-"`
3928
3929
3930
3931
3932 NullFields []string `json:"-"`
3933 }
3934
3935 func (s *GoogleCloudDiscoveryengineV1RecrawlUrisRequest) MarshalJSON() ([]byte, error) {
3936 type NoMethod GoogleCloudDiscoveryengineV1RecrawlUrisRequest
3937 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3938 }
3939
3940
3941 type GoogleCloudDiscoveryengineV1Reply struct {
3942
3943 Summary *GoogleCloudDiscoveryengineV1SearchResponseSummary `json:"summary,omitempty"`
3944
3945
3946
3947
3948
3949 ForceSendFields []string `json:"-"`
3950
3951
3952
3953
3954 NullFields []string `json:"-"`
3955 }
3956
3957 func (s *GoogleCloudDiscoveryengineV1Reply) MarshalJSON() ([]byte, error) {
3958 type NoMethod GoogleCloudDiscoveryengineV1Reply
3959 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3960 }
3961
3962
3963
3964 type GoogleCloudDiscoveryengineV1Schema struct {
3965
3966 JsonSchema string `json:"jsonSchema,omitempty"`
3967
3968
3969
3970
3971 Name string `json:"name,omitempty"`
3972
3973 StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
3974
3975
3976 googleapi.ServerResponse `json:"-"`
3977
3978
3979
3980
3981
3982 ForceSendFields []string `json:"-"`
3983
3984
3985
3986
3987 NullFields []string `json:"-"`
3988 }
3989
3990 func (s *GoogleCloudDiscoveryengineV1Schema) MarshalJSON() ([]byte, error) {
3991 type NoMethod GoogleCloudDiscoveryengineV1Schema
3992 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3993 }
3994
3995
3996 type GoogleCloudDiscoveryengineV1SearchInfo struct {
3997
3998
3999
4000
4001
4002
4003 Offset int64 `json:"offset,omitempty"`
4004
4005
4006
4007
4008
4009
4010 OrderBy string `json:"orderBy,omitempty"`
4011
4012
4013
4014
4015
4016
4017 SearchQuery string `json:"searchQuery,omitempty"`
4018
4019
4020
4021
4022
4023 ForceSendFields []string `json:"-"`
4024
4025
4026
4027
4028 NullFields []string `json:"-"`
4029 }
4030
4031 func (s *GoogleCloudDiscoveryengineV1SearchInfo) MarshalJSON() ([]byte, error) {
4032 type NoMethod GoogleCloudDiscoveryengineV1SearchInfo
4033 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4034 }
4035
4036
4037
4038 type GoogleCloudDiscoveryengineV1SearchRequest struct {
4039
4040
4041
4042 BoostSpec *GoogleCloudDiscoveryengineV1SearchRequestBoostSpec `json:"boostSpec,omitempty"`
4043
4044
4045
4046
4047 Branch string `json:"branch,omitempty"`
4048
4049
4050
4051
4052
4053
4054
4055
4056 CanonicalFilter string `json:"canonicalFilter,omitempty"`
4057
4058
4059 ContentSearchSpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec `json:"contentSearchSpec,omitempty"`
4060
4061 DataStoreSpecs []*GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec `json:"dataStoreSpecs,omitempty"`
4062
4063
4064
4065 FacetSpecs []*GoogleCloudDiscoveryengineV1SearchRequestFacetSpec `json:"facetSpecs,omitempty"`
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075
4076
4077 Filter string `json:"filter,omitempty"`
4078
4079 ImageQuery *GoogleCloudDiscoveryengineV1SearchRequestImageQuery `json:"imageQuery,omitempty"`
4080
4081
4082
4083
4084 Offset int64 `json:"offset,omitempty"`
4085
4086
4087
4088
4089
4090
4091 OrderBy string `json:"orderBy,omitempty"`
4092
4093
4094
4095
4096
4097
4098 PageSize int64 `json:"pageSize,omitempty"`
4099
4100
4101
4102
4103 PageToken string `json:"pageToken,omitempty"`
4104
4105
4106
4107
4108
4109
4110
4111
4112
4113 Params googleapi.RawMessage `json:"params,omitempty"`
4114
4115 Query string `json:"query,omitempty"`
4116
4117
4118 QueryExpansionSpec *GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec `json:"queryExpansionSpec,omitempty"`
4119
4120
4121 SafeSearch bool `json:"safeSearch,omitempty"`
4122
4123
4124 SpellCorrectionSpec *GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"`
4125
4126
4127 UserInfo *GoogleCloudDiscoveryengineV1UserInfo `json:"userInfo,omitempty"`
4128
4129
4130
4131
4132
4133
4134
4135
4136
4137
4138
4139
4140 UserLabels map[string]string `json:"userLabels,omitempty"`
4141
4142
4143
4144
4145
4146
4147
4148
4149
4150 UserPseudoId string `json:"userPseudoId,omitempty"`
4151
4152
4153
4154
4155
4156 ForceSendFields []string `json:"-"`
4157
4158
4159
4160
4161 NullFields []string `json:"-"`
4162 }
4163
4164 func (s *GoogleCloudDiscoveryengineV1SearchRequest) MarshalJSON() ([]byte, error) {
4165 type NoMethod GoogleCloudDiscoveryengineV1SearchRequest
4166 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4167 }
4168
4169
4170
4171 type GoogleCloudDiscoveryengineV1SearchRequestBoostSpec struct {
4172
4173
4174
4175
4176 ConditionBoostSpecs []*GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec `json:"conditionBoostSpecs,omitempty"`
4177
4178
4179
4180
4181
4182 ForceSendFields []string `json:"-"`
4183
4184
4185
4186
4187 NullFields []string `json:"-"`
4188 }
4189
4190 func (s *GoogleCloudDiscoveryengineV1SearchRequestBoostSpec) MarshalJSON() ([]byte, error) {
4191 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestBoostSpec
4192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4193 }
4194
4195
4196
4197 type GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec struct {
4198
4199
4200
4201
4202
4203
4204
4205
4206
4207
4208
4209
4210
4211
4212 Boost float64 `json:"boost,omitempty"`
4213
4214
4215
4216
4217
4218 Condition string `json:"condition,omitempty"`
4219
4220
4221
4222
4223
4224 ForceSendFields []string `json:"-"`
4225
4226
4227
4228
4229 NullFields []string `json:"-"`
4230 }
4231
4232 func (s *GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec) MarshalJSON() ([]byte, error) {
4233 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec
4234 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4235 }
4236
4237 func (s *GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec) UnmarshalJSON(data []byte) error {
4238 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestBoostSpecConditionBoostSpec
4239 var s1 struct {
4240 Boost gensupport.JSONFloat64 `json:"boost"`
4241 *NoMethod
4242 }
4243 s1.NoMethod = (*NoMethod)(s)
4244 if err := json.Unmarshal(data, &s1); err != nil {
4245 return err
4246 }
4247 s.Boost = float64(s1.Boost)
4248 return nil
4249 }
4250
4251
4252
4253 type GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec struct {
4254
4255
4256 ExtractiveContentSpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec `json:"extractiveContentSpec,omitempty"`
4257
4258
4259 SnippetSpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec `json:"snippetSpec,omitempty"`
4260
4261
4262 SummarySpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec `json:"summarySpec,omitempty"`
4263
4264
4265
4266
4267
4268 ForceSendFields []string `json:"-"`
4269
4270
4271
4272
4273 NullFields []string `json:"-"`
4274 }
4275
4276 func (s *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec) MarshalJSON() ([]byte, error) {
4277 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpec
4278 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4279 }
4280
4281
4282
4283
4284 type GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec struct {
4285
4286
4287
4288
4289
4290
4291
4292 MaxExtractiveAnswerCount int64 `json:"maxExtractiveAnswerCount,omitempty"`
4293
4294
4295
4296
4297
4298
4299
4300
4301
4302 MaxExtractiveSegmentCount int64 `json:"maxExtractiveSegmentCount,omitempty"`
4303
4304
4305 NumNextSegments int64 `json:"numNextSegments,omitempty"`
4306
4307
4308
4309 NumPreviousSegments int64 `json:"numPreviousSegments,omitempty"`
4310
4311
4312
4313
4314 ReturnExtractiveSegmentScore bool `json:"returnExtractiveSegmentScore,omitempty"`
4315
4316
4317
4318
4319
4320 ForceSendFields []string `json:"-"`
4321
4322
4323
4324
4325 NullFields []string `json:"-"`
4326 }
4327
4328 func (s *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec) MarshalJSON() ([]byte, error) {
4329 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecExtractiveContentSpec
4330 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4331 }
4332
4333
4334
4335 type GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec struct {
4336
4337
4338
4339 MaxSnippetCount int64 `json:"maxSnippetCount,omitempty"`
4340
4341
4342 ReferenceOnly bool `json:"referenceOnly,omitempty"`
4343
4344
4345
4346
4347 ReturnSnippet bool `json:"returnSnippet,omitempty"`
4348
4349
4350
4351
4352
4353 ForceSendFields []string `json:"-"`
4354
4355
4356
4357
4358 NullFields []string `json:"-"`
4359 }
4360
4361 func (s *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec) MarshalJSON() ([]byte, error) {
4362 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSnippetSpec
4363 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4364 }
4365
4366
4367
4368 type GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec struct {
4369
4370
4371
4372
4373
4374
4375
4376
4377 IgnoreAdversarialQuery bool `json:"ignoreAdversarialQuery,omitempty"`
4378
4379
4380
4381
4382
4383
4384
4385
4386
4387 IgnoreNonSummarySeekingQuery bool `json:"ignoreNonSummarySeekingQuery,omitempty"`
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397
4398 IncludeCitations bool `json:"includeCitations,omitempty"`
4399
4400
4401
4402 LanguageCode string `json:"languageCode,omitempty"`
4403
4404
4405 ModelPromptSpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec `json:"modelPromptSpec,omitempty"`
4406
4407
4408 ModelSpec *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec `json:"modelSpec,omitempty"`
4409
4410
4411
4412
4413
4414
4415 SummaryResultCount int64 `json:"summaryResultCount,omitempty"`
4416
4417
4418
4419
4420
4421 UseSemanticChunks bool `json:"useSemanticChunks,omitempty"`
4422
4423
4424
4425
4426
4427 ForceSendFields []string `json:"-"`
4428
4429
4430
4431
4432 NullFields []string `json:"-"`
4433 }
4434
4435 func (s *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec) MarshalJSON() ([]byte, error) {
4436 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpec
4437 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4438 }
4439
4440
4441
4442 type GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec struct {
4443
4444
4445 Preamble string `json:"preamble,omitempty"`
4446
4447
4448
4449
4450
4451 ForceSendFields []string `json:"-"`
4452
4453
4454
4455
4456 NullFields []string `json:"-"`
4457 }
4458
4459 func (s *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec) MarshalJSON() ([]byte, error) {
4460 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelPromptSpec
4461 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4462 }
4463
4464
4465
4466 type GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec struct {
4467
4468
4469
4470
4471
4472
4473
4474
4475 Version string `json:"version,omitempty"`
4476
4477
4478
4479
4480
4481 ForceSendFields []string `json:"-"`
4482
4483
4484
4485
4486 NullFields []string `json:"-"`
4487 }
4488
4489 func (s *GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec) MarshalJSON() ([]byte, error) {
4490 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestContentSearchSpecSummarySpecModelSpec
4491 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4492 }
4493
4494
4495
4496 type GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec struct {
4497
4498
4499
4500 DataStore string `json:"dataStore,omitempty"`
4501
4502
4503
4504
4505
4506 ForceSendFields []string `json:"-"`
4507
4508
4509
4510
4511 NullFields []string `json:"-"`
4512 }
4513
4514 func (s *GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec) MarshalJSON() ([]byte, error) {
4515 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestDataStoreSpec
4516 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4517 }
4518
4519
4520
4521 type GoogleCloudDiscoveryengineV1SearchRequestFacetSpec struct {
4522
4523
4524
4525
4526
4527
4528
4529
4530
4531
4532
4533
4534
4535
4536
4537
4538
4539
4540 EnableDynamicPosition bool `json:"enableDynamicPosition,omitempty"`
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552
4553
4554
4555
4556
4557
4558 ExcludedFilterKeys []string `json:"excludedFilterKeys,omitempty"`
4559
4560 FacetKey *GoogleCloudDiscoveryengineV1SearchRequestFacetSpecFacetKey `json:"facetKey,omitempty"`
4561
4562
4563
4564
4565 Limit int64 `json:"limit,omitempty"`
4566
4567
4568
4569
4570
4571 ForceSendFields []string `json:"-"`
4572
4573
4574
4575
4576 NullFields []string `json:"-"`
4577 }
4578
4579 func (s *GoogleCloudDiscoveryengineV1SearchRequestFacetSpec) MarshalJSON() ([]byte, error) {
4580 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestFacetSpec
4581 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4582 }
4583
4584
4585
4586 type GoogleCloudDiscoveryengineV1SearchRequestFacetSpecFacetKey struct {
4587
4588
4589 CaseInsensitive bool `json:"caseInsensitive,omitempty"`
4590
4591
4592
4593
4594
4595 Contains []string `json:"contains,omitempty"`
4596
4597
4598
4599 Intervals []*GoogleCloudDiscoveryengineV1Interval `json:"intervals,omitempty"`
4600
4601
4602
4603 Key string `json:"key,omitempty"`
4604
4605
4606
4607
4608
4609
4610
4611 OrderBy string `json:"orderBy,omitempty"`
4612
4613
4614
4615
4616
4617 Prefixes []string `json:"prefixes,omitempty"`
4618
4619
4620
4621
4622
4623 RestrictedValues []string `json:"restrictedValues,omitempty"`
4624
4625
4626
4627
4628
4629 ForceSendFields []string `json:"-"`
4630
4631
4632
4633
4634 NullFields []string `json:"-"`
4635 }
4636
4637 func (s *GoogleCloudDiscoveryengineV1SearchRequestFacetSpecFacetKey) MarshalJSON() ([]byte, error) {
4638 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestFacetSpecFacetKey
4639 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4640 }
4641
4642
4643
4644 type GoogleCloudDiscoveryengineV1SearchRequestImageQuery struct {
4645
4646
4647 ImageBytes string `json:"imageBytes,omitempty"`
4648
4649
4650
4651
4652
4653 ForceSendFields []string `json:"-"`
4654
4655
4656
4657
4658 NullFields []string `json:"-"`
4659 }
4660
4661 func (s *GoogleCloudDiscoveryengineV1SearchRequestImageQuery) MarshalJSON() ([]byte, error) {
4662 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestImageQuery
4663 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4664 }
4665
4666
4667
4668 type GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec struct {
4669
4670
4671
4672
4673
4674
4675
4676
4677
4678 Condition string `json:"condition,omitempty"`
4679
4680
4681
4682 PinUnexpandedResults bool `json:"pinUnexpandedResults,omitempty"`
4683
4684
4685
4686
4687
4688 ForceSendFields []string `json:"-"`
4689
4690
4691
4692
4693 NullFields []string `json:"-"`
4694 }
4695
4696 func (s *GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec) MarshalJSON() ([]byte, error) {
4697 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestQueryExpansionSpec
4698 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4699 }
4700
4701
4702
4703 type GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec struct {
4704
4705
4706
4707
4708
4709
4710
4711
4712
4713
4714
4715 Mode string `json:"mode,omitempty"`
4716
4717
4718
4719
4720
4721 ForceSendFields []string `json:"-"`
4722
4723
4724
4725
4726 NullFields []string `json:"-"`
4727 }
4728
4729 func (s *GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec) MarshalJSON() ([]byte, error) {
4730 type NoMethod GoogleCloudDiscoveryengineV1SearchRequestSpellCorrectionSpec
4731 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4732 }
4733
4734
4735
4736 type GoogleCloudDiscoveryengineV1SearchResponse struct {
4737
4738
4739
4740 AttributionToken string `json:"attributionToken,omitempty"`
4741
4742
4743
4744 CorrectedQuery string `json:"correctedQuery,omitempty"`
4745
4746 Facets []*GoogleCloudDiscoveryengineV1SearchResponseFacet `json:"facets,omitempty"`
4747
4748
4749
4750 NextPageToken string `json:"nextPageToken,omitempty"`
4751
4752 QueryExpansionInfo *GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo `json:"queryExpansionInfo,omitempty"`
4753
4754
4755
4756 RedirectUri string `json:"redirectUri,omitempty"`
4757
4758 Results []*GoogleCloudDiscoveryengineV1SearchResponseSearchResult `json:"results,omitempty"`
4759
4760
4761 Summary *GoogleCloudDiscoveryengineV1SearchResponseSummary `json:"summary,omitempty"`
4762
4763
4764
4765 TotalSize int64 `json:"totalSize,omitempty"`
4766
4767
4768 googleapi.ServerResponse `json:"-"`
4769
4770
4771
4772
4773
4774 ForceSendFields []string `json:"-"`
4775
4776
4777
4778
4779 NullFields []string `json:"-"`
4780 }
4781
4782 func (s *GoogleCloudDiscoveryengineV1SearchResponse) MarshalJSON() ([]byte, error) {
4783 type NoMethod GoogleCloudDiscoveryengineV1SearchResponse
4784 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4785 }
4786
4787
4788 type GoogleCloudDiscoveryengineV1SearchResponseFacet struct {
4789
4790 DynamicFacet bool `json:"dynamicFacet,omitempty"`
4791
4792
4793 Key string `json:"key,omitempty"`
4794
4795 Values []*GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue `json:"values,omitempty"`
4796
4797
4798
4799
4800
4801 ForceSendFields []string `json:"-"`
4802
4803
4804
4805
4806 NullFields []string `json:"-"`
4807 }
4808
4809 func (s *GoogleCloudDiscoveryengineV1SearchResponseFacet) MarshalJSON() ([]byte, error) {
4810 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseFacet
4811 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4812 }
4813
4814
4815
4816 type GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue struct {
4817
4818 Count int64 `json:"count,omitempty,string"`
4819
4820
4821 Interval *GoogleCloudDiscoveryengineV1Interval `json:"interval,omitempty"`
4822
4823 Value string `json:"value,omitempty"`
4824
4825
4826
4827
4828
4829 ForceSendFields []string `json:"-"`
4830
4831
4832
4833
4834 NullFields []string `json:"-"`
4835 }
4836
4837 func (s *GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue) MarshalJSON() ([]byte, error) {
4838 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseFacetFacetValue
4839 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4840 }
4841
4842
4843
4844 type GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo struct {
4845
4846 ExpandedQuery bool `json:"expandedQuery,omitempty"`
4847
4848
4849
4850 PinnedResultCount int64 `json:"pinnedResultCount,omitempty,string"`
4851
4852
4853
4854
4855
4856 ForceSendFields []string `json:"-"`
4857
4858
4859
4860
4861 NullFields []string `json:"-"`
4862 }
4863
4864 func (s *GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo) MarshalJSON() ([]byte, error) {
4865 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseQueryExpansionInfo
4866 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4867 }
4868
4869
4870
4871 type GoogleCloudDiscoveryengineV1SearchResponseSearchResult struct {
4872
4873
4874 Document *GoogleCloudDiscoveryengineV1Document `json:"document,omitempty"`
4875
4876 Id string `json:"id,omitempty"`
4877
4878
4879
4880
4881
4882 ForceSendFields []string `json:"-"`
4883
4884
4885
4886
4887 NullFields []string `json:"-"`
4888 }
4889
4890 func (s *GoogleCloudDiscoveryengineV1SearchResponseSearchResult) MarshalJSON() ([]byte, error) {
4891 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSearchResult
4892 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4893 }
4894
4895
4896
4897 type GoogleCloudDiscoveryengineV1SearchResponseSummary struct {
4898
4899
4900 SafetyAttributes *GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes `json:"safetyAttributes,omitempty"`
4901
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911
4912
4913
4914
4915
4916
4917
4918
4919
4920
4921 SummarySkippedReasons []string `json:"summarySkippedReasons,omitempty"`
4922
4923 SummaryText string `json:"summaryText,omitempty"`
4924
4925 SummaryWithMetadata *GoogleCloudDiscoveryengineV1SearchResponseSummarySummaryWithMetadata `json:"summaryWithMetadata,omitempty"`
4926
4927
4928
4929
4930
4931 ForceSendFields []string `json:"-"`
4932
4933
4934
4935
4936 NullFields []string `json:"-"`
4937 }
4938
4939 func (s *GoogleCloudDiscoveryengineV1SearchResponseSummary) MarshalJSON() ([]byte, error) {
4940 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummary
4941 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4942 }
4943
4944
4945
4946 type GoogleCloudDiscoveryengineV1SearchResponseSummaryCitation struct {
4947
4948 EndIndex int64 `json:"endIndex,omitempty,string"`
4949
4950 Sources []*GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationSource `json:"sources,omitempty"`
4951
4952
4953 StartIndex int64 `json:"startIndex,omitempty,string"`
4954
4955
4956
4957
4958
4959 ForceSendFields []string `json:"-"`
4960
4961
4962
4963
4964 NullFields []string `json:"-"`
4965 }
4966
4967 func (s *GoogleCloudDiscoveryengineV1SearchResponseSummaryCitation) MarshalJSON() ([]byte, error) {
4968 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummaryCitation
4969 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4970 }
4971
4972
4973
4974 type GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationMetadata struct {
4975
4976 Citations []*GoogleCloudDiscoveryengineV1SearchResponseSummaryCitation `json:"citations,omitempty"`
4977
4978
4979
4980
4981
4982 ForceSendFields []string `json:"-"`
4983
4984
4985
4986
4987 NullFields []string `json:"-"`
4988 }
4989
4990 func (s *GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationMetadata) MarshalJSON() ([]byte, error) {
4991 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationMetadata
4992 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4993 }
4994
4995
4996
4997 type GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationSource struct {
4998
4999
5000
5001 ReferenceIndex int64 `json:"referenceIndex,omitempty,string"`
5002
5003
5004
5005
5006
5007 ForceSendFields []string `json:"-"`
5008
5009
5010
5011
5012 NullFields []string `json:"-"`
5013 }
5014
5015 func (s *GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationSource) MarshalJSON() ([]byte, error) {
5016 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationSource
5017 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5018 }
5019
5020
5021
5022 type GoogleCloudDiscoveryengineV1SearchResponseSummaryReference struct {
5023
5024 ChunkContents []*GoogleCloudDiscoveryengineV1SearchResponseSummaryReferenceChunkContent `json:"chunkContents,omitempty"`
5025
5026
5027
5028 Document string `json:"document,omitempty"`
5029
5030 Title string `json:"title,omitempty"`
5031
5032 Uri string `json:"uri,omitempty"`
5033
5034
5035
5036
5037
5038 ForceSendFields []string `json:"-"`
5039
5040
5041
5042
5043 NullFields []string `json:"-"`
5044 }
5045
5046 func (s *GoogleCloudDiscoveryengineV1SearchResponseSummaryReference) MarshalJSON() ([]byte, error) {
5047 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummaryReference
5048 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5049 }
5050
5051
5052
5053 type GoogleCloudDiscoveryengineV1SearchResponseSummaryReferenceChunkContent struct {
5054
5055 Content string `json:"content,omitempty"`
5056
5057 PageIdentifier string `json:"pageIdentifier,omitempty"`
5058
5059
5060
5061
5062
5063 ForceSendFields []string `json:"-"`
5064
5065
5066
5067
5068 NullFields []string `json:"-"`
5069 }
5070
5071 func (s *GoogleCloudDiscoveryengineV1SearchResponseSummaryReferenceChunkContent) MarshalJSON() ([]byte, error) {
5072 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummaryReferenceChunkContent
5073 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5074 }
5075
5076
5077
5078 type GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes struct {
5079
5080
5081 Categories []string `json:"categories,omitempty"`
5082
5083
5084 Scores []float64 `json:"scores,omitempty"`
5085
5086
5087
5088
5089
5090 ForceSendFields []string `json:"-"`
5091
5092
5093
5094
5095 NullFields []string `json:"-"`
5096 }
5097
5098 func (s *GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes) MarshalJSON() ([]byte, error) {
5099 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes
5100 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5101 }
5102
5103 func (s *GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes) UnmarshalJSON(data []byte) error {
5104 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummarySafetyAttributes
5105 var s1 struct {
5106 Scores []gensupport.JSONFloat64 `json:"scores"`
5107 *NoMethod
5108 }
5109 s1.NoMethod = (*NoMethod)(s)
5110 if err := json.Unmarshal(data, &s1); err != nil {
5111 return err
5112 }
5113 s.Scores = make([]float64, len(s1.Scores))
5114 for i := range s1.Scores {
5115 s.Scores[i] = float64(s1.Scores[i])
5116 }
5117 return nil
5118 }
5119
5120
5121
5122 type GoogleCloudDiscoveryengineV1SearchResponseSummarySummaryWithMetadata struct {
5123
5124 CitationMetadata *GoogleCloudDiscoveryengineV1SearchResponseSummaryCitationMetadata `json:"citationMetadata,omitempty"`
5125
5126 References []*GoogleCloudDiscoveryengineV1SearchResponseSummaryReference `json:"references,omitempty"`
5127
5128 Summary string `json:"summary,omitempty"`
5129
5130
5131
5132
5133
5134 ForceSendFields []string `json:"-"`
5135
5136
5137
5138
5139 NullFields []string `json:"-"`
5140 }
5141
5142 func (s *GoogleCloudDiscoveryengineV1SearchResponseSummarySummaryWithMetadata) MarshalJSON() ([]byte, error) {
5143 type NoMethod GoogleCloudDiscoveryengineV1SearchResponseSummarySummaryWithMetadata
5144 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5145 }
5146
5147
5148
5149
5150 type GoogleCloudDiscoveryengineV1SiteSearchEngine struct {
5151
5152
5153 Name string `json:"name,omitempty"`
5154
5155
5156 googleapi.ServerResponse `json:"-"`
5157
5158
5159
5160
5161
5162 ForceSendFields []string `json:"-"`
5163
5164
5165
5166
5167 NullFields []string `json:"-"`
5168 }
5169
5170 func (s *GoogleCloudDiscoveryengineV1SiteSearchEngine) MarshalJSON() ([]byte, error) {
5171 type NoMethod GoogleCloudDiscoveryengineV1SiteSearchEngine
5172 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5173 }
5174
5175
5176
5177 type GoogleCloudDiscoveryengineV1SiteVerificationInfo struct {
5178
5179
5180
5181
5182
5183
5184
5185
5186
5187 SiteVerificationState string `json:"siteVerificationState,omitempty"`
5188
5189 VerifyTime string `json:"verifyTime,omitempty"`
5190
5191
5192
5193
5194
5195 ForceSendFields []string `json:"-"`
5196
5197
5198
5199
5200 NullFields []string `json:"-"`
5201 }
5202
5203 func (s *GoogleCloudDiscoveryengineV1SiteVerificationInfo) MarshalJSON() ([]byte, error) {
5204 type NoMethod GoogleCloudDiscoveryengineV1SiteVerificationInfo
5205 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5206 }
5207
5208
5209
5210 type GoogleCloudDiscoveryengineV1SpannerSource struct {
5211
5212 DatabaseId string `json:"databaseId,omitempty"`
5213
5214
5215
5216 EnableDataBoost bool `json:"enableDataBoost,omitempty"`
5217
5218 InstanceId string `json:"instanceId,omitempty"`
5219
5220
5221
5222 ProjectId string `json:"projectId,omitempty"`
5223
5224
5225 TableId string `json:"tableId,omitempty"`
5226
5227
5228
5229
5230
5231 ForceSendFields []string `json:"-"`
5232
5233
5234
5235
5236 NullFields []string `json:"-"`
5237 }
5238
5239 func (s *GoogleCloudDiscoveryengineV1SpannerSource) MarshalJSON() ([]byte, error) {
5240 type NoMethod GoogleCloudDiscoveryengineV1SpannerSource
5241 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5242 }
5243
5244
5245
5246
5247 type GoogleCloudDiscoveryengineV1SuggestionDenyListEntry struct {
5248
5249
5250 BlockPhrase string `json:"blockPhrase,omitempty"`
5251
5252
5253
5254
5255
5256
5257
5258
5259
5260 MatchOperator string `json:"matchOperator,omitempty"`
5261
5262
5263
5264
5265
5266 ForceSendFields []string `json:"-"`
5267
5268
5269
5270
5271 NullFields []string `json:"-"`
5272 }
5273
5274 func (s *GoogleCloudDiscoveryengineV1SuggestionDenyListEntry) MarshalJSON() ([]byte, error) {
5275 type NoMethod GoogleCloudDiscoveryengineV1SuggestionDenyListEntry
5276 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5277 }
5278
5279
5280
5281 type GoogleCloudDiscoveryengineV1TargetSite struct {
5282
5283
5284
5285
5286
5287
5288 ExactMatch bool `json:"exactMatch,omitempty"`
5289
5290 FailureReason *GoogleCloudDiscoveryengineV1TargetSiteFailureReason `json:"failureReason,omitempty"`
5291
5292
5293 GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
5294
5295
5296
5297
5298
5299
5300
5301
5302
5303
5304
5305
5306 IndexingStatus string `json:"indexingStatus,omitempty"`
5307
5308
5309
5310
5311 Name string `json:"name,omitempty"`
5312
5313
5314 ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
5315
5316 RootDomainUri string `json:"rootDomainUri,omitempty"`
5317
5318
5319 SiteVerificationInfo *GoogleCloudDiscoveryengineV1SiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
5320
5321
5322
5323
5324
5325
5326
5327
5328 Type string `json:"type,omitempty"`
5329
5330 UpdateTime string `json:"updateTime,omitempty"`
5331
5332
5333 googleapi.ServerResponse `json:"-"`
5334
5335
5336
5337
5338
5339 ForceSendFields []string `json:"-"`
5340
5341
5342
5343
5344 NullFields []string `json:"-"`
5345 }
5346
5347 func (s *GoogleCloudDiscoveryengineV1TargetSite) MarshalJSON() ([]byte, error) {
5348 type NoMethod GoogleCloudDiscoveryengineV1TargetSite
5349 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5350 }
5351
5352
5353
5354 type GoogleCloudDiscoveryengineV1TargetSiteFailureReason struct {
5355
5356 QuotaFailure *GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
5357
5358
5359
5360
5361
5362 ForceSendFields []string `json:"-"`
5363
5364
5365
5366
5367 NullFields []string `json:"-"`
5368 }
5369
5370 func (s *GoogleCloudDiscoveryengineV1TargetSiteFailureReason) MarshalJSON() ([]byte, error) {
5371 type NoMethod GoogleCloudDiscoveryengineV1TargetSiteFailureReason
5372 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5373 }
5374
5375
5376
5377 type GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure struct {
5378
5379
5380 TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
5381
5382
5383
5384
5385
5386 ForceSendFields []string `json:"-"`
5387
5388
5389
5390
5391 NullFields []string `json:"-"`
5392 }
5393
5394 func (s *GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
5395 type NoMethod GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure
5396 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5397 }
5398
5399
5400 type GoogleCloudDiscoveryengineV1TextInput struct {
5401
5402 Context *GoogleCloudDiscoveryengineV1ConversationContext `json:"context,omitempty"`
5403
5404 Input string `json:"input,omitempty"`
5405
5406
5407
5408
5409
5410 ForceSendFields []string `json:"-"`
5411
5412
5413
5414
5415 NullFields []string `json:"-"`
5416 }
5417
5418 func (s *GoogleCloudDiscoveryengineV1TextInput) MarshalJSON() ([]byte, error) {
5419 type NoMethod GoogleCloudDiscoveryengineV1TextInput
5420 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5421 }
5422
5423
5424
5425 type GoogleCloudDiscoveryengineV1TransactionInfo struct {
5426
5427
5428
5429 Cost float64 `json:"cost,omitempty"`
5430
5431 Currency string `json:"currency,omitempty"`
5432
5433
5434
5435
5436
5437
5438
5439
5440 DiscountValue float64 `json:"discountValue,omitempty"`
5441
5442 Tax float64 `json:"tax,omitempty"`
5443
5444 TransactionId string `json:"transactionId,omitempty"`
5445
5446
5447
5448 Value float64 `json:"value,omitempty"`
5449
5450
5451
5452
5453
5454 ForceSendFields []string `json:"-"`
5455
5456
5457
5458
5459 NullFields []string `json:"-"`
5460 }
5461
5462 func (s *GoogleCloudDiscoveryengineV1TransactionInfo) MarshalJSON() ([]byte, error) {
5463 type NoMethod GoogleCloudDiscoveryengineV1TransactionInfo
5464 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5465 }
5466
5467 func (s *GoogleCloudDiscoveryengineV1TransactionInfo) UnmarshalJSON(data []byte) error {
5468 type NoMethod GoogleCloudDiscoveryengineV1TransactionInfo
5469 var s1 struct {
5470 Cost gensupport.JSONFloat64 `json:"cost"`
5471 DiscountValue gensupport.JSONFloat64 `json:"discountValue"`
5472 Tax gensupport.JSONFloat64 `json:"tax"`
5473 Value gensupport.JSONFloat64 `json:"value"`
5474 *NoMethod
5475 }
5476 s1.NoMethod = (*NoMethod)(s)
5477 if err := json.Unmarshal(data, &s1); err != nil {
5478 return err
5479 }
5480 s.Cost = float64(s1.Cost)
5481 s.DiscountValue = float64(s1.DiscountValue)
5482 s.Tax = float64(s1.Tax)
5483 s.Value = float64(s1.Value)
5484 return nil
5485 }
5486
5487
5488
5489 type GoogleCloudDiscoveryengineV1UpdateSchemaMetadata struct {
5490
5491 CreateTime string `json:"createTime,omitempty"`
5492
5493
5494 UpdateTime string `json:"updateTime,omitempty"`
5495
5496
5497
5498
5499
5500 ForceSendFields []string `json:"-"`
5501
5502
5503
5504
5505 NullFields []string `json:"-"`
5506 }
5507
5508 func (s *GoogleCloudDiscoveryengineV1UpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
5509 type NoMethod GoogleCloudDiscoveryengineV1UpdateSchemaMetadata
5510 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5511 }
5512
5513
5514
5515
5516 type GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata struct {
5517
5518 CreateTime string `json:"createTime,omitempty"`
5519
5520
5521 UpdateTime string `json:"updateTime,omitempty"`
5522
5523
5524
5525
5526
5527 ForceSendFields []string `json:"-"`
5528
5529
5530
5531
5532 NullFields []string `json:"-"`
5533 }
5534
5535 func (s *GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
5536 type NoMethod GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata
5537 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5538 }
5539
5540
5541
5542
5543 type GoogleCloudDiscoveryengineV1UserEvent struct {
5544
5545
5546
5547
5548
5549
5550
5551
5552
5553
5554
5555
5556
5557
5558
5559
5560
5561
5562 Attributes map[string]GoogleCloudDiscoveryengineV1CustomAttribute `json:"attributes,omitempty"`
5563
5564
5565
5566
5567
5568
5569
5570
5571
5572
5573
5574
5575
5576 AttributionToken string `json:"attributionToken,omitempty"`
5577
5578
5579
5580 CompletionInfo *GoogleCloudDiscoveryengineV1CompletionInfo `json:"completionInfo,omitempty"`
5581
5582
5583
5584
5585
5586
5587
5588 DirectUserRequest bool `json:"directUserRequest,omitempty"`
5589
5590
5591
5592
5593
5594
5595
5596
5597 Documents []*GoogleCloudDiscoveryengineV1DocumentInfo `json:"documents,omitempty"`
5598
5599
5600 EventTime string `json:"eventTime,omitempty"`
5601
5602
5603
5604
5605
5606
5607
5608
5609
5610 EventType string `json:"eventType,omitempty"`
5611
5612
5613
5614
5615
5616
5617
5618
5619
5620
5621 Filter string `json:"filter,omitempty"`
5622
5623 MediaInfo *GoogleCloudDiscoveryengineV1MediaInfo `json:"mediaInfo,omitempty"`
5624
5625
5626 PageInfo *GoogleCloudDiscoveryengineV1PageInfo `json:"pageInfo,omitempty"`
5627
5628 Panel *GoogleCloudDiscoveryengineV1PanelInfo `json:"panel,omitempty"`
5629
5630
5631 PromotionIds []string `json:"promotionIds,omitempty"`
5632
5633
5634 SearchInfo *GoogleCloudDiscoveryengineV1SearchInfo `json:"searchInfo,omitempty"`
5635
5636
5637
5638
5639
5640
5641 SessionId string `json:"sessionId,omitempty"`
5642
5643
5644
5645 TagIds []string `json:"tagIds,omitempty"`
5646
5647
5648 TransactionInfo *GoogleCloudDiscoveryengineV1TransactionInfo `json:"transactionInfo,omitempty"`
5649
5650 UserInfo *GoogleCloudDiscoveryengineV1UserInfo `json:"userInfo,omitempty"`
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662 UserPseudoId string `json:"userPseudoId,omitempty"`
5663
5664
5665 googleapi.ServerResponse `json:"-"`
5666
5667
5668
5669
5670
5671 ForceSendFields []string `json:"-"`
5672
5673
5674
5675
5676 NullFields []string `json:"-"`
5677 }
5678
5679 func (s *GoogleCloudDiscoveryengineV1UserEvent) MarshalJSON() ([]byte, error) {
5680 type NoMethod GoogleCloudDiscoveryengineV1UserEvent
5681 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5682 }
5683
5684
5685 type GoogleCloudDiscoveryengineV1UserInfo struct {
5686
5687
5688
5689
5690
5691
5692 UserAgent string `json:"userAgent,omitempty"`
5693
5694
5695
5696
5697
5698
5699
5700 UserId string `json:"userId,omitempty"`
5701
5702
5703
5704
5705
5706 ForceSendFields []string `json:"-"`
5707
5708
5709
5710
5711 NullFields []string `json:"-"`
5712 }
5713
5714 func (s *GoogleCloudDiscoveryengineV1UserInfo) MarshalJSON() ([]byte, error) {
5715 type NoMethod GoogleCloudDiscoveryengineV1UserInfo
5716 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5717 }
5718
5719
5720 type GoogleCloudDiscoveryengineV1alphaAclConfig struct {
5721
5722 IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"`
5723
5724
5725
5726 Name string `json:"name,omitempty"`
5727
5728
5729
5730
5731
5732 ForceSendFields []string `json:"-"`
5733
5734
5735
5736
5737 NullFields []string `json:"-"`
5738 }
5739
5740 func (s *GoogleCloudDiscoveryengineV1alphaAclConfig) MarshalJSON() ([]byte, error) {
5741 type NoMethod GoogleCloudDiscoveryengineV1alphaAclConfig
5742 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5743 }
5744
5745
5746 type GoogleCloudDiscoveryengineV1alphaAnswer struct {
5747
5748
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 AnswerSkippedReasons []string `json:"answerSkippedReasons,omitempty"`
5762
5763 AnswerText string `json:"answerText,omitempty"`
5764
5765 Citations []*GoogleCloudDiscoveryengineV1alphaAnswerCitation `json:"citations,omitempty"`
5766
5767 CompleteTime string `json:"completeTime,omitempty"`
5768
5769 CreateTime string `json:"createTime,omitempty"`
5770
5771
5772
5773 Name string `json:"name,omitempty"`
5774
5775 QueryUnderstandingInfo *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo `json:"queryUnderstandingInfo,omitempty"`
5776
5777 References []*GoogleCloudDiscoveryengineV1alphaAnswerReference `json:"references,omitempty"`
5778
5779 RelatedQuestions []string `json:"relatedQuestions,omitempty"`
5780
5781
5782
5783
5784
5785
5786
5787 State string `json:"state,omitempty"`
5788
5789 Steps []*GoogleCloudDiscoveryengineV1alphaAnswerStep `json:"steps,omitempty"`
5790
5791
5792
5793
5794
5795 ForceSendFields []string `json:"-"`
5796
5797
5798
5799
5800 NullFields []string `json:"-"`
5801 }
5802
5803 func (s *GoogleCloudDiscoveryengineV1alphaAnswer) MarshalJSON() ([]byte, error) {
5804 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswer
5805 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5806 }
5807
5808
5809
5810 type GoogleCloudDiscoveryengineV1alphaAnswerCitation struct {
5811
5812 EndIndex int64 `json:"endIndex,omitempty,string"`
5813
5814 Sources []*GoogleCloudDiscoveryengineV1alphaAnswerCitationSource `json:"sources,omitempty"`
5815
5816
5817 StartIndex int64 `json:"startIndex,omitempty,string"`
5818
5819
5820
5821
5822
5823 ForceSendFields []string `json:"-"`
5824
5825
5826
5827
5828 NullFields []string `json:"-"`
5829 }
5830
5831 func (s *GoogleCloudDiscoveryengineV1alphaAnswerCitation) MarshalJSON() ([]byte, error) {
5832 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerCitation
5833 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5834 }
5835
5836
5837 type GoogleCloudDiscoveryengineV1alphaAnswerCitationSource struct {
5838
5839 ReferenceId string `json:"referenceId,omitempty"`
5840
5841
5842
5843
5844
5845 ForceSendFields []string `json:"-"`
5846
5847
5848
5849
5850 NullFields []string `json:"-"`
5851 }
5852
5853 func (s *GoogleCloudDiscoveryengineV1alphaAnswerCitationSource) MarshalJSON() ([]byte, error) {
5854 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerCitationSource
5855 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5856 }
5857
5858
5859
5860 type GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo struct {
5861
5862 QueryClassificationInfo []*GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo `json:"queryClassificationInfo,omitempty"`
5863
5864
5865
5866
5867
5868 ForceSendFields []string `json:"-"`
5869
5870
5871
5872
5873 NullFields []string `json:"-"`
5874 }
5875
5876 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo) MarshalJSON() ([]byte, error) {
5877 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo
5878 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5879 }
5880
5881
5882
5883 type GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo struct {
5884
5885 Positive bool `json:"positive,omitempty"`
5886
5887
5888
5889
5890
5891
5892 Type string `json:"type,omitempty"`
5893
5894
5895
5896
5897
5898 ForceSendFields []string `json:"-"`
5899
5900
5901
5902
5903 NullFields []string `json:"-"`
5904 }
5905
5906 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo) MarshalJSON() ([]byte, error) {
5907 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo
5908 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5909 }
5910
5911
5912 type GoogleCloudDiscoveryengineV1alphaAnswerReference struct {
5913
5914 ChunkInfo *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo `json:"chunkInfo,omitempty"`
5915
5916 UnstructuredDocumentInfo *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo `json:"unstructuredDocumentInfo,omitempty"`
5917
5918
5919
5920
5921
5922 ForceSendFields []string `json:"-"`
5923
5924
5925
5926
5927 NullFields []string `json:"-"`
5928 }
5929
5930 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReference) MarshalJSON() ([]byte, error) {
5931 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReference
5932 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5933 }
5934
5935
5936
5937 type GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo struct {
5938
5939 Chunk string `json:"chunk,omitempty"`
5940
5941 Content string `json:"content,omitempty"`
5942
5943 DocumentMetadata *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata `json:"documentMetadata,omitempty"`
5944
5945 RelevanceScore float64 `json:"relevanceScore,omitempty"`
5946
5947
5948
5949
5950
5951 ForceSendFields []string `json:"-"`
5952
5953
5954
5955
5956 NullFields []string `json:"-"`
5957 }
5958
5959 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo) MarshalJSON() ([]byte, error) {
5960 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
5961 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5962 }
5963
5964 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo) UnmarshalJSON(data []byte) error {
5965 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
5966 var s1 struct {
5967 RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
5968 *NoMethod
5969 }
5970 s1.NoMethod = (*NoMethod)(s)
5971 if err := json.Unmarshal(data, &s1); err != nil {
5972 return err
5973 }
5974 s.RelevanceScore = float64(s1.RelevanceScore)
5975 return nil
5976 }
5977
5978
5979
5980 type GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata struct {
5981
5982 Document string `json:"document,omitempty"`
5983
5984 PageIdentifier string `json:"pageIdentifier,omitempty"`
5985
5986 Title string `json:"title,omitempty"`
5987
5988 Uri string `json:"uri,omitempty"`
5989
5990
5991
5992
5993
5994 ForceSendFields []string `json:"-"`
5995
5996
5997
5998
5999 NullFields []string `json:"-"`
6000 }
6001
6002 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata) MarshalJSON() ([]byte, error) {
6003 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata
6004 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6005 }
6006
6007
6008
6009 type GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo struct {
6010
6011 ChunkContents []*GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent `json:"chunkContents,omitempty"`
6012
6013 Document string `json:"document,omitempty"`
6014
6015 Title string `json:"title,omitempty"`
6016
6017 Uri string `json:"uri,omitempty"`
6018
6019
6020
6021
6022
6023 ForceSendFields []string `json:"-"`
6024
6025
6026
6027
6028 NullFields []string `json:"-"`
6029 }
6030
6031 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo) MarshalJSON() ([]byte, error) {
6032 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo
6033 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6034 }
6035
6036
6037
6038 type GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent struct {
6039
6040 Content string `json:"content,omitempty"`
6041
6042 PageIdentifier string `json:"pageIdentifier,omitempty"`
6043
6044
6045
6046
6047
6048 ForceSendFields []string `json:"-"`
6049
6050
6051
6052
6053 NullFields []string `json:"-"`
6054 }
6055
6056 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent) MarshalJSON() ([]byte, error) {
6057 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent
6058 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6059 }
6060
6061
6062 type GoogleCloudDiscoveryengineV1alphaAnswerStep struct {
6063
6064 Actions []*GoogleCloudDiscoveryengineV1alphaAnswerStepAction `json:"actions,omitempty"`
6065
6066 Description string `json:"description,omitempty"`
6067
6068
6069
6070
6071
6072
6073
6074 State string `json:"state,omitempty"`
6075
6076 Thought string `json:"thought,omitempty"`
6077
6078
6079
6080
6081
6082 ForceSendFields []string `json:"-"`
6083
6084
6085
6086
6087 NullFields []string `json:"-"`
6088 }
6089
6090 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStep) MarshalJSON() ([]byte, error) {
6091 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStep
6092 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6093 }
6094
6095
6096 type GoogleCloudDiscoveryengineV1alphaAnswerStepAction struct {
6097
6098 Observation *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation `json:"observation,omitempty"`
6099
6100 SearchAction *GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction `json:"searchAction,omitempty"`
6101
6102
6103
6104
6105
6106 ForceSendFields []string `json:"-"`
6107
6108
6109
6110
6111 NullFields []string `json:"-"`
6112 }
6113
6114 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepAction) MarshalJSON() ([]byte, error) {
6115 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepAction
6116 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6117 }
6118
6119
6120 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation struct {
6121
6122
6123 SearchResults []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult `json:"searchResults,omitempty"`
6124
6125
6126
6127
6128
6129 ForceSendFields []string `json:"-"`
6130
6131
6132
6133
6134 NullFields []string `json:"-"`
6135 }
6136
6137 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation) MarshalJSON() ([]byte, error) {
6138 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation
6139 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6140 }
6141
6142 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult struct {
6143
6144
6145 ChunkInfo []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo `json:"chunkInfo,omitempty"`
6146
6147 Document string `json:"document,omitempty"`
6148
6149
6150 SnippetInfo []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo `json:"snippetInfo,omitempty"`
6151
6152 Title string `json:"title,omitempty"`
6153
6154 Uri string `json:"uri,omitempty"`
6155
6156
6157
6158
6159
6160 ForceSendFields []string `json:"-"`
6161
6162
6163
6164
6165 NullFields []string `json:"-"`
6166 }
6167
6168 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult) MarshalJSON() ([]byte, error) {
6169 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult
6170 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6171 }
6172
6173
6174
6175 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo struct {
6176
6177 Chunk string `json:"chunk,omitempty"`
6178
6179 Content string `json:"content,omitempty"`
6180
6181 RelevanceScore float64 `json:"relevanceScore,omitempty"`
6182
6183
6184
6185
6186
6187 ForceSendFields []string `json:"-"`
6188
6189
6190
6191
6192 NullFields []string `json:"-"`
6193 }
6194
6195 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo) MarshalJSON() ([]byte, error) {
6196 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
6197 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6198 }
6199
6200 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo) UnmarshalJSON(data []byte) error {
6201 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
6202 var s1 struct {
6203 RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
6204 *NoMethod
6205 }
6206 s1.NoMethod = (*NoMethod)(s)
6207 if err := json.Unmarshal(data, &s1); err != nil {
6208 return err
6209 }
6210 s.RelevanceScore = float64(s1.RelevanceScore)
6211 return nil
6212 }
6213
6214
6215
6216 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo struct {
6217
6218 Snippet string `json:"snippet,omitempty"`
6219
6220 SnippetStatus string `json:"snippetStatus,omitempty"`
6221
6222
6223
6224
6225
6226 ForceSendFields []string `json:"-"`
6227
6228
6229
6230
6231 NullFields []string `json:"-"`
6232 }
6233
6234 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo) MarshalJSON() ([]byte, error) {
6235 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo
6236 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6237 }
6238
6239
6240
6241 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction struct {
6242
6243 Query string `json:"query,omitempty"`
6244
6245
6246
6247
6248
6249 ForceSendFields []string `json:"-"`
6250
6251
6252
6253
6254 NullFields []string `json:"-"`
6255 }
6256
6257 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction) MarshalJSON() ([]byte, error) {
6258 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction
6259 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6260 }
6261
6262
6263
6264
6265
6266 type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata struct {
6267
6268 CreateTime string `json:"createTime,omitempty"`
6269
6270
6271 UpdateTime string `json:"updateTime,omitempty"`
6272
6273
6274
6275
6276
6277 ForceSendFields []string `json:"-"`
6278
6279
6280
6281
6282 NullFields []string `json:"-"`
6283 }
6284
6285 func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
6286 type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata
6287 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6288 }
6289
6290
6291
6292 type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse struct {
6293
6294 TargetSites []*GoogleCloudDiscoveryengineV1alphaTargetSite `json:"targetSites,omitempty"`
6295
6296
6297
6298
6299
6300 ForceSendFields []string `json:"-"`
6301
6302
6303
6304
6305 NullFields []string `json:"-"`
6306 }
6307
6308 func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
6309 type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse
6310 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6311 }
6312
6313
6314
6315
6316 type GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata struct {
6317
6318 CreateTime string `json:"createTime,omitempty"`
6319
6320
6321 UpdateTime string `json:"updateTime,omitempty"`
6322
6323
6324
6325
6326
6327 ForceSendFields []string `json:"-"`
6328
6329
6330
6331
6332 NullFields []string `json:"-"`
6333 }
6334
6335 func (s *GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
6336 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata
6337 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6338 }
6339
6340
6341
6342
6343 type GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata struct {
6344
6345 CreateTime string `json:"createTime,omitempty"`
6346
6347
6348 UpdateTime string `json:"updateTime,omitempty"`
6349
6350
6351
6352
6353
6354 ForceSendFields []string `json:"-"`
6355
6356
6357
6358
6359 NullFields []string `json:"-"`
6360 }
6361
6362 func (s *GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata) MarshalJSON() ([]byte, error) {
6363 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata
6364 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6365 }
6366
6367
6368
6369 type GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata struct {
6370
6371 CreateTime string `json:"createTime,omitempty"`
6372
6373
6374 UpdateTime string `json:"updateTime,omitempty"`
6375
6376
6377
6378
6379
6380 ForceSendFields []string `json:"-"`
6381
6382
6383
6384
6385 NullFields []string `json:"-"`
6386 }
6387
6388 func (s *GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata) MarshalJSON() ([]byte, error) {
6389 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata
6390 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6391 }
6392
6393
6394
6395
6396 type GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata struct {
6397
6398 CreateTime string `json:"createTime,omitempty"`
6399
6400
6401 UpdateTime string `json:"updateTime,omitempty"`
6402
6403
6404
6405
6406
6407 ForceSendFields []string `json:"-"`
6408
6409
6410
6411
6412 NullFields []string `json:"-"`
6413 }
6414
6415 func (s *GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
6416 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata
6417 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6418 }
6419
6420
6421
6422 type GoogleCloudDiscoveryengineV1alphaCustomTuningModel struct {
6423
6424 CreateTime string `json:"createTime,omitempty"`
6425
6426 DisplayName string `json:"displayName,omitempty"`
6427
6428
6429
6430
6431
6432
6433
6434
6435
6436
6437 ModelState string `json:"modelState,omitempty"`
6438 ModelVersion int64 `json:"modelVersion,omitempty,string"`
6439
6440
6441
6442
6443 Name string `json:"name,omitempty"`
6444
6445 TrainingStartTime string `json:"trainingStartTime,omitempty"`
6446
6447
6448
6449
6450
6451 ForceSendFields []string `json:"-"`
6452
6453
6454
6455
6456 NullFields []string `json:"-"`
6457 }
6458
6459 func (s *GoogleCloudDiscoveryengineV1alphaCustomTuningModel) MarshalJSON() ([]byte, error) {
6460 type NoMethod GoogleCloudDiscoveryengineV1alphaCustomTuningModel
6461 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6462 }
6463
6464
6465
6466 type GoogleCloudDiscoveryengineV1alphaDataStore struct {
6467
6468
6469
6470
6471
6472
6473
6474 AclEnabled bool `json:"aclEnabled,omitempty"`
6475
6476
6477
6478
6479
6480
6481
6482
6483 ContentConfig string `json:"contentConfig,omitempty"`
6484
6485 CreateTime string `json:"createTime,omitempty"`
6486
6487
6488 DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
6489
6490
6491
6492 DisplayName string `json:"displayName,omitempty"`
6493
6494
6495 DocumentProcessingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
6496
6497 IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"`
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507 IndustryVertical string `json:"industryVertical,omitempty"`
6508
6509
6510
6511
6512 Name string `json:"name,omitempty"`
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528 SolutionTypes []string `json:"solutionTypes,omitempty"`
6529
6530
6531
6532
6533
6534
6535
6536
6537 StartingSchema *GoogleCloudDiscoveryengineV1alphaSchema `json:"startingSchema,omitempty"`
6538
6539
6540
6541
6542
6543 ForceSendFields []string `json:"-"`
6544
6545
6546
6547
6548 NullFields []string `json:"-"`
6549 }
6550
6551 func (s *GoogleCloudDiscoveryengineV1alphaDataStore) MarshalJSON() ([]byte, error) {
6552 type NoMethod GoogleCloudDiscoveryengineV1alphaDataStore
6553 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6554 }
6555
6556
6557
6558
6559 type GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata struct {
6560
6561 CreateTime string `json:"createTime,omitempty"`
6562
6563
6564 UpdateTime string `json:"updateTime,omitempty"`
6565
6566
6567
6568
6569
6570 ForceSendFields []string `json:"-"`
6571
6572
6573
6574
6575 NullFields []string `json:"-"`
6576 }
6577
6578 func (s *GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
6579 type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata
6580 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6581 }
6582
6583
6584
6585
6586 type GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata struct {
6587
6588 CreateTime string `json:"createTime,omitempty"`
6589
6590
6591 UpdateTime string `json:"updateTime,omitempty"`
6592
6593
6594
6595
6596
6597 ForceSendFields []string `json:"-"`
6598
6599
6600
6601
6602 NullFields []string `json:"-"`
6603 }
6604
6605 func (s *GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata) MarshalJSON() ([]byte, error) {
6606 type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata
6607 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6608 }
6609
6610
6611
6612 type GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata struct {
6613
6614 CreateTime string `json:"createTime,omitempty"`
6615
6616
6617 UpdateTime string `json:"updateTime,omitempty"`
6618
6619
6620
6621
6622
6623 ForceSendFields []string `json:"-"`
6624
6625
6626
6627
6628 NullFields []string `json:"-"`
6629 }
6630
6631 func (s *GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
6632 type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata
6633 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6634 }
6635
6636
6637
6638
6639 type GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata struct {
6640
6641 CreateTime string `json:"createTime,omitempty"`
6642
6643
6644 UpdateTime string `json:"updateTime,omitempty"`
6645
6646
6647
6648
6649
6650 ForceSendFields []string `json:"-"`
6651
6652
6653
6654
6655 NullFields []string `json:"-"`
6656 }
6657
6658 func (s *GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
6659 type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata
6660 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6661 }
6662
6663
6664
6665
6666
6667 type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata struct {
6668
6669 CreateTime string `json:"createTime,omitempty"`
6670
6671
6672 UpdateTime string `json:"updateTime,omitempty"`
6673
6674
6675
6676
6677
6678 ForceSendFields []string `json:"-"`
6679
6680
6681
6682
6683 NullFields []string `json:"-"`
6684 }
6685
6686 func (s *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
6687 type NoMethod GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata
6688 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6689 }
6690
6691
6692
6693 type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchResponse struct {
6694 }
6695
6696
6697
6698
6699
6700
6701 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig struct {
6702
6703 ChunkingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig `json:"chunkingConfig,omitempty"`
6704
6705
6706
6707
6708 DefaultParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
6709
6710
6711 Name string `json:"name,omitempty"`
6712
6713
6714
6715
6716
6717
6718
6719 ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
6720
6721
6722
6723
6724
6725 ForceSendFields []string `json:"-"`
6726
6727
6728
6729
6730 NullFields []string `json:"-"`
6731 }
6732
6733 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig) MarshalJSON() ([]byte, error) {
6734 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
6735 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6736 }
6737
6738
6739
6740 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig struct {
6741
6742 LayoutBasedChunkingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig `json:"layoutBasedChunkingConfig,omitempty"`
6743
6744
6745
6746
6747
6748 ForceSendFields []string `json:"-"`
6749
6750
6751
6752
6753 NullFields []string `json:"-"`
6754 }
6755
6756 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig) MarshalJSON() ([]byte, error) {
6757 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig
6758 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6759 }
6760
6761
6762
6763 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig struct {
6764
6765
6766 ChunkSize int64 `json:"chunkSize,omitempty"`
6767
6768
6769
6770 IncludeAncestorHeadings bool `json:"includeAncestorHeadings,omitempty"`
6771
6772
6773
6774
6775
6776 ForceSendFields []string `json:"-"`
6777
6778
6779
6780
6781 NullFields []string `json:"-"`
6782 }
6783
6784 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig) MarshalJSON() ([]byte, error) {
6785 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
6786 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6787 }
6788
6789
6790
6791 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig struct {
6792
6793 DigitalParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
6794
6795 LayoutParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig `json:"layoutParsingConfig,omitempty"`
6796
6797
6798 OcrParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
6799
6800
6801
6802
6803
6804 ForceSendFields []string `json:"-"`
6805
6806
6807
6808
6809 NullFields []string `json:"-"`
6810 }
6811
6812 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
6813 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
6814 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6815 }
6816
6817
6818
6819 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
6820 }
6821
6822
6823
6824 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig struct {
6825 }
6826
6827
6828
6829 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig struct {
6830
6831
6832
6833 EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
6834
6835
6836 UseNativeText bool `json:"useNativeText,omitempty"`
6837
6838
6839
6840
6841
6842 ForceSendFields []string `json:"-"`
6843
6844
6845
6846
6847 NullFields []string `json:"-"`
6848 }
6849
6850 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
6851 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig
6852 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6853 }
6854
6855
6856
6857
6858
6859 type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata struct {
6860
6861 CreateTime string `json:"createTime,omitempty"`
6862
6863
6864 UpdateTime string `json:"updateTime,omitempty"`
6865
6866
6867
6868
6869
6870 ForceSendFields []string `json:"-"`
6871
6872
6873
6874
6875 NullFields []string `json:"-"`
6876 }
6877
6878 func (s *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
6879 type NoMethod GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata
6880 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6881 }
6882
6883
6884
6885 type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse struct {
6886 }
6887
6888
6889
6890 type GoogleCloudDiscoveryengineV1alphaEngine struct {
6891
6892
6893 ChatEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
6894
6895
6896 ChatEngineMetadata *GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
6897
6898 CommonConfig *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig `json:"commonConfig,omitempty"`
6899
6900 CreateTime string `json:"createTime,omitempty"`
6901
6902
6903
6904
6905
6906
6907 DataStoreIds []string `json:"dataStoreIds,omitempty"`
6908
6909
6910 DisplayName string `json:"displayName,omitempty"`
6911
6912
6913
6914
6915
6916
6917
6918
6919
6920
6921
6922 IndustryVertical string `json:"industryVertical,omitempty"`
6923
6924
6925
6926 MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
6927
6928
6929
6930
6931
6932
6933 Name string `json:"name,omitempty"`
6934
6935
6936
6937 RecommendationMetadata *GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata `json:"recommendationMetadata,omitempty"`
6938
6939
6940 SearchEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
6941
6942
6943 SimilarDocumentsConfig *GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig `json:"similarDocumentsConfig,omitempty"`
6944
6945
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955 SolutionType string `json:"solutionType,omitempty"`
6956
6957
6958 UpdateTime string `json:"updateTime,omitempty"`
6959
6960
6961
6962
6963
6964 ForceSendFields []string `json:"-"`
6965
6966
6967
6968
6969 NullFields []string `json:"-"`
6970 }
6971
6972 func (s *GoogleCloudDiscoveryengineV1alphaEngine) MarshalJSON() ([]byte, error) {
6973 type NoMethod GoogleCloudDiscoveryengineV1alphaEngine
6974 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6975 }
6976
6977
6978
6979 type GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig struct {
6980
6981
6982
6983
6984
6985 AgentCreationConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995 DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
6996
6997
6998
6999
7000
7001 ForceSendFields []string `json:"-"`
7002
7003
7004
7005
7006 NullFields []string `json:"-"`
7007 }
7008
7009 func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig) MarshalJSON() ([]byte, error) {
7010 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig
7011 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7012 }
7013
7014
7015
7016
7017
7018
7019 type GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig struct {
7020
7021
7022
7023 Business string `json:"business,omitempty"`
7024
7025
7026
7027
7028 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
7029
7030
7031
7032 Location string `json:"location,omitempty"`
7033
7034
7035 TimeZone string `json:"timeZone,omitempty"`
7036
7037
7038
7039
7040
7041 ForceSendFields []string `json:"-"`
7042
7043
7044
7045
7046 NullFields []string `json:"-"`
7047 }
7048
7049 func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
7050 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig
7051 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7052 }
7053
7054
7055
7056 type GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata struct {
7057
7058
7059 DialogflowAgent string `json:"dialogflowAgent,omitempty"`
7060
7061
7062
7063
7064
7065 ForceSendFields []string `json:"-"`
7066
7067
7068
7069
7070 NullFields []string `json:"-"`
7071 }
7072
7073 func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
7074 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata
7075 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7076 }
7077
7078
7079
7080 type GoogleCloudDiscoveryengineV1alphaEngineCommonConfig struct {
7081
7082
7083
7084 CompanyName string `json:"companyName,omitempty"`
7085
7086
7087
7088
7089
7090 ForceSendFields []string `json:"-"`
7091
7092
7093
7094
7095 NullFields []string `json:"-"`
7096 }
7097
7098 func (s *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig) MarshalJSON() ([]byte, error) {
7099 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineCommonConfig
7100 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7101 }
7102
7103
7104
7105 type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig struct {
7106
7107
7108
7109
7110
7111
7112 OptimizationObjective string `json:"optimizationObjective,omitempty"`
7113
7114
7115
7116
7117
7118
7119 OptimizationObjectiveConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig `json:"optimizationObjectiveConfig,omitempty"`
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129
7130
7131 TrainingState string `json:"trainingState,omitempty"`
7132
7133
7134
7135
7136
7137 Type string `json:"type,omitempty"`
7138
7139
7140
7141
7142
7143 ForceSendFields []string `json:"-"`
7144
7145
7146
7147
7148 NullFields []string `json:"-"`
7149 }
7150
7151 func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig) MarshalJSON() ([]byte, error) {
7152 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig
7153 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7154 }
7155
7156
7157
7158 type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct {
7159
7160
7161 TargetField string `json:"targetField,omitempty"`
7162
7163
7164 TargetFieldValueFloat float64 `json:"targetFieldValueFloat,omitempty"`
7165
7166
7167
7168
7169
7170 ForceSendFields []string `json:"-"`
7171
7172
7173
7174
7175 NullFields []string `json:"-"`
7176 }
7177
7178 func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) MarshalJSON() ([]byte, error) {
7179 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
7180 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7181 }
7182
7183 func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) UnmarshalJSON(data []byte) error {
7184 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
7185 var s1 struct {
7186 TargetFieldValueFloat gensupport.JSONFloat64 `json:"targetFieldValueFloat"`
7187 *NoMethod
7188 }
7189 s1.NoMethod = (*NoMethod)(s)
7190 if err := json.Unmarshal(data, &s1); err != nil {
7191 return err
7192 }
7193 s.TargetFieldValueFloat = float64(s1.TargetFieldValueFloat)
7194 return nil
7195 }
7196
7197
7198
7199 type GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata struct {
7200
7201
7202
7203
7204
7205
7206
7207
7208
7209
7210
7211
7212
7213 DataState string `json:"dataState,omitempty"`
7214
7215
7216 LastTuneTime string `json:"lastTuneTime,omitempty"`
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226 ServingState string `json:"servingState,omitempty"`
7227
7228
7229
7230
7231
7232
7233 TuningOperation string `json:"tuningOperation,omitempty"`
7234
7235
7236
7237
7238
7239 ForceSendFields []string `json:"-"`
7240
7241
7242
7243
7244 NullFields []string `json:"-"`
7245 }
7246
7247 func (s *GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata) MarshalJSON() ([]byte, error) {
7248 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata
7249 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7250 }
7251
7252
7253
7254 type GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig struct {
7255
7256
7257
7258
7259
7260
7261 SearchAddOns []string `json:"searchAddOns,omitempty"`
7262
7263
7264
7265
7266
7267
7268
7269
7270
7271 SearchTier string `json:"searchTier,omitempty"`
7272
7273
7274
7275
7276
7277 ForceSendFields []string `json:"-"`
7278
7279
7280
7281
7282 NullFields []string `json:"-"`
7283 }
7284
7285 func (s *GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
7286 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig
7287 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7288 }
7289
7290
7291
7292 type GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig struct {
7293 }
7294
7295
7296
7297
7298 type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata struct {
7299
7300 CreateTime string `json:"createTime,omitempty"`
7301
7302
7303
7304
7305
7306 ForceSendFields []string `json:"-"`
7307
7308
7309
7310
7311 NullFields []string `json:"-"`
7312 }
7313
7314 func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata) MarshalJSON() ([]byte, error) {
7315 type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata
7316 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7317 }
7318
7319
7320
7321
7322
7323 type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse struct {
7324
7325 DataSizeBytes int64 `json:"dataSizeBytes,omitempty,string"`
7326
7327 DocumentCount int64 `json:"documentCount,omitempty,string"`
7328
7329
7330
7331
7332
7333 ForceSendFields []string `json:"-"`
7334
7335
7336
7337
7338 NullFields []string `json:"-"`
7339 }
7340
7341 func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse) MarshalJSON() ([]byte, error) {
7342 type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse
7343 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7344 }
7345
7346
7347
7348 type GoogleCloudDiscoveryengineV1alphaFieldConfig struct {
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359 AdvancedSiteSearchDataSources []string `json:"advancedSiteSearchDataSources,omitempty"`
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373 CompletableOption string `json:"completableOption,omitempty"`
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383
7384
7385
7386
7387
7388
7389
7390
7391 DynamicFacetableOption string `json:"dynamicFacetableOption,omitempty"`
7392
7393
7394 FieldPath string `json:"fieldPath,omitempty"`
7395
7396
7397
7398
7399
7400
7401
7402
7403
7404
7405
7406
7407
7408
7409
7410
7411
7412
7413
7414
7415
7416
7417 FieldType string `json:"fieldType,omitempty"`
7418
7419
7420
7421
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431 IndexableOption string `json:"indexableOption,omitempty"`
7432
7433
7434
7435
7436
7437
7438 KeyPropertyType string `json:"keyPropertyType,omitempty"`
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453 RecsFilterableOption string `json:"recsFilterableOption,omitempty"`
7454
7455
7456
7457
7458
7459
7460
7461
7462
7463
7464
7465
7466 RetrievableOption string `json:"retrievableOption,omitempty"`
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
7478
7479
7480
7481
7482
7483 SearchableOption string `json:"searchableOption,omitempty"`
7484
7485
7486
7487
7488
7489 ForceSendFields []string `json:"-"`
7490
7491
7492
7493
7494 NullFields []string `json:"-"`
7495 }
7496
7497 func (s *GoogleCloudDiscoveryengineV1alphaFieldConfig) MarshalJSON() ([]byte, error) {
7498 type NoMethod GoogleCloudDiscoveryengineV1alphaFieldConfig
7499 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7500 }
7501
7502
7503 type GoogleCloudDiscoveryengineV1alphaIdpConfig struct {
7504
7505 ExternalIdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig `json:"externalIdpConfig,omitempty"`
7506
7507
7508
7509
7510
7511
7512 IdpType string `json:"idpType,omitempty"`
7513
7514
7515
7516
7517
7518 ForceSendFields []string `json:"-"`
7519
7520
7521
7522
7523 NullFields []string `json:"-"`
7524 }
7525
7526 func (s *GoogleCloudDiscoveryengineV1alphaIdpConfig) MarshalJSON() ([]byte, error) {
7527 type NoMethod GoogleCloudDiscoveryengineV1alphaIdpConfig
7528 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7529 }
7530
7531
7532
7533 type GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig struct {
7534
7535
7536 WorkforcePoolName string `json:"workforcePoolName,omitempty"`
7537
7538
7539
7540
7541
7542 ForceSendFields []string `json:"-"`
7543
7544
7545
7546
7547 NullFields []string `json:"-"`
7548 }
7549
7550 func (s *GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig) MarshalJSON() ([]byte, error) {
7551 type NoMethod GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig
7552 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7553 }
7554
7555
7556
7557
7558 type GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata struct {
7559
7560 CreateTime string `json:"createTime,omitempty"`
7561
7562 FailureCount int64 `json:"failureCount,omitempty,string"`
7563
7564 SuccessCount int64 `json:"successCount,omitempty,string"`
7565
7566 TotalCount int64 `json:"totalCount,omitempty,string"`
7567
7568
7569 UpdateTime string `json:"updateTime,omitempty"`
7570
7571
7572
7573
7574
7575 ForceSendFields []string `json:"-"`
7576
7577
7578
7579
7580 NullFields []string `json:"-"`
7581 }
7582
7583 func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
7584 type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
7585 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7586 }
7587
7588
7589
7590
7591
7592 type GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse struct {
7593
7594
7595 ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
7596
7597 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
7598
7599
7600
7601
7602
7603 ForceSendFields []string `json:"-"`
7604
7605
7606
7607
7608 NullFields []string `json:"-"`
7609 }
7610
7611 func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse) MarshalJSON() ([]byte, error) {
7612 type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse
7613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7614 }
7615
7616
7617
7618 type GoogleCloudDiscoveryengineV1alphaImportErrorConfig struct {
7619
7620
7621
7622
7623 GcsPrefix string `json:"gcsPrefix,omitempty"`
7624
7625
7626
7627
7628
7629 ForceSendFields []string `json:"-"`
7630
7631
7632
7633
7634 NullFields []string `json:"-"`
7635 }
7636
7637 func (s *GoogleCloudDiscoveryengineV1alphaImportErrorConfig) MarshalJSON() ([]byte, error) {
7638 type NoMethod GoogleCloudDiscoveryengineV1alphaImportErrorConfig
7639 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7640 }
7641
7642
7643
7644
7645
7646 type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata struct {
7647
7648 CreateTime string `json:"createTime,omitempty"`
7649
7650
7651 UpdateTime string `json:"updateTime,omitempty"`
7652
7653
7654
7655
7656
7657 ForceSendFields []string `json:"-"`
7658
7659
7660
7661
7662 NullFields []string `json:"-"`
7663 }
7664
7665 func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
7666 type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata
7667 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7668 }
7669
7670
7671
7672
7673 type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse struct {
7674
7675 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
7676
7677 FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
7678
7679 ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
7680
7681
7682
7683
7684
7685 ForceSendFields []string `json:"-"`
7686
7687
7688
7689
7690 NullFields []string `json:"-"`
7691 }
7692
7693 func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
7694 type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse
7695 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7696 }
7697
7698
7699
7700
7701 type GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata struct {
7702
7703 CreateTime string `json:"createTime,omitempty"`
7704
7705 FailureCount int64 `json:"failureCount,omitempty,string"`
7706
7707 SuccessCount int64 `json:"successCount,omitempty,string"`
7708
7709
7710 UpdateTime string `json:"updateTime,omitempty"`
7711
7712
7713
7714
7715
7716 ForceSendFields []string `json:"-"`
7717
7718
7719
7720
7721 NullFields []string `json:"-"`
7722 }
7723
7724 func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
7725 type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata
7726 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7727 }
7728
7729
7730
7731
7732
7733 type GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse struct {
7734
7735
7736 ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
7737
7738 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
7739
7740
7741 JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
7742
7743
7744 UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
7745
7746
7747
7748
7749
7750 ForceSendFields []string `json:"-"`
7751
7752
7753
7754
7755 NullFields []string `json:"-"`
7756 }
7757
7758 func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse) MarshalJSON() ([]byte, error) {
7759 type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse
7760 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7761 }
7762
7763
7764
7765 type GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse struct {
7766
7767 Models []*GoogleCloudDiscoveryengineV1alphaCustomTuningModel `json:"models,omitempty"`
7768
7769
7770
7771
7772
7773 ForceSendFields []string `json:"-"`
7774
7775
7776
7777
7778 NullFields []string `json:"-"`
7779 }
7780
7781 func (s *GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse) MarshalJSON() ([]byte, error) {
7782 type NoMethod GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
7783 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7784 }
7785
7786
7787
7788 type GoogleCloudDiscoveryengineV1alphaProject struct {
7789
7790 CreateTime string `json:"createTime,omitempty"`
7791
7792
7793
7794
7795 Name string `json:"name,omitempty"`
7796
7797
7798
7799 ProvisionCompletionTime string `json:"provisionCompletionTime,omitempty"`
7800
7801
7802 ServiceTermsMap map[string]GoogleCloudDiscoveryengineV1alphaProjectServiceTerms `json:"serviceTermsMap,omitempty"`
7803
7804
7805
7806
7807
7808 ForceSendFields []string `json:"-"`
7809
7810
7811
7812
7813 NullFields []string `json:"-"`
7814 }
7815
7816 func (s *GoogleCloudDiscoveryengineV1alphaProject) MarshalJSON() ([]byte, error) {
7817 type NoMethod GoogleCloudDiscoveryengineV1alphaProject
7818 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7819 }
7820
7821
7822
7823 type GoogleCloudDiscoveryengineV1alphaProjectServiceTerms struct {
7824
7825 AcceptTime string `json:"acceptTime,omitempty"`
7826
7827
7828 DeclineTime string `json:"declineTime,omitempty"`
7829
7830
7831
7832
7833 Id string `json:"id,omitempty"`
7834
7835
7836
7837
7838
7839
7840
7841
7842
7843
7844
7845 State string `json:"state,omitempty"`
7846
7847
7848 Version string `json:"version,omitempty"`
7849
7850
7851
7852
7853
7854 ForceSendFields []string `json:"-"`
7855
7856
7857
7858
7859 NullFields []string `json:"-"`
7860 }
7861
7862 func (s *GoogleCloudDiscoveryengineV1alphaProjectServiceTerms) MarshalJSON() ([]byte, error) {
7863 type NoMethod GoogleCloudDiscoveryengineV1alphaProjectServiceTerms
7864 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7865 }
7866
7867
7868
7869 type GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata struct {
7870 }
7871
7872
7873
7874
7875 type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata struct {
7876
7877 CreateTime string `json:"createTime,omitempty"`
7878
7879 FailureCount int64 `json:"failureCount,omitempty,string"`
7880
7881 IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
7882
7883 SuccessCount int64 `json:"successCount,omitempty,string"`
7884
7885
7886 UpdateTime string `json:"updateTime,omitempty"`
7887
7888
7889
7890
7891
7892 ForceSendFields []string `json:"-"`
7893
7894
7895
7896
7897 NullFields []string `json:"-"`
7898 }
7899
7900 func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
7901 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
7902 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7903 }
7904
7905
7906
7907
7908
7909 type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse struct {
7910
7911
7912 PurgeCount int64 `json:"purgeCount,omitempty,string"`
7913
7914
7915
7916 PurgeSample []string `json:"purgeSample,omitempty"`
7917
7918
7919
7920
7921
7922 ForceSendFields []string `json:"-"`
7923
7924
7925
7926
7927 NullFields []string `json:"-"`
7928 }
7929
7930 func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
7931 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse
7932 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7933 }
7934
7935
7936
7937
7938
7939 type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata struct {
7940
7941 CreateTime string `json:"createTime,omitempty"`
7942
7943
7944 UpdateTime string `json:"updateTime,omitempty"`
7945
7946
7947
7948
7949
7950 ForceSendFields []string `json:"-"`
7951
7952
7953
7954
7955 NullFields []string `json:"-"`
7956 }
7957
7958 func (s *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
7959 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata
7960 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7961 }
7962
7963
7964
7965
7966 type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse struct {
7967
7968 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
7969
7970 PurgeCount int64 `json:"purgeCount,omitempty,string"`
7971
7972
7973
7974
7975
7976 ForceSendFields []string `json:"-"`
7977
7978
7979
7980
7981 NullFields []string `json:"-"`
7982 }
7983
7984 func (s *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
7985 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse
7986 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7987 }
7988
7989
7990
7991
7992 type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata struct {
7993
7994 CreateTime string `json:"createTime,omitempty"`
7995
7996 FailureCount int64 `json:"failureCount,omitempty,string"`
7997
7998 SuccessCount int64 `json:"successCount,omitempty,string"`
7999
8000
8001 UpdateTime string `json:"updateTime,omitempty"`
8002
8003
8004
8005
8006
8007 ForceSendFields []string `json:"-"`
8008
8009
8010
8011
8012 NullFields []string `json:"-"`
8013 }
8014
8015 func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata) MarshalJSON() ([]byte, error) {
8016 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata
8017 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8018 }
8019
8020
8021
8022
8023
8024 type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse struct {
8025
8026 PurgeCount int64 `json:"purgeCount,omitempty,string"`
8027
8028
8029
8030
8031
8032 ForceSendFields []string `json:"-"`
8033
8034
8035
8036
8037 NullFields []string `json:"-"`
8038 }
8039
8040 func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse) MarshalJSON() ([]byte, error) {
8041 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse
8042 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8043 }
8044
8045
8046 type GoogleCloudDiscoveryengineV1alphaQuery struct {
8047
8048 QueryId string `json:"queryId,omitempty"`
8049
8050 Text string `json:"text,omitempty"`
8051
8052
8053
8054
8055
8056 ForceSendFields []string `json:"-"`
8057
8058
8059
8060
8061 NullFields []string `json:"-"`
8062 }
8063
8064 func (s *GoogleCloudDiscoveryengineV1alphaQuery) MarshalJSON() ([]byte, error) {
8065 type NoMethod GoogleCloudDiscoveryengineV1alphaQuery
8066 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8067 }
8068
8069
8070
8071
8072 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata struct {
8073
8074 CreateTime string `json:"createTime,omitempty"`
8075
8076
8077
8078 InvalidUris []string `json:"invalidUris,omitempty"`
8079
8080 PendingCount int64 `json:"pendingCount,omitempty"`
8081
8082
8083 QuotaExceededCount int64 `json:"quotaExceededCount,omitempty"`
8084
8085 SuccessCount int64 `json:"successCount,omitempty"`
8086
8087
8088 UpdateTime string `json:"updateTime,omitempty"`
8089
8090
8091 ValidUrisCount int64 `json:"validUrisCount,omitempty"`
8092
8093
8094
8095
8096
8097 ForceSendFields []string `json:"-"`
8098
8099
8100
8101
8102 NullFields []string `json:"-"`
8103 }
8104
8105 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata) MarshalJSON() ([]byte, error) {
8106 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata
8107 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8108 }
8109
8110
8111
8112 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse struct {
8113
8114 FailedUris []string `json:"failedUris,omitempty"`
8115
8116 FailureSamples []*GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo `json:"failureSamples,omitempty"`
8117
8118
8119
8120
8121
8122 ForceSendFields []string `json:"-"`
8123
8124
8125
8126
8127 NullFields []string `json:"-"`
8128 }
8129
8130 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse) MarshalJSON() ([]byte, error) {
8131 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse
8132 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8133 }
8134
8135
8136
8137
8138 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo struct {
8139
8140
8141 FailureReasons []*GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason `json:"failureReasons,omitempty"`
8142
8143 Uri string `json:"uri,omitempty"`
8144
8145
8146
8147
8148
8149 ForceSendFields []string `json:"-"`
8150
8151
8152
8153
8154 NullFields []string `json:"-"`
8155 }
8156
8157 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo) MarshalJSON() ([]byte, error) {
8158 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo
8159 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8160 }
8161
8162
8163
8164
8165
8166
8167 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason struct {
8168
8169
8170
8171
8172
8173
8174 CorpusType string `json:"corpusType,omitempty"`
8175
8176 ErrorMessage string `json:"errorMessage,omitempty"`
8177
8178
8179
8180
8181
8182 ForceSendFields []string `json:"-"`
8183
8184
8185
8186
8187 NullFields []string `json:"-"`
8188 }
8189
8190 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason) MarshalJSON() ([]byte, error) {
8191 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason
8192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8193 }
8194
8195
8196
8197 type GoogleCloudDiscoveryengineV1alphaSchema struct {
8198
8199 FieldConfigs []*GoogleCloudDiscoveryengineV1alphaFieldConfig `json:"fieldConfigs,omitempty"`
8200
8201 JsonSchema string `json:"jsonSchema,omitempty"`
8202
8203
8204
8205
8206 Name string `json:"name,omitempty"`
8207
8208 StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
8209
8210
8211
8212
8213
8214 ForceSendFields []string `json:"-"`
8215
8216
8217
8218
8219 NullFields []string `json:"-"`
8220 }
8221
8222 func (s *GoogleCloudDiscoveryengineV1alphaSchema) MarshalJSON() ([]byte, error) {
8223 type NoMethod GoogleCloudDiscoveryengineV1alphaSchema
8224 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8225 }
8226
8227
8228 type GoogleCloudDiscoveryengineV1alphaSession struct {
8229
8230 EndTime string `json:"endTime,omitempty"`
8231
8232
8233
8234 Name string `json:"name,omitempty"`
8235
8236 StartTime string `json:"startTime,omitempty"`
8237
8238
8239
8240
8241
8242 State string `json:"state,omitempty"`
8243
8244 Turns []*GoogleCloudDiscoveryengineV1alphaSessionTurn `json:"turns,omitempty"`
8245
8246 UserPseudoId string `json:"userPseudoId,omitempty"`
8247
8248
8249
8250
8251
8252 ForceSendFields []string `json:"-"`
8253
8254
8255
8256
8257 NullFields []string `json:"-"`
8258 }
8259
8260 func (s *GoogleCloudDiscoveryengineV1alphaSession) MarshalJSON() ([]byte, error) {
8261 type NoMethod GoogleCloudDiscoveryengineV1alphaSession
8262 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8263 }
8264
8265
8266
8267 type GoogleCloudDiscoveryengineV1alphaSessionTurn struct {
8268
8269 Answer string `json:"answer,omitempty"`
8270
8271 Query *GoogleCloudDiscoveryengineV1alphaQuery `json:"query,omitempty"`
8272
8273
8274
8275
8276
8277 ForceSendFields []string `json:"-"`
8278
8279
8280
8281
8282 NullFields []string `json:"-"`
8283 }
8284
8285 func (s *GoogleCloudDiscoveryengineV1alphaSessionTurn) MarshalJSON() ([]byte, error) {
8286 type NoMethod GoogleCloudDiscoveryengineV1alphaSessionTurn
8287 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8288 }
8289
8290
8291
8292 type GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo struct {
8293
8294
8295
8296
8297
8298
8299
8300
8301
8302 SiteVerificationState string `json:"siteVerificationState,omitempty"`
8303
8304 VerifyTime string `json:"verifyTime,omitempty"`
8305
8306
8307
8308
8309
8310 ForceSendFields []string `json:"-"`
8311
8312
8313
8314
8315 NullFields []string `json:"-"`
8316 }
8317
8318 func (s *GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo) MarshalJSON() ([]byte, error) {
8319 type NoMethod GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo
8320 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8321 }
8322
8323
8324
8325 type GoogleCloudDiscoveryengineV1alphaTargetSite struct {
8326
8327
8328
8329
8330
8331
8332 ExactMatch bool `json:"exactMatch,omitempty"`
8333
8334 FailureReason *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason `json:"failureReason,omitempty"`
8335
8336
8337 GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350 IndexingStatus string `json:"indexingStatus,omitempty"`
8351
8352
8353
8354
8355 Name string `json:"name,omitempty"`
8356
8357
8358 ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
8359
8360 RootDomainUri string `json:"rootDomainUri,omitempty"`
8361
8362
8363 SiteVerificationInfo *GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
8364
8365
8366
8367
8368
8369
8370
8371
8372 Type string `json:"type,omitempty"`
8373
8374 UpdateTime string `json:"updateTime,omitempty"`
8375
8376
8377
8378
8379
8380 ForceSendFields []string `json:"-"`
8381
8382
8383
8384
8385 NullFields []string `json:"-"`
8386 }
8387
8388 func (s *GoogleCloudDiscoveryengineV1alphaTargetSite) MarshalJSON() ([]byte, error) {
8389 type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSite
8390 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8391 }
8392
8393
8394
8395 type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason struct {
8396
8397 QuotaFailure *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
8398
8399
8400
8401
8402
8403 ForceSendFields []string `json:"-"`
8404
8405
8406
8407
8408 NullFields []string `json:"-"`
8409 }
8410
8411 func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason) MarshalJSON() ([]byte, error) {
8412 type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason
8413 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8414 }
8415
8416
8417
8418 type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure struct {
8419
8420
8421 TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
8422
8423
8424
8425
8426
8427 ForceSendFields []string `json:"-"`
8428
8429
8430
8431
8432 NullFields []string `json:"-"`
8433 }
8434
8435 func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
8436 type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure
8437 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8438 }
8439
8440
8441
8442
8443 type GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata struct {
8444
8445 CreateTime string `json:"createTime,omitempty"`
8446
8447
8448 UpdateTime string `json:"updateTime,omitempty"`
8449
8450
8451
8452
8453
8454 ForceSendFields []string `json:"-"`
8455
8456
8457
8458
8459 NullFields []string `json:"-"`
8460 }
8461
8462 func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) {
8463 type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata
8464 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8465 }
8466
8467
8468
8469
8470 type GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse struct {
8471
8472
8473 ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
8474
8475 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
8476
8477 Metrics map[string]float64 `json:"metrics,omitempty"`
8478
8479 ModelName string `json:"modelName,omitempty"`
8480
8481
8482
8483
8484
8485
8486
8487 ModelStatus string `json:"modelStatus,omitempty"`
8488
8489
8490
8491
8492
8493 ForceSendFields []string `json:"-"`
8494
8495
8496
8497
8498 NullFields []string `json:"-"`
8499 }
8500
8501 func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse) MarshalJSON() ([]byte, error) {
8502 type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse
8503 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8504 }
8505
8506
8507
8508 type GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata struct {
8509
8510
8511
8512
8513 Engine string `json:"engine,omitempty"`
8514
8515
8516
8517
8518
8519 ForceSendFields []string `json:"-"`
8520
8521
8522
8523
8524 NullFields []string `json:"-"`
8525 }
8526
8527 func (s *GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata) MarshalJSON() ([]byte, error) {
8528 type NoMethod GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata
8529 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8530 }
8531
8532
8533
8534 type GoogleCloudDiscoveryengineV1alphaTuneEngineResponse struct {
8535 }
8536
8537
8538
8539 type GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata struct {
8540
8541 CreateTime string `json:"createTime,omitempty"`
8542
8543
8544 UpdateTime string `json:"updateTime,omitempty"`
8545
8546
8547
8548
8549
8550 ForceSendFields []string `json:"-"`
8551
8552
8553
8554
8555 NullFields []string `json:"-"`
8556 }
8557
8558 func (s *GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
8559 type NoMethod GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata
8560 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8561 }
8562
8563
8564
8565
8566 type GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata struct {
8567
8568 CreateTime string `json:"createTime,omitempty"`
8569
8570
8571 UpdateTime string `json:"updateTime,omitempty"`
8572
8573
8574
8575
8576
8577 ForceSendFields []string `json:"-"`
8578
8579
8580
8581
8582 NullFields []string `json:"-"`
8583 }
8584
8585 func (s *GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
8586 type NoMethod GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata
8587 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8588 }
8589
8590
8591
8592
8593
8594 type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata struct {
8595
8596 CreateTime string `json:"createTime,omitempty"`
8597
8598
8599 UpdateTime string `json:"updateTime,omitempty"`
8600
8601
8602
8603
8604
8605 ForceSendFields []string `json:"-"`
8606
8607
8608
8609
8610 NullFields []string `json:"-"`
8611 }
8612
8613 func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
8614 type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata
8615 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8616 }
8617
8618
8619
8620 type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse struct {
8621
8622 TargetSites []*GoogleCloudDiscoveryengineV1betaTargetSite `json:"targetSites,omitempty"`
8623
8624
8625
8626
8627
8628 ForceSendFields []string `json:"-"`
8629
8630
8631
8632
8633 NullFields []string `json:"-"`
8634 }
8635
8636 func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
8637 type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse
8638 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8639 }
8640
8641
8642
8643
8644 type GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata struct {
8645
8646 CreateTime string `json:"createTime,omitempty"`
8647
8648
8649 UpdateTime string `json:"updateTime,omitempty"`
8650
8651
8652
8653
8654
8655 ForceSendFields []string `json:"-"`
8656
8657
8658
8659
8660 NullFields []string `json:"-"`
8661 }
8662
8663 func (s *GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
8664 type NoMethod GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata
8665 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8666 }
8667
8668
8669
8670
8671 type GoogleCloudDiscoveryengineV1betaCreateEngineMetadata struct {
8672
8673 CreateTime string `json:"createTime,omitempty"`
8674
8675
8676 UpdateTime string `json:"updateTime,omitempty"`
8677
8678
8679
8680
8681
8682 ForceSendFields []string `json:"-"`
8683
8684
8685
8686
8687 NullFields []string `json:"-"`
8688 }
8689
8690 func (s *GoogleCloudDiscoveryengineV1betaCreateEngineMetadata) MarshalJSON() ([]byte, error) {
8691 type NoMethod GoogleCloudDiscoveryengineV1betaCreateEngineMetadata
8692 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8693 }
8694
8695
8696
8697 type GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata struct {
8698
8699 CreateTime string `json:"createTime,omitempty"`
8700
8701
8702 UpdateTime string `json:"updateTime,omitempty"`
8703
8704
8705
8706
8707
8708 ForceSendFields []string `json:"-"`
8709
8710
8711
8712
8713 NullFields []string `json:"-"`
8714 }
8715
8716 func (s *GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata) MarshalJSON() ([]byte, error) {
8717 type NoMethod GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata
8718 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8719 }
8720
8721
8722
8723
8724 type GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata struct {
8725
8726 CreateTime string `json:"createTime,omitempty"`
8727
8728
8729 UpdateTime string `json:"updateTime,omitempty"`
8730
8731
8732
8733
8734
8735 ForceSendFields []string `json:"-"`
8736
8737
8738
8739
8740 NullFields []string `json:"-"`
8741 }
8742
8743 func (s *GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
8744 type NoMethod GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata
8745 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8746 }
8747
8748
8749
8750 type GoogleCloudDiscoveryengineV1betaCustomTuningModel struct {
8751
8752 CreateTime string `json:"createTime,omitempty"`
8753
8754 DisplayName string `json:"displayName,omitempty"`
8755
8756
8757
8758
8759
8760
8761
8762
8763
8764
8765 ModelState string `json:"modelState,omitempty"`
8766 ModelVersion int64 `json:"modelVersion,omitempty,string"`
8767
8768
8769
8770
8771 Name string `json:"name,omitempty"`
8772
8773 TrainingStartTime string `json:"trainingStartTime,omitempty"`
8774
8775
8776
8777
8778
8779 ForceSendFields []string `json:"-"`
8780
8781
8782
8783
8784 NullFields []string `json:"-"`
8785 }
8786
8787 func (s *GoogleCloudDiscoveryengineV1betaCustomTuningModel) MarshalJSON() ([]byte, error) {
8788 type NoMethod GoogleCloudDiscoveryengineV1betaCustomTuningModel
8789 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8790 }
8791
8792
8793
8794 type GoogleCloudDiscoveryengineV1betaDataStore struct {
8795
8796
8797
8798
8799
8800
8801
8802
8803 ContentConfig string `json:"contentConfig,omitempty"`
8804
8805 CreateTime string `json:"createTime,omitempty"`
8806
8807
8808 DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
8809
8810
8811
8812 DisplayName string `json:"displayName,omitempty"`
8813
8814
8815 DocumentProcessingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
8816
8817
8818
8819
8820
8821
8822
8823
8824
8825 IndustryVertical string `json:"industryVertical,omitempty"`
8826
8827
8828
8829
8830 Name string `json:"name,omitempty"`
8831
8832
8833
8834
8835
8836
8837
8838
8839
8840
8841
8842
8843
8844
8845
8846 SolutionTypes []string `json:"solutionTypes,omitempty"`
8847
8848
8849
8850
8851
8852
8853
8854
8855 StartingSchema *GoogleCloudDiscoveryengineV1betaSchema `json:"startingSchema,omitempty"`
8856
8857
8858
8859
8860
8861 ForceSendFields []string `json:"-"`
8862
8863
8864
8865
8866 NullFields []string `json:"-"`
8867 }
8868
8869 func (s *GoogleCloudDiscoveryengineV1betaDataStore) MarshalJSON() ([]byte, error) {
8870 type NoMethod GoogleCloudDiscoveryengineV1betaDataStore
8871 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8872 }
8873
8874
8875
8876
8877 type GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata struct {
8878
8879 CreateTime string `json:"createTime,omitempty"`
8880
8881
8882 UpdateTime string `json:"updateTime,omitempty"`
8883
8884
8885
8886
8887
8888 ForceSendFields []string `json:"-"`
8889
8890
8891
8892
8893 NullFields []string `json:"-"`
8894 }
8895
8896 func (s *GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
8897 type NoMethod GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata
8898 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8899 }
8900
8901
8902
8903
8904 type GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata struct {
8905
8906 CreateTime string `json:"createTime,omitempty"`
8907
8908
8909 UpdateTime string `json:"updateTime,omitempty"`
8910
8911
8912
8913
8914
8915 ForceSendFields []string `json:"-"`
8916
8917
8918
8919
8920 NullFields []string `json:"-"`
8921 }
8922
8923 func (s *GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata) MarshalJSON() ([]byte, error) {
8924 type NoMethod GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata
8925 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8926 }
8927
8928
8929
8930 type GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata struct {
8931
8932 CreateTime string `json:"createTime,omitempty"`
8933
8934
8935 UpdateTime string `json:"updateTime,omitempty"`
8936
8937
8938
8939
8940
8941 ForceSendFields []string `json:"-"`
8942
8943
8944
8945
8946 NullFields []string `json:"-"`
8947 }
8948
8949 func (s *GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
8950 type NoMethod GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata
8951 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8952 }
8953
8954
8955
8956
8957 type GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata struct {
8958
8959 CreateTime string `json:"createTime,omitempty"`
8960
8961
8962 UpdateTime string `json:"updateTime,omitempty"`
8963
8964
8965
8966
8967
8968 ForceSendFields []string `json:"-"`
8969
8970
8971
8972
8973 NullFields []string `json:"-"`
8974 }
8975
8976 func (s *GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
8977 type NoMethod GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata
8978 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8979 }
8980
8981
8982
8983
8984
8985 type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata struct {
8986
8987 CreateTime string `json:"createTime,omitempty"`
8988
8989
8990 UpdateTime string `json:"updateTime,omitempty"`
8991
8992
8993
8994
8995
8996 ForceSendFields []string `json:"-"`
8997
8998
8999
9000
9001 NullFields []string `json:"-"`
9002 }
9003
9004 func (s *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
9005 type NoMethod GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata
9006 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9007 }
9008
9009
9010
9011 type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse struct {
9012 }
9013
9014
9015
9016
9017
9018
9019 type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig struct {
9020
9021
9022
9023
9024 DefaultParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
9025
9026
9027 Name string `json:"name,omitempty"`
9028
9029
9030
9031
9032
9033
9034
9035 ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
9036
9037
9038
9039
9040
9041 ForceSendFields []string `json:"-"`
9042
9043
9044
9045
9046 NullFields []string `json:"-"`
9047 }
9048
9049 func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig) MarshalJSON() ([]byte, error) {
9050 type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig
9051 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9052 }
9053
9054
9055
9056 type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig struct {
9057
9058 DigitalParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
9059
9060
9061 OcrParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
9062
9063
9064
9065
9066
9067 ForceSendFields []string `json:"-"`
9068
9069
9070
9071
9072 NullFields []string `json:"-"`
9073 }
9074
9075 func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
9076 type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig
9077 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9078 }
9079
9080
9081
9082 type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
9083 }
9084
9085
9086
9087 type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig struct {
9088
9089
9090
9091 EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
9092
9093
9094 UseNativeText bool `json:"useNativeText,omitempty"`
9095
9096
9097
9098
9099
9100 ForceSendFields []string `json:"-"`
9101
9102
9103
9104
9105 NullFields []string `json:"-"`
9106 }
9107
9108 func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
9109 type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig
9110 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9111 }
9112
9113
9114
9115
9116
9117 type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata struct {
9118
9119 CreateTime string `json:"createTime,omitempty"`
9120
9121
9122 UpdateTime string `json:"updateTime,omitempty"`
9123
9124
9125
9126
9127
9128 ForceSendFields []string `json:"-"`
9129
9130
9131
9132
9133 NullFields []string `json:"-"`
9134 }
9135
9136 func (s *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
9137 type NoMethod GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata
9138 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9139 }
9140
9141
9142
9143 type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchResponse struct {
9144 }
9145
9146
9147
9148 type GoogleCloudDiscoveryengineV1betaEngine struct {
9149
9150
9151 ChatEngineConfig *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
9152
9153
9154 ChatEngineMetadata *GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
9155
9156 CommonConfig *GoogleCloudDiscoveryengineV1betaEngineCommonConfig `json:"commonConfig,omitempty"`
9157
9158 CreateTime string `json:"createTime,omitempty"`
9159
9160
9161
9162
9163
9164
9165 DataStoreIds []string `json:"dataStoreIds,omitempty"`
9166
9167
9168 DisplayName string `json:"displayName,omitempty"`
9169
9170
9171
9172
9173
9174
9175
9176
9177
9178
9179
9180 IndustryVertical string `json:"industryVertical,omitempty"`
9181
9182
9183
9184
9185
9186
9187 Name string `json:"name,omitempty"`
9188
9189
9190 SearchEngineConfig *GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
9191
9192
9193
9194
9195
9196
9197
9198
9199
9200
9201
9202 SolutionType string `json:"solutionType,omitempty"`
9203
9204
9205 UpdateTime string `json:"updateTime,omitempty"`
9206
9207
9208
9209
9210
9211 ForceSendFields []string `json:"-"`
9212
9213
9214
9215
9216 NullFields []string `json:"-"`
9217 }
9218
9219 func (s *GoogleCloudDiscoveryengineV1betaEngine) MarshalJSON() ([]byte, error) {
9220 type NoMethod GoogleCloudDiscoveryengineV1betaEngine
9221 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9222 }
9223
9224
9225
9226 type GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig struct {
9227
9228
9229
9230
9231
9232 AgentCreationConfig *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
9233
9234
9235
9236
9237
9238
9239
9240
9241
9242 DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
9243
9244
9245
9246
9247
9248 ForceSendFields []string `json:"-"`
9249
9250
9251
9252
9253 NullFields []string `json:"-"`
9254 }
9255
9256 func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig) MarshalJSON() ([]byte, error) {
9257 type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig
9258 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9259 }
9260
9261
9262
9263
9264
9265
9266 type GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig struct {
9267
9268
9269
9270 Business string `json:"business,omitempty"`
9271
9272
9273
9274
9275 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
9276
9277
9278
9279 Location string `json:"location,omitempty"`
9280
9281
9282 TimeZone string `json:"timeZone,omitempty"`
9283
9284
9285
9286
9287
9288 ForceSendFields []string `json:"-"`
9289
9290
9291
9292
9293 NullFields []string `json:"-"`
9294 }
9295
9296 func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
9297 type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig
9298 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9299 }
9300
9301
9302
9303 type GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata struct {
9304
9305
9306 DialogflowAgent string `json:"dialogflowAgent,omitempty"`
9307
9308
9309
9310
9311
9312 ForceSendFields []string `json:"-"`
9313
9314
9315
9316
9317 NullFields []string `json:"-"`
9318 }
9319
9320 func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
9321 type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata
9322 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9323 }
9324
9325
9326
9327 type GoogleCloudDiscoveryengineV1betaEngineCommonConfig struct {
9328
9329
9330
9331 CompanyName string `json:"companyName,omitempty"`
9332
9333
9334
9335
9336
9337 ForceSendFields []string `json:"-"`
9338
9339
9340
9341
9342 NullFields []string `json:"-"`
9343 }
9344
9345 func (s *GoogleCloudDiscoveryengineV1betaEngineCommonConfig) MarshalJSON() ([]byte, error) {
9346 type NoMethod GoogleCloudDiscoveryengineV1betaEngineCommonConfig
9347 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9348 }
9349
9350
9351
9352 type GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig struct {
9353
9354
9355
9356
9357
9358
9359 SearchAddOns []string `json:"searchAddOns,omitempty"`
9360
9361
9362
9363
9364
9365
9366
9367
9368
9369 SearchTier string `json:"searchTier,omitempty"`
9370
9371
9372
9373
9374
9375 ForceSendFields []string `json:"-"`
9376
9377
9378
9379
9380 NullFields []string `json:"-"`
9381 }
9382
9383 func (s *GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
9384 type NoMethod GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig
9385 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9386 }
9387
9388
9389
9390
9391 type GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata struct {
9392
9393 CreateTime string `json:"createTime,omitempty"`
9394
9395 FailureCount int64 `json:"failureCount,omitempty,string"`
9396
9397 SuccessCount int64 `json:"successCount,omitempty,string"`
9398
9399 TotalCount int64 `json:"totalCount,omitempty,string"`
9400
9401
9402 UpdateTime string `json:"updateTime,omitempty"`
9403
9404
9405
9406
9407
9408 ForceSendFields []string `json:"-"`
9409
9410
9411
9412
9413 NullFields []string `json:"-"`
9414 }
9415
9416 func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
9417 type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
9418 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9419 }
9420
9421
9422
9423
9424
9425 type GoogleCloudDiscoveryengineV1betaImportDocumentsResponse struct {
9426
9427
9428 ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
9429
9430 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
9431
9432
9433
9434
9435
9436 ForceSendFields []string `json:"-"`
9437
9438
9439
9440
9441 NullFields []string `json:"-"`
9442 }
9443
9444 func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsResponse) MarshalJSON() ([]byte, error) {
9445 type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsResponse
9446 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9447 }
9448
9449
9450
9451 type GoogleCloudDiscoveryengineV1betaImportErrorConfig struct {
9452
9453
9454
9455
9456 GcsPrefix string `json:"gcsPrefix,omitempty"`
9457
9458
9459
9460
9461
9462 ForceSendFields []string `json:"-"`
9463
9464
9465
9466
9467 NullFields []string `json:"-"`
9468 }
9469
9470 func (s *GoogleCloudDiscoveryengineV1betaImportErrorConfig) MarshalJSON() ([]byte, error) {
9471 type NoMethod GoogleCloudDiscoveryengineV1betaImportErrorConfig
9472 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9473 }
9474
9475
9476
9477
9478
9479 type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata struct {
9480
9481 CreateTime string `json:"createTime,omitempty"`
9482
9483
9484 UpdateTime string `json:"updateTime,omitempty"`
9485
9486
9487
9488
9489
9490 ForceSendFields []string `json:"-"`
9491
9492
9493
9494
9495 NullFields []string `json:"-"`
9496 }
9497
9498 func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
9499 type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata
9500 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9501 }
9502
9503
9504
9505
9506 type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse struct {
9507
9508 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
9509
9510 FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
9511
9512 ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
9513
9514
9515
9516
9517
9518 ForceSendFields []string `json:"-"`
9519
9520
9521
9522
9523 NullFields []string `json:"-"`
9524 }
9525
9526 func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
9527 type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse
9528 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9529 }
9530
9531
9532
9533
9534 type GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata struct {
9535
9536 CreateTime string `json:"createTime,omitempty"`
9537
9538 FailureCount int64 `json:"failureCount,omitempty,string"`
9539
9540 SuccessCount int64 `json:"successCount,omitempty,string"`
9541
9542
9543 UpdateTime string `json:"updateTime,omitempty"`
9544
9545
9546
9547
9548
9549 ForceSendFields []string `json:"-"`
9550
9551
9552
9553
9554 NullFields []string `json:"-"`
9555 }
9556
9557 func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
9558 type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata
9559 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9560 }
9561
9562
9563
9564
9565
9566 type GoogleCloudDiscoveryengineV1betaImportUserEventsResponse struct {
9567
9568
9569 ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
9570
9571 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
9572
9573
9574 JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
9575
9576
9577 UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
9578
9579
9580
9581
9582
9583 ForceSendFields []string `json:"-"`
9584
9585
9586
9587
9588 NullFields []string `json:"-"`
9589 }
9590
9591 func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsResponse) MarshalJSON() ([]byte, error) {
9592 type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsResponse
9593 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9594 }
9595
9596
9597
9598 type GoogleCloudDiscoveryengineV1betaListCustomModelsResponse struct {
9599
9600 Models []*GoogleCloudDiscoveryengineV1betaCustomTuningModel `json:"models,omitempty"`
9601
9602
9603
9604
9605
9606 ForceSendFields []string `json:"-"`
9607
9608
9609
9610
9611 NullFields []string `json:"-"`
9612 }
9613
9614 func (s *GoogleCloudDiscoveryengineV1betaListCustomModelsResponse) MarshalJSON() ([]byte, error) {
9615 type NoMethod GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
9616 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9617 }
9618
9619
9620
9621
9622 type GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata struct {
9623
9624 CreateTime string `json:"createTime,omitempty"`
9625
9626 FailureCount int64 `json:"failureCount,omitempty,string"`
9627
9628 IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
9629
9630 SuccessCount int64 `json:"successCount,omitempty,string"`
9631
9632
9633 UpdateTime string `json:"updateTime,omitempty"`
9634
9635
9636
9637
9638
9639 ForceSendFields []string `json:"-"`
9640
9641
9642
9643
9644 NullFields []string `json:"-"`
9645 }
9646
9647 func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
9648 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
9649 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9650 }
9651
9652
9653
9654
9655
9656 type GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse struct {
9657
9658
9659 PurgeCount int64 `json:"purgeCount,omitempty,string"`
9660
9661
9662
9663 PurgeSample []string `json:"purgeSample,omitempty"`
9664
9665
9666
9667
9668
9669 ForceSendFields []string `json:"-"`
9670
9671
9672
9673
9674 NullFields []string `json:"-"`
9675 }
9676
9677 func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
9678 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse
9679 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9680 }
9681
9682
9683
9684
9685
9686 type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata struct {
9687
9688 CreateTime string `json:"createTime,omitempty"`
9689
9690
9691 UpdateTime string `json:"updateTime,omitempty"`
9692
9693
9694
9695
9696
9697 ForceSendFields []string `json:"-"`
9698
9699
9700
9701
9702 NullFields []string `json:"-"`
9703 }
9704
9705 func (s *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
9706 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata
9707 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9708 }
9709
9710
9711
9712
9713 type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse struct {
9714
9715 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
9716
9717 PurgeCount int64 `json:"purgeCount,omitempty,string"`
9718
9719
9720
9721
9722
9723 ForceSendFields []string `json:"-"`
9724
9725
9726
9727
9728 NullFields []string `json:"-"`
9729 }
9730
9731 func (s *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
9732 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse
9733 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9734 }
9735
9736
9737
9738 type GoogleCloudDiscoveryengineV1betaSchema struct {
9739
9740 JsonSchema string `json:"jsonSchema,omitempty"`
9741
9742
9743
9744
9745 Name string `json:"name,omitempty"`
9746
9747 StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
9748
9749
9750
9751
9752
9753 ForceSendFields []string `json:"-"`
9754
9755
9756
9757
9758 NullFields []string `json:"-"`
9759 }
9760
9761 func (s *GoogleCloudDiscoveryengineV1betaSchema) MarshalJSON() ([]byte, error) {
9762 type NoMethod GoogleCloudDiscoveryengineV1betaSchema
9763 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9764 }
9765
9766
9767
9768 type GoogleCloudDiscoveryengineV1betaSiteVerificationInfo struct {
9769
9770
9771
9772
9773
9774
9775
9776
9777
9778 SiteVerificationState string `json:"siteVerificationState,omitempty"`
9779
9780 VerifyTime string `json:"verifyTime,omitempty"`
9781
9782
9783
9784
9785
9786 ForceSendFields []string `json:"-"`
9787
9788
9789
9790
9791 NullFields []string `json:"-"`
9792 }
9793
9794 func (s *GoogleCloudDiscoveryengineV1betaSiteVerificationInfo) MarshalJSON() ([]byte, error) {
9795 type NoMethod GoogleCloudDiscoveryengineV1betaSiteVerificationInfo
9796 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9797 }
9798
9799
9800
9801 type GoogleCloudDiscoveryengineV1betaTargetSite struct {
9802
9803
9804
9805
9806
9807
9808 ExactMatch bool `json:"exactMatch,omitempty"`
9809
9810 FailureReason *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason `json:"failureReason,omitempty"`
9811
9812
9813 GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
9814
9815
9816
9817
9818
9819
9820
9821
9822
9823
9824
9825
9826 IndexingStatus string `json:"indexingStatus,omitempty"`
9827
9828
9829
9830
9831 Name string `json:"name,omitempty"`
9832
9833
9834 ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
9835
9836 RootDomainUri string `json:"rootDomainUri,omitempty"`
9837
9838
9839 SiteVerificationInfo *GoogleCloudDiscoveryengineV1betaSiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
9840
9841
9842
9843
9844
9845
9846
9847
9848 Type string `json:"type,omitempty"`
9849
9850 UpdateTime string `json:"updateTime,omitempty"`
9851
9852
9853
9854
9855
9856 ForceSendFields []string `json:"-"`
9857
9858
9859
9860
9861 NullFields []string `json:"-"`
9862 }
9863
9864 func (s *GoogleCloudDiscoveryengineV1betaTargetSite) MarshalJSON() ([]byte, error) {
9865 type NoMethod GoogleCloudDiscoveryengineV1betaTargetSite
9866 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9867 }
9868
9869
9870
9871 type GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason struct {
9872
9873 QuotaFailure *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
9874
9875
9876
9877
9878
9879 ForceSendFields []string `json:"-"`
9880
9881
9882
9883
9884 NullFields []string `json:"-"`
9885 }
9886
9887 func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason) MarshalJSON() ([]byte, error) {
9888 type NoMethod GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason
9889 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9890 }
9891
9892
9893
9894 type GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure struct {
9895
9896
9897 TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
9898
9899
9900
9901
9902
9903 ForceSendFields []string `json:"-"`
9904
9905
9906
9907
9908 NullFields []string `json:"-"`
9909 }
9910
9911 func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
9912 type NoMethod GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure
9913 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9914 }
9915
9916
9917
9918
9919 type GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata struct {
9920
9921 CreateTime string `json:"createTime,omitempty"`
9922
9923
9924 UpdateTime string `json:"updateTime,omitempty"`
9925
9926
9927
9928
9929
9930 ForceSendFields []string `json:"-"`
9931
9932
9933
9934
9935 NullFields []string `json:"-"`
9936 }
9937
9938 func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) {
9939 type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata
9940 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9941 }
9942
9943
9944
9945
9946 type GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse struct {
9947
9948
9949 ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
9950
9951 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
9952
9953 Metrics map[string]float64 `json:"metrics,omitempty"`
9954
9955 ModelName string `json:"modelName,omitempty"`
9956
9957
9958
9959
9960
9961
9962
9963 ModelStatus string `json:"modelStatus,omitempty"`
9964
9965
9966
9967
9968
9969 ForceSendFields []string `json:"-"`
9970
9971
9972
9973
9974 NullFields []string `json:"-"`
9975 }
9976
9977 func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse) MarshalJSON() ([]byte, error) {
9978 type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse
9979 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9980 }
9981
9982
9983
9984 type GoogleCloudDiscoveryengineV1betaTuneEngineMetadata struct {
9985
9986
9987
9988
9989 Engine string `json:"engine,omitempty"`
9990
9991
9992
9993
9994
9995 ForceSendFields []string `json:"-"`
9996
9997
9998
9999
10000 NullFields []string `json:"-"`
10001 }
10002
10003 func (s *GoogleCloudDiscoveryengineV1betaTuneEngineMetadata) MarshalJSON() ([]byte, error) {
10004 type NoMethod GoogleCloudDiscoveryengineV1betaTuneEngineMetadata
10005 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10006 }
10007
10008
10009
10010 type GoogleCloudDiscoveryengineV1betaTuneEngineResponse struct {
10011 }
10012
10013
10014
10015 type GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata struct {
10016
10017 CreateTime string `json:"createTime,omitempty"`
10018
10019
10020 UpdateTime string `json:"updateTime,omitempty"`
10021
10022
10023
10024
10025
10026 ForceSendFields []string `json:"-"`
10027
10028
10029
10030
10031 NullFields []string `json:"-"`
10032 }
10033
10034 func (s *GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
10035 type NoMethod GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata
10036 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10037 }
10038
10039
10040
10041
10042 type GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata struct {
10043
10044 CreateTime string `json:"createTime,omitempty"`
10045
10046
10047 UpdateTime string `json:"updateTime,omitempty"`
10048
10049
10050
10051
10052
10053 ForceSendFields []string `json:"-"`
10054
10055
10056
10057
10058 NullFields []string `json:"-"`
10059 }
10060
10061 func (s *GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
10062 type NoMethod GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata
10063 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10064 }
10065
10066
10067
10068 type GoogleLongrunningCancelOperationRequest struct {
10069 }
10070
10071
10072
10073 type GoogleLongrunningListOperationsResponse struct {
10074
10075 NextPageToken string `json:"nextPageToken,omitempty"`
10076
10077
10078 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
10079
10080
10081 googleapi.ServerResponse `json:"-"`
10082
10083
10084
10085
10086
10087 ForceSendFields []string `json:"-"`
10088
10089
10090
10091
10092 NullFields []string `json:"-"`
10093 }
10094
10095 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
10096 type NoMethod GoogleLongrunningListOperationsResponse
10097 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10098 }
10099
10100
10101
10102 type GoogleLongrunningOperation struct {
10103
10104
10105
10106 Done bool `json:"done,omitempty"`
10107
10108 Error *GoogleRpcStatus `json:"error,omitempty"`
10109
10110
10111
10112
10113 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
10114
10115
10116
10117 Name string `json:"name,omitempty"`
10118
10119
10120
10121
10122
10123
10124
10125 Response googleapi.RawMessage `json:"response,omitempty"`
10126
10127
10128 googleapi.ServerResponse `json:"-"`
10129
10130
10131
10132
10133
10134 ForceSendFields []string `json:"-"`
10135
10136
10137
10138
10139 NullFields []string `json:"-"`
10140 }
10141
10142 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
10143 type NoMethod GoogleLongrunningOperation
10144 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10145 }
10146
10147
10148
10149
10150
10151
10152 type GoogleProtobufEmpty struct {
10153
10154 googleapi.ServerResponse `json:"-"`
10155 }
10156
10157
10158
10159
10160
10161
10162
10163 type GoogleRpcStatus struct {
10164
10165 Code int64 `json:"code,omitempty"`
10166
10167
10168 Details []googleapi.RawMessage `json:"details,omitempty"`
10169
10170
10171
10172 Message string `json:"message,omitempty"`
10173
10174
10175
10176
10177
10178 ForceSendFields []string `json:"-"`
10179
10180
10181
10182
10183 NullFields []string `json:"-"`
10184 }
10185
10186 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
10187 type NoMethod GoogleRpcStatus
10188 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10189 }
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200 type GoogleTypeDate struct {
10201
10202
10203
10204 Day int64 `json:"day,omitempty"`
10205
10206
10207 Month int64 `json:"month,omitempty"`
10208
10209
10210 Year int64 `json:"year,omitempty"`
10211
10212
10213
10214
10215
10216 ForceSendFields []string `json:"-"`
10217
10218
10219
10220
10221 NullFields []string `json:"-"`
10222 }
10223
10224 func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
10225 type NoMethod GoogleTypeDate
10226 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10227 }
10228
10229 type ProjectsLocationsCollectionsDataConnectorOperationsGetCall struct {
10230 s *Service
10231 name string
10232 urlParams_ gensupport.URLParams
10233 ifNoneMatch_ string
10234 ctx_ context.Context
10235 header_ http.Header
10236 }
10237
10238
10239
10240
10241
10242
10243 func (r *ProjectsLocationsCollectionsDataConnectorOperationsService) Get(name string) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
10244 c := &ProjectsLocationsCollectionsDataConnectorOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10245 c.name = name
10246 return c
10247 }
10248
10249
10250
10251
10252 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
10253 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10254 return c
10255 }
10256
10257
10258
10259
10260 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
10261 c.ifNoneMatch_ = entityTag
10262 return c
10263 }
10264
10265
10266 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
10267 c.ctx_ = ctx
10268 return c
10269 }
10270
10271
10272
10273 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Header() http.Header {
10274 if c.header_ == nil {
10275 c.header_ = make(http.Header)
10276 }
10277 return c.header_
10278 }
10279
10280 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) doRequest(alt string) (*http.Response, error) {
10281 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10282 if c.ifNoneMatch_ != "" {
10283 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10284 }
10285 var body io.Reader = nil
10286 c.urlParams_.Set("alt", alt)
10287 c.urlParams_.Set("prettyPrint", "false")
10288 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10289 urls += "?" + c.urlParams_.Encode()
10290 req, err := http.NewRequest("GET", urls, body)
10291 if err != nil {
10292 return nil, err
10293 }
10294 req.Header = reqHeaders
10295 googleapi.Expand(req.URL, map[string]string{
10296 "name": c.name,
10297 })
10298 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10299 }
10300
10301
10302
10303
10304
10305
10306
10307 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10308 gensupport.SetOptions(c.urlParams_, opts...)
10309 res, err := c.doRequest("json")
10310 if res != nil && res.StatusCode == http.StatusNotModified {
10311 if res.Body != nil {
10312 res.Body.Close()
10313 }
10314 return nil, gensupport.WrapError(&googleapi.Error{
10315 Code: res.StatusCode,
10316 Header: res.Header,
10317 })
10318 }
10319 if err != nil {
10320 return nil, err
10321 }
10322 defer googleapi.CloseBody(res)
10323 if err := googleapi.CheckResponse(res); err != nil {
10324 return nil, gensupport.WrapError(err)
10325 }
10326 ret := &GoogleLongrunningOperation{
10327 ServerResponse: googleapi.ServerResponse{
10328 Header: res.Header,
10329 HTTPStatusCode: res.StatusCode,
10330 },
10331 }
10332 target := &ret
10333 if err := gensupport.DecodeResponse(target, res); err != nil {
10334 return nil, err
10335 }
10336 return ret, nil
10337 }
10338
10339 type ProjectsLocationsCollectionsDataConnectorOperationsListCall struct {
10340 s *Service
10341 name string
10342 urlParams_ gensupport.URLParams
10343 ifNoneMatch_ string
10344 ctx_ context.Context
10345 header_ http.Header
10346 }
10347
10348
10349
10350
10351
10352 func (r *ProjectsLocationsCollectionsDataConnectorOperationsService) List(name string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
10353 c := &ProjectsLocationsCollectionsDataConnectorOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10354 c.name = name
10355 return c
10356 }
10357
10358
10359 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
10360 c.urlParams_.Set("filter", filter)
10361 return c
10362 }
10363
10364
10365
10366 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
10367 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10368 return c
10369 }
10370
10371
10372
10373 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
10374 c.urlParams_.Set("pageToken", pageToken)
10375 return c
10376 }
10377
10378
10379
10380
10381 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
10382 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10383 return c
10384 }
10385
10386
10387
10388
10389 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
10390 c.ifNoneMatch_ = entityTag
10391 return c
10392 }
10393
10394
10395 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
10396 c.ctx_ = ctx
10397 return c
10398 }
10399
10400
10401
10402 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Header() http.Header {
10403 if c.header_ == nil {
10404 c.header_ = make(http.Header)
10405 }
10406 return c.header_
10407 }
10408
10409 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) doRequest(alt string) (*http.Response, error) {
10410 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10411 if c.ifNoneMatch_ != "" {
10412 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10413 }
10414 var body io.Reader = nil
10415 c.urlParams_.Set("alt", alt)
10416 c.urlParams_.Set("prettyPrint", "false")
10417 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
10418 urls += "?" + c.urlParams_.Encode()
10419 req, err := http.NewRequest("GET", urls, body)
10420 if err != nil {
10421 return nil, err
10422 }
10423 req.Header = reqHeaders
10424 googleapi.Expand(req.URL, map[string]string{
10425 "name": c.name,
10426 })
10427 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10428 }
10429
10430
10431
10432
10433
10434
10435
10436 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
10437 gensupport.SetOptions(c.urlParams_, opts...)
10438 res, err := c.doRequest("json")
10439 if res != nil && res.StatusCode == http.StatusNotModified {
10440 if res.Body != nil {
10441 res.Body.Close()
10442 }
10443 return nil, gensupport.WrapError(&googleapi.Error{
10444 Code: res.StatusCode,
10445 Header: res.Header,
10446 })
10447 }
10448 if err != nil {
10449 return nil, err
10450 }
10451 defer googleapi.CloseBody(res)
10452 if err := googleapi.CheckResponse(res); err != nil {
10453 return nil, gensupport.WrapError(err)
10454 }
10455 ret := &GoogleLongrunningListOperationsResponse{
10456 ServerResponse: googleapi.ServerResponse{
10457 Header: res.Header,
10458 HTTPStatusCode: res.StatusCode,
10459 },
10460 }
10461 target := &ret
10462 if err := gensupport.DecodeResponse(target, res); err != nil {
10463 return nil, err
10464 }
10465 return ret, nil
10466 }
10467
10468
10469
10470
10471 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
10472 c.ctx_ = ctx
10473 defer c.PageToken(c.urlParams_.Get("pageToken"))
10474 for {
10475 x, err := c.Do()
10476 if err != nil {
10477 return err
10478 }
10479 if err := f(x); err != nil {
10480 return err
10481 }
10482 if x.NextPageToken == "" {
10483 return nil
10484 }
10485 c.PageToken(x.NextPageToken)
10486 }
10487 }
10488
10489 type ProjectsLocationsCollectionsDataStoresCompleteQueryCall struct {
10490 s *Service
10491 dataStore string
10492 urlParams_ gensupport.URLParams
10493 ifNoneMatch_ string
10494 ctx_ context.Context
10495 header_ http.Header
10496 }
10497
10498
10499
10500
10501
10502
10503
10504 func (r *ProjectsLocationsCollectionsDataStoresService) CompleteQuery(dataStore string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
10505 c := &ProjectsLocationsCollectionsDataStoresCompleteQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10506 c.dataStore = dataStore
10507 return c
10508 }
10509
10510
10511
10512
10513
10514
10515 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) IncludeTailSuggestions(includeTailSuggestions bool) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
10516 c.urlParams_.Set("includeTailSuggestions", fmt.Sprint(includeTailSuggestions))
10517 return c
10518 }
10519
10520
10521
10522 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Query(query string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
10523 c.urlParams_.Set("query", query)
10524 return c
10525 }
10526
10527
10528
10529
10530
10531
10532
10533
10534
10535
10536
10537
10538
10539 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
10540 c.urlParams_.Set("queryModel", queryModel)
10541 return c
10542 }
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) UserPseudoId(userPseudoId string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
10554 c.urlParams_.Set("userPseudoId", userPseudoId)
10555 return c
10556 }
10557
10558
10559
10560
10561 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
10562 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10563 return c
10564 }
10565
10566
10567
10568
10569 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
10570 c.ifNoneMatch_ = entityTag
10571 return c
10572 }
10573
10574
10575 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
10576 c.ctx_ = ctx
10577 return c
10578 }
10579
10580
10581
10582 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Header() http.Header {
10583 if c.header_ == nil {
10584 c.header_ = make(http.Header)
10585 }
10586 return c.header_
10587 }
10588
10589 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) doRequest(alt string) (*http.Response, error) {
10590 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10591 if c.ifNoneMatch_ != "" {
10592 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10593 }
10594 var body io.Reader = nil
10595 c.urlParams_.Set("alt", alt)
10596 c.urlParams_.Set("prettyPrint", "false")
10597 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+dataStore}:completeQuery")
10598 urls += "?" + c.urlParams_.Encode()
10599 req, err := http.NewRequest("GET", urls, body)
10600 if err != nil {
10601 return nil, err
10602 }
10603 req.Header = reqHeaders
10604 googleapi.Expand(req.URL, map[string]string{
10605 "dataStore": c.dataStore,
10606 })
10607 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10608 }
10609
10610
10611
10612
10613
10614
10615
10616 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1CompleteQueryResponse, error) {
10617 gensupport.SetOptions(c.urlParams_, opts...)
10618 res, err := c.doRequest("json")
10619 if res != nil && res.StatusCode == http.StatusNotModified {
10620 if res.Body != nil {
10621 res.Body.Close()
10622 }
10623 return nil, gensupport.WrapError(&googleapi.Error{
10624 Code: res.StatusCode,
10625 Header: res.Header,
10626 })
10627 }
10628 if err != nil {
10629 return nil, err
10630 }
10631 defer googleapi.CloseBody(res)
10632 if err := googleapi.CheckResponse(res); err != nil {
10633 return nil, gensupport.WrapError(err)
10634 }
10635 ret := &GoogleCloudDiscoveryengineV1CompleteQueryResponse{
10636 ServerResponse: googleapi.ServerResponse{
10637 Header: res.Header,
10638 HTTPStatusCode: res.StatusCode,
10639 },
10640 }
10641 target := &ret
10642 if err := gensupport.DecodeResponse(target, res); err != nil {
10643 return nil, err
10644 }
10645 return ret, nil
10646 }
10647
10648 type ProjectsLocationsCollectionsDataStoresCreateCall struct {
10649 s *Service
10650 parent string
10651 googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore
10652 urlParams_ gensupport.URLParams
10653 ctx_ context.Context
10654 header_ http.Header
10655 }
10656
10657
10658
10659
10660
10661
10662
10663 func (r *ProjectsLocationsCollectionsDataStoresService) Create(parent string, googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore) *ProjectsLocationsCollectionsDataStoresCreateCall {
10664 c := &ProjectsLocationsCollectionsDataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10665 c.parent = parent
10666 c.googleclouddiscoveryenginev1datastore = googleclouddiscoveryenginev1datastore
10667 return c
10668 }
10669
10670
10671
10672
10673
10674
10675 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) CreateAdvancedSiteSearch(createAdvancedSiteSearch bool) *ProjectsLocationsCollectionsDataStoresCreateCall {
10676 c.urlParams_.Set("createAdvancedSiteSearch", fmt.Sprint(createAdvancedSiteSearch))
10677 return c
10678 }
10679
10680
10681
10682
10683
10684
10685 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) DataStoreId(dataStoreId string) *ProjectsLocationsCollectionsDataStoresCreateCall {
10686 c.urlParams_.Set("dataStoreId", dataStoreId)
10687 return c
10688 }
10689
10690
10691
10692
10693 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCreateCall {
10694 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10695 return c
10696 }
10697
10698
10699 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCreateCall {
10700 c.ctx_ = ctx
10701 return c
10702 }
10703
10704
10705
10706 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Header() http.Header {
10707 if c.header_ == nil {
10708 c.header_ = make(http.Header)
10709 }
10710 return c.header_
10711 }
10712
10713 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) doRequest(alt string) (*http.Response, error) {
10714 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10715 var body io.Reader = nil
10716 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1datastore)
10717 if err != nil {
10718 return nil, err
10719 }
10720 c.urlParams_.Set("alt", alt)
10721 c.urlParams_.Set("prettyPrint", "false")
10722 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataStores")
10723 urls += "?" + c.urlParams_.Encode()
10724 req, err := http.NewRequest("POST", urls, body)
10725 if err != nil {
10726 return nil, err
10727 }
10728 req.Header = reqHeaders
10729 googleapi.Expand(req.URL, map[string]string{
10730 "parent": c.parent,
10731 })
10732 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10733 }
10734
10735
10736
10737
10738
10739
10740
10741 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10742 gensupport.SetOptions(c.urlParams_, opts...)
10743 res, err := c.doRequest("json")
10744 if res != nil && res.StatusCode == http.StatusNotModified {
10745 if res.Body != nil {
10746 res.Body.Close()
10747 }
10748 return nil, gensupport.WrapError(&googleapi.Error{
10749 Code: res.StatusCode,
10750 Header: res.Header,
10751 })
10752 }
10753 if err != nil {
10754 return nil, err
10755 }
10756 defer googleapi.CloseBody(res)
10757 if err := googleapi.CheckResponse(res); err != nil {
10758 return nil, gensupport.WrapError(err)
10759 }
10760 ret := &GoogleLongrunningOperation{
10761 ServerResponse: googleapi.ServerResponse{
10762 Header: res.Header,
10763 HTTPStatusCode: res.StatusCode,
10764 },
10765 }
10766 target := &ret
10767 if err := gensupport.DecodeResponse(target, res); err != nil {
10768 return nil, err
10769 }
10770 return ret, nil
10771 }
10772
10773 type ProjectsLocationsCollectionsDataStoresDeleteCall struct {
10774 s *Service
10775 name string
10776 urlParams_ gensupport.URLParams
10777 ctx_ context.Context
10778 header_ http.Header
10779 }
10780
10781
10782
10783
10784
10785
10786
10787
10788
10789 func (r *ProjectsLocationsCollectionsDataStoresService) Delete(name string) *ProjectsLocationsCollectionsDataStoresDeleteCall {
10790 c := &ProjectsLocationsCollectionsDataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10791 c.name = name
10792 return c
10793 }
10794
10795
10796
10797
10798 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresDeleteCall {
10799 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10800 return c
10801 }
10802
10803
10804 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresDeleteCall {
10805 c.ctx_ = ctx
10806 return c
10807 }
10808
10809
10810
10811 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Header() http.Header {
10812 if c.header_ == nil {
10813 c.header_ = make(http.Header)
10814 }
10815 return c.header_
10816 }
10817
10818 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
10819 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10820 var body io.Reader = nil
10821 c.urlParams_.Set("alt", alt)
10822 c.urlParams_.Set("prettyPrint", "false")
10823 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10824 urls += "?" + c.urlParams_.Encode()
10825 req, err := http.NewRequest("DELETE", urls, body)
10826 if err != nil {
10827 return nil, err
10828 }
10829 req.Header = reqHeaders
10830 googleapi.Expand(req.URL, map[string]string{
10831 "name": c.name,
10832 })
10833 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10834 }
10835
10836
10837
10838
10839
10840
10841
10842 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10843 gensupport.SetOptions(c.urlParams_, opts...)
10844 res, err := c.doRequest("json")
10845 if res != nil && res.StatusCode == http.StatusNotModified {
10846 if res.Body != nil {
10847 res.Body.Close()
10848 }
10849 return nil, gensupport.WrapError(&googleapi.Error{
10850 Code: res.StatusCode,
10851 Header: res.Header,
10852 })
10853 }
10854 if err != nil {
10855 return nil, err
10856 }
10857 defer googleapi.CloseBody(res)
10858 if err := googleapi.CheckResponse(res); err != nil {
10859 return nil, gensupport.WrapError(err)
10860 }
10861 ret := &GoogleLongrunningOperation{
10862 ServerResponse: googleapi.ServerResponse{
10863 Header: res.Header,
10864 HTTPStatusCode: res.StatusCode,
10865 },
10866 }
10867 target := &ret
10868 if err := gensupport.DecodeResponse(target, res); err != nil {
10869 return nil, err
10870 }
10871 return ret, nil
10872 }
10873
10874 type ProjectsLocationsCollectionsDataStoresGetCall struct {
10875 s *Service
10876 name string
10877 urlParams_ gensupport.URLParams
10878 ifNoneMatch_ string
10879 ctx_ context.Context
10880 header_ http.Header
10881 }
10882
10883
10884
10885
10886
10887
10888
10889
10890
10891 func (r *ProjectsLocationsCollectionsDataStoresService) Get(name string) *ProjectsLocationsCollectionsDataStoresGetCall {
10892 c := &ProjectsLocationsCollectionsDataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10893 c.name = name
10894 return c
10895 }
10896
10897
10898
10899
10900 func (c *ProjectsLocationsCollectionsDataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetCall {
10901 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10902 return c
10903 }
10904
10905
10906
10907
10908 func (c *ProjectsLocationsCollectionsDataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetCall {
10909 c.ifNoneMatch_ = entityTag
10910 return c
10911 }
10912
10913
10914 func (c *ProjectsLocationsCollectionsDataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetCall {
10915 c.ctx_ = ctx
10916 return c
10917 }
10918
10919
10920
10921 func (c *ProjectsLocationsCollectionsDataStoresGetCall) Header() http.Header {
10922 if c.header_ == nil {
10923 c.header_ = make(http.Header)
10924 }
10925 return c.header_
10926 }
10927
10928 func (c *ProjectsLocationsCollectionsDataStoresGetCall) doRequest(alt string) (*http.Response, error) {
10929 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10930 if c.ifNoneMatch_ != "" {
10931 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10932 }
10933 var body io.Reader = nil
10934 c.urlParams_.Set("alt", alt)
10935 c.urlParams_.Set("prettyPrint", "false")
10936 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10937 urls += "?" + c.urlParams_.Encode()
10938 req, err := http.NewRequest("GET", urls, body)
10939 if err != nil {
10940 return nil, err
10941 }
10942 req.Header = reqHeaders
10943 googleapi.Expand(req.URL, map[string]string{
10944 "name": c.name,
10945 })
10946 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10947 }
10948
10949
10950
10951
10952
10953
10954
10955 func (c *ProjectsLocationsCollectionsDataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1DataStore, error) {
10956 gensupport.SetOptions(c.urlParams_, opts...)
10957 res, err := c.doRequest("json")
10958 if res != nil && res.StatusCode == http.StatusNotModified {
10959 if res.Body != nil {
10960 res.Body.Close()
10961 }
10962 return nil, gensupport.WrapError(&googleapi.Error{
10963 Code: res.StatusCode,
10964 Header: res.Header,
10965 })
10966 }
10967 if err != nil {
10968 return nil, err
10969 }
10970 defer googleapi.CloseBody(res)
10971 if err := googleapi.CheckResponse(res); err != nil {
10972 return nil, gensupport.WrapError(err)
10973 }
10974 ret := &GoogleCloudDiscoveryengineV1DataStore{
10975 ServerResponse: googleapi.ServerResponse{
10976 Header: res.Header,
10977 HTTPStatusCode: res.StatusCode,
10978 },
10979 }
10980 target := &ret
10981 if err := gensupport.DecodeResponse(target, res); err != nil {
10982 return nil, err
10983 }
10984 return ret, nil
10985 }
10986
10987 type ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall struct {
10988 s *Service
10989 name string
10990 urlParams_ gensupport.URLParams
10991 ifNoneMatch_ string
10992 ctx_ context.Context
10993 header_ http.Header
10994 }
10995
10996
10997
10998
10999
11000
11001
11002
11003 func (r *ProjectsLocationsCollectionsDataStoresService) GetSiteSearchEngine(name string) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
11004 c := &ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11005 c.name = name
11006 return c
11007 }
11008
11009
11010
11011
11012 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
11013 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11014 return c
11015 }
11016
11017
11018
11019
11020 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
11021 c.ifNoneMatch_ = entityTag
11022 return c
11023 }
11024
11025
11026 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
11027 c.ctx_ = ctx
11028 return c
11029 }
11030
11031
11032
11033 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Header() http.Header {
11034 if c.header_ == nil {
11035 c.header_ = make(http.Header)
11036 }
11037 return c.header_
11038 }
11039
11040 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) doRequest(alt string) (*http.Response, error) {
11041 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11042 if c.ifNoneMatch_ != "" {
11043 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11044 }
11045 var body io.Reader = nil
11046 c.urlParams_.Set("alt", alt)
11047 c.urlParams_.Set("prettyPrint", "false")
11048 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11049 urls += "?" + c.urlParams_.Encode()
11050 req, err := http.NewRequest("GET", urls, body)
11051 if err != nil {
11052 return nil, err
11053 }
11054 req.Header = reqHeaders
11055 googleapi.Expand(req.URL, map[string]string{
11056 "name": c.name,
11057 })
11058 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11059 }
11060
11061
11062
11063
11064
11065
11066
11067 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1SiteSearchEngine, error) {
11068 gensupport.SetOptions(c.urlParams_, opts...)
11069 res, err := c.doRequest("json")
11070 if res != nil && res.StatusCode == http.StatusNotModified {
11071 if res.Body != nil {
11072 res.Body.Close()
11073 }
11074 return nil, gensupport.WrapError(&googleapi.Error{
11075 Code: res.StatusCode,
11076 Header: res.Header,
11077 })
11078 }
11079 if err != nil {
11080 return nil, err
11081 }
11082 defer googleapi.CloseBody(res)
11083 if err := googleapi.CheckResponse(res); err != nil {
11084 return nil, gensupport.WrapError(err)
11085 }
11086 ret := &GoogleCloudDiscoveryengineV1SiteSearchEngine{
11087 ServerResponse: googleapi.ServerResponse{
11088 Header: res.Header,
11089 HTTPStatusCode: res.StatusCode,
11090 },
11091 }
11092 target := &ret
11093 if err := gensupport.DecodeResponse(target, res); err != nil {
11094 return nil, err
11095 }
11096 return ret, nil
11097 }
11098
11099 type ProjectsLocationsCollectionsDataStoresListCall struct {
11100 s *Service
11101 parent string
11102 urlParams_ gensupport.URLParams
11103 ifNoneMatch_ string
11104 ctx_ context.Context
11105 header_ http.Header
11106 }
11107
11108
11109
11110
11111
11112
11113
11114
11115 func (r *ProjectsLocationsCollectionsDataStoresService) List(parent string) *ProjectsLocationsCollectionsDataStoresListCall {
11116 c := &ProjectsLocationsCollectionsDataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11117 c.parent = parent
11118 return c
11119 }
11120
11121
11122
11123 func (c *ProjectsLocationsCollectionsDataStoresListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresListCall {
11124 c.urlParams_.Set("filter", filter)
11125 return c
11126 }
11127
11128
11129
11130
11131
11132 func (c *ProjectsLocationsCollectionsDataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresListCall {
11133 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11134 return c
11135 }
11136
11137
11138
11139
11140
11141
11142
11143 func (c *ProjectsLocationsCollectionsDataStoresListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresListCall {
11144 c.urlParams_.Set("pageToken", pageToken)
11145 return c
11146 }
11147
11148
11149
11150
11151 func (c *ProjectsLocationsCollectionsDataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresListCall {
11152 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11153 return c
11154 }
11155
11156
11157
11158
11159 func (c *ProjectsLocationsCollectionsDataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresListCall {
11160 c.ifNoneMatch_ = entityTag
11161 return c
11162 }
11163
11164
11165 func (c *ProjectsLocationsCollectionsDataStoresListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresListCall {
11166 c.ctx_ = ctx
11167 return c
11168 }
11169
11170
11171
11172 func (c *ProjectsLocationsCollectionsDataStoresListCall) Header() http.Header {
11173 if c.header_ == nil {
11174 c.header_ = make(http.Header)
11175 }
11176 return c.header_
11177 }
11178
11179 func (c *ProjectsLocationsCollectionsDataStoresListCall) doRequest(alt string) (*http.Response, error) {
11180 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11181 if c.ifNoneMatch_ != "" {
11182 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11183 }
11184 var body io.Reader = nil
11185 c.urlParams_.Set("alt", alt)
11186 c.urlParams_.Set("prettyPrint", "false")
11187 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataStores")
11188 urls += "?" + c.urlParams_.Encode()
11189 req, err := http.NewRequest("GET", urls, body)
11190 if err != nil {
11191 return nil, err
11192 }
11193 req.Header = reqHeaders
11194 googleapi.Expand(req.URL, map[string]string{
11195 "parent": c.parent,
11196 })
11197 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11198 }
11199
11200
11201
11202
11203
11204
11205
11206 func (c *ProjectsLocationsCollectionsDataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListDataStoresResponse, error) {
11207 gensupport.SetOptions(c.urlParams_, opts...)
11208 res, err := c.doRequest("json")
11209 if res != nil && res.StatusCode == http.StatusNotModified {
11210 if res.Body != nil {
11211 res.Body.Close()
11212 }
11213 return nil, gensupport.WrapError(&googleapi.Error{
11214 Code: res.StatusCode,
11215 Header: res.Header,
11216 })
11217 }
11218 if err != nil {
11219 return nil, err
11220 }
11221 defer googleapi.CloseBody(res)
11222 if err := googleapi.CheckResponse(res); err != nil {
11223 return nil, gensupport.WrapError(err)
11224 }
11225 ret := &GoogleCloudDiscoveryengineV1ListDataStoresResponse{
11226 ServerResponse: googleapi.ServerResponse{
11227 Header: res.Header,
11228 HTTPStatusCode: res.StatusCode,
11229 },
11230 }
11231 target := &ret
11232 if err := gensupport.DecodeResponse(target, res); err != nil {
11233 return nil, err
11234 }
11235 return ret, nil
11236 }
11237
11238
11239
11240
11241 func (c *ProjectsLocationsCollectionsDataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListDataStoresResponse) error) error {
11242 c.ctx_ = ctx
11243 defer c.PageToken(c.urlParams_.Get("pageToken"))
11244 for {
11245 x, err := c.Do()
11246 if err != nil {
11247 return err
11248 }
11249 if err := f(x); err != nil {
11250 return err
11251 }
11252 if x.NextPageToken == "" {
11253 return nil
11254 }
11255 c.PageToken(x.NextPageToken)
11256 }
11257 }
11258
11259 type ProjectsLocationsCollectionsDataStoresPatchCall struct {
11260 s *Service
11261 name string
11262 googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore
11263 urlParams_ gensupport.URLParams
11264 ctx_ context.Context
11265 header_ http.Header
11266 }
11267
11268
11269
11270
11271
11272
11273
11274 func (r *ProjectsLocationsCollectionsDataStoresService) Patch(name string, googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore) *ProjectsLocationsCollectionsDataStoresPatchCall {
11275 c := &ProjectsLocationsCollectionsDataStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11276 c.name = name
11277 c.googleclouddiscoveryenginev1datastore = googleclouddiscoveryenginev1datastore
11278 return c
11279 }
11280
11281
11282
11283
11284 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresPatchCall {
11285 c.urlParams_.Set("updateMask", updateMask)
11286 return c
11287 }
11288
11289
11290
11291
11292 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresPatchCall {
11293 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11294 return c
11295 }
11296
11297
11298 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresPatchCall {
11299 c.ctx_ = ctx
11300 return c
11301 }
11302
11303
11304
11305 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Header() http.Header {
11306 if c.header_ == nil {
11307 c.header_ = make(http.Header)
11308 }
11309 return c.header_
11310 }
11311
11312 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) doRequest(alt string) (*http.Response, error) {
11313 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11314 var body io.Reader = nil
11315 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1datastore)
11316 if err != nil {
11317 return nil, err
11318 }
11319 c.urlParams_.Set("alt", alt)
11320 c.urlParams_.Set("prettyPrint", "false")
11321 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11322 urls += "?" + c.urlParams_.Encode()
11323 req, err := http.NewRequest("PATCH", urls, body)
11324 if err != nil {
11325 return nil, err
11326 }
11327 req.Header = reqHeaders
11328 googleapi.Expand(req.URL, map[string]string{
11329 "name": c.name,
11330 })
11331 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11332 }
11333
11334
11335
11336
11337
11338
11339
11340 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1DataStore, error) {
11341 gensupport.SetOptions(c.urlParams_, opts...)
11342 res, err := c.doRequest("json")
11343 if res != nil && res.StatusCode == http.StatusNotModified {
11344 if res.Body != nil {
11345 res.Body.Close()
11346 }
11347 return nil, gensupport.WrapError(&googleapi.Error{
11348 Code: res.StatusCode,
11349 Header: res.Header,
11350 })
11351 }
11352 if err != nil {
11353 return nil, err
11354 }
11355 defer googleapi.CloseBody(res)
11356 if err := googleapi.CheckResponse(res); err != nil {
11357 return nil, gensupport.WrapError(err)
11358 }
11359 ret := &GoogleCloudDiscoveryengineV1DataStore{
11360 ServerResponse: googleapi.ServerResponse{
11361 Header: res.Header,
11362 HTTPStatusCode: res.StatusCode,
11363 },
11364 }
11365 target := &ret
11366 if err := gensupport.DecodeResponse(target, res); err != nil {
11367 return nil, err
11368 }
11369 return ret, nil
11370 }
11371
11372 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall struct {
11373 s *Service
11374 parent string
11375 googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document
11376 urlParams_ gensupport.URLParams
11377 ctx_ context.Context
11378 header_ http.Header
11379 }
11380
11381
11382
11383
11384
11385
11386 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Create(parent string, googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
11387 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11388 c.parent = parent
11389 c.googleclouddiscoveryenginev1document = googleclouddiscoveryenginev1document
11390 return c
11391 }
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) DocumentId(documentId string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
11403 c.urlParams_.Set("documentId", documentId)
11404 return c
11405 }
11406
11407
11408
11409
11410 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
11411 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11412 return c
11413 }
11414
11415
11416 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
11417 c.ctx_ = ctx
11418 return c
11419 }
11420
11421
11422
11423 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Header() http.Header {
11424 if c.header_ == nil {
11425 c.header_ = make(http.Header)
11426 }
11427 return c.header_
11428 }
11429
11430 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
11431 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11432 var body io.Reader = nil
11433 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1document)
11434 if err != nil {
11435 return nil, err
11436 }
11437 c.urlParams_.Set("alt", alt)
11438 c.urlParams_.Set("prettyPrint", "false")
11439 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents")
11440 urls += "?" + c.urlParams_.Encode()
11441 req, err := http.NewRequest("POST", urls, body)
11442 if err != nil {
11443 return nil, err
11444 }
11445 req.Header = reqHeaders
11446 googleapi.Expand(req.URL, map[string]string{
11447 "parent": c.parent,
11448 })
11449 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11450 }
11451
11452
11453
11454
11455
11456
11457
11458 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Document, error) {
11459 gensupport.SetOptions(c.urlParams_, opts...)
11460 res, err := c.doRequest("json")
11461 if res != nil && res.StatusCode == http.StatusNotModified {
11462 if res.Body != nil {
11463 res.Body.Close()
11464 }
11465 return nil, gensupport.WrapError(&googleapi.Error{
11466 Code: res.StatusCode,
11467 Header: res.Header,
11468 })
11469 }
11470 if err != nil {
11471 return nil, err
11472 }
11473 defer googleapi.CloseBody(res)
11474 if err := googleapi.CheckResponse(res); err != nil {
11475 return nil, gensupport.WrapError(err)
11476 }
11477 ret := &GoogleCloudDiscoveryengineV1Document{
11478 ServerResponse: googleapi.ServerResponse{
11479 Header: res.Header,
11480 HTTPStatusCode: res.StatusCode,
11481 },
11482 }
11483 target := &ret
11484 if err := gensupport.DecodeResponse(target, res); err != nil {
11485 return nil, err
11486 }
11487 return ret, nil
11488 }
11489
11490 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall struct {
11491 s *Service
11492 name string
11493 urlParams_ gensupport.URLParams
11494 ctx_ context.Context
11495 header_ http.Header
11496 }
11497
11498
11499
11500
11501
11502
11503
11504
11505
11506 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
11507 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11508 c.name = name
11509 return c
11510 }
11511
11512
11513
11514
11515 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
11516 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11517 return c
11518 }
11519
11520
11521 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
11522 c.ctx_ = ctx
11523 return c
11524 }
11525
11526
11527
11528 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Header() http.Header {
11529 if c.header_ == nil {
11530 c.header_ = make(http.Header)
11531 }
11532 return c.header_
11533 }
11534
11535 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
11536 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11537 var body io.Reader = nil
11538 c.urlParams_.Set("alt", alt)
11539 c.urlParams_.Set("prettyPrint", "false")
11540 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11541 urls += "?" + c.urlParams_.Encode()
11542 req, err := http.NewRequest("DELETE", urls, body)
11543 if err != nil {
11544 return nil, err
11545 }
11546 req.Header = reqHeaders
11547 googleapi.Expand(req.URL, map[string]string{
11548 "name": c.name,
11549 })
11550 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11551 }
11552
11553
11554
11555
11556
11557
11558
11559 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11560 gensupport.SetOptions(c.urlParams_, opts...)
11561 res, err := c.doRequest("json")
11562 if res != nil && res.StatusCode == http.StatusNotModified {
11563 if res.Body != nil {
11564 res.Body.Close()
11565 }
11566 return nil, gensupport.WrapError(&googleapi.Error{
11567 Code: res.StatusCode,
11568 Header: res.Header,
11569 })
11570 }
11571 if err != nil {
11572 return nil, err
11573 }
11574 defer googleapi.CloseBody(res)
11575 if err := googleapi.CheckResponse(res); err != nil {
11576 return nil, gensupport.WrapError(err)
11577 }
11578 ret := &GoogleProtobufEmpty{
11579 ServerResponse: googleapi.ServerResponse{
11580 Header: res.Header,
11581 HTTPStatusCode: res.StatusCode,
11582 },
11583 }
11584 target := &ret
11585 if err := gensupport.DecodeResponse(target, res); err != nil {
11586 return nil, err
11587 }
11588 return ret, nil
11589 }
11590
11591 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall struct {
11592 s *Service
11593 name string
11594 urlParams_ gensupport.URLParams
11595 ifNoneMatch_ string
11596 ctx_ context.Context
11597 header_ http.Header
11598 }
11599
11600
11601
11602
11603
11604
11605
11606
11607
11608 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
11609 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11610 c.name = name
11611 return c
11612 }
11613
11614
11615
11616
11617 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
11618 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11619 return c
11620 }
11621
11622
11623
11624
11625 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
11626 c.ifNoneMatch_ = entityTag
11627 return c
11628 }
11629
11630
11631 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
11632 c.ctx_ = ctx
11633 return c
11634 }
11635
11636
11637
11638 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Header() http.Header {
11639 if c.header_ == nil {
11640 c.header_ = make(http.Header)
11641 }
11642 return c.header_
11643 }
11644
11645 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
11646 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11647 if c.ifNoneMatch_ != "" {
11648 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11649 }
11650 var body io.Reader = nil
11651 c.urlParams_.Set("alt", alt)
11652 c.urlParams_.Set("prettyPrint", "false")
11653 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11654 urls += "?" + c.urlParams_.Encode()
11655 req, err := http.NewRequest("GET", urls, body)
11656 if err != nil {
11657 return nil, err
11658 }
11659 req.Header = reqHeaders
11660 googleapi.Expand(req.URL, map[string]string{
11661 "name": c.name,
11662 })
11663 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11664 }
11665
11666
11667
11668
11669
11670
11671
11672 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Document, error) {
11673 gensupport.SetOptions(c.urlParams_, opts...)
11674 res, err := c.doRequest("json")
11675 if res != nil && res.StatusCode == http.StatusNotModified {
11676 if res.Body != nil {
11677 res.Body.Close()
11678 }
11679 return nil, gensupport.WrapError(&googleapi.Error{
11680 Code: res.StatusCode,
11681 Header: res.Header,
11682 })
11683 }
11684 if err != nil {
11685 return nil, err
11686 }
11687 defer googleapi.CloseBody(res)
11688 if err := googleapi.CheckResponse(res); err != nil {
11689 return nil, gensupport.WrapError(err)
11690 }
11691 ret := &GoogleCloudDiscoveryengineV1Document{
11692 ServerResponse: googleapi.ServerResponse{
11693 Header: res.Header,
11694 HTTPStatusCode: res.StatusCode,
11695 },
11696 }
11697 target := &ret
11698 if err := gensupport.DecodeResponse(target, res); err != nil {
11699 return nil, err
11700 }
11701 return ret, nil
11702 }
11703
11704 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall struct {
11705 s *Service
11706 parent string
11707 googleclouddiscoveryenginev1importdocumentsrequest *GoogleCloudDiscoveryengineV1ImportDocumentsRequest
11708 urlParams_ gensupport.URLParams
11709 ctx_ context.Context
11710 header_ http.Header
11711 }
11712
11713
11714
11715
11716
11717
11718
11719
11720 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Import(parent string, googleclouddiscoveryenginev1importdocumentsrequest *GoogleCloudDiscoveryengineV1ImportDocumentsRequest) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
11721 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11722 c.parent = parent
11723 c.googleclouddiscoveryenginev1importdocumentsrequest = googleclouddiscoveryenginev1importdocumentsrequest
11724 return c
11725 }
11726
11727
11728
11729
11730 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
11731 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11732 return c
11733 }
11734
11735
11736 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
11737 c.ctx_ = ctx
11738 return c
11739 }
11740
11741
11742
11743 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Header() http.Header {
11744 if c.header_ == nil {
11745 c.header_ = make(http.Header)
11746 }
11747 return c.header_
11748 }
11749
11750 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
11751 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11752 var body io.Reader = nil
11753 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1importdocumentsrequest)
11754 if err != nil {
11755 return nil, err
11756 }
11757 c.urlParams_.Set("alt", alt)
11758 c.urlParams_.Set("prettyPrint", "false")
11759 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents:import")
11760 urls += "?" + c.urlParams_.Encode()
11761 req, err := http.NewRequest("POST", urls, body)
11762 if err != nil {
11763 return nil, err
11764 }
11765 req.Header = reqHeaders
11766 googleapi.Expand(req.URL, map[string]string{
11767 "parent": c.parent,
11768 })
11769 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11770 }
11771
11772
11773
11774
11775
11776
11777
11778 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11779 gensupport.SetOptions(c.urlParams_, opts...)
11780 res, err := c.doRequest("json")
11781 if res != nil && res.StatusCode == http.StatusNotModified {
11782 if res.Body != nil {
11783 res.Body.Close()
11784 }
11785 return nil, gensupport.WrapError(&googleapi.Error{
11786 Code: res.StatusCode,
11787 Header: res.Header,
11788 })
11789 }
11790 if err != nil {
11791 return nil, err
11792 }
11793 defer googleapi.CloseBody(res)
11794 if err := googleapi.CheckResponse(res); err != nil {
11795 return nil, gensupport.WrapError(err)
11796 }
11797 ret := &GoogleLongrunningOperation{
11798 ServerResponse: googleapi.ServerResponse{
11799 Header: res.Header,
11800 HTTPStatusCode: res.StatusCode,
11801 },
11802 }
11803 target := &ret
11804 if err := gensupport.DecodeResponse(target, res); err != nil {
11805 return nil, err
11806 }
11807 return ret, nil
11808 }
11809
11810 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall struct {
11811 s *Service
11812 parent string
11813 urlParams_ gensupport.URLParams
11814 ifNoneMatch_ string
11815 ctx_ context.Context
11816 header_ http.Header
11817 }
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) List(parent string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
11828 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11829 c.parent = parent
11830 return c
11831 }
11832
11833
11834
11835
11836
11837 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
11838 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11839 return c
11840 }
11841
11842
11843
11844
11845
11846
11847
11848 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
11849 c.urlParams_.Set("pageToken", pageToken)
11850 return c
11851 }
11852
11853
11854
11855
11856 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
11857 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11858 return c
11859 }
11860
11861
11862
11863
11864 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
11865 c.ifNoneMatch_ = entityTag
11866 return c
11867 }
11868
11869
11870 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
11871 c.ctx_ = ctx
11872 return c
11873 }
11874
11875
11876
11877 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Header() http.Header {
11878 if c.header_ == nil {
11879 c.header_ = make(http.Header)
11880 }
11881 return c.header_
11882 }
11883
11884 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
11885 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11886 if c.ifNoneMatch_ != "" {
11887 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11888 }
11889 var body io.Reader = nil
11890 c.urlParams_.Set("alt", alt)
11891 c.urlParams_.Set("prettyPrint", "false")
11892 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents")
11893 urls += "?" + c.urlParams_.Encode()
11894 req, err := http.NewRequest("GET", urls, body)
11895 if err != nil {
11896 return nil, err
11897 }
11898 req.Header = reqHeaders
11899 googleapi.Expand(req.URL, map[string]string{
11900 "parent": c.parent,
11901 })
11902 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11903 }
11904
11905
11906
11907
11908
11909
11910
11911 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListDocumentsResponse, error) {
11912 gensupport.SetOptions(c.urlParams_, opts...)
11913 res, err := c.doRequest("json")
11914 if res != nil && res.StatusCode == http.StatusNotModified {
11915 if res.Body != nil {
11916 res.Body.Close()
11917 }
11918 return nil, gensupport.WrapError(&googleapi.Error{
11919 Code: res.StatusCode,
11920 Header: res.Header,
11921 })
11922 }
11923 if err != nil {
11924 return nil, err
11925 }
11926 defer googleapi.CloseBody(res)
11927 if err := googleapi.CheckResponse(res); err != nil {
11928 return nil, gensupport.WrapError(err)
11929 }
11930 ret := &GoogleCloudDiscoveryengineV1ListDocumentsResponse{
11931 ServerResponse: googleapi.ServerResponse{
11932 Header: res.Header,
11933 HTTPStatusCode: res.StatusCode,
11934 },
11935 }
11936 target := &ret
11937 if err := gensupport.DecodeResponse(target, res); err != nil {
11938 return nil, err
11939 }
11940 return ret, nil
11941 }
11942
11943
11944
11945
11946 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListDocumentsResponse) error) error {
11947 c.ctx_ = ctx
11948 defer c.PageToken(c.urlParams_.Get("pageToken"))
11949 for {
11950 x, err := c.Do()
11951 if err != nil {
11952 return err
11953 }
11954 if err := f(x); err != nil {
11955 return err
11956 }
11957 if x.NextPageToken == "" {
11958 return nil
11959 }
11960 c.PageToken(x.NextPageToken)
11961 }
11962 }
11963
11964 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall struct {
11965 s *Service
11966 name string
11967 googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document
11968 urlParams_ gensupport.URLParams
11969 ctx_ context.Context
11970 header_ http.Header
11971 }
11972
11973
11974
11975
11976
11977
11978
11979 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Patch(name string, googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
11980 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11981 c.name = name
11982 c.googleclouddiscoveryenginev1document = googleclouddiscoveryenginev1document
11983 return c
11984 }
11985
11986
11987
11988 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
11989 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
11990 return c
11991 }
11992
11993
11994
11995
11996 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
11997 c.urlParams_.Set("updateMask", updateMask)
11998 return c
11999 }
12000
12001
12002
12003
12004 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
12005 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12006 return c
12007 }
12008
12009
12010 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
12011 c.ctx_ = ctx
12012 return c
12013 }
12014
12015
12016
12017 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Header() http.Header {
12018 if c.header_ == nil {
12019 c.header_ = make(http.Header)
12020 }
12021 return c.header_
12022 }
12023
12024 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
12025 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12026 var body io.Reader = nil
12027 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1document)
12028 if err != nil {
12029 return nil, err
12030 }
12031 c.urlParams_.Set("alt", alt)
12032 c.urlParams_.Set("prettyPrint", "false")
12033 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12034 urls += "?" + c.urlParams_.Encode()
12035 req, err := http.NewRequest("PATCH", urls, body)
12036 if err != nil {
12037 return nil, err
12038 }
12039 req.Header = reqHeaders
12040 googleapi.Expand(req.URL, map[string]string{
12041 "name": c.name,
12042 })
12043 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12044 }
12045
12046
12047
12048
12049
12050
12051
12052 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Document, error) {
12053 gensupport.SetOptions(c.urlParams_, opts...)
12054 res, err := c.doRequest("json")
12055 if res != nil && res.StatusCode == http.StatusNotModified {
12056 if res.Body != nil {
12057 res.Body.Close()
12058 }
12059 return nil, gensupport.WrapError(&googleapi.Error{
12060 Code: res.StatusCode,
12061 Header: res.Header,
12062 })
12063 }
12064 if err != nil {
12065 return nil, err
12066 }
12067 defer googleapi.CloseBody(res)
12068 if err := googleapi.CheckResponse(res); err != nil {
12069 return nil, gensupport.WrapError(err)
12070 }
12071 ret := &GoogleCloudDiscoveryengineV1Document{
12072 ServerResponse: googleapi.ServerResponse{
12073 Header: res.Header,
12074 HTTPStatusCode: res.StatusCode,
12075 },
12076 }
12077 target := &ret
12078 if err := gensupport.DecodeResponse(target, res); err != nil {
12079 return nil, err
12080 }
12081 return ret, nil
12082 }
12083
12084 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall struct {
12085 s *Service
12086 parent string
12087 googleclouddiscoveryenginev1purgedocumentsrequest *GoogleCloudDiscoveryengineV1PurgeDocumentsRequest
12088 urlParams_ gensupport.URLParams
12089 ctx_ context.Context
12090 header_ http.Header
12091 }
12092
12093
12094
12095
12096
12097
12098
12099
12100
12101
12102
12103 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Purge(parent string, googleclouddiscoveryenginev1purgedocumentsrequest *GoogleCloudDiscoveryengineV1PurgeDocumentsRequest) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
12104 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12105 c.parent = parent
12106 c.googleclouddiscoveryenginev1purgedocumentsrequest = googleclouddiscoveryenginev1purgedocumentsrequest
12107 return c
12108 }
12109
12110
12111
12112
12113 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
12114 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12115 return c
12116 }
12117
12118
12119 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
12120 c.ctx_ = ctx
12121 return c
12122 }
12123
12124
12125
12126 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Header() http.Header {
12127 if c.header_ == nil {
12128 c.header_ = make(http.Header)
12129 }
12130 return c.header_
12131 }
12132
12133 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) doRequest(alt string) (*http.Response, error) {
12134 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12135 var body io.Reader = nil
12136 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1purgedocumentsrequest)
12137 if err != nil {
12138 return nil, err
12139 }
12140 c.urlParams_.Set("alt", alt)
12141 c.urlParams_.Set("prettyPrint", "false")
12142 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents:purge")
12143 urls += "?" + c.urlParams_.Encode()
12144 req, err := http.NewRequest("POST", urls, body)
12145 if err != nil {
12146 return nil, err
12147 }
12148 req.Header = reqHeaders
12149 googleapi.Expand(req.URL, map[string]string{
12150 "parent": c.parent,
12151 })
12152 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12153 }
12154
12155
12156
12157
12158
12159
12160
12161 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12162 gensupport.SetOptions(c.urlParams_, opts...)
12163 res, err := c.doRequest("json")
12164 if res != nil && res.StatusCode == http.StatusNotModified {
12165 if res.Body != nil {
12166 res.Body.Close()
12167 }
12168 return nil, gensupport.WrapError(&googleapi.Error{
12169 Code: res.StatusCode,
12170 Header: res.Header,
12171 })
12172 }
12173 if err != nil {
12174 return nil, err
12175 }
12176 defer googleapi.CloseBody(res)
12177 if err := googleapi.CheckResponse(res); err != nil {
12178 return nil, gensupport.WrapError(err)
12179 }
12180 ret := &GoogleLongrunningOperation{
12181 ServerResponse: googleapi.ServerResponse{
12182 Header: res.Header,
12183 HTTPStatusCode: res.StatusCode,
12184 },
12185 }
12186 target := &ret
12187 if err := gensupport.DecodeResponse(target, res); err != nil {
12188 return nil, err
12189 }
12190 return ret, nil
12191 }
12192
12193 type ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall struct {
12194 s *Service
12195 name string
12196 googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
12197 urlParams_ gensupport.URLParams
12198 ctx_ context.Context
12199 header_ http.Header
12200 }
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211
12212
12213 func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
12214 c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12215 c.name = name
12216 c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
12217 return c
12218 }
12219
12220
12221
12222
12223 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
12224 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12225 return c
12226 }
12227
12228
12229 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
12230 c.ctx_ = ctx
12231 return c
12232 }
12233
12234
12235
12236 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Header() http.Header {
12237 if c.header_ == nil {
12238 c.header_ = make(http.Header)
12239 }
12240 return c.header_
12241 }
12242
12243 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
12244 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12245 var body io.Reader = nil
12246 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
12247 if err != nil {
12248 return nil, err
12249 }
12250 c.urlParams_.Set("alt", alt)
12251 c.urlParams_.Set("prettyPrint", "false")
12252 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
12253 urls += "?" + c.urlParams_.Encode()
12254 req, err := http.NewRequest("POST", urls, body)
12255 if err != nil {
12256 return nil, err
12257 }
12258 req.Header = reqHeaders
12259 googleapi.Expand(req.URL, map[string]string{
12260 "name": c.name,
12261 })
12262 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12263 }
12264
12265
12266
12267
12268
12269
12270
12271 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
12272 gensupport.SetOptions(c.urlParams_, opts...)
12273 res, err := c.doRequest("json")
12274 if res != nil && res.StatusCode == http.StatusNotModified {
12275 if res.Body != nil {
12276 res.Body.Close()
12277 }
12278 return nil, gensupport.WrapError(&googleapi.Error{
12279 Code: res.StatusCode,
12280 Header: res.Header,
12281 })
12282 }
12283 if err != nil {
12284 return nil, err
12285 }
12286 defer googleapi.CloseBody(res)
12287 if err := googleapi.CheckResponse(res); err != nil {
12288 return nil, gensupport.WrapError(err)
12289 }
12290 ret := &GoogleProtobufEmpty{
12291 ServerResponse: googleapi.ServerResponse{
12292 Header: res.Header,
12293 HTTPStatusCode: res.StatusCode,
12294 },
12295 }
12296 target := &ret
12297 if err := gensupport.DecodeResponse(target, res); err != nil {
12298 return nil, err
12299 }
12300 return ret, nil
12301 }
12302
12303 type ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall struct {
12304 s *Service
12305 name string
12306 urlParams_ gensupport.URLParams
12307 ifNoneMatch_ string
12308 ctx_ context.Context
12309 header_ http.Header
12310 }
12311
12312
12313
12314
12315
12316
12317 func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
12318 c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12319 c.name = name
12320 return c
12321 }
12322
12323
12324
12325
12326 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
12327 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12328 return c
12329 }
12330
12331
12332
12333
12334 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
12335 c.ifNoneMatch_ = entityTag
12336 return c
12337 }
12338
12339
12340 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
12341 c.ctx_ = ctx
12342 return c
12343 }
12344
12345
12346
12347 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Header() http.Header {
12348 if c.header_ == nil {
12349 c.header_ = make(http.Header)
12350 }
12351 return c.header_
12352 }
12353
12354 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
12355 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12356 if c.ifNoneMatch_ != "" {
12357 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12358 }
12359 var body io.Reader = nil
12360 c.urlParams_.Set("alt", alt)
12361 c.urlParams_.Set("prettyPrint", "false")
12362 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12363 urls += "?" + c.urlParams_.Encode()
12364 req, err := http.NewRequest("GET", urls, body)
12365 if err != nil {
12366 return nil, err
12367 }
12368 req.Header = reqHeaders
12369 googleapi.Expand(req.URL, map[string]string{
12370 "name": c.name,
12371 })
12372 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12373 }
12374
12375
12376
12377
12378
12379
12380
12381 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12382 gensupport.SetOptions(c.urlParams_, opts...)
12383 res, err := c.doRequest("json")
12384 if res != nil && res.StatusCode == http.StatusNotModified {
12385 if res.Body != nil {
12386 res.Body.Close()
12387 }
12388 return nil, gensupport.WrapError(&googleapi.Error{
12389 Code: res.StatusCode,
12390 Header: res.Header,
12391 })
12392 }
12393 if err != nil {
12394 return nil, err
12395 }
12396 defer googleapi.CloseBody(res)
12397 if err := googleapi.CheckResponse(res); err != nil {
12398 return nil, gensupport.WrapError(err)
12399 }
12400 ret := &GoogleLongrunningOperation{
12401 ServerResponse: googleapi.ServerResponse{
12402 Header: res.Header,
12403 HTTPStatusCode: res.StatusCode,
12404 },
12405 }
12406 target := &ret
12407 if err := gensupport.DecodeResponse(target, res); err != nil {
12408 return nil, err
12409 }
12410 return ret, nil
12411 }
12412
12413 type ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall struct {
12414 s *Service
12415 name string
12416 urlParams_ gensupport.URLParams
12417 ifNoneMatch_ string
12418 ctx_ context.Context
12419 header_ http.Header
12420 }
12421
12422
12423
12424
12425
12426 func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
12427 c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12428 c.name = name
12429 return c
12430 }
12431
12432
12433 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
12434 c.urlParams_.Set("filter", filter)
12435 return c
12436 }
12437
12438
12439
12440 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
12441 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12442 return c
12443 }
12444
12445
12446
12447 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
12448 c.urlParams_.Set("pageToken", pageToken)
12449 return c
12450 }
12451
12452
12453
12454
12455 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
12456 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12457 return c
12458 }
12459
12460
12461
12462
12463 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
12464 c.ifNoneMatch_ = entityTag
12465 return c
12466 }
12467
12468
12469 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
12470 c.ctx_ = ctx
12471 return c
12472 }
12473
12474
12475
12476 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Header() http.Header {
12477 if c.header_ == nil {
12478 c.header_ = make(http.Header)
12479 }
12480 return c.header_
12481 }
12482
12483 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) doRequest(alt string) (*http.Response, error) {
12484 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12485 if c.ifNoneMatch_ != "" {
12486 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12487 }
12488 var body io.Reader = nil
12489 c.urlParams_.Set("alt", alt)
12490 c.urlParams_.Set("prettyPrint", "false")
12491 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
12492 urls += "?" + c.urlParams_.Encode()
12493 req, err := http.NewRequest("GET", urls, body)
12494 if err != nil {
12495 return nil, err
12496 }
12497 req.Header = reqHeaders
12498 googleapi.Expand(req.URL, map[string]string{
12499 "name": c.name,
12500 })
12501 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12502 }
12503
12504
12505
12506
12507
12508
12509
12510 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
12511 gensupport.SetOptions(c.urlParams_, opts...)
12512 res, err := c.doRequest("json")
12513 if res != nil && res.StatusCode == http.StatusNotModified {
12514 if res.Body != nil {
12515 res.Body.Close()
12516 }
12517 return nil, gensupport.WrapError(&googleapi.Error{
12518 Code: res.StatusCode,
12519 Header: res.Header,
12520 })
12521 }
12522 if err != nil {
12523 return nil, err
12524 }
12525 defer googleapi.CloseBody(res)
12526 if err := googleapi.CheckResponse(res); err != nil {
12527 return nil, gensupport.WrapError(err)
12528 }
12529 ret := &GoogleLongrunningListOperationsResponse{
12530 ServerResponse: googleapi.ServerResponse{
12531 Header: res.Header,
12532 HTTPStatusCode: res.StatusCode,
12533 },
12534 }
12535 target := &ret
12536 if err := gensupport.DecodeResponse(target, res); err != nil {
12537 return nil, err
12538 }
12539 return ret, nil
12540 }
12541
12542
12543
12544
12545 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
12546 c.ctx_ = ctx
12547 defer c.PageToken(c.urlParams_.Get("pageToken"))
12548 for {
12549 x, err := c.Do()
12550 if err != nil {
12551 return err
12552 }
12553 if err := f(x); err != nil {
12554 return err
12555 }
12556 if x.NextPageToken == "" {
12557 return nil
12558 }
12559 c.PageToken(x.NextPageToken)
12560 }
12561 }
12562
12563 type ProjectsLocationsCollectionsDataStoresConversationsConverseCall struct {
12564 s *Service
12565 name string
12566 googleclouddiscoveryenginev1converseconversationrequest *GoogleCloudDiscoveryengineV1ConverseConversationRequest
12567 urlParams_ gensupport.URLParams
12568 ctx_ context.Context
12569 header_ http.Header
12570 }
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Converse(name string, googleclouddiscoveryenginev1converseconversationrequest *GoogleCloudDiscoveryengineV1ConverseConversationRequest) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
12582 c := &ProjectsLocationsCollectionsDataStoresConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12583 c.name = name
12584 c.googleclouddiscoveryenginev1converseconversationrequest = googleclouddiscoveryenginev1converseconversationrequest
12585 return c
12586 }
12587
12588
12589
12590
12591 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
12592 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12593 return c
12594 }
12595
12596
12597 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
12598 c.ctx_ = ctx
12599 return c
12600 }
12601
12602
12603
12604 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Header() http.Header {
12605 if c.header_ == nil {
12606 c.header_ = make(http.Header)
12607 }
12608 return c.header_
12609 }
12610
12611 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
12612 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12613 var body io.Reader = nil
12614 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1converseconversationrequest)
12615 if err != nil {
12616 return nil, err
12617 }
12618 c.urlParams_.Set("alt", alt)
12619 c.urlParams_.Set("prettyPrint", "false")
12620 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:converse")
12621 urls += "?" + c.urlParams_.Encode()
12622 req, err := http.NewRequest("POST", urls, body)
12623 if err != nil {
12624 return nil, err
12625 }
12626 req.Header = reqHeaders
12627 googleapi.Expand(req.URL, map[string]string{
12628 "name": c.name,
12629 })
12630 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12631 }
12632
12633
12634
12635
12636
12637
12638
12639 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ConverseConversationResponse, error) {
12640 gensupport.SetOptions(c.urlParams_, opts...)
12641 res, err := c.doRequest("json")
12642 if res != nil && res.StatusCode == http.StatusNotModified {
12643 if res.Body != nil {
12644 res.Body.Close()
12645 }
12646 return nil, gensupport.WrapError(&googleapi.Error{
12647 Code: res.StatusCode,
12648 Header: res.Header,
12649 })
12650 }
12651 if err != nil {
12652 return nil, err
12653 }
12654 defer googleapi.CloseBody(res)
12655 if err := googleapi.CheckResponse(res); err != nil {
12656 return nil, gensupport.WrapError(err)
12657 }
12658 ret := &GoogleCloudDiscoveryengineV1ConverseConversationResponse{
12659 ServerResponse: googleapi.ServerResponse{
12660 Header: res.Header,
12661 HTTPStatusCode: res.StatusCode,
12662 },
12663 }
12664 target := &ret
12665 if err := gensupport.DecodeResponse(target, res); err != nil {
12666 return nil, err
12667 }
12668 return ret, nil
12669 }
12670
12671 type ProjectsLocationsCollectionsDataStoresConversationsCreateCall struct {
12672 s *Service
12673 parent string
12674 googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation
12675 urlParams_ gensupport.URLParams
12676 ctx_ context.Context
12677 header_ http.Header
12678 }
12679
12680
12681
12682
12683
12684
12685
12686 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Create(parent string, googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
12687 c := &ProjectsLocationsCollectionsDataStoresConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12688 c.parent = parent
12689 c.googleclouddiscoveryenginev1conversation = googleclouddiscoveryenginev1conversation
12690 return c
12691 }
12692
12693
12694
12695
12696 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
12697 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12698 return c
12699 }
12700
12701
12702 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
12703 c.ctx_ = ctx
12704 return c
12705 }
12706
12707
12708
12709 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Header() http.Header {
12710 if c.header_ == nil {
12711 c.header_ = make(http.Header)
12712 }
12713 return c.header_
12714 }
12715
12716 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
12717 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12718 var body io.Reader = nil
12719 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1conversation)
12720 if err != nil {
12721 return nil, err
12722 }
12723 c.urlParams_.Set("alt", alt)
12724 c.urlParams_.Set("prettyPrint", "false")
12725 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
12726 urls += "?" + c.urlParams_.Encode()
12727 req, err := http.NewRequest("POST", urls, body)
12728 if err != nil {
12729 return nil, err
12730 }
12731 req.Header = reqHeaders
12732 googleapi.Expand(req.URL, map[string]string{
12733 "parent": c.parent,
12734 })
12735 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12736 }
12737
12738
12739
12740
12741
12742
12743
12744 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
12745 gensupport.SetOptions(c.urlParams_, opts...)
12746 res, err := c.doRequest("json")
12747 if res != nil && res.StatusCode == http.StatusNotModified {
12748 if res.Body != nil {
12749 res.Body.Close()
12750 }
12751 return nil, gensupport.WrapError(&googleapi.Error{
12752 Code: res.StatusCode,
12753 Header: res.Header,
12754 })
12755 }
12756 if err != nil {
12757 return nil, err
12758 }
12759 defer googleapi.CloseBody(res)
12760 if err := googleapi.CheckResponse(res); err != nil {
12761 return nil, gensupport.WrapError(err)
12762 }
12763 ret := &GoogleCloudDiscoveryengineV1Conversation{
12764 ServerResponse: googleapi.ServerResponse{
12765 Header: res.Header,
12766 HTTPStatusCode: res.StatusCode,
12767 },
12768 }
12769 target := &ret
12770 if err := gensupport.DecodeResponse(target, res); err != nil {
12771 return nil, err
12772 }
12773 return ret, nil
12774 }
12775
12776 type ProjectsLocationsCollectionsDataStoresConversationsDeleteCall struct {
12777 s *Service
12778 name string
12779 urlParams_ gensupport.URLParams
12780 ctx_ context.Context
12781 header_ http.Header
12782 }
12783
12784
12785
12786
12787
12788
12789
12790 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
12791 c := &ProjectsLocationsCollectionsDataStoresConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12792 c.name = name
12793 return c
12794 }
12795
12796
12797
12798
12799 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
12800 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12801 return c
12802 }
12803
12804
12805 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
12806 c.ctx_ = ctx
12807 return c
12808 }
12809
12810
12811
12812 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Header() http.Header {
12813 if c.header_ == nil {
12814 c.header_ = make(http.Header)
12815 }
12816 return c.header_
12817 }
12818
12819 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
12820 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12821 var body io.Reader = nil
12822 c.urlParams_.Set("alt", alt)
12823 c.urlParams_.Set("prettyPrint", "false")
12824 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12825 urls += "?" + c.urlParams_.Encode()
12826 req, err := http.NewRequest("DELETE", urls, body)
12827 if err != nil {
12828 return nil, err
12829 }
12830 req.Header = reqHeaders
12831 googleapi.Expand(req.URL, map[string]string{
12832 "name": c.name,
12833 })
12834 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12835 }
12836
12837
12838
12839
12840
12841
12842
12843 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
12844 gensupport.SetOptions(c.urlParams_, opts...)
12845 res, err := c.doRequest("json")
12846 if res != nil && res.StatusCode == http.StatusNotModified {
12847 if res.Body != nil {
12848 res.Body.Close()
12849 }
12850 return nil, gensupport.WrapError(&googleapi.Error{
12851 Code: res.StatusCode,
12852 Header: res.Header,
12853 })
12854 }
12855 if err != nil {
12856 return nil, err
12857 }
12858 defer googleapi.CloseBody(res)
12859 if err := googleapi.CheckResponse(res); err != nil {
12860 return nil, gensupport.WrapError(err)
12861 }
12862 ret := &GoogleProtobufEmpty{
12863 ServerResponse: googleapi.ServerResponse{
12864 Header: res.Header,
12865 HTTPStatusCode: res.StatusCode,
12866 },
12867 }
12868 target := &ret
12869 if err := gensupport.DecodeResponse(target, res); err != nil {
12870 return nil, err
12871 }
12872 return ret, nil
12873 }
12874
12875 type ProjectsLocationsCollectionsDataStoresConversationsGetCall struct {
12876 s *Service
12877 name string
12878 urlParams_ gensupport.URLParams
12879 ifNoneMatch_ string
12880 ctx_ context.Context
12881 header_ http.Header
12882 }
12883
12884
12885
12886
12887
12888
12889 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
12890 c := &ProjectsLocationsCollectionsDataStoresConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12891 c.name = name
12892 return c
12893 }
12894
12895
12896
12897
12898 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
12899 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12900 return c
12901 }
12902
12903
12904
12905
12906 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
12907 c.ifNoneMatch_ = entityTag
12908 return c
12909 }
12910
12911
12912 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
12913 c.ctx_ = ctx
12914 return c
12915 }
12916
12917
12918
12919 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Header() http.Header {
12920 if c.header_ == nil {
12921 c.header_ = make(http.Header)
12922 }
12923 return c.header_
12924 }
12925
12926 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) doRequest(alt string) (*http.Response, error) {
12927 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12928 if c.ifNoneMatch_ != "" {
12929 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12930 }
12931 var body io.Reader = nil
12932 c.urlParams_.Set("alt", alt)
12933 c.urlParams_.Set("prettyPrint", "false")
12934 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12935 urls += "?" + c.urlParams_.Encode()
12936 req, err := http.NewRequest("GET", urls, body)
12937 if err != nil {
12938 return nil, err
12939 }
12940 req.Header = reqHeaders
12941 googleapi.Expand(req.URL, map[string]string{
12942 "name": c.name,
12943 })
12944 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12945 }
12946
12947
12948
12949
12950
12951
12952
12953 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
12954 gensupport.SetOptions(c.urlParams_, opts...)
12955 res, err := c.doRequest("json")
12956 if res != nil && res.StatusCode == http.StatusNotModified {
12957 if res.Body != nil {
12958 res.Body.Close()
12959 }
12960 return nil, gensupport.WrapError(&googleapi.Error{
12961 Code: res.StatusCode,
12962 Header: res.Header,
12963 })
12964 }
12965 if err != nil {
12966 return nil, err
12967 }
12968 defer googleapi.CloseBody(res)
12969 if err := googleapi.CheckResponse(res); err != nil {
12970 return nil, gensupport.WrapError(err)
12971 }
12972 ret := &GoogleCloudDiscoveryengineV1Conversation{
12973 ServerResponse: googleapi.ServerResponse{
12974 Header: res.Header,
12975 HTTPStatusCode: res.StatusCode,
12976 },
12977 }
12978 target := &ret
12979 if err := gensupport.DecodeResponse(target, res); err != nil {
12980 return nil, err
12981 }
12982 return ret, nil
12983 }
12984
12985 type ProjectsLocationsCollectionsDataStoresConversationsListCall struct {
12986 s *Service
12987 parent string
12988 urlParams_ gensupport.URLParams
12989 ifNoneMatch_ string
12990 ctx_ context.Context
12991 header_ http.Header
12992 }
12993
12994
12995
12996
12997
12998
12999 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) List(parent string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
13000 c := &ProjectsLocationsCollectionsDataStoresConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13001 c.parent = parent
13002 return c
13003 }
13004
13005
13006
13007
13008 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
13009 c.urlParams_.Set("filter", filter)
13010 return c
13011 }
13012
13013
13014
13015
13016
13017 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
13018 c.urlParams_.Set("orderBy", orderBy)
13019 return c
13020 }
13021
13022
13023
13024 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
13025 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13026 return c
13027 }
13028
13029
13030
13031
13032 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
13033 c.urlParams_.Set("pageToken", pageToken)
13034 return c
13035 }
13036
13037
13038
13039
13040 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
13041 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13042 return c
13043 }
13044
13045
13046
13047
13048 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
13049 c.ifNoneMatch_ = entityTag
13050 return c
13051 }
13052
13053
13054 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
13055 c.ctx_ = ctx
13056 return c
13057 }
13058
13059
13060
13061 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Header() http.Header {
13062 if c.header_ == nil {
13063 c.header_ = make(http.Header)
13064 }
13065 return c.header_
13066 }
13067
13068 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) doRequest(alt string) (*http.Response, error) {
13069 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13070 if c.ifNoneMatch_ != "" {
13071 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13072 }
13073 var body io.Reader = nil
13074 c.urlParams_.Set("alt", alt)
13075 c.urlParams_.Set("prettyPrint", "false")
13076 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
13077 urls += "?" + c.urlParams_.Encode()
13078 req, err := http.NewRequest("GET", urls, body)
13079 if err != nil {
13080 return nil, err
13081 }
13082 req.Header = reqHeaders
13083 googleapi.Expand(req.URL, map[string]string{
13084 "parent": c.parent,
13085 })
13086 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13087 }
13088
13089
13090
13091
13092
13093
13094
13095 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListConversationsResponse, error) {
13096 gensupport.SetOptions(c.urlParams_, opts...)
13097 res, err := c.doRequest("json")
13098 if res != nil && res.StatusCode == http.StatusNotModified {
13099 if res.Body != nil {
13100 res.Body.Close()
13101 }
13102 return nil, gensupport.WrapError(&googleapi.Error{
13103 Code: res.StatusCode,
13104 Header: res.Header,
13105 })
13106 }
13107 if err != nil {
13108 return nil, err
13109 }
13110 defer googleapi.CloseBody(res)
13111 if err := googleapi.CheckResponse(res); err != nil {
13112 return nil, gensupport.WrapError(err)
13113 }
13114 ret := &GoogleCloudDiscoveryengineV1ListConversationsResponse{
13115 ServerResponse: googleapi.ServerResponse{
13116 Header: res.Header,
13117 HTTPStatusCode: res.StatusCode,
13118 },
13119 }
13120 target := &ret
13121 if err := gensupport.DecodeResponse(target, res); err != nil {
13122 return nil, err
13123 }
13124 return ret, nil
13125 }
13126
13127
13128
13129
13130 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListConversationsResponse) error) error {
13131 c.ctx_ = ctx
13132 defer c.PageToken(c.urlParams_.Get("pageToken"))
13133 for {
13134 x, err := c.Do()
13135 if err != nil {
13136 return err
13137 }
13138 if err := f(x); err != nil {
13139 return err
13140 }
13141 if x.NextPageToken == "" {
13142 return nil
13143 }
13144 c.PageToken(x.NextPageToken)
13145 }
13146 }
13147
13148 type ProjectsLocationsCollectionsDataStoresConversationsPatchCall struct {
13149 s *Service
13150 name string
13151 googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation
13152 urlParams_ gensupport.URLParams
13153 ctx_ context.Context
13154 header_ http.Header
13155 }
13156
13157
13158
13159
13160
13161
13162
13163
13164
13165 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Patch(name string, googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
13166 c := &ProjectsLocationsCollectionsDataStoresConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13167 c.name = name
13168 c.googleclouddiscoveryenginev1conversation = googleclouddiscoveryenginev1conversation
13169 return c
13170 }
13171
13172
13173
13174
13175 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
13176 c.urlParams_.Set("updateMask", updateMask)
13177 return c
13178 }
13179
13180
13181
13182
13183 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
13184 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13185 return c
13186 }
13187
13188
13189 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
13190 c.ctx_ = ctx
13191 return c
13192 }
13193
13194
13195
13196 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Header() http.Header {
13197 if c.header_ == nil {
13198 c.header_ = make(http.Header)
13199 }
13200 return c.header_
13201 }
13202
13203 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
13204 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13205 var body io.Reader = nil
13206 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1conversation)
13207 if err != nil {
13208 return nil, err
13209 }
13210 c.urlParams_.Set("alt", alt)
13211 c.urlParams_.Set("prettyPrint", "false")
13212 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13213 urls += "?" + c.urlParams_.Encode()
13214 req, err := http.NewRequest("PATCH", urls, body)
13215 if err != nil {
13216 return nil, err
13217 }
13218 req.Header = reqHeaders
13219 googleapi.Expand(req.URL, map[string]string{
13220 "name": c.name,
13221 })
13222 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13223 }
13224
13225
13226
13227
13228
13229
13230
13231 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
13232 gensupport.SetOptions(c.urlParams_, opts...)
13233 res, err := c.doRequest("json")
13234 if res != nil && res.StatusCode == http.StatusNotModified {
13235 if res.Body != nil {
13236 res.Body.Close()
13237 }
13238 return nil, gensupport.WrapError(&googleapi.Error{
13239 Code: res.StatusCode,
13240 Header: res.Header,
13241 })
13242 }
13243 if err != nil {
13244 return nil, err
13245 }
13246 defer googleapi.CloseBody(res)
13247 if err := googleapi.CheckResponse(res); err != nil {
13248 return nil, gensupport.WrapError(err)
13249 }
13250 ret := &GoogleCloudDiscoveryengineV1Conversation{
13251 ServerResponse: googleapi.ServerResponse{
13252 Header: res.Header,
13253 HTTPStatusCode: res.StatusCode,
13254 },
13255 }
13256 target := &ret
13257 if err := gensupport.DecodeResponse(target, res); err != nil {
13258 return nil, err
13259 }
13260 return ret, nil
13261 }
13262
13263 type ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall struct {
13264 s *Service
13265 name string
13266 urlParams_ gensupport.URLParams
13267 ifNoneMatch_ string
13268 ctx_ context.Context
13269 header_ http.Header
13270 }
13271
13272
13273
13274
13275
13276
13277 func (r *ProjectsLocationsCollectionsDataStoresModelsOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
13278 c := &ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13279 c.name = name
13280 return c
13281 }
13282
13283
13284
13285
13286 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
13287 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13288 return c
13289 }
13290
13291
13292
13293
13294 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
13295 c.ifNoneMatch_ = entityTag
13296 return c
13297 }
13298
13299
13300 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
13301 c.ctx_ = ctx
13302 return c
13303 }
13304
13305
13306
13307 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Header() http.Header {
13308 if c.header_ == nil {
13309 c.header_ = make(http.Header)
13310 }
13311 return c.header_
13312 }
13313
13314 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
13315 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13316 if c.ifNoneMatch_ != "" {
13317 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13318 }
13319 var body io.Reader = nil
13320 c.urlParams_.Set("alt", alt)
13321 c.urlParams_.Set("prettyPrint", "false")
13322 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13323 urls += "?" + c.urlParams_.Encode()
13324 req, err := http.NewRequest("GET", urls, body)
13325 if err != nil {
13326 return nil, err
13327 }
13328 req.Header = reqHeaders
13329 googleapi.Expand(req.URL, map[string]string{
13330 "name": c.name,
13331 })
13332 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13333 }
13334
13335
13336
13337
13338
13339
13340
13341 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13342 gensupport.SetOptions(c.urlParams_, opts...)
13343 res, err := c.doRequest("json")
13344 if res != nil && res.StatusCode == http.StatusNotModified {
13345 if res.Body != nil {
13346 res.Body.Close()
13347 }
13348 return nil, gensupport.WrapError(&googleapi.Error{
13349 Code: res.StatusCode,
13350 Header: res.Header,
13351 })
13352 }
13353 if err != nil {
13354 return nil, err
13355 }
13356 defer googleapi.CloseBody(res)
13357 if err := googleapi.CheckResponse(res); err != nil {
13358 return nil, gensupport.WrapError(err)
13359 }
13360 ret := &GoogleLongrunningOperation{
13361 ServerResponse: googleapi.ServerResponse{
13362 Header: res.Header,
13363 HTTPStatusCode: res.StatusCode,
13364 },
13365 }
13366 target := &ret
13367 if err := gensupport.DecodeResponse(target, res); err != nil {
13368 return nil, err
13369 }
13370 return ret, nil
13371 }
13372
13373 type ProjectsLocationsCollectionsDataStoresModelsOperationsListCall struct {
13374 s *Service
13375 name string
13376 urlParams_ gensupport.URLParams
13377 ifNoneMatch_ string
13378 ctx_ context.Context
13379 header_ http.Header
13380 }
13381
13382
13383
13384
13385
13386 func (r *ProjectsLocationsCollectionsDataStoresModelsOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
13387 c := &ProjectsLocationsCollectionsDataStoresModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13388 c.name = name
13389 return c
13390 }
13391
13392
13393 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
13394 c.urlParams_.Set("filter", filter)
13395 return c
13396 }
13397
13398
13399
13400 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
13401 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13402 return c
13403 }
13404
13405
13406
13407 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
13408 c.urlParams_.Set("pageToken", pageToken)
13409 return c
13410 }
13411
13412
13413
13414
13415 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
13416 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13417 return c
13418 }
13419
13420
13421
13422
13423 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
13424 c.ifNoneMatch_ = entityTag
13425 return c
13426 }
13427
13428
13429 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
13430 c.ctx_ = ctx
13431 return c
13432 }
13433
13434
13435
13436 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Header() http.Header {
13437 if c.header_ == nil {
13438 c.header_ = make(http.Header)
13439 }
13440 return c.header_
13441 }
13442
13443 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) doRequest(alt string) (*http.Response, error) {
13444 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13445 if c.ifNoneMatch_ != "" {
13446 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13447 }
13448 var body io.Reader = nil
13449 c.urlParams_.Set("alt", alt)
13450 c.urlParams_.Set("prettyPrint", "false")
13451 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
13452 urls += "?" + c.urlParams_.Encode()
13453 req, err := http.NewRequest("GET", urls, body)
13454 if err != nil {
13455 return nil, err
13456 }
13457 req.Header = reqHeaders
13458 googleapi.Expand(req.URL, map[string]string{
13459 "name": c.name,
13460 })
13461 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13462 }
13463
13464
13465
13466
13467
13468
13469
13470 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
13471 gensupport.SetOptions(c.urlParams_, opts...)
13472 res, err := c.doRequest("json")
13473 if res != nil && res.StatusCode == http.StatusNotModified {
13474 if res.Body != nil {
13475 res.Body.Close()
13476 }
13477 return nil, gensupport.WrapError(&googleapi.Error{
13478 Code: res.StatusCode,
13479 Header: res.Header,
13480 })
13481 }
13482 if err != nil {
13483 return nil, err
13484 }
13485 defer googleapi.CloseBody(res)
13486 if err := googleapi.CheckResponse(res); err != nil {
13487 return nil, gensupport.WrapError(err)
13488 }
13489 ret := &GoogleLongrunningListOperationsResponse{
13490 ServerResponse: googleapi.ServerResponse{
13491 Header: res.Header,
13492 HTTPStatusCode: res.StatusCode,
13493 },
13494 }
13495 target := &ret
13496 if err := gensupport.DecodeResponse(target, res); err != nil {
13497 return nil, err
13498 }
13499 return ret, nil
13500 }
13501
13502
13503
13504
13505 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
13506 c.ctx_ = ctx
13507 defer c.PageToken(c.urlParams_.Get("pageToken"))
13508 for {
13509 x, err := c.Do()
13510 if err != nil {
13511 return err
13512 }
13513 if err := f(x); err != nil {
13514 return err
13515 }
13516 if x.NextPageToken == "" {
13517 return nil
13518 }
13519 c.PageToken(x.NextPageToken)
13520 }
13521 }
13522
13523 type ProjectsLocationsCollectionsDataStoresOperationsGetCall struct {
13524 s *Service
13525 name string
13526 urlParams_ gensupport.URLParams
13527 ifNoneMatch_ string
13528 ctx_ context.Context
13529 header_ http.Header
13530 }
13531
13532
13533
13534
13535
13536
13537 func (r *ProjectsLocationsCollectionsDataStoresOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
13538 c := &ProjectsLocationsCollectionsDataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13539 c.name = name
13540 return c
13541 }
13542
13543
13544
13545
13546 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
13547 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13548 return c
13549 }
13550
13551
13552
13553
13554 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
13555 c.ifNoneMatch_ = entityTag
13556 return c
13557 }
13558
13559
13560 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
13561 c.ctx_ = ctx
13562 return c
13563 }
13564
13565
13566
13567 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Header() http.Header {
13568 if c.header_ == nil {
13569 c.header_ = make(http.Header)
13570 }
13571 return c.header_
13572 }
13573
13574 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) {
13575 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13576 if c.ifNoneMatch_ != "" {
13577 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13578 }
13579 var body io.Reader = nil
13580 c.urlParams_.Set("alt", alt)
13581 c.urlParams_.Set("prettyPrint", "false")
13582 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13583 urls += "?" + c.urlParams_.Encode()
13584 req, err := http.NewRequest("GET", urls, body)
13585 if err != nil {
13586 return nil, err
13587 }
13588 req.Header = reqHeaders
13589 googleapi.Expand(req.URL, map[string]string{
13590 "name": c.name,
13591 })
13592 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13593 }
13594
13595
13596
13597
13598
13599
13600
13601 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13602 gensupport.SetOptions(c.urlParams_, opts...)
13603 res, err := c.doRequest("json")
13604 if res != nil && res.StatusCode == http.StatusNotModified {
13605 if res.Body != nil {
13606 res.Body.Close()
13607 }
13608 return nil, gensupport.WrapError(&googleapi.Error{
13609 Code: res.StatusCode,
13610 Header: res.Header,
13611 })
13612 }
13613 if err != nil {
13614 return nil, err
13615 }
13616 defer googleapi.CloseBody(res)
13617 if err := googleapi.CheckResponse(res); err != nil {
13618 return nil, gensupport.WrapError(err)
13619 }
13620 ret := &GoogleLongrunningOperation{
13621 ServerResponse: googleapi.ServerResponse{
13622 Header: res.Header,
13623 HTTPStatusCode: res.StatusCode,
13624 },
13625 }
13626 target := &ret
13627 if err := gensupport.DecodeResponse(target, res); err != nil {
13628 return nil, err
13629 }
13630 return ret, nil
13631 }
13632
13633 type ProjectsLocationsCollectionsDataStoresOperationsListCall struct {
13634 s *Service
13635 name string
13636 urlParams_ gensupport.URLParams
13637 ifNoneMatch_ string
13638 ctx_ context.Context
13639 header_ http.Header
13640 }
13641
13642
13643
13644
13645
13646 func (r *ProjectsLocationsCollectionsDataStoresOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
13647 c := &ProjectsLocationsCollectionsDataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13648 c.name = name
13649 return c
13650 }
13651
13652
13653 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
13654 c.urlParams_.Set("filter", filter)
13655 return c
13656 }
13657
13658
13659
13660 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
13661 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13662 return c
13663 }
13664
13665
13666
13667 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
13668 c.urlParams_.Set("pageToken", pageToken)
13669 return c
13670 }
13671
13672
13673
13674
13675 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
13676 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13677 return c
13678 }
13679
13680
13681
13682
13683 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
13684 c.ifNoneMatch_ = entityTag
13685 return c
13686 }
13687
13688
13689 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
13690 c.ctx_ = ctx
13691 return c
13692 }
13693
13694
13695
13696 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Header() http.Header {
13697 if c.header_ == nil {
13698 c.header_ = make(http.Header)
13699 }
13700 return c.header_
13701 }
13702
13703 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) {
13704 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13705 if c.ifNoneMatch_ != "" {
13706 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13707 }
13708 var body io.Reader = nil
13709 c.urlParams_.Set("alt", alt)
13710 c.urlParams_.Set("prettyPrint", "false")
13711 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
13712 urls += "?" + c.urlParams_.Encode()
13713 req, err := http.NewRequest("GET", urls, body)
13714 if err != nil {
13715 return nil, err
13716 }
13717 req.Header = reqHeaders
13718 googleapi.Expand(req.URL, map[string]string{
13719 "name": c.name,
13720 })
13721 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13722 }
13723
13724
13725
13726
13727
13728
13729
13730 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
13731 gensupport.SetOptions(c.urlParams_, opts...)
13732 res, err := c.doRequest("json")
13733 if res != nil && res.StatusCode == http.StatusNotModified {
13734 if res.Body != nil {
13735 res.Body.Close()
13736 }
13737 return nil, gensupport.WrapError(&googleapi.Error{
13738 Code: res.StatusCode,
13739 Header: res.Header,
13740 })
13741 }
13742 if err != nil {
13743 return nil, err
13744 }
13745 defer googleapi.CloseBody(res)
13746 if err := googleapi.CheckResponse(res); err != nil {
13747 return nil, gensupport.WrapError(err)
13748 }
13749 ret := &GoogleLongrunningListOperationsResponse{
13750 ServerResponse: googleapi.ServerResponse{
13751 Header: res.Header,
13752 HTTPStatusCode: res.StatusCode,
13753 },
13754 }
13755 target := &ret
13756 if err := gensupport.DecodeResponse(target, res); err != nil {
13757 return nil, err
13758 }
13759 return ret, nil
13760 }
13761
13762
13763
13764
13765 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
13766 c.ctx_ = ctx
13767 defer c.PageToken(c.urlParams_.Get("pageToken"))
13768 for {
13769 x, err := c.Do()
13770 if err != nil {
13771 return err
13772 }
13773 if err := f(x); err != nil {
13774 return err
13775 }
13776 if x.NextPageToken == "" {
13777 return nil
13778 }
13779 c.PageToken(x.NextPageToken)
13780 }
13781 }
13782
13783 type ProjectsLocationsCollectionsDataStoresSchemasCreateCall struct {
13784 s *Service
13785 parent string
13786 googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema
13787 urlParams_ gensupport.URLParams
13788 ctx_ context.Context
13789 header_ http.Header
13790 }
13791
13792
13793
13794
13795
13796
13797 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Create(parent string, googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
13798 c := &ProjectsLocationsCollectionsDataStoresSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13799 c.parent = parent
13800 c.googleclouddiscoveryenginev1schema = googleclouddiscoveryenginev1schema
13801 return c
13802 }
13803
13804
13805
13806
13807
13808 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) SchemaId(schemaId string) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
13809 c.urlParams_.Set("schemaId", schemaId)
13810 return c
13811 }
13812
13813
13814
13815
13816 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
13817 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13818 return c
13819 }
13820
13821
13822 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
13823 c.ctx_ = ctx
13824 return c
13825 }
13826
13827
13828
13829 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Header() http.Header {
13830 if c.header_ == nil {
13831 c.header_ = make(http.Header)
13832 }
13833 return c.header_
13834 }
13835
13836 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) doRequest(alt string) (*http.Response, error) {
13837 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13838 var body io.Reader = nil
13839 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1schema)
13840 if err != nil {
13841 return nil, err
13842 }
13843 c.urlParams_.Set("alt", alt)
13844 c.urlParams_.Set("prettyPrint", "false")
13845 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/schemas")
13846 urls += "?" + c.urlParams_.Encode()
13847 req, err := http.NewRequest("POST", urls, body)
13848 if err != nil {
13849 return nil, err
13850 }
13851 req.Header = reqHeaders
13852 googleapi.Expand(req.URL, map[string]string{
13853 "parent": c.parent,
13854 })
13855 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13856 }
13857
13858
13859
13860
13861
13862
13863
13864 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13865 gensupport.SetOptions(c.urlParams_, opts...)
13866 res, err := c.doRequest("json")
13867 if res != nil && res.StatusCode == http.StatusNotModified {
13868 if res.Body != nil {
13869 res.Body.Close()
13870 }
13871 return nil, gensupport.WrapError(&googleapi.Error{
13872 Code: res.StatusCode,
13873 Header: res.Header,
13874 })
13875 }
13876 if err != nil {
13877 return nil, err
13878 }
13879 defer googleapi.CloseBody(res)
13880 if err := googleapi.CheckResponse(res); err != nil {
13881 return nil, gensupport.WrapError(err)
13882 }
13883 ret := &GoogleLongrunningOperation{
13884 ServerResponse: googleapi.ServerResponse{
13885 Header: res.Header,
13886 HTTPStatusCode: res.StatusCode,
13887 },
13888 }
13889 target := &ret
13890 if err := gensupport.DecodeResponse(target, res); err != nil {
13891 return nil, err
13892 }
13893 return ret, nil
13894 }
13895
13896 type ProjectsLocationsCollectionsDataStoresSchemasDeleteCall struct {
13897 s *Service
13898 name string
13899 urlParams_ gensupport.URLParams
13900 ctx_ context.Context
13901 header_ http.Header
13902 }
13903
13904
13905
13906
13907
13908
13909 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
13910 c := &ProjectsLocationsCollectionsDataStoresSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13911 c.name = name
13912 return c
13913 }
13914
13915
13916
13917
13918 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
13919 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13920 return c
13921 }
13922
13923
13924 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
13925 c.ctx_ = ctx
13926 return c
13927 }
13928
13929
13930
13931 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Header() http.Header {
13932 if c.header_ == nil {
13933 c.header_ = make(http.Header)
13934 }
13935 return c.header_
13936 }
13937
13938 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) doRequest(alt string) (*http.Response, error) {
13939 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13940 var body io.Reader = nil
13941 c.urlParams_.Set("alt", alt)
13942 c.urlParams_.Set("prettyPrint", "false")
13943 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
13944 urls += "?" + c.urlParams_.Encode()
13945 req, err := http.NewRequest("DELETE", urls, body)
13946 if err != nil {
13947 return nil, err
13948 }
13949 req.Header = reqHeaders
13950 googleapi.Expand(req.URL, map[string]string{
13951 "name": c.name,
13952 })
13953 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13954 }
13955
13956
13957
13958
13959
13960
13961
13962 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13963 gensupport.SetOptions(c.urlParams_, opts...)
13964 res, err := c.doRequest("json")
13965 if res != nil && res.StatusCode == http.StatusNotModified {
13966 if res.Body != nil {
13967 res.Body.Close()
13968 }
13969 return nil, gensupport.WrapError(&googleapi.Error{
13970 Code: res.StatusCode,
13971 Header: res.Header,
13972 })
13973 }
13974 if err != nil {
13975 return nil, err
13976 }
13977 defer googleapi.CloseBody(res)
13978 if err := googleapi.CheckResponse(res); err != nil {
13979 return nil, gensupport.WrapError(err)
13980 }
13981 ret := &GoogleLongrunningOperation{
13982 ServerResponse: googleapi.ServerResponse{
13983 Header: res.Header,
13984 HTTPStatusCode: res.StatusCode,
13985 },
13986 }
13987 target := &ret
13988 if err := gensupport.DecodeResponse(target, res); err != nil {
13989 return nil, err
13990 }
13991 return ret, nil
13992 }
13993
13994 type ProjectsLocationsCollectionsDataStoresSchemasGetCall struct {
13995 s *Service
13996 name string
13997 urlParams_ gensupport.URLParams
13998 ifNoneMatch_ string
13999 ctx_ context.Context
14000 header_ http.Header
14001 }
14002
14003
14004
14005
14006
14007
14008 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Get(name string) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
14009 c := &ProjectsLocationsCollectionsDataStoresSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14010 c.name = name
14011 return c
14012 }
14013
14014
14015
14016
14017 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
14018 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14019 return c
14020 }
14021
14022
14023
14024
14025 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
14026 c.ifNoneMatch_ = entityTag
14027 return c
14028 }
14029
14030
14031 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
14032 c.ctx_ = ctx
14033 return c
14034 }
14035
14036
14037
14038 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Header() http.Header {
14039 if c.header_ == nil {
14040 c.header_ = make(http.Header)
14041 }
14042 return c.header_
14043 }
14044
14045 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) doRequest(alt string) (*http.Response, error) {
14046 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14047 if c.ifNoneMatch_ != "" {
14048 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14049 }
14050 var body io.Reader = nil
14051 c.urlParams_.Set("alt", alt)
14052 c.urlParams_.Set("prettyPrint", "false")
14053 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14054 urls += "?" + c.urlParams_.Encode()
14055 req, err := http.NewRequest("GET", urls, body)
14056 if err != nil {
14057 return nil, err
14058 }
14059 req.Header = reqHeaders
14060 googleapi.Expand(req.URL, map[string]string{
14061 "name": c.name,
14062 })
14063 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14064 }
14065
14066
14067
14068
14069
14070
14071
14072 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Schema, error) {
14073 gensupport.SetOptions(c.urlParams_, opts...)
14074 res, err := c.doRequest("json")
14075 if res != nil && res.StatusCode == http.StatusNotModified {
14076 if res.Body != nil {
14077 res.Body.Close()
14078 }
14079 return nil, gensupport.WrapError(&googleapi.Error{
14080 Code: res.StatusCode,
14081 Header: res.Header,
14082 })
14083 }
14084 if err != nil {
14085 return nil, err
14086 }
14087 defer googleapi.CloseBody(res)
14088 if err := googleapi.CheckResponse(res); err != nil {
14089 return nil, gensupport.WrapError(err)
14090 }
14091 ret := &GoogleCloudDiscoveryengineV1Schema{
14092 ServerResponse: googleapi.ServerResponse{
14093 Header: res.Header,
14094 HTTPStatusCode: res.StatusCode,
14095 },
14096 }
14097 target := &ret
14098 if err := gensupport.DecodeResponse(target, res); err != nil {
14099 return nil, err
14100 }
14101 return ret, nil
14102 }
14103
14104 type ProjectsLocationsCollectionsDataStoresSchemasListCall struct {
14105 s *Service
14106 parent string
14107 urlParams_ gensupport.URLParams
14108 ifNoneMatch_ string
14109 ctx_ context.Context
14110 header_ http.Header
14111 }
14112
14113
14114
14115
14116
14117
14118 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) List(parent string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
14119 c := &ProjectsLocationsCollectionsDataStoresSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14120 c.parent = parent
14121 return c
14122 }
14123
14124
14125
14126
14127
14128 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
14129 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14130 return c
14131 }
14132
14133
14134
14135
14136
14137 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
14138 c.urlParams_.Set("pageToken", pageToken)
14139 return c
14140 }
14141
14142
14143
14144
14145 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
14146 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14147 return c
14148 }
14149
14150
14151
14152
14153 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
14154 c.ifNoneMatch_ = entityTag
14155 return c
14156 }
14157
14158
14159 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
14160 c.ctx_ = ctx
14161 return c
14162 }
14163
14164
14165
14166 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Header() http.Header {
14167 if c.header_ == nil {
14168 c.header_ = make(http.Header)
14169 }
14170 return c.header_
14171 }
14172
14173 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) doRequest(alt string) (*http.Response, error) {
14174 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14175 if c.ifNoneMatch_ != "" {
14176 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14177 }
14178 var body io.Reader = nil
14179 c.urlParams_.Set("alt", alt)
14180 c.urlParams_.Set("prettyPrint", "false")
14181 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/schemas")
14182 urls += "?" + c.urlParams_.Encode()
14183 req, err := http.NewRequest("GET", urls, body)
14184 if err != nil {
14185 return nil, err
14186 }
14187 req.Header = reqHeaders
14188 googleapi.Expand(req.URL, map[string]string{
14189 "parent": c.parent,
14190 })
14191 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14192 }
14193
14194
14195
14196
14197
14198
14199
14200 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListSchemasResponse, error) {
14201 gensupport.SetOptions(c.urlParams_, opts...)
14202 res, err := c.doRequest("json")
14203 if res != nil && res.StatusCode == http.StatusNotModified {
14204 if res.Body != nil {
14205 res.Body.Close()
14206 }
14207 return nil, gensupport.WrapError(&googleapi.Error{
14208 Code: res.StatusCode,
14209 Header: res.Header,
14210 })
14211 }
14212 if err != nil {
14213 return nil, err
14214 }
14215 defer googleapi.CloseBody(res)
14216 if err := googleapi.CheckResponse(res); err != nil {
14217 return nil, gensupport.WrapError(err)
14218 }
14219 ret := &GoogleCloudDiscoveryengineV1ListSchemasResponse{
14220 ServerResponse: googleapi.ServerResponse{
14221 Header: res.Header,
14222 HTTPStatusCode: res.StatusCode,
14223 },
14224 }
14225 target := &ret
14226 if err := gensupport.DecodeResponse(target, res); err != nil {
14227 return nil, err
14228 }
14229 return ret, nil
14230 }
14231
14232
14233
14234
14235 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListSchemasResponse) error) error {
14236 c.ctx_ = ctx
14237 defer c.PageToken(c.urlParams_.Get("pageToken"))
14238 for {
14239 x, err := c.Do()
14240 if err != nil {
14241 return err
14242 }
14243 if err := f(x); err != nil {
14244 return err
14245 }
14246 if x.NextPageToken == "" {
14247 return nil
14248 }
14249 c.PageToken(x.NextPageToken)
14250 }
14251 }
14252
14253 type ProjectsLocationsCollectionsDataStoresSchemasPatchCall struct {
14254 s *Service
14255 name string
14256 googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema
14257 urlParams_ gensupport.URLParams
14258 ctx_ context.Context
14259 header_ http.Header
14260 }
14261
14262
14263
14264
14265
14266
14267
14268 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Patch(name string, googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
14269 c := &ProjectsLocationsCollectionsDataStoresSchemasPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14270 c.name = name
14271 c.googleclouddiscoveryenginev1schema = googleclouddiscoveryenginev1schema
14272 return c
14273 }
14274
14275
14276
14277
14278 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
14279 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
14280 return c
14281 }
14282
14283
14284
14285
14286 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
14287 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14288 return c
14289 }
14290
14291
14292 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
14293 c.ctx_ = ctx
14294 return c
14295 }
14296
14297
14298
14299 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Header() http.Header {
14300 if c.header_ == nil {
14301 c.header_ = make(http.Header)
14302 }
14303 return c.header_
14304 }
14305
14306 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) doRequest(alt string) (*http.Response, error) {
14307 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14308 var body io.Reader = nil
14309 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1schema)
14310 if err != nil {
14311 return nil, err
14312 }
14313 c.urlParams_.Set("alt", alt)
14314 c.urlParams_.Set("prettyPrint", "false")
14315 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14316 urls += "?" + c.urlParams_.Encode()
14317 req, err := http.NewRequest("PATCH", urls, body)
14318 if err != nil {
14319 return nil, err
14320 }
14321 req.Header = reqHeaders
14322 googleapi.Expand(req.URL, map[string]string{
14323 "name": c.name,
14324 })
14325 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14326 }
14327
14328
14329
14330
14331
14332
14333
14334 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14335 gensupport.SetOptions(c.urlParams_, opts...)
14336 res, err := c.doRequest("json")
14337 if res != nil && res.StatusCode == http.StatusNotModified {
14338 if res.Body != nil {
14339 res.Body.Close()
14340 }
14341 return nil, gensupport.WrapError(&googleapi.Error{
14342 Code: res.StatusCode,
14343 Header: res.Header,
14344 })
14345 }
14346 if err != nil {
14347 return nil, err
14348 }
14349 defer googleapi.CloseBody(res)
14350 if err := googleapi.CheckResponse(res); err != nil {
14351 return nil, gensupport.WrapError(err)
14352 }
14353 ret := &GoogleLongrunningOperation{
14354 ServerResponse: googleapi.ServerResponse{
14355 Header: res.Header,
14356 HTTPStatusCode: res.StatusCode,
14357 },
14358 }
14359 target := &ret
14360 if err := gensupport.DecodeResponse(target, res); err != nil {
14361 return nil, err
14362 }
14363 return ret, nil
14364 }
14365
14366 type ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall struct {
14367 s *Service
14368 name string
14369 urlParams_ gensupport.URLParams
14370 ifNoneMatch_ string
14371 ctx_ context.Context
14372 header_ http.Header
14373 }
14374
14375
14376
14377
14378
14379
14380 func (r *ProjectsLocationsCollectionsDataStoresSchemasOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
14381 c := &ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14382 c.name = name
14383 return c
14384 }
14385
14386
14387
14388
14389 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
14390 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14391 return c
14392 }
14393
14394
14395
14396
14397 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
14398 c.ifNoneMatch_ = entityTag
14399 return c
14400 }
14401
14402
14403 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
14404 c.ctx_ = ctx
14405 return c
14406 }
14407
14408
14409
14410 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Header() http.Header {
14411 if c.header_ == nil {
14412 c.header_ = make(http.Header)
14413 }
14414 return c.header_
14415 }
14416
14417 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) doRequest(alt string) (*http.Response, error) {
14418 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14419 if c.ifNoneMatch_ != "" {
14420 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14421 }
14422 var body io.Reader = nil
14423 c.urlParams_.Set("alt", alt)
14424 c.urlParams_.Set("prettyPrint", "false")
14425 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
14426 urls += "?" + c.urlParams_.Encode()
14427 req, err := http.NewRequest("GET", urls, body)
14428 if err != nil {
14429 return nil, err
14430 }
14431 req.Header = reqHeaders
14432 googleapi.Expand(req.URL, map[string]string{
14433 "name": c.name,
14434 })
14435 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14436 }
14437
14438
14439
14440
14441
14442
14443
14444 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14445 gensupport.SetOptions(c.urlParams_, opts...)
14446 res, err := c.doRequest("json")
14447 if res != nil && res.StatusCode == http.StatusNotModified {
14448 if res.Body != nil {
14449 res.Body.Close()
14450 }
14451 return nil, gensupport.WrapError(&googleapi.Error{
14452 Code: res.StatusCode,
14453 Header: res.Header,
14454 })
14455 }
14456 if err != nil {
14457 return nil, err
14458 }
14459 defer googleapi.CloseBody(res)
14460 if err := googleapi.CheckResponse(res); err != nil {
14461 return nil, gensupport.WrapError(err)
14462 }
14463 ret := &GoogleLongrunningOperation{
14464 ServerResponse: googleapi.ServerResponse{
14465 Header: res.Header,
14466 HTTPStatusCode: res.StatusCode,
14467 },
14468 }
14469 target := &ret
14470 if err := gensupport.DecodeResponse(target, res); err != nil {
14471 return nil, err
14472 }
14473 return ret, nil
14474 }
14475
14476 type ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall struct {
14477 s *Service
14478 name string
14479 urlParams_ gensupport.URLParams
14480 ifNoneMatch_ string
14481 ctx_ context.Context
14482 header_ http.Header
14483 }
14484
14485
14486
14487
14488
14489 func (r *ProjectsLocationsCollectionsDataStoresSchemasOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
14490 c := &ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14491 c.name = name
14492 return c
14493 }
14494
14495
14496 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
14497 c.urlParams_.Set("filter", filter)
14498 return c
14499 }
14500
14501
14502
14503 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
14504 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14505 return c
14506 }
14507
14508
14509
14510 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
14511 c.urlParams_.Set("pageToken", pageToken)
14512 return c
14513 }
14514
14515
14516
14517
14518 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
14519 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14520 return c
14521 }
14522
14523
14524
14525
14526 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
14527 c.ifNoneMatch_ = entityTag
14528 return c
14529 }
14530
14531
14532 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
14533 c.ctx_ = ctx
14534 return c
14535 }
14536
14537
14538
14539 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Header() http.Header {
14540 if c.header_ == nil {
14541 c.header_ = make(http.Header)
14542 }
14543 return c.header_
14544 }
14545
14546 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) doRequest(alt string) (*http.Response, error) {
14547 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14548 if c.ifNoneMatch_ != "" {
14549 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14550 }
14551 var body io.Reader = nil
14552 c.urlParams_.Set("alt", alt)
14553 c.urlParams_.Set("prettyPrint", "false")
14554 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
14555 urls += "?" + c.urlParams_.Encode()
14556 req, err := http.NewRequest("GET", urls, body)
14557 if err != nil {
14558 return nil, err
14559 }
14560 req.Header = reqHeaders
14561 googleapi.Expand(req.URL, map[string]string{
14562 "name": c.name,
14563 })
14564 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14565 }
14566
14567
14568
14569
14570
14571
14572
14573 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
14574 gensupport.SetOptions(c.urlParams_, opts...)
14575 res, err := c.doRequest("json")
14576 if res != nil && res.StatusCode == http.StatusNotModified {
14577 if res.Body != nil {
14578 res.Body.Close()
14579 }
14580 return nil, gensupport.WrapError(&googleapi.Error{
14581 Code: res.StatusCode,
14582 Header: res.Header,
14583 })
14584 }
14585 if err != nil {
14586 return nil, err
14587 }
14588 defer googleapi.CloseBody(res)
14589 if err := googleapi.CheckResponse(res); err != nil {
14590 return nil, gensupport.WrapError(err)
14591 }
14592 ret := &GoogleLongrunningListOperationsResponse{
14593 ServerResponse: googleapi.ServerResponse{
14594 Header: res.Header,
14595 HTTPStatusCode: res.StatusCode,
14596 },
14597 }
14598 target := &ret
14599 if err := gensupport.DecodeResponse(target, res); err != nil {
14600 return nil, err
14601 }
14602 return ret, nil
14603 }
14604
14605
14606
14607
14608 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
14609 c.ctx_ = ctx
14610 defer c.PageToken(c.urlParams_.Get("pageToken"))
14611 for {
14612 x, err := c.Do()
14613 if err != nil {
14614 return err
14615 }
14616 if err := f(x); err != nil {
14617 return err
14618 }
14619 if x.NextPageToken == "" {
14620 return nil
14621 }
14622 c.PageToken(x.NextPageToken)
14623 }
14624 }
14625
14626 type ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall struct {
14627 s *Service
14628 servingConfig string
14629 googleclouddiscoveryenginev1recommendrequest *GoogleCloudDiscoveryengineV1RecommendRequest
14630 urlParams_ gensupport.URLParams
14631 ctx_ context.Context
14632 header_ http.Header
14633 }
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1recommendrequest *GoogleCloudDiscoveryengineV1RecommendRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
14647 c := &ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14648 c.servingConfig = servingConfig
14649 c.googleclouddiscoveryenginev1recommendrequest = googleclouddiscoveryenginev1recommendrequest
14650 return c
14651 }
14652
14653
14654
14655
14656 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
14657 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14658 return c
14659 }
14660
14661
14662 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
14663 c.ctx_ = ctx
14664 return c
14665 }
14666
14667
14668
14669 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Header() http.Header {
14670 if c.header_ == nil {
14671 c.header_ = make(http.Header)
14672 }
14673 return c.header_
14674 }
14675
14676 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
14677 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14678 var body io.Reader = nil
14679 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1recommendrequest)
14680 if err != nil {
14681 return nil, err
14682 }
14683 c.urlParams_.Set("alt", alt)
14684 c.urlParams_.Set("prettyPrint", "false")
14685 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+servingConfig}:recommend")
14686 urls += "?" + c.urlParams_.Encode()
14687 req, err := http.NewRequest("POST", urls, body)
14688 if err != nil {
14689 return nil, err
14690 }
14691 req.Header = reqHeaders
14692 googleapi.Expand(req.URL, map[string]string{
14693 "servingConfig": c.servingConfig,
14694 })
14695 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14696 }
14697
14698
14699
14700
14701
14702
14703
14704 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1RecommendResponse, error) {
14705 gensupport.SetOptions(c.urlParams_, opts...)
14706 res, err := c.doRequest("json")
14707 if res != nil && res.StatusCode == http.StatusNotModified {
14708 if res.Body != nil {
14709 res.Body.Close()
14710 }
14711 return nil, gensupport.WrapError(&googleapi.Error{
14712 Code: res.StatusCode,
14713 Header: res.Header,
14714 })
14715 }
14716 if err != nil {
14717 return nil, err
14718 }
14719 defer googleapi.CloseBody(res)
14720 if err := googleapi.CheckResponse(res); err != nil {
14721 return nil, gensupport.WrapError(err)
14722 }
14723 ret := &GoogleCloudDiscoveryengineV1RecommendResponse{
14724 ServerResponse: googleapi.ServerResponse{
14725 Header: res.Header,
14726 HTTPStatusCode: res.StatusCode,
14727 },
14728 }
14729 target := &ret
14730 if err := gensupport.DecodeResponse(target, res); err != nil {
14731 return nil, err
14732 }
14733 return ret, nil
14734 }
14735
14736 type ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall struct {
14737 s *Service
14738 servingConfig string
14739 googleclouddiscoveryenginev1searchrequest *GoogleCloudDiscoveryengineV1SearchRequest
14740 urlParams_ gensupport.URLParams
14741 ctx_ context.Context
14742 header_ http.Header
14743 }
14744
14745
14746
14747
14748
14749
14750
14751
14752
14753
14754 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1searchrequest *GoogleCloudDiscoveryengineV1SearchRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
14755 c := &ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14756 c.servingConfig = servingConfig
14757 c.googleclouddiscoveryenginev1searchrequest = googleclouddiscoveryenginev1searchrequest
14758 return c
14759 }
14760
14761
14762
14763
14764 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
14765 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14766 return c
14767 }
14768
14769
14770 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
14771 c.ctx_ = ctx
14772 return c
14773 }
14774
14775
14776
14777 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Header() http.Header {
14778 if c.header_ == nil {
14779 c.header_ = make(http.Header)
14780 }
14781 return c.header_
14782 }
14783
14784 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
14785 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14786 var body io.Reader = nil
14787 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1searchrequest)
14788 if err != nil {
14789 return nil, err
14790 }
14791 c.urlParams_.Set("alt", alt)
14792 c.urlParams_.Set("prettyPrint", "false")
14793 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+servingConfig}:search")
14794 urls += "?" + c.urlParams_.Encode()
14795 req, err := http.NewRequest("POST", urls, body)
14796 if err != nil {
14797 return nil, err
14798 }
14799 req.Header = reqHeaders
14800 googleapi.Expand(req.URL, map[string]string{
14801 "servingConfig": c.servingConfig,
14802 })
14803 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14804 }
14805
14806
14807
14808
14809
14810
14811
14812 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1SearchResponse, error) {
14813 gensupport.SetOptions(c.urlParams_, opts...)
14814 res, err := c.doRequest("json")
14815 if res != nil && res.StatusCode == http.StatusNotModified {
14816 if res.Body != nil {
14817 res.Body.Close()
14818 }
14819 return nil, gensupport.WrapError(&googleapi.Error{
14820 Code: res.StatusCode,
14821 Header: res.Header,
14822 })
14823 }
14824 if err != nil {
14825 return nil, err
14826 }
14827 defer googleapi.CloseBody(res)
14828 if err := googleapi.CheckResponse(res); err != nil {
14829 return nil, gensupport.WrapError(err)
14830 }
14831 ret := &GoogleCloudDiscoveryengineV1SearchResponse{
14832 ServerResponse: googleapi.ServerResponse{
14833 Header: res.Header,
14834 HTTPStatusCode: res.StatusCode,
14835 },
14836 }
14837 target := &ret
14838 if err := gensupport.DecodeResponse(target, res); err != nil {
14839 return nil, err
14840 }
14841 return ret, nil
14842 }
14843
14844
14845
14846
14847 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1SearchResponse) error) error {
14848 c.ctx_ = ctx
14849 defer func(pt string) { c.googleclouddiscoveryenginev1searchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1searchrequest.PageToken)
14850 for {
14851 x, err := c.Do()
14852 if err != nil {
14853 return err
14854 }
14855 if err := f(x); err != nil {
14856 return err
14857 }
14858 if x.NextPageToken == "" {
14859 return nil
14860 }
14861 c.googleclouddiscoveryenginev1searchrequest.PageToken = x.NextPageToken
14862 }
14863 }
14864
14865 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall struct {
14866 s *Service
14867 parent string
14868 googleclouddiscoveryenginev1batchverifytargetsitesrequest *GoogleCloudDiscoveryengineV1BatchVerifyTargetSitesRequest
14869 urlParams_ gensupport.URLParams
14870 ctx_ context.Context
14871 header_ http.Header
14872 }
14873
14874
14875
14876
14877
14878
14879
14880 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) BatchVerifyTargetSites(parent string, googleclouddiscoveryenginev1batchverifytargetsitesrequest *GoogleCloudDiscoveryengineV1BatchVerifyTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
14881 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14882 c.parent = parent
14883 c.googleclouddiscoveryenginev1batchverifytargetsitesrequest = googleclouddiscoveryenginev1batchverifytargetsitesrequest
14884 return c
14885 }
14886
14887
14888
14889
14890 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
14891 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14892 return c
14893 }
14894
14895
14896 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
14897 c.ctx_ = ctx
14898 return c
14899 }
14900
14901
14902
14903 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Header() http.Header {
14904 if c.header_ == nil {
14905 c.header_ = make(http.Header)
14906 }
14907 return c.header_
14908 }
14909
14910 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) doRequest(alt string) (*http.Response, error) {
14911 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14912 var body io.Reader = nil
14913 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1batchverifytargetsitesrequest)
14914 if err != nil {
14915 return nil, err
14916 }
14917 c.urlParams_.Set("alt", alt)
14918 c.urlParams_.Set("prettyPrint", "false")
14919 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}:batchVerifyTargetSites")
14920 urls += "?" + c.urlParams_.Encode()
14921 req, err := http.NewRequest("POST", urls, body)
14922 if err != nil {
14923 return nil, err
14924 }
14925 req.Header = reqHeaders
14926 googleapi.Expand(req.URL, map[string]string{
14927 "parent": c.parent,
14928 })
14929 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14930 }
14931
14932
14933
14934
14935
14936
14937
14938 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14939 gensupport.SetOptions(c.urlParams_, opts...)
14940 res, err := c.doRequest("json")
14941 if res != nil && res.StatusCode == http.StatusNotModified {
14942 if res.Body != nil {
14943 res.Body.Close()
14944 }
14945 return nil, gensupport.WrapError(&googleapi.Error{
14946 Code: res.StatusCode,
14947 Header: res.Header,
14948 })
14949 }
14950 if err != nil {
14951 return nil, err
14952 }
14953 defer googleapi.CloseBody(res)
14954 if err := googleapi.CheckResponse(res); err != nil {
14955 return nil, gensupport.WrapError(err)
14956 }
14957 ret := &GoogleLongrunningOperation{
14958 ServerResponse: googleapi.ServerResponse{
14959 Header: res.Header,
14960 HTTPStatusCode: res.StatusCode,
14961 },
14962 }
14963 target := &ret
14964 if err := gensupport.DecodeResponse(target, res); err != nil {
14965 return nil, err
14966 }
14967 return ret, nil
14968 }
14969
14970 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall struct {
14971 s *Service
14972 siteSearchEngine string
14973 googleclouddiscoveryenginev1disableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest
14974 urlParams_ gensupport.URLParams
14975 ctx_ context.Context
14976 header_ http.Header
14977 }
14978
14979
14980
14981
14982
14983
14984
14985 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) DisableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1disableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
14986 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14987 c.siteSearchEngine = siteSearchEngine
14988 c.googleclouddiscoveryenginev1disableadvancedsitesearchrequest = googleclouddiscoveryenginev1disableadvancedsitesearchrequest
14989 return c
14990 }
14991
14992
14993
14994
14995 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
14996 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14997 return c
14998 }
14999
15000
15001 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
15002 c.ctx_ = ctx
15003 return c
15004 }
15005
15006
15007
15008 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Header() http.Header {
15009 if c.header_ == nil {
15010 c.header_ = make(http.Header)
15011 }
15012 return c.header_
15013 }
15014
15015 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
15016 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15017 var body io.Reader = nil
15018 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1disableadvancedsitesearchrequest)
15019 if err != nil {
15020 return nil, err
15021 }
15022 c.urlParams_.Set("alt", alt)
15023 c.urlParams_.Set("prettyPrint", "false")
15024 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:disableAdvancedSiteSearch")
15025 urls += "?" + c.urlParams_.Encode()
15026 req, err := http.NewRequest("POST", urls, body)
15027 if err != nil {
15028 return nil, err
15029 }
15030 req.Header = reqHeaders
15031 googleapi.Expand(req.URL, map[string]string{
15032 "siteSearchEngine": c.siteSearchEngine,
15033 })
15034 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15035 }
15036
15037
15038
15039
15040
15041
15042
15043 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15044 gensupport.SetOptions(c.urlParams_, opts...)
15045 res, err := c.doRequest("json")
15046 if res != nil && res.StatusCode == http.StatusNotModified {
15047 if res.Body != nil {
15048 res.Body.Close()
15049 }
15050 return nil, gensupport.WrapError(&googleapi.Error{
15051 Code: res.StatusCode,
15052 Header: res.Header,
15053 })
15054 }
15055 if err != nil {
15056 return nil, err
15057 }
15058 defer googleapi.CloseBody(res)
15059 if err := googleapi.CheckResponse(res); err != nil {
15060 return nil, gensupport.WrapError(err)
15061 }
15062 ret := &GoogleLongrunningOperation{
15063 ServerResponse: googleapi.ServerResponse{
15064 Header: res.Header,
15065 HTTPStatusCode: res.StatusCode,
15066 },
15067 }
15068 target := &ret
15069 if err := gensupport.DecodeResponse(target, res); err != nil {
15070 return nil, err
15071 }
15072 return ret, nil
15073 }
15074
15075 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall struct {
15076 s *Service
15077 siteSearchEngine string
15078 googleclouddiscoveryenginev1enableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest
15079 urlParams_ gensupport.URLParams
15080 ctx_ context.Context
15081 header_ http.Header
15082 }
15083
15084
15085
15086
15087
15088
15089
15090 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) EnableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1enableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
15091 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15092 c.siteSearchEngine = siteSearchEngine
15093 c.googleclouddiscoveryenginev1enableadvancedsitesearchrequest = googleclouddiscoveryenginev1enableadvancedsitesearchrequest
15094 return c
15095 }
15096
15097
15098
15099
15100 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
15101 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15102 return c
15103 }
15104
15105
15106 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
15107 c.ctx_ = ctx
15108 return c
15109 }
15110
15111
15112
15113 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Header() http.Header {
15114 if c.header_ == nil {
15115 c.header_ = make(http.Header)
15116 }
15117 return c.header_
15118 }
15119
15120 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
15121 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15122 var body io.Reader = nil
15123 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1enableadvancedsitesearchrequest)
15124 if err != nil {
15125 return nil, err
15126 }
15127 c.urlParams_.Set("alt", alt)
15128 c.urlParams_.Set("prettyPrint", "false")
15129 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:enableAdvancedSiteSearch")
15130 urls += "?" + c.urlParams_.Encode()
15131 req, err := http.NewRequest("POST", urls, body)
15132 if err != nil {
15133 return nil, err
15134 }
15135 req.Header = reqHeaders
15136 googleapi.Expand(req.URL, map[string]string{
15137 "siteSearchEngine": c.siteSearchEngine,
15138 })
15139 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15140 }
15141
15142
15143
15144
15145
15146
15147
15148 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15149 gensupport.SetOptions(c.urlParams_, opts...)
15150 res, err := c.doRequest("json")
15151 if res != nil && res.StatusCode == http.StatusNotModified {
15152 if res.Body != nil {
15153 res.Body.Close()
15154 }
15155 return nil, gensupport.WrapError(&googleapi.Error{
15156 Code: res.StatusCode,
15157 Header: res.Header,
15158 })
15159 }
15160 if err != nil {
15161 return nil, err
15162 }
15163 defer googleapi.CloseBody(res)
15164 if err := googleapi.CheckResponse(res); err != nil {
15165 return nil, gensupport.WrapError(err)
15166 }
15167 ret := &GoogleLongrunningOperation{
15168 ServerResponse: googleapi.ServerResponse{
15169 Header: res.Header,
15170 HTTPStatusCode: res.StatusCode,
15171 },
15172 }
15173 target := &ret
15174 if err := gensupport.DecodeResponse(target, res); err != nil {
15175 return nil, err
15176 }
15177 return ret, nil
15178 }
15179
15180 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall struct {
15181 s *Service
15182 siteSearchEngine string
15183 urlParams_ gensupport.URLParams
15184 ifNoneMatch_ string
15185 ctx_ context.Context
15186 header_ http.Header
15187 }
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) FetchDomainVerificationStatus(siteSearchEngine string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
15198 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15199 c.siteSearchEngine = siteSearchEngine
15200 return c
15201 }
15202
15203
15204
15205
15206
15207
15208 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
15209 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15210 return c
15211 }
15212
15213
15214
15215
15216
15217
15218 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
15219 c.urlParams_.Set("pageToken", pageToken)
15220 return c
15221 }
15222
15223
15224
15225
15226 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
15227 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15228 return c
15229 }
15230
15231
15232
15233
15234 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
15235 c.ifNoneMatch_ = entityTag
15236 return c
15237 }
15238
15239
15240 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
15241 c.ctx_ = ctx
15242 return c
15243 }
15244
15245
15246
15247 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Header() http.Header {
15248 if c.header_ == nil {
15249 c.header_ = make(http.Header)
15250 }
15251 return c.header_
15252 }
15253
15254 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) doRequest(alt string) (*http.Response, error) {
15255 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15256 if c.ifNoneMatch_ != "" {
15257 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15258 }
15259 var body io.Reader = nil
15260 c.urlParams_.Set("alt", alt)
15261 c.urlParams_.Set("prettyPrint", "false")
15262 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:fetchDomainVerificationStatus")
15263 urls += "?" + c.urlParams_.Encode()
15264 req, err := http.NewRequest("GET", urls, body)
15265 if err != nil {
15266 return nil, err
15267 }
15268 req.Header = reqHeaders
15269 googleapi.Expand(req.URL, map[string]string{
15270 "siteSearchEngine": c.siteSearchEngine,
15271 })
15272 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15273 }
15274
15275
15276
15277
15278
15279
15280
15281 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse, error) {
15282 gensupport.SetOptions(c.urlParams_, opts...)
15283 res, err := c.doRequest("json")
15284 if res != nil && res.StatusCode == http.StatusNotModified {
15285 if res.Body != nil {
15286 res.Body.Close()
15287 }
15288 return nil, gensupport.WrapError(&googleapi.Error{
15289 Code: res.StatusCode,
15290 Header: res.Header,
15291 })
15292 }
15293 if err != nil {
15294 return nil, err
15295 }
15296 defer googleapi.CloseBody(res)
15297 if err := googleapi.CheckResponse(res); err != nil {
15298 return nil, gensupport.WrapError(err)
15299 }
15300 ret := &GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse{
15301 ServerResponse: googleapi.ServerResponse{
15302 Header: res.Header,
15303 HTTPStatusCode: res.StatusCode,
15304 },
15305 }
15306 target := &ret
15307 if err := gensupport.DecodeResponse(target, res); err != nil {
15308 return nil, err
15309 }
15310 return ret, nil
15311 }
15312
15313
15314
15315
15316 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1FetchDomainVerificationStatusResponse) error) error {
15317 c.ctx_ = ctx
15318 defer c.PageToken(c.urlParams_.Get("pageToken"))
15319 for {
15320 x, err := c.Do()
15321 if err != nil {
15322 return err
15323 }
15324 if err := f(x); err != nil {
15325 return err
15326 }
15327 if x.NextPageToken == "" {
15328 return nil
15329 }
15330 c.PageToken(x.NextPageToken)
15331 }
15332 }
15333
15334 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall struct {
15335 s *Service
15336 siteSearchEngine string
15337 googleclouddiscoveryenginev1recrawlurisrequest *GoogleCloudDiscoveryengineV1RecrawlUrisRequest
15338 urlParams_ gensupport.URLParams
15339 ctx_ context.Context
15340 header_ http.Header
15341 }
15342
15343
15344
15345
15346
15347 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) RecrawlUris(siteSearchEngine string, googleclouddiscoveryenginev1recrawlurisrequest *GoogleCloudDiscoveryengineV1RecrawlUrisRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
15348 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15349 c.siteSearchEngine = siteSearchEngine
15350 c.googleclouddiscoveryenginev1recrawlurisrequest = googleclouddiscoveryenginev1recrawlurisrequest
15351 return c
15352 }
15353
15354
15355
15356
15357 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
15358 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15359 return c
15360 }
15361
15362
15363 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
15364 c.ctx_ = ctx
15365 return c
15366 }
15367
15368
15369
15370 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Header() http.Header {
15371 if c.header_ == nil {
15372 c.header_ = make(http.Header)
15373 }
15374 return c.header_
15375 }
15376
15377 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(alt string) (*http.Response, error) {
15378 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15379 var body io.Reader = nil
15380 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1recrawlurisrequest)
15381 if err != nil {
15382 return nil, err
15383 }
15384 c.urlParams_.Set("alt", alt)
15385 c.urlParams_.Set("prettyPrint", "false")
15386 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:recrawlUris")
15387 urls += "?" + c.urlParams_.Encode()
15388 req, err := http.NewRequest("POST", urls, body)
15389 if err != nil {
15390 return nil, err
15391 }
15392 req.Header = reqHeaders
15393 googleapi.Expand(req.URL, map[string]string{
15394 "siteSearchEngine": c.siteSearchEngine,
15395 })
15396 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15397 }
15398
15399
15400
15401
15402
15403
15404
15405 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15406 gensupport.SetOptions(c.urlParams_, opts...)
15407 res, err := c.doRequest("json")
15408 if res != nil && res.StatusCode == http.StatusNotModified {
15409 if res.Body != nil {
15410 res.Body.Close()
15411 }
15412 return nil, gensupport.WrapError(&googleapi.Error{
15413 Code: res.StatusCode,
15414 Header: res.Header,
15415 })
15416 }
15417 if err != nil {
15418 return nil, err
15419 }
15420 defer googleapi.CloseBody(res)
15421 if err := googleapi.CheckResponse(res); err != nil {
15422 return nil, gensupport.WrapError(err)
15423 }
15424 ret := &GoogleLongrunningOperation{
15425 ServerResponse: googleapi.ServerResponse{
15426 Header: res.Header,
15427 HTTPStatusCode: res.StatusCode,
15428 },
15429 }
15430 target := &ret
15431 if err := gensupport.DecodeResponse(target, res); err != nil {
15432 return nil, err
15433 }
15434 return ret, nil
15435 }
15436
15437 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall struct {
15438 s *Service
15439 name string
15440 urlParams_ gensupport.URLParams
15441 ifNoneMatch_ string
15442 ctx_ context.Context
15443 header_ http.Header
15444 }
15445
15446
15447
15448
15449
15450
15451 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
15452 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15453 c.name = name
15454 return c
15455 }
15456
15457
15458
15459
15460 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
15461 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15462 return c
15463 }
15464
15465
15466
15467
15468 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
15469 c.ifNoneMatch_ = entityTag
15470 return c
15471 }
15472
15473
15474 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
15475 c.ctx_ = ctx
15476 return c
15477 }
15478
15479
15480
15481 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Header() http.Header {
15482 if c.header_ == nil {
15483 c.header_ = make(http.Header)
15484 }
15485 return c.header_
15486 }
15487
15488 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) doRequest(alt string) (*http.Response, error) {
15489 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15490 if c.ifNoneMatch_ != "" {
15491 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15492 }
15493 var body io.Reader = nil
15494 c.urlParams_.Set("alt", alt)
15495 c.urlParams_.Set("prettyPrint", "false")
15496 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15497 urls += "?" + c.urlParams_.Encode()
15498 req, err := http.NewRequest("GET", urls, body)
15499 if err != nil {
15500 return nil, err
15501 }
15502 req.Header = reqHeaders
15503 googleapi.Expand(req.URL, map[string]string{
15504 "name": c.name,
15505 })
15506 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15507 }
15508
15509
15510
15511
15512
15513
15514
15515 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15516 gensupport.SetOptions(c.urlParams_, opts...)
15517 res, err := c.doRequest("json")
15518 if res != nil && res.StatusCode == http.StatusNotModified {
15519 if res.Body != nil {
15520 res.Body.Close()
15521 }
15522 return nil, gensupport.WrapError(&googleapi.Error{
15523 Code: res.StatusCode,
15524 Header: res.Header,
15525 })
15526 }
15527 if err != nil {
15528 return nil, err
15529 }
15530 defer googleapi.CloseBody(res)
15531 if err := googleapi.CheckResponse(res); err != nil {
15532 return nil, gensupport.WrapError(err)
15533 }
15534 ret := &GoogleLongrunningOperation{
15535 ServerResponse: googleapi.ServerResponse{
15536 Header: res.Header,
15537 HTTPStatusCode: res.StatusCode,
15538 },
15539 }
15540 target := &ret
15541 if err := gensupport.DecodeResponse(target, res); err != nil {
15542 return nil, err
15543 }
15544 return ret, nil
15545 }
15546
15547 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall struct {
15548 s *Service
15549 name string
15550 urlParams_ gensupport.URLParams
15551 ifNoneMatch_ string
15552 ctx_ context.Context
15553 header_ http.Header
15554 }
15555
15556
15557
15558
15559
15560 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
15561 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15562 c.name = name
15563 return c
15564 }
15565
15566
15567 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
15568 c.urlParams_.Set("filter", filter)
15569 return c
15570 }
15571
15572
15573
15574 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
15575 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15576 return c
15577 }
15578
15579
15580
15581 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
15582 c.urlParams_.Set("pageToken", pageToken)
15583 return c
15584 }
15585
15586
15587
15588
15589 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
15590 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15591 return c
15592 }
15593
15594
15595
15596
15597 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
15598 c.ifNoneMatch_ = entityTag
15599 return c
15600 }
15601
15602
15603 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
15604 c.ctx_ = ctx
15605 return c
15606 }
15607
15608
15609
15610 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Header() http.Header {
15611 if c.header_ == nil {
15612 c.header_ = make(http.Header)
15613 }
15614 return c.header_
15615 }
15616
15617 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) doRequest(alt string) (*http.Response, error) {
15618 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15619 if c.ifNoneMatch_ != "" {
15620 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15621 }
15622 var body io.Reader = nil
15623 c.urlParams_.Set("alt", alt)
15624 c.urlParams_.Set("prettyPrint", "false")
15625 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
15626 urls += "?" + c.urlParams_.Encode()
15627 req, err := http.NewRequest("GET", urls, body)
15628 if err != nil {
15629 return nil, err
15630 }
15631 req.Header = reqHeaders
15632 googleapi.Expand(req.URL, map[string]string{
15633 "name": c.name,
15634 })
15635 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15636 }
15637
15638
15639
15640
15641
15642
15643
15644 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
15645 gensupport.SetOptions(c.urlParams_, opts...)
15646 res, err := c.doRequest("json")
15647 if res != nil && res.StatusCode == http.StatusNotModified {
15648 if res.Body != nil {
15649 res.Body.Close()
15650 }
15651 return nil, gensupport.WrapError(&googleapi.Error{
15652 Code: res.StatusCode,
15653 Header: res.Header,
15654 })
15655 }
15656 if err != nil {
15657 return nil, err
15658 }
15659 defer googleapi.CloseBody(res)
15660 if err := googleapi.CheckResponse(res); err != nil {
15661 return nil, gensupport.WrapError(err)
15662 }
15663 ret := &GoogleLongrunningListOperationsResponse{
15664 ServerResponse: googleapi.ServerResponse{
15665 Header: res.Header,
15666 HTTPStatusCode: res.StatusCode,
15667 },
15668 }
15669 target := &ret
15670 if err := gensupport.DecodeResponse(target, res); err != nil {
15671 return nil, err
15672 }
15673 return ret, nil
15674 }
15675
15676
15677
15678
15679 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
15680 c.ctx_ = ctx
15681 defer c.PageToken(c.urlParams_.Get("pageToken"))
15682 for {
15683 x, err := c.Do()
15684 if err != nil {
15685 return err
15686 }
15687 if err := f(x); err != nil {
15688 return err
15689 }
15690 if x.NextPageToken == "" {
15691 return nil
15692 }
15693 c.PageToken(x.NextPageToken)
15694 }
15695 }
15696
15697 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct {
15698 s *Service
15699 parent string
15700 googleclouddiscoveryenginev1batchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest
15701 urlParams_ gensupport.URLParams
15702 ctx_ context.Context
15703 header_ http.Header
15704 }
15705
15706
15707
15708
15709
15710
15711
15712 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1batchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
15713 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15714 c.parent = parent
15715 c.googleclouddiscoveryenginev1batchcreatetargetsitesrequest = googleclouddiscoveryenginev1batchcreatetargetsitesrequest
15716 return c
15717 }
15718
15719
15720
15721
15722 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
15723 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15724 return c
15725 }
15726
15727
15728 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
15729 c.ctx_ = ctx
15730 return c
15731 }
15732
15733
15734
15735 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header {
15736 if c.header_ == nil {
15737 c.header_ = make(http.Header)
15738 }
15739 return c.header_
15740 }
15741
15742 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
15743 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15744 var body io.Reader = nil
15745 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1batchcreatetargetsitesrequest)
15746 if err != nil {
15747 return nil, err
15748 }
15749 c.urlParams_.Set("alt", alt)
15750 c.urlParams_.Set("prettyPrint", "false")
15751 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetSites:batchCreate")
15752 urls += "?" + c.urlParams_.Encode()
15753 req, err := http.NewRequest("POST", urls, body)
15754 if err != nil {
15755 return nil, err
15756 }
15757 req.Header = reqHeaders
15758 googleapi.Expand(req.URL, map[string]string{
15759 "parent": c.parent,
15760 })
15761 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15762 }
15763
15764
15765
15766
15767
15768
15769
15770 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15771 gensupport.SetOptions(c.urlParams_, opts...)
15772 res, err := c.doRequest("json")
15773 if res != nil && res.StatusCode == http.StatusNotModified {
15774 if res.Body != nil {
15775 res.Body.Close()
15776 }
15777 return nil, gensupport.WrapError(&googleapi.Error{
15778 Code: res.StatusCode,
15779 Header: res.Header,
15780 })
15781 }
15782 if err != nil {
15783 return nil, err
15784 }
15785 defer googleapi.CloseBody(res)
15786 if err := googleapi.CheckResponse(res); err != nil {
15787 return nil, gensupport.WrapError(err)
15788 }
15789 ret := &GoogleLongrunningOperation{
15790 ServerResponse: googleapi.ServerResponse{
15791 Header: res.Header,
15792 HTTPStatusCode: res.StatusCode,
15793 },
15794 }
15795 target := &ret
15796 if err := gensupport.DecodeResponse(target, res); err != nil {
15797 return nil, err
15798 }
15799 return ret, nil
15800 }
15801
15802 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall struct {
15803 s *Service
15804 parent string
15805 googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite
15806 urlParams_ gensupport.URLParams
15807 ctx_ context.Context
15808 header_ http.Header
15809 }
15810
15811
15812
15813
15814
15815
15816 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
15817 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15818 c.parent = parent
15819 c.googleclouddiscoveryenginev1targetsite = googleclouddiscoveryenginev1targetsite
15820 return c
15821 }
15822
15823
15824
15825
15826 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
15827 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15828 return c
15829 }
15830
15831
15832 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
15833 c.ctx_ = ctx
15834 return c
15835 }
15836
15837
15838
15839 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header {
15840 if c.header_ == nil {
15841 c.header_ = make(http.Header)
15842 }
15843 return c.header_
15844 }
15845
15846 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) {
15847 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15848 var body io.Reader = nil
15849 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1targetsite)
15850 if err != nil {
15851 return nil, err
15852 }
15853 c.urlParams_.Set("alt", alt)
15854 c.urlParams_.Set("prettyPrint", "false")
15855 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetSites")
15856 urls += "?" + c.urlParams_.Encode()
15857 req, err := http.NewRequest("POST", urls, body)
15858 if err != nil {
15859 return nil, err
15860 }
15861 req.Header = reqHeaders
15862 googleapi.Expand(req.URL, map[string]string{
15863 "parent": c.parent,
15864 })
15865 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15866 }
15867
15868
15869
15870
15871
15872
15873
15874 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15875 gensupport.SetOptions(c.urlParams_, opts...)
15876 res, err := c.doRequest("json")
15877 if res != nil && res.StatusCode == http.StatusNotModified {
15878 if res.Body != nil {
15879 res.Body.Close()
15880 }
15881 return nil, gensupport.WrapError(&googleapi.Error{
15882 Code: res.StatusCode,
15883 Header: res.Header,
15884 })
15885 }
15886 if err != nil {
15887 return nil, err
15888 }
15889 defer googleapi.CloseBody(res)
15890 if err := googleapi.CheckResponse(res); err != nil {
15891 return nil, gensupport.WrapError(err)
15892 }
15893 ret := &GoogleLongrunningOperation{
15894 ServerResponse: googleapi.ServerResponse{
15895 Header: res.Header,
15896 HTTPStatusCode: res.StatusCode,
15897 },
15898 }
15899 target := &ret
15900 if err := gensupport.DecodeResponse(target, res); err != nil {
15901 return nil, err
15902 }
15903 return ret, nil
15904 }
15905
15906 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall struct {
15907 s *Service
15908 name string
15909 urlParams_ gensupport.URLParams
15910 ctx_ context.Context
15911 header_ http.Header
15912 }
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
15923 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15924 c.name = name
15925 return c
15926 }
15927
15928
15929
15930
15931 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
15932 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15933 return c
15934 }
15935
15936
15937 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
15938 c.ctx_ = ctx
15939 return c
15940 }
15941
15942
15943
15944 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Header() http.Header {
15945 if c.header_ == nil {
15946 c.header_ = make(http.Header)
15947 }
15948 return c.header_
15949 }
15950
15951 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) doRequest(alt string) (*http.Response, error) {
15952 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15953 var body io.Reader = nil
15954 c.urlParams_.Set("alt", alt)
15955 c.urlParams_.Set("prettyPrint", "false")
15956 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
15957 urls += "?" + c.urlParams_.Encode()
15958 req, err := http.NewRequest("DELETE", urls, body)
15959 if err != nil {
15960 return nil, err
15961 }
15962 req.Header = reqHeaders
15963 googleapi.Expand(req.URL, map[string]string{
15964 "name": c.name,
15965 })
15966 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15967 }
15968
15969
15970
15971
15972
15973
15974
15975 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15976 gensupport.SetOptions(c.urlParams_, opts...)
15977 res, err := c.doRequest("json")
15978 if res != nil && res.StatusCode == http.StatusNotModified {
15979 if res.Body != nil {
15980 res.Body.Close()
15981 }
15982 return nil, gensupport.WrapError(&googleapi.Error{
15983 Code: res.StatusCode,
15984 Header: res.Header,
15985 })
15986 }
15987 if err != nil {
15988 return nil, err
15989 }
15990 defer googleapi.CloseBody(res)
15991 if err := googleapi.CheckResponse(res); err != nil {
15992 return nil, gensupport.WrapError(err)
15993 }
15994 ret := &GoogleLongrunningOperation{
15995 ServerResponse: googleapi.ServerResponse{
15996 Header: res.Header,
15997 HTTPStatusCode: res.StatusCode,
15998 },
15999 }
16000 target := &ret
16001 if err := gensupport.DecodeResponse(target, res); err != nil {
16002 return nil, err
16003 }
16004 return ret, nil
16005 }
16006
16007 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall struct {
16008 s *Service
16009 name string
16010 urlParams_ gensupport.URLParams
16011 ifNoneMatch_ string
16012 ctx_ context.Context
16013 header_ http.Header
16014 }
16015
16016
16017
16018
16019
16020
16021
16022
16023
16024 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
16025 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16026 c.name = name
16027 return c
16028 }
16029
16030
16031
16032
16033 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
16034 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16035 return c
16036 }
16037
16038
16039
16040
16041 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
16042 c.ifNoneMatch_ = entityTag
16043 return c
16044 }
16045
16046
16047 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
16048 c.ctx_ = ctx
16049 return c
16050 }
16051
16052
16053
16054 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Header() http.Header {
16055 if c.header_ == nil {
16056 c.header_ = make(http.Header)
16057 }
16058 return c.header_
16059 }
16060
16061 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) doRequest(alt string) (*http.Response, error) {
16062 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16063 if c.ifNoneMatch_ != "" {
16064 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16065 }
16066 var body io.Reader = nil
16067 c.urlParams_.Set("alt", alt)
16068 c.urlParams_.Set("prettyPrint", "false")
16069 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16070 urls += "?" + c.urlParams_.Encode()
16071 req, err := http.NewRequest("GET", urls, body)
16072 if err != nil {
16073 return nil, err
16074 }
16075 req.Header = reqHeaders
16076 googleapi.Expand(req.URL, map[string]string{
16077 "name": c.name,
16078 })
16079 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16080 }
16081
16082
16083
16084
16085
16086
16087
16088 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1TargetSite, error) {
16089 gensupport.SetOptions(c.urlParams_, opts...)
16090 res, err := c.doRequest("json")
16091 if res != nil && res.StatusCode == http.StatusNotModified {
16092 if res.Body != nil {
16093 res.Body.Close()
16094 }
16095 return nil, gensupport.WrapError(&googleapi.Error{
16096 Code: res.StatusCode,
16097 Header: res.Header,
16098 })
16099 }
16100 if err != nil {
16101 return nil, err
16102 }
16103 defer googleapi.CloseBody(res)
16104 if err := googleapi.CheckResponse(res); err != nil {
16105 return nil, gensupport.WrapError(err)
16106 }
16107 ret := &GoogleCloudDiscoveryengineV1TargetSite{
16108 ServerResponse: googleapi.ServerResponse{
16109 Header: res.Header,
16110 HTTPStatusCode: res.StatusCode,
16111 },
16112 }
16113 target := &ret
16114 if err := gensupport.DecodeResponse(target, res); err != nil {
16115 return nil, err
16116 }
16117 return ret, nil
16118 }
16119
16120 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall struct {
16121 s *Service
16122 parent string
16123 urlParams_ gensupport.URLParams
16124 ifNoneMatch_ string
16125 ctx_ context.Context
16126 header_ http.Header
16127 }
16128
16129
16130
16131
16132
16133
16134
16135
16136 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) List(parent string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
16137 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16138 c.parent = parent
16139 return c
16140 }
16141
16142
16143
16144
16145
16146
16147 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
16148 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
16149 return c
16150 }
16151
16152
16153
16154
16155
16156 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
16157 c.urlParams_.Set("pageToken", pageToken)
16158 return c
16159 }
16160
16161
16162
16163
16164 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
16165 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16166 return c
16167 }
16168
16169
16170
16171
16172 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
16173 c.ifNoneMatch_ = entityTag
16174 return c
16175 }
16176
16177
16178 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
16179 c.ctx_ = ctx
16180 return c
16181 }
16182
16183
16184
16185 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Header() http.Header {
16186 if c.header_ == nil {
16187 c.header_ = make(http.Header)
16188 }
16189 return c.header_
16190 }
16191
16192 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) doRequest(alt string) (*http.Response, error) {
16193 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16194 if c.ifNoneMatch_ != "" {
16195 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16196 }
16197 var body io.Reader = nil
16198 c.urlParams_.Set("alt", alt)
16199 c.urlParams_.Set("prettyPrint", "false")
16200 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetSites")
16201 urls += "?" + c.urlParams_.Encode()
16202 req, err := http.NewRequest("GET", urls, body)
16203 if err != nil {
16204 return nil, err
16205 }
16206 req.Header = reqHeaders
16207 googleapi.Expand(req.URL, map[string]string{
16208 "parent": c.parent,
16209 })
16210 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16211 }
16212
16213
16214
16215
16216
16217
16218
16219 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListTargetSitesResponse, error) {
16220 gensupport.SetOptions(c.urlParams_, opts...)
16221 res, err := c.doRequest("json")
16222 if res != nil && res.StatusCode == http.StatusNotModified {
16223 if res.Body != nil {
16224 res.Body.Close()
16225 }
16226 return nil, gensupport.WrapError(&googleapi.Error{
16227 Code: res.StatusCode,
16228 Header: res.Header,
16229 })
16230 }
16231 if err != nil {
16232 return nil, err
16233 }
16234 defer googleapi.CloseBody(res)
16235 if err := googleapi.CheckResponse(res); err != nil {
16236 return nil, gensupport.WrapError(err)
16237 }
16238 ret := &GoogleCloudDiscoveryengineV1ListTargetSitesResponse{
16239 ServerResponse: googleapi.ServerResponse{
16240 Header: res.Header,
16241 HTTPStatusCode: res.StatusCode,
16242 },
16243 }
16244 target := &ret
16245 if err := gensupport.DecodeResponse(target, res); err != nil {
16246 return nil, err
16247 }
16248 return ret, nil
16249 }
16250
16251
16252
16253
16254 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListTargetSitesResponse) error) error {
16255 c.ctx_ = ctx
16256 defer c.PageToken(c.urlParams_.Get("pageToken"))
16257 for {
16258 x, err := c.Do()
16259 if err != nil {
16260 return err
16261 }
16262 if err := f(x); err != nil {
16263 return err
16264 }
16265 if x.NextPageToken == "" {
16266 return nil
16267 }
16268 c.PageToken(x.NextPageToken)
16269 }
16270 }
16271
16272 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall struct {
16273 s *Service
16274 name string
16275 googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite
16276 urlParams_ gensupport.URLParams
16277 ctx_ context.Context
16278 header_ http.Header
16279 }
16280
16281
16282
16283
16284
16285
16286
16287 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Patch(name string, googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
16288 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16289 c.name = name
16290 c.googleclouddiscoveryenginev1targetsite = googleclouddiscoveryenginev1targetsite
16291 return c
16292 }
16293
16294
16295
16296
16297 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
16298 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16299 return c
16300 }
16301
16302
16303 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
16304 c.ctx_ = ctx
16305 return c
16306 }
16307
16308
16309
16310 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Header() http.Header {
16311 if c.header_ == nil {
16312 c.header_ = make(http.Header)
16313 }
16314 return c.header_
16315 }
16316
16317 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequest(alt string) (*http.Response, error) {
16318 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16319 var body io.Reader = nil
16320 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1targetsite)
16321 if err != nil {
16322 return nil, err
16323 }
16324 c.urlParams_.Set("alt", alt)
16325 c.urlParams_.Set("prettyPrint", "false")
16326 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16327 urls += "?" + c.urlParams_.Encode()
16328 req, err := http.NewRequest("PATCH", urls, body)
16329 if err != nil {
16330 return nil, err
16331 }
16332 req.Header = reqHeaders
16333 googleapi.Expand(req.URL, map[string]string{
16334 "name": c.name,
16335 })
16336 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16337 }
16338
16339
16340
16341
16342
16343
16344
16345 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
16346 gensupport.SetOptions(c.urlParams_, opts...)
16347 res, err := c.doRequest("json")
16348 if res != nil && res.StatusCode == http.StatusNotModified {
16349 if res.Body != nil {
16350 res.Body.Close()
16351 }
16352 return nil, gensupport.WrapError(&googleapi.Error{
16353 Code: res.StatusCode,
16354 Header: res.Header,
16355 })
16356 }
16357 if err != nil {
16358 return nil, err
16359 }
16360 defer googleapi.CloseBody(res)
16361 if err := googleapi.CheckResponse(res); err != nil {
16362 return nil, gensupport.WrapError(err)
16363 }
16364 ret := &GoogleLongrunningOperation{
16365 ServerResponse: googleapi.ServerResponse{
16366 Header: res.Header,
16367 HTTPStatusCode: res.StatusCode,
16368 },
16369 }
16370 target := &ret
16371 if err := gensupport.DecodeResponse(target, res); err != nil {
16372 return nil, err
16373 }
16374 return ret, nil
16375 }
16376
16377 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall struct {
16378 s *Service
16379 name string
16380 urlParams_ gensupport.URLParams
16381 ifNoneMatch_ string
16382 ctx_ context.Context
16383 header_ http.Header
16384 }
16385
16386
16387
16388
16389
16390
16391 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
16392 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16393 c.name = name
16394 return c
16395 }
16396
16397
16398
16399
16400 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
16401 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16402 return c
16403 }
16404
16405
16406
16407
16408 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
16409 c.ifNoneMatch_ = entityTag
16410 return c
16411 }
16412
16413
16414 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
16415 c.ctx_ = ctx
16416 return c
16417 }
16418
16419
16420
16421 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Header() http.Header {
16422 if c.header_ == nil {
16423 c.header_ = make(http.Header)
16424 }
16425 return c.header_
16426 }
16427
16428 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
16429 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16430 if c.ifNoneMatch_ != "" {
16431 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16432 }
16433 var body io.Reader = nil
16434 c.urlParams_.Set("alt", alt)
16435 c.urlParams_.Set("prettyPrint", "false")
16436 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
16437 urls += "?" + c.urlParams_.Encode()
16438 req, err := http.NewRequest("GET", urls, body)
16439 if err != nil {
16440 return nil, err
16441 }
16442 req.Header = reqHeaders
16443 googleapi.Expand(req.URL, map[string]string{
16444 "name": c.name,
16445 })
16446 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16447 }
16448
16449
16450
16451
16452
16453
16454
16455 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
16456 gensupport.SetOptions(c.urlParams_, opts...)
16457 res, err := c.doRequest("json")
16458 if res != nil && res.StatusCode == http.StatusNotModified {
16459 if res.Body != nil {
16460 res.Body.Close()
16461 }
16462 return nil, gensupport.WrapError(&googleapi.Error{
16463 Code: res.StatusCode,
16464 Header: res.Header,
16465 })
16466 }
16467 if err != nil {
16468 return nil, err
16469 }
16470 defer googleapi.CloseBody(res)
16471 if err := googleapi.CheckResponse(res); err != nil {
16472 return nil, gensupport.WrapError(err)
16473 }
16474 ret := &GoogleLongrunningOperation{
16475 ServerResponse: googleapi.ServerResponse{
16476 Header: res.Header,
16477 HTTPStatusCode: res.StatusCode,
16478 },
16479 }
16480 target := &ret
16481 if err := gensupport.DecodeResponse(target, res); err != nil {
16482 return nil, err
16483 }
16484 return ret, nil
16485 }
16486
16487 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall struct {
16488 s *Service
16489 name string
16490 urlParams_ gensupport.URLParams
16491 ifNoneMatch_ string
16492 ctx_ context.Context
16493 header_ http.Header
16494 }
16495
16496
16497
16498
16499
16500 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
16501 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16502 c.name = name
16503 return c
16504 }
16505
16506
16507 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
16508 c.urlParams_.Set("filter", filter)
16509 return c
16510 }
16511
16512
16513
16514 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
16515 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
16516 return c
16517 }
16518
16519
16520
16521 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
16522 c.urlParams_.Set("pageToken", pageToken)
16523 return c
16524 }
16525
16526
16527
16528
16529 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
16530 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16531 return c
16532 }
16533
16534
16535
16536
16537 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
16538 c.ifNoneMatch_ = entityTag
16539 return c
16540 }
16541
16542
16543 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
16544 c.ctx_ = ctx
16545 return c
16546 }
16547
16548
16549
16550 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Header() http.Header {
16551 if c.header_ == nil {
16552 c.header_ = make(http.Header)
16553 }
16554 return c.header_
16555 }
16556
16557 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) doRequest(alt string) (*http.Response, error) {
16558 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16559 if c.ifNoneMatch_ != "" {
16560 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16561 }
16562 var body io.Reader = nil
16563 c.urlParams_.Set("alt", alt)
16564 c.urlParams_.Set("prettyPrint", "false")
16565 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
16566 urls += "?" + c.urlParams_.Encode()
16567 req, err := http.NewRequest("GET", urls, body)
16568 if err != nil {
16569 return nil, err
16570 }
16571 req.Header = reqHeaders
16572 googleapi.Expand(req.URL, map[string]string{
16573 "name": c.name,
16574 })
16575 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16576 }
16577
16578
16579
16580
16581
16582
16583
16584 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
16585 gensupport.SetOptions(c.urlParams_, opts...)
16586 res, err := c.doRequest("json")
16587 if res != nil && res.StatusCode == http.StatusNotModified {
16588 if res.Body != nil {
16589 res.Body.Close()
16590 }
16591 return nil, gensupport.WrapError(&googleapi.Error{
16592 Code: res.StatusCode,
16593 Header: res.Header,
16594 })
16595 }
16596 if err != nil {
16597 return nil, err
16598 }
16599 defer googleapi.CloseBody(res)
16600 if err := googleapi.CheckResponse(res); err != nil {
16601 return nil, gensupport.WrapError(err)
16602 }
16603 ret := &GoogleLongrunningListOperationsResponse{
16604 ServerResponse: googleapi.ServerResponse{
16605 Header: res.Header,
16606 HTTPStatusCode: res.StatusCode,
16607 },
16608 }
16609 target := &ret
16610 if err := gensupport.DecodeResponse(target, res); err != nil {
16611 return nil, err
16612 }
16613 return ret, nil
16614 }
16615
16616
16617
16618
16619 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
16620 c.ctx_ = ctx
16621 defer c.PageToken(c.urlParams_.Get("pageToken"))
16622 for {
16623 x, err := c.Do()
16624 if err != nil {
16625 return err
16626 }
16627 if err := f(x); err != nil {
16628 return err
16629 }
16630 if x.NextPageToken == "" {
16631 return nil
16632 }
16633 c.PageToken(x.NextPageToken)
16634 }
16635 }
16636
16637 type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall struct {
16638 s *Service
16639 parent string
16640 googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest
16641 urlParams_ gensupport.URLParams
16642 ctx_ context.Context
16643 header_ http.Header
16644 }
16645
16646
16647
16648
16649
16650
16651 func (r *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService) Import(parent string, googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
16652 c := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16653 c.parent = parent
16654 c.googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest = googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest
16655 return c
16656 }
16657
16658
16659
16660
16661 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
16662 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16663 return c
16664 }
16665
16666
16667 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
16668 c.ctx_ = ctx
16669 return c
16670 }
16671
16672
16673
16674 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Header() http.Header {
16675 if c.header_ == nil {
16676 c.header_ = make(http.Header)
16677 }
16678 return c.header_
16679 }
16680
16681 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) doRequest(alt string) (*http.Response, error) {
16682 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16683 var body io.Reader = nil
16684 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest)
16685 if err != nil {
16686 return nil, err
16687 }
16688 c.urlParams_.Set("alt", alt)
16689 c.urlParams_.Set("prettyPrint", "false")
16690 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/suggestionDenyListEntries:import")
16691 urls += "?" + c.urlParams_.Encode()
16692 req, err := http.NewRequest("POST", urls, body)
16693 if err != nil {
16694 return nil, err
16695 }
16696 req.Header = reqHeaders
16697 googleapi.Expand(req.URL, map[string]string{
16698 "parent": c.parent,
16699 })
16700 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16701 }
16702
16703
16704
16705
16706
16707
16708
16709 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
16710 gensupport.SetOptions(c.urlParams_, opts...)
16711 res, err := c.doRequest("json")
16712 if res != nil && res.StatusCode == http.StatusNotModified {
16713 if res.Body != nil {
16714 res.Body.Close()
16715 }
16716 return nil, gensupport.WrapError(&googleapi.Error{
16717 Code: res.StatusCode,
16718 Header: res.Header,
16719 })
16720 }
16721 if err != nil {
16722 return nil, err
16723 }
16724 defer googleapi.CloseBody(res)
16725 if err := googleapi.CheckResponse(res); err != nil {
16726 return nil, gensupport.WrapError(err)
16727 }
16728 ret := &GoogleLongrunningOperation{
16729 ServerResponse: googleapi.ServerResponse{
16730 Header: res.Header,
16731 HTTPStatusCode: res.StatusCode,
16732 },
16733 }
16734 target := &ret
16735 if err := gensupport.DecodeResponse(target, res); err != nil {
16736 return nil, err
16737 }
16738 return ret, nil
16739 }
16740
16741 type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall struct {
16742 s *Service
16743 parent string
16744 googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest
16745 urlParams_ gensupport.URLParams
16746 ctx_ context.Context
16747 header_ http.Header
16748 }
16749
16750
16751
16752
16753
16754
16755 func (r *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService) Purge(parent string, googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
16756 c := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16757 c.parent = parent
16758 c.googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest = googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest
16759 return c
16760 }
16761
16762
16763
16764
16765 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
16766 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16767 return c
16768 }
16769
16770
16771 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
16772 c.ctx_ = ctx
16773 return c
16774 }
16775
16776
16777
16778 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Header() http.Header {
16779 if c.header_ == nil {
16780 c.header_ = make(http.Header)
16781 }
16782 return c.header_
16783 }
16784
16785 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) doRequest(alt string) (*http.Response, error) {
16786 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16787 var body io.Reader = nil
16788 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest)
16789 if err != nil {
16790 return nil, err
16791 }
16792 c.urlParams_.Set("alt", alt)
16793 c.urlParams_.Set("prettyPrint", "false")
16794 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/suggestionDenyListEntries:purge")
16795 urls += "?" + c.urlParams_.Encode()
16796 req, err := http.NewRequest("POST", urls, body)
16797 if err != nil {
16798 return nil, err
16799 }
16800 req.Header = reqHeaders
16801 googleapi.Expand(req.URL, map[string]string{
16802 "parent": c.parent,
16803 })
16804 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16805 }
16806
16807
16808
16809
16810
16811
16812
16813 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
16814 gensupport.SetOptions(c.urlParams_, opts...)
16815 res, err := c.doRequest("json")
16816 if res != nil && res.StatusCode == http.StatusNotModified {
16817 if res.Body != nil {
16818 res.Body.Close()
16819 }
16820 return nil, gensupport.WrapError(&googleapi.Error{
16821 Code: res.StatusCode,
16822 Header: res.Header,
16823 })
16824 }
16825 if err != nil {
16826 return nil, err
16827 }
16828 defer googleapi.CloseBody(res)
16829 if err := googleapi.CheckResponse(res); err != nil {
16830 return nil, gensupport.WrapError(err)
16831 }
16832 ret := &GoogleLongrunningOperation{
16833 ServerResponse: googleapi.ServerResponse{
16834 Header: res.Header,
16835 HTTPStatusCode: res.StatusCode,
16836 },
16837 }
16838 target := &ret
16839 if err := gensupport.DecodeResponse(target, res); err != nil {
16840 return nil, err
16841 }
16842 return ret, nil
16843 }
16844
16845 type ProjectsLocationsCollectionsDataStoresUserEventsCollectCall struct {
16846 s *Service
16847 parent string
16848 urlParams_ gensupport.URLParams
16849 ifNoneMatch_ string
16850 ctx_ context.Context
16851 header_ http.Header
16852 }
16853
16854
16855
16856
16857
16858
16859
16860
16861
16862 func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Collect(parent string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
16863 c := &ProjectsLocationsCollectionsDataStoresUserEventsCollectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16864 c.parent = parent
16865 return c
16866 }
16867
16868
16869
16870
16871 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Ets(ets int64) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
16872 c.urlParams_.Set("ets", fmt.Sprint(ets))
16873 return c
16874 }
16875
16876
16877
16878
16879
16880 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Uri(uri string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
16881 c.urlParams_.Set("uri", uri)
16882 return c
16883 }
16884
16885
16886
16887 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) UserEvent(userEvent string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
16888 c.urlParams_.Set("userEvent", userEvent)
16889 return c
16890 }
16891
16892
16893
16894
16895 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
16896 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16897 return c
16898 }
16899
16900
16901
16902
16903 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
16904 c.ifNoneMatch_ = entityTag
16905 return c
16906 }
16907
16908
16909 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
16910 c.ctx_ = ctx
16911 return c
16912 }
16913
16914
16915
16916 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Header() http.Header {
16917 if c.header_ == nil {
16918 c.header_ = make(http.Header)
16919 }
16920 return c.header_
16921 }
16922
16923 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) {
16924 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16925 if c.ifNoneMatch_ != "" {
16926 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16927 }
16928 var body io.Reader = nil
16929 c.urlParams_.Set("alt", alt)
16930 c.urlParams_.Set("prettyPrint", "false")
16931 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:collect")
16932 urls += "?" + c.urlParams_.Encode()
16933 req, err := http.NewRequest("GET", urls, body)
16934 if err != nil {
16935 return nil, err
16936 }
16937 req.Header = reqHeaders
16938 googleapi.Expand(req.URL, map[string]string{
16939 "parent": c.parent,
16940 })
16941 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16942 }
16943
16944
16945
16946
16947
16948
16949
16950 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
16951 gensupport.SetOptions(c.urlParams_, opts...)
16952 res, err := c.doRequest("json")
16953 if res != nil && res.StatusCode == http.StatusNotModified {
16954 if res.Body != nil {
16955 res.Body.Close()
16956 }
16957 return nil, gensupport.WrapError(&googleapi.Error{
16958 Code: res.StatusCode,
16959 Header: res.Header,
16960 })
16961 }
16962 if err != nil {
16963 return nil, err
16964 }
16965 defer googleapi.CloseBody(res)
16966 if err := googleapi.CheckResponse(res); err != nil {
16967 return nil, gensupport.WrapError(err)
16968 }
16969 ret := &GoogleApiHttpBody{
16970 ServerResponse: googleapi.ServerResponse{
16971 Header: res.Header,
16972 HTTPStatusCode: res.StatusCode,
16973 },
16974 }
16975 target := &ret
16976 if err := gensupport.DecodeResponse(target, res); err != nil {
16977 return nil, err
16978 }
16979 return ret, nil
16980 }
16981
16982 type ProjectsLocationsCollectionsDataStoresUserEventsImportCall struct {
16983 s *Service
16984 parent string
16985 googleclouddiscoveryenginev1importusereventsrequest *GoogleCloudDiscoveryengineV1ImportUserEventsRequest
16986 urlParams_ gensupport.URLParams
16987 ctx_ context.Context
16988 header_ http.Header
16989 }
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000 func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Import(parent string, googleclouddiscoveryenginev1importusereventsrequest *GoogleCloudDiscoveryengineV1ImportUserEventsRequest) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
17001 c := &ProjectsLocationsCollectionsDataStoresUserEventsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17002 c.parent = parent
17003 c.googleclouddiscoveryenginev1importusereventsrequest = googleclouddiscoveryenginev1importusereventsrequest
17004 return c
17005 }
17006
17007
17008
17009
17010 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
17011 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17012 return c
17013 }
17014
17015
17016 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
17017 c.ctx_ = ctx
17018 return c
17019 }
17020
17021
17022
17023 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Header() http.Header {
17024 if c.header_ == nil {
17025 c.header_ = make(http.Header)
17026 }
17027 return c.header_
17028 }
17029
17030 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) {
17031 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17032 var body io.Reader = nil
17033 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1importusereventsrequest)
17034 if err != nil {
17035 return nil, err
17036 }
17037 c.urlParams_.Set("alt", alt)
17038 c.urlParams_.Set("prettyPrint", "false")
17039 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:import")
17040 urls += "?" + c.urlParams_.Encode()
17041 req, err := http.NewRequest("POST", urls, body)
17042 if err != nil {
17043 return nil, err
17044 }
17045 req.Header = reqHeaders
17046 googleapi.Expand(req.URL, map[string]string{
17047 "parent": c.parent,
17048 })
17049 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17050 }
17051
17052
17053
17054
17055
17056
17057
17058 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
17059 gensupport.SetOptions(c.urlParams_, opts...)
17060 res, err := c.doRequest("json")
17061 if res != nil && res.StatusCode == http.StatusNotModified {
17062 if res.Body != nil {
17063 res.Body.Close()
17064 }
17065 return nil, gensupport.WrapError(&googleapi.Error{
17066 Code: res.StatusCode,
17067 Header: res.Header,
17068 })
17069 }
17070 if err != nil {
17071 return nil, err
17072 }
17073 defer googleapi.CloseBody(res)
17074 if err := googleapi.CheckResponse(res); err != nil {
17075 return nil, gensupport.WrapError(err)
17076 }
17077 ret := &GoogleLongrunningOperation{
17078 ServerResponse: googleapi.ServerResponse{
17079 Header: res.Header,
17080 HTTPStatusCode: res.StatusCode,
17081 },
17082 }
17083 target := &ret
17084 if err := gensupport.DecodeResponse(target, res); err != nil {
17085 return nil, err
17086 }
17087 return ret, nil
17088 }
17089
17090 type ProjectsLocationsCollectionsDataStoresUserEventsWriteCall struct {
17091 s *Service
17092 parent string
17093 googleclouddiscoveryenginev1userevent *GoogleCloudDiscoveryengineV1UserEvent
17094 urlParams_ gensupport.URLParams
17095 ctx_ context.Context
17096 header_ http.Header
17097 }
17098
17099
17100
17101
17102
17103
17104
17105
17106
17107 func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Write(parent string, googleclouddiscoveryenginev1userevent *GoogleCloudDiscoveryengineV1UserEvent) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
17108 c := &ProjectsLocationsCollectionsDataStoresUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17109 c.parent = parent
17110 c.googleclouddiscoveryenginev1userevent = googleclouddiscoveryenginev1userevent
17111 return c
17112 }
17113
17114
17115
17116
17117 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
17118 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17119 return c
17120 }
17121
17122
17123 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
17124 c.ctx_ = ctx
17125 return c
17126 }
17127
17128
17129
17130 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Header() http.Header {
17131 if c.header_ == nil {
17132 c.header_ = make(http.Header)
17133 }
17134 return c.header_
17135 }
17136
17137 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
17138 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17139 var body io.Reader = nil
17140 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1userevent)
17141 if err != nil {
17142 return nil, err
17143 }
17144 c.urlParams_.Set("alt", alt)
17145 c.urlParams_.Set("prettyPrint", "false")
17146 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:write")
17147 urls += "?" + c.urlParams_.Encode()
17148 req, err := http.NewRequest("POST", urls, body)
17149 if err != nil {
17150 return nil, err
17151 }
17152 req.Header = reqHeaders
17153 googleapi.Expand(req.URL, map[string]string{
17154 "parent": c.parent,
17155 })
17156 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17157 }
17158
17159
17160
17161
17162
17163
17164
17165 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1UserEvent, error) {
17166 gensupport.SetOptions(c.urlParams_, opts...)
17167 res, err := c.doRequest("json")
17168 if res != nil && res.StatusCode == http.StatusNotModified {
17169 if res.Body != nil {
17170 res.Body.Close()
17171 }
17172 return nil, gensupport.WrapError(&googleapi.Error{
17173 Code: res.StatusCode,
17174 Header: res.Header,
17175 })
17176 }
17177 if err != nil {
17178 return nil, err
17179 }
17180 defer googleapi.CloseBody(res)
17181 if err := googleapi.CheckResponse(res); err != nil {
17182 return nil, gensupport.WrapError(err)
17183 }
17184 ret := &GoogleCloudDiscoveryengineV1UserEvent{
17185 ServerResponse: googleapi.ServerResponse{
17186 Header: res.Header,
17187 HTTPStatusCode: res.StatusCode,
17188 },
17189 }
17190 target := &ret
17191 if err := gensupport.DecodeResponse(target, res); err != nil {
17192 return nil, err
17193 }
17194 return ret, nil
17195 }
17196
17197 type ProjectsLocationsCollectionsEnginesCreateCall struct {
17198 s *Service
17199 parent string
17200 googleclouddiscoveryenginev1engine *GoogleCloudDiscoveryengineV1Engine
17201 urlParams_ gensupport.URLParams
17202 ctx_ context.Context
17203 header_ http.Header
17204 }
17205
17206
17207
17208
17209
17210 func (r *ProjectsLocationsCollectionsEnginesService) Create(parent string, googleclouddiscoveryenginev1engine *GoogleCloudDiscoveryengineV1Engine) *ProjectsLocationsCollectionsEnginesCreateCall {
17211 c := &ProjectsLocationsCollectionsEnginesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17212 c.parent = parent
17213 c.googleclouddiscoveryenginev1engine = googleclouddiscoveryenginev1engine
17214 return c
17215 }
17216
17217
17218
17219
17220
17221
17222 func (c *ProjectsLocationsCollectionsEnginesCreateCall) EngineId(engineId string) *ProjectsLocationsCollectionsEnginesCreateCall {
17223 c.urlParams_.Set("engineId", engineId)
17224 return c
17225 }
17226
17227
17228
17229
17230 func (c *ProjectsLocationsCollectionsEnginesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesCreateCall {
17231 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17232 return c
17233 }
17234
17235
17236 func (c *ProjectsLocationsCollectionsEnginesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesCreateCall {
17237 c.ctx_ = ctx
17238 return c
17239 }
17240
17241
17242
17243 func (c *ProjectsLocationsCollectionsEnginesCreateCall) Header() http.Header {
17244 if c.header_ == nil {
17245 c.header_ = make(http.Header)
17246 }
17247 return c.header_
17248 }
17249
17250 func (c *ProjectsLocationsCollectionsEnginesCreateCall) doRequest(alt string) (*http.Response, error) {
17251 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17252 var body io.Reader = nil
17253 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1engine)
17254 if err != nil {
17255 return nil, err
17256 }
17257 c.urlParams_.Set("alt", alt)
17258 c.urlParams_.Set("prettyPrint", "false")
17259 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/engines")
17260 urls += "?" + c.urlParams_.Encode()
17261 req, err := http.NewRequest("POST", urls, body)
17262 if err != nil {
17263 return nil, err
17264 }
17265 req.Header = reqHeaders
17266 googleapi.Expand(req.URL, map[string]string{
17267 "parent": c.parent,
17268 })
17269 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17270 }
17271
17272
17273
17274
17275
17276
17277
17278 func (c *ProjectsLocationsCollectionsEnginesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
17279 gensupport.SetOptions(c.urlParams_, opts...)
17280 res, err := c.doRequest("json")
17281 if res != nil && res.StatusCode == http.StatusNotModified {
17282 if res.Body != nil {
17283 res.Body.Close()
17284 }
17285 return nil, gensupport.WrapError(&googleapi.Error{
17286 Code: res.StatusCode,
17287 Header: res.Header,
17288 })
17289 }
17290 if err != nil {
17291 return nil, err
17292 }
17293 defer googleapi.CloseBody(res)
17294 if err := googleapi.CheckResponse(res); err != nil {
17295 return nil, gensupport.WrapError(err)
17296 }
17297 ret := &GoogleLongrunningOperation{
17298 ServerResponse: googleapi.ServerResponse{
17299 Header: res.Header,
17300 HTTPStatusCode: res.StatusCode,
17301 },
17302 }
17303 target := &ret
17304 if err := gensupport.DecodeResponse(target, res); err != nil {
17305 return nil, err
17306 }
17307 return ret, nil
17308 }
17309
17310 type ProjectsLocationsCollectionsEnginesDeleteCall struct {
17311 s *Service
17312 name string
17313 urlParams_ gensupport.URLParams
17314 ctx_ context.Context
17315 header_ http.Header
17316 }
17317
17318
17319
17320
17321
17322
17323
17324
17325
17326 func (r *ProjectsLocationsCollectionsEnginesService) Delete(name string) *ProjectsLocationsCollectionsEnginesDeleteCall {
17327 c := &ProjectsLocationsCollectionsEnginesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17328 c.name = name
17329 return c
17330 }
17331
17332
17333
17334
17335 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesDeleteCall {
17336 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17337 return c
17338 }
17339
17340
17341 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesDeleteCall {
17342 c.ctx_ = ctx
17343 return c
17344 }
17345
17346
17347
17348 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Header() http.Header {
17349 if c.header_ == nil {
17350 c.header_ = make(http.Header)
17351 }
17352 return c.header_
17353 }
17354
17355 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) doRequest(alt string) (*http.Response, error) {
17356 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17357 var body io.Reader = nil
17358 c.urlParams_.Set("alt", alt)
17359 c.urlParams_.Set("prettyPrint", "false")
17360 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17361 urls += "?" + c.urlParams_.Encode()
17362 req, err := http.NewRequest("DELETE", urls, body)
17363 if err != nil {
17364 return nil, err
17365 }
17366 req.Header = reqHeaders
17367 googleapi.Expand(req.URL, map[string]string{
17368 "name": c.name,
17369 })
17370 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17371 }
17372
17373
17374
17375
17376
17377
17378
17379 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
17380 gensupport.SetOptions(c.urlParams_, opts...)
17381 res, err := c.doRequest("json")
17382 if res != nil && res.StatusCode == http.StatusNotModified {
17383 if res.Body != nil {
17384 res.Body.Close()
17385 }
17386 return nil, gensupport.WrapError(&googleapi.Error{
17387 Code: res.StatusCode,
17388 Header: res.Header,
17389 })
17390 }
17391 if err != nil {
17392 return nil, err
17393 }
17394 defer googleapi.CloseBody(res)
17395 if err := googleapi.CheckResponse(res); err != nil {
17396 return nil, gensupport.WrapError(err)
17397 }
17398 ret := &GoogleLongrunningOperation{
17399 ServerResponse: googleapi.ServerResponse{
17400 Header: res.Header,
17401 HTTPStatusCode: res.StatusCode,
17402 },
17403 }
17404 target := &ret
17405 if err := gensupport.DecodeResponse(target, res); err != nil {
17406 return nil, err
17407 }
17408 return ret, nil
17409 }
17410
17411 type ProjectsLocationsCollectionsEnginesGetCall struct {
17412 s *Service
17413 name string
17414 urlParams_ gensupport.URLParams
17415 ifNoneMatch_ string
17416 ctx_ context.Context
17417 header_ http.Header
17418 }
17419
17420
17421
17422
17423
17424
17425 func (r *ProjectsLocationsCollectionsEnginesService) Get(name string) *ProjectsLocationsCollectionsEnginesGetCall {
17426 c := &ProjectsLocationsCollectionsEnginesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17427 c.name = name
17428 return c
17429 }
17430
17431
17432
17433
17434 func (c *ProjectsLocationsCollectionsEnginesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesGetCall {
17435 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17436 return c
17437 }
17438
17439
17440
17441
17442 func (c *ProjectsLocationsCollectionsEnginesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesGetCall {
17443 c.ifNoneMatch_ = entityTag
17444 return c
17445 }
17446
17447
17448 func (c *ProjectsLocationsCollectionsEnginesGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesGetCall {
17449 c.ctx_ = ctx
17450 return c
17451 }
17452
17453
17454
17455 func (c *ProjectsLocationsCollectionsEnginesGetCall) Header() http.Header {
17456 if c.header_ == nil {
17457 c.header_ = make(http.Header)
17458 }
17459 return c.header_
17460 }
17461
17462 func (c *ProjectsLocationsCollectionsEnginesGetCall) doRequest(alt string) (*http.Response, error) {
17463 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17464 if c.ifNoneMatch_ != "" {
17465 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17466 }
17467 var body io.Reader = nil
17468 c.urlParams_.Set("alt", alt)
17469 c.urlParams_.Set("prettyPrint", "false")
17470 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17471 urls += "?" + c.urlParams_.Encode()
17472 req, err := http.NewRequest("GET", urls, body)
17473 if err != nil {
17474 return nil, err
17475 }
17476 req.Header = reqHeaders
17477 googleapi.Expand(req.URL, map[string]string{
17478 "name": c.name,
17479 })
17480 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17481 }
17482
17483
17484
17485
17486
17487
17488
17489 func (c *ProjectsLocationsCollectionsEnginesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Engine, error) {
17490 gensupport.SetOptions(c.urlParams_, opts...)
17491 res, err := c.doRequest("json")
17492 if res != nil && res.StatusCode == http.StatusNotModified {
17493 if res.Body != nil {
17494 res.Body.Close()
17495 }
17496 return nil, gensupport.WrapError(&googleapi.Error{
17497 Code: res.StatusCode,
17498 Header: res.Header,
17499 })
17500 }
17501 if err != nil {
17502 return nil, err
17503 }
17504 defer googleapi.CloseBody(res)
17505 if err := googleapi.CheckResponse(res); err != nil {
17506 return nil, gensupport.WrapError(err)
17507 }
17508 ret := &GoogleCloudDiscoveryengineV1Engine{
17509 ServerResponse: googleapi.ServerResponse{
17510 Header: res.Header,
17511 HTTPStatusCode: res.StatusCode,
17512 },
17513 }
17514 target := &ret
17515 if err := gensupport.DecodeResponse(target, res); err != nil {
17516 return nil, err
17517 }
17518 return ret, nil
17519 }
17520
17521 type ProjectsLocationsCollectionsEnginesListCall struct {
17522 s *Service
17523 parent string
17524 urlParams_ gensupport.URLParams
17525 ifNoneMatch_ string
17526 ctx_ context.Context
17527 header_ http.Header
17528 }
17529
17530
17531
17532
17533
17534 func (r *ProjectsLocationsCollectionsEnginesService) List(parent string) *ProjectsLocationsCollectionsEnginesListCall {
17535 c := &ProjectsLocationsCollectionsEnginesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17536 c.parent = parent
17537 return c
17538 }
17539
17540
17541
17542 func (c *ProjectsLocationsCollectionsEnginesListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesListCall {
17543 c.urlParams_.Set("filter", filter)
17544 return c
17545 }
17546
17547
17548 func (c *ProjectsLocationsCollectionsEnginesListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesListCall {
17549 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17550 return c
17551 }
17552
17553
17554 func (c *ProjectsLocationsCollectionsEnginesListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesListCall {
17555 c.urlParams_.Set("pageToken", pageToken)
17556 return c
17557 }
17558
17559
17560
17561
17562 func (c *ProjectsLocationsCollectionsEnginesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesListCall {
17563 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17564 return c
17565 }
17566
17567
17568
17569
17570 func (c *ProjectsLocationsCollectionsEnginesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesListCall {
17571 c.ifNoneMatch_ = entityTag
17572 return c
17573 }
17574
17575
17576 func (c *ProjectsLocationsCollectionsEnginesListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesListCall {
17577 c.ctx_ = ctx
17578 return c
17579 }
17580
17581
17582
17583 func (c *ProjectsLocationsCollectionsEnginesListCall) Header() http.Header {
17584 if c.header_ == nil {
17585 c.header_ = make(http.Header)
17586 }
17587 return c.header_
17588 }
17589
17590 func (c *ProjectsLocationsCollectionsEnginesListCall) doRequest(alt string) (*http.Response, error) {
17591 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17592 if c.ifNoneMatch_ != "" {
17593 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17594 }
17595 var body io.Reader = nil
17596 c.urlParams_.Set("alt", alt)
17597 c.urlParams_.Set("prettyPrint", "false")
17598 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/engines")
17599 urls += "?" + c.urlParams_.Encode()
17600 req, err := http.NewRequest("GET", urls, body)
17601 if err != nil {
17602 return nil, err
17603 }
17604 req.Header = reqHeaders
17605 googleapi.Expand(req.URL, map[string]string{
17606 "parent": c.parent,
17607 })
17608 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17609 }
17610
17611
17612
17613
17614
17615
17616
17617 func (c *ProjectsLocationsCollectionsEnginesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListEnginesResponse, error) {
17618 gensupport.SetOptions(c.urlParams_, opts...)
17619 res, err := c.doRequest("json")
17620 if res != nil && res.StatusCode == http.StatusNotModified {
17621 if res.Body != nil {
17622 res.Body.Close()
17623 }
17624 return nil, gensupport.WrapError(&googleapi.Error{
17625 Code: res.StatusCode,
17626 Header: res.Header,
17627 })
17628 }
17629 if err != nil {
17630 return nil, err
17631 }
17632 defer googleapi.CloseBody(res)
17633 if err := googleapi.CheckResponse(res); err != nil {
17634 return nil, gensupport.WrapError(err)
17635 }
17636 ret := &GoogleCloudDiscoveryengineV1ListEnginesResponse{
17637 ServerResponse: googleapi.ServerResponse{
17638 Header: res.Header,
17639 HTTPStatusCode: res.StatusCode,
17640 },
17641 }
17642 target := &ret
17643 if err := gensupport.DecodeResponse(target, res); err != nil {
17644 return nil, err
17645 }
17646 return ret, nil
17647 }
17648
17649
17650
17651
17652 func (c *ProjectsLocationsCollectionsEnginesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListEnginesResponse) error) error {
17653 c.ctx_ = ctx
17654 defer c.PageToken(c.urlParams_.Get("pageToken"))
17655 for {
17656 x, err := c.Do()
17657 if err != nil {
17658 return err
17659 }
17660 if err := f(x); err != nil {
17661 return err
17662 }
17663 if x.NextPageToken == "" {
17664 return nil
17665 }
17666 c.PageToken(x.NextPageToken)
17667 }
17668 }
17669
17670 type ProjectsLocationsCollectionsEnginesPatchCall struct {
17671 s *Service
17672 name string
17673 googleclouddiscoveryenginev1engine *GoogleCloudDiscoveryengineV1Engine
17674 urlParams_ gensupport.URLParams
17675 ctx_ context.Context
17676 header_ http.Header
17677 }
17678
17679
17680
17681
17682
17683
17684
17685
17686
17687 func (r *ProjectsLocationsCollectionsEnginesService) Patch(name string, googleclouddiscoveryenginev1engine *GoogleCloudDiscoveryengineV1Engine) *ProjectsLocationsCollectionsEnginesPatchCall {
17688 c := &ProjectsLocationsCollectionsEnginesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17689 c.name = name
17690 c.googleclouddiscoveryenginev1engine = googleclouddiscoveryenginev1engine
17691 return c
17692 }
17693
17694
17695
17696
17697 func (c *ProjectsLocationsCollectionsEnginesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesPatchCall {
17698 c.urlParams_.Set("updateMask", updateMask)
17699 return c
17700 }
17701
17702
17703
17704
17705 func (c *ProjectsLocationsCollectionsEnginesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesPatchCall {
17706 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17707 return c
17708 }
17709
17710
17711 func (c *ProjectsLocationsCollectionsEnginesPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesPatchCall {
17712 c.ctx_ = ctx
17713 return c
17714 }
17715
17716
17717
17718 func (c *ProjectsLocationsCollectionsEnginesPatchCall) Header() http.Header {
17719 if c.header_ == nil {
17720 c.header_ = make(http.Header)
17721 }
17722 return c.header_
17723 }
17724
17725 func (c *ProjectsLocationsCollectionsEnginesPatchCall) doRequest(alt string) (*http.Response, error) {
17726 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17727 var body io.Reader = nil
17728 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1engine)
17729 if err != nil {
17730 return nil, err
17731 }
17732 c.urlParams_.Set("alt", alt)
17733 c.urlParams_.Set("prettyPrint", "false")
17734 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
17735 urls += "?" + c.urlParams_.Encode()
17736 req, err := http.NewRequest("PATCH", urls, body)
17737 if err != nil {
17738 return nil, err
17739 }
17740 req.Header = reqHeaders
17741 googleapi.Expand(req.URL, map[string]string{
17742 "name": c.name,
17743 })
17744 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17745 }
17746
17747
17748
17749
17750
17751
17752
17753 func (c *ProjectsLocationsCollectionsEnginesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Engine, error) {
17754 gensupport.SetOptions(c.urlParams_, opts...)
17755 res, err := c.doRequest("json")
17756 if res != nil && res.StatusCode == http.StatusNotModified {
17757 if res.Body != nil {
17758 res.Body.Close()
17759 }
17760 return nil, gensupport.WrapError(&googleapi.Error{
17761 Code: res.StatusCode,
17762 Header: res.Header,
17763 })
17764 }
17765 if err != nil {
17766 return nil, err
17767 }
17768 defer googleapi.CloseBody(res)
17769 if err := googleapi.CheckResponse(res); err != nil {
17770 return nil, gensupport.WrapError(err)
17771 }
17772 ret := &GoogleCloudDiscoveryengineV1Engine{
17773 ServerResponse: googleapi.ServerResponse{
17774 Header: res.Header,
17775 HTTPStatusCode: res.StatusCode,
17776 },
17777 }
17778 target := &ret
17779 if err := gensupport.DecodeResponse(target, res); err != nil {
17780 return nil, err
17781 }
17782 return ret, nil
17783 }
17784
17785 type ProjectsLocationsCollectionsEnginesConversationsConverseCall struct {
17786 s *Service
17787 name string
17788 googleclouddiscoveryenginev1converseconversationrequest *GoogleCloudDiscoveryengineV1ConverseConversationRequest
17789 urlParams_ gensupport.URLParams
17790 ctx_ context.Context
17791 header_ http.Header
17792 }
17793
17794
17795
17796
17797
17798
17799
17800
17801
17802
17803 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Converse(name string, googleclouddiscoveryenginev1converseconversationrequest *GoogleCloudDiscoveryengineV1ConverseConversationRequest) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
17804 c := &ProjectsLocationsCollectionsEnginesConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17805 c.name = name
17806 c.googleclouddiscoveryenginev1converseconversationrequest = googleclouddiscoveryenginev1converseconversationrequest
17807 return c
17808 }
17809
17810
17811
17812
17813 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
17814 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17815 return c
17816 }
17817
17818
17819 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
17820 c.ctx_ = ctx
17821 return c
17822 }
17823
17824
17825
17826 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Header() http.Header {
17827 if c.header_ == nil {
17828 c.header_ = make(http.Header)
17829 }
17830 return c.header_
17831 }
17832
17833 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
17834 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17835 var body io.Reader = nil
17836 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1converseconversationrequest)
17837 if err != nil {
17838 return nil, err
17839 }
17840 c.urlParams_.Set("alt", alt)
17841 c.urlParams_.Set("prettyPrint", "false")
17842 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:converse")
17843 urls += "?" + c.urlParams_.Encode()
17844 req, err := http.NewRequest("POST", urls, body)
17845 if err != nil {
17846 return nil, err
17847 }
17848 req.Header = reqHeaders
17849 googleapi.Expand(req.URL, map[string]string{
17850 "name": c.name,
17851 })
17852 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17853 }
17854
17855
17856
17857
17858
17859
17860
17861 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ConverseConversationResponse, error) {
17862 gensupport.SetOptions(c.urlParams_, opts...)
17863 res, err := c.doRequest("json")
17864 if res != nil && res.StatusCode == http.StatusNotModified {
17865 if res.Body != nil {
17866 res.Body.Close()
17867 }
17868 return nil, gensupport.WrapError(&googleapi.Error{
17869 Code: res.StatusCode,
17870 Header: res.Header,
17871 })
17872 }
17873 if err != nil {
17874 return nil, err
17875 }
17876 defer googleapi.CloseBody(res)
17877 if err := googleapi.CheckResponse(res); err != nil {
17878 return nil, gensupport.WrapError(err)
17879 }
17880 ret := &GoogleCloudDiscoveryengineV1ConverseConversationResponse{
17881 ServerResponse: googleapi.ServerResponse{
17882 Header: res.Header,
17883 HTTPStatusCode: res.StatusCode,
17884 },
17885 }
17886 target := &ret
17887 if err := gensupport.DecodeResponse(target, res); err != nil {
17888 return nil, err
17889 }
17890 return ret, nil
17891 }
17892
17893 type ProjectsLocationsCollectionsEnginesConversationsCreateCall struct {
17894 s *Service
17895 parent string
17896 googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation
17897 urlParams_ gensupport.URLParams
17898 ctx_ context.Context
17899 header_ http.Header
17900 }
17901
17902
17903
17904
17905
17906
17907
17908 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Create(parent string, googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
17909 c := &ProjectsLocationsCollectionsEnginesConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17910 c.parent = parent
17911 c.googleclouddiscoveryenginev1conversation = googleclouddiscoveryenginev1conversation
17912 return c
17913 }
17914
17915
17916
17917
17918 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
17919 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17920 return c
17921 }
17922
17923
17924 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
17925 c.ctx_ = ctx
17926 return c
17927 }
17928
17929
17930
17931 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Header() http.Header {
17932 if c.header_ == nil {
17933 c.header_ = make(http.Header)
17934 }
17935 return c.header_
17936 }
17937
17938 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
17939 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17940 var body io.Reader = nil
17941 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1conversation)
17942 if err != nil {
17943 return nil, err
17944 }
17945 c.urlParams_.Set("alt", alt)
17946 c.urlParams_.Set("prettyPrint", "false")
17947 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
17948 urls += "?" + c.urlParams_.Encode()
17949 req, err := http.NewRequest("POST", urls, body)
17950 if err != nil {
17951 return nil, err
17952 }
17953 req.Header = reqHeaders
17954 googleapi.Expand(req.URL, map[string]string{
17955 "parent": c.parent,
17956 })
17957 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17958 }
17959
17960
17961
17962
17963
17964
17965
17966 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
17967 gensupport.SetOptions(c.urlParams_, opts...)
17968 res, err := c.doRequest("json")
17969 if res != nil && res.StatusCode == http.StatusNotModified {
17970 if res.Body != nil {
17971 res.Body.Close()
17972 }
17973 return nil, gensupport.WrapError(&googleapi.Error{
17974 Code: res.StatusCode,
17975 Header: res.Header,
17976 })
17977 }
17978 if err != nil {
17979 return nil, err
17980 }
17981 defer googleapi.CloseBody(res)
17982 if err := googleapi.CheckResponse(res); err != nil {
17983 return nil, gensupport.WrapError(err)
17984 }
17985 ret := &GoogleCloudDiscoveryengineV1Conversation{
17986 ServerResponse: googleapi.ServerResponse{
17987 Header: res.Header,
17988 HTTPStatusCode: res.StatusCode,
17989 },
17990 }
17991 target := &ret
17992 if err := gensupport.DecodeResponse(target, res); err != nil {
17993 return nil, err
17994 }
17995 return ret, nil
17996 }
17997
17998 type ProjectsLocationsCollectionsEnginesConversationsDeleteCall struct {
17999 s *Service
18000 name string
18001 urlParams_ gensupport.URLParams
18002 ctx_ context.Context
18003 header_ http.Header
18004 }
18005
18006
18007
18008
18009
18010
18011
18012 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Delete(name string) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
18013 c := &ProjectsLocationsCollectionsEnginesConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18014 c.name = name
18015 return c
18016 }
18017
18018
18019
18020
18021 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
18022 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18023 return c
18024 }
18025
18026
18027 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
18028 c.ctx_ = ctx
18029 return c
18030 }
18031
18032
18033
18034 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Header() http.Header {
18035 if c.header_ == nil {
18036 c.header_ = make(http.Header)
18037 }
18038 return c.header_
18039 }
18040
18041 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
18042 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18043 var body io.Reader = nil
18044 c.urlParams_.Set("alt", alt)
18045 c.urlParams_.Set("prettyPrint", "false")
18046 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18047 urls += "?" + c.urlParams_.Encode()
18048 req, err := http.NewRequest("DELETE", urls, body)
18049 if err != nil {
18050 return nil, err
18051 }
18052 req.Header = reqHeaders
18053 googleapi.Expand(req.URL, map[string]string{
18054 "name": c.name,
18055 })
18056 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18057 }
18058
18059
18060
18061
18062
18063
18064
18065 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
18066 gensupport.SetOptions(c.urlParams_, opts...)
18067 res, err := c.doRequest("json")
18068 if res != nil && res.StatusCode == http.StatusNotModified {
18069 if res.Body != nil {
18070 res.Body.Close()
18071 }
18072 return nil, gensupport.WrapError(&googleapi.Error{
18073 Code: res.StatusCode,
18074 Header: res.Header,
18075 })
18076 }
18077 if err != nil {
18078 return nil, err
18079 }
18080 defer googleapi.CloseBody(res)
18081 if err := googleapi.CheckResponse(res); err != nil {
18082 return nil, gensupport.WrapError(err)
18083 }
18084 ret := &GoogleProtobufEmpty{
18085 ServerResponse: googleapi.ServerResponse{
18086 Header: res.Header,
18087 HTTPStatusCode: res.StatusCode,
18088 },
18089 }
18090 target := &ret
18091 if err := gensupport.DecodeResponse(target, res); err != nil {
18092 return nil, err
18093 }
18094 return ret, nil
18095 }
18096
18097 type ProjectsLocationsCollectionsEnginesConversationsGetCall struct {
18098 s *Service
18099 name string
18100 urlParams_ gensupport.URLParams
18101 ifNoneMatch_ string
18102 ctx_ context.Context
18103 header_ http.Header
18104 }
18105
18106
18107
18108
18109
18110
18111 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Get(name string) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
18112 c := &ProjectsLocationsCollectionsEnginesConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18113 c.name = name
18114 return c
18115 }
18116
18117
18118
18119
18120 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
18121 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18122 return c
18123 }
18124
18125
18126
18127
18128 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
18129 c.ifNoneMatch_ = entityTag
18130 return c
18131 }
18132
18133
18134 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
18135 c.ctx_ = ctx
18136 return c
18137 }
18138
18139
18140
18141 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Header() http.Header {
18142 if c.header_ == nil {
18143 c.header_ = make(http.Header)
18144 }
18145 return c.header_
18146 }
18147
18148 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) doRequest(alt string) (*http.Response, error) {
18149 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18150 if c.ifNoneMatch_ != "" {
18151 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18152 }
18153 var body io.Reader = nil
18154 c.urlParams_.Set("alt", alt)
18155 c.urlParams_.Set("prettyPrint", "false")
18156 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18157 urls += "?" + c.urlParams_.Encode()
18158 req, err := http.NewRequest("GET", urls, body)
18159 if err != nil {
18160 return nil, err
18161 }
18162 req.Header = reqHeaders
18163 googleapi.Expand(req.URL, map[string]string{
18164 "name": c.name,
18165 })
18166 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18167 }
18168
18169
18170
18171
18172
18173
18174
18175 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
18176 gensupport.SetOptions(c.urlParams_, opts...)
18177 res, err := c.doRequest("json")
18178 if res != nil && res.StatusCode == http.StatusNotModified {
18179 if res.Body != nil {
18180 res.Body.Close()
18181 }
18182 return nil, gensupport.WrapError(&googleapi.Error{
18183 Code: res.StatusCode,
18184 Header: res.Header,
18185 })
18186 }
18187 if err != nil {
18188 return nil, err
18189 }
18190 defer googleapi.CloseBody(res)
18191 if err := googleapi.CheckResponse(res); err != nil {
18192 return nil, gensupport.WrapError(err)
18193 }
18194 ret := &GoogleCloudDiscoveryengineV1Conversation{
18195 ServerResponse: googleapi.ServerResponse{
18196 Header: res.Header,
18197 HTTPStatusCode: res.StatusCode,
18198 },
18199 }
18200 target := &ret
18201 if err := gensupport.DecodeResponse(target, res); err != nil {
18202 return nil, err
18203 }
18204 return ret, nil
18205 }
18206
18207 type ProjectsLocationsCollectionsEnginesConversationsListCall struct {
18208 s *Service
18209 parent string
18210 urlParams_ gensupport.URLParams
18211 ifNoneMatch_ string
18212 ctx_ context.Context
18213 header_ http.Header
18214 }
18215
18216
18217
18218
18219
18220
18221 func (r *ProjectsLocationsCollectionsEnginesConversationsService) List(parent string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
18222 c := &ProjectsLocationsCollectionsEnginesConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18223 c.parent = parent
18224 return c
18225 }
18226
18227
18228
18229
18230 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
18231 c.urlParams_.Set("filter", filter)
18232 return c
18233 }
18234
18235
18236
18237
18238
18239 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
18240 c.urlParams_.Set("orderBy", orderBy)
18241 return c
18242 }
18243
18244
18245
18246 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesConversationsListCall {
18247 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18248 return c
18249 }
18250
18251
18252
18253
18254 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
18255 c.urlParams_.Set("pageToken", pageToken)
18256 return c
18257 }
18258
18259
18260
18261
18262 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsListCall {
18263 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18264 return c
18265 }
18266
18267
18268
18269
18270 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
18271 c.ifNoneMatch_ = entityTag
18272 return c
18273 }
18274
18275
18276 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsListCall {
18277 c.ctx_ = ctx
18278 return c
18279 }
18280
18281
18282
18283 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Header() http.Header {
18284 if c.header_ == nil {
18285 c.header_ = make(http.Header)
18286 }
18287 return c.header_
18288 }
18289
18290 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) doRequest(alt string) (*http.Response, error) {
18291 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18292 if c.ifNoneMatch_ != "" {
18293 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18294 }
18295 var body io.Reader = nil
18296 c.urlParams_.Set("alt", alt)
18297 c.urlParams_.Set("prettyPrint", "false")
18298 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
18299 urls += "?" + c.urlParams_.Encode()
18300 req, err := http.NewRequest("GET", urls, body)
18301 if err != nil {
18302 return nil, err
18303 }
18304 req.Header = reqHeaders
18305 googleapi.Expand(req.URL, map[string]string{
18306 "parent": c.parent,
18307 })
18308 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18309 }
18310
18311
18312
18313
18314
18315
18316
18317 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListConversationsResponse, error) {
18318 gensupport.SetOptions(c.urlParams_, opts...)
18319 res, err := c.doRequest("json")
18320 if res != nil && res.StatusCode == http.StatusNotModified {
18321 if res.Body != nil {
18322 res.Body.Close()
18323 }
18324 return nil, gensupport.WrapError(&googleapi.Error{
18325 Code: res.StatusCode,
18326 Header: res.Header,
18327 })
18328 }
18329 if err != nil {
18330 return nil, err
18331 }
18332 defer googleapi.CloseBody(res)
18333 if err := googleapi.CheckResponse(res); err != nil {
18334 return nil, gensupport.WrapError(err)
18335 }
18336 ret := &GoogleCloudDiscoveryengineV1ListConversationsResponse{
18337 ServerResponse: googleapi.ServerResponse{
18338 Header: res.Header,
18339 HTTPStatusCode: res.StatusCode,
18340 },
18341 }
18342 target := &ret
18343 if err := gensupport.DecodeResponse(target, res); err != nil {
18344 return nil, err
18345 }
18346 return ret, nil
18347 }
18348
18349
18350
18351
18352 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListConversationsResponse) error) error {
18353 c.ctx_ = ctx
18354 defer c.PageToken(c.urlParams_.Get("pageToken"))
18355 for {
18356 x, err := c.Do()
18357 if err != nil {
18358 return err
18359 }
18360 if err := f(x); err != nil {
18361 return err
18362 }
18363 if x.NextPageToken == "" {
18364 return nil
18365 }
18366 c.PageToken(x.NextPageToken)
18367 }
18368 }
18369
18370 type ProjectsLocationsCollectionsEnginesConversationsPatchCall struct {
18371 s *Service
18372 name string
18373 googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation
18374 urlParams_ gensupport.URLParams
18375 ctx_ context.Context
18376 header_ http.Header
18377 }
18378
18379
18380
18381
18382
18383
18384
18385
18386
18387 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Patch(name string, googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
18388 c := &ProjectsLocationsCollectionsEnginesConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18389 c.name = name
18390 c.googleclouddiscoveryenginev1conversation = googleclouddiscoveryenginev1conversation
18391 return c
18392 }
18393
18394
18395
18396
18397 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
18398 c.urlParams_.Set("updateMask", updateMask)
18399 return c
18400 }
18401
18402
18403
18404
18405 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
18406 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18407 return c
18408 }
18409
18410
18411 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
18412 c.ctx_ = ctx
18413 return c
18414 }
18415
18416
18417
18418 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Header() http.Header {
18419 if c.header_ == nil {
18420 c.header_ = make(http.Header)
18421 }
18422 return c.header_
18423 }
18424
18425 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
18426 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18427 var body io.Reader = nil
18428 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1conversation)
18429 if err != nil {
18430 return nil, err
18431 }
18432 c.urlParams_.Set("alt", alt)
18433 c.urlParams_.Set("prettyPrint", "false")
18434 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18435 urls += "?" + c.urlParams_.Encode()
18436 req, err := http.NewRequest("PATCH", urls, body)
18437 if err != nil {
18438 return nil, err
18439 }
18440 req.Header = reqHeaders
18441 googleapi.Expand(req.URL, map[string]string{
18442 "name": c.name,
18443 })
18444 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18445 }
18446
18447
18448
18449
18450
18451
18452
18453 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
18454 gensupport.SetOptions(c.urlParams_, opts...)
18455 res, err := c.doRequest("json")
18456 if res != nil && res.StatusCode == http.StatusNotModified {
18457 if res.Body != nil {
18458 res.Body.Close()
18459 }
18460 return nil, gensupport.WrapError(&googleapi.Error{
18461 Code: res.StatusCode,
18462 Header: res.Header,
18463 })
18464 }
18465 if err != nil {
18466 return nil, err
18467 }
18468 defer googleapi.CloseBody(res)
18469 if err := googleapi.CheckResponse(res); err != nil {
18470 return nil, gensupport.WrapError(err)
18471 }
18472 ret := &GoogleCloudDiscoveryengineV1Conversation{
18473 ServerResponse: googleapi.ServerResponse{
18474 Header: res.Header,
18475 HTTPStatusCode: res.StatusCode,
18476 },
18477 }
18478 target := &ret
18479 if err := gensupport.DecodeResponse(target, res); err != nil {
18480 return nil, err
18481 }
18482 return ret, nil
18483 }
18484
18485 type ProjectsLocationsCollectionsEnginesOperationsGetCall struct {
18486 s *Service
18487 name string
18488 urlParams_ gensupport.URLParams
18489 ifNoneMatch_ string
18490 ctx_ context.Context
18491 header_ http.Header
18492 }
18493
18494
18495
18496
18497
18498
18499 func (r *ProjectsLocationsCollectionsEnginesOperationsService) Get(name string) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
18500 c := &ProjectsLocationsCollectionsEnginesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18501 c.name = name
18502 return c
18503 }
18504
18505
18506
18507
18508 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
18509 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18510 return c
18511 }
18512
18513
18514
18515
18516 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
18517 c.ifNoneMatch_ = entityTag
18518 return c
18519 }
18520
18521
18522 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
18523 c.ctx_ = ctx
18524 return c
18525 }
18526
18527
18528
18529 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Header() http.Header {
18530 if c.header_ == nil {
18531 c.header_ = make(http.Header)
18532 }
18533 return c.header_
18534 }
18535
18536 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
18537 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18538 if c.ifNoneMatch_ != "" {
18539 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18540 }
18541 var body io.Reader = nil
18542 c.urlParams_.Set("alt", alt)
18543 c.urlParams_.Set("prettyPrint", "false")
18544 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
18545 urls += "?" + c.urlParams_.Encode()
18546 req, err := http.NewRequest("GET", urls, body)
18547 if err != nil {
18548 return nil, err
18549 }
18550 req.Header = reqHeaders
18551 googleapi.Expand(req.URL, map[string]string{
18552 "name": c.name,
18553 })
18554 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18555 }
18556
18557
18558
18559
18560
18561
18562
18563 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
18564 gensupport.SetOptions(c.urlParams_, opts...)
18565 res, err := c.doRequest("json")
18566 if res != nil && res.StatusCode == http.StatusNotModified {
18567 if res.Body != nil {
18568 res.Body.Close()
18569 }
18570 return nil, gensupport.WrapError(&googleapi.Error{
18571 Code: res.StatusCode,
18572 Header: res.Header,
18573 })
18574 }
18575 if err != nil {
18576 return nil, err
18577 }
18578 defer googleapi.CloseBody(res)
18579 if err := googleapi.CheckResponse(res); err != nil {
18580 return nil, gensupport.WrapError(err)
18581 }
18582 ret := &GoogleLongrunningOperation{
18583 ServerResponse: googleapi.ServerResponse{
18584 Header: res.Header,
18585 HTTPStatusCode: res.StatusCode,
18586 },
18587 }
18588 target := &ret
18589 if err := gensupport.DecodeResponse(target, res); err != nil {
18590 return nil, err
18591 }
18592 return ret, nil
18593 }
18594
18595 type ProjectsLocationsCollectionsEnginesOperationsListCall struct {
18596 s *Service
18597 name string
18598 urlParams_ gensupport.URLParams
18599 ifNoneMatch_ string
18600 ctx_ context.Context
18601 header_ http.Header
18602 }
18603
18604
18605
18606
18607
18608 func (r *ProjectsLocationsCollectionsEnginesOperationsService) List(name string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
18609 c := &ProjectsLocationsCollectionsEnginesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18610 c.name = name
18611 return c
18612 }
18613
18614
18615 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
18616 c.urlParams_.Set("filter", filter)
18617 return c
18618 }
18619
18620
18621
18622 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesOperationsListCall {
18623 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18624 return c
18625 }
18626
18627
18628
18629 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
18630 c.urlParams_.Set("pageToken", pageToken)
18631 return c
18632 }
18633
18634
18635
18636
18637 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsListCall {
18638 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18639 return c
18640 }
18641
18642
18643
18644
18645 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
18646 c.ifNoneMatch_ = entityTag
18647 return c
18648 }
18649
18650
18651 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsListCall {
18652 c.ctx_ = ctx
18653 return c
18654 }
18655
18656
18657
18658 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Header() http.Header {
18659 if c.header_ == nil {
18660 c.header_ = make(http.Header)
18661 }
18662 return c.header_
18663 }
18664
18665 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) doRequest(alt string) (*http.Response, error) {
18666 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18667 if c.ifNoneMatch_ != "" {
18668 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18669 }
18670 var body io.Reader = nil
18671 c.urlParams_.Set("alt", alt)
18672 c.urlParams_.Set("prettyPrint", "false")
18673 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
18674 urls += "?" + c.urlParams_.Encode()
18675 req, err := http.NewRequest("GET", urls, body)
18676 if err != nil {
18677 return nil, err
18678 }
18679 req.Header = reqHeaders
18680 googleapi.Expand(req.URL, map[string]string{
18681 "name": c.name,
18682 })
18683 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18684 }
18685
18686
18687
18688
18689
18690
18691
18692 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
18693 gensupport.SetOptions(c.urlParams_, opts...)
18694 res, err := c.doRequest("json")
18695 if res != nil && res.StatusCode == http.StatusNotModified {
18696 if res.Body != nil {
18697 res.Body.Close()
18698 }
18699 return nil, gensupport.WrapError(&googleapi.Error{
18700 Code: res.StatusCode,
18701 Header: res.Header,
18702 })
18703 }
18704 if err != nil {
18705 return nil, err
18706 }
18707 defer googleapi.CloseBody(res)
18708 if err := googleapi.CheckResponse(res); err != nil {
18709 return nil, gensupport.WrapError(err)
18710 }
18711 ret := &GoogleLongrunningListOperationsResponse{
18712 ServerResponse: googleapi.ServerResponse{
18713 Header: res.Header,
18714 HTTPStatusCode: res.StatusCode,
18715 },
18716 }
18717 target := &ret
18718 if err := gensupport.DecodeResponse(target, res); err != nil {
18719 return nil, err
18720 }
18721 return ret, nil
18722 }
18723
18724
18725
18726
18727 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
18728 c.ctx_ = ctx
18729 defer c.PageToken(c.urlParams_.Get("pageToken"))
18730 for {
18731 x, err := c.Do()
18732 if err != nil {
18733 return err
18734 }
18735 if err := f(x); err != nil {
18736 return err
18737 }
18738 if x.NextPageToken == "" {
18739 return nil
18740 }
18741 c.PageToken(x.NextPageToken)
18742 }
18743 }
18744
18745 type ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall struct {
18746 s *Service
18747 servingConfig string
18748 googleclouddiscoveryenginev1recommendrequest *GoogleCloudDiscoveryengineV1RecommendRequest
18749 urlParams_ gensupport.URLParams
18750 ctx_ context.Context
18751 header_ http.Header
18752 }
18753
18754
18755
18756
18757
18758
18759
18760
18761
18762
18763
18764
18765 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1recommendrequest *GoogleCloudDiscoveryengineV1RecommendRequest) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
18766 c := &ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18767 c.servingConfig = servingConfig
18768 c.googleclouddiscoveryenginev1recommendrequest = googleclouddiscoveryenginev1recommendrequest
18769 return c
18770 }
18771
18772
18773
18774
18775 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
18776 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18777 return c
18778 }
18779
18780
18781 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
18782 c.ctx_ = ctx
18783 return c
18784 }
18785
18786
18787
18788 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Header() http.Header {
18789 if c.header_ == nil {
18790 c.header_ = make(http.Header)
18791 }
18792 return c.header_
18793 }
18794
18795 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
18796 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18797 var body io.Reader = nil
18798 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1recommendrequest)
18799 if err != nil {
18800 return nil, err
18801 }
18802 c.urlParams_.Set("alt", alt)
18803 c.urlParams_.Set("prettyPrint", "false")
18804 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+servingConfig}:recommend")
18805 urls += "?" + c.urlParams_.Encode()
18806 req, err := http.NewRequest("POST", urls, body)
18807 if err != nil {
18808 return nil, err
18809 }
18810 req.Header = reqHeaders
18811 googleapi.Expand(req.URL, map[string]string{
18812 "servingConfig": c.servingConfig,
18813 })
18814 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18815 }
18816
18817
18818
18819
18820
18821
18822
18823 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1RecommendResponse, error) {
18824 gensupport.SetOptions(c.urlParams_, opts...)
18825 res, err := c.doRequest("json")
18826 if res != nil && res.StatusCode == http.StatusNotModified {
18827 if res.Body != nil {
18828 res.Body.Close()
18829 }
18830 return nil, gensupport.WrapError(&googleapi.Error{
18831 Code: res.StatusCode,
18832 Header: res.Header,
18833 })
18834 }
18835 if err != nil {
18836 return nil, err
18837 }
18838 defer googleapi.CloseBody(res)
18839 if err := googleapi.CheckResponse(res); err != nil {
18840 return nil, gensupport.WrapError(err)
18841 }
18842 ret := &GoogleCloudDiscoveryengineV1RecommendResponse{
18843 ServerResponse: googleapi.ServerResponse{
18844 Header: res.Header,
18845 HTTPStatusCode: res.StatusCode,
18846 },
18847 }
18848 target := &ret
18849 if err := gensupport.DecodeResponse(target, res); err != nil {
18850 return nil, err
18851 }
18852 return ret, nil
18853 }
18854
18855 type ProjectsLocationsCollectionsEnginesServingConfigsSearchCall struct {
18856 s *Service
18857 servingConfig string
18858 googleclouddiscoveryenginev1searchrequest *GoogleCloudDiscoveryengineV1SearchRequest
18859 urlParams_ gensupport.URLParams
18860 ctx_ context.Context
18861 header_ http.Header
18862 }
18863
18864
18865
18866
18867
18868
18869
18870
18871
18872
18873 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1searchrequest *GoogleCloudDiscoveryengineV1SearchRequest) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
18874 c := &ProjectsLocationsCollectionsEnginesServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18875 c.servingConfig = servingConfig
18876 c.googleclouddiscoveryenginev1searchrequest = googleclouddiscoveryenginev1searchrequest
18877 return c
18878 }
18879
18880
18881
18882
18883 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
18884 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18885 return c
18886 }
18887
18888
18889 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
18890 c.ctx_ = ctx
18891 return c
18892 }
18893
18894
18895
18896 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Header() http.Header {
18897 if c.header_ == nil {
18898 c.header_ = make(http.Header)
18899 }
18900 return c.header_
18901 }
18902
18903 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
18904 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18905 var body io.Reader = nil
18906 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1searchrequest)
18907 if err != nil {
18908 return nil, err
18909 }
18910 c.urlParams_.Set("alt", alt)
18911 c.urlParams_.Set("prettyPrint", "false")
18912 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+servingConfig}:search")
18913 urls += "?" + c.urlParams_.Encode()
18914 req, err := http.NewRequest("POST", urls, body)
18915 if err != nil {
18916 return nil, err
18917 }
18918 req.Header = reqHeaders
18919 googleapi.Expand(req.URL, map[string]string{
18920 "servingConfig": c.servingConfig,
18921 })
18922 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18923 }
18924
18925
18926
18927
18928
18929
18930
18931 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1SearchResponse, error) {
18932 gensupport.SetOptions(c.urlParams_, opts...)
18933 res, err := c.doRequest("json")
18934 if res != nil && res.StatusCode == http.StatusNotModified {
18935 if res.Body != nil {
18936 res.Body.Close()
18937 }
18938 return nil, gensupport.WrapError(&googleapi.Error{
18939 Code: res.StatusCode,
18940 Header: res.Header,
18941 })
18942 }
18943 if err != nil {
18944 return nil, err
18945 }
18946 defer googleapi.CloseBody(res)
18947 if err := googleapi.CheckResponse(res); err != nil {
18948 return nil, gensupport.WrapError(err)
18949 }
18950 ret := &GoogleCloudDiscoveryengineV1SearchResponse{
18951 ServerResponse: googleapi.ServerResponse{
18952 Header: res.Header,
18953 HTTPStatusCode: res.StatusCode,
18954 },
18955 }
18956 target := &ret
18957 if err := gensupport.DecodeResponse(target, res); err != nil {
18958 return nil, err
18959 }
18960 return ret, nil
18961 }
18962
18963
18964
18965
18966 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1SearchResponse) error) error {
18967 c.ctx_ = ctx
18968 defer func(pt string) { c.googleclouddiscoveryenginev1searchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1searchrequest.PageToken)
18969 for {
18970 x, err := c.Do()
18971 if err != nil {
18972 return err
18973 }
18974 if err := f(x); err != nil {
18975 return err
18976 }
18977 if x.NextPageToken == "" {
18978 return nil
18979 }
18980 c.googleclouddiscoveryenginev1searchrequest.PageToken = x.NextPageToken
18981 }
18982 }
18983
18984 type ProjectsLocationsCollectionsOperationsGetCall struct {
18985 s *Service
18986 name string
18987 urlParams_ gensupport.URLParams
18988 ifNoneMatch_ string
18989 ctx_ context.Context
18990 header_ http.Header
18991 }
18992
18993
18994
18995
18996
18997
18998 func (r *ProjectsLocationsCollectionsOperationsService) Get(name string) *ProjectsLocationsCollectionsOperationsGetCall {
18999 c := &ProjectsLocationsCollectionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19000 c.name = name
19001 return c
19002 }
19003
19004
19005
19006
19007 func (c *ProjectsLocationsCollectionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsOperationsGetCall {
19008 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19009 return c
19010 }
19011
19012
19013
19014
19015 func (c *ProjectsLocationsCollectionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsOperationsGetCall {
19016 c.ifNoneMatch_ = entityTag
19017 return c
19018 }
19019
19020
19021 func (c *ProjectsLocationsCollectionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsOperationsGetCall {
19022 c.ctx_ = ctx
19023 return c
19024 }
19025
19026
19027
19028 func (c *ProjectsLocationsCollectionsOperationsGetCall) Header() http.Header {
19029 if c.header_ == nil {
19030 c.header_ = make(http.Header)
19031 }
19032 return c.header_
19033 }
19034
19035 func (c *ProjectsLocationsCollectionsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
19036 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19037 if c.ifNoneMatch_ != "" {
19038 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19039 }
19040 var body io.Reader = nil
19041 c.urlParams_.Set("alt", alt)
19042 c.urlParams_.Set("prettyPrint", "false")
19043 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19044 urls += "?" + c.urlParams_.Encode()
19045 req, err := http.NewRequest("GET", urls, body)
19046 if err != nil {
19047 return nil, err
19048 }
19049 req.Header = reqHeaders
19050 googleapi.Expand(req.URL, map[string]string{
19051 "name": c.name,
19052 })
19053 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19054 }
19055
19056
19057
19058
19059
19060
19061
19062 func (c *ProjectsLocationsCollectionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19063 gensupport.SetOptions(c.urlParams_, opts...)
19064 res, err := c.doRequest("json")
19065 if res != nil && res.StatusCode == http.StatusNotModified {
19066 if res.Body != nil {
19067 res.Body.Close()
19068 }
19069 return nil, gensupport.WrapError(&googleapi.Error{
19070 Code: res.StatusCode,
19071 Header: res.Header,
19072 })
19073 }
19074 if err != nil {
19075 return nil, err
19076 }
19077 defer googleapi.CloseBody(res)
19078 if err := googleapi.CheckResponse(res); err != nil {
19079 return nil, gensupport.WrapError(err)
19080 }
19081 ret := &GoogleLongrunningOperation{
19082 ServerResponse: googleapi.ServerResponse{
19083 Header: res.Header,
19084 HTTPStatusCode: res.StatusCode,
19085 },
19086 }
19087 target := &ret
19088 if err := gensupport.DecodeResponse(target, res); err != nil {
19089 return nil, err
19090 }
19091 return ret, nil
19092 }
19093
19094 type ProjectsLocationsCollectionsOperationsListCall struct {
19095 s *Service
19096 name string
19097 urlParams_ gensupport.URLParams
19098 ifNoneMatch_ string
19099 ctx_ context.Context
19100 header_ http.Header
19101 }
19102
19103
19104
19105
19106
19107 func (r *ProjectsLocationsCollectionsOperationsService) List(name string) *ProjectsLocationsCollectionsOperationsListCall {
19108 c := &ProjectsLocationsCollectionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19109 c.name = name
19110 return c
19111 }
19112
19113
19114 func (c *ProjectsLocationsCollectionsOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsOperationsListCall {
19115 c.urlParams_.Set("filter", filter)
19116 return c
19117 }
19118
19119
19120
19121 func (c *ProjectsLocationsCollectionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsOperationsListCall {
19122 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19123 return c
19124 }
19125
19126
19127
19128 func (c *ProjectsLocationsCollectionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsOperationsListCall {
19129 c.urlParams_.Set("pageToken", pageToken)
19130 return c
19131 }
19132
19133
19134
19135
19136 func (c *ProjectsLocationsCollectionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsOperationsListCall {
19137 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19138 return c
19139 }
19140
19141
19142
19143
19144 func (c *ProjectsLocationsCollectionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsOperationsListCall {
19145 c.ifNoneMatch_ = entityTag
19146 return c
19147 }
19148
19149
19150 func (c *ProjectsLocationsCollectionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsOperationsListCall {
19151 c.ctx_ = ctx
19152 return c
19153 }
19154
19155
19156
19157 func (c *ProjectsLocationsCollectionsOperationsListCall) Header() http.Header {
19158 if c.header_ == nil {
19159 c.header_ = make(http.Header)
19160 }
19161 return c.header_
19162 }
19163
19164 func (c *ProjectsLocationsCollectionsOperationsListCall) doRequest(alt string) (*http.Response, error) {
19165 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19166 if c.ifNoneMatch_ != "" {
19167 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19168 }
19169 var body io.Reader = nil
19170 c.urlParams_.Set("alt", alt)
19171 c.urlParams_.Set("prettyPrint", "false")
19172 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
19173 urls += "?" + c.urlParams_.Encode()
19174 req, err := http.NewRequest("GET", urls, body)
19175 if err != nil {
19176 return nil, err
19177 }
19178 req.Header = reqHeaders
19179 googleapi.Expand(req.URL, map[string]string{
19180 "name": c.name,
19181 })
19182 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19183 }
19184
19185
19186
19187
19188
19189
19190
19191 func (c *ProjectsLocationsCollectionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
19192 gensupport.SetOptions(c.urlParams_, opts...)
19193 res, err := c.doRequest("json")
19194 if res != nil && res.StatusCode == http.StatusNotModified {
19195 if res.Body != nil {
19196 res.Body.Close()
19197 }
19198 return nil, gensupport.WrapError(&googleapi.Error{
19199 Code: res.StatusCode,
19200 Header: res.Header,
19201 })
19202 }
19203 if err != nil {
19204 return nil, err
19205 }
19206 defer googleapi.CloseBody(res)
19207 if err := googleapi.CheckResponse(res); err != nil {
19208 return nil, gensupport.WrapError(err)
19209 }
19210 ret := &GoogleLongrunningListOperationsResponse{
19211 ServerResponse: googleapi.ServerResponse{
19212 Header: res.Header,
19213 HTTPStatusCode: res.StatusCode,
19214 },
19215 }
19216 target := &ret
19217 if err := gensupport.DecodeResponse(target, res); err != nil {
19218 return nil, err
19219 }
19220 return ret, nil
19221 }
19222
19223
19224
19225
19226 func (c *ProjectsLocationsCollectionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
19227 c.ctx_ = ctx
19228 defer c.PageToken(c.urlParams_.Get("pageToken"))
19229 for {
19230 x, err := c.Do()
19231 if err != nil {
19232 return err
19233 }
19234 if err := f(x); err != nil {
19235 return err
19236 }
19237 if x.NextPageToken == "" {
19238 return nil
19239 }
19240 c.PageToken(x.NextPageToken)
19241 }
19242 }
19243
19244 type ProjectsLocationsDataStoresCompleteQueryCall struct {
19245 s *Service
19246 dataStore string
19247 urlParams_ gensupport.URLParams
19248 ifNoneMatch_ string
19249 ctx_ context.Context
19250 header_ http.Header
19251 }
19252
19253
19254
19255
19256
19257
19258
19259 func (r *ProjectsLocationsDataStoresService) CompleteQuery(dataStore string) *ProjectsLocationsDataStoresCompleteQueryCall {
19260 c := &ProjectsLocationsDataStoresCompleteQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19261 c.dataStore = dataStore
19262 return c
19263 }
19264
19265
19266
19267
19268
19269
19270 func (c *ProjectsLocationsDataStoresCompleteQueryCall) IncludeTailSuggestions(includeTailSuggestions bool) *ProjectsLocationsDataStoresCompleteQueryCall {
19271 c.urlParams_.Set("includeTailSuggestions", fmt.Sprint(includeTailSuggestions))
19272 return c
19273 }
19274
19275
19276
19277 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Query(query string) *ProjectsLocationsDataStoresCompleteQueryCall {
19278 c.urlParams_.Set("query", query)
19279 return c
19280 }
19281
19282
19283
19284
19285
19286
19287
19288
19289
19290
19291
19292
19293
19294 func (c *ProjectsLocationsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsDataStoresCompleteQueryCall {
19295 c.urlParams_.Set("queryModel", queryModel)
19296 return c
19297 }
19298
19299
19300
19301
19302
19303
19304
19305
19306
19307
19308 func (c *ProjectsLocationsDataStoresCompleteQueryCall) UserPseudoId(userPseudoId string) *ProjectsLocationsDataStoresCompleteQueryCall {
19309 c.urlParams_.Set("userPseudoId", userPseudoId)
19310 return c
19311 }
19312
19313
19314
19315
19316 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresCompleteQueryCall {
19317 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19318 return c
19319 }
19320
19321
19322
19323
19324 func (c *ProjectsLocationsDataStoresCompleteQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresCompleteQueryCall {
19325 c.ifNoneMatch_ = entityTag
19326 return c
19327 }
19328
19329
19330 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Context(ctx context.Context) *ProjectsLocationsDataStoresCompleteQueryCall {
19331 c.ctx_ = ctx
19332 return c
19333 }
19334
19335
19336
19337 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Header() http.Header {
19338 if c.header_ == nil {
19339 c.header_ = make(http.Header)
19340 }
19341 return c.header_
19342 }
19343
19344 func (c *ProjectsLocationsDataStoresCompleteQueryCall) doRequest(alt string) (*http.Response, error) {
19345 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19346 if c.ifNoneMatch_ != "" {
19347 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19348 }
19349 var body io.Reader = nil
19350 c.urlParams_.Set("alt", alt)
19351 c.urlParams_.Set("prettyPrint", "false")
19352 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+dataStore}:completeQuery")
19353 urls += "?" + c.urlParams_.Encode()
19354 req, err := http.NewRequest("GET", urls, body)
19355 if err != nil {
19356 return nil, err
19357 }
19358 req.Header = reqHeaders
19359 googleapi.Expand(req.URL, map[string]string{
19360 "dataStore": c.dataStore,
19361 })
19362 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19363 }
19364
19365
19366
19367
19368
19369
19370
19371 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1CompleteQueryResponse, error) {
19372 gensupport.SetOptions(c.urlParams_, opts...)
19373 res, err := c.doRequest("json")
19374 if res != nil && res.StatusCode == http.StatusNotModified {
19375 if res.Body != nil {
19376 res.Body.Close()
19377 }
19378 return nil, gensupport.WrapError(&googleapi.Error{
19379 Code: res.StatusCode,
19380 Header: res.Header,
19381 })
19382 }
19383 if err != nil {
19384 return nil, err
19385 }
19386 defer googleapi.CloseBody(res)
19387 if err := googleapi.CheckResponse(res); err != nil {
19388 return nil, gensupport.WrapError(err)
19389 }
19390 ret := &GoogleCloudDiscoveryengineV1CompleteQueryResponse{
19391 ServerResponse: googleapi.ServerResponse{
19392 Header: res.Header,
19393 HTTPStatusCode: res.StatusCode,
19394 },
19395 }
19396 target := &ret
19397 if err := gensupport.DecodeResponse(target, res); err != nil {
19398 return nil, err
19399 }
19400 return ret, nil
19401 }
19402
19403 type ProjectsLocationsDataStoresCreateCall struct {
19404 s *Service
19405 parent string
19406 googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore
19407 urlParams_ gensupport.URLParams
19408 ctx_ context.Context
19409 header_ http.Header
19410 }
19411
19412
19413
19414
19415
19416
19417
19418 func (r *ProjectsLocationsDataStoresService) Create(parent string, googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore) *ProjectsLocationsDataStoresCreateCall {
19419 c := &ProjectsLocationsDataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19420 c.parent = parent
19421 c.googleclouddiscoveryenginev1datastore = googleclouddiscoveryenginev1datastore
19422 return c
19423 }
19424
19425
19426
19427
19428
19429
19430 func (c *ProjectsLocationsDataStoresCreateCall) CreateAdvancedSiteSearch(createAdvancedSiteSearch bool) *ProjectsLocationsDataStoresCreateCall {
19431 c.urlParams_.Set("createAdvancedSiteSearch", fmt.Sprint(createAdvancedSiteSearch))
19432 return c
19433 }
19434
19435
19436
19437
19438
19439
19440 func (c *ProjectsLocationsDataStoresCreateCall) DataStoreId(dataStoreId string) *ProjectsLocationsDataStoresCreateCall {
19441 c.urlParams_.Set("dataStoreId", dataStoreId)
19442 return c
19443 }
19444
19445
19446
19447
19448 func (c *ProjectsLocationsDataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresCreateCall {
19449 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19450 return c
19451 }
19452
19453
19454 func (c *ProjectsLocationsDataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresCreateCall {
19455 c.ctx_ = ctx
19456 return c
19457 }
19458
19459
19460
19461 func (c *ProjectsLocationsDataStoresCreateCall) Header() http.Header {
19462 if c.header_ == nil {
19463 c.header_ = make(http.Header)
19464 }
19465 return c.header_
19466 }
19467
19468 func (c *ProjectsLocationsDataStoresCreateCall) doRequest(alt string) (*http.Response, error) {
19469 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19470 var body io.Reader = nil
19471 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1datastore)
19472 if err != nil {
19473 return nil, err
19474 }
19475 c.urlParams_.Set("alt", alt)
19476 c.urlParams_.Set("prettyPrint", "false")
19477 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataStores")
19478 urls += "?" + c.urlParams_.Encode()
19479 req, err := http.NewRequest("POST", urls, body)
19480 if err != nil {
19481 return nil, err
19482 }
19483 req.Header = reqHeaders
19484 googleapi.Expand(req.URL, map[string]string{
19485 "parent": c.parent,
19486 })
19487 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19488 }
19489
19490
19491
19492
19493
19494
19495
19496 func (c *ProjectsLocationsDataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19497 gensupport.SetOptions(c.urlParams_, opts...)
19498 res, err := c.doRequest("json")
19499 if res != nil && res.StatusCode == http.StatusNotModified {
19500 if res.Body != nil {
19501 res.Body.Close()
19502 }
19503 return nil, gensupport.WrapError(&googleapi.Error{
19504 Code: res.StatusCode,
19505 Header: res.Header,
19506 })
19507 }
19508 if err != nil {
19509 return nil, err
19510 }
19511 defer googleapi.CloseBody(res)
19512 if err := googleapi.CheckResponse(res); err != nil {
19513 return nil, gensupport.WrapError(err)
19514 }
19515 ret := &GoogleLongrunningOperation{
19516 ServerResponse: googleapi.ServerResponse{
19517 Header: res.Header,
19518 HTTPStatusCode: res.StatusCode,
19519 },
19520 }
19521 target := &ret
19522 if err := gensupport.DecodeResponse(target, res); err != nil {
19523 return nil, err
19524 }
19525 return ret, nil
19526 }
19527
19528 type ProjectsLocationsDataStoresDeleteCall struct {
19529 s *Service
19530 name string
19531 urlParams_ gensupport.URLParams
19532 ctx_ context.Context
19533 header_ http.Header
19534 }
19535
19536
19537
19538
19539
19540
19541
19542
19543
19544 func (r *ProjectsLocationsDataStoresService) Delete(name string) *ProjectsLocationsDataStoresDeleteCall {
19545 c := &ProjectsLocationsDataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19546 c.name = name
19547 return c
19548 }
19549
19550
19551
19552
19553 func (c *ProjectsLocationsDataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresDeleteCall {
19554 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19555 return c
19556 }
19557
19558
19559 func (c *ProjectsLocationsDataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresDeleteCall {
19560 c.ctx_ = ctx
19561 return c
19562 }
19563
19564
19565
19566 func (c *ProjectsLocationsDataStoresDeleteCall) Header() http.Header {
19567 if c.header_ == nil {
19568 c.header_ = make(http.Header)
19569 }
19570 return c.header_
19571 }
19572
19573 func (c *ProjectsLocationsDataStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
19574 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19575 var body io.Reader = nil
19576 c.urlParams_.Set("alt", alt)
19577 c.urlParams_.Set("prettyPrint", "false")
19578 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19579 urls += "?" + c.urlParams_.Encode()
19580 req, err := http.NewRequest("DELETE", urls, body)
19581 if err != nil {
19582 return nil, err
19583 }
19584 req.Header = reqHeaders
19585 googleapi.Expand(req.URL, map[string]string{
19586 "name": c.name,
19587 })
19588 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19589 }
19590
19591
19592
19593
19594
19595
19596
19597 func (c *ProjectsLocationsDataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19598 gensupport.SetOptions(c.urlParams_, opts...)
19599 res, err := c.doRequest("json")
19600 if res != nil && res.StatusCode == http.StatusNotModified {
19601 if res.Body != nil {
19602 res.Body.Close()
19603 }
19604 return nil, gensupport.WrapError(&googleapi.Error{
19605 Code: res.StatusCode,
19606 Header: res.Header,
19607 })
19608 }
19609 if err != nil {
19610 return nil, err
19611 }
19612 defer googleapi.CloseBody(res)
19613 if err := googleapi.CheckResponse(res); err != nil {
19614 return nil, gensupport.WrapError(err)
19615 }
19616 ret := &GoogleLongrunningOperation{
19617 ServerResponse: googleapi.ServerResponse{
19618 Header: res.Header,
19619 HTTPStatusCode: res.StatusCode,
19620 },
19621 }
19622 target := &ret
19623 if err := gensupport.DecodeResponse(target, res); err != nil {
19624 return nil, err
19625 }
19626 return ret, nil
19627 }
19628
19629 type ProjectsLocationsDataStoresGetCall struct {
19630 s *Service
19631 name string
19632 urlParams_ gensupport.URLParams
19633 ifNoneMatch_ string
19634 ctx_ context.Context
19635 header_ http.Header
19636 }
19637
19638
19639
19640
19641
19642
19643
19644
19645
19646 func (r *ProjectsLocationsDataStoresService) Get(name string) *ProjectsLocationsDataStoresGetCall {
19647 c := &ProjectsLocationsDataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19648 c.name = name
19649 return c
19650 }
19651
19652
19653
19654
19655 func (c *ProjectsLocationsDataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetCall {
19656 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19657 return c
19658 }
19659
19660
19661
19662
19663 func (c *ProjectsLocationsDataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetCall {
19664 c.ifNoneMatch_ = entityTag
19665 return c
19666 }
19667
19668
19669 func (c *ProjectsLocationsDataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetCall {
19670 c.ctx_ = ctx
19671 return c
19672 }
19673
19674
19675
19676 func (c *ProjectsLocationsDataStoresGetCall) Header() http.Header {
19677 if c.header_ == nil {
19678 c.header_ = make(http.Header)
19679 }
19680 return c.header_
19681 }
19682
19683 func (c *ProjectsLocationsDataStoresGetCall) doRequest(alt string) (*http.Response, error) {
19684 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19685 if c.ifNoneMatch_ != "" {
19686 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19687 }
19688 var body io.Reader = nil
19689 c.urlParams_.Set("alt", alt)
19690 c.urlParams_.Set("prettyPrint", "false")
19691 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19692 urls += "?" + c.urlParams_.Encode()
19693 req, err := http.NewRequest("GET", urls, body)
19694 if err != nil {
19695 return nil, err
19696 }
19697 req.Header = reqHeaders
19698 googleapi.Expand(req.URL, map[string]string{
19699 "name": c.name,
19700 })
19701 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19702 }
19703
19704
19705
19706
19707
19708
19709
19710 func (c *ProjectsLocationsDataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1DataStore, error) {
19711 gensupport.SetOptions(c.urlParams_, opts...)
19712 res, err := c.doRequest("json")
19713 if res != nil && res.StatusCode == http.StatusNotModified {
19714 if res.Body != nil {
19715 res.Body.Close()
19716 }
19717 return nil, gensupport.WrapError(&googleapi.Error{
19718 Code: res.StatusCode,
19719 Header: res.Header,
19720 })
19721 }
19722 if err != nil {
19723 return nil, err
19724 }
19725 defer googleapi.CloseBody(res)
19726 if err := googleapi.CheckResponse(res); err != nil {
19727 return nil, gensupport.WrapError(err)
19728 }
19729 ret := &GoogleCloudDiscoveryengineV1DataStore{
19730 ServerResponse: googleapi.ServerResponse{
19731 Header: res.Header,
19732 HTTPStatusCode: res.StatusCode,
19733 },
19734 }
19735 target := &ret
19736 if err := gensupport.DecodeResponse(target, res); err != nil {
19737 return nil, err
19738 }
19739 return ret, nil
19740 }
19741
19742 type ProjectsLocationsDataStoresGetSiteSearchEngineCall struct {
19743 s *Service
19744 name string
19745 urlParams_ gensupport.URLParams
19746 ifNoneMatch_ string
19747 ctx_ context.Context
19748 header_ http.Header
19749 }
19750
19751
19752
19753
19754
19755
19756
19757
19758 func (r *ProjectsLocationsDataStoresService) GetSiteSearchEngine(name string) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
19759 c := &ProjectsLocationsDataStoresGetSiteSearchEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19760 c.name = name
19761 return c
19762 }
19763
19764
19765
19766
19767 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
19768 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19769 return c
19770 }
19771
19772
19773
19774
19775 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
19776 c.ifNoneMatch_ = entityTag
19777 return c
19778 }
19779
19780
19781 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
19782 c.ctx_ = ctx
19783 return c
19784 }
19785
19786
19787
19788 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Header() http.Header {
19789 if c.header_ == nil {
19790 c.header_ = make(http.Header)
19791 }
19792 return c.header_
19793 }
19794
19795 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) doRequest(alt string) (*http.Response, error) {
19796 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19797 if c.ifNoneMatch_ != "" {
19798 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19799 }
19800 var body io.Reader = nil
19801 c.urlParams_.Set("alt", alt)
19802 c.urlParams_.Set("prettyPrint", "false")
19803 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
19804 urls += "?" + c.urlParams_.Encode()
19805 req, err := http.NewRequest("GET", urls, body)
19806 if err != nil {
19807 return nil, err
19808 }
19809 req.Header = reqHeaders
19810 googleapi.Expand(req.URL, map[string]string{
19811 "name": c.name,
19812 })
19813 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19814 }
19815
19816
19817
19818
19819
19820
19821
19822 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1SiteSearchEngine, error) {
19823 gensupport.SetOptions(c.urlParams_, opts...)
19824 res, err := c.doRequest("json")
19825 if res != nil && res.StatusCode == http.StatusNotModified {
19826 if res.Body != nil {
19827 res.Body.Close()
19828 }
19829 return nil, gensupport.WrapError(&googleapi.Error{
19830 Code: res.StatusCode,
19831 Header: res.Header,
19832 })
19833 }
19834 if err != nil {
19835 return nil, err
19836 }
19837 defer googleapi.CloseBody(res)
19838 if err := googleapi.CheckResponse(res); err != nil {
19839 return nil, gensupport.WrapError(err)
19840 }
19841 ret := &GoogleCloudDiscoveryengineV1SiteSearchEngine{
19842 ServerResponse: googleapi.ServerResponse{
19843 Header: res.Header,
19844 HTTPStatusCode: res.StatusCode,
19845 },
19846 }
19847 target := &ret
19848 if err := gensupport.DecodeResponse(target, res); err != nil {
19849 return nil, err
19850 }
19851 return ret, nil
19852 }
19853
19854 type ProjectsLocationsDataStoresListCall struct {
19855 s *Service
19856 parent string
19857 urlParams_ gensupport.URLParams
19858 ifNoneMatch_ string
19859 ctx_ context.Context
19860 header_ http.Header
19861 }
19862
19863
19864
19865
19866
19867
19868
19869
19870 func (r *ProjectsLocationsDataStoresService) List(parent string) *ProjectsLocationsDataStoresListCall {
19871 c := &ProjectsLocationsDataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19872 c.parent = parent
19873 return c
19874 }
19875
19876
19877
19878 func (c *ProjectsLocationsDataStoresListCall) Filter(filter string) *ProjectsLocationsDataStoresListCall {
19879 c.urlParams_.Set("filter", filter)
19880 return c
19881 }
19882
19883
19884
19885
19886
19887 func (c *ProjectsLocationsDataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresListCall {
19888 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19889 return c
19890 }
19891
19892
19893
19894
19895
19896
19897
19898 func (c *ProjectsLocationsDataStoresListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresListCall {
19899 c.urlParams_.Set("pageToken", pageToken)
19900 return c
19901 }
19902
19903
19904
19905
19906 func (c *ProjectsLocationsDataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresListCall {
19907 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19908 return c
19909 }
19910
19911
19912
19913
19914 func (c *ProjectsLocationsDataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresListCall {
19915 c.ifNoneMatch_ = entityTag
19916 return c
19917 }
19918
19919
19920 func (c *ProjectsLocationsDataStoresListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresListCall {
19921 c.ctx_ = ctx
19922 return c
19923 }
19924
19925
19926
19927 func (c *ProjectsLocationsDataStoresListCall) Header() http.Header {
19928 if c.header_ == nil {
19929 c.header_ = make(http.Header)
19930 }
19931 return c.header_
19932 }
19933
19934 func (c *ProjectsLocationsDataStoresListCall) doRequest(alt string) (*http.Response, error) {
19935 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19936 if c.ifNoneMatch_ != "" {
19937 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19938 }
19939 var body io.Reader = nil
19940 c.urlParams_.Set("alt", alt)
19941 c.urlParams_.Set("prettyPrint", "false")
19942 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/dataStores")
19943 urls += "?" + c.urlParams_.Encode()
19944 req, err := http.NewRequest("GET", urls, body)
19945 if err != nil {
19946 return nil, err
19947 }
19948 req.Header = reqHeaders
19949 googleapi.Expand(req.URL, map[string]string{
19950 "parent": c.parent,
19951 })
19952 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19953 }
19954
19955
19956
19957
19958
19959
19960
19961 func (c *ProjectsLocationsDataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListDataStoresResponse, error) {
19962 gensupport.SetOptions(c.urlParams_, opts...)
19963 res, err := c.doRequest("json")
19964 if res != nil && res.StatusCode == http.StatusNotModified {
19965 if res.Body != nil {
19966 res.Body.Close()
19967 }
19968 return nil, gensupport.WrapError(&googleapi.Error{
19969 Code: res.StatusCode,
19970 Header: res.Header,
19971 })
19972 }
19973 if err != nil {
19974 return nil, err
19975 }
19976 defer googleapi.CloseBody(res)
19977 if err := googleapi.CheckResponse(res); err != nil {
19978 return nil, gensupport.WrapError(err)
19979 }
19980 ret := &GoogleCloudDiscoveryengineV1ListDataStoresResponse{
19981 ServerResponse: googleapi.ServerResponse{
19982 Header: res.Header,
19983 HTTPStatusCode: res.StatusCode,
19984 },
19985 }
19986 target := &ret
19987 if err := gensupport.DecodeResponse(target, res); err != nil {
19988 return nil, err
19989 }
19990 return ret, nil
19991 }
19992
19993
19994
19995
19996 func (c *ProjectsLocationsDataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListDataStoresResponse) error) error {
19997 c.ctx_ = ctx
19998 defer c.PageToken(c.urlParams_.Get("pageToken"))
19999 for {
20000 x, err := c.Do()
20001 if err != nil {
20002 return err
20003 }
20004 if err := f(x); err != nil {
20005 return err
20006 }
20007 if x.NextPageToken == "" {
20008 return nil
20009 }
20010 c.PageToken(x.NextPageToken)
20011 }
20012 }
20013
20014 type ProjectsLocationsDataStoresPatchCall struct {
20015 s *Service
20016 name string
20017 googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore
20018 urlParams_ gensupport.URLParams
20019 ctx_ context.Context
20020 header_ http.Header
20021 }
20022
20023
20024
20025
20026
20027
20028
20029 func (r *ProjectsLocationsDataStoresService) Patch(name string, googleclouddiscoveryenginev1datastore *GoogleCloudDiscoveryengineV1DataStore) *ProjectsLocationsDataStoresPatchCall {
20030 c := &ProjectsLocationsDataStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20031 c.name = name
20032 c.googleclouddiscoveryenginev1datastore = googleclouddiscoveryenginev1datastore
20033 return c
20034 }
20035
20036
20037
20038
20039 func (c *ProjectsLocationsDataStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresPatchCall {
20040 c.urlParams_.Set("updateMask", updateMask)
20041 return c
20042 }
20043
20044
20045
20046
20047 func (c *ProjectsLocationsDataStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresPatchCall {
20048 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20049 return c
20050 }
20051
20052
20053 func (c *ProjectsLocationsDataStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresPatchCall {
20054 c.ctx_ = ctx
20055 return c
20056 }
20057
20058
20059
20060 func (c *ProjectsLocationsDataStoresPatchCall) Header() http.Header {
20061 if c.header_ == nil {
20062 c.header_ = make(http.Header)
20063 }
20064 return c.header_
20065 }
20066
20067 func (c *ProjectsLocationsDataStoresPatchCall) doRequest(alt string) (*http.Response, error) {
20068 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20069 var body io.Reader = nil
20070 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1datastore)
20071 if err != nil {
20072 return nil, err
20073 }
20074 c.urlParams_.Set("alt", alt)
20075 c.urlParams_.Set("prettyPrint", "false")
20076 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20077 urls += "?" + c.urlParams_.Encode()
20078 req, err := http.NewRequest("PATCH", urls, body)
20079 if err != nil {
20080 return nil, err
20081 }
20082 req.Header = reqHeaders
20083 googleapi.Expand(req.URL, map[string]string{
20084 "name": c.name,
20085 })
20086 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20087 }
20088
20089
20090
20091
20092
20093
20094
20095 func (c *ProjectsLocationsDataStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1DataStore, error) {
20096 gensupport.SetOptions(c.urlParams_, opts...)
20097 res, err := c.doRequest("json")
20098 if res != nil && res.StatusCode == http.StatusNotModified {
20099 if res.Body != nil {
20100 res.Body.Close()
20101 }
20102 return nil, gensupport.WrapError(&googleapi.Error{
20103 Code: res.StatusCode,
20104 Header: res.Header,
20105 })
20106 }
20107 if err != nil {
20108 return nil, err
20109 }
20110 defer googleapi.CloseBody(res)
20111 if err := googleapi.CheckResponse(res); err != nil {
20112 return nil, gensupport.WrapError(err)
20113 }
20114 ret := &GoogleCloudDiscoveryengineV1DataStore{
20115 ServerResponse: googleapi.ServerResponse{
20116 Header: res.Header,
20117 HTTPStatusCode: res.StatusCode,
20118 },
20119 }
20120 target := &ret
20121 if err := gensupport.DecodeResponse(target, res); err != nil {
20122 return nil, err
20123 }
20124 return ret, nil
20125 }
20126
20127 type ProjectsLocationsDataStoresBranchesDocumentsCreateCall struct {
20128 s *Service
20129 parent string
20130 googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document
20131 urlParams_ gensupport.URLParams
20132 ctx_ context.Context
20133 header_ http.Header
20134 }
20135
20136
20137
20138
20139
20140
20141 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Create(parent string, googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
20142 c := &ProjectsLocationsDataStoresBranchesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20143 c.parent = parent
20144 c.googleclouddiscoveryenginev1document = googleclouddiscoveryenginev1document
20145 return c
20146 }
20147
20148
20149
20150
20151
20152
20153
20154
20155
20156
20157 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) DocumentId(documentId string) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
20158 c.urlParams_.Set("documentId", documentId)
20159 return c
20160 }
20161
20162
20163
20164
20165 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
20166 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20167 return c
20168 }
20169
20170
20171 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
20172 c.ctx_ = ctx
20173 return c
20174 }
20175
20176
20177
20178 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Header() http.Header {
20179 if c.header_ == nil {
20180 c.header_ = make(http.Header)
20181 }
20182 return c.header_
20183 }
20184
20185 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
20186 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20187 var body io.Reader = nil
20188 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1document)
20189 if err != nil {
20190 return nil, err
20191 }
20192 c.urlParams_.Set("alt", alt)
20193 c.urlParams_.Set("prettyPrint", "false")
20194 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents")
20195 urls += "?" + c.urlParams_.Encode()
20196 req, err := http.NewRequest("POST", urls, body)
20197 if err != nil {
20198 return nil, err
20199 }
20200 req.Header = reqHeaders
20201 googleapi.Expand(req.URL, map[string]string{
20202 "parent": c.parent,
20203 })
20204 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20205 }
20206
20207
20208
20209
20210
20211
20212
20213 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Document, error) {
20214 gensupport.SetOptions(c.urlParams_, opts...)
20215 res, err := c.doRequest("json")
20216 if res != nil && res.StatusCode == http.StatusNotModified {
20217 if res.Body != nil {
20218 res.Body.Close()
20219 }
20220 return nil, gensupport.WrapError(&googleapi.Error{
20221 Code: res.StatusCode,
20222 Header: res.Header,
20223 })
20224 }
20225 if err != nil {
20226 return nil, err
20227 }
20228 defer googleapi.CloseBody(res)
20229 if err := googleapi.CheckResponse(res); err != nil {
20230 return nil, gensupport.WrapError(err)
20231 }
20232 ret := &GoogleCloudDiscoveryengineV1Document{
20233 ServerResponse: googleapi.ServerResponse{
20234 Header: res.Header,
20235 HTTPStatusCode: res.StatusCode,
20236 },
20237 }
20238 target := &ret
20239 if err := gensupport.DecodeResponse(target, res); err != nil {
20240 return nil, err
20241 }
20242 return ret, nil
20243 }
20244
20245 type ProjectsLocationsDataStoresBranchesDocumentsDeleteCall struct {
20246 s *Service
20247 name string
20248 urlParams_ gensupport.URLParams
20249 ctx_ context.Context
20250 header_ http.Header
20251 }
20252
20253
20254
20255
20256
20257
20258
20259
20260
20261 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Delete(name string) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
20262 c := &ProjectsLocationsDataStoresBranchesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20263 c.name = name
20264 return c
20265 }
20266
20267
20268
20269
20270 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
20271 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20272 return c
20273 }
20274
20275
20276 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
20277 c.ctx_ = ctx
20278 return c
20279 }
20280
20281
20282
20283 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Header() http.Header {
20284 if c.header_ == nil {
20285 c.header_ = make(http.Header)
20286 }
20287 return c.header_
20288 }
20289
20290 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
20291 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20292 var body io.Reader = nil
20293 c.urlParams_.Set("alt", alt)
20294 c.urlParams_.Set("prettyPrint", "false")
20295 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20296 urls += "?" + c.urlParams_.Encode()
20297 req, err := http.NewRequest("DELETE", urls, body)
20298 if err != nil {
20299 return nil, err
20300 }
20301 req.Header = reqHeaders
20302 googleapi.Expand(req.URL, map[string]string{
20303 "name": c.name,
20304 })
20305 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20306 }
20307
20308
20309
20310
20311
20312
20313
20314 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
20315 gensupport.SetOptions(c.urlParams_, opts...)
20316 res, err := c.doRequest("json")
20317 if res != nil && res.StatusCode == http.StatusNotModified {
20318 if res.Body != nil {
20319 res.Body.Close()
20320 }
20321 return nil, gensupport.WrapError(&googleapi.Error{
20322 Code: res.StatusCode,
20323 Header: res.Header,
20324 })
20325 }
20326 if err != nil {
20327 return nil, err
20328 }
20329 defer googleapi.CloseBody(res)
20330 if err := googleapi.CheckResponse(res); err != nil {
20331 return nil, gensupport.WrapError(err)
20332 }
20333 ret := &GoogleProtobufEmpty{
20334 ServerResponse: googleapi.ServerResponse{
20335 Header: res.Header,
20336 HTTPStatusCode: res.StatusCode,
20337 },
20338 }
20339 target := &ret
20340 if err := gensupport.DecodeResponse(target, res); err != nil {
20341 return nil, err
20342 }
20343 return ret, nil
20344 }
20345
20346 type ProjectsLocationsDataStoresBranchesDocumentsGetCall struct {
20347 s *Service
20348 name string
20349 urlParams_ gensupport.URLParams
20350 ifNoneMatch_ string
20351 ctx_ context.Context
20352 header_ http.Header
20353 }
20354
20355
20356
20357
20358
20359
20360
20361
20362
20363 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Get(name string) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
20364 c := &ProjectsLocationsDataStoresBranchesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20365 c.name = name
20366 return c
20367 }
20368
20369
20370
20371
20372 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
20373 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20374 return c
20375 }
20376
20377
20378
20379
20380 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
20381 c.ifNoneMatch_ = entityTag
20382 return c
20383 }
20384
20385
20386 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
20387 c.ctx_ = ctx
20388 return c
20389 }
20390
20391
20392
20393 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Header() http.Header {
20394 if c.header_ == nil {
20395 c.header_ = make(http.Header)
20396 }
20397 return c.header_
20398 }
20399
20400 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
20401 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20402 if c.ifNoneMatch_ != "" {
20403 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20404 }
20405 var body io.Reader = nil
20406 c.urlParams_.Set("alt", alt)
20407 c.urlParams_.Set("prettyPrint", "false")
20408 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20409 urls += "?" + c.urlParams_.Encode()
20410 req, err := http.NewRequest("GET", urls, body)
20411 if err != nil {
20412 return nil, err
20413 }
20414 req.Header = reqHeaders
20415 googleapi.Expand(req.URL, map[string]string{
20416 "name": c.name,
20417 })
20418 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20419 }
20420
20421
20422
20423
20424
20425
20426
20427 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Document, error) {
20428 gensupport.SetOptions(c.urlParams_, opts...)
20429 res, err := c.doRequest("json")
20430 if res != nil && res.StatusCode == http.StatusNotModified {
20431 if res.Body != nil {
20432 res.Body.Close()
20433 }
20434 return nil, gensupport.WrapError(&googleapi.Error{
20435 Code: res.StatusCode,
20436 Header: res.Header,
20437 })
20438 }
20439 if err != nil {
20440 return nil, err
20441 }
20442 defer googleapi.CloseBody(res)
20443 if err := googleapi.CheckResponse(res); err != nil {
20444 return nil, gensupport.WrapError(err)
20445 }
20446 ret := &GoogleCloudDiscoveryengineV1Document{
20447 ServerResponse: googleapi.ServerResponse{
20448 Header: res.Header,
20449 HTTPStatusCode: res.StatusCode,
20450 },
20451 }
20452 target := &ret
20453 if err := gensupport.DecodeResponse(target, res); err != nil {
20454 return nil, err
20455 }
20456 return ret, nil
20457 }
20458
20459 type ProjectsLocationsDataStoresBranchesDocumentsImportCall struct {
20460 s *Service
20461 parent string
20462 googleclouddiscoveryenginev1importdocumentsrequest *GoogleCloudDiscoveryengineV1ImportDocumentsRequest
20463 urlParams_ gensupport.URLParams
20464 ctx_ context.Context
20465 header_ http.Header
20466 }
20467
20468
20469
20470
20471
20472
20473
20474
20475 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Import(parent string, googleclouddiscoveryenginev1importdocumentsrequest *GoogleCloudDiscoveryengineV1ImportDocumentsRequest) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
20476 c := &ProjectsLocationsDataStoresBranchesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20477 c.parent = parent
20478 c.googleclouddiscoveryenginev1importdocumentsrequest = googleclouddiscoveryenginev1importdocumentsrequest
20479 return c
20480 }
20481
20482
20483
20484
20485 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
20486 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20487 return c
20488 }
20489
20490
20491 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
20492 c.ctx_ = ctx
20493 return c
20494 }
20495
20496
20497
20498 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Header() http.Header {
20499 if c.header_ == nil {
20500 c.header_ = make(http.Header)
20501 }
20502 return c.header_
20503 }
20504
20505 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
20506 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20507 var body io.Reader = nil
20508 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1importdocumentsrequest)
20509 if err != nil {
20510 return nil, err
20511 }
20512 c.urlParams_.Set("alt", alt)
20513 c.urlParams_.Set("prettyPrint", "false")
20514 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents:import")
20515 urls += "?" + c.urlParams_.Encode()
20516 req, err := http.NewRequest("POST", urls, body)
20517 if err != nil {
20518 return nil, err
20519 }
20520 req.Header = reqHeaders
20521 googleapi.Expand(req.URL, map[string]string{
20522 "parent": c.parent,
20523 })
20524 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20525 }
20526
20527
20528
20529
20530
20531
20532
20533 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20534 gensupport.SetOptions(c.urlParams_, opts...)
20535 res, err := c.doRequest("json")
20536 if res != nil && res.StatusCode == http.StatusNotModified {
20537 if res.Body != nil {
20538 res.Body.Close()
20539 }
20540 return nil, gensupport.WrapError(&googleapi.Error{
20541 Code: res.StatusCode,
20542 Header: res.Header,
20543 })
20544 }
20545 if err != nil {
20546 return nil, err
20547 }
20548 defer googleapi.CloseBody(res)
20549 if err := googleapi.CheckResponse(res); err != nil {
20550 return nil, gensupport.WrapError(err)
20551 }
20552 ret := &GoogleLongrunningOperation{
20553 ServerResponse: googleapi.ServerResponse{
20554 Header: res.Header,
20555 HTTPStatusCode: res.StatusCode,
20556 },
20557 }
20558 target := &ret
20559 if err := gensupport.DecodeResponse(target, res); err != nil {
20560 return nil, err
20561 }
20562 return ret, nil
20563 }
20564
20565 type ProjectsLocationsDataStoresBranchesDocumentsListCall struct {
20566 s *Service
20567 parent string
20568 urlParams_ gensupport.URLParams
20569 ifNoneMatch_ string
20570 ctx_ context.Context
20571 header_ http.Header
20572 }
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) List(parent string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
20583 c := &ProjectsLocationsDataStoresBranchesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20584 c.parent = parent
20585 return c
20586 }
20587
20588
20589
20590
20591
20592 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
20593 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20594 return c
20595 }
20596
20597
20598
20599
20600
20601
20602
20603 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
20604 c.urlParams_.Set("pageToken", pageToken)
20605 return c
20606 }
20607
20608
20609
20610
20611 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
20612 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20613 return c
20614 }
20615
20616
20617
20618
20619 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
20620 c.ifNoneMatch_ = entityTag
20621 return c
20622 }
20623
20624
20625 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
20626 c.ctx_ = ctx
20627 return c
20628 }
20629
20630
20631
20632 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Header() http.Header {
20633 if c.header_ == nil {
20634 c.header_ = make(http.Header)
20635 }
20636 return c.header_
20637 }
20638
20639 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
20640 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20641 if c.ifNoneMatch_ != "" {
20642 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20643 }
20644 var body io.Reader = nil
20645 c.urlParams_.Set("alt", alt)
20646 c.urlParams_.Set("prettyPrint", "false")
20647 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents")
20648 urls += "?" + c.urlParams_.Encode()
20649 req, err := http.NewRequest("GET", urls, body)
20650 if err != nil {
20651 return nil, err
20652 }
20653 req.Header = reqHeaders
20654 googleapi.Expand(req.URL, map[string]string{
20655 "parent": c.parent,
20656 })
20657 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20658 }
20659
20660
20661
20662
20663
20664
20665
20666 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListDocumentsResponse, error) {
20667 gensupport.SetOptions(c.urlParams_, opts...)
20668 res, err := c.doRequest("json")
20669 if res != nil && res.StatusCode == http.StatusNotModified {
20670 if res.Body != nil {
20671 res.Body.Close()
20672 }
20673 return nil, gensupport.WrapError(&googleapi.Error{
20674 Code: res.StatusCode,
20675 Header: res.Header,
20676 })
20677 }
20678 if err != nil {
20679 return nil, err
20680 }
20681 defer googleapi.CloseBody(res)
20682 if err := googleapi.CheckResponse(res); err != nil {
20683 return nil, gensupport.WrapError(err)
20684 }
20685 ret := &GoogleCloudDiscoveryengineV1ListDocumentsResponse{
20686 ServerResponse: googleapi.ServerResponse{
20687 Header: res.Header,
20688 HTTPStatusCode: res.StatusCode,
20689 },
20690 }
20691 target := &ret
20692 if err := gensupport.DecodeResponse(target, res); err != nil {
20693 return nil, err
20694 }
20695 return ret, nil
20696 }
20697
20698
20699
20700
20701 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListDocumentsResponse) error) error {
20702 c.ctx_ = ctx
20703 defer c.PageToken(c.urlParams_.Get("pageToken"))
20704 for {
20705 x, err := c.Do()
20706 if err != nil {
20707 return err
20708 }
20709 if err := f(x); err != nil {
20710 return err
20711 }
20712 if x.NextPageToken == "" {
20713 return nil
20714 }
20715 c.PageToken(x.NextPageToken)
20716 }
20717 }
20718
20719 type ProjectsLocationsDataStoresBranchesDocumentsPatchCall struct {
20720 s *Service
20721 name string
20722 googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document
20723 urlParams_ gensupport.URLParams
20724 ctx_ context.Context
20725 header_ http.Header
20726 }
20727
20728
20729
20730
20731
20732
20733
20734 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Patch(name string, googleclouddiscoveryenginev1document *GoogleCloudDiscoveryengineV1Document) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
20735 c := &ProjectsLocationsDataStoresBranchesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20736 c.name = name
20737 c.googleclouddiscoveryenginev1document = googleclouddiscoveryenginev1document
20738 return c
20739 }
20740
20741
20742
20743 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
20744 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
20745 return c
20746 }
20747
20748
20749
20750
20751 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
20752 c.urlParams_.Set("updateMask", updateMask)
20753 return c
20754 }
20755
20756
20757
20758
20759 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
20760 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20761 return c
20762 }
20763
20764
20765 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
20766 c.ctx_ = ctx
20767 return c
20768 }
20769
20770
20771
20772 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Header() http.Header {
20773 if c.header_ == nil {
20774 c.header_ = make(http.Header)
20775 }
20776 return c.header_
20777 }
20778
20779 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
20780 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20781 var body io.Reader = nil
20782 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1document)
20783 if err != nil {
20784 return nil, err
20785 }
20786 c.urlParams_.Set("alt", alt)
20787 c.urlParams_.Set("prettyPrint", "false")
20788 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
20789 urls += "?" + c.urlParams_.Encode()
20790 req, err := http.NewRequest("PATCH", urls, body)
20791 if err != nil {
20792 return nil, err
20793 }
20794 req.Header = reqHeaders
20795 googleapi.Expand(req.URL, map[string]string{
20796 "name": c.name,
20797 })
20798 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20799 }
20800
20801
20802
20803
20804
20805
20806
20807 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Document, error) {
20808 gensupport.SetOptions(c.urlParams_, opts...)
20809 res, err := c.doRequest("json")
20810 if res != nil && res.StatusCode == http.StatusNotModified {
20811 if res.Body != nil {
20812 res.Body.Close()
20813 }
20814 return nil, gensupport.WrapError(&googleapi.Error{
20815 Code: res.StatusCode,
20816 Header: res.Header,
20817 })
20818 }
20819 if err != nil {
20820 return nil, err
20821 }
20822 defer googleapi.CloseBody(res)
20823 if err := googleapi.CheckResponse(res); err != nil {
20824 return nil, gensupport.WrapError(err)
20825 }
20826 ret := &GoogleCloudDiscoveryengineV1Document{
20827 ServerResponse: googleapi.ServerResponse{
20828 Header: res.Header,
20829 HTTPStatusCode: res.StatusCode,
20830 },
20831 }
20832 target := &ret
20833 if err := gensupport.DecodeResponse(target, res); err != nil {
20834 return nil, err
20835 }
20836 return ret, nil
20837 }
20838
20839 type ProjectsLocationsDataStoresBranchesDocumentsPurgeCall struct {
20840 s *Service
20841 parent string
20842 googleclouddiscoveryenginev1purgedocumentsrequest *GoogleCloudDiscoveryengineV1PurgeDocumentsRequest
20843 urlParams_ gensupport.URLParams
20844 ctx_ context.Context
20845 header_ http.Header
20846 }
20847
20848
20849
20850
20851
20852
20853
20854
20855
20856
20857
20858 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Purge(parent string, googleclouddiscoveryenginev1purgedocumentsrequest *GoogleCloudDiscoveryengineV1PurgeDocumentsRequest) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
20859 c := &ProjectsLocationsDataStoresBranchesDocumentsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20860 c.parent = parent
20861 c.googleclouddiscoveryenginev1purgedocumentsrequest = googleclouddiscoveryenginev1purgedocumentsrequest
20862 return c
20863 }
20864
20865
20866
20867
20868 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
20869 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20870 return c
20871 }
20872
20873
20874 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
20875 c.ctx_ = ctx
20876 return c
20877 }
20878
20879
20880
20881 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Header() http.Header {
20882 if c.header_ == nil {
20883 c.header_ = make(http.Header)
20884 }
20885 return c.header_
20886 }
20887
20888 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) doRequest(alt string) (*http.Response, error) {
20889 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20890 var body io.Reader = nil
20891 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1purgedocumentsrequest)
20892 if err != nil {
20893 return nil, err
20894 }
20895 c.urlParams_.Set("alt", alt)
20896 c.urlParams_.Set("prettyPrint", "false")
20897 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/documents:purge")
20898 urls += "?" + c.urlParams_.Encode()
20899 req, err := http.NewRequest("POST", urls, body)
20900 if err != nil {
20901 return nil, err
20902 }
20903 req.Header = reqHeaders
20904 googleapi.Expand(req.URL, map[string]string{
20905 "parent": c.parent,
20906 })
20907 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20908 }
20909
20910
20911
20912
20913
20914
20915
20916 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20917 gensupport.SetOptions(c.urlParams_, opts...)
20918 res, err := c.doRequest("json")
20919 if res != nil && res.StatusCode == http.StatusNotModified {
20920 if res.Body != nil {
20921 res.Body.Close()
20922 }
20923 return nil, gensupport.WrapError(&googleapi.Error{
20924 Code: res.StatusCode,
20925 Header: res.Header,
20926 })
20927 }
20928 if err != nil {
20929 return nil, err
20930 }
20931 defer googleapi.CloseBody(res)
20932 if err := googleapi.CheckResponse(res); err != nil {
20933 return nil, gensupport.WrapError(err)
20934 }
20935 ret := &GoogleLongrunningOperation{
20936 ServerResponse: googleapi.ServerResponse{
20937 Header: res.Header,
20938 HTTPStatusCode: res.StatusCode,
20939 },
20940 }
20941 target := &ret
20942 if err := gensupport.DecodeResponse(target, res); err != nil {
20943 return nil, err
20944 }
20945 return ret, nil
20946 }
20947
20948 type ProjectsLocationsDataStoresBranchesOperationsCancelCall struct {
20949 s *Service
20950 name string
20951 googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
20952 urlParams_ gensupport.URLParams
20953 ctx_ context.Context
20954 header_ http.Header
20955 }
20956
20957
20958
20959
20960
20961
20962
20963
20964
20965
20966
20967
20968 func (r *ProjectsLocationsDataStoresBranchesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
20969 c := &ProjectsLocationsDataStoresBranchesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20970 c.name = name
20971 c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
20972 return c
20973 }
20974
20975
20976
20977
20978 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
20979 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20980 return c
20981 }
20982
20983
20984 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
20985 c.ctx_ = ctx
20986 return c
20987 }
20988
20989
20990
20991 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Header() http.Header {
20992 if c.header_ == nil {
20993 c.header_ = make(http.Header)
20994 }
20995 return c.header_
20996 }
20997
20998 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
20999 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21000 var body io.Reader = nil
21001 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
21002 if err != nil {
21003 return nil, err
21004 }
21005 c.urlParams_.Set("alt", alt)
21006 c.urlParams_.Set("prettyPrint", "false")
21007 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
21008 urls += "?" + c.urlParams_.Encode()
21009 req, err := http.NewRequest("POST", urls, body)
21010 if err != nil {
21011 return nil, err
21012 }
21013 req.Header = reqHeaders
21014 googleapi.Expand(req.URL, map[string]string{
21015 "name": c.name,
21016 })
21017 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21018 }
21019
21020
21021
21022
21023
21024
21025
21026 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21027 gensupport.SetOptions(c.urlParams_, opts...)
21028 res, err := c.doRequest("json")
21029 if res != nil && res.StatusCode == http.StatusNotModified {
21030 if res.Body != nil {
21031 res.Body.Close()
21032 }
21033 return nil, gensupport.WrapError(&googleapi.Error{
21034 Code: res.StatusCode,
21035 Header: res.Header,
21036 })
21037 }
21038 if err != nil {
21039 return nil, err
21040 }
21041 defer googleapi.CloseBody(res)
21042 if err := googleapi.CheckResponse(res); err != nil {
21043 return nil, gensupport.WrapError(err)
21044 }
21045 ret := &GoogleProtobufEmpty{
21046 ServerResponse: googleapi.ServerResponse{
21047 Header: res.Header,
21048 HTTPStatusCode: res.StatusCode,
21049 },
21050 }
21051 target := &ret
21052 if err := gensupport.DecodeResponse(target, res); err != nil {
21053 return nil, err
21054 }
21055 return ret, nil
21056 }
21057
21058 type ProjectsLocationsDataStoresBranchesOperationsGetCall struct {
21059 s *Service
21060 name string
21061 urlParams_ gensupport.URLParams
21062 ifNoneMatch_ string
21063 ctx_ context.Context
21064 header_ http.Header
21065 }
21066
21067
21068
21069
21070
21071
21072 func (r *ProjectsLocationsDataStoresBranchesOperationsService) Get(name string) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
21073 c := &ProjectsLocationsDataStoresBranchesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21074 c.name = name
21075 return c
21076 }
21077
21078
21079
21080
21081 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
21082 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21083 return c
21084 }
21085
21086
21087
21088
21089 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
21090 c.ifNoneMatch_ = entityTag
21091 return c
21092 }
21093
21094
21095 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
21096 c.ctx_ = ctx
21097 return c
21098 }
21099
21100
21101
21102 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Header() http.Header {
21103 if c.header_ == nil {
21104 c.header_ = make(http.Header)
21105 }
21106 return c.header_
21107 }
21108
21109 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
21110 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21111 if c.ifNoneMatch_ != "" {
21112 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21113 }
21114 var body io.Reader = nil
21115 c.urlParams_.Set("alt", alt)
21116 c.urlParams_.Set("prettyPrint", "false")
21117 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21118 urls += "?" + c.urlParams_.Encode()
21119 req, err := http.NewRequest("GET", urls, body)
21120 if err != nil {
21121 return nil, err
21122 }
21123 req.Header = reqHeaders
21124 googleapi.Expand(req.URL, map[string]string{
21125 "name": c.name,
21126 })
21127 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21128 }
21129
21130
21131
21132
21133
21134
21135
21136 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21137 gensupport.SetOptions(c.urlParams_, opts...)
21138 res, err := c.doRequest("json")
21139 if res != nil && res.StatusCode == http.StatusNotModified {
21140 if res.Body != nil {
21141 res.Body.Close()
21142 }
21143 return nil, gensupport.WrapError(&googleapi.Error{
21144 Code: res.StatusCode,
21145 Header: res.Header,
21146 })
21147 }
21148 if err != nil {
21149 return nil, err
21150 }
21151 defer googleapi.CloseBody(res)
21152 if err := googleapi.CheckResponse(res); err != nil {
21153 return nil, gensupport.WrapError(err)
21154 }
21155 ret := &GoogleLongrunningOperation{
21156 ServerResponse: googleapi.ServerResponse{
21157 Header: res.Header,
21158 HTTPStatusCode: res.StatusCode,
21159 },
21160 }
21161 target := &ret
21162 if err := gensupport.DecodeResponse(target, res); err != nil {
21163 return nil, err
21164 }
21165 return ret, nil
21166 }
21167
21168 type ProjectsLocationsDataStoresBranchesOperationsListCall struct {
21169 s *Service
21170 name string
21171 urlParams_ gensupport.URLParams
21172 ifNoneMatch_ string
21173 ctx_ context.Context
21174 header_ http.Header
21175 }
21176
21177
21178
21179
21180
21181 func (r *ProjectsLocationsDataStoresBranchesOperationsService) List(name string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
21182 c := &ProjectsLocationsDataStoresBranchesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21183 c.name = name
21184 return c
21185 }
21186
21187
21188 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
21189 c.urlParams_.Set("filter", filter)
21190 return c
21191 }
21192
21193
21194
21195 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesOperationsListCall {
21196 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21197 return c
21198 }
21199
21200
21201
21202 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
21203 c.urlParams_.Set("pageToken", pageToken)
21204 return c
21205 }
21206
21207
21208
21209
21210 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsListCall {
21211 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21212 return c
21213 }
21214
21215
21216
21217
21218 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
21219 c.ifNoneMatch_ = entityTag
21220 return c
21221 }
21222
21223
21224 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsListCall {
21225 c.ctx_ = ctx
21226 return c
21227 }
21228
21229
21230
21231 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Header() http.Header {
21232 if c.header_ == nil {
21233 c.header_ = make(http.Header)
21234 }
21235 return c.header_
21236 }
21237
21238 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) doRequest(alt string) (*http.Response, error) {
21239 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21240 if c.ifNoneMatch_ != "" {
21241 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21242 }
21243 var body io.Reader = nil
21244 c.urlParams_.Set("alt", alt)
21245 c.urlParams_.Set("prettyPrint", "false")
21246 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
21247 urls += "?" + c.urlParams_.Encode()
21248 req, err := http.NewRequest("GET", urls, body)
21249 if err != nil {
21250 return nil, err
21251 }
21252 req.Header = reqHeaders
21253 googleapi.Expand(req.URL, map[string]string{
21254 "name": c.name,
21255 })
21256 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21257 }
21258
21259
21260
21261
21262
21263
21264
21265 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
21266 gensupport.SetOptions(c.urlParams_, opts...)
21267 res, err := c.doRequest("json")
21268 if res != nil && res.StatusCode == http.StatusNotModified {
21269 if res.Body != nil {
21270 res.Body.Close()
21271 }
21272 return nil, gensupport.WrapError(&googleapi.Error{
21273 Code: res.StatusCode,
21274 Header: res.Header,
21275 })
21276 }
21277 if err != nil {
21278 return nil, err
21279 }
21280 defer googleapi.CloseBody(res)
21281 if err := googleapi.CheckResponse(res); err != nil {
21282 return nil, gensupport.WrapError(err)
21283 }
21284 ret := &GoogleLongrunningListOperationsResponse{
21285 ServerResponse: googleapi.ServerResponse{
21286 Header: res.Header,
21287 HTTPStatusCode: res.StatusCode,
21288 },
21289 }
21290 target := &ret
21291 if err := gensupport.DecodeResponse(target, res); err != nil {
21292 return nil, err
21293 }
21294 return ret, nil
21295 }
21296
21297
21298
21299
21300 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
21301 c.ctx_ = ctx
21302 defer c.PageToken(c.urlParams_.Get("pageToken"))
21303 for {
21304 x, err := c.Do()
21305 if err != nil {
21306 return err
21307 }
21308 if err := f(x); err != nil {
21309 return err
21310 }
21311 if x.NextPageToken == "" {
21312 return nil
21313 }
21314 c.PageToken(x.NextPageToken)
21315 }
21316 }
21317
21318 type ProjectsLocationsDataStoresConversationsConverseCall struct {
21319 s *Service
21320 name string
21321 googleclouddiscoveryenginev1converseconversationrequest *GoogleCloudDiscoveryengineV1ConverseConversationRequest
21322 urlParams_ gensupport.URLParams
21323 ctx_ context.Context
21324 header_ http.Header
21325 }
21326
21327
21328
21329
21330
21331
21332
21333
21334
21335
21336 func (r *ProjectsLocationsDataStoresConversationsService) Converse(name string, googleclouddiscoveryenginev1converseconversationrequest *GoogleCloudDiscoveryengineV1ConverseConversationRequest) *ProjectsLocationsDataStoresConversationsConverseCall {
21337 c := &ProjectsLocationsDataStoresConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21338 c.name = name
21339 c.googleclouddiscoveryenginev1converseconversationrequest = googleclouddiscoveryenginev1converseconversationrequest
21340 return c
21341 }
21342
21343
21344
21345
21346 func (c *ProjectsLocationsDataStoresConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsConverseCall {
21347 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21348 return c
21349 }
21350
21351
21352 func (c *ProjectsLocationsDataStoresConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsConverseCall {
21353 c.ctx_ = ctx
21354 return c
21355 }
21356
21357
21358
21359 func (c *ProjectsLocationsDataStoresConversationsConverseCall) Header() http.Header {
21360 if c.header_ == nil {
21361 c.header_ = make(http.Header)
21362 }
21363 return c.header_
21364 }
21365
21366 func (c *ProjectsLocationsDataStoresConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
21367 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21368 var body io.Reader = nil
21369 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1converseconversationrequest)
21370 if err != nil {
21371 return nil, err
21372 }
21373 c.urlParams_.Set("alt", alt)
21374 c.urlParams_.Set("prettyPrint", "false")
21375 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:converse")
21376 urls += "?" + c.urlParams_.Encode()
21377 req, err := http.NewRequest("POST", urls, body)
21378 if err != nil {
21379 return nil, err
21380 }
21381 req.Header = reqHeaders
21382 googleapi.Expand(req.URL, map[string]string{
21383 "name": c.name,
21384 })
21385 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21386 }
21387
21388
21389
21390
21391
21392
21393
21394 func (c *ProjectsLocationsDataStoresConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ConverseConversationResponse, error) {
21395 gensupport.SetOptions(c.urlParams_, opts...)
21396 res, err := c.doRequest("json")
21397 if res != nil && res.StatusCode == http.StatusNotModified {
21398 if res.Body != nil {
21399 res.Body.Close()
21400 }
21401 return nil, gensupport.WrapError(&googleapi.Error{
21402 Code: res.StatusCode,
21403 Header: res.Header,
21404 })
21405 }
21406 if err != nil {
21407 return nil, err
21408 }
21409 defer googleapi.CloseBody(res)
21410 if err := googleapi.CheckResponse(res); err != nil {
21411 return nil, gensupport.WrapError(err)
21412 }
21413 ret := &GoogleCloudDiscoveryengineV1ConverseConversationResponse{
21414 ServerResponse: googleapi.ServerResponse{
21415 Header: res.Header,
21416 HTTPStatusCode: res.StatusCode,
21417 },
21418 }
21419 target := &ret
21420 if err := gensupport.DecodeResponse(target, res); err != nil {
21421 return nil, err
21422 }
21423 return ret, nil
21424 }
21425
21426 type ProjectsLocationsDataStoresConversationsCreateCall struct {
21427 s *Service
21428 parent string
21429 googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation
21430 urlParams_ gensupport.URLParams
21431 ctx_ context.Context
21432 header_ http.Header
21433 }
21434
21435
21436
21437
21438
21439
21440
21441 func (r *ProjectsLocationsDataStoresConversationsService) Create(parent string, googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation) *ProjectsLocationsDataStoresConversationsCreateCall {
21442 c := &ProjectsLocationsDataStoresConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21443 c.parent = parent
21444 c.googleclouddiscoveryenginev1conversation = googleclouddiscoveryenginev1conversation
21445 return c
21446 }
21447
21448
21449
21450
21451 func (c *ProjectsLocationsDataStoresConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsCreateCall {
21452 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21453 return c
21454 }
21455
21456
21457 func (c *ProjectsLocationsDataStoresConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsCreateCall {
21458 c.ctx_ = ctx
21459 return c
21460 }
21461
21462
21463
21464 func (c *ProjectsLocationsDataStoresConversationsCreateCall) Header() http.Header {
21465 if c.header_ == nil {
21466 c.header_ = make(http.Header)
21467 }
21468 return c.header_
21469 }
21470
21471 func (c *ProjectsLocationsDataStoresConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
21472 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21473 var body io.Reader = nil
21474 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1conversation)
21475 if err != nil {
21476 return nil, err
21477 }
21478 c.urlParams_.Set("alt", alt)
21479 c.urlParams_.Set("prettyPrint", "false")
21480 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
21481 urls += "?" + c.urlParams_.Encode()
21482 req, err := http.NewRequest("POST", urls, body)
21483 if err != nil {
21484 return nil, err
21485 }
21486 req.Header = reqHeaders
21487 googleapi.Expand(req.URL, map[string]string{
21488 "parent": c.parent,
21489 })
21490 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21491 }
21492
21493
21494
21495
21496
21497
21498
21499 func (c *ProjectsLocationsDataStoresConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
21500 gensupport.SetOptions(c.urlParams_, opts...)
21501 res, err := c.doRequest("json")
21502 if res != nil && res.StatusCode == http.StatusNotModified {
21503 if res.Body != nil {
21504 res.Body.Close()
21505 }
21506 return nil, gensupport.WrapError(&googleapi.Error{
21507 Code: res.StatusCode,
21508 Header: res.Header,
21509 })
21510 }
21511 if err != nil {
21512 return nil, err
21513 }
21514 defer googleapi.CloseBody(res)
21515 if err := googleapi.CheckResponse(res); err != nil {
21516 return nil, gensupport.WrapError(err)
21517 }
21518 ret := &GoogleCloudDiscoveryengineV1Conversation{
21519 ServerResponse: googleapi.ServerResponse{
21520 Header: res.Header,
21521 HTTPStatusCode: res.StatusCode,
21522 },
21523 }
21524 target := &ret
21525 if err := gensupport.DecodeResponse(target, res); err != nil {
21526 return nil, err
21527 }
21528 return ret, nil
21529 }
21530
21531 type ProjectsLocationsDataStoresConversationsDeleteCall struct {
21532 s *Service
21533 name string
21534 urlParams_ gensupport.URLParams
21535 ctx_ context.Context
21536 header_ http.Header
21537 }
21538
21539
21540
21541
21542
21543
21544
21545 func (r *ProjectsLocationsDataStoresConversationsService) Delete(name string) *ProjectsLocationsDataStoresConversationsDeleteCall {
21546 c := &ProjectsLocationsDataStoresConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21547 c.name = name
21548 return c
21549 }
21550
21551
21552
21553
21554 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsDeleteCall {
21555 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21556 return c
21557 }
21558
21559
21560 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsDeleteCall {
21561 c.ctx_ = ctx
21562 return c
21563 }
21564
21565
21566
21567 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Header() http.Header {
21568 if c.header_ == nil {
21569 c.header_ = make(http.Header)
21570 }
21571 return c.header_
21572 }
21573
21574 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
21575 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21576 var body io.Reader = nil
21577 c.urlParams_.Set("alt", alt)
21578 c.urlParams_.Set("prettyPrint", "false")
21579 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21580 urls += "?" + c.urlParams_.Encode()
21581 req, err := http.NewRequest("DELETE", urls, body)
21582 if err != nil {
21583 return nil, err
21584 }
21585 req.Header = reqHeaders
21586 googleapi.Expand(req.URL, map[string]string{
21587 "name": c.name,
21588 })
21589 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21590 }
21591
21592
21593
21594
21595
21596
21597
21598 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21599 gensupport.SetOptions(c.urlParams_, opts...)
21600 res, err := c.doRequest("json")
21601 if res != nil && res.StatusCode == http.StatusNotModified {
21602 if res.Body != nil {
21603 res.Body.Close()
21604 }
21605 return nil, gensupport.WrapError(&googleapi.Error{
21606 Code: res.StatusCode,
21607 Header: res.Header,
21608 })
21609 }
21610 if err != nil {
21611 return nil, err
21612 }
21613 defer googleapi.CloseBody(res)
21614 if err := googleapi.CheckResponse(res); err != nil {
21615 return nil, gensupport.WrapError(err)
21616 }
21617 ret := &GoogleProtobufEmpty{
21618 ServerResponse: googleapi.ServerResponse{
21619 Header: res.Header,
21620 HTTPStatusCode: res.StatusCode,
21621 },
21622 }
21623 target := &ret
21624 if err := gensupport.DecodeResponse(target, res); err != nil {
21625 return nil, err
21626 }
21627 return ret, nil
21628 }
21629
21630 type ProjectsLocationsDataStoresConversationsGetCall struct {
21631 s *Service
21632 name string
21633 urlParams_ gensupport.URLParams
21634 ifNoneMatch_ string
21635 ctx_ context.Context
21636 header_ http.Header
21637 }
21638
21639
21640
21641
21642
21643
21644 func (r *ProjectsLocationsDataStoresConversationsService) Get(name string) *ProjectsLocationsDataStoresConversationsGetCall {
21645 c := &ProjectsLocationsDataStoresConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21646 c.name = name
21647 return c
21648 }
21649
21650
21651
21652
21653 func (c *ProjectsLocationsDataStoresConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsGetCall {
21654 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21655 return c
21656 }
21657
21658
21659
21660
21661 func (c *ProjectsLocationsDataStoresConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresConversationsGetCall {
21662 c.ifNoneMatch_ = entityTag
21663 return c
21664 }
21665
21666
21667 func (c *ProjectsLocationsDataStoresConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsGetCall {
21668 c.ctx_ = ctx
21669 return c
21670 }
21671
21672
21673
21674 func (c *ProjectsLocationsDataStoresConversationsGetCall) Header() http.Header {
21675 if c.header_ == nil {
21676 c.header_ = make(http.Header)
21677 }
21678 return c.header_
21679 }
21680
21681 func (c *ProjectsLocationsDataStoresConversationsGetCall) doRequest(alt string) (*http.Response, error) {
21682 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21683 if c.ifNoneMatch_ != "" {
21684 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21685 }
21686 var body io.Reader = nil
21687 c.urlParams_.Set("alt", alt)
21688 c.urlParams_.Set("prettyPrint", "false")
21689 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21690 urls += "?" + c.urlParams_.Encode()
21691 req, err := http.NewRequest("GET", urls, body)
21692 if err != nil {
21693 return nil, err
21694 }
21695 req.Header = reqHeaders
21696 googleapi.Expand(req.URL, map[string]string{
21697 "name": c.name,
21698 })
21699 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21700 }
21701
21702
21703
21704
21705
21706
21707
21708 func (c *ProjectsLocationsDataStoresConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
21709 gensupport.SetOptions(c.urlParams_, opts...)
21710 res, err := c.doRequest("json")
21711 if res != nil && res.StatusCode == http.StatusNotModified {
21712 if res.Body != nil {
21713 res.Body.Close()
21714 }
21715 return nil, gensupport.WrapError(&googleapi.Error{
21716 Code: res.StatusCode,
21717 Header: res.Header,
21718 })
21719 }
21720 if err != nil {
21721 return nil, err
21722 }
21723 defer googleapi.CloseBody(res)
21724 if err := googleapi.CheckResponse(res); err != nil {
21725 return nil, gensupport.WrapError(err)
21726 }
21727 ret := &GoogleCloudDiscoveryengineV1Conversation{
21728 ServerResponse: googleapi.ServerResponse{
21729 Header: res.Header,
21730 HTTPStatusCode: res.StatusCode,
21731 },
21732 }
21733 target := &ret
21734 if err := gensupport.DecodeResponse(target, res); err != nil {
21735 return nil, err
21736 }
21737 return ret, nil
21738 }
21739
21740 type ProjectsLocationsDataStoresConversationsListCall struct {
21741 s *Service
21742 parent string
21743 urlParams_ gensupport.URLParams
21744 ifNoneMatch_ string
21745 ctx_ context.Context
21746 header_ http.Header
21747 }
21748
21749
21750
21751
21752
21753
21754 func (r *ProjectsLocationsDataStoresConversationsService) List(parent string) *ProjectsLocationsDataStoresConversationsListCall {
21755 c := &ProjectsLocationsDataStoresConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21756 c.parent = parent
21757 return c
21758 }
21759
21760
21761
21762
21763 func (c *ProjectsLocationsDataStoresConversationsListCall) Filter(filter string) *ProjectsLocationsDataStoresConversationsListCall {
21764 c.urlParams_.Set("filter", filter)
21765 return c
21766 }
21767
21768
21769
21770
21771
21772 func (c *ProjectsLocationsDataStoresConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsDataStoresConversationsListCall {
21773 c.urlParams_.Set("orderBy", orderBy)
21774 return c
21775 }
21776
21777
21778
21779 func (c *ProjectsLocationsDataStoresConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresConversationsListCall {
21780 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21781 return c
21782 }
21783
21784
21785
21786
21787 func (c *ProjectsLocationsDataStoresConversationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresConversationsListCall {
21788 c.urlParams_.Set("pageToken", pageToken)
21789 return c
21790 }
21791
21792
21793
21794
21795 func (c *ProjectsLocationsDataStoresConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsListCall {
21796 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21797 return c
21798 }
21799
21800
21801
21802
21803 func (c *ProjectsLocationsDataStoresConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresConversationsListCall {
21804 c.ifNoneMatch_ = entityTag
21805 return c
21806 }
21807
21808
21809 func (c *ProjectsLocationsDataStoresConversationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsListCall {
21810 c.ctx_ = ctx
21811 return c
21812 }
21813
21814
21815
21816 func (c *ProjectsLocationsDataStoresConversationsListCall) Header() http.Header {
21817 if c.header_ == nil {
21818 c.header_ = make(http.Header)
21819 }
21820 return c.header_
21821 }
21822
21823 func (c *ProjectsLocationsDataStoresConversationsListCall) doRequest(alt string) (*http.Response, error) {
21824 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21825 if c.ifNoneMatch_ != "" {
21826 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21827 }
21828 var body io.Reader = nil
21829 c.urlParams_.Set("alt", alt)
21830 c.urlParams_.Set("prettyPrint", "false")
21831 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
21832 urls += "?" + c.urlParams_.Encode()
21833 req, err := http.NewRequest("GET", urls, body)
21834 if err != nil {
21835 return nil, err
21836 }
21837 req.Header = reqHeaders
21838 googleapi.Expand(req.URL, map[string]string{
21839 "parent": c.parent,
21840 })
21841 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21842 }
21843
21844
21845
21846
21847
21848
21849
21850 func (c *ProjectsLocationsDataStoresConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListConversationsResponse, error) {
21851 gensupport.SetOptions(c.urlParams_, opts...)
21852 res, err := c.doRequest("json")
21853 if res != nil && res.StatusCode == http.StatusNotModified {
21854 if res.Body != nil {
21855 res.Body.Close()
21856 }
21857 return nil, gensupport.WrapError(&googleapi.Error{
21858 Code: res.StatusCode,
21859 Header: res.Header,
21860 })
21861 }
21862 if err != nil {
21863 return nil, err
21864 }
21865 defer googleapi.CloseBody(res)
21866 if err := googleapi.CheckResponse(res); err != nil {
21867 return nil, gensupport.WrapError(err)
21868 }
21869 ret := &GoogleCloudDiscoveryengineV1ListConversationsResponse{
21870 ServerResponse: googleapi.ServerResponse{
21871 Header: res.Header,
21872 HTTPStatusCode: res.StatusCode,
21873 },
21874 }
21875 target := &ret
21876 if err := gensupport.DecodeResponse(target, res); err != nil {
21877 return nil, err
21878 }
21879 return ret, nil
21880 }
21881
21882
21883
21884
21885 func (c *ProjectsLocationsDataStoresConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListConversationsResponse) error) error {
21886 c.ctx_ = ctx
21887 defer c.PageToken(c.urlParams_.Get("pageToken"))
21888 for {
21889 x, err := c.Do()
21890 if err != nil {
21891 return err
21892 }
21893 if err := f(x); err != nil {
21894 return err
21895 }
21896 if x.NextPageToken == "" {
21897 return nil
21898 }
21899 c.PageToken(x.NextPageToken)
21900 }
21901 }
21902
21903 type ProjectsLocationsDataStoresConversationsPatchCall struct {
21904 s *Service
21905 name string
21906 googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation
21907 urlParams_ gensupport.URLParams
21908 ctx_ context.Context
21909 header_ http.Header
21910 }
21911
21912
21913
21914
21915
21916
21917
21918
21919
21920 func (r *ProjectsLocationsDataStoresConversationsService) Patch(name string, googleclouddiscoveryenginev1conversation *GoogleCloudDiscoveryengineV1Conversation) *ProjectsLocationsDataStoresConversationsPatchCall {
21921 c := &ProjectsLocationsDataStoresConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21922 c.name = name
21923 c.googleclouddiscoveryenginev1conversation = googleclouddiscoveryenginev1conversation
21924 return c
21925 }
21926
21927
21928
21929
21930 func (c *ProjectsLocationsDataStoresConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresConversationsPatchCall {
21931 c.urlParams_.Set("updateMask", updateMask)
21932 return c
21933 }
21934
21935
21936
21937
21938 func (c *ProjectsLocationsDataStoresConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsPatchCall {
21939 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21940 return c
21941 }
21942
21943
21944 func (c *ProjectsLocationsDataStoresConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsPatchCall {
21945 c.ctx_ = ctx
21946 return c
21947 }
21948
21949
21950
21951 func (c *ProjectsLocationsDataStoresConversationsPatchCall) Header() http.Header {
21952 if c.header_ == nil {
21953 c.header_ = make(http.Header)
21954 }
21955 return c.header_
21956 }
21957
21958 func (c *ProjectsLocationsDataStoresConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
21959 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21960 var body io.Reader = nil
21961 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1conversation)
21962 if err != nil {
21963 return nil, err
21964 }
21965 c.urlParams_.Set("alt", alt)
21966 c.urlParams_.Set("prettyPrint", "false")
21967 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
21968 urls += "?" + c.urlParams_.Encode()
21969 req, err := http.NewRequest("PATCH", urls, body)
21970 if err != nil {
21971 return nil, err
21972 }
21973 req.Header = reqHeaders
21974 googleapi.Expand(req.URL, map[string]string{
21975 "name": c.name,
21976 })
21977 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21978 }
21979
21980
21981
21982
21983
21984
21985
21986 func (c *ProjectsLocationsDataStoresConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Conversation, error) {
21987 gensupport.SetOptions(c.urlParams_, opts...)
21988 res, err := c.doRequest("json")
21989 if res != nil && res.StatusCode == http.StatusNotModified {
21990 if res.Body != nil {
21991 res.Body.Close()
21992 }
21993 return nil, gensupport.WrapError(&googleapi.Error{
21994 Code: res.StatusCode,
21995 Header: res.Header,
21996 })
21997 }
21998 if err != nil {
21999 return nil, err
22000 }
22001 defer googleapi.CloseBody(res)
22002 if err := googleapi.CheckResponse(res); err != nil {
22003 return nil, gensupport.WrapError(err)
22004 }
22005 ret := &GoogleCloudDiscoveryengineV1Conversation{
22006 ServerResponse: googleapi.ServerResponse{
22007 Header: res.Header,
22008 HTTPStatusCode: res.StatusCode,
22009 },
22010 }
22011 target := &ret
22012 if err := gensupport.DecodeResponse(target, res); err != nil {
22013 return nil, err
22014 }
22015 return ret, nil
22016 }
22017
22018 type ProjectsLocationsDataStoresModelsOperationsGetCall struct {
22019 s *Service
22020 name string
22021 urlParams_ gensupport.URLParams
22022 ifNoneMatch_ string
22023 ctx_ context.Context
22024 header_ http.Header
22025 }
22026
22027
22028
22029
22030
22031
22032 func (r *ProjectsLocationsDataStoresModelsOperationsService) Get(name string) *ProjectsLocationsDataStoresModelsOperationsGetCall {
22033 c := &ProjectsLocationsDataStoresModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22034 c.name = name
22035 return c
22036 }
22037
22038
22039
22040
22041 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresModelsOperationsGetCall {
22042 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22043 return c
22044 }
22045
22046
22047
22048
22049 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresModelsOperationsGetCall {
22050 c.ifNoneMatch_ = entityTag
22051 return c
22052 }
22053
22054
22055 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresModelsOperationsGetCall {
22056 c.ctx_ = ctx
22057 return c
22058 }
22059
22060
22061
22062 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Header() http.Header {
22063 if c.header_ == nil {
22064 c.header_ = make(http.Header)
22065 }
22066 return c.header_
22067 }
22068
22069 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
22070 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22071 if c.ifNoneMatch_ != "" {
22072 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22073 }
22074 var body io.Reader = nil
22075 c.urlParams_.Set("alt", alt)
22076 c.urlParams_.Set("prettyPrint", "false")
22077 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22078 urls += "?" + c.urlParams_.Encode()
22079 req, err := http.NewRequest("GET", urls, body)
22080 if err != nil {
22081 return nil, err
22082 }
22083 req.Header = reqHeaders
22084 googleapi.Expand(req.URL, map[string]string{
22085 "name": c.name,
22086 })
22087 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22088 }
22089
22090
22091
22092
22093
22094
22095
22096 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22097 gensupport.SetOptions(c.urlParams_, opts...)
22098 res, err := c.doRequest("json")
22099 if res != nil && res.StatusCode == http.StatusNotModified {
22100 if res.Body != nil {
22101 res.Body.Close()
22102 }
22103 return nil, gensupport.WrapError(&googleapi.Error{
22104 Code: res.StatusCode,
22105 Header: res.Header,
22106 })
22107 }
22108 if err != nil {
22109 return nil, err
22110 }
22111 defer googleapi.CloseBody(res)
22112 if err := googleapi.CheckResponse(res); err != nil {
22113 return nil, gensupport.WrapError(err)
22114 }
22115 ret := &GoogleLongrunningOperation{
22116 ServerResponse: googleapi.ServerResponse{
22117 Header: res.Header,
22118 HTTPStatusCode: res.StatusCode,
22119 },
22120 }
22121 target := &ret
22122 if err := gensupport.DecodeResponse(target, res); err != nil {
22123 return nil, err
22124 }
22125 return ret, nil
22126 }
22127
22128 type ProjectsLocationsDataStoresModelsOperationsListCall struct {
22129 s *Service
22130 name string
22131 urlParams_ gensupport.URLParams
22132 ifNoneMatch_ string
22133 ctx_ context.Context
22134 header_ http.Header
22135 }
22136
22137
22138
22139
22140
22141 func (r *ProjectsLocationsDataStoresModelsOperationsService) List(name string) *ProjectsLocationsDataStoresModelsOperationsListCall {
22142 c := &ProjectsLocationsDataStoresModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22143 c.name = name
22144 return c
22145 }
22146
22147
22148 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresModelsOperationsListCall {
22149 c.urlParams_.Set("filter", filter)
22150 return c
22151 }
22152
22153
22154
22155 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresModelsOperationsListCall {
22156 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22157 return c
22158 }
22159
22160
22161
22162 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresModelsOperationsListCall {
22163 c.urlParams_.Set("pageToken", pageToken)
22164 return c
22165 }
22166
22167
22168
22169
22170 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresModelsOperationsListCall {
22171 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22172 return c
22173 }
22174
22175
22176
22177
22178 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresModelsOperationsListCall {
22179 c.ifNoneMatch_ = entityTag
22180 return c
22181 }
22182
22183
22184 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresModelsOperationsListCall {
22185 c.ctx_ = ctx
22186 return c
22187 }
22188
22189
22190
22191 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Header() http.Header {
22192 if c.header_ == nil {
22193 c.header_ = make(http.Header)
22194 }
22195 return c.header_
22196 }
22197
22198 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) doRequest(alt string) (*http.Response, error) {
22199 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22200 if c.ifNoneMatch_ != "" {
22201 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22202 }
22203 var body io.Reader = nil
22204 c.urlParams_.Set("alt", alt)
22205 c.urlParams_.Set("prettyPrint", "false")
22206 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
22207 urls += "?" + c.urlParams_.Encode()
22208 req, err := http.NewRequest("GET", urls, body)
22209 if err != nil {
22210 return nil, err
22211 }
22212 req.Header = reqHeaders
22213 googleapi.Expand(req.URL, map[string]string{
22214 "name": c.name,
22215 })
22216 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22217 }
22218
22219
22220
22221
22222
22223
22224
22225 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
22226 gensupport.SetOptions(c.urlParams_, opts...)
22227 res, err := c.doRequest("json")
22228 if res != nil && res.StatusCode == http.StatusNotModified {
22229 if res.Body != nil {
22230 res.Body.Close()
22231 }
22232 return nil, gensupport.WrapError(&googleapi.Error{
22233 Code: res.StatusCode,
22234 Header: res.Header,
22235 })
22236 }
22237 if err != nil {
22238 return nil, err
22239 }
22240 defer googleapi.CloseBody(res)
22241 if err := googleapi.CheckResponse(res); err != nil {
22242 return nil, gensupport.WrapError(err)
22243 }
22244 ret := &GoogleLongrunningListOperationsResponse{
22245 ServerResponse: googleapi.ServerResponse{
22246 Header: res.Header,
22247 HTTPStatusCode: res.StatusCode,
22248 },
22249 }
22250 target := &ret
22251 if err := gensupport.DecodeResponse(target, res); err != nil {
22252 return nil, err
22253 }
22254 return ret, nil
22255 }
22256
22257
22258
22259
22260 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
22261 c.ctx_ = ctx
22262 defer c.PageToken(c.urlParams_.Get("pageToken"))
22263 for {
22264 x, err := c.Do()
22265 if err != nil {
22266 return err
22267 }
22268 if err := f(x); err != nil {
22269 return err
22270 }
22271 if x.NextPageToken == "" {
22272 return nil
22273 }
22274 c.PageToken(x.NextPageToken)
22275 }
22276 }
22277
22278 type ProjectsLocationsDataStoresOperationsGetCall struct {
22279 s *Service
22280 name string
22281 urlParams_ gensupport.URLParams
22282 ifNoneMatch_ string
22283 ctx_ context.Context
22284 header_ http.Header
22285 }
22286
22287
22288
22289
22290
22291
22292 func (r *ProjectsLocationsDataStoresOperationsService) Get(name string) *ProjectsLocationsDataStoresOperationsGetCall {
22293 c := &ProjectsLocationsDataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22294 c.name = name
22295 return c
22296 }
22297
22298
22299
22300
22301 func (c *ProjectsLocationsDataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresOperationsGetCall {
22302 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22303 return c
22304 }
22305
22306
22307
22308
22309 func (c *ProjectsLocationsDataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresOperationsGetCall {
22310 c.ifNoneMatch_ = entityTag
22311 return c
22312 }
22313
22314
22315 func (c *ProjectsLocationsDataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresOperationsGetCall {
22316 c.ctx_ = ctx
22317 return c
22318 }
22319
22320
22321
22322 func (c *ProjectsLocationsDataStoresOperationsGetCall) Header() http.Header {
22323 if c.header_ == nil {
22324 c.header_ = make(http.Header)
22325 }
22326 return c.header_
22327 }
22328
22329 func (c *ProjectsLocationsDataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) {
22330 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22331 if c.ifNoneMatch_ != "" {
22332 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22333 }
22334 var body io.Reader = nil
22335 c.urlParams_.Set("alt", alt)
22336 c.urlParams_.Set("prettyPrint", "false")
22337 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22338 urls += "?" + c.urlParams_.Encode()
22339 req, err := http.NewRequest("GET", urls, body)
22340 if err != nil {
22341 return nil, err
22342 }
22343 req.Header = reqHeaders
22344 googleapi.Expand(req.URL, map[string]string{
22345 "name": c.name,
22346 })
22347 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22348 }
22349
22350
22351
22352
22353
22354
22355
22356 func (c *ProjectsLocationsDataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22357 gensupport.SetOptions(c.urlParams_, opts...)
22358 res, err := c.doRequest("json")
22359 if res != nil && res.StatusCode == http.StatusNotModified {
22360 if res.Body != nil {
22361 res.Body.Close()
22362 }
22363 return nil, gensupport.WrapError(&googleapi.Error{
22364 Code: res.StatusCode,
22365 Header: res.Header,
22366 })
22367 }
22368 if err != nil {
22369 return nil, err
22370 }
22371 defer googleapi.CloseBody(res)
22372 if err := googleapi.CheckResponse(res); err != nil {
22373 return nil, gensupport.WrapError(err)
22374 }
22375 ret := &GoogleLongrunningOperation{
22376 ServerResponse: googleapi.ServerResponse{
22377 Header: res.Header,
22378 HTTPStatusCode: res.StatusCode,
22379 },
22380 }
22381 target := &ret
22382 if err := gensupport.DecodeResponse(target, res); err != nil {
22383 return nil, err
22384 }
22385 return ret, nil
22386 }
22387
22388 type ProjectsLocationsDataStoresOperationsListCall struct {
22389 s *Service
22390 name string
22391 urlParams_ gensupport.URLParams
22392 ifNoneMatch_ string
22393 ctx_ context.Context
22394 header_ http.Header
22395 }
22396
22397
22398
22399
22400
22401 func (r *ProjectsLocationsDataStoresOperationsService) List(name string) *ProjectsLocationsDataStoresOperationsListCall {
22402 c := &ProjectsLocationsDataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22403 c.name = name
22404 return c
22405 }
22406
22407
22408 func (c *ProjectsLocationsDataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresOperationsListCall {
22409 c.urlParams_.Set("filter", filter)
22410 return c
22411 }
22412
22413
22414
22415 func (c *ProjectsLocationsDataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresOperationsListCall {
22416 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22417 return c
22418 }
22419
22420
22421
22422 func (c *ProjectsLocationsDataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresOperationsListCall {
22423 c.urlParams_.Set("pageToken", pageToken)
22424 return c
22425 }
22426
22427
22428
22429
22430 func (c *ProjectsLocationsDataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresOperationsListCall {
22431 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22432 return c
22433 }
22434
22435
22436
22437
22438 func (c *ProjectsLocationsDataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresOperationsListCall {
22439 c.ifNoneMatch_ = entityTag
22440 return c
22441 }
22442
22443
22444 func (c *ProjectsLocationsDataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresOperationsListCall {
22445 c.ctx_ = ctx
22446 return c
22447 }
22448
22449
22450
22451 func (c *ProjectsLocationsDataStoresOperationsListCall) Header() http.Header {
22452 if c.header_ == nil {
22453 c.header_ = make(http.Header)
22454 }
22455 return c.header_
22456 }
22457
22458 func (c *ProjectsLocationsDataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) {
22459 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22460 if c.ifNoneMatch_ != "" {
22461 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22462 }
22463 var body io.Reader = nil
22464 c.urlParams_.Set("alt", alt)
22465 c.urlParams_.Set("prettyPrint", "false")
22466 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
22467 urls += "?" + c.urlParams_.Encode()
22468 req, err := http.NewRequest("GET", urls, body)
22469 if err != nil {
22470 return nil, err
22471 }
22472 req.Header = reqHeaders
22473 googleapi.Expand(req.URL, map[string]string{
22474 "name": c.name,
22475 })
22476 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22477 }
22478
22479
22480
22481
22482
22483
22484
22485 func (c *ProjectsLocationsDataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
22486 gensupport.SetOptions(c.urlParams_, opts...)
22487 res, err := c.doRequest("json")
22488 if res != nil && res.StatusCode == http.StatusNotModified {
22489 if res.Body != nil {
22490 res.Body.Close()
22491 }
22492 return nil, gensupport.WrapError(&googleapi.Error{
22493 Code: res.StatusCode,
22494 Header: res.Header,
22495 })
22496 }
22497 if err != nil {
22498 return nil, err
22499 }
22500 defer googleapi.CloseBody(res)
22501 if err := googleapi.CheckResponse(res); err != nil {
22502 return nil, gensupport.WrapError(err)
22503 }
22504 ret := &GoogleLongrunningListOperationsResponse{
22505 ServerResponse: googleapi.ServerResponse{
22506 Header: res.Header,
22507 HTTPStatusCode: res.StatusCode,
22508 },
22509 }
22510 target := &ret
22511 if err := gensupport.DecodeResponse(target, res); err != nil {
22512 return nil, err
22513 }
22514 return ret, nil
22515 }
22516
22517
22518
22519
22520 func (c *ProjectsLocationsDataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
22521 c.ctx_ = ctx
22522 defer c.PageToken(c.urlParams_.Get("pageToken"))
22523 for {
22524 x, err := c.Do()
22525 if err != nil {
22526 return err
22527 }
22528 if err := f(x); err != nil {
22529 return err
22530 }
22531 if x.NextPageToken == "" {
22532 return nil
22533 }
22534 c.PageToken(x.NextPageToken)
22535 }
22536 }
22537
22538 type ProjectsLocationsDataStoresSchemasCreateCall struct {
22539 s *Service
22540 parent string
22541 googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema
22542 urlParams_ gensupport.URLParams
22543 ctx_ context.Context
22544 header_ http.Header
22545 }
22546
22547
22548
22549
22550
22551
22552 func (r *ProjectsLocationsDataStoresSchemasService) Create(parent string, googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema) *ProjectsLocationsDataStoresSchemasCreateCall {
22553 c := &ProjectsLocationsDataStoresSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22554 c.parent = parent
22555 c.googleclouddiscoveryenginev1schema = googleclouddiscoveryenginev1schema
22556 return c
22557 }
22558
22559
22560
22561
22562
22563 func (c *ProjectsLocationsDataStoresSchemasCreateCall) SchemaId(schemaId string) *ProjectsLocationsDataStoresSchemasCreateCall {
22564 c.urlParams_.Set("schemaId", schemaId)
22565 return c
22566 }
22567
22568
22569
22570
22571 func (c *ProjectsLocationsDataStoresSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasCreateCall {
22572 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22573 return c
22574 }
22575
22576
22577 func (c *ProjectsLocationsDataStoresSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasCreateCall {
22578 c.ctx_ = ctx
22579 return c
22580 }
22581
22582
22583
22584 func (c *ProjectsLocationsDataStoresSchemasCreateCall) Header() http.Header {
22585 if c.header_ == nil {
22586 c.header_ = make(http.Header)
22587 }
22588 return c.header_
22589 }
22590
22591 func (c *ProjectsLocationsDataStoresSchemasCreateCall) doRequest(alt string) (*http.Response, error) {
22592 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22593 var body io.Reader = nil
22594 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1schema)
22595 if err != nil {
22596 return nil, err
22597 }
22598 c.urlParams_.Set("alt", alt)
22599 c.urlParams_.Set("prettyPrint", "false")
22600 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/schemas")
22601 urls += "?" + c.urlParams_.Encode()
22602 req, err := http.NewRequest("POST", urls, body)
22603 if err != nil {
22604 return nil, err
22605 }
22606 req.Header = reqHeaders
22607 googleapi.Expand(req.URL, map[string]string{
22608 "parent": c.parent,
22609 })
22610 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22611 }
22612
22613
22614
22615
22616
22617
22618
22619 func (c *ProjectsLocationsDataStoresSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22620 gensupport.SetOptions(c.urlParams_, opts...)
22621 res, err := c.doRequest("json")
22622 if res != nil && res.StatusCode == http.StatusNotModified {
22623 if res.Body != nil {
22624 res.Body.Close()
22625 }
22626 return nil, gensupport.WrapError(&googleapi.Error{
22627 Code: res.StatusCode,
22628 Header: res.Header,
22629 })
22630 }
22631 if err != nil {
22632 return nil, err
22633 }
22634 defer googleapi.CloseBody(res)
22635 if err := googleapi.CheckResponse(res); err != nil {
22636 return nil, gensupport.WrapError(err)
22637 }
22638 ret := &GoogleLongrunningOperation{
22639 ServerResponse: googleapi.ServerResponse{
22640 Header: res.Header,
22641 HTTPStatusCode: res.StatusCode,
22642 },
22643 }
22644 target := &ret
22645 if err := gensupport.DecodeResponse(target, res); err != nil {
22646 return nil, err
22647 }
22648 return ret, nil
22649 }
22650
22651 type ProjectsLocationsDataStoresSchemasDeleteCall struct {
22652 s *Service
22653 name string
22654 urlParams_ gensupport.URLParams
22655 ctx_ context.Context
22656 header_ http.Header
22657 }
22658
22659
22660
22661
22662
22663
22664 func (r *ProjectsLocationsDataStoresSchemasService) Delete(name string) *ProjectsLocationsDataStoresSchemasDeleteCall {
22665 c := &ProjectsLocationsDataStoresSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22666 c.name = name
22667 return c
22668 }
22669
22670
22671
22672
22673 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasDeleteCall {
22674 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22675 return c
22676 }
22677
22678
22679 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasDeleteCall {
22680 c.ctx_ = ctx
22681 return c
22682 }
22683
22684
22685
22686 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Header() http.Header {
22687 if c.header_ == nil {
22688 c.header_ = make(http.Header)
22689 }
22690 return c.header_
22691 }
22692
22693 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) doRequest(alt string) (*http.Response, error) {
22694 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22695 var body io.Reader = nil
22696 c.urlParams_.Set("alt", alt)
22697 c.urlParams_.Set("prettyPrint", "false")
22698 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22699 urls += "?" + c.urlParams_.Encode()
22700 req, err := http.NewRequest("DELETE", urls, body)
22701 if err != nil {
22702 return nil, err
22703 }
22704 req.Header = reqHeaders
22705 googleapi.Expand(req.URL, map[string]string{
22706 "name": c.name,
22707 })
22708 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22709 }
22710
22711
22712
22713
22714
22715
22716
22717 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22718 gensupport.SetOptions(c.urlParams_, opts...)
22719 res, err := c.doRequest("json")
22720 if res != nil && res.StatusCode == http.StatusNotModified {
22721 if res.Body != nil {
22722 res.Body.Close()
22723 }
22724 return nil, gensupport.WrapError(&googleapi.Error{
22725 Code: res.StatusCode,
22726 Header: res.Header,
22727 })
22728 }
22729 if err != nil {
22730 return nil, err
22731 }
22732 defer googleapi.CloseBody(res)
22733 if err := googleapi.CheckResponse(res); err != nil {
22734 return nil, gensupport.WrapError(err)
22735 }
22736 ret := &GoogleLongrunningOperation{
22737 ServerResponse: googleapi.ServerResponse{
22738 Header: res.Header,
22739 HTTPStatusCode: res.StatusCode,
22740 },
22741 }
22742 target := &ret
22743 if err := gensupport.DecodeResponse(target, res); err != nil {
22744 return nil, err
22745 }
22746 return ret, nil
22747 }
22748
22749 type ProjectsLocationsDataStoresSchemasGetCall struct {
22750 s *Service
22751 name string
22752 urlParams_ gensupport.URLParams
22753 ifNoneMatch_ string
22754 ctx_ context.Context
22755 header_ http.Header
22756 }
22757
22758
22759
22760
22761
22762
22763 func (r *ProjectsLocationsDataStoresSchemasService) Get(name string) *ProjectsLocationsDataStoresSchemasGetCall {
22764 c := &ProjectsLocationsDataStoresSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22765 c.name = name
22766 return c
22767 }
22768
22769
22770
22771
22772 func (c *ProjectsLocationsDataStoresSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasGetCall {
22773 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22774 return c
22775 }
22776
22777
22778
22779
22780 func (c *ProjectsLocationsDataStoresSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSchemasGetCall {
22781 c.ifNoneMatch_ = entityTag
22782 return c
22783 }
22784
22785
22786 func (c *ProjectsLocationsDataStoresSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasGetCall {
22787 c.ctx_ = ctx
22788 return c
22789 }
22790
22791
22792
22793 func (c *ProjectsLocationsDataStoresSchemasGetCall) Header() http.Header {
22794 if c.header_ == nil {
22795 c.header_ = make(http.Header)
22796 }
22797 return c.header_
22798 }
22799
22800 func (c *ProjectsLocationsDataStoresSchemasGetCall) doRequest(alt string) (*http.Response, error) {
22801 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22802 if c.ifNoneMatch_ != "" {
22803 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22804 }
22805 var body io.Reader = nil
22806 c.urlParams_.Set("alt", alt)
22807 c.urlParams_.Set("prettyPrint", "false")
22808 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
22809 urls += "?" + c.urlParams_.Encode()
22810 req, err := http.NewRequest("GET", urls, body)
22811 if err != nil {
22812 return nil, err
22813 }
22814 req.Header = reqHeaders
22815 googleapi.Expand(req.URL, map[string]string{
22816 "name": c.name,
22817 })
22818 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22819 }
22820
22821
22822
22823
22824
22825
22826
22827 func (c *ProjectsLocationsDataStoresSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1Schema, error) {
22828 gensupport.SetOptions(c.urlParams_, opts...)
22829 res, err := c.doRequest("json")
22830 if res != nil && res.StatusCode == http.StatusNotModified {
22831 if res.Body != nil {
22832 res.Body.Close()
22833 }
22834 return nil, gensupport.WrapError(&googleapi.Error{
22835 Code: res.StatusCode,
22836 Header: res.Header,
22837 })
22838 }
22839 if err != nil {
22840 return nil, err
22841 }
22842 defer googleapi.CloseBody(res)
22843 if err := googleapi.CheckResponse(res); err != nil {
22844 return nil, gensupport.WrapError(err)
22845 }
22846 ret := &GoogleCloudDiscoveryengineV1Schema{
22847 ServerResponse: googleapi.ServerResponse{
22848 Header: res.Header,
22849 HTTPStatusCode: res.StatusCode,
22850 },
22851 }
22852 target := &ret
22853 if err := gensupport.DecodeResponse(target, res); err != nil {
22854 return nil, err
22855 }
22856 return ret, nil
22857 }
22858
22859 type ProjectsLocationsDataStoresSchemasListCall struct {
22860 s *Service
22861 parent string
22862 urlParams_ gensupport.URLParams
22863 ifNoneMatch_ string
22864 ctx_ context.Context
22865 header_ http.Header
22866 }
22867
22868
22869
22870
22871
22872
22873 func (r *ProjectsLocationsDataStoresSchemasService) List(parent string) *ProjectsLocationsDataStoresSchemasListCall {
22874 c := &ProjectsLocationsDataStoresSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22875 c.parent = parent
22876 return c
22877 }
22878
22879
22880
22881
22882
22883 func (c *ProjectsLocationsDataStoresSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSchemasListCall {
22884 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22885 return c
22886 }
22887
22888
22889
22890
22891
22892 func (c *ProjectsLocationsDataStoresSchemasListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSchemasListCall {
22893 c.urlParams_.Set("pageToken", pageToken)
22894 return c
22895 }
22896
22897
22898
22899
22900 func (c *ProjectsLocationsDataStoresSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasListCall {
22901 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22902 return c
22903 }
22904
22905
22906
22907
22908 func (c *ProjectsLocationsDataStoresSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSchemasListCall {
22909 c.ifNoneMatch_ = entityTag
22910 return c
22911 }
22912
22913
22914 func (c *ProjectsLocationsDataStoresSchemasListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasListCall {
22915 c.ctx_ = ctx
22916 return c
22917 }
22918
22919
22920
22921 func (c *ProjectsLocationsDataStoresSchemasListCall) Header() http.Header {
22922 if c.header_ == nil {
22923 c.header_ = make(http.Header)
22924 }
22925 return c.header_
22926 }
22927
22928 func (c *ProjectsLocationsDataStoresSchemasListCall) doRequest(alt string) (*http.Response, error) {
22929 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22930 if c.ifNoneMatch_ != "" {
22931 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22932 }
22933 var body io.Reader = nil
22934 c.urlParams_.Set("alt", alt)
22935 c.urlParams_.Set("prettyPrint", "false")
22936 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/schemas")
22937 urls += "?" + c.urlParams_.Encode()
22938 req, err := http.NewRequest("GET", urls, body)
22939 if err != nil {
22940 return nil, err
22941 }
22942 req.Header = reqHeaders
22943 googleapi.Expand(req.URL, map[string]string{
22944 "parent": c.parent,
22945 })
22946 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22947 }
22948
22949
22950
22951
22952
22953
22954
22955 func (c *ProjectsLocationsDataStoresSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListSchemasResponse, error) {
22956 gensupport.SetOptions(c.urlParams_, opts...)
22957 res, err := c.doRequest("json")
22958 if res != nil && res.StatusCode == http.StatusNotModified {
22959 if res.Body != nil {
22960 res.Body.Close()
22961 }
22962 return nil, gensupport.WrapError(&googleapi.Error{
22963 Code: res.StatusCode,
22964 Header: res.Header,
22965 })
22966 }
22967 if err != nil {
22968 return nil, err
22969 }
22970 defer googleapi.CloseBody(res)
22971 if err := googleapi.CheckResponse(res); err != nil {
22972 return nil, gensupport.WrapError(err)
22973 }
22974 ret := &GoogleCloudDiscoveryengineV1ListSchemasResponse{
22975 ServerResponse: googleapi.ServerResponse{
22976 Header: res.Header,
22977 HTTPStatusCode: res.StatusCode,
22978 },
22979 }
22980 target := &ret
22981 if err := gensupport.DecodeResponse(target, res); err != nil {
22982 return nil, err
22983 }
22984 return ret, nil
22985 }
22986
22987
22988
22989
22990 func (c *ProjectsLocationsDataStoresSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListSchemasResponse) error) error {
22991 c.ctx_ = ctx
22992 defer c.PageToken(c.urlParams_.Get("pageToken"))
22993 for {
22994 x, err := c.Do()
22995 if err != nil {
22996 return err
22997 }
22998 if err := f(x); err != nil {
22999 return err
23000 }
23001 if x.NextPageToken == "" {
23002 return nil
23003 }
23004 c.PageToken(x.NextPageToken)
23005 }
23006 }
23007
23008 type ProjectsLocationsDataStoresSchemasPatchCall struct {
23009 s *Service
23010 name string
23011 googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema
23012 urlParams_ gensupport.URLParams
23013 ctx_ context.Context
23014 header_ http.Header
23015 }
23016
23017
23018
23019
23020
23021
23022
23023 func (r *ProjectsLocationsDataStoresSchemasService) Patch(name string, googleclouddiscoveryenginev1schema *GoogleCloudDiscoveryengineV1Schema) *ProjectsLocationsDataStoresSchemasPatchCall {
23024 c := &ProjectsLocationsDataStoresSchemasPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23025 c.name = name
23026 c.googleclouddiscoveryenginev1schema = googleclouddiscoveryenginev1schema
23027 return c
23028 }
23029
23030
23031
23032
23033 func (c *ProjectsLocationsDataStoresSchemasPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDataStoresSchemasPatchCall {
23034 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
23035 return c
23036 }
23037
23038
23039
23040
23041 func (c *ProjectsLocationsDataStoresSchemasPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasPatchCall {
23042 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23043 return c
23044 }
23045
23046
23047 func (c *ProjectsLocationsDataStoresSchemasPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasPatchCall {
23048 c.ctx_ = ctx
23049 return c
23050 }
23051
23052
23053
23054 func (c *ProjectsLocationsDataStoresSchemasPatchCall) Header() http.Header {
23055 if c.header_ == nil {
23056 c.header_ = make(http.Header)
23057 }
23058 return c.header_
23059 }
23060
23061 func (c *ProjectsLocationsDataStoresSchemasPatchCall) doRequest(alt string) (*http.Response, error) {
23062 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23063 var body io.Reader = nil
23064 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1schema)
23065 if err != nil {
23066 return nil, err
23067 }
23068 c.urlParams_.Set("alt", alt)
23069 c.urlParams_.Set("prettyPrint", "false")
23070 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23071 urls += "?" + c.urlParams_.Encode()
23072 req, err := http.NewRequest("PATCH", urls, body)
23073 if err != nil {
23074 return nil, err
23075 }
23076 req.Header = reqHeaders
23077 googleapi.Expand(req.URL, map[string]string{
23078 "name": c.name,
23079 })
23080 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23081 }
23082
23083
23084
23085
23086
23087
23088
23089 func (c *ProjectsLocationsDataStoresSchemasPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23090 gensupport.SetOptions(c.urlParams_, opts...)
23091 res, err := c.doRequest("json")
23092 if res != nil && res.StatusCode == http.StatusNotModified {
23093 if res.Body != nil {
23094 res.Body.Close()
23095 }
23096 return nil, gensupport.WrapError(&googleapi.Error{
23097 Code: res.StatusCode,
23098 Header: res.Header,
23099 })
23100 }
23101 if err != nil {
23102 return nil, err
23103 }
23104 defer googleapi.CloseBody(res)
23105 if err := googleapi.CheckResponse(res); err != nil {
23106 return nil, gensupport.WrapError(err)
23107 }
23108 ret := &GoogleLongrunningOperation{
23109 ServerResponse: googleapi.ServerResponse{
23110 Header: res.Header,
23111 HTTPStatusCode: res.StatusCode,
23112 },
23113 }
23114 target := &ret
23115 if err := gensupport.DecodeResponse(target, res); err != nil {
23116 return nil, err
23117 }
23118 return ret, nil
23119 }
23120
23121 type ProjectsLocationsDataStoresServingConfigsRecommendCall struct {
23122 s *Service
23123 servingConfig string
23124 googleclouddiscoveryenginev1recommendrequest *GoogleCloudDiscoveryengineV1RecommendRequest
23125 urlParams_ gensupport.URLParams
23126 ctx_ context.Context
23127 header_ http.Header
23128 }
23129
23130
23131
23132
23133
23134
23135
23136
23137
23138
23139
23140
23141 func (r *ProjectsLocationsDataStoresServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1recommendrequest *GoogleCloudDiscoveryengineV1RecommendRequest) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
23142 c := &ProjectsLocationsDataStoresServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23143 c.servingConfig = servingConfig
23144 c.googleclouddiscoveryenginev1recommendrequest = googleclouddiscoveryenginev1recommendrequest
23145 return c
23146 }
23147
23148
23149
23150
23151 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
23152 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23153 return c
23154 }
23155
23156
23157 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
23158 c.ctx_ = ctx
23159 return c
23160 }
23161
23162
23163
23164 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Header() http.Header {
23165 if c.header_ == nil {
23166 c.header_ = make(http.Header)
23167 }
23168 return c.header_
23169 }
23170
23171 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
23172 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23173 var body io.Reader = nil
23174 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1recommendrequest)
23175 if err != nil {
23176 return nil, err
23177 }
23178 c.urlParams_.Set("alt", alt)
23179 c.urlParams_.Set("prettyPrint", "false")
23180 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+servingConfig}:recommend")
23181 urls += "?" + c.urlParams_.Encode()
23182 req, err := http.NewRequest("POST", urls, body)
23183 if err != nil {
23184 return nil, err
23185 }
23186 req.Header = reqHeaders
23187 googleapi.Expand(req.URL, map[string]string{
23188 "servingConfig": c.servingConfig,
23189 })
23190 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23191 }
23192
23193
23194
23195
23196
23197
23198
23199 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1RecommendResponse, error) {
23200 gensupport.SetOptions(c.urlParams_, opts...)
23201 res, err := c.doRequest("json")
23202 if res != nil && res.StatusCode == http.StatusNotModified {
23203 if res.Body != nil {
23204 res.Body.Close()
23205 }
23206 return nil, gensupport.WrapError(&googleapi.Error{
23207 Code: res.StatusCode,
23208 Header: res.Header,
23209 })
23210 }
23211 if err != nil {
23212 return nil, err
23213 }
23214 defer googleapi.CloseBody(res)
23215 if err := googleapi.CheckResponse(res); err != nil {
23216 return nil, gensupport.WrapError(err)
23217 }
23218 ret := &GoogleCloudDiscoveryengineV1RecommendResponse{
23219 ServerResponse: googleapi.ServerResponse{
23220 Header: res.Header,
23221 HTTPStatusCode: res.StatusCode,
23222 },
23223 }
23224 target := &ret
23225 if err := gensupport.DecodeResponse(target, res); err != nil {
23226 return nil, err
23227 }
23228 return ret, nil
23229 }
23230
23231 type ProjectsLocationsDataStoresServingConfigsSearchCall struct {
23232 s *Service
23233 servingConfig string
23234 googleclouddiscoveryenginev1searchrequest *GoogleCloudDiscoveryengineV1SearchRequest
23235 urlParams_ gensupport.URLParams
23236 ctx_ context.Context
23237 header_ http.Header
23238 }
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249 func (r *ProjectsLocationsDataStoresServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1searchrequest *GoogleCloudDiscoveryengineV1SearchRequest) *ProjectsLocationsDataStoresServingConfigsSearchCall {
23250 c := &ProjectsLocationsDataStoresServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23251 c.servingConfig = servingConfig
23252 c.googleclouddiscoveryenginev1searchrequest = googleclouddiscoveryenginev1searchrequest
23253 return c
23254 }
23255
23256
23257
23258
23259 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsSearchCall {
23260 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23261 return c
23262 }
23263
23264
23265 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsSearchCall {
23266 c.ctx_ = ctx
23267 return c
23268 }
23269
23270
23271
23272 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Header() http.Header {
23273 if c.header_ == nil {
23274 c.header_ = make(http.Header)
23275 }
23276 return c.header_
23277 }
23278
23279 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
23280 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23281 var body io.Reader = nil
23282 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1searchrequest)
23283 if err != nil {
23284 return nil, err
23285 }
23286 c.urlParams_.Set("alt", alt)
23287 c.urlParams_.Set("prettyPrint", "false")
23288 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+servingConfig}:search")
23289 urls += "?" + c.urlParams_.Encode()
23290 req, err := http.NewRequest("POST", urls, body)
23291 if err != nil {
23292 return nil, err
23293 }
23294 req.Header = reqHeaders
23295 googleapi.Expand(req.URL, map[string]string{
23296 "servingConfig": c.servingConfig,
23297 })
23298 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23299 }
23300
23301
23302
23303
23304
23305
23306
23307 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1SearchResponse, error) {
23308 gensupport.SetOptions(c.urlParams_, opts...)
23309 res, err := c.doRequest("json")
23310 if res != nil && res.StatusCode == http.StatusNotModified {
23311 if res.Body != nil {
23312 res.Body.Close()
23313 }
23314 return nil, gensupport.WrapError(&googleapi.Error{
23315 Code: res.StatusCode,
23316 Header: res.Header,
23317 })
23318 }
23319 if err != nil {
23320 return nil, err
23321 }
23322 defer googleapi.CloseBody(res)
23323 if err := googleapi.CheckResponse(res); err != nil {
23324 return nil, gensupport.WrapError(err)
23325 }
23326 ret := &GoogleCloudDiscoveryengineV1SearchResponse{
23327 ServerResponse: googleapi.ServerResponse{
23328 Header: res.Header,
23329 HTTPStatusCode: res.StatusCode,
23330 },
23331 }
23332 target := &ret
23333 if err := gensupport.DecodeResponse(target, res); err != nil {
23334 return nil, err
23335 }
23336 return ret, nil
23337 }
23338
23339
23340
23341
23342 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1SearchResponse) error) error {
23343 c.ctx_ = ctx
23344 defer func(pt string) { c.googleclouddiscoveryenginev1searchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1searchrequest.PageToken)
23345 for {
23346 x, err := c.Do()
23347 if err != nil {
23348 return err
23349 }
23350 if err := f(x); err != nil {
23351 return err
23352 }
23353 if x.NextPageToken == "" {
23354 return nil
23355 }
23356 c.googleclouddiscoveryenginev1searchrequest.PageToken = x.NextPageToken
23357 }
23358 }
23359
23360 type ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall struct {
23361 s *Service
23362 siteSearchEngine string
23363 googleclouddiscoveryenginev1disableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest
23364 urlParams_ gensupport.URLParams
23365 ctx_ context.Context
23366 header_ http.Header
23367 }
23368
23369
23370
23371
23372
23373
23374
23375 func (r *ProjectsLocationsDataStoresSiteSearchEngineService) DisableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1disableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchRequest) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
23376 c := &ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23377 c.siteSearchEngine = siteSearchEngine
23378 c.googleclouddiscoveryenginev1disableadvancedsitesearchrequest = googleclouddiscoveryenginev1disableadvancedsitesearchrequest
23379 return c
23380 }
23381
23382
23383
23384
23385 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
23386 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23387 return c
23388 }
23389
23390
23391 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
23392 c.ctx_ = ctx
23393 return c
23394 }
23395
23396
23397
23398 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Header() http.Header {
23399 if c.header_ == nil {
23400 c.header_ = make(http.Header)
23401 }
23402 return c.header_
23403 }
23404
23405 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
23406 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23407 var body io.Reader = nil
23408 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1disableadvancedsitesearchrequest)
23409 if err != nil {
23410 return nil, err
23411 }
23412 c.urlParams_.Set("alt", alt)
23413 c.urlParams_.Set("prettyPrint", "false")
23414 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:disableAdvancedSiteSearch")
23415 urls += "?" + c.urlParams_.Encode()
23416 req, err := http.NewRequest("POST", urls, body)
23417 if err != nil {
23418 return nil, err
23419 }
23420 req.Header = reqHeaders
23421 googleapi.Expand(req.URL, map[string]string{
23422 "siteSearchEngine": c.siteSearchEngine,
23423 })
23424 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23425 }
23426
23427
23428
23429
23430
23431
23432
23433 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23434 gensupport.SetOptions(c.urlParams_, opts...)
23435 res, err := c.doRequest("json")
23436 if res != nil && res.StatusCode == http.StatusNotModified {
23437 if res.Body != nil {
23438 res.Body.Close()
23439 }
23440 return nil, gensupport.WrapError(&googleapi.Error{
23441 Code: res.StatusCode,
23442 Header: res.Header,
23443 })
23444 }
23445 if err != nil {
23446 return nil, err
23447 }
23448 defer googleapi.CloseBody(res)
23449 if err := googleapi.CheckResponse(res); err != nil {
23450 return nil, gensupport.WrapError(err)
23451 }
23452 ret := &GoogleLongrunningOperation{
23453 ServerResponse: googleapi.ServerResponse{
23454 Header: res.Header,
23455 HTTPStatusCode: res.StatusCode,
23456 },
23457 }
23458 target := &ret
23459 if err := gensupport.DecodeResponse(target, res); err != nil {
23460 return nil, err
23461 }
23462 return ret, nil
23463 }
23464
23465 type ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall struct {
23466 s *Service
23467 siteSearchEngine string
23468 googleclouddiscoveryenginev1enableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest
23469 urlParams_ gensupport.URLParams
23470 ctx_ context.Context
23471 header_ http.Header
23472 }
23473
23474
23475
23476
23477
23478
23479
23480 func (r *ProjectsLocationsDataStoresSiteSearchEngineService) EnableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1enableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchRequest) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
23481 c := &ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23482 c.siteSearchEngine = siteSearchEngine
23483 c.googleclouddiscoveryenginev1enableadvancedsitesearchrequest = googleclouddiscoveryenginev1enableadvancedsitesearchrequest
23484 return c
23485 }
23486
23487
23488
23489
23490 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
23491 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23492 return c
23493 }
23494
23495
23496 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
23497 c.ctx_ = ctx
23498 return c
23499 }
23500
23501
23502
23503 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Header() http.Header {
23504 if c.header_ == nil {
23505 c.header_ = make(http.Header)
23506 }
23507 return c.header_
23508 }
23509
23510 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
23511 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23512 var body io.Reader = nil
23513 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1enableadvancedsitesearchrequest)
23514 if err != nil {
23515 return nil, err
23516 }
23517 c.urlParams_.Set("alt", alt)
23518 c.urlParams_.Set("prettyPrint", "false")
23519 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:enableAdvancedSiteSearch")
23520 urls += "?" + c.urlParams_.Encode()
23521 req, err := http.NewRequest("POST", urls, body)
23522 if err != nil {
23523 return nil, err
23524 }
23525 req.Header = reqHeaders
23526 googleapi.Expand(req.URL, map[string]string{
23527 "siteSearchEngine": c.siteSearchEngine,
23528 })
23529 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23530 }
23531
23532
23533
23534
23535
23536
23537
23538 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23539 gensupport.SetOptions(c.urlParams_, opts...)
23540 res, err := c.doRequest("json")
23541 if res != nil && res.StatusCode == http.StatusNotModified {
23542 if res.Body != nil {
23543 res.Body.Close()
23544 }
23545 return nil, gensupport.WrapError(&googleapi.Error{
23546 Code: res.StatusCode,
23547 Header: res.Header,
23548 })
23549 }
23550 if err != nil {
23551 return nil, err
23552 }
23553 defer googleapi.CloseBody(res)
23554 if err := googleapi.CheckResponse(res); err != nil {
23555 return nil, gensupport.WrapError(err)
23556 }
23557 ret := &GoogleLongrunningOperation{
23558 ServerResponse: googleapi.ServerResponse{
23559 Header: res.Header,
23560 HTTPStatusCode: res.StatusCode,
23561 },
23562 }
23563 target := &ret
23564 if err := gensupport.DecodeResponse(target, res); err != nil {
23565 return nil, err
23566 }
23567 return ret, nil
23568 }
23569
23570 type ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall struct {
23571 s *Service
23572 siteSearchEngine string
23573 googleclouddiscoveryenginev1recrawlurisrequest *GoogleCloudDiscoveryengineV1RecrawlUrisRequest
23574 urlParams_ gensupport.URLParams
23575 ctx_ context.Context
23576 header_ http.Header
23577 }
23578
23579
23580
23581
23582
23583 func (r *ProjectsLocationsDataStoresSiteSearchEngineService) RecrawlUris(siteSearchEngine string, googleclouddiscoveryenginev1recrawlurisrequest *GoogleCloudDiscoveryengineV1RecrawlUrisRequest) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
23584 c := &ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23585 c.siteSearchEngine = siteSearchEngine
23586 c.googleclouddiscoveryenginev1recrawlurisrequest = googleclouddiscoveryenginev1recrawlurisrequest
23587 return c
23588 }
23589
23590
23591
23592
23593 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
23594 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23595 return c
23596 }
23597
23598
23599 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
23600 c.ctx_ = ctx
23601 return c
23602 }
23603
23604
23605
23606 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Header() http.Header {
23607 if c.header_ == nil {
23608 c.header_ = make(http.Header)
23609 }
23610 return c.header_
23611 }
23612
23613 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(alt string) (*http.Response, error) {
23614 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23615 var body io.Reader = nil
23616 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1recrawlurisrequest)
23617 if err != nil {
23618 return nil, err
23619 }
23620 c.urlParams_.Set("alt", alt)
23621 c.urlParams_.Set("prettyPrint", "false")
23622 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+siteSearchEngine}:recrawlUris")
23623 urls += "?" + c.urlParams_.Encode()
23624 req, err := http.NewRequest("POST", urls, body)
23625 if err != nil {
23626 return nil, err
23627 }
23628 req.Header = reqHeaders
23629 googleapi.Expand(req.URL, map[string]string{
23630 "siteSearchEngine": c.siteSearchEngine,
23631 })
23632 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23633 }
23634
23635
23636
23637
23638
23639
23640
23641 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23642 gensupport.SetOptions(c.urlParams_, opts...)
23643 res, err := c.doRequest("json")
23644 if res != nil && res.StatusCode == http.StatusNotModified {
23645 if res.Body != nil {
23646 res.Body.Close()
23647 }
23648 return nil, gensupport.WrapError(&googleapi.Error{
23649 Code: res.StatusCode,
23650 Header: res.Header,
23651 })
23652 }
23653 if err != nil {
23654 return nil, err
23655 }
23656 defer googleapi.CloseBody(res)
23657 if err := googleapi.CheckResponse(res); err != nil {
23658 return nil, gensupport.WrapError(err)
23659 }
23660 ret := &GoogleLongrunningOperation{
23661 ServerResponse: googleapi.ServerResponse{
23662 Header: res.Header,
23663 HTTPStatusCode: res.StatusCode,
23664 },
23665 }
23666 target := &ret
23667 if err := gensupport.DecodeResponse(target, res); err != nil {
23668 return nil, err
23669 }
23670 return ret, nil
23671 }
23672
23673 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct {
23674 s *Service
23675 parent string
23676 googleclouddiscoveryenginev1batchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest
23677 urlParams_ gensupport.URLParams
23678 ctx_ context.Context
23679 header_ http.Header
23680 }
23681
23682
23683
23684
23685
23686
23687
23688 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1batchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesRequest) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
23689 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23690 c.parent = parent
23691 c.googleclouddiscoveryenginev1batchcreatetargetsitesrequest = googleclouddiscoveryenginev1batchcreatetargetsitesrequest
23692 return c
23693 }
23694
23695
23696
23697
23698 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
23699 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23700 return c
23701 }
23702
23703
23704 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
23705 c.ctx_ = ctx
23706 return c
23707 }
23708
23709
23710
23711 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header {
23712 if c.header_ == nil {
23713 c.header_ = make(http.Header)
23714 }
23715 return c.header_
23716 }
23717
23718 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
23719 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23720 var body io.Reader = nil
23721 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1batchcreatetargetsitesrequest)
23722 if err != nil {
23723 return nil, err
23724 }
23725 c.urlParams_.Set("alt", alt)
23726 c.urlParams_.Set("prettyPrint", "false")
23727 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetSites:batchCreate")
23728 urls += "?" + c.urlParams_.Encode()
23729 req, err := http.NewRequest("POST", urls, body)
23730 if err != nil {
23731 return nil, err
23732 }
23733 req.Header = reqHeaders
23734 googleapi.Expand(req.URL, map[string]string{
23735 "parent": c.parent,
23736 })
23737 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23738 }
23739
23740
23741
23742
23743
23744
23745
23746 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23747 gensupport.SetOptions(c.urlParams_, opts...)
23748 res, err := c.doRequest("json")
23749 if res != nil && res.StatusCode == http.StatusNotModified {
23750 if res.Body != nil {
23751 res.Body.Close()
23752 }
23753 return nil, gensupport.WrapError(&googleapi.Error{
23754 Code: res.StatusCode,
23755 Header: res.Header,
23756 })
23757 }
23758 if err != nil {
23759 return nil, err
23760 }
23761 defer googleapi.CloseBody(res)
23762 if err := googleapi.CheckResponse(res); err != nil {
23763 return nil, gensupport.WrapError(err)
23764 }
23765 ret := &GoogleLongrunningOperation{
23766 ServerResponse: googleapi.ServerResponse{
23767 Header: res.Header,
23768 HTTPStatusCode: res.StatusCode,
23769 },
23770 }
23771 target := &ret
23772 if err := gensupport.DecodeResponse(target, res); err != nil {
23773 return nil, err
23774 }
23775 return ret, nil
23776 }
23777
23778 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall struct {
23779 s *Service
23780 parent string
23781 googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite
23782 urlParams_ gensupport.URLParams
23783 ctx_ context.Context
23784 header_ http.Header
23785 }
23786
23787
23788
23789
23790
23791
23792 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
23793 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23794 c.parent = parent
23795 c.googleclouddiscoveryenginev1targetsite = googleclouddiscoveryenginev1targetsite
23796 return c
23797 }
23798
23799
23800
23801
23802 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
23803 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23804 return c
23805 }
23806
23807
23808 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
23809 c.ctx_ = ctx
23810 return c
23811 }
23812
23813
23814
23815 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header {
23816 if c.header_ == nil {
23817 c.header_ = make(http.Header)
23818 }
23819 return c.header_
23820 }
23821
23822 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) {
23823 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23824 var body io.Reader = nil
23825 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1targetsite)
23826 if err != nil {
23827 return nil, err
23828 }
23829 c.urlParams_.Set("alt", alt)
23830 c.urlParams_.Set("prettyPrint", "false")
23831 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetSites")
23832 urls += "?" + c.urlParams_.Encode()
23833 req, err := http.NewRequest("POST", urls, body)
23834 if err != nil {
23835 return nil, err
23836 }
23837 req.Header = reqHeaders
23838 googleapi.Expand(req.URL, map[string]string{
23839 "parent": c.parent,
23840 })
23841 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23842 }
23843
23844
23845
23846
23847
23848
23849
23850 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23851 gensupport.SetOptions(c.urlParams_, opts...)
23852 res, err := c.doRequest("json")
23853 if res != nil && res.StatusCode == http.StatusNotModified {
23854 if res.Body != nil {
23855 res.Body.Close()
23856 }
23857 return nil, gensupport.WrapError(&googleapi.Error{
23858 Code: res.StatusCode,
23859 Header: res.Header,
23860 })
23861 }
23862 if err != nil {
23863 return nil, err
23864 }
23865 defer googleapi.CloseBody(res)
23866 if err := googleapi.CheckResponse(res); err != nil {
23867 return nil, gensupport.WrapError(err)
23868 }
23869 ret := &GoogleLongrunningOperation{
23870 ServerResponse: googleapi.ServerResponse{
23871 Header: res.Header,
23872 HTTPStatusCode: res.StatusCode,
23873 },
23874 }
23875 target := &ret
23876 if err := gensupport.DecodeResponse(target, res); err != nil {
23877 return nil, err
23878 }
23879 return ret, nil
23880 }
23881
23882 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall struct {
23883 s *Service
23884 name string
23885 urlParams_ gensupport.URLParams
23886 ctx_ context.Context
23887 header_ http.Header
23888 }
23889
23890
23891
23892
23893
23894
23895
23896
23897
23898 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Delete(name string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
23899 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23900 c.name = name
23901 return c
23902 }
23903
23904
23905
23906
23907 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
23908 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23909 return c
23910 }
23911
23912
23913 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
23914 c.ctx_ = ctx
23915 return c
23916 }
23917
23918
23919
23920 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Header() http.Header {
23921 if c.header_ == nil {
23922 c.header_ = make(http.Header)
23923 }
23924 return c.header_
23925 }
23926
23927 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) doRequest(alt string) (*http.Response, error) {
23928 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23929 var body io.Reader = nil
23930 c.urlParams_.Set("alt", alt)
23931 c.urlParams_.Set("prettyPrint", "false")
23932 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
23933 urls += "?" + c.urlParams_.Encode()
23934 req, err := http.NewRequest("DELETE", urls, body)
23935 if err != nil {
23936 return nil, err
23937 }
23938 req.Header = reqHeaders
23939 googleapi.Expand(req.URL, map[string]string{
23940 "name": c.name,
23941 })
23942 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23943 }
23944
23945
23946
23947
23948
23949
23950
23951 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23952 gensupport.SetOptions(c.urlParams_, opts...)
23953 res, err := c.doRequest("json")
23954 if res != nil && res.StatusCode == http.StatusNotModified {
23955 if res.Body != nil {
23956 res.Body.Close()
23957 }
23958 return nil, gensupport.WrapError(&googleapi.Error{
23959 Code: res.StatusCode,
23960 Header: res.Header,
23961 })
23962 }
23963 if err != nil {
23964 return nil, err
23965 }
23966 defer googleapi.CloseBody(res)
23967 if err := googleapi.CheckResponse(res); err != nil {
23968 return nil, gensupport.WrapError(err)
23969 }
23970 ret := &GoogleLongrunningOperation{
23971 ServerResponse: googleapi.ServerResponse{
23972 Header: res.Header,
23973 HTTPStatusCode: res.StatusCode,
23974 },
23975 }
23976 target := &ret
23977 if err := gensupport.DecodeResponse(target, res); err != nil {
23978 return nil, err
23979 }
23980 return ret, nil
23981 }
23982
23983 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall struct {
23984 s *Service
23985 name string
23986 urlParams_ gensupport.URLParams
23987 ifNoneMatch_ string
23988 ctx_ context.Context
23989 header_ http.Header
23990 }
23991
23992
23993
23994
23995
23996
23997
23998
23999
24000 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Get(name string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
24001 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24002 c.name = name
24003 return c
24004 }
24005
24006
24007
24008
24009 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
24010 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24011 return c
24012 }
24013
24014
24015
24016
24017 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
24018 c.ifNoneMatch_ = entityTag
24019 return c
24020 }
24021
24022
24023 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
24024 c.ctx_ = ctx
24025 return c
24026 }
24027
24028
24029
24030 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Header() http.Header {
24031 if c.header_ == nil {
24032 c.header_ = make(http.Header)
24033 }
24034 return c.header_
24035 }
24036
24037 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) doRequest(alt string) (*http.Response, error) {
24038 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24039 if c.ifNoneMatch_ != "" {
24040 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24041 }
24042 var body io.Reader = nil
24043 c.urlParams_.Set("alt", alt)
24044 c.urlParams_.Set("prettyPrint", "false")
24045 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24046 urls += "?" + c.urlParams_.Encode()
24047 req, err := http.NewRequest("GET", urls, body)
24048 if err != nil {
24049 return nil, err
24050 }
24051 req.Header = reqHeaders
24052 googleapi.Expand(req.URL, map[string]string{
24053 "name": c.name,
24054 })
24055 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24056 }
24057
24058
24059
24060
24061
24062
24063
24064 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1TargetSite, error) {
24065 gensupport.SetOptions(c.urlParams_, opts...)
24066 res, err := c.doRequest("json")
24067 if res != nil && res.StatusCode == http.StatusNotModified {
24068 if res.Body != nil {
24069 res.Body.Close()
24070 }
24071 return nil, gensupport.WrapError(&googleapi.Error{
24072 Code: res.StatusCode,
24073 Header: res.Header,
24074 })
24075 }
24076 if err != nil {
24077 return nil, err
24078 }
24079 defer googleapi.CloseBody(res)
24080 if err := googleapi.CheckResponse(res); err != nil {
24081 return nil, gensupport.WrapError(err)
24082 }
24083 ret := &GoogleCloudDiscoveryengineV1TargetSite{
24084 ServerResponse: googleapi.ServerResponse{
24085 Header: res.Header,
24086 HTTPStatusCode: res.StatusCode,
24087 },
24088 }
24089 target := &ret
24090 if err := gensupport.DecodeResponse(target, res); err != nil {
24091 return nil, err
24092 }
24093 return ret, nil
24094 }
24095
24096 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall struct {
24097 s *Service
24098 parent string
24099 urlParams_ gensupport.URLParams
24100 ifNoneMatch_ string
24101 ctx_ context.Context
24102 header_ http.Header
24103 }
24104
24105
24106
24107
24108
24109
24110
24111
24112 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) List(parent string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
24113 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24114 c.parent = parent
24115 return c
24116 }
24117
24118
24119
24120
24121
24122
24123 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
24124 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24125 return c
24126 }
24127
24128
24129
24130
24131
24132 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
24133 c.urlParams_.Set("pageToken", pageToken)
24134 return c
24135 }
24136
24137
24138
24139
24140 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
24141 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24142 return c
24143 }
24144
24145
24146
24147
24148 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
24149 c.ifNoneMatch_ = entityTag
24150 return c
24151 }
24152
24153
24154 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
24155 c.ctx_ = ctx
24156 return c
24157 }
24158
24159
24160
24161 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Header() http.Header {
24162 if c.header_ == nil {
24163 c.header_ = make(http.Header)
24164 }
24165 return c.header_
24166 }
24167
24168 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) doRequest(alt string) (*http.Response, error) {
24169 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24170 if c.ifNoneMatch_ != "" {
24171 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24172 }
24173 var body io.Reader = nil
24174 c.urlParams_.Set("alt", alt)
24175 c.urlParams_.Set("prettyPrint", "false")
24176 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/targetSites")
24177 urls += "?" + c.urlParams_.Encode()
24178 req, err := http.NewRequest("GET", urls, body)
24179 if err != nil {
24180 return nil, err
24181 }
24182 req.Header = reqHeaders
24183 googleapi.Expand(req.URL, map[string]string{
24184 "parent": c.parent,
24185 })
24186 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24187 }
24188
24189
24190
24191
24192
24193
24194
24195 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1ListTargetSitesResponse, error) {
24196 gensupport.SetOptions(c.urlParams_, opts...)
24197 res, err := c.doRequest("json")
24198 if res != nil && res.StatusCode == http.StatusNotModified {
24199 if res.Body != nil {
24200 res.Body.Close()
24201 }
24202 return nil, gensupport.WrapError(&googleapi.Error{
24203 Code: res.StatusCode,
24204 Header: res.Header,
24205 })
24206 }
24207 if err != nil {
24208 return nil, err
24209 }
24210 defer googleapi.CloseBody(res)
24211 if err := googleapi.CheckResponse(res); err != nil {
24212 return nil, gensupport.WrapError(err)
24213 }
24214 ret := &GoogleCloudDiscoveryengineV1ListTargetSitesResponse{
24215 ServerResponse: googleapi.ServerResponse{
24216 Header: res.Header,
24217 HTTPStatusCode: res.StatusCode,
24218 },
24219 }
24220 target := &ret
24221 if err := gensupport.DecodeResponse(target, res); err != nil {
24222 return nil, err
24223 }
24224 return ret, nil
24225 }
24226
24227
24228
24229
24230 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1ListTargetSitesResponse) error) error {
24231 c.ctx_ = ctx
24232 defer c.PageToken(c.urlParams_.Get("pageToken"))
24233 for {
24234 x, err := c.Do()
24235 if err != nil {
24236 return err
24237 }
24238 if err := f(x); err != nil {
24239 return err
24240 }
24241 if x.NextPageToken == "" {
24242 return nil
24243 }
24244 c.PageToken(x.NextPageToken)
24245 }
24246 }
24247
24248 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall struct {
24249 s *Service
24250 name string
24251 googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite
24252 urlParams_ gensupport.URLParams
24253 ctx_ context.Context
24254 header_ http.Header
24255 }
24256
24257
24258
24259
24260
24261
24262
24263 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Patch(name string, googleclouddiscoveryenginev1targetsite *GoogleCloudDiscoveryengineV1TargetSite) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
24264 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24265 c.name = name
24266 c.googleclouddiscoveryenginev1targetsite = googleclouddiscoveryenginev1targetsite
24267 return c
24268 }
24269
24270
24271
24272
24273 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
24274 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24275 return c
24276 }
24277
24278
24279 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
24280 c.ctx_ = ctx
24281 return c
24282 }
24283
24284
24285
24286 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Header() http.Header {
24287 if c.header_ == nil {
24288 c.header_ = make(http.Header)
24289 }
24290 return c.header_
24291 }
24292
24293 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequest(alt string) (*http.Response, error) {
24294 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24295 var body io.Reader = nil
24296 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1targetsite)
24297 if err != nil {
24298 return nil, err
24299 }
24300 c.urlParams_.Set("alt", alt)
24301 c.urlParams_.Set("prettyPrint", "false")
24302 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
24303 urls += "?" + c.urlParams_.Encode()
24304 req, err := http.NewRequest("PATCH", urls, body)
24305 if err != nil {
24306 return nil, err
24307 }
24308 req.Header = reqHeaders
24309 googleapi.Expand(req.URL, map[string]string{
24310 "name": c.name,
24311 })
24312 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24313 }
24314
24315
24316
24317
24318
24319
24320
24321 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24322 gensupport.SetOptions(c.urlParams_, opts...)
24323 res, err := c.doRequest("json")
24324 if res != nil && res.StatusCode == http.StatusNotModified {
24325 if res.Body != nil {
24326 res.Body.Close()
24327 }
24328 return nil, gensupport.WrapError(&googleapi.Error{
24329 Code: res.StatusCode,
24330 Header: res.Header,
24331 })
24332 }
24333 if err != nil {
24334 return nil, err
24335 }
24336 defer googleapi.CloseBody(res)
24337 if err := googleapi.CheckResponse(res); err != nil {
24338 return nil, gensupport.WrapError(err)
24339 }
24340 ret := &GoogleLongrunningOperation{
24341 ServerResponse: googleapi.ServerResponse{
24342 Header: res.Header,
24343 HTTPStatusCode: res.StatusCode,
24344 },
24345 }
24346 target := &ret
24347 if err := gensupport.DecodeResponse(target, res); err != nil {
24348 return nil, err
24349 }
24350 return ret, nil
24351 }
24352
24353 type ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall struct {
24354 s *Service
24355 parent string
24356 googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest
24357 urlParams_ gensupport.URLParams
24358 ctx_ context.Context
24359 header_ http.Header
24360 }
24361
24362
24363
24364
24365
24366
24367 func (r *ProjectsLocationsDataStoresSuggestionDenyListEntriesService) Import(parent string, googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesRequest) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
24368 c := &ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24369 c.parent = parent
24370 c.googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest = googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest
24371 return c
24372 }
24373
24374
24375
24376
24377 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
24378 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24379 return c
24380 }
24381
24382
24383 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
24384 c.ctx_ = ctx
24385 return c
24386 }
24387
24388
24389
24390 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Header() http.Header {
24391 if c.header_ == nil {
24392 c.header_ = make(http.Header)
24393 }
24394 return c.header_
24395 }
24396
24397 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) doRequest(alt string) (*http.Response, error) {
24398 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24399 var body io.Reader = nil
24400 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1importsuggestiondenylistentriesrequest)
24401 if err != nil {
24402 return nil, err
24403 }
24404 c.urlParams_.Set("alt", alt)
24405 c.urlParams_.Set("prettyPrint", "false")
24406 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/suggestionDenyListEntries:import")
24407 urls += "?" + c.urlParams_.Encode()
24408 req, err := http.NewRequest("POST", urls, body)
24409 if err != nil {
24410 return nil, err
24411 }
24412 req.Header = reqHeaders
24413 googleapi.Expand(req.URL, map[string]string{
24414 "parent": c.parent,
24415 })
24416 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24417 }
24418
24419
24420
24421
24422
24423
24424
24425 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24426 gensupport.SetOptions(c.urlParams_, opts...)
24427 res, err := c.doRequest("json")
24428 if res != nil && res.StatusCode == http.StatusNotModified {
24429 if res.Body != nil {
24430 res.Body.Close()
24431 }
24432 return nil, gensupport.WrapError(&googleapi.Error{
24433 Code: res.StatusCode,
24434 Header: res.Header,
24435 })
24436 }
24437 if err != nil {
24438 return nil, err
24439 }
24440 defer googleapi.CloseBody(res)
24441 if err := googleapi.CheckResponse(res); err != nil {
24442 return nil, gensupport.WrapError(err)
24443 }
24444 ret := &GoogleLongrunningOperation{
24445 ServerResponse: googleapi.ServerResponse{
24446 Header: res.Header,
24447 HTTPStatusCode: res.StatusCode,
24448 },
24449 }
24450 target := &ret
24451 if err := gensupport.DecodeResponse(target, res); err != nil {
24452 return nil, err
24453 }
24454 return ret, nil
24455 }
24456
24457 type ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall struct {
24458 s *Service
24459 parent string
24460 googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest
24461 urlParams_ gensupport.URLParams
24462 ctx_ context.Context
24463 header_ http.Header
24464 }
24465
24466
24467
24468
24469
24470
24471 func (r *ProjectsLocationsDataStoresSuggestionDenyListEntriesService) Purge(parent string, googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesRequest) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
24472 c := &ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24473 c.parent = parent
24474 c.googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest = googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest
24475 return c
24476 }
24477
24478
24479
24480
24481 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
24482 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24483 return c
24484 }
24485
24486
24487 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
24488 c.ctx_ = ctx
24489 return c
24490 }
24491
24492
24493
24494 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Header() http.Header {
24495 if c.header_ == nil {
24496 c.header_ = make(http.Header)
24497 }
24498 return c.header_
24499 }
24500
24501 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) doRequest(alt string) (*http.Response, error) {
24502 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24503 var body io.Reader = nil
24504 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1purgesuggestiondenylistentriesrequest)
24505 if err != nil {
24506 return nil, err
24507 }
24508 c.urlParams_.Set("alt", alt)
24509 c.urlParams_.Set("prettyPrint", "false")
24510 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/suggestionDenyListEntries:purge")
24511 urls += "?" + c.urlParams_.Encode()
24512 req, err := http.NewRequest("POST", urls, body)
24513 if err != nil {
24514 return nil, err
24515 }
24516 req.Header = reqHeaders
24517 googleapi.Expand(req.URL, map[string]string{
24518 "parent": c.parent,
24519 })
24520 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24521 }
24522
24523
24524
24525
24526
24527
24528
24529 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24530 gensupport.SetOptions(c.urlParams_, opts...)
24531 res, err := c.doRequest("json")
24532 if res != nil && res.StatusCode == http.StatusNotModified {
24533 if res.Body != nil {
24534 res.Body.Close()
24535 }
24536 return nil, gensupport.WrapError(&googleapi.Error{
24537 Code: res.StatusCode,
24538 Header: res.Header,
24539 })
24540 }
24541 if err != nil {
24542 return nil, err
24543 }
24544 defer googleapi.CloseBody(res)
24545 if err := googleapi.CheckResponse(res); err != nil {
24546 return nil, gensupport.WrapError(err)
24547 }
24548 ret := &GoogleLongrunningOperation{
24549 ServerResponse: googleapi.ServerResponse{
24550 Header: res.Header,
24551 HTTPStatusCode: res.StatusCode,
24552 },
24553 }
24554 target := &ret
24555 if err := gensupport.DecodeResponse(target, res); err != nil {
24556 return nil, err
24557 }
24558 return ret, nil
24559 }
24560
24561 type ProjectsLocationsDataStoresUserEventsCollectCall struct {
24562 s *Service
24563 parent string
24564 urlParams_ gensupport.URLParams
24565 ifNoneMatch_ string
24566 ctx_ context.Context
24567 header_ http.Header
24568 }
24569
24570
24571
24572
24573
24574
24575
24576
24577
24578 func (r *ProjectsLocationsDataStoresUserEventsService) Collect(parent string) *ProjectsLocationsDataStoresUserEventsCollectCall {
24579 c := &ProjectsLocationsDataStoresUserEventsCollectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24580 c.parent = parent
24581 return c
24582 }
24583
24584
24585
24586
24587 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Ets(ets int64) *ProjectsLocationsDataStoresUserEventsCollectCall {
24588 c.urlParams_.Set("ets", fmt.Sprint(ets))
24589 return c
24590 }
24591
24592
24593
24594
24595
24596 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Uri(uri string) *ProjectsLocationsDataStoresUserEventsCollectCall {
24597 c.urlParams_.Set("uri", uri)
24598 return c
24599 }
24600
24601
24602
24603 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) UserEvent(userEvent string) *ProjectsLocationsDataStoresUserEventsCollectCall {
24604 c.urlParams_.Set("userEvent", userEvent)
24605 return c
24606 }
24607
24608
24609
24610
24611 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsCollectCall {
24612 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24613 return c
24614 }
24615
24616
24617
24618
24619 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresUserEventsCollectCall {
24620 c.ifNoneMatch_ = entityTag
24621 return c
24622 }
24623
24624
24625 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsCollectCall {
24626 c.ctx_ = ctx
24627 return c
24628 }
24629
24630
24631
24632 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Header() http.Header {
24633 if c.header_ == nil {
24634 c.header_ = make(http.Header)
24635 }
24636 return c.header_
24637 }
24638
24639 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) {
24640 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24641 if c.ifNoneMatch_ != "" {
24642 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24643 }
24644 var body io.Reader = nil
24645 c.urlParams_.Set("alt", alt)
24646 c.urlParams_.Set("prettyPrint", "false")
24647 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:collect")
24648 urls += "?" + c.urlParams_.Encode()
24649 req, err := http.NewRequest("GET", urls, body)
24650 if err != nil {
24651 return nil, err
24652 }
24653 req.Header = reqHeaders
24654 googleapi.Expand(req.URL, map[string]string{
24655 "parent": c.parent,
24656 })
24657 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24658 }
24659
24660
24661
24662
24663
24664
24665
24666 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
24667 gensupport.SetOptions(c.urlParams_, opts...)
24668 res, err := c.doRequest("json")
24669 if res != nil && res.StatusCode == http.StatusNotModified {
24670 if res.Body != nil {
24671 res.Body.Close()
24672 }
24673 return nil, gensupport.WrapError(&googleapi.Error{
24674 Code: res.StatusCode,
24675 Header: res.Header,
24676 })
24677 }
24678 if err != nil {
24679 return nil, err
24680 }
24681 defer googleapi.CloseBody(res)
24682 if err := googleapi.CheckResponse(res); err != nil {
24683 return nil, gensupport.WrapError(err)
24684 }
24685 ret := &GoogleApiHttpBody{
24686 ServerResponse: googleapi.ServerResponse{
24687 Header: res.Header,
24688 HTTPStatusCode: res.StatusCode,
24689 },
24690 }
24691 target := &ret
24692 if err := gensupport.DecodeResponse(target, res); err != nil {
24693 return nil, err
24694 }
24695 return ret, nil
24696 }
24697
24698 type ProjectsLocationsDataStoresUserEventsImportCall struct {
24699 s *Service
24700 parent string
24701 googleclouddiscoveryenginev1importusereventsrequest *GoogleCloudDiscoveryengineV1ImportUserEventsRequest
24702 urlParams_ gensupport.URLParams
24703 ctx_ context.Context
24704 header_ http.Header
24705 }
24706
24707
24708
24709
24710
24711
24712
24713
24714
24715
24716 func (r *ProjectsLocationsDataStoresUserEventsService) Import(parent string, googleclouddiscoveryenginev1importusereventsrequest *GoogleCloudDiscoveryengineV1ImportUserEventsRequest) *ProjectsLocationsDataStoresUserEventsImportCall {
24717 c := &ProjectsLocationsDataStoresUserEventsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24718 c.parent = parent
24719 c.googleclouddiscoveryenginev1importusereventsrequest = googleclouddiscoveryenginev1importusereventsrequest
24720 return c
24721 }
24722
24723
24724
24725
24726 func (c *ProjectsLocationsDataStoresUserEventsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsImportCall {
24727 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24728 return c
24729 }
24730
24731
24732 func (c *ProjectsLocationsDataStoresUserEventsImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsImportCall {
24733 c.ctx_ = ctx
24734 return c
24735 }
24736
24737
24738
24739 func (c *ProjectsLocationsDataStoresUserEventsImportCall) Header() http.Header {
24740 if c.header_ == nil {
24741 c.header_ = make(http.Header)
24742 }
24743 return c.header_
24744 }
24745
24746 func (c *ProjectsLocationsDataStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) {
24747 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24748 var body io.Reader = nil
24749 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1importusereventsrequest)
24750 if err != nil {
24751 return nil, err
24752 }
24753 c.urlParams_.Set("alt", alt)
24754 c.urlParams_.Set("prettyPrint", "false")
24755 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:import")
24756 urls += "?" + c.urlParams_.Encode()
24757 req, err := http.NewRequest("POST", urls, body)
24758 if err != nil {
24759 return nil, err
24760 }
24761 req.Header = reqHeaders
24762 googleapi.Expand(req.URL, map[string]string{
24763 "parent": c.parent,
24764 })
24765 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24766 }
24767
24768
24769
24770
24771
24772
24773
24774 func (c *ProjectsLocationsDataStoresUserEventsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24775 gensupport.SetOptions(c.urlParams_, opts...)
24776 res, err := c.doRequest("json")
24777 if res != nil && res.StatusCode == http.StatusNotModified {
24778 if res.Body != nil {
24779 res.Body.Close()
24780 }
24781 return nil, gensupport.WrapError(&googleapi.Error{
24782 Code: res.StatusCode,
24783 Header: res.Header,
24784 })
24785 }
24786 if err != nil {
24787 return nil, err
24788 }
24789 defer googleapi.CloseBody(res)
24790 if err := googleapi.CheckResponse(res); err != nil {
24791 return nil, gensupport.WrapError(err)
24792 }
24793 ret := &GoogleLongrunningOperation{
24794 ServerResponse: googleapi.ServerResponse{
24795 Header: res.Header,
24796 HTTPStatusCode: res.StatusCode,
24797 },
24798 }
24799 target := &ret
24800 if err := gensupport.DecodeResponse(target, res); err != nil {
24801 return nil, err
24802 }
24803 return ret, nil
24804 }
24805
24806 type ProjectsLocationsDataStoresUserEventsWriteCall struct {
24807 s *Service
24808 parent string
24809 googleclouddiscoveryenginev1userevent *GoogleCloudDiscoveryengineV1UserEvent
24810 urlParams_ gensupport.URLParams
24811 ctx_ context.Context
24812 header_ http.Header
24813 }
24814
24815
24816
24817
24818
24819
24820
24821
24822
24823 func (r *ProjectsLocationsDataStoresUserEventsService) Write(parent string, googleclouddiscoveryenginev1userevent *GoogleCloudDiscoveryengineV1UserEvent) *ProjectsLocationsDataStoresUserEventsWriteCall {
24824 c := &ProjectsLocationsDataStoresUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24825 c.parent = parent
24826 c.googleclouddiscoveryenginev1userevent = googleclouddiscoveryenginev1userevent
24827 return c
24828 }
24829
24830
24831
24832
24833 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsWriteCall {
24834 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24835 return c
24836 }
24837
24838
24839 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsWriteCall {
24840 c.ctx_ = ctx
24841 return c
24842 }
24843
24844
24845
24846 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Header() http.Header {
24847 if c.header_ == nil {
24848 c.header_ = make(http.Header)
24849 }
24850 return c.header_
24851 }
24852
24853 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
24854 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24855 var body io.Reader = nil
24856 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1userevent)
24857 if err != nil {
24858 return nil, err
24859 }
24860 c.urlParams_.Set("alt", alt)
24861 c.urlParams_.Set("prettyPrint", "false")
24862 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:write")
24863 urls += "?" + c.urlParams_.Encode()
24864 req, err := http.NewRequest("POST", urls, body)
24865 if err != nil {
24866 return nil, err
24867 }
24868 req.Header = reqHeaders
24869 googleapi.Expand(req.URL, map[string]string{
24870 "parent": c.parent,
24871 })
24872 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24873 }
24874
24875
24876
24877
24878
24879
24880
24881 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1UserEvent, error) {
24882 gensupport.SetOptions(c.urlParams_, opts...)
24883 res, err := c.doRequest("json")
24884 if res != nil && res.StatusCode == http.StatusNotModified {
24885 if res.Body != nil {
24886 res.Body.Close()
24887 }
24888 return nil, gensupport.WrapError(&googleapi.Error{
24889 Code: res.StatusCode,
24890 Header: res.Header,
24891 })
24892 }
24893 if err != nil {
24894 return nil, err
24895 }
24896 defer googleapi.CloseBody(res)
24897 if err := googleapi.CheckResponse(res); err != nil {
24898 return nil, gensupport.WrapError(err)
24899 }
24900 ret := &GoogleCloudDiscoveryengineV1UserEvent{
24901 ServerResponse: googleapi.ServerResponse{
24902 Header: res.Header,
24903 HTTPStatusCode: res.StatusCode,
24904 },
24905 }
24906 target := &ret
24907 if err := gensupport.DecodeResponse(target, res); err != nil {
24908 return nil, err
24909 }
24910 return ret, nil
24911 }
24912
24913 type ProjectsLocationsGroundingConfigsCheckCall struct {
24914 s *Service
24915 groundingConfig string
24916 googleclouddiscoveryenginev1checkgroundingrequest *GoogleCloudDiscoveryengineV1CheckGroundingRequest
24917 urlParams_ gensupport.URLParams
24918 ctx_ context.Context
24919 header_ http.Header
24920 }
24921
24922
24923
24924
24925
24926 func (r *ProjectsLocationsGroundingConfigsService) Check(groundingConfig string, googleclouddiscoveryenginev1checkgroundingrequest *GoogleCloudDiscoveryengineV1CheckGroundingRequest) *ProjectsLocationsGroundingConfigsCheckCall {
24927 c := &ProjectsLocationsGroundingConfigsCheckCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24928 c.groundingConfig = groundingConfig
24929 c.googleclouddiscoveryenginev1checkgroundingrequest = googleclouddiscoveryenginev1checkgroundingrequest
24930 return c
24931 }
24932
24933
24934
24935
24936 func (c *ProjectsLocationsGroundingConfigsCheckCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroundingConfigsCheckCall {
24937 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24938 return c
24939 }
24940
24941
24942 func (c *ProjectsLocationsGroundingConfigsCheckCall) Context(ctx context.Context) *ProjectsLocationsGroundingConfigsCheckCall {
24943 c.ctx_ = ctx
24944 return c
24945 }
24946
24947
24948
24949 func (c *ProjectsLocationsGroundingConfigsCheckCall) Header() http.Header {
24950 if c.header_ == nil {
24951 c.header_ = make(http.Header)
24952 }
24953 return c.header_
24954 }
24955
24956 func (c *ProjectsLocationsGroundingConfigsCheckCall) doRequest(alt string) (*http.Response, error) {
24957 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24958 var body io.Reader = nil
24959 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1checkgroundingrequest)
24960 if err != nil {
24961 return nil, err
24962 }
24963 c.urlParams_.Set("alt", alt)
24964 c.urlParams_.Set("prettyPrint", "false")
24965 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+groundingConfig}:check")
24966 urls += "?" + c.urlParams_.Encode()
24967 req, err := http.NewRequest("POST", urls, body)
24968 if err != nil {
24969 return nil, err
24970 }
24971 req.Header = reqHeaders
24972 googleapi.Expand(req.URL, map[string]string{
24973 "groundingConfig": c.groundingConfig,
24974 })
24975 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24976 }
24977
24978
24979
24980
24981
24982
24983
24984 func (c *ProjectsLocationsGroundingConfigsCheckCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1CheckGroundingResponse, error) {
24985 gensupport.SetOptions(c.urlParams_, opts...)
24986 res, err := c.doRequest("json")
24987 if res != nil && res.StatusCode == http.StatusNotModified {
24988 if res.Body != nil {
24989 res.Body.Close()
24990 }
24991 return nil, gensupport.WrapError(&googleapi.Error{
24992 Code: res.StatusCode,
24993 Header: res.Header,
24994 })
24995 }
24996 if err != nil {
24997 return nil, err
24998 }
24999 defer googleapi.CloseBody(res)
25000 if err := googleapi.CheckResponse(res); err != nil {
25001 return nil, gensupport.WrapError(err)
25002 }
25003 ret := &GoogleCloudDiscoveryengineV1CheckGroundingResponse{
25004 ServerResponse: googleapi.ServerResponse{
25005 Header: res.Header,
25006 HTTPStatusCode: res.StatusCode,
25007 },
25008 }
25009 target := &ret
25010 if err := gensupport.DecodeResponse(target, res); err != nil {
25011 return nil, err
25012 }
25013 return ret, nil
25014 }
25015
25016 type ProjectsLocationsOperationsGetCall struct {
25017 s *Service
25018 name string
25019 urlParams_ gensupport.URLParams
25020 ifNoneMatch_ string
25021 ctx_ context.Context
25022 header_ http.Header
25023 }
25024
25025
25026
25027
25028
25029
25030 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
25031 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25032 c.name = name
25033 return c
25034 }
25035
25036
25037
25038
25039 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
25040 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25041 return c
25042 }
25043
25044
25045
25046
25047 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
25048 c.ifNoneMatch_ = entityTag
25049 return c
25050 }
25051
25052
25053 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
25054 c.ctx_ = ctx
25055 return c
25056 }
25057
25058
25059
25060 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
25061 if c.header_ == nil {
25062 c.header_ = make(http.Header)
25063 }
25064 return c.header_
25065 }
25066
25067 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
25068 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25069 if c.ifNoneMatch_ != "" {
25070 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25071 }
25072 var body io.Reader = nil
25073 c.urlParams_.Set("alt", alt)
25074 c.urlParams_.Set("prettyPrint", "false")
25075 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25076 urls += "?" + c.urlParams_.Encode()
25077 req, err := http.NewRequest("GET", urls, body)
25078 if err != nil {
25079 return nil, err
25080 }
25081 req.Header = reqHeaders
25082 googleapi.Expand(req.URL, map[string]string{
25083 "name": c.name,
25084 })
25085 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25086 }
25087
25088
25089
25090
25091
25092
25093
25094 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25095 gensupport.SetOptions(c.urlParams_, opts...)
25096 res, err := c.doRequest("json")
25097 if res != nil && res.StatusCode == http.StatusNotModified {
25098 if res.Body != nil {
25099 res.Body.Close()
25100 }
25101 return nil, gensupport.WrapError(&googleapi.Error{
25102 Code: res.StatusCode,
25103 Header: res.Header,
25104 })
25105 }
25106 if err != nil {
25107 return nil, err
25108 }
25109 defer googleapi.CloseBody(res)
25110 if err := googleapi.CheckResponse(res); err != nil {
25111 return nil, gensupport.WrapError(err)
25112 }
25113 ret := &GoogleLongrunningOperation{
25114 ServerResponse: googleapi.ServerResponse{
25115 Header: res.Header,
25116 HTTPStatusCode: res.StatusCode,
25117 },
25118 }
25119 target := &ret
25120 if err := gensupport.DecodeResponse(target, res); err != nil {
25121 return nil, err
25122 }
25123 return ret, nil
25124 }
25125
25126 type ProjectsLocationsOperationsListCall struct {
25127 s *Service
25128 name string
25129 urlParams_ gensupport.URLParams
25130 ifNoneMatch_ string
25131 ctx_ context.Context
25132 header_ http.Header
25133 }
25134
25135
25136
25137
25138
25139 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
25140 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25141 c.name = name
25142 return c
25143 }
25144
25145
25146 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
25147 c.urlParams_.Set("filter", filter)
25148 return c
25149 }
25150
25151
25152
25153 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
25154 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25155 return c
25156 }
25157
25158
25159
25160 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
25161 c.urlParams_.Set("pageToken", pageToken)
25162 return c
25163 }
25164
25165
25166
25167
25168 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
25169 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25170 return c
25171 }
25172
25173
25174
25175
25176 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
25177 c.ifNoneMatch_ = entityTag
25178 return c
25179 }
25180
25181
25182 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
25183 c.ctx_ = ctx
25184 return c
25185 }
25186
25187
25188
25189 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
25190 if c.header_ == nil {
25191 c.header_ = make(http.Header)
25192 }
25193 return c.header_
25194 }
25195
25196 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
25197 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25198 if c.ifNoneMatch_ != "" {
25199 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25200 }
25201 var body io.Reader = nil
25202 c.urlParams_.Set("alt", alt)
25203 c.urlParams_.Set("prettyPrint", "false")
25204 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
25205 urls += "?" + c.urlParams_.Encode()
25206 req, err := http.NewRequest("GET", urls, body)
25207 if err != nil {
25208 return nil, err
25209 }
25210 req.Header = reqHeaders
25211 googleapi.Expand(req.URL, map[string]string{
25212 "name": c.name,
25213 })
25214 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25215 }
25216
25217
25218
25219
25220
25221
25222
25223 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
25224 gensupport.SetOptions(c.urlParams_, opts...)
25225 res, err := c.doRequest("json")
25226 if res != nil && res.StatusCode == http.StatusNotModified {
25227 if res.Body != nil {
25228 res.Body.Close()
25229 }
25230 return nil, gensupport.WrapError(&googleapi.Error{
25231 Code: res.StatusCode,
25232 Header: res.Header,
25233 })
25234 }
25235 if err != nil {
25236 return nil, err
25237 }
25238 defer googleapi.CloseBody(res)
25239 if err := googleapi.CheckResponse(res); err != nil {
25240 return nil, gensupport.WrapError(err)
25241 }
25242 ret := &GoogleLongrunningListOperationsResponse{
25243 ServerResponse: googleapi.ServerResponse{
25244 Header: res.Header,
25245 HTTPStatusCode: res.StatusCode,
25246 },
25247 }
25248 target := &ret
25249 if err := gensupport.DecodeResponse(target, res); err != nil {
25250 return nil, err
25251 }
25252 return ret, nil
25253 }
25254
25255
25256
25257
25258 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
25259 c.ctx_ = ctx
25260 defer c.PageToken(c.urlParams_.Get("pageToken"))
25261 for {
25262 x, err := c.Do()
25263 if err != nil {
25264 return err
25265 }
25266 if err := f(x); err != nil {
25267 return err
25268 }
25269 if x.NextPageToken == "" {
25270 return nil
25271 }
25272 c.PageToken(x.NextPageToken)
25273 }
25274 }
25275
25276 type ProjectsLocationsUserEventsWriteCall struct {
25277 s *Service
25278 parent string
25279 googleclouddiscoveryenginev1userevent *GoogleCloudDiscoveryengineV1UserEvent
25280 urlParams_ gensupport.URLParams
25281 ctx_ context.Context
25282 header_ http.Header
25283 }
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293 func (r *ProjectsLocationsUserEventsService) Write(parent string, googleclouddiscoveryenginev1userevent *GoogleCloudDiscoveryengineV1UserEvent) *ProjectsLocationsUserEventsWriteCall {
25294 c := &ProjectsLocationsUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25295 c.parent = parent
25296 c.googleclouddiscoveryenginev1userevent = googleclouddiscoveryenginev1userevent
25297 return c
25298 }
25299
25300
25301
25302
25303 func (c *ProjectsLocationsUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsUserEventsWriteCall {
25304 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25305 return c
25306 }
25307
25308
25309 func (c *ProjectsLocationsUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsUserEventsWriteCall {
25310 c.ctx_ = ctx
25311 return c
25312 }
25313
25314
25315
25316 func (c *ProjectsLocationsUserEventsWriteCall) Header() http.Header {
25317 if c.header_ == nil {
25318 c.header_ = make(http.Header)
25319 }
25320 return c.header_
25321 }
25322
25323 func (c *ProjectsLocationsUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
25324 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25325 var body io.Reader = nil
25326 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1userevent)
25327 if err != nil {
25328 return nil, err
25329 }
25330 c.urlParams_.Set("alt", alt)
25331 c.urlParams_.Set("prettyPrint", "false")
25332 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/userEvents:write")
25333 urls += "?" + c.urlParams_.Encode()
25334 req, err := http.NewRequest("POST", urls, body)
25335 if err != nil {
25336 return nil, err
25337 }
25338 req.Header = reqHeaders
25339 googleapi.Expand(req.URL, map[string]string{
25340 "parent": c.parent,
25341 })
25342 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25343 }
25344
25345
25346
25347
25348
25349
25350
25351 func (c *ProjectsLocationsUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1UserEvent, error) {
25352 gensupport.SetOptions(c.urlParams_, opts...)
25353 res, err := c.doRequest("json")
25354 if res != nil && res.StatusCode == http.StatusNotModified {
25355 if res.Body != nil {
25356 res.Body.Close()
25357 }
25358 return nil, gensupport.WrapError(&googleapi.Error{
25359 Code: res.StatusCode,
25360 Header: res.Header,
25361 })
25362 }
25363 if err != nil {
25364 return nil, err
25365 }
25366 defer googleapi.CloseBody(res)
25367 if err := googleapi.CheckResponse(res); err != nil {
25368 return nil, gensupport.WrapError(err)
25369 }
25370 ret := &GoogleCloudDiscoveryengineV1UserEvent{
25371 ServerResponse: googleapi.ServerResponse{
25372 Header: res.Header,
25373 HTTPStatusCode: res.StatusCode,
25374 },
25375 }
25376 target := &ret
25377 if err := gensupport.DecodeResponse(target, res); err != nil {
25378 return nil, err
25379 }
25380 return ret, nil
25381 }
25382
25383 type ProjectsOperationsCancelCall struct {
25384 s *Service
25385 name string
25386 googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
25387 urlParams_ gensupport.URLParams
25388 ctx_ context.Context
25389 header_ http.Header
25390 }
25391
25392
25393
25394
25395
25396
25397
25398
25399
25400
25401
25402
25403 func (r *ProjectsOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsOperationsCancelCall {
25404 c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25405 c.name = name
25406 c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
25407 return c
25408 }
25409
25410
25411
25412
25413 func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
25414 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25415 return c
25416 }
25417
25418
25419 func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
25420 c.ctx_ = ctx
25421 return c
25422 }
25423
25424
25425
25426 func (c *ProjectsOperationsCancelCall) Header() http.Header {
25427 if c.header_ == nil {
25428 c.header_ = make(http.Header)
25429 }
25430 return c.header_
25431 }
25432
25433 func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
25434 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25435 var body io.Reader = nil
25436 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
25437 if err != nil {
25438 return nil, err
25439 }
25440 c.urlParams_.Set("alt", alt)
25441 c.urlParams_.Set("prettyPrint", "false")
25442 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
25443 urls += "?" + c.urlParams_.Encode()
25444 req, err := http.NewRequest("POST", urls, body)
25445 if err != nil {
25446 return nil, err
25447 }
25448 req.Header = reqHeaders
25449 googleapi.Expand(req.URL, map[string]string{
25450 "name": c.name,
25451 })
25452 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25453 }
25454
25455
25456
25457
25458
25459
25460
25461 func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25462 gensupport.SetOptions(c.urlParams_, opts...)
25463 res, err := c.doRequest("json")
25464 if res != nil && res.StatusCode == http.StatusNotModified {
25465 if res.Body != nil {
25466 res.Body.Close()
25467 }
25468 return nil, gensupport.WrapError(&googleapi.Error{
25469 Code: res.StatusCode,
25470 Header: res.Header,
25471 })
25472 }
25473 if err != nil {
25474 return nil, err
25475 }
25476 defer googleapi.CloseBody(res)
25477 if err := googleapi.CheckResponse(res); err != nil {
25478 return nil, gensupport.WrapError(err)
25479 }
25480 ret := &GoogleProtobufEmpty{
25481 ServerResponse: googleapi.ServerResponse{
25482 Header: res.Header,
25483 HTTPStatusCode: res.StatusCode,
25484 },
25485 }
25486 target := &ret
25487 if err := gensupport.DecodeResponse(target, res); err != nil {
25488 return nil, err
25489 }
25490 return ret, nil
25491 }
25492
25493 type ProjectsOperationsGetCall struct {
25494 s *Service
25495 name string
25496 urlParams_ gensupport.URLParams
25497 ifNoneMatch_ string
25498 ctx_ context.Context
25499 header_ http.Header
25500 }
25501
25502
25503
25504
25505
25506
25507 func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
25508 c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25509 c.name = name
25510 return c
25511 }
25512
25513
25514
25515
25516 func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
25517 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25518 return c
25519 }
25520
25521
25522
25523
25524 func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
25525 c.ifNoneMatch_ = entityTag
25526 return c
25527 }
25528
25529
25530 func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
25531 c.ctx_ = ctx
25532 return c
25533 }
25534
25535
25536
25537 func (c *ProjectsOperationsGetCall) Header() http.Header {
25538 if c.header_ == nil {
25539 c.header_ = make(http.Header)
25540 }
25541 return c.header_
25542 }
25543
25544 func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
25545 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25546 if c.ifNoneMatch_ != "" {
25547 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25548 }
25549 var body io.Reader = nil
25550 c.urlParams_.Set("alt", alt)
25551 c.urlParams_.Set("prettyPrint", "false")
25552 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
25553 urls += "?" + c.urlParams_.Encode()
25554 req, err := http.NewRequest("GET", urls, body)
25555 if err != nil {
25556 return nil, err
25557 }
25558 req.Header = reqHeaders
25559 googleapi.Expand(req.URL, map[string]string{
25560 "name": c.name,
25561 })
25562 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25563 }
25564
25565
25566
25567
25568
25569
25570
25571 func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25572 gensupport.SetOptions(c.urlParams_, opts...)
25573 res, err := c.doRequest("json")
25574 if res != nil && res.StatusCode == http.StatusNotModified {
25575 if res.Body != nil {
25576 res.Body.Close()
25577 }
25578 return nil, gensupport.WrapError(&googleapi.Error{
25579 Code: res.StatusCode,
25580 Header: res.Header,
25581 })
25582 }
25583 if err != nil {
25584 return nil, err
25585 }
25586 defer googleapi.CloseBody(res)
25587 if err := googleapi.CheckResponse(res); err != nil {
25588 return nil, gensupport.WrapError(err)
25589 }
25590 ret := &GoogleLongrunningOperation{
25591 ServerResponse: googleapi.ServerResponse{
25592 Header: res.Header,
25593 HTTPStatusCode: res.StatusCode,
25594 },
25595 }
25596 target := &ret
25597 if err := gensupport.DecodeResponse(target, res); err != nil {
25598 return nil, err
25599 }
25600 return ret, nil
25601 }
25602
25603 type ProjectsOperationsListCall struct {
25604 s *Service
25605 name string
25606 urlParams_ gensupport.URLParams
25607 ifNoneMatch_ string
25608 ctx_ context.Context
25609 header_ http.Header
25610 }
25611
25612
25613
25614
25615
25616 func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
25617 c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25618 c.name = name
25619 return c
25620 }
25621
25622
25623 func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
25624 c.urlParams_.Set("filter", filter)
25625 return c
25626 }
25627
25628
25629
25630 func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
25631 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25632 return c
25633 }
25634
25635
25636
25637 func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
25638 c.urlParams_.Set("pageToken", pageToken)
25639 return c
25640 }
25641
25642
25643
25644
25645 func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
25646 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25647 return c
25648 }
25649
25650
25651
25652
25653 func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
25654 c.ifNoneMatch_ = entityTag
25655 return c
25656 }
25657
25658
25659 func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
25660 c.ctx_ = ctx
25661 return c
25662 }
25663
25664
25665
25666 func (c *ProjectsOperationsListCall) Header() http.Header {
25667 if c.header_ == nil {
25668 c.header_ = make(http.Header)
25669 }
25670 return c.header_
25671 }
25672
25673 func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
25674 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25675 if c.ifNoneMatch_ != "" {
25676 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25677 }
25678 var body io.Reader = nil
25679 c.urlParams_.Set("alt", alt)
25680 c.urlParams_.Set("prettyPrint", "false")
25681 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
25682 urls += "?" + c.urlParams_.Encode()
25683 req, err := http.NewRequest("GET", urls, body)
25684 if err != nil {
25685 return nil, err
25686 }
25687 req.Header = reqHeaders
25688 googleapi.Expand(req.URL, map[string]string{
25689 "name": c.name,
25690 })
25691 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25692 }
25693
25694
25695
25696
25697
25698
25699
25700 func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
25701 gensupport.SetOptions(c.urlParams_, opts...)
25702 res, err := c.doRequest("json")
25703 if res != nil && res.StatusCode == http.StatusNotModified {
25704 if res.Body != nil {
25705 res.Body.Close()
25706 }
25707 return nil, gensupport.WrapError(&googleapi.Error{
25708 Code: res.StatusCode,
25709 Header: res.Header,
25710 })
25711 }
25712 if err != nil {
25713 return nil, err
25714 }
25715 defer googleapi.CloseBody(res)
25716 if err := googleapi.CheckResponse(res); err != nil {
25717 return nil, gensupport.WrapError(err)
25718 }
25719 ret := &GoogleLongrunningListOperationsResponse{
25720 ServerResponse: googleapi.ServerResponse{
25721 Header: res.Header,
25722 HTTPStatusCode: res.StatusCode,
25723 },
25724 }
25725 target := &ret
25726 if err := gensupport.DecodeResponse(target, res); err != nil {
25727 return nil, err
25728 }
25729 return ret, nil
25730 }
25731
25732
25733
25734
25735 func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
25736 c.ctx_ = ctx
25737 defer c.PageToken(c.urlParams_.Get("pageToken"))
25738 for {
25739 x, err := c.Do()
25740 if err != nil {
25741 return err
25742 }
25743 if err := f(x); err != nil {
25744 return err
25745 }
25746 if x.NextPageToken == "" {
25747 return nil
25748 }
25749 c.PageToken(x.NextPageToken)
25750 }
25751 }
25752
View as plain text