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:v1beta"
90 const apiName = "discoveryengine"
91 const apiVersion = "v1beta"
92 const basePath = "https://discoveryengine.googleapis.com/"
93 const basePathTemplate = "https://discoveryengine.UNIVERSE_DOMAIN/"
94 const mtlsBasePath = "https://discoveryengine.mtls.googleapis.com/"
95
96
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.RankingConfigs = NewProjectsLocationsRankingConfigsService(s)
179 rs.UserEvents = NewProjectsLocationsUserEventsService(s)
180 return rs
181 }
182
183 type ProjectsLocationsService struct {
184 s *Service
185
186 Collections *ProjectsLocationsCollectionsService
187
188 DataStores *ProjectsLocationsDataStoresService
189
190 GroundingConfigs *ProjectsLocationsGroundingConfigsService
191
192 Operations *ProjectsLocationsOperationsService
193
194 RankingConfigs *ProjectsLocationsRankingConfigsService
195
196 UserEvents *ProjectsLocationsUserEventsService
197 }
198
199 func NewProjectsLocationsCollectionsService(s *Service) *ProjectsLocationsCollectionsService {
200 rs := &ProjectsLocationsCollectionsService{s: s}
201 rs.DataConnector = NewProjectsLocationsCollectionsDataConnectorService(s)
202 rs.DataStores = NewProjectsLocationsCollectionsDataStoresService(s)
203 rs.Engines = NewProjectsLocationsCollectionsEnginesService(s)
204 rs.Operations = NewProjectsLocationsCollectionsOperationsService(s)
205 return rs
206 }
207
208 type ProjectsLocationsCollectionsService struct {
209 s *Service
210
211 DataConnector *ProjectsLocationsCollectionsDataConnectorService
212
213 DataStores *ProjectsLocationsCollectionsDataStoresService
214
215 Engines *ProjectsLocationsCollectionsEnginesService
216
217 Operations *ProjectsLocationsCollectionsOperationsService
218 }
219
220 func NewProjectsLocationsCollectionsDataConnectorService(s *Service) *ProjectsLocationsCollectionsDataConnectorService {
221 rs := &ProjectsLocationsCollectionsDataConnectorService{s: s}
222 rs.Operations = NewProjectsLocationsCollectionsDataConnectorOperationsService(s)
223 return rs
224 }
225
226 type ProjectsLocationsCollectionsDataConnectorService struct {
227 s *Service
228
229 Operations *ProjectsLocationsCollectionsDataConnectorOperationsService
230 }
231
232 func NewProjectsLocationsCollectionsDataConnectorOperationsService(s *Service) *ProjectsLocationsCollectionsDataConnectorOperationsService {
233 rs := &ProjectsLocationsCollectionsDataConnectorOperationsService{s: s}
234 return rs
235 }
236
237 type ProjectsLocationsCollectionsDataConnectorOperationsService struct {
238 s *Service
239 }
240
241 func NewProjectsLocationsCollectionsDataStoresService(s *Service) *ProjectsLocationsCollectionsDataStoresService {
242 rs := &ProjectsLocationsCollectionsDataStoresService{s: s}
243 rs.Branches = NewProjectsLocationsCollectionsDataStoresBranchesService(s)
244 rs.Conversations = NewProjectsLocationsCollectionsDataStoresConversationsService(s)
245 rs.CustomModels = NewProjectsLocationsCollectionsDataStoresCustomModelsService(s)
246 rs.Models = NewProjectsLocationsCollectionsDataStoresModelsService(s)
247 rs.Operations = NewProjectsLocationsCollectionsDataStoresOperationsService(s)
248 rs.Schemas = NewProjectsLocationsCollectionsDataStoresSchemasService(s)
249 rs.ServingConfigs = NewProjectsLocationsCollectionsDataStoresServingConfigsService(s)
250 rs.Sessions = NewProjectsLocationsCollectionsDataStoresSessionsService(s)
251 rs.SiteSearchEngine = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s)
252 rs.SuggestionDenyListEntries = NewProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService(s)
253 rs.UserEvents = NewProjectsLocationsCollectionsDataStoresUserEventsService(s)
254 return rs
255 }
256
257 type ProjectsLocationsCollectionsDataStoresService struct {
258 s *Service
259
260 Branches *ProjectsLocationsCollectionsDataStoresBranchesService
261
262 Conversations *ProjectsLocationsCollectionsDataStoresConversationsService
263
264 CustomModels *ProjectsLocationsCollectionsDataStoresCustomModelsService
265
266 Models *ProjectsLocationsCollectionsDataStoresModelsService
267
268 Operations *ProjectsLocationsCollectionsDataStoresOperationsService
269
270 Schemas *ProjectsLocationsCollectionsDataStoresSchemasService
271
272 ServingConfigs *ProjectsLocationsCollectionsDataStoresServingConfigsService
273
274 Sessions *ProjectsLocationsCollectionsDataStoresSessionsService
275
276 SiteSearchEngine *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService
277
278 SuggestionDenyListEntries *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService
279
280 UserEvents *ProjectsLocationsCollectionsDataStoresUserEventsService
281 }
282
283 func NewProjectsLocationsCollectionsDataStoresBranchesService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesService {
284 rs := &ProjectsLocationsCollectionsDataStoresBranchesService{s: s}
285 rs.Documents = NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s)
286 rs.Operations = NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s)
287 return rs
288 }
289
290 type ProjectsLocationsCollectionsDataStoresBranchesService struct {
291 s *Service
292
293 Documents *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService
294
295 Operations *ProjectsLocationsCollectionsDataStoresBranchesOperationsService
296 }
297
298 func NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService {
299 rs := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsService{s: s}
300 return rs
301 }
302
303 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsService struct {
304 s *Service
305 }
306
307 func NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesOperationsService {
308 rs := &ProjectsLocationsCollectionsDataStoresBranchesOperationsService{s: s}
309 return rs
310 }
311
312 type ProjectsLocationsCollectionsDataStoresBranchesOperationsService struct {
313 s *Service
314 }
315
316 func NewProjectsLocationsCollectionsDataStoresConversationsService(s *Service) *ProjectsLocationsCollectionsDataStoresConversationsService {
317 rs := &ProjectsLocationsCollectionsDataStoresConversationsService{s: s}
318 return rs
319 }
320
321 type ProjectsLocationsCollectionsDataStoresConversationsService struct {
322 s *Service
323 }
324
325 func NewProjectsLocationsCollectionsDataStoresCustomModelsService(s *Service) *ProjectsLocationsCollectionsDataStoresCustomModelsService {
326 rs := &ProjectsLocationsCollectionsDataStoresCustomModelsService{s: s}
327 return rs
328 }
329
330 type ProjectsLocationsCollectionsDataStoresCustomModelsService struct {
331 s *Service
332 }
333
334 func NewProjectsLocationsCollectionsDataStoresModelsService(s *Service) *ProjectsLocationsCollectionsDataStoresModelsService {
335 rs := &ProjectsLocationsCollectionsDataStoresModelsService{s: s}
336 rs.Operations = NewProjectsLocationsCollectionsDataStoresModelsOperationsService(s)
337 return rs
338 }
339
340 type ProjectsLocationsCollectionsDataStoresModelsService struct {
341 s *Service
342
343 Operations *ProjectsLocationsCollectionsDataStoresModelsOperationsService
344 }
345
346 func NewProjectsLocationsCollectionsDataStoresModelsOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresModelsOperationsService {
347 rs := &ProjectsLocationsCollectionsDataStoresModelsOperationsService{s: s}
348 return rs
349 }
350
351 type ProjectsLocationsCollectionsDataStoresModelsOperationsService struct {
352 s *Service
353 }
354
355 func NewProjectsLocationsCollectionsDataStoresOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresOperationsService {
356 rs := &ProjectsLocationsCollectionsDataStoresOperationsService{s: s}
357 return rs
358 }
359
360 type ProjectsLocationsCollectionsDataStoresOperationsService struct {
361 s *Service
362 }
363
364 func NewProjectsLocationsCollectionsDataStoresSchemasService(s *Service) *ProjectsLocationsCollectionsDataStoresSchemasService {
365 rs := &ProjectsLocationsCollectionsDataStoresSchemasService{s: s}
366 rs.Operations = NewProjectsLocationsCollectionsDataStoresSchemasOperationsService(s)
367 return rs
368 }
369
370 type ProjectsLocationsCollectionsDataStoresSchemasService struct {
371 s *Service
372
373 Operations *ProjectsLocationsCollectionsDataStoresSchemasOperationsService
374 }
375
376 func NewProjectsLocationsCollectionsDataStoresSchemasOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSchemasOperationsService {
377 rs := &ProjectsLocationsCollectionsDataStoresSchemasOperationsService{s: s}
378 return rs
379 }
380
381 type ProjectsLocationsCollectionsDataStoresSchemasOperationsService struct {
382 s *Service
383 }
384
385 func NewProjectsLocationsCollectionsDataStoresServingConfigsService(s *Service) *ProjectsLocationsCollectionsDataStoresServingConfigsService {
386 rs := &ProjectsLocationsCollectionsDataStoresServingConfigsService{s: s}
387 return rs
388 }
389
390 type ProjectsLocationsCollectionsDataStoresServingConfigsService struct {
391 s *Service
392 }
393
394 func NewProjectsLocationsCollectionsDataStoresSessionsService(s *Service) *ProjectsLocationsCollectionsDataStoresSessionsService {
395 rs := &ProjectsLocationsCollectionsDataStoresSessionsService{s: s}
396 rs.Answers = NewProjectsLocationsCollectionsDataStoresSessionsAnswersService(s)
397 return rs
398 }
399
400 type ProjectsLocationsCollectionsDataStoresSessionsService struct {
401 s *Service
402
403 Answers *ProjectsLocationsCollectionsDataStoresSessionsAnswersService
404 }
405
406 func NewProjectsLocationsCollectionsDataStoresSessionsAnswersService(s *Service) *ProjectsLocationsCollectionsDataStoresSessionsAnswersService {
407 rs := &ProjectsLocationsCollectionsDataStoresSessionsAnswersService{s: s}
408 return rs
409 }
410
411 type ProjectsLocationsCollectionsDataStoresSessionsAnswersService struct {
412 s *Service
413 }
414
415 func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService {
416 rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineService{s: s}
417 rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s)
418 rs.TargetSites = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s)
419 return rs
420 }
421
422 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineService struct {
423 s *Service
424
425 Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService
426
427 TargetSites *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService
428 }
429
430 func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService {
431 rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService{s: s}
432 return rs
433 }
434
435 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService struct {
436 s *Service
437 }
438
439 func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService {
440 rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService{s: s}
441 rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s)
442 return rs
443 }
444
445 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService struct {
446 s *Service
447
448 Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService
449 }
450
451 func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService {
452 rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService{s: s}
453 return rs
454 }
455
456 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService struct {
457 s *Service
458 }
459
460 func NewProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService(s *Service) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService {
461 rs := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService{s: s}
462 return rs
463 }
464
465 type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService struct {
466 s *Service
467 }
468
469 func NewProjectsLocationsCollectionsDataStoresUserEventsService(s *Service) *ProjectsLocationsCollectionsDataStoresUserEventsService {
470 rs := &ProjectsLocationsCollectionsDataStoresUserEventsService{s: s}
471 return rs
472 }
473
474 type ProjectsLocationsCollectionsDataStoresUserEventsService struct {
475 s *Service
476 }
477
478 func NewProjectsLocationsCollectionsEnginesService(s *Service) *ProjectsLocationsCollectionsEnginesService {
479 rs := &ProjectsLocationsCollectionsEnginesService{s: s}
480 rs.Conversations = NewProjectsLocationsCollectionsEnginesConversationsService(s)
481 rs.Operations = NewProjectsLocationsCollectionsEnginesOperationsService(s)
482 rs.ServingConfigs = NewProjectsLocationsCollectionsEnginesServingConfigsService(s)
483 rs.Sessions = NewProjectsLocationsCollectionsEnginesSessionsService(s)
484 return rs
485 }
486
487 type ProjectsLocationsCollectionsEnginesService struct {
488 s *Service
489
490 Conversations *ProjectsLocationsCollectionsEnginesConversationsService
491
492 Operations *ProjectsLocationsCollectionsEnginesOperationsService
493
494 ServingConfigs *ProjectsLocationsCollectionsEnginesServingConfigsService
495
496 Sessions *ProjectsLocationsCollectionsEnginesSessionsService
497 }
498
499 func NewProjectsLocationsCollectionsEnginesConversationsService(s *Service) *ProjectsLocationsCollectionsEnginesConversationsService {
500 rs := &ProjectsLocationsCollectionsEnginesConversationsService{s: s}
501 return rs
502 }
503
504 type ProjectsLocationsCollectionsEnginesConversationsService struct {
505 s *Service
506 }
507
508 func NewProjectsLocationsCollectionsEnginesOperationsService(s *Service) *ProjectsLocationsCollectionsEnginesOperationsService {
509 rs := &ProjectsLocationsCollectionsEnginesOperationsService{s: s}
510 return rs
511 }
512
513 type ProjectsLocationsCollectionsEnginesOperationsService struct {
514 s *Service
515 }
516
517 func NewProjectsLocationsCollectionsEnginesServingConfigsService(s *Service) *ProjectsLocationsCollectionsEnginesServingConfigsService {
518 rs := &ProjectsLocationsCollectionsEnginesServingConfigsService{s: s}
519 return rs
520 }
521
522 type ProjectsLocationsCollectionsEnginesServingConfigsService struct {
523 s *Service
524 }
525
526 func NewProjectsLocationsCollectionsEnginesSessionsService(s *Service) *ProjectsLocationsCollectionsEnginesSessionsService {
527 rs := &ProjectsLocationsCollectionsEnginesSessionsService{s: s}
528 rs.Answers = NewProjectsLocationsCollectionsEnginesSessionsAnswersService(s)
529 return rs
530 }
531
532 type ProjectsLocationsCollectionsEnginesSessionsService struct {
533 s *Service
534
535 Answers *ProjectsLocationsCollectionsEnginesSessionsAnswersService
536 }
537
538 func NewProjectsLocationsCollectionsEnginesSessionsAnswersService(s *Service) *ProjectsLocationsCollectionsEnginesSessionsAnswersService {
539 rs := &ProjectsLocationsCollectionsEnginesSessionsAnswersService{s: s}
540 return rs
541 }
542
543 type ProjectsLocationsCollectionsEnginesSessionsAnswersService struct {
544 s *Service
545 }
546
547 func NewProjectsLocationsCollectionsOperationsService(s *Service) *ProjectsLocationsCollectionsOperationsService {
548 rs := &ProjectsLocationsCollectionsOperationsService{s: s}
549 return rs
550 }
551
552 type ProjectsLocationsCollectionsOperationsService struct {
553 s *Service
554 }
555
556 func NewProjectsLocationsDataStoresService(s *Service) *ProjectsLocationsDataStoresService {
557 rs := &ProjectsLocationsDataStoresService{s: s}
558 rs.Branches = NewProjectsLocationsDataStoresBranchesService(s)
559 rs.Conversations = NewProjectsLocationsDataStoresConversationsService(s)
560 rs.Models = NewProjectsLocationsDataStoresModelsService(s)
561 rs.Operations = NewProjectsLocationsDataStoresOperationsService(s)
562 rs.Schemas = NewProjectsLocationsDataStoresSchemasService(s)
563 rs.ServingConfigs = NewProjectsLocationsDataStoresServingConfigsService(s)
564 rs.Sessions = NewProjectsLocationsDataStoresSessionsService(s)
565 rs.SiteSearchEngine = NewProjectsLocationsDataStoresSiteSearchEngineService(s)
566 rs.SuggestionDenyListEntries = NewProjectsLocationsDataStoresSuggestionDenyListEntriesService(s)
567 rs.UserEvents = NewProjectsLocationsDataStoresUserEventsService(s)
568 return rs
569 }
570
571 type ProjectsLocationsDataStoresService struct {
572 s *Service
573
574 Branches *ProjectsLocationsDataStoresBranchesService
575
576 Conversations *ProjectsLocationsDataStoresConversationsService
577
578 Models *ProjectsLocationsDataStoresModelsService
579
580 Operations *ProjectsLocationsDataStoresOperationsService
581
582 Schemas *ProjectsLocationsDataStoresSchemasService
583
584 ServingConfigs *ProjectsLocationsDataStoresServingConfigsService
585
586 Sessions *ProjectsLocationsDataStoresSessionsService
587
588 SiteSearchEngine *ProjectsLocationsDataStoresSiteSearchEngineService
589
590 SuggestionDenyListEntries *ProjectsLocationsDataStoresSuggestionDenyListEntriesService
591
592 UserEvents *ProjectsLocationsDataStoresUserEventsService
593 }
594
595 func NewProjectsLocationsDataStoresBranchesService(s *Service) *ProjectsLocationsDataStoresBranchesService {
596 rs := &ProjectsLocationsDataStoresBranchesService{s: s}
597 rs.Documents = NewProjectsLocationsDataStoresBranchesDocumentsService(s)
598 rs.Operations = NewProjectsLocationsDataStoresBranchesOperationsService(s)
599 return rs
600 }
601
602 type ProjectsLocationsDataStoresBranchesService struct {
603 s *Service
604
605 Documents *ProjectsLocationsDataStoresBranchesDocumentsService
606
607 Operations *ProjectsLocationsDataStoresBranchesOperationsService
608 }
609
610 func NewProjectsLocationsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsDataStoresBranchesDocumentsService {
611 rs := &ProjectsLocationsDataStoresBranchesDocumentsService{s: s}
612 return rs
613 }
614
615 type ProjectsLocationsDataStoresBranchesDocumentsService struct {
616 s *Service
617 }
618
619 func NewProjectsLocationsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsDataStoresBranchesOperationsService {
620 rs := &ProjectsLocationsDataStoresBranchesOperationsService{s: s}
621 return rs
622 }
623
624 type ProjectsLocationsDataStoresBranchesOperationsService struct {
625 s *Service
626 }
627
628 func NewProjectsLocationsDataStoresConversationsService(s *Service) *ProjectsLocationsDataStoresConversationsService {
629 rs := &ProjectsLocationsDataStoresConversationsService{s: s}
630 return rs
631 }
632
633 type ProjectsLocationsDataStoresConversationsService struct {
634 s *Service
635 }
636
637 func NewProjectsLocationsDataStoresModelsService(s *Service) *ProjectsLocationsDataStoresModelsService {
638 rs := &ProjectsLocationsDataStoresModelsService{s: s}
639 rs.Operations = NewProjectsLocationsDataStoresModelsOperationsService(s)
640 return rs
641 }
642
643 type ProjectsLocationsDataStoresModelsService struct {
644 s *Service
645
646 Operations *ProjectsLocationsDataStoresModelsOperationsService
647 }
648
649 func NewProjectsLocationsDataStoresModelsOperationsService(s *Service) *ProjectsLocationsDataStoresModelsOperationsService {
650 rs := &ProjectsLocationsDataStoresModelsOperationsService{s: s}
651 return rs
652 }
653
654 type ProjectsLocationsDataStoresModelsOperationsService struct {
655 s *Service
656 }
657
658 func NewProjectsLocationsDataStoresOperationsService(s *Service) *ProjectsLocationsDataStoresOperationsService {
659 rs := &ProjectsLocationsDataStoresOperationsService{s: s}
660 return rs
661 }
662
663 type ProjectsLocationsDataStoresOperationsService struct {
664 s *Service
665 }
666
667 func NewProjectsLocationsDataStoresSchemasService(s *Service) *ProjectsLocationsDataStoresSchemasService {
668 rs := &ProjectsLocationsDataStoresSchemasService{s: s}
669 return rs
670 }
671
672 type ProjectsLocationsDataStoresSchemasService struct {
673 s *Service
674 }
675
676 func NewProjectsLocationsDataStoresServingConfigsService(s *Service) *ProjectsLocationsDataStoresServingConfigsService {
677 rs := &ProjectsLocationsDataStoresServingConfigsService{s: s}
678 return rs
679 }
680
681 type ProjectsLocationsDataStoresServingConfigsService struct {
682 s *Service
683 }
684
685 func NewProjectsLocationsDataStoresSessionsService(s *Service) *ProjectsLocationsDataStoresSessionsService {
686 rs := &ProjectsLocationsDataStoresSessionsService{s: s}
687 rs.Answers = NewProjectsLocationsDataStoresSessionsAnswersService(s)
688 return rs
689 }
690
691 type ProjectsLocationsDataStoresSessionsService struct {
692 s *Service
693
694 Answers *ProjectsLocationsDataStoresSessionsAnswersService
695 }
696
697 func NewProjectsLocationsDataStoresSessionsAnswersService(s *Service) *ProjectsLocationsDataStoresSessionsAnswersService {
698 rs := &ProjectsLocationsDataStoresSessionsAnswersService{s: s}
699 return rs
700 }
701
702 type ProjectsLocationsDataStoresSessionsAnswersService struct {
703 s *Service
704 }
705
706 func NewProjectsLocationsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineService {
707 rs := &ProjectsLocationsDataStoresSiteSearchEngineService{s: s}
708 rs.TargetSites = NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s)
709 return rs
710 }
711
712 type ProjectsLocationsDataStoresSiteSearchEngineService struct {
713 s *Service
714
715 TargetSites *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService
716 }
717
718 func NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService {
719 rs := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService{s: s}
720 return rs
721 }
722
723 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService struct {
724 s *Service
725 }
726
727 func NewProjectsLocationsDataStoresSuggestionDenyListEntriesService(s *Service) *ProjectsLocationsDataStoresSuggestionDenyListEntriesService {
728 rs := &ProjectsLocationsDataStoresSuggestionDenyListEntriesService{s: s}
729 return rs
730 }
731
732 type ProjectsLocationsDataStoresSuggestionDenyListEntriesService struct {
733 s *Service
734 }
735
736 func NewProjectsLocationsDataStoresUserEventsService(s *Service) *ProjectsLocationsDataStoresUserEventsService {
737 rs := &ProjectsLocationsDataStoresUserEventsService{s: s}
738 return rs
739 }
740
741 type ProjectsLocationsDataStoresUserEventsService struct {
742 s *Service
743 }
744
745 func NewProjectsLocationsGroundingConfigsService(s *Service) *ProjectsLocationsGroundingConfigsService {
746 rs := &ProjectsLocationsGroundingConfigsService{s: s}
747 return rs
748 }
749
750 type ProjectsLocationsGroundingConfigsService struct {
751 s *Service
752 }
753
754 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
755 rs := &ProjectsLocationsOperationsService{s: s}
756 return rs
757 }
758
759 type ProjectsLocationsOperationsService struct {
760 s *Service
761 }
762
763 func NewProjectsLocationsRankingConfigsService(s *Service) *ProjectsLocationsRankingConfigsService {
764 rs := &ProjectsLocationsRankingConfigsService{s: s}
765 return rs
766 }
767
768 type ProjectsLocationsRankingConfigsService struct {
769 s *Service
770 }
771
772 func NewProjectsLocationsUserEventsService(s *Service) *ProjectsLocationsUserEventsService {
773 rs := &ProjectsLocationsUserEventsService{s: s}
774 return rs
775 }
776
777 type ProjectsLocationsUserEventsService struct {
778 s *Service
779 }
780
781 func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
782 rs := &ProjectsOperationsService{s: s}
783 return rs
784 }
785
786 type ProjectsOperationsService struct {
787 s *Service
788 }
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807 type GoogleApiHttpBody struct {
808
809
810 ContentType string `json:"contentType,omitempty"`
811
812 Data string `json:"data,omitempty"`
813
814
815 Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
816
817
818 googleapi.ServerResponse `json:"-"`
819
820
821
822
823
824 ForceSendFields []string `json:"-"`
825
826
827
828
829 NullFields []string `json:"-"`
830 }
831
832 func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
833 type NoMethod GoogleApiHttpBody
834 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
835 }
836
837
838
839 type GoogleCloudDiscoveryengineLoggingErrorContext struct {
840
841
842 HttpRequest *GoogleCloudDiscoveryengineLoggingHttpRequestContext `json:"httpRequest,omitempty"`
843
844
845 ReportLocation *GoogleCloudDiscoveryengineLoggingSourceLocation `json:"reportLocation,omitempty"`
846
847
848
849
850
851 ForceSendFields []string `json:"-"`
852
853
854
855
856 NullFields []string `json:"-"`
857 }
858
859 func (s *GoogleCloudDiscoveryengineLoggingErrorContext) MarshalJSON() ([]byte, error) {
860 type NoMethod GoogleCloudDiscoveryengineLoggingErrorContext
861 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
862 }
863
864
865
866 type GoogleCloudDiscoveryengineLoggingErrorLog struct {
867
868 Context *GoogleCloudDiscoveryengineLoggingErrorContext `json:"context,omitempty"`
869
870 ImportPayload *GoogleCloudDiscoveryengineLoggingImportErrorContext `json:"importPayload,omitempty"`
871
872 Message string `json:"message,omitempty"`
873
874
875
876
877
878
879 RequestPayload googleapi.RawMessage `json:"requestPayload,omitempty"`
880
881
882
883
884
885
886
887 ResponsePayload googleapi.RawMessage `json:"responsePayload,omitempty"`
888
889 ServiceContext *GoogleCloudDiscoveryengineLoggingServiceContext `json:"serviceContext,omitempty"`
890
891 Status *GoogleRpcStatus `json:"status,omitempty"`
892
893
894
895
896
897 ForceSendFields []string `json:"-"`
898
899
900
901
902 NullFields []string `json:"-"`
903 }
904
905 func (s *GoogleCloudDiscoveryengineLoggingErrorLog) MarshalJSON() ([]byte, error) {
906 type NoMethod GoogleCloudDiscoveryengineLoggingErrorLog
907 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
908 }
909
910
911
912 type GoogleCloudDiscoveryengineLoggingHttpRequestContext struct {
913
914 ResponseStatusCode int64 `json:"responseStatusCode,omitempty"`
915
916
917
918
919
920 ForceSendFields []string `json:"-"`
921
922
923
924
925 NullFields []string `json:"-"`
926 }
927
928 func (s *GoogleCloudDiscoveryengineLoggingHttpRequestContext) MarshalJSON() ([]byte, error) {
929 type NoMethod GoogleCloudDiscoveryengineLoggingHttpRequestContext
930 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
931 }
932
933
934
935
936
937 type GoogleCloudDiscoveryengineLoggingImportErrorContext struct {
938
939
940 Document string `json:"document,omitempty"`
941
942
943 GcsPath string `json:"gcsPath,omitempty"`
944
945
946 LineNumber string `json:"lineNumber,omitempty"`
947
948 Operation string `json:"operation,omitempty"`
949
950
951 UserEvent string `json:"userEvent,omitempty"`
952
953
954
955
956
957 ForceSendFields []string `json:"-"`
958
959
960
961
962 NullFields []string `json:"-"`
963 }
964
965 func (s *GoogleCloudDiscoveryengineLoggingImportErrorContext) MarshalJSON() ([]byte, error) {
966 type NoMethod GoogleCloudDiscoveryengineLoggingImportErrorContext
967 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
968 }
969
970
971
972 type GoogleCloudDiscoveryengineLoggingServiceContext struct {
973
974
975 Service string `json:"service,omitempty"`
976
977
978
979
980
981 ForceSendFields []string `json:"-"`
982
983
984
985
986 NullFields []string `json:"-"`
987 }
988
989 func (s *GoogleCloudDiscoveryengineLoggingServiceContext) MarshalJSON() ([]byte, error) {
990 type NoMethod GoogleCloudDiscoveryengineLoggingServiceContext
991 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
992 }
993
994
995
996 type GoogleCloudDiscoveryengineLoggingSourceLocation struct {
997
998
999 FunctionName string `json:"functionName,omitempty"`
1000
1001
1002
1003
1004
1005 ForceSendFields []string `json:"-"`
1006
1007
1008
1009
1010 NullFields []string `json:"-"`
1011 }
1012
1013 func (s *GoogleCloudDiscoveryengineLoggingSourceLocation) MarshalJSON() ([]byte, error) {
1014 type NoMethod GoogleCloudDiscoveryengineLoggingSourceLocation
1015 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1016 }
1017
1018
1019
1020
1021
1022 type GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata struct {
1023
1024 CreateTime string `json:"createTime,omitempty"`
1025
1026
1027 UpdateTime string `json:"updateTime,omitempty"`
1028
1029
1030
1031
1032
1033 ForceSendFields []string `json:"-"`
1034
1035
1036
1037
1038 NullFields []string `json:"-"`
1039 }
1040
1041 func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
1042 type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata
1043 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1044 }
1045
1046
1047
1048 type GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse struct {
1049
1050 TargetSites []*GoogleCloudDiscoveryengineV1TargetSite `json:"targetSites,omitempty"`
1051
1052
1053
1054
1055
1056 ForceSendFields []string `json:"-"`
1057
1058
1059
1060
1061 NullFields []string `json:"-"`
1062 }
1063
1064 func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
1065 type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse
1066 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1067 }
1068
1069
1070
1071
1072 type GoogleCloudDiscoveryengineV1CreateDataStoreMetadata struct {
1073
1074 CreateTime string `json:"createTime,omitempty"`
1075
1076
1077 UpdateTime string `json:"updateTime,omitempty"`
1078
1079
1080
1081
1082
1083 ForceSendFields []string `json:"-"`
1084
1085
1086
1087
1088 NullFields []string `json:"-"`
1089 }
1090
1091 func (s *GoogleCloudDiscoveryengineV1CreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
1092 type NoMethod GoogleCloudDiscoveryengineV1CreateDataStoreMetadata
1093 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1094 }
1095
1096
1097
1098
1099 type GoogleCloudDiscoveryengineV1CreateEngineMetadata struct {
1100
1101 CreateTime string `json:"createTime,omitempty"`
1102
1103
1104 UpdateTime string `json:"updateTime,omitempty"`
1105
1106
1107
1108
1109
1110 ForceSendFields []string `json:"-"`
1111
1112
1113
1114
1115 NullFields []string `json:"-"`
1116 }
1117
1118 func (s *GoogleCloudDiscoveryengineV1CreateEngineMetadata) MarshalJSON() ([]byte, error) {
1119 type NoMethod GoogleCloudDiscoveryengineV1CreateEngineMetadata
1120 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1121 }
1122
1123
1124
1125 type GoogleCloudDiscoveryengineV1CreateSchemaMetadata struct {
1126
1127 CreateTime string `json:"createTime,omitempty"`
1128
1129
1130 UpdateTime string `json:"updateTime,omitempty"`
1131
1132
1133
1134
1135
1136 ForceSendFields []string `json:"-"`
1137
1138
1139
1140
1141 NullFields []string `json:"-"`
1142 }
1143
1144 func (s *GoogleCloudDiscoveryengineV1CreateSchemaMetadata) MarshalJSON() ([]byte, error) {
1145 type NoMethod GoogleCloudDiscoveryengineV1CreateSchemaMetadata
1146 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1147 }
1148
1149
1150
1151
1152 type GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata struct {
1153
1154 CreateTime string `json:"createTime,omitempty"`
1155
1156
1157 UpdateTime string `json:"updateTime,omitempty"`
1158
1159
1160
1161
1162
1163 ForceSendFields []string `json:"-"`
1164
1165
1166
1167
1168 NullFields []string `json:"-"`
1169 }
1170
1171 func (s *GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
1172 type NoMethod GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata
1173 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1174 }
1175
1176
1177
1178 type GoogleCloudDiscoveryengineV1DataStore struct {
1179
1180
1181
1182
1183
1184
1185
1186
1187 ContentConfig string `json:"contentConfig,omitempty"`
1188
1189 CreateTime string `json:"createTime,omitempty"`
1190
1191
1192 DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
1193
1194
1195
1196 DisplayName string `json:"displayName,omitempty"`
1197
1198
1199 DocumentProcessingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209 IndustryVertical string `json:"industryVertical,omitempty"`
1210
1211
1212
1213
1214 Name string `json:"name,omitempty"`
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230 SolutionTypes []string `json:"solutionTypes,omitempty"`
1231
1232
1233
1234
1235
1236
1237
1238
1239 StartingSchema *GoogleCloudDiscoveryengineV1Schema `json:"startingSchema,omitempty"`
1240
1241
1242
1243
1244
1245 ForceSendFields []string `json:"-"`
1246
1247
1248
1249
1250 NullFields []string `json:"-"`
1251 }
1252
1253 func (s *GoogleCloudDiscoveryengineV1DataStore) MarshalJSON() ([]byte, error) {
1254 type NoMethod GoogleCloudDiscoveryengineV1DataStore
1255 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1256 }
1257
1258
1259
1260
1261 type GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata struct {
1262
1263 CreateTime string `json:"createTime,omitempty"`
1264
1265
1266 UpdateTime string `json:"updateTime,omitempty"`
1267
1268
1269
1270
1271
1272 ForceSendFields []string `json:"-"`
1273
1274
1275
1276
1277 NullFields []string `json:"-"`
1278 }
1279
1280 func (s *GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
1281 type NoMethod GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata
1282 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1283 }
1284
1285
1286
1287
1288 type GoogleCloudDiscoveryengineV1DeleteEngineMetadata struct {
1289
1290 CreateTime string `json:"createTime,omitempty"`
1291
1292
1293 UpdateTime string `json:"updateTime,omitempty"`
1294
1295
1296
1297
1298
1299 ForceSendFields []string `json:"-"`
1300
1301
1302
1303
1304 NullFields []string `json:"-"`
1305 }
1306
1307 func (s *GoogleCloudDiscoveryengineV1DeleteEngineMetadata) MarshalJSON() ([]byte, error) {
1308 type NoMethod GoogleCloudDiscoveryengineV1DeleteEngineMetadata
1309 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1310 }
1311
1312
1313
1314 type GoogleCloudDiscoveryengineV1DeleteSchemaMetadata struct {
1315
1316 CreateTime string `json:"createTime,omitempty"`
1317
1318
1319 UpdateTime string `json:"updateTime,omitempty"`
1320
1321
1322
1323
1324
1325 ForceSendFields []string `json:"-"`
1326
1327
1328
1329
1330 NullFields []string `json:"-"`
1331 }
1332
1333 func (s *GoogleCloudDiscoveryengineV1DeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
1334 type NoMethod GoogleCloudDiscoveryengineV1DeleteSchemaMetadata
1335 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1336 }
1337
1338
1339
1340
1341 type GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata struct {
1342
1343 CreateTime string `json:"createTime,omitempty"`
1344
1345
1346 UpdateTime string `json:"updateTime,omitempty"`
1347
1348
1349
1350
1351
1352 ForceSendFields []string `json:"-"`
1353
1354
1355
1356
1357 NullFields []string `json:"-"`
1358 }
1359
1360 func (s *GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
1361 type NoMethod GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata
1362 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1363 }
1364
1365
1366
1367
1368
1369 type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata struct {
1370
1371 CreateTime string `json:"createTime,omitempty"`
1372
1373
1374 UpdateTime string `json:"updateTime,omitempty"`
1375
1376
1377
1378
1379
1380 ForceSendFields []string `json:"-"`
1381
1382
1383
1384
1385 NullFields []string `json:"-"`
1386 }
1387
1388 func (s *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
1389 type NoMethod GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata
1390 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1391 }
1392
1393
1394
1395 type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse struct {
1396 }
1397
1398
1399
1400
1401
1402
1403 type GoogleCloudDiscoveryengineV1DocumentProcessingConfig struct {
1404
1405
1406
1407
1408 DefaultParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
1409
1410
1411 Name string `json:"name,omitempty"`
1412
1413
1414
1415
1416
1417
1418
1419 ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
1420
1421
1422
1423
1424
1425 ForceSendFields []string `json:"-"`
1426
1427
1428
1429
1430 NullFields []string `json:"-"`
1431 }
1432
1433 func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfig) MarshalJSON() ([]byte, error) {
1434 type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfig
1435 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1436 }
1437
1438
1439
1440 type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig struct {
1441
1442 DigitalParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
1443
1444
1445 OcrParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
1446
1447
1448
1449
1450
1451 ForceSendFields []string `json:"-"`
1452
1453
1454
1455
1456 NullFields []string `json:"-"`
1457 }
1458
1459 func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
1460 type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig
1461 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1462 }
1463
1464
1465
1466 type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
1467 }
1468
1469
1470
1471 type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig struct {
1472
1473
1474
1475 EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
1476
1477
1478 UseNativeText bool `json:"useNativeText,omitempty"`
1479
1480
1481
1482
1483
1484 ForceSendFields []string `json:"-"`
1485
1486
1487
1488
1489 NullFields []string `json:"-"`
1490 }
1491
1492 func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
1493 type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig
1494 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1495 }
1496
1497
1498
1499
1500
1501 type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata struct {
1502
1503 CreateTime string `json:"createTime,omitempty"`
1504
1505
1506 UpdateTime string `json:"updateTime,omitempty"`
1507
1508
1509
1510
1511
1512 ForceSendFields []string `json:"-"`
1513
1514
1515
1516
1517 NullFields []string `json:"-"`
1518 }
1519
1520 func (s *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
1521 type NoMethod GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata
1522 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1523 }
1524
1525
1526
1527 type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchResponse struct {
1528 }
1529
1530
1531
1532 type GoogleCloudDiscoveryengineV1Engine struct {
1533
1534
1535 ChatEngineConfig *GoogleCloudDiscoveryengineV1EngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
1536
1537
1538 ChatEngineMetadata *GoogleCloudDiscoveryengineV1EngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
1539
1540 CommonConfig *GoogleCloudDiscoveryengineV1EngineCommonConfig `json:"commonConfig,omitempty"`
1541
1542 CreateTime string `json:"createTime,omitempty"`
1543
1544
1545
1546
1547
1548
1549 DataStoreIds []string `json:"dataStoreIds,omitempty"`
1550
1551
1552 DisplayName string `json:"displayName,omitempty"`
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564 IndustryVertical string `json:"industryVertical,omitempty"`
1565
1566
1567
1568
1569
1570
1571 Name string `json:"name,omitempty"`
1572
1573
1574 SearchEngineConfig *GoogleCloudDiscoveryengineV1EngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586 SolutionType string `json:"solutionType,omitempty"`
1587
1588
1589 UpdateTime string `json:"updateTime,omitempty"`
1590
1591
1592
1593
1594
1595 ForceSendFields []string `json:"-"`
1596
1597
1598
1599
1600 NullFields []string `json:"-"`
1601 }
1602
1603 func (s *GoogleCloudDiscoveryengineV1Engine) MarshalJSON() ([]byte, error) {
1604 type NoMethod GoogleCloudDiscoveryengineV1Engine
1605 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1606 }
1607
1608
1609
1610 type GoogleCloudDiscoveryengineV1EngineChatEngineConfig struct {
1611
1612
1613
1614
1615
1616 AgentCreationConfig *GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626 DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
1627
1628
1629
1630
1631
1632 ForceSendFields []string `json:"-"`
1633
1634
1635
1636
1637 NullFields []string `json:"-"`
1638 }
1639
1640 func (s *GoogleCloudDiscoveryengineV1EngineChatEngineConfig) MarshalJSON() ([]byte, error) {
1641 type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineConfig
1642 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1643 }
1644
1645
1646
1647
1648
1649
1650 type GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig struct {
1651
1652
1653
1654 Business string `json:"business,omitempty"`
1655
1656
1657
1658
1659 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
1660
1661
1662
1663 Location string `json:"location,omitempty"`
1664
1665
1666 TimeZone string `json:"timeZone,omitempty"`
1667
1668
1669
1670
1671
1672 ForceSendFields []string `json:"-"`
1673
1674
1675
1676
1677 NullFields []string `json:"-"`
1678 }
1679
1680 func (s *GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
1681 type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig
1682 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1683 }
1684
1685
1686
1687 type GoogleCloudDiscoveryengineV1EngineChatEngineMetadata struct {
1688
1689
1690 DialogflowAgent string `json:"dialogflowAgent,omitempty"`
1691
1692
1693
1694
1695
1696 ForceSendFields []string `json:"-"`
1697
1698
1699
1700
1701 NullFields []string `json:"-"`
1702 }
1703
1704 func (s *GoogleCloudDiscoveryengineV1EngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
1705 type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineMetadata
1706 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1707 }
1708
1709
1710
1711 type GoogleCloudDiscoveryengineV1EngineCommonConfig struct {
1712
1713
1714
1715 CompanyName string `json:"companyName,omitempty"`
1716
1717
1718
1719
1720
1721 ForceSendFields []string `json:"-"`
1722
1723
1724
1725
1726 NullFields []string `json:"-"`
1727 }
1728
1729 func (s *GoogleCloudDiscoveryengineV1EngineCommonConfig) MarshalJSON() ([]byte, error) {
1730 type NoMethod GoogleCloudDiscoveryengineV1EngineCommonConfig
1731 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1732 }
1733
1734
1735
1736 type GoogleCloudDiscoveryengineV1EngineSearchEngineConfig struct {
1737
1738
1739
1740
1741
1742
1743 SearchAddOns []string `json:"searchAddOns,omitempty"`
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753 SearchTier string `json:"searchTier,omitempty"`
1754
1755
1756
1757
1758
1759 ForceSendFields []string `json:"-"`
1760
1761
1762
1763
1764 NullFields []string `json:"-"`
1765 }
1766
1767 func (s *GoogleCloudDiscoveryengineV1EngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
1768 type NoMethod GoogleCloudDiscoveryengineV1EngineSearchEngineConfig
1769 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1770 }
1771
1772
1773
1774
1775 type GoogleCloudDiscoveryengineV1ImportDocumentsMetadata struct {
1776
1777 CreateTime string `json:"createTime,omitempty"`
1778
1779 FailureCount int64 `json:"failureCount,omitempty,string"`
1780
1781 SuccessCount int64 `json:"successCount,omitempty,string"`
1782
1783 TotalCount int64 `json:"totalCount,omitempty,string"`
1784
1785
1786 UpdateTime string `json:"updateTime,omitempty"`
1787
1788
1789
1790
1791
1792 ForceSendFields []string `json:"-"`
1793
1794
1795
1796
1797 NullFields []string `json:"-"`
1798 }
1799
1800 func (s *GoogleCloudDiscoveryengineV1ImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
1801 type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
1802 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1803 }
1804
1805
1806
1807
1808
1809 type GoogleCloudDiscoveryengineV1ImportDocumentsResponse struct {
1810
1811
1812 ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
1813
1814 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
1815
1816
1817
1818
1819
1820 ForceSendFields []string `json:"-"`
1821
1822
1823
1824
1825 NullFields []string `json:"-"`
1826 }
1827
1828 func (s *GoogleCloudDiscoveryengineV1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
1829 type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsResponse
1830 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1831 }
1832
1833
1834
1835 type GoogleCloudDiscoveryengineV1ImportErrorConfig struct {
1836
1837
1838
1839
1840 GcsPrefix string `json:"gcsPrefix,omitempty"`
1841
1842
1843
1844
1845
1846 ForceSendFields []string `json:"-"`
1847
1848
1849
1850
1851 NullFields []string `json:"-"`
1852 }
1853
1854 func (s *GoogleCloudDiscoveryengineV1ImportErrorConfig) MarshalJSON() ([]byte, error) {
1855 type NoMethod GoogleCloudDiscoveryengineV1ImportErrorConfig
1856 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1857 }
1858
1859
1860
1861
1862
1863 type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata struct {
1864
1865 CreateTime string `json:"createTime,omitempty"`
1866
1867
1868 UpdateTime string `json:"updateTime,omitempty"`
1869
1870
1871
1872
1873
1874 ForceSendFields []string `json:"-"`
1875
1876
1877
1878
1879 NullFields []string `json:"-"`
1880 }
1881
1882 func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
1883 type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata
1884 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1885 }
1886
1887
1888
1889
1890 type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse struct {
1891
1892 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
1893
1894 FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
1895
1896 ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
1897
1898
1899
1900
1901
1902 ForceSendFields []string `json:"-"`
1903
1904
1905
1906
1907 NullFields []string `json:"-"`
1908 }
1909
1910 func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
1911 type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse
1912 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1913 }
1914
1915
1916
1917
1918 type GoogleCloudDiscoveryengineV1ImportUserEventsMetadata struct {
1919
1920 CreateTime string `json:"createTime,omitempty"`
1921
1922 FailureCount int64 `json:"failureCount,omitempty,string"`
1923
1924 SuccessCount int64 `json:"successCount,omitempty,string"`
1925
1926
1927 UpdateTime string `json:"updateTime,omitempty"`
1928
1929
1930
1931
1932
1933 ForceSendFields []string `json:"-"`
1934
1935
1936
1937
1938 NullFields []string `json:"-"`
1939 }
1940
1941 func (s *GoogleCloudDiscoveryengineV1ImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
1942 type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsMetadata
1943 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1944 }
1945
1946
1947
1948
1949
1950 type GoogleCloudDiscoveryengineV1ImportUserEventsResponse struct {
1951
1952
1953 ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
1954
1955 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
1956
1957
1958 JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
1959
1960
1961 UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
1962
1963
1964
1965
1966
1967 ForceSendFields []string `json:"-"`
1968
1969
1970
1971
1972 NullFields []string `json:"-"`
1973 }
1974
1975 func (s *GoogleCloudDiscoveryengineV1ImportUserEventsResponse) MarshalJSON() ([]byte, error) {
1976 type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsResponse
1977 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1978 }
1979
1980
1981
1982
1983 type GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata struct {
1984
1985 CreateTime string `json:"createTime,omitempty"`
1986
1987 FailureCount int64 `json:"failureCount,omitempty,string"`
1988
1989 IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
1990
1991 SuccessCount int64 `json:"successCount,omitempty,string"`
1992
1993
1994 UpdateTime string `json:"updateTime,omitempty"`
1995
1996
1997
1998
1999
2000 ForceSendFields []string `json:"-"`
2001
2002
2003
2004
2005 NullFields []string `json:"-"`
2006 }
2007
2008 func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
2009 type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
2010 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2011 }
2012
2013
2014
2015
2016
2017 type GoogleCloudDiscoveryengineV1PurgeDocumentsResponse struct {
2018
2019
2020 PurgeCount int64 `json:"purgeCount,omitempty,string"`
2021
2022
2023
2024 PurgeSample []string `json:"purgeSample,omitempty"`
2025
2026
2027
2028
2029
2030 ForceSendFields []string `json:"-"`
2031
2032
2033
2034
2035 NullFields []string `json:"-"`
2036 }
2037
2038 func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
2039 type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsResponse
2040 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2041 }
2042
2043
2044
2045
2046 type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata struct {
2047
2048 CreateTime string `json:"createTime,omitempty"`
2049
2050
2051 UpdateTime string `json:"updateTime,omitempty"`
2052
2053
2054
2055
2056
2057 ForceSendFields []string `json:"-"`
2058
2059
2060
2061
2062 NullFields []string `json:"-"`
2063 }
2064
2065 func (s *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
2066 type NoMethod GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata
2067 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2068 }
2069
2070
2071
2072 type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse struct {
2073
2074 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
2075
2076 PurgeCount int64 `json:"purgeCount,omitempty,string"`
2077
2078
2079
2080
2081
2082 ForceSendFields []string `json:"-"`
2083
2084
2085
2086
2087 NullFields []string `json:"-"`
2088 }
2089
2090 func (s *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
2091 type NoMethod GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse
2092 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2093 }
2094
2095
2096
2097 type GoogleCloudDiscoveryengineV1Schema struct {
2098
2099 JsonSchema string `json:"jsonSchema,omitempty"`
2100
2101
2102
2103
2104 Name string `json:"name,omitempty"`
2105
2106 StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
2107
2108
2109
2110
2111
2112 ForceSendFields []string `json:"-"`
2113
2114
2115
2116
2117 NullFields []string `json:"-"`
2118 }
2119
2120 func (s *GoogleCloudDiscoveryengineV1Schema) MarshalJSON() ([]byte, error) {
2121 type NoMethod GoogleCloudDiscoveryengineV1Schema
2122 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2123 }
2124
2125
2126
2127 type GoogleCloudDiscoveryengineV1SiteVerificationInfo struct {
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137 SiteVerificationState string `json:"siteVerificationState,omitempty"`
2138
2139 VerifyTime string `json:"verifyTime,omitempty"`
2140
2141
2142
2143
2144
2145 ForceSendFields []string `json:"-"`
2146
2147
2148
2149
2150 NullFields []string `json:"-"`
2151 }
2152
2153 func (s *GoogleCloudDiscoveryengineV1SiteVerificationInfo) MarshalJSON() ([]byte, error) {
2154 type NoMethod GoogleCloudDiscoveryengineV1SiteVerificationInfo
2155 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2156 }
2157
2158
2159
2160 type GoogleCloudDiscoveryengineV1TargetSite struct {
2161
2162
2163
2164
2165
2166
2167 ExactMatch bool `json:"exactMatch,omitempty"`
2168
2169 FailureReason *GoogleCloudDiscoveryengineV1TargetSiteFailureReason `json:"failureReason,omitempty"`
2170
2171
2172 GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
2173
2174
2175
2176
2177
2178
2179
2180
2181
2182
2183
2184
2185 IndexingStatus string `json:"indexingStatus,omitempty"`
2186
2187
2188
2189
2190 Name string `json:"name,omitempty"`
2191
2192
2193 ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
2194
2195 RootDomainUri string `json:"rootDomainUri,omitempty"`
2196
2197
2198 SiteVerificationInfo *GoogleCloudDiscoveryengineV1SiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
2199
2200
2201
2202
2203
2204
2205
2206
2207 Type string `json:"type,omitempty"`
2208
2209 UpdateTime string `json:"updateTime,omitempty"`
2210
2211
2212
2213
2214
2215 ForceSendFields []string `json:"-"`
2216
2217
2218
2219
2220 NullFields []string `json:"-"`
2221 }
2222
2223 func (s *GoogleCloudDiscoveryengineV1TargetSite) MarshalJSON() ([]byte, error) {
2224 type NoMethod GoogleCloudDiscoveryengineV1TargetSite
2225 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2226 }
2227
2228
2229
2230 type GoogleCloudDiscoveryengineV1TargetSiteFailureReason struct {
2231
2232 QuotaFailure *GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
2233
2234
2235
2236
2237
2238 ForceSendFields []string `json:"-"`
2239
2240
2241
2242
2243 NullFields []string `json:"-"`
2244 }
2245
2246 func (s *GoogleCloudDiscoveryengineV1TargetSiteFailureReason) MarshalJSON() ([]byte, error) {
2247 type NoMethod GoogleCloudDiscoveryengineV1TargetSiteFailureReason
2248 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2249 }
2250
2251
2252
2253 type GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure struct {
2254
2255
2256 TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
2257
2258
2259
2260
2261
2262 ForceSendFields []string `json:"-"`
2263
2264
2265
2266
2267 NullFields []string `json:"-"`
2268 }
2269
2270 func (s *GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
2271 type NoMethod GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure
2272 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2273 }
2274
2275
2276
2277 type GoogleCloudDiscoveryengineV1UpdateSchemaMetadata struct {
2278
2279 CreateTime string `json:"createTime,omitempty"`
2280
2281
2282 UpdateTime string `json:"updateTime,omitempty"`
2283
2284
2285
2286
2287
2288 ForceSendFields []string `json:"-"`
2289
2290
2291
2292
2293 NullFields []string `json:"-"`
2294 }
2295
2296 func (s *GoogleCloudDiscoveryengineV1UpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
2297 type NoMethod GoogleCloudDiscoveryengineV1UpdateSchemaMetadata
2298 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2299 }
2300
2301
2302
2303
2304 type GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata struct {
2305
2306 CreateTime string `json:"createTime,omitempty"`
2307
2308
2309 UpdateTime string `json:"updateTime,omitempty"`
2310
2311
2312
2313
2314
2315 ForceSendFields []string `json:"-"`
2316
2317
2318
2319
2320 NullFields []string `json:"-"`
2321 }
2322
2323 func (s *GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
2324 type NoMethod GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata
2325 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2326 }
2327
2328
2329 type GoogleCloudDiscoveryengineV1alphaAclConfig struct {
2330
2331 IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"`
2332
2333
2334
2335 Name string `json:"name,omitempty"`
2336
2337
2338
2339
2340
2341 ForceSendFields []string `json:"-"`
2342
2343
2344
2345
2346 NullFields []string `json:"-"`
2347 }
2348
2349 func (s *GoogleCloudDiscoveryengineV1alphaAclConfig) MarshalJSON() ([]byte, error) {
2350 type NoMethod GoogleCloudDiscoveryengineV1alphaAclConfig
2351 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2352 }
2353
2354
2355 type GoogleCloudDiscoveryengineV1alphaAnswer struct {
2356
2357
2358
2359
2360
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370 AnswerSkippedReasons []string `json:"answerSkippedReasons,omitempty"`
2371
2372 AnswerText string `json:"answerText,omitempty"`
2373
2374 Citations []*GoogleCloudDiscoveryengineV1alphaAnswerCitation `json:"citations,omitempty"`
2375
2376 CompleteTime string `json:"completeTime,omitempty"`
2377
2378 CreateTime string `json:"createTime,omitempty"`
2379
2380
2381
2382 Name string `json:"name,omitempty"`
2383
2384 QueryUnderstandingInfo *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo `json:"queryUnderstandingInfo,omitempty"`
2385
2386 References []*GoogleCloudDiscoveryengineV1alphaAnswerReference `json:"references,omitempty"`
2387
2388 RelatedQuestions []string `json:"relatedQuestions,omitempty"`
2389
2390
2391
2392
2393
2394
2395
2396 State string `json:"state,omitempty"`
2397
2398 Steps []*GoogleCloudDiscoveryengineV1alphaAnswerStep `json:"steps,omitempty"`
2399
2400
2401
2402
2403
2404 ForceSendFields []string `json:"-"`
2405
2406
2407
2408
2409 NullFields []string `json:"-"`
2410 }
2411
2412 func (s *GoogleCloudDiscoveryengineV1alphaAnswer) MarshalJSON() ([]byte, error) {
2413 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswer
2414 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2415 }
2416
2417
2418
2419 type GoogleCloudDiscoveryengineV1alphaAnswerCitation struct {
2420
2421 EndIndex int64 `json:"endIndex,omitempty,string"`
2422
2423 Sources []*GoogleCloudDiscoveryengineV1alphaAnswerCitationSource `json:"sources,omitempty"`
2424
2425
2426 StartIndex int64 `json:"startIndex,omitempty,string"`
2427
2428
2429
2430
2431
2432 ForceSendFields []string `json:"-"`
2433
2434
2435
2436
2437 NullFields []string `json:"-"`
2438 }
2439
2440 func (s *GoogleCloudDiscoveryengineV1alphaAnswerCitation) MarshalJSON() ([]byte, error) {
2441 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerCitation
2442 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2443 }
2444
2445
2446 type GoogleCloudDiscoveryengineV1alphaAnswerCitationSource struct {
2447
2448 ReferenceId string `json:"referenceId,omitempty"`
2449
2450
2451
2452
2453
2454 ForceSendFields []string `json:"-"`
2455
2456
2457
2458
2459 NullFields []string `json:"-"`
2460 }
2461
2462 func (s *GoogleCloudDiscoveryengineV1alphaAnswerCitationSource) MarshalJSON() ([]byte, error) {
2463 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerCitationSource
2464 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2465 }
2466
2467
2468
2469 type GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo struct {
2470
2471 QueryClassificationInfo []*GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo `json:"queryClassificationInfo,omitempty"`
2472
2473
2474
2475
2476
2477 ForceSendFields []string `json:"-"`
2478
2479
2480
2481
2482 NullFields []string `json:"-"`
2483 }
2484
2485 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo) MarshalJSON() ([]byte, error) {
2486 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo
2487 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2488 }
2489
2490
2491
2492 type GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo struct {
2493
2494 Positive bool `json:"positive,omitempty"`
2495
2496
2497
2498
2499
2500
2501 Type string `json:"type,omitempty"`
2502
2503
2504
2505
2506
2507 ForceSendFields []string `json:"-"`
2508
2509
2510
2511
2512 NullFields []string `json:"-"`
2513 }
2514
2515 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo) MarshalJSON() ([]byte, error) {
2516 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo
2517 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2518 }
2519
2520
2521 type GoogleCloudDiscoveryengineV1alphaAnswerReference struct {
2522
2523 ChunkInfo *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo `json:"chunkInfo,omitempty"`
2524
2525 UnstructuredDocumentInfo *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo `json:"unstructuredDocumentInfo,omitempty"`
2526
2527
2528
2529
2530
2531 ForceSendFields []string `json:"-"`
2532
2533
2534
2535
2536 NullFields []string `json:"-"`
2537 }
2538
2539 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReference) MarshalJSON() ([]byte, error) {
2540 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReference
2541 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2542 }
2543
2544
2545
2546 type GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo struct {
2547
2548 Chunk string `json:"chunk,omitempty"`
2549
2550 Content string `json:"content,omitempty"`
2551
2552 DocumentMetadata *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata `json:"documentMetadata,omitempty"`
2553
2554 RelevanceScore float64 `json:"relevanceScore,omitempty"`
2555
2556
2557
2558
2559
2560 ForceSendFields []string `json:"-"`
2561
2562
2563
2564
2565 NullFields []string `json:"-"`
2566 }
2567
2568 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo) MarshalJSON() ([]byte, error) {
2569 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
2570 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2571 }
2572
2573 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo) UnmarshalJSON(data []byte) error {
2574 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
2575 var s1 struct {
2576 RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
2577 *NoMethod
2578 }
2579 s1.NoMethod = (*NoMethod)(s)
2580 if err := json.Unmarshal(data, &s1); err != nil {
2581 return err
2582 }
2583 s.RelevanceScore = float64(s1.RelevanceScore)
2584 return nil
2585 }
2586
2587
2588
2589 type GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata struct {
2590
2591 Document string `json:"document,omitempty"`
2592
2593 PageIdentifier string `json:"pageIdentifier,omitempty"`
2594
2595 Title string `json:"title,omitempty"`
2596
2597 Uri string `json:"uri,omitempty"`
2598
2599
2600
2601
2602
2603 ForceSendFields []string `json:"-"`
2604
2605
2606
2607
2608 NullFields []string `json:"-"`
2609 }
2610
2611 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata) MarshalJSON() ([]byte, error) {
2612 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata
2613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2614 }
2615
2616
2617
2618 type GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo struct {
2619
2620 ChunkContents []*GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent `json:"chunkContents,omitempty"`
2621
2622 Document string `json:"document,omitempty"`
2623
2624 Title string `json:"title,omitempty"`
2625
2626 Uri string `json:"uri,omitempty"`
2627
2628
2629
2630
2631
2632 ForceSendFields []string `json:"-"`
2633
2634
2635
2636
2637 NullFields []string `json:"-"`
2638 }
2639
2640 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo) MarshalJSON() ([]byte, error) {
2641 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo
2642 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2643 }
2644
2645
2646
2647 type GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent struct {
2648
2649 Content string `json:"content,omitempty"`
2650
2651 PageIdentifier string `json:"pageIdentifier,omitempty"`
2652
2653
2654
2655
2656
2657 ForceSendFields []string `json:"-"`
2658
2659
2660
2661
2662 NullFields []string `json:"-"`
2663 }
2664
2665 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent) MarshalJSON() ([]byte, error) {
2666 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent
2667 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2668 }
2669
2670
2671 type GoogleCloudDiscoveryengineV1alphaAnswerStep struct {
2672
2673 Actions []*GoogleCloudDiscoveryengineV1alphaAnswerStepAction `json:"actions,omitempty"`
2674
2675 Description string `json:"description,omitempty"`
2676
2677
2678
2679
2680
2681
2682
2683 State string `json:"state,omitempty"`
2684
2685 Thought string `json:"thought,omitempty"`
2686
2687
2688
2689
2690
2691 ForceSendFields []string `json:"-"`
2692
2693
2694
2695
2696 NullFields []string `json:"-"`
2697 }
2698
2699 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStep) MarshalJSON() ([]byte, error) {
2700 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStep
2701 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2702 }
2703
2704
2705 type GoogleCloudDiscoveryengineV1alphaAnswerStepAction struct {
2706
2707 Observation *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation `json:"observation,omitempty"`
2708
2709 SearchAction *GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction `json:"searchAction,omitempty"`
2710
2711
2712
2713
2714
2715 ForceSendFields []string `json:"-"`
2716
2717
2718
2719
2720 NullFields []string `json:"-"`
2721 }
2722
2723 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepAction) MarshalJSON() ([]byte, error) {
2724 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepAction
2725 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2726 }
2727
2728
2729 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation struct {
2730
2731
2732 SearchResults []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult `json:"searchResults,omitempty"`
2733
2734
2735
2736
2737
2738 ForceSendFields []string `json:"-"`
2739
2740
2741
2742
2743 NullFields []string `json:"-"`
2744 }
2745
2746 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation) MarshalJSON() ([]byte, error) {
2747 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation
2748 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2749 }
2750
2751 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult struct {
2752
2753
2754 ChunkInfo []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo `json:"chunkInfo,omitempty"`
2755
2756 Document string `json:"document,omitempty"`
2757
2758
2759 SnippetInfo []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo `json:"snippetInfo,omitempty"`
2760
2761 Title string `json:"title,omitempty"`
2762
2763 Uri string `json:"uri,omitempty"`
2764
2765
2766
2767
2768
2769 ForceSendFields []string `json:"-"`
2770
2771
2772
2773
2774 NullFields []string `json:"-"`
2775 }
2776
2777 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult) MarshalJSON() ([]byte, error) {
2778 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult
2779 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2780 }
2781
2782
2783
2784 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo struct {
2785
2786 Chunk string `json:"chunk,omitempty"`
2787
2788 Content string `json:"content,omitempty"`
2789
2790 RelevanceScore float64 `json:"relevanceScore,omitempty"`
2791
2792
2793
2794
2795
2796 ForceSendFields []string `json:"-"`
2797
2798
2799
2800
2801 NullFields []string `json:"-"`
2802 }
2803
2804 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo) MarshalJSON() ([]byte, error) {
2805 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
2806 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2807 }
2808
2809 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo) UnmarshalJSON(data []byte) error {
2810 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
2811 var s1 struct {
2812 RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
2813 *NoMethod
2814 }
2815 s1.NoMethod = (*NoMethod)(s)
2816 if err := json.Unmarshal(data, &s1); err != nil {
2817 return err
2818 }
2819 s.RelevanceScore = float64(s1.RelevanceScore)
2820 return nil
2821 }
2822
2823
2824
2825 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo struct {
2826
2827 Snippet string `json:"snippet,omitempty"`
2828
2829 SnippetStatus string `json:"snippetStatus,omitempty"`
2830
2831
2832
2833
2834
2835 ForceSendFields []string `json:"-"`
2836
2837
2838
2839
2840 NullFields []string `json:"-"`
2841 }
2842
2843 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo) MarshalJSON() ([]byte, error) {
2844 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo
2845 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2846 }
2847
2848
2849
2850 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction struct {
2851
2852 Query string `json:"query,omitempty"`
2853
2854
2855
2856
2857
2858 ForceSendFields []string `json:"-"`
2859
2860
2861
2862
2863 NullFields []string `json:"-"`
2864 }
2865
2866 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction) MarshalJSON() ([]byte, error) {
2867 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction
2868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2869 }
2870
2871
2872
2873
2874
2875 type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata struct {
2876
2877 CreateTime string `json:"createTime,omitempty"`
2878
2879
2880 UpdateTime string `json:"updateTime,omitempty"`
2881
2882
2883
2884
2885
2886 ForceSendFields []string `json:"-"`
2887
2888
2889
2890
2891 NullFields []string `json:"-"`
2892 }
2893
2894 func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
2895 type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata
2896 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2897 }
2898
2899
2900
2901 type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse struct {
2902
2903 TargetSites []*GoogleCloudDiscoveryengineV1alphaTargetSite `json:"targetSites,omitempty"`
2904
2905
2906
2907
2908
2909 ForceSendFields []string `json:"-"`
2910
2911
2912
2913
2914 NullFields []string `json:"-"`
2915 }
2916
2917 func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
2918 type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse
2919 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2920 }
2921
2922
2923
2924
2925 type GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata struct {
2926
2927 CreateTime string `json:"createTime,omitempty"`
2928
2929
2930 UpdateTime string `json:"updateTime,omitempty"`
2931
2932
2933
2934
2935
2936 ForceSendFields []string `json:"-"`
2937
2938
2939
2940
2941 NullFields []string `json:"-"`
2942 }
2943
2944 func (s *GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
2945 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata
2946 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2947 }
2948
2949
2950
2951
2952 type GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata struct {
2953
2954 CreateTime string `json:"createTime,omitempty"`
2955
2956
2957 UpdateTime string `json:"updateTime,omitempty"`
2958
2959
2960
2961
2962
2963 ForceSendFields []string `json:"-"`
2964
2965
2966
2967
2968 NullFields []string `json:"-"`
2969 }
2970
2971 func (s *GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata) MarshalJSON() ([]byte, error) {
2972 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata
2973 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2974 }
2975
2976
2977
2978 type GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata struct {
2979
2980 CreateTime string `json:"createTime,omitempty"`
2981
2982
2983 UpdateTime string `json:"updateTime,omitempty"`
2984
2985
2986
2987
2988
2989 ForceSendFields []string `json:"-"`
2990
2991
2992
2993
2994 NullFields []string `json:"-"`
2995 }
2996
2997 func (s *GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata) MarshalJSON() ([]byte, error) {
2998 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata
2999 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3000 }
3001
3002
3003
3004
3005 type GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata struct {
3006
3007 CreateTime string `json:"createTime,omitempty"`
3008
3009
3010 UpdateTime string `json:"updateTime,omitempty"`
3011
3012
3013
3014
3015
3016 ForceSendFields []string `json:"-"`
3017
3018
3019
3020
3021 NullFields []string `json:"-"`
3022 }
3023
3024 func (s *GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
3025 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata
3026 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3027 }
3028
3029
3030
3031 type GoogleCloudDiscoveryengineV1alphaCustomTuningModel struct {
3032
3033 CreateTime string `json:"createTime,omitempty"`
3034
3035 DisplayName string `json:"displayName,omitempty"`
3036
3037
3038
3039
3040
3041
3042
3043
3044
3045
3046 ModelState string `json:"modelState,omitempty"`
3047 ModelVersion int64 `json:"modelVersion,omitempty,string"`
3048
3049
3050
3051
3052 Name string `json:"name,omitempty"`
3053
3054 TrainingStartTime string `json:"trainingStartTime,omitempty"`
3055
3056
3057
3058
3059
3060 ForceSendFields []string `json:"-"`
3061
3062
3063
3064
3065 NullFields []string `json:"-"`
3066 }
3067
3068 func (s *GoogleCloudDiscoveryengineV1alphaCustomTuningModel) MarshalJSON() ([]byte, error) {
3069 type NoMethod GoogleCloudDiscoveryengineV1alphaCustomTuningModel
3070 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3071 }
3072
3073
3074
3075 type GoogleCloudDiscoveryengineV1alphaDataStore struct {
3076
3077
3078
3079
3080
3081
3082
3083 AclEnabled bool `json:"aclEnabled,omitempty"`
3084
3085
3086
3087
3088
3089
3090
3091
3092 ContentConfig string `json:"contentConfig,omitempty"`
3093
3094 CreateTime string `json:"createTime,omitempty"`
3095
3096
3097 DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
3098
3099
3100
3101 DisplayName string `json:"displayName,omitempty"`
3102
3103
3104 DocumentProcessingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
3105
3106 IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"`
3107
3108
3109
3110
3111
3112
3113
3114
3115
3116 IndustryVertical string `json:"industryVertical,omitempty"`
3117
3118
3119
3120
3121 Name string `json:"name,omitempty"`
3122
3123
3124
3125
3126
3127
3128
3129
3130
3131
3132
3133
3134
3135
3136
3137 SolutionTypes []string `json:"solutionTypes,omitempty"`
3138
3139
3140
3141
3142
3143
3144
3145
3146 StartingSchema *GoogleCloudDiscoveryengineV1alphaSchema `json:"startingSchema,omitempty"`
3147
3148
3149
3150
3151
3152 ForceSendFields []string `json:"-"`
3153
3154
3155
3156
3157 NullFields []string `json:"-"`
3158 }
3159
3160 func (s *GoogleCloudDiscoveryengineV1alphaDataStore) MarshalJSON() ([]byte, error) {
3161 type NoMethod GoogleCloudDiscoveryengineV1alphaDataStore
3162 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3163 }
3164
3165
3166
3167
3168 type GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata struct {
3169
3170 CreateTime string `json:"createTime,omitempty"`
3171
3172
3173 UpdateTime string `json:"updateTime,omitempty"`
3174
3175
3176
3177
3178
3179 ForceSendFields []string `json:"-"`
3180
3181
3182
3183
3184 NullFields []string `json:"-"`
3185 }
3186
3187 func (s *GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
3188 type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata
3189 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3190 }
3191
3192
3193
3194
3195 type GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata struct {
3196
3197 CreateTime string `json:"createTime,omitempty"`
3198
3199
3200 UpdateTime string `json:"updateTime,omitempty"`
3201
3202
3203
3204
3205
3206 ForceSendFields []string `json:"-"`
3207
3208
3209
3210
3211 NullFields []string `json:"-"`
3212 }
3213
3214 func (s *GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata) MarshalJSON() ([]byte, error) {
3215 type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata
3216 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3217 }
3218
3219
3220
3221 type GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata struct {
3222
3223 CreateTime string `json:"createTime,omitempty"`
3224
3225
3226 UpdateTime string `json:"updateTime,omitempty"`
3227
3228
3229
3230
3231
3232 ForceSendFields []string `json:"-"`
3233
3234
3235
3236
3237 NullFields []string `json:"-"`
3238 }
3239
3240 func (s *GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
3241 type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata
3242 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3243 }
3244
3245
3246
3247
3248 type GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata struct {
3249
3250 CreateTime string `json:"createTime,omitempty"`
3251
3252
3253 UpdateTime string `json:"updateTime,omitempty"`
3254
3255
3256
3257
3258
3259 ForceSendFields []string `json:"-"`
3260
3261
3262
3263
3264 NullFields []string `json:"-"`
3265 }
3266
3267 func (s *GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
3268 type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata
3269 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3270 }
3271
3272
3273
3274
3275
3276 type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata struct {
3277
3278 CreateTime string `json:"createTime,omitempty"`
3279
3280
3281 UpdateTime string `json:"updateTime,omitempty"`
3282
3283
3284
3285
3286
3287 ForceSendFields []string `json:"-"`
3288
3289
3290
3291
3292 NullFields []string `json:"-"`
3293 }
3294
3295 func (s *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
3296 type NoMethod GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata
3297 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3298 }
3299
3300
3301
3302 type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchResponse struct {
3303 }
3304
3305
3306
3307
3308
3309
3310 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig struct {
3311
3312 ChunkingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig `json:"chunkingConfig,omitempty"`
3313
3314
3315
3316
3317 DefaultParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
3318
3319
3320 Name string `json:"name,omitempty"`
3321
3322
3323
3324
3325
3326
3327
3328 ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
3329
3330
3331
3332
3333
3334 ForceSendFields []string `json:"-"`
3335
3336
3337
3338
3339 NullFields []string `json:"-"`
3340 }
3341
3342 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig) MarshalJSON() ([]byte, error) {
3343 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
3344 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3345 }
3346
3347
3348
3349 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig struct {
3350
3351 LayoutBasedChunkingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig `json:"layoutBasedChunkingConfig,omitempty"`
3352
3353
3354
3355
3356
3357 ForceSendFields []string `json:"-"`
3358
3359
3360
3361
3362 NullFields []string `json:"-"`
3363 }
3364
3365 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig) MarshalJSON() ([]byte, error) {
3366 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig
3367 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3368 }
3369
3370
3371
3372 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig struct {
3373
3374
3375 ChunkSize int64 `json:"chunkSize,omitempty"`
3376
3377
3378
3379 IncludeAncestorHeadings bool `json:"includeAncestorHeadings,omitempty"`
3380
3381
3382
3383
3384
3385 ForceSendFields []string `json:"-"`
3386
3387
3388
3389
3390 NullFields []string `json:"-"`
3391 }
3392
3393 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig) MarshalJSON() ([]byte, error) {
3394 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
3395 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3396 }
3397
3398
3399
3400 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig struct {
3401
3402 DigitalParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
3403
3404 LayoutParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig `json:"layoutParsingConfig,omitempty"`
3405
3406
3407 OcrParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
3408
3409
3410
3411
3412
3413 ForceSendFields []string `json:"-"`
3414
3415
3416
3417
3418 NullFields []string `json:"-"`
3419 }
3420
3421 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
3422 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
3423 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3424 }
3425
3426
3427
3428 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
3429 }
3430
3431
3432
3433 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig struct {
3434 }
3435
3436
3437
3438 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig struct {
3439
3440
3441
3442 EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
3443
3444
3445 UseNativeText bool `json:"useNativeText,omitempty"`
3446
3447
3448
3449
3450
3451 ForceSendFields []string `json:"-"`
3452
3453
3454
3455
3456 NullFields []string `json:"-"`
3457 }
3458
3459 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
3460 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig
3461 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3462 }
3463
3464
3465
3466
3467
3468 type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata struct {
3469
3470 CreateTime string `json:"createTime,omitempty"`
3471
3472
3473 UpdateTime string `json:"updateTime,omitempty"`
3474
3475
3476
3477
3478
3479 ForceSendFields []string `json:"-"`
3480
3481
3482
3483
3484 NullFields []string `json:"-"`
3485 }
3486
3487 func (s *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
3488 type NoMethod GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata
3489 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3490 }
3491
3492
3493
3494 type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse struct {
3495 }
3496
3497
3498
3499 type GoogleCloudDiscoveryengineV1alphaEngine struct {
3500
3501
3502 ChatEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
3503
3504
3505 ChatEngineMetadata *GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
3506
3507 CommonConfig *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig `json:"commonConfig,omitempty"`
3508
3509 CreateTime string `json:"createTime,omitempty"`
3510
3511
3512
3513
3514
3515
3516 DataStoreIds []string `json:"dataStoreIds,omitempty"`
3517
3518
3519 DisplayName string `json:"displayName,omitempty"`
3520
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530
3531 IndustryVertical string `json:"industryVertical,omitempty"`
3532
3533
3534
3535 MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
3536
3537
3538
3539
3540
3541
3542 Name string `json:"name,omitempty"`
3543
3544
3545
3546 RecommendationMetadata *GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata `json:"recommendationMetadata,omitempty"`
3547
3548
3549 SearchEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
3550
3551
3552 SimilarDocumentsConfig *GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig `json:"similarDocumentsConfig,omitempty"`
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562
3563
3564 SolutionType string `json:"solutionType,omitempty"`
3565
3566
3567 UpdateTime string `json:"updateTime,omitempty"`
3568
3569
3570
3571
3572
3573 ForceSendFields []string `json:"-"`
3574
3575
3576
3577
3578 NullFields []string `json:"-"`
3579 }
3580
3581 func (s *GoogleCloudDiscoveryengineV1alphaEngine) MarshalJSON() ([]byte, error) {
3582 type NoMethod GoogleCloudDiscoveryengineV1alphaEngine
3583 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3584 }
3585
3586
3587
3588 type GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig struct {
3589
3590
3591
3592
3593
3594 AgentCreationConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
3595
3596
3597
3598
3599
3600
3601
3602
3603
3604 DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
3605
3606
3607
3608
3609
3610 ForceSendFields []string `json:"-"`
3611
3612
3613
3614
3615 NullFields []string `json:"-"`
3616 }
3617
3618 func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig) MarshalJSON() ([]byte, error) {
3619 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig
3620 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3621 }
3622
3623
3624
3625
3626
3627
3628 type GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig struct {
3629
3630
3631
3632 Business string `json:"business,omitempty"`
3633
3634
3635
3636
3637 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
3638
3639
3640
3641 Location string `json:"location,omitempty"`
3642
3643
3644 TimeZone string `json:"timeZone,omitempty"`
3645
3646
3647
3648
3649
3650 ForceSendFields []string `json:"-"`
3651
3652
3653
3654
3655 NullFields []string `json:"-"`
3656 }
3657
3658 func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
3659 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig
3660 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3661 }
3662
3663
3664
3665 type GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata struct {
3666
3667
3668 DialogflowAgent string `json:"dialogflowAgent,omitempty"`
3669
3670
3671
3672
3673
3674 ForceSendFields []string `json:"-"`
3675
3676
3677
3678
3679 NullFields []string `json:"-"`
3680 }
3681
3682 func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
3683 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata
3684 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3685 }
3686
3687
3688
3689 type GoogleCloudDiscoveryengineV1alphaEngineCommonConfig struct {
3690
3691
3692
3693 CompanyName string `json:"companyName,omitempty"`
3694
3695
3696
3697
3698
3699 ForceSendFields []string `json:"-"`
3700
3701
3702
3703
3704 NullFields []string `json:"-"`
3705 }
3706
3707 func (s *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig) MarshalJSON() ([]byte, error) {
3708 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineCommonConfig
3709 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3710 }
3711
3712
3713
3714 type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig struct {
3715
3716
3717
3718
3719
3720
3721 OptimizationObjective string `json:"optimizationObjective,omitempty"`
3722
3723
3724
3725
3726
3727
3728 OptimizationObjectiveConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig `json:"optimizationObjectiveConfig,omitempty"`
3729
3730
3731
3732
3733
3734
3735
3736
3737
3738
3739
3740 TrainingState string `json:"trainingState,omitempty"`
3741
3742
3743
3744
3745
3746 Type string `json:"type,omitempty"`
3747
3748
3749
3750
3751
3752 ForceSendFields []string `json:"-"`
3753
3754
3755
3756
3757 NullFields []string `json:"-"`
3758 }
3759
3760 func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig) MarshalJSON() ([]byte, error) {
3761 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig
3762 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3763 }
3764
3765
3766
3767 type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct {
3768
3769
3770 TargetField string `json:"targetField,omitempty"`
3771
3772
3773 TargetFieldValueFloat float64 `json:"targetFieldValueFloat,omitempty"`
3774
3775
3776
3777
3778
3779 ForceSendFields []string `json:"-"`
3780
3781
3782
3783
3784 NullFields []string `json:"-"`
3785 }
3786
3787 func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) MarshalJSON() ([]byte, error) {
3788 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
3789 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3790 }
3791
3792 func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) UnmarshalJSON(data []byte) error {
3793 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
3794 var s1 struct {
3795 TargetFieldValueFloat gensupport.JSONFloat64 `json:"targetFieldValueFloat"`
3796 *NoMethod
3797 }
3798 s1.NoMethod = (*NoMethod)(s)
3799 if err := json.Unmarshal(data, &s1); err != nil {
3800 return err
3801 }
3802 s.TargetFieldValueFloat = float64(s1.TargetFieldValueFloat)
3803 return nil
3804 }
3805
3806
3807
3808 type GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata struct {
3809
3810
3811
3812
3813
3814
3815
3816
3817
3818
3819
3820
3821
3822 DataState string `json:"dataState,omitempty"`
3823
3824
3825 LastTuneTime string `json:"lastTuneTime,omitempty"`
3826
3827
3828
3829
3830
3831
3832
3833
3834
3835 ServingState string `json:"servingState,omitempty"`
3836
3837
3838
3839
3840
3841
3842 TuningOperation string `json:"tuningOperation,omitempty"`
3843
3844
3845
3846
3847
3848 ForceSendFields []string `json:"-"`
3849
3850
3851
3852
3853 NullFields []string `json:"-"`
3854 }
3855
3856 func (s *GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata) MarshalJSON() ([]byte, error) {
3857 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata
3858 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3859 }
3860
3861
3862
3863 type GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig struct {
3864
3865
3866
3867
3868
3869
3870 SearchAddOns []string `json:"searchAddOns,omitempty"`
3871
3872
3873
3874
3875
3876
3877
3878
3879
3880 SearchTier string `json:"searchTier,omitempty"`
3881
3882
3883
3884
3885
3886 ForceSendFields []string `json:"-"`
3887
3888
3889
3890
3891 NullFields []string `json:"-"`
3892 }
3893
3894 func (s *GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
3895 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig
3896 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3897 }
3898
3899
3900
3901 type GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig struct {
3902 }
3903
3904
3905
3906
3907 type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata struct {
3908
3909 CreateTime string `json:"createTime,omitempty"`
3910
3911
3912
3913
3914
3915 ForceSendFields []string `json:"-"`
3916
3917
3918
3919
3920 NullFields []string `json:"-"`
3921 }
3922
3923 func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata) MarshalJSON() ([]byte, error) {
3924 type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata
3925 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3926 }
3927
3928
3929
3930
3931
3932 type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse struct {
3933
3934 DataSizeBytes int64 `json:"dataSizeBytes,omitempty,string"`
3935
3936 DocumentCount int64 `json:"documentCount,omitempty,string"`
3937
3938
3939
3940
3941
3942 ForceSendFields []string `json:"-"`
3943
3944
3945
3946
3947 NullFields []string `json:"-"`
3948 }
3949
3950 func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse) MarshalJSON() ([]byte, error) {
3951 type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse
3952 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3953 }
3954
3955
3956
3957 type GoogleCloudDiscoveryengineV1alphaFieldConfig struct {
3958
3959
3960
3961
3962
3963
3964
3965
3966
3967
3968 AdvancedSiteSearchDataSources []string `json:"advancedSiteSearchDataSources,omitempty"`
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
3980
3981
3982 CompletableOption string `json:"completableOption,omitempty"`
3983
3984
3985
3986
3987
3988
3989
3990
3991
3992
3993
3994
3995
3996
3997
3998
3999
4000 DynamicFacetableOption string `json:"dynamicFacetableOption,omitempty"`
4001
4002
4003 FieldPath string `json:"fieldPath,omitempty"`
4004
4005
4006
4007
4008
4009
4010
4011
4012
4013
4014
4015
4016
4017
4018
4019
4020
4021
4022
4023
4024
4025
4026 FieldType string `json:"fieldType,omitempty"`
4027
4028
4029
4030
4031
4032
4033
4034
4035
4036
4037
4038
4039
4040 IndexableOption string `json:"indexableOption,omitempty"`
4041
4042
4043
4044
4045
4046
4047 KeyPropertyType string `json:"keyPropertyType,omitempty"`
4048
4049
4050
4051
4052
4053
4054
4055
4056
4057
4058
4059
4060
4061
4062 RecsFilterableOption string `json:"recsFilterableOption,omitempty"`
4063
4064
4065
4066
4067
4068
4069
4070
4071
4072
4073
4074
4075 RetrievableOption string `json:"retrievableOption,omitempty"`
4076
4077
4078
4079
4080
4081
4082
4083
4084
4085
4086
4087
4088
4089
4090
4091
4092 SearchableOption string `json:"searchableOption,omitempty"`
4093
4094
4095
4096
4097
4098 ForceSendFields []string `json:"-"`
4099
4100
4101
4102
4103 NullFields []string `json:"-"`
4104 }
4105
4106 func (s *GoogleCloudDiscoveryengineV1alphaFieldConfig) MarshalJSON() ([]byte, error) {
4107 type NoMethod GoogleCloudDiscoveryengineV1alphaFieldConfig
4108 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4109 }
4110
4111
4112 type GoogleCloudDiscoveryengineV1alphaIdpConfig struct {
4113
4114 ExternalIdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig `json:"externalIdpConfig,omitempty"`
4115
4116
4117
4118
4119
4120
4121 IdpType string `json:"idpType,omitempty"`
4122
4123
4124
4125
4126
4127 ForceSendFields []string `json:"-"`
4128
4129
4130
4131
4132 NullFields []string `json:"-"`
4133 }
4134
4135 func (s *GoogleCloudDiscoveryengineV1alphaIdpConfig) MarshalJSON() ([]byte, error) {
4136 type NoMethod GoogleCloudDiscoveryengineV1alphaIdpConfig
4137 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4138 }
4139
4140
4141
4142 type GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig struct {
4143
4144
4145 WorkforcePoolName string `json:"workforcePoolName,omitempty"`
4146
4147
4148
4149
4150
4151 ForceSendFields []string `json:"-"`
4152
4153
4154
4155
4156 NullFields []string `json:"-"`
4157 }
4158
4159 func (s *GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig) MarshalJSON() ([]byte, error) {
4160 type NoMethod GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig
4161 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4162 }
4163
4164
4165
4166
4167 type GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata struct {
4168
4169 CreateTime string `json:"createTime,omitempty"`
4170
4171 FailureCount int64 `json:"failureCount,omitempty,string"`
4172
4173 SuccessCount int64 `json:"successCount,omitempty,string"`
4174
4175 TotalCount int64 `json:"totalCount,omitempty,string"`
4176
4177
4178 UpdateTime string `json:"updateTime,omitempty"`
4179
4180
4181
4182
4183
4184 ForceSendFields []string `json:"-"`
4185
4186
4187
4188
4189 NullFields []string `json:"-"`
4190 }
4191
4192 func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
4193 type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
4194 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4195 }
4196
4197
4198
4199
4200
4201 type GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse struct {
4202
4203
4204 ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
4205
4206 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
4207
4208
4209
4210
4211
4212 ForceSendFields []string `json:"-"`
4213
4214
4215
4216
4217 NullFields []string `json:"-"`
4218 }
4219
4220 func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse) MarshalJSON() ([]byte, error) {
4221 type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse
4222 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4223 }
4224
4225
4226
4227 type GoogleCloudDiscoveryengineV1alphaImportErrorConfig struct {
4228
4229
4230
4231
4232 GcsPrefix string `json:"gcsPrefix,omitempty"`
4233
4234
4235
4236
4237
4238 ForceSendFields []string `json:"-"`
4239
4240
4241
4242
4243 NullFields []string `json:"-"`
4244 }
4245
4246 func (s *GoogleCloudDiscoveryengineV1alphaImportErrorConfig) MarshalJSON() ([]byte, error) {
4247 type NoMethod GoogleCloudDiscoveryengineV1alphaImportErrorConfig
4248 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4249 }
4250
4251
4252
4253
4254
4255 type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata struct {
4256
4257 CreateTime string `json:"createTime,omitempty"`
4258
4259
4260 UpdateTime string `json:"updateTime,omitempty"`
4261
4262
4263
4264
4265
4266 ForceSendFields []string `json:"-"`
4267
4268
4269
4270
4271 NullFields []string `json:"-"`
4272 }
4273
4274 func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
4275 type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata
4276 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4277 }
4278
4279
4280
4281
4282 type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse struct {
4283
4284 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
4285
4286 FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
4287
4288 ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
4289
4290
4291
4292
4293
4294 ForceSendFields []string `json:"-"`
4295
4296
4297
4298
4299 NullFields []string `json:"-"`
4300 }
4301
4302 func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
4303 type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse
4304 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4305 }
4306
4307
4308
4309
4310 type GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata struct {
4311
4312 CreateTime string `json:"createTime,omitempty"`
4313
4314 FailureCount int64 `json:"failureCount,omitempty,string"`
4315
4316 SuccessCount int64 `json:"successCount,omitempty,string"`
4317
4318
4319 UpdateTime string `json:"updateTime,omitempty"`
4320
4321
4322
4323
4324
4325 ForceSendFields []string `json:"-"`
4326
4327
4328
4329
4330 NullFields []string `json:"-"`
4331 }
4332
4333 func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
4334 type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata
4335 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4336 }
4337
4338
4339
4340
4341
4342 type GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse struct {
4343
4344
4345 ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
4346
4347 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
4348
4349
4350 JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
4351
4352
4353 UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
4354
4355
4356
4357
4358
4359 ForceSendFields []string `json:"-"`
4360
4361
4362
4363
4364 NullFields []string `json:"-"`
4365 }
4366
4367 func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse) MarshalJSON() ([]byte, error) {
4368 type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse
4369 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4370 }
4371
4372
4373
4374 type GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse struct {
4375
4376 Models []*GoogleCloudDiscoveryengineV1alphaCustomTuningModel `json:"models,omitempty"`
4377
4378
4379
4380
4381
4382 ForceSendFields []string `json:"-"`
4383
4384
4385
4386
4387 NullFields []string `json:"-"`
4388 }
4389
4390 func (s *GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse) MarshalJSON() ([]byte, error) {
4391 type NoMethod GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
4392 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4393 }
4394
4395
4396
4397 type GoogleCloudDiscoveryengineV1alphaProject struct {
4398
4399 CreateTime string `json:"createTime,omitempty"`
4400
4401
4402
4403
4404 Name string `json:"name,omitempty"`
4405
4406
4407
4408 ProvisionCompletionTime string `json:"provisionCompletionTime,omitempty"`
4409
4410
4411 ServiceTermsMap map[string]GoogleCloudDiscoveryengineV1alphaProjectServiceTerms `json:"serviceTermsMap,omitempty"`
4412
4413
4414
4415
4416
4417 ForceSendFields []string `json:"-"`
4418
4419
4420
4421
4422 NullFields []string `json:"-"`
4423 }
4424
4425 func (s *GoogleCloudDiscoveryengineV1alphaProject) MarshalJSON() ([]byte, error) {
4426 type NoMethod GoogleCloudDiscoveryengineV1alphaProject
4427 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4428 }
4429
4430
4431
4432 type GoogleCloudDiscoveryengineV1alphaProjectServiceTerms struct {
4433
4434 AcceptTime string `json:"acceptTime,omitempty"`
4435
4436
4437 DeclineTime string `json:"declineTime,omitempty"`
4438
4439
4440
4441
4442 Id string `json:"id,omitempty"`
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454 State string `json:"state,omitempty"`
4455
4456
4457 Version string `json:"version,omitempty"`
4458
4459
4460
4461
4462
4463 ForceSendFields []string `json:"-"`
4464
4465
4466
4467
4468 NullFields []string `json:"-"`
4469 }
4470
4471 func (s *GoogleCloudDiscoveryengineV1alphaProjectServiceTerms) MarshalJSON() ([]byte, error) {
4472 type NoMethod GoogleCloudDiscoveryengineV1alphaProjectServiceTerms
4473 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4474 }
4475
4476
4477
4478 type GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata struct {
4479 }
4480
4481
4482
4483
4484 type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata struct {
4485
4486 CreateTime string `json:"createTime,omitempty"`
4487
4488 FailureCount int64 `json:"failureCount,omitempty,string"`
4489
4490 IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
4491
4492 SuccessCount int64 `json:"successCount,omitempty,string"`
4493
4494
4495 UpdateTime string `json:"updateTime,omitempty"`
4496
4497
4498
4499
4500
4501 ForceSendFields []string `json:"-"`
4502
4503
4504
4505
4506 NullFields []string `json:"-"`
4507 }
4508
4509 func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
4510 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
4511 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4512 }
4513
4514
4515
4516
4517
4518 type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse struct {
4519
4520
4521 PurgeCount int64 `json:"purgeCount,omitempty,string"`
4522
4523
4524
4525 PurgeSample []string `json:"purgeSample,omitempty"`
4526
4527
4528
4529
4530
4531 ForceSendFields []string `json:"-"`
4532
4533
4534
4535
4536 NullFields []string `json:"-"`
4537 }
4538
4539 func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
4540 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse
4541 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4542 }
4543
4544
4545
4546
4547
4548 type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata struct {
4549
4550 CreateTime string `json:"createTime,omitempty"`
4551
4552
4553 UpdateTime string `json:"updateTime,omitempty"`
4554
4555
4556
4557
4558
4559 ForceSendFields []string `json:"-"`
4560
4561
4562
4563
4564 NullFields []string `json:"-"`
4565 }
4566
4567 func (s *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
4568 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata
4569 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4570 }
4571
4572
4573
4574
4575 type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse struct {
4576
4577 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
4578
4579 PurgeCount int64 `json:"purgeCount,omitempty,string"`
4580
4581
4582
4583
4584
4585 ForceSendFields []string `json:"-"`
4586
4587
4588
4589
4590 NullFields []string `json:"-"`
4591 }
4592
4593 func (s *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
4594 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse
4595 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4596 }
4597
4598
4599
4600
4601 type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata struct {
4602
4603 CreateTime string `json:"createTime,omitempty"`
4604
4605 FailureCount int64 `json:"failureCount,omitempty,string"`
4606
4607 SuccessCount int64 `json:"successCount,omitempty,string"`
4608
4609
4610 UpdateTime string `json:"updateTime,omitempty"`
4611
4612
4613
4614
4615
4616 ForceSendFields []string `json:"-"`
4617
4618
4619
4620
4621 NullFields []string `json:"-"`
4622 }
4623
4624 func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata) MarshalJSON() ([]byte, error) {
4625 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata
4626 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4627 }
4628
4629
4630
4631
4632
4633 type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse struct {
4634
4635 PurgeCount int64 `json:"purgeCount,omitempty,string"`
4636
4637
4638
4639
4640
4641 ForceSendFields []string `json:"-"`
4642
4643
4644
4645
4646 NullFields []string `json:"-"`
4647 }
4648
4649 func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse) MarshalJSON() ([]byte, error) {
4650 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse
4651 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4652 }
4653
4654
4655 type GoogleCloudDiscoveryengineV1alphaQuery struct {
4656
4657 QueryId string `json:"queryId,omitempty"`
4658
4659 Text string `json:"text,omitempty"`
4660
4661
4662
4663
4664
4665 ForceSendFields []string `json:"-"`
4666
4667
4668
4669
4670 NullFields []string `json:"-"`
4671 }
4672
4673 func (s *GoogleCloudDiscoveryengineV1alphaQuery) MarshalJSON() ([]byte, error) {
4674 type NoMethod GoogleCloudDiscoveryengineV1alphaQuery
4675 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4676 }
4677
4678
4679
4680
4681 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata struct {
4682
4683 CreateTime string `json:"createTime,omitempty"`
4684
4685
4686
4687 InvalidUris []string `json:"invalidUris,omitempty"`
4688
4689 PendingCount int64 `json:"pendingCount,omitempty"`
4690
4691
4692 QuotaExceededCount int64 `json:"quotaExceededCount,omitempty"`
4693
4694 SuccessCount int64 `json:"successCount,omitempty"`
4695
4696
4697 UpdateTime string `json:"updateTime,omitempty"`
4698
4699
4700 ValidUrisCount int64 `json:"validUrisCount,omitempty"`
4701
4702
4703
4704
4705
4706 ForceSendFields []string `json:"-"`
4707
4708
4709
4710
4711 NullFields []string `json:"-"`
4712 }
4713
4714 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata) MarshalJSON() ([]byte, error) {
4715 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata
4716 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4717 }
4718
4719
4720
4721 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse struct {
4722
4723 FailedUris []string `json:"failedUris,omitempty"`
4724
4725 FailureSamples []*GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo `json:"failureSamples,omitempty"`
4726
4727
4728
4729
4730
4731 ForceSendFields []string `json:"-"`
4732
4733
4734
4735
4736 NullFields []string `json:"-"`
4737 }
4738
4739 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse) MarshalJSON() ([]byte, error) {
4740 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse
4741 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4742 }
4743
4744
4745
4746
4747 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo struct {
4748
4749
4750 FailureReasons []*GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason `json:"failureReasons,omitempty"`
4751
4752 Uri string `json:"uri,omitempty"`
4753
4754
4755
4756
4757
4758 ForceSendFields []string `json:"-"`
4759
4760
4761
4762
4763 NullFields []string `json:"-"`
4764 }
4765
4766 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo) MarshalJSON() ([]byte, error) {
4767 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo
4768 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4769 }
4770
4771
4772
4773
4774
4775
4776 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason struct {
4777
4778
4779
4780
4781
4782
4783 CorpusType string `json:"corpusType,omitempty"`
4784
4785 ErrorMessage string `json:"errorMessage,omitempty"`
4786
4787
4788
4789
4790
4791 ForceSendFields []string `json:"-"`
4792
4793
4794
4795
4796 NullFields []string `json:"-"`
4797 }
4798
4799 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason) MarshalJSON() ([]byte, error) {
4800 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason
4801 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4802 }
4803
4804
4805
4806 type GoogleCloudDiscoveryengineV1alphaSchema struct {
4807
4808 FieldConfigs []*GoogleCloudDiscoveryengineV1alphaFieldConfig `json:"fieldConfigs,omitempty"`
4809
4810 JsonSchema string `json:"jsonSchema,omitempty"`
4811
4812
4813
4814
4815 Name string `json:"name,omitempty"`
4816
4817 StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
4818
4819
4820
4821
4822
4823 ForceSendFields []string `json:"-"`
4824
4825
4826
4827
4828 NullFields []string `json:"-"`
4829 }
4830
4831 func (s *GoogleCloudDiscoveryengineV1alphaSchema) MarshalJSON() ([]byte, error) {
4832 type NoMethod GoogleCloudDiscoveryengineV1alphaSchema
4833 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4834 }
4835
4836
4837 type GoogleCloudDiscoveryengineV1alphaSession struct {
4838
4839 EndTime string `json:"endTime,omitempty"`
4840
4841
4842
4843 Name string `json:"name,omitempty"`
4844
4845 StartTime string `json:"startTime,omitempty"`
4846
4847
4848
4849
4850
4851 State string `json:"state,omitempty"`
4852
4853 Turns []*GoogleCloudDiscoveryengineV1alphaSessionTurn `json:"turns,omitempty"`
4854
4855 UserPseudoId string `json:"userPseudoId,omitempty"`
4856
4857
4858
4859
4860
4861 ForceSendFields []string `json:"-"`
4862
4863
4864
4865
4866 NullFields []string `json:"-"`
4867 }
4868
4869 func (s *GoogleCloudDiscoveryengineV1alphaSession) MarshalJSON() ([]byte, error) {
4870 type NoMethod GoogleCloudDiscoveryengineV1alphaSession
4871 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4872 }
4873
4874
4875
4876 type GoogleCloudDiscoveryengineV1alphaSessionTurn struct {
4877
4878 Answer string `json:"answer,omitempty"`
4879
4880 Query *GoogleCloudDiscoveryengineV1alphaQuery `json:"query,omitempty"`
4881
4882
4883
4884
4885
4886 ForceSendFields []string `json:"-"`
4887
4888
4889
4890
4891 NullFields []string `json:"-"`
4892 }
4893
4894 func (s *GoogleCloudDiscoveryengineV1alphaSessionTurn) MarshalJSON() ([]byte, error) {
4895 type NoMethod GoogleCloudDiscoveryengineV1alphaSessionTurn
4896 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4897 }
4898
4899
4900
4901 type GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo struct {
4902
4903
4904
4905
4906
4907
4908
4909
4910
4911 SiteVerificationState string `json:"siteVerificationState,omitempty"`
4912
4913 VerifyTime string `json:"verifyTime,omitempty"`
4914
4915
4916
4917
4918
4919 ForceSendFields []string `json:"-"`
4920
4921
4922
4923
4924 NullFields []string `json:"-"`
4925 }
4926
4927 func (s *GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo) MarshalJSON() ([]byte, error) {
4928 type NoMethod GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo
4929 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4930 }
4931
4932
4933
4934 type GoogleCloudDiscoveryengineV1alphaTargetSite struct {
4935
4936
4937
4938
4939
4940
4941 ExactMatch bool `json:"exactMatch,omitempty"`
4942
4943 FailureReason *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason `json:"failureReason,omitempty"`
4944
4945
4946 GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
4947
4948
4949
4950
4951
4952
4953
4954
4955
4956
4957
4958
4959 IndexingStatus string `json:"indexingStatus,omitempty"`
4960
4961
4962
4963
4964 Name string `json:"name,omitempty"`
4965
4966
4967 ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
4968
4969 RootDomainUri string `json:"rootDomainUri,omitempty"`
4970
4971
4972 SiteVerificationInfo *GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
4973
4974
4975
4976
4977
4978
4979
4980
4981 Type string `json:"type,omitempty"`
4982
4983 UpdateTime string `json:"updateTime,omitempty"`
4984
4985
4986
4987
4988
4989 ForceSendFields []string `json:"-"`
4990
4991
4992
4993
4994 NullFields []string `json:"-"`
4995 }
4996
4997 func (s *GoogleCloudDiscoveryengineV1alphaTargetSite) MarshalJSON() ([]byte, error) {
4998 type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSite
4999 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5000 }
5001
5002
5003
5004 type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason struct {
5005
5006 QuotaFailure *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
5007
5008
5009
5010
5011
5012 ForceSendFields []string `json:"-"`
5013
5014
5015
5016
5017 NullFields []string `json:"-"`
5018 }
5019
5020 func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason) MarshalJSON() ([]byte, error) {
5021 type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason
5022 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5023 }
5024
5025
5026
5027 type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure struct {
5028
5029
5030 TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
5031
5032
5033
5034
5035
5036 ForceSendFields []string `json:"-"`
5037
5038
5039
5040
5041 NullFields []string `json:"-"`
5042 }
5043
5044 func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
5045 type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure
5046 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5047 }
5048
5049
5050
5051
5052 type GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata struct {
5053
5054 CreateTime string `json:"createTime,omitempty"`
5055
5056
5057 UpdateTime string `json:"updateTime,omitempty"`
5058
5059
5060
5061
5062
5063 ForceSendFields []string `json:"-"`
5064
5065
5066
5067
5068 NullFields []string `json:"-"`
5069 }
5070
5071 func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) {
5072 type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata
5073 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5074 }
5075
5076
5077
5078
5079 type GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse struct {
5080
5081
5082 ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
5083
5084 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
5085
5086 Metrics map[string]float64 `json:"metrics,omitempty"`
5087
5088 ModelName string `json:"modelName,omitempty"`
5089
5090
5091
5092
5093
5094
5095
5096 ModelStatus string `json:"modelStatus,omitempty"`
5097
5098
5099
5100
5101
5102 ForceSendFields []string `json:"-"`
5103
5104
5105
5106
5107 NullFields []string `json:"-"`
5108 }
5109
5110 func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse) MarshalJSON() ([]byte, error) {
5111 type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse
5112 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5113 }
5114
5115
5116
5117 type GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata struct {
5118
5119
5120
5121
5122 Engine string `json:"engine,omitempty"`
5123
5124
5125
5126
5127
5128 ForceSendFields []string `json:"-"`
5129
5130
5131
5132
5133 NullFields []string `json:"-"`
5134 }
5135
5136 func (s *GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata) MarshalJSON() ([]byte, error) {
5137 type NoMethod GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata
5138 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5139 }
5140
5141
5142
5143 type GoogleCloudDiscoveryengineV1alphaTuneEngineResponse struct {
5144 }
5145
5146
5147
5148 type GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata struct {
5149
5150 CreateTime string `json:"createTime,omitempty"`
5151
5152
5153 UpdateTime string `json:"updateTime,omitempty"`
5154
5155
5156
5157
5158
5159 ForceSendFields []string `json:"-"`
5160
5161
5162
5163
5164 NullFields []string `json:"-"`
5165 }
5166
5167 func (s *GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
5168 type NoMethod GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata
5169 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5170 }
5171
5172
5173
5174
5175 type GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata struct {
5176
5177 CreateTime string `json:"createTime,omitempty"`
5178
5179
5180 UpdateTime string `json:"updateTime,omitempty"`
5181
5182
5183
5184
5185
5186 ForceSendFields []string `json:"-"`
5187
5188
5189
5190
5191 NullFields []string `json:"-"`
5192 }
5193
5194 func (s *GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
5195 type NoMethod GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata
5196 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5197 }
5198
5199
5200 type GoogleCloudDiscoveryengineV1betaAnswer struct {
5201
5202
5203
5204
5205
5206
5207
5208
5209
5210
5211
5212
5213
5214
5215 AnswerSkippedReasons []string `json:"answerSkippedReasons,omitempty"`
5216
5217 AnswerText string `json:"answerText,omitempty"`
5218
5219 Citations []*GoogleCloudDiscoveryengineV1betaAnswerCitation `json:"citations,omitempty"`
5220
5221 CompleteTime string `json:"completeTime,omitempty"`
5222
5223 CreateTime string `json:"createTime,omitempty"`
5224
5225
5226
5227 Name string `json:"name,omitempty"`
5228
5229 QueryUnderstandingInfo *GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfo `json:"queryUnderstandingInfo,omitempty"`
5230
5231 References []*GoogleCloudDiscoveryengineV1betaAnswerReference `json:"references,omitempty"`
5232
5233 RelatedQuestions []string `json:"relatedQuestions,omitempty"`
5234
5235
5236
5237
5238
5239
5240
5241 State string `json:"state,omitempty"`
5242
5243 Steps []*GoogleCloudDiscoveryengineV1betaAnswerStep `json:"steps,omitempty"`
5244
5245
5246 googleapi.ServerResponse `json:"-"`
5247
5248
5249
5250
5251
5252 ForceSendFields []string `json:"-"`
5253
5254
5255
5256
5257 NullFields []string `json:"-"`
5258 }
5259
5260 func (s *GoogleCloudDiscoveryengineV1betaAnswer) MarshalJSON() ([]byte, error) {
5261 type NoMethod GoogleCloudDiscoveryengineV1betaAnswer
5262 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5263 }
5264
5265
5266 type GoogleCloudDiscoveryengineV1betaAnswerCitation struct {
5267
5268 EndIndex int64 `json:"endIndex,omitempty,string"`
5269
5270 Sources []*GoogleCloudDiscoveryengineV1betaAnswerCitationSource `json:"sources,omitempty"`
5271
5272
5273 StartIndex int64 `json:"startIndex,omitempty,string"`
5274
5275
5276
5277
5278
5279 ForceSendFields []string `json:"-"`
5280
5281
5282
5283
5284 NullFields []string `json:"-"`
5285 }
5286
5287 func (s *GoogleCloudDiscoveryengineV1betaAnswerCitation) MarshalJSON() ([]byte, error) {
5288 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerCitation
5289 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5290 }
5291
5292
5293 type GoogleCloudDiscoveryengineV1betaAnswerCitationSource struct {
5294
5295 ReferenceId string `json:"referenceId,omitempty"`
5296
5297
5298
5299
5300
5301 ForceSendFields []string `json:"-"`
5302
5303
5304
5305
5306 NullFields []string `json:"-"`
5307 }
5308
5309 func (s *GoogleCloudDiscoveryengineV1betaAnswerCitationSource) MarshalJSON() ([]byte, error) {
5310 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerCitationSource
5311 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5312 }
5313
5314
5315
5316 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequest struct {
5317
5318 AnswerGenerationSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec `json:"answerGenerationSpec,omitempty"`
5319
5320
5321
5322
5323
5324 AsynchronousMode bool `json:"asynchronousMode,omitempty"`
5325
5326 Query *GoogleCloudDiscoveryengineV1betaQuery `json:"query,omitempty"`
5327
5328 QueryUnderstandingSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec `json:"queryUnderstandingSpec,omitempty"`
5329
5330 RelatedQuestionsSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec `json:"relatedQuestionsSpec,omitempty"`
5331
5332 SafetySpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec `json:"safetySpec,omitempty"`
5333
5334 SearchSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec `json:"searchSpec,omitempty"`
5335
5336
5337
5338
5339 Session string `json:"session,omitempty"`
5340
5341
5342
5343
5344
5345
5346
5347 UserPseudoId string `json:"userPseudoId,omitempty"`
5348
5349
5350
5351
5352
5353 ForceSendFields []string `json:"-"`
5354
5355
5356
5357
5358 NullFields []string `json:"-"`
5359 }
5360
5361 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest) MarshalJSON() ([]byte, error) {
5362 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
5363 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5364 }
5365
5366
5367
5368 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec struct {
5369
5370
5371
5372 AnswerLanguageCode string `json:"answerLanguageCode,omitempty"`
5373
5374
5375
5376
5377
5378
5379
5380
5381 IgnoreAdversarialQuery bool `json:"ignoreAdversarialQuery,omitempty"`
5382
5383
5384
5385
5386
5387
5388 IgnoreNonAnswerSeekingQuery bool `json:"ignoreNonAnswerSeekingQuery,omitempty"`
5389
5390
5391 IncludeCitations bool `json:"includeCitations,omitempty"`
5392
5393 ModelSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec `json:"modelSpec,omitempty"`
5394
5395 PromptSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec `json:"promptSpec,omitempty"`
5396
5397
5398
5399
5400
5401 ForceSendFields []string `json:"-"`
5402
5403
5404
5405
5406 NullFields []string `json:"-"`
5407 }
5408
5409 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec) MarshalJSON() ([]byte, error) {
5410 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpec
5411 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5412 }
5413
5414
5415
5416 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec struct {
5417
5418
5419 ModelVersion string `json:"modelVersion,omitempty"`
5420
5421
5422
5423
5424
5425 ForceSendFields []string `json:"-"`
5426
5427
5428
5429
5430 NullFields []string `json:"-"`
5431 }
5432
5433 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec) MarshalJSON() ([]byte, error) {
5434 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecModelSpec
5435 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5436 }
5437
5438
5439
5440 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec struct {
5441
5442 Preamble string `json:"preamble,omitempty"`
5443
5444
5445
5446
5447
5448 ForceSendFields []string `json:"-"`
5449
5450
5451
5452
5453 NullFields []string `json:"-"`
5454 }
5455
5456 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec) MarshalJSON() ([]byte, error) {
5457 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestAnswerGenerationSpecPromptSpec
5458 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5459 }
5460
5461
5462
5463 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec struct {
5464
5465 QueryClassificationSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec `json:"queryClassificationSpec,omitempty"`
5466
5467 QueryRephraserSpec *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec `json:"queryRephraserSpec,omitempty"`
5468
5469
5470
5471
5472
5473 ForceSendFields []string `json:"-"`
5474
5475
5476
5477
5478 NullFields []string `json:"-"`
5479 }
5480
5481 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec) MarshalJSON() ([]byte, error) {
5482 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec
5483 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5484 }
5485
5486
5487
5488 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec struct {
5489
5490
5491
5492
5493
5494
5495 Types []string `json:"types,omitempty"`
5496
5497
5498
5499
5500
5501 ForceSendFields []string `json:"-"`
5502
5503
5504
5505
5506 NullFields []string `json:"-"`
5507 }
5508
5509 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec) MarshalJSON() ([]byte, error) {
5510 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec
5511 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5512 }
5513
5514
5515
5516 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec struct {
5517
5518 Disable bool `json:"disable,omitempty"`
5519
5520
5521 MaxRephraseSteps int64 `json:"maxRephraseSteps,omitempty"`
5522
5523
5524
5525
5526
5527 ForceSendFields []string `json:"-"`
5528
5529
5530
5531
5532 NullFields []string `json:"-"`
5533 }
5534
5535 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec) MarshalJSON() ([]byte, error) {
5536 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec
5537 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5538 }
5539
5540
5541
5542 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec struct {
5543
5544 Enable bool `json:"enable,omitempty"`
5545
5546
5547
5548
5549
5550 ForceSendFields []string `json:"-"`
5551
5552
5553
5554
5555 NullFields []string `json:"-"`
5556 }
5557
5558 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec) MarshalJSON() ([]byte, error) {
5559 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestRelatedQuestionsSpec
5560 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5561 }
5562
5563
5564
5565 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec struct {
5566
5567
5568 Enable bool `json:"enable,omitempty"`
5569
5570
5571
5572
5573
5574 ForceSendFields []string `json:"-"`
5575
5576
5577
5578
5579 NullFields []string `json:"-"`
5580 }
5581
5582 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec) MarshalJSON() ([]byte, error) {
5583 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSafetySpec
5584 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5585 }
5586
5587
5588
5589 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec struct {
5590
5591 SearchParams *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchParams `json:"searchParams,omitempty"`
5592
5593 SearchResultList *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList `json:"searchResultList,omitempty"`
5594
5595
5596
5597
5598
5599 ForceSendFields []string `json:"-"`
5600
5601
5602
5603
5604 NullFields []string `json:"-"`
5605 }
5606
5607 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec) MarshalJSON() ([]byte, error) {
5608 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpec
5609 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5610 }
5611
5612
5613
5614 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchParams struct {
5615
5616
5617
5618 BoostSpec *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec `json:"boostSpec,omitempty"`
5619
5620
5621
5622
5623
5624
5625
5626
5627
5628
5629
5630
5631 Filter string `json:"filter,omitempty"`
5632
5633
5634 MaxReturnResults int64 `json:"maxReturnResults,omitempty"`
5635
5636
5637
5638
5639
5640 OrderBy string `json:"orderBy,omitempty"`
5641
5642
5643
5644
5645
5646 ForceSendFields []string `json:"-"`
5647
5648
5649
5650
5651 NullFields []string `json:"-"`
5652 }
5653
5654 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchParams) MarshalJSON() ([]byte, error) {
5655 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchParams
5656 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5657 }
5658
5659
5660
5661
5662 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList struct {
5663
5664 SearchResults []*GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResult `json:"searchResults,omitempty"`
5665
5666
5667
5668
5669
5670 ForceSendFields []string `json:"-"`
5671
5672
5673
5674
5675 NullFields []string `json:"-"`
5676 }
5677
5678 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList) MarshalJSON() ([]byte, error) {
5679 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultList
5680 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5681 }
5682
5683
5684
5685 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResult struct {
5686
5687 ChunkInfo *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo `json:"chunkInfo,omitempty"`
5688
5689 UnstructuredDocumentInfo *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo `json:"unstructuredDocumentInfo,omitempty"`
5690
5691
5692
5693
5694
5695 ForceSendFields []string `json:"-"`
5696
5697
5698
5699
5700 NullFields []string `json:"-"`
5701 }
5702
5703 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResult) MarshalJSON() ([]byte, error) {
5704 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResult
5705 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5706 }
5707
5708
5709
5710 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo struct {
5711
5712 Chunk string `json:"chunk,omitempty"`
5713
5714 Content string `json:"content,omitempty"`
5715
5716
5717
5718
5719
5720 ForceSendFields []string `json:"-"`
5721
5722
5723
5724
5725 NullFields []string `json:"-"`
5726 }
5727
5728 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo) MarshalJSON() ([]byte, error) {
5729 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo
5730 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5731 }
5732
5733
5734
5735 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo struct {
5736
5737 Document string `json:"document,omitempty"`
5738
5739 DocumentContexts []*GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext `json:"documentContexts,omitempty"`
5740
5741 ExtractiveAnswers []*GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer `json:"extractiveAnswers,omitempty"`
5742
5743 ExtractiveSegments []*GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment `json:"extractiveSegments,omitempty"`
5744
5745 Title string `json:"title,omitempty"`
5746
5747 Uri string `json:"uri,omitempty"`
5748
5749
5750
5751
5752
5753 ForceSendFields []string `json:"-"`
5754
5755
5756
5757
5758 NullFields []string `json:"-"`
5759 }
5760
5761 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo) MarshalJSON() ([]byte, error) {
5762 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo
5763 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5764 }
5765
5766
5767
5768 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext struct {
5769
5770 Content string `json:"content,omitempty"`
5771
5772 PageIdentifier string `json:"pageIdentifier,omitempty"`
5773
5774
5775
5776
5777
5778 ForceSendFields []string `json:"-"`
5779
5780
5781
5782
5783 NullFields []string `json:"-"`
5784 }
5785
5786 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext) MarshalJSON() ([]byte, error) {
5787 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext
5788 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5789 }
5790
5791
5792
5793
5794
5795 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer struct {
5796
5797 Content string `json:"content,omitempty"`
5798
5799 PageIdentifier string `json:"pageIdentifier,omitempty"`
5800
5801
5802
5803
5804
5805 ForceSendFields []string `json:"-"`
5806
5807
5808
5809
5810 NullFields []string `json:"-"`
5811 }
5812
5813 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer) MarshalJSON() ([]byte, error) {
5814 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer
5815 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5816 }
5817
5818
5819
5820
5821
5822 type GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment struct {
5823
5824 Content string `json:"content,omitempty"`
5825
5826 PageIdentifier string `json:"pageIdentifier,omitempty"`
5827
5828
5829
5830
5831
5832 ForceSendFields []string `json:"-"`
5833
5834
5835
5836
5837 NullFields []string `json:"-"`
5838 }
5839
5840 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment) MarshalJSON() ([]byte, error) {
5841 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment
5842 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5843 }
5844
5845
5846
5847 type GoogleCloudDiscoveryengineV1betaAnswerQueryResponse struct {
5848
5849
5850
5851
5852 Answer *GoogleCloudDiscoveryengineV1betaAnswer `json:"answer,omitempty"`
5853
5854 AnswerQueryToken string `json:"answerQueryToken,omitempty"`
5855
5856
5857 Session *GoogleCloudDiscoveryengineV1betaSession `json:"session,omitempty"`
5858
5859
5860 googleapi.ServerResponse `json:"-"`
5861
5862
5863
5864
5865
5866 ForceSendFields []string `json:"-"`
5867
5868
5869
5870
5871 NullFields []string `json:"-"`
5872 }
5873
5874 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryResponse) MarshalJSON() ([]byte, error) {
5875 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryResponse
5876 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5877 }
5878
5879
5880
5881 type GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfo struct {
5882
5883 QueryClassificationInfo []*GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfoQueryClassificationInfo `json:"queryClassificationInfo,omitempty"`
5884
5885
5886
5887
5888
5889 ForceSendFields []string `json:"-"`
5890
5891
5892
5893
5894 NullFields []string `json:"-"`
5895 }
5896
5897 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfo) MarshalJSON() ([]byte, error) {
5898 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfo
5899 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5900 }
5901
5902
5903
5904 type GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfoQueryClassificationInfo struct {
5905
5906 Positive bool `json:"positive,omitempty"`
5907
5908
5909
5910
5911
5912
5913 Type string `json:"type,omitempty"`
5914
5915
5916
5917
5918
5919 ForceSendFields []string `json:"-"`
5920
5921
5922
5923
5924 NullFields []string `json:"-"`
5925 }
5926
5927 func (s *GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfoQueryClassificationInfo) MarshalJSON() ([]byte, error) {
5928 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerQueryUnderstandingInfoQueryClassificationInfo
5929 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5930 }
5931
5932
5933 type GoogleCloudDiscoveryengineV1betaAnswerReference struct {
5934
5935 ChunkInfo *GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo `json:"chunkInfo,omitempty"`
5936
5937 UnstructuredDocumentInfo *GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo `json:"unstructuredDocumentInfo,omitempty"`
5938
5939
5940
5941
5942
5943 ForceSendFields []string `json:"-"`
5944
5945
5946
5947
5948 NullFields []string `json:"-"`
5949 }
5950
5951 func (s *GoogleCloudDiscoveryengineV1betaAnswerReference) MarshalJSON() ([]byte, error) {
5952 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerReference
5953 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5954 }
5955
5956
5957 type GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo struct {
5958
5959 Chunk string `json:"chunk,omitempty"`
5960
5961 Content string `json:"content,omitempty"`
5962
5963 DocumentMetadata *GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfoDocumentMetadata `json:"documentMetadata,omitempty"`
5964
5965 RelevanceScore float64 `json:"relevanceScore,omitempty"`
5966
5967
5968
5969
5970
5971 ForceSendFields []string `json:"-"`
5972
5973
5974
5975
5976 NullFields []string `json:"-"`
5977 }
5978
5979 func (s *GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo) MarshalJSON() ([]byte, error) {
5980 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo
5981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5982 }
5983
5984 func (s *GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo) UnmarshalJSON(data []byte) error {
5985 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfo
5986 var s1 struct {
5987 RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
5988 *NoMethod
5989 }
5990 s1.NoMethod = (*NoMethod)(s)
5991 if err := json.Unmarshal(data, &s1); err != nil {
5992 return err
5993 }
5994 s.RelevanceScore = float64(s1.RelevanceScore)
5995 return nil
5996 }
5997
5998
5999
6000 type GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfoDocumentMetadata struct {
6001
6002 Document string `json:"document,omitempty"`
6003
6004 PageIdentifier string `json:"pageIdentifier,omitempty"`
6005
6006 Title string `json:"title,omitempty"`
6007
6008 Uri string `json:"uri,omitempty"`
6009
6010
6011
6012
6013
6014 ForceSendFields []string `json:"-"`
6015
6016
6017
6018
6019 NullFields []string `json:"-"`
6020 }
6021
6022 func (s *GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfoDocumentMetadata) MarshalJSON() ([]byte, error) {
6023 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerReferenceChunkInfoDocumentMetadata
6024 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6025 }
6026
6027
6028
6029 type GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo struct {
6030
6031 ChunkContents []*GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChunkContent `json:"chunkContents,omitempty"`
6032
6033 Document string `json:"document,omitempty"`
6034
6035 Title string `json:"title,omitempty"`
6036
6037 Uri string `json:"uri,omitempty"`
6038
6039
6040
6041
6042
6043 ForceSendFields []string `json:"-"`
6044
6045
6046
6047
6048 NullFields []string `json:"-"`
6049 }
6050
6051 func (s *GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo) MarshalJSON() ([]byte, error) {
6052 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfo
6053 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6054 }
6055
6056
6057
6058 type GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChunkContent struct {
6059
6060 Content string `json:"content,omitempty"`
6061
6062 PageIdentifier string `json:"pageIdentifier,omitempty"`
6063
6064
6065
6066
6067
6068 ForceSendFields []string `json:"-"`
6069
6070
6071
6072
6073 NullFields []string `json:"-"`
6074 }
6075
6076 func (s *GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChunkContent) MarshalJSON() ([]byte, error) {
6077 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerReferenceUnstructuredDocumentInfoChunkContent
6078 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6079 }
6080
6081
6082 type GoogleCloudDiscoveryengineV1betaAnswerStep struct {
6083
6084 Actions []*GoogleCloudDiscoveryengineV1betaAnswerStepAction `json:"actions,omitempty"`
6085
6086 Description string `json:"description,omitempty"`
6087
6088
6089
6090
6091
6092
6093
6094 State string `json:"state,omitempty"`
6095
6096 Thought string `json:"thought,omitempty"`
6097
6098
6099
6100
6101
6102 ForceSendFields []string `json:"-"`
6103
6104
6105
6106
6107 NullFields []string `json:"-"`
6108 }
6109
6110 func (s *GoogleCloudDiscoveryengineV1betaAnswerStep) MarshalJSON() ([]byte, error) {
6111 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStep
6112 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6113 }
6114
6115
6116 type GoogleCloudDiscoveryengineV1betaAnswerStepAction struct {
6117
6118 Observation *GoogleCloudDiscoveryengineV1betaAnswerStepActionObservation `json:"observation,omitempty"`
6119
6120 SearchAction *GoogleCloudDiscoveryengineV1betaAnswerStepActionSearchAction `json:"searchAction,omitempty"`
6121
6122
6123
6124
6125
6126 ForceSendFields []string `json:"-"`
6127
6128
6129
6130
6131 NullFields []string `json:"-"`
6132 }
6133
6134 func (s *GoogleCloudDiscoveryengineV1betaAnswerStepAction) MarshalJSON() ([]byte, error) {
6135 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepAction
6136 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6137 }
6138
6139
6140 type GoogleCloudDiscoveryengineV1betaAnswerStepActionObservation struct {
6141
6142
6143 SearchResults []*GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResult `json:"searchResults,omitempty"`
6144
6145
6146
6147
6148
6149 ForceSendFields []string `json:"-"`
6150
6151
6152
6153
6154 NullFields []string `json:"-"`
6155 }
6156
6157 func (s *GoogleCloudDiscoveryengineV1betaAnswerStepActionObservation) MarshalJSON() ([]byte, error) {
6158 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepActionObservation
6159 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6160 }
6161
6162 type GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResult struct {
6163
6164
6165 ChunkInfo []*GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkInfo `json:"chunkInfo,omitempty"`
6166
6167 Document string `json:"document,omitempty"`
6168
6169
6170 SnippetInfo []*GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultSnippetInfo `json:"snippetInfo,omitempty"`
6171
6172 Title string `json:"title,omitempty"`
6173
6174 Uri string `json:"uri,omitempty"`
6175
6176
6177
6178
6179
6180 ForceSendFields []string `json:"-"`
6181
6182
6183
6184
6185 NullFields []string `json:"-"`
6186 }
6187
6188 func (s *GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResult) MarshalJSON() ([]byte, error) {
6189 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResult
6190 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6191 }
6192
6193
6194
6195 type GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkInfo struct {
6196
6197 Chunk string `json:"chunk,omitempty"`
6198
6199 Content string `json:"content,omitempty"`
6200
6201 RelevanceScore float64 `json:"relevanceScore,omitempty"`
6202
6203
6204
6205
6206
6207 ForceSendFields []string `json:"-"`
6208
6209
6210
6211
6212 NullFields []string `json:"-"`
6213 }
6214
6215 func (s *GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkInfo) MarshalJSON() ([]byte, error) {
6216 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkInfo
6217 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6218 }
6219
6220 func (s *GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkInfo) UnmarshalJSON(data []byte) error {
6221 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultChunkInfo
6222 var s1 struct {
6223 RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
6224 *NoMethod
6225 }
6226 s1.NoMethod = (*NoMethod)(s)
6227 if err := json.Unmarshal(data, &s1); err != nil {
6228 return err
6229 }
6230 s.RelevanceScore = float64(s1.RelevanceScore)
6231 return nil
6232 }
6233
6234
6235
6236 type GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultSnippetInfo struct {
6237
6238 Snippet string `json:"snippet,omitempty"`
6239
6240 SnippetStatus string `json:"snippetStatus,omitempty"`
6241
6242
6243
6244
6245
6246 ForceSendFields []string `json:"-"`
6247
6248
6249
6250
6251 NullFields []string `json:"-"`
6252 }
6253
6254 func (s *GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultSnippetInfo) MarshalJSON() ([]byte, error) {
6255 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepActionObservationSearchResultSnippetInfo
6256 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6257 }
6258
6259
6260 type GoogleCloudDiscoveryengineV1betaAnswerStepActionSearchAction struct {
6261
6262 Query string `json:"query,omitempty"`
6263
6264
6265
6266
6267
6268 ForceSendFields []string `json:"-"`
6269
6270
6271
6272
6273 NullFields []string `json:"-"`
6274 }
6275
6276 func (s *GoogleCloudDiscoveryengineV1betaAnswerStepActionSearchAction) MarshalJSON() ([]byte, error) {
6277 type NoMethod GoogleCloudDiscoveryengineV1betaAnswerStepActionSearchAction
6278 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6279 }
6280
6281
6282
6283
6284
6285 type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata struct {
6286
6287 CreateTime string `json:"createTime,omitempty"`
6288
6289
6290 UpdateTime string `json:"updateTime,omitempty"`
6291
6292
6293
6294
6295
6296 ForceSendFields []string `json:"-"`
6297
6298
6299
6300
6301 NullFields []string `json:"-"`
6302 }
6303
6304 func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
6305 type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata
6306 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6307 }
6308
6309
6310
6311 type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest struct {
6312
6313
6314 Requests []*GoogleCloudDiscoveryengineV1betaCreateTargetSiteRequest `json:"requests,omitempty"`
6315
6316
6317
6318
6319
6320 ForceSendFields []string `json:"-"`
6321
6322
6323
6324
6325 NullFields []string `json:"-"`
6326 }
6327
6328 func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest) MarshalJSON() ([]byte, error) {
6329 type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest
6330 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6331 }
6332
6333
6334
6335 type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse struct {
6336
6337 TargetSites []*GoogleCloudDiscoveryengineV1betaTargetSite `json:"targetSites,omitempty"`
6338
6339
6340
6341
6342
6343 ForceSendFields []string `json:"-"`
6344
6345
6346
6347
6348 NullFields []string `json:"-"`
6349 }
6350
6351 func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
6352 type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse
6353 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6354 }
6355
6356
6357
6358 type GoogleCloudDiscoveryengineV1betaBatchVerifyTargetSitesRequest struct {
6359 }
6360
6361
6362
6363 type GoogleCloudDiscoveryengineV1betaBigQuerySource struct {
6364
6365
6366
6367
6368
6369
6370
6371
6372 DataSchema string `json:"dataSchema,omitempty"`
6373
6374
6375 DatasetId string `json:"datasetId,omitempty"`
6376
6377
6378
6379 GcsStagingDir string `json:"gcsStagingDir,omitempty"`
6380
6381
6382 PartitionDate *GoogleTypeDate `json:"partitionDate,omitempty"`
6383
6384
6385
6386 ProjectId string `json:"projectId,omitempty"`
6387
6388
6389 TableId string `json:"tableId,omitempty"`
6390
6391
6392
6393
6394
6395 ForceSendFields []string `json:"-"`
6396
6397
6398
6399
6400 NullFields []string `json:"-"`
6401 }
6402
6403 func (s *GoogleCloudDiscoveryengineV1betaBigQuerySource) MarshalJSON() ([]byte, error) {
6404 type NoMethod GoogleCloudDiscoveryengineV1betaBigQuerySource
6405 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6406 }
6407
6408
6409
6410 type GoogleCloudDiscoveryengineV1betaBigtableOptions struct {
6411
6412
6413
6414 Families map[string]GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily `json:"families,omitempty"`
6415
6416
6417 KeyFieldName string `json:"keyFieldName,omitempty"`
6418
6419
6420
6421
6422
6423 ForceSendFields []string `json:"-"`
6424
6425
6426
6427
6428 NullFields []string `json:"-"`
6429 }
6430
6431 func (s *GoogleCloudDiscoveryengineV1betaBigtableOptions) MarshalJSON() ([]byte, error) {
6432 type NoMethod GoogleCloudDiscoveryengineV1betaBigtableOptions
6433 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6434 }
6435
6436
6437
6438 type GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn struct {
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450 Encoding string `json:"encoding,omitempty"`
6451
6452
6453
6454
6455 FieldName string `json:"fieldName,omitempty"`
6456
6457
6458 Qualifier string `json:"qualifier,omitempty"`
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469
6470
6471
6472 Type string `json:"type,omitempty"`
6473
6474
6475
6476
6477
6478 ForceSendFields []string `json:"-"`
6479
6480
6481
6482
6483 NullFields []string `json:"-"`
6484 }
6485
6486 func (s *GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn) MarshalJSON() ([]byte, error) {
6487 type NoMethod GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn
6488 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6489 }
6490
6491
6492
6493 type GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily struct {
6494
6495
6496 Columns []*GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumn `json:"columns,omitempty"`
6497
6498
6499
6500
6501
6502
6503
6504
6505
6506
6507
6508 Encoding string `json:"encoding,omitempty"`
6509
6510
6511
6512
6513 FieldName string `json:"fieldName,omitempty"`
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527 Type string `json:"type,omitempty"`
6528
6529
6530
6531
6532
6533 ForceSendFields []string `json:"-"`
6534
6535
6536
6537
6538 NullFields []string `json:"-"`
6539 }
6540
6541 func (s *GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily) MarshalJSON() ([]byte, error) {
6542 type NoMethod GoogleCloudDiscoveryengineV1betaBigtableOptionsBigtableColumnFamily
6543 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6544 }
6545
6546
6547
6548 type GoogleCloudDiscoveryengineV1betaBigtableSource struct {
6549
6550
6551
6552 BigtableOptions *GoogleCloudDiscoveryengineV1betaBigtableOptions `json:"bigtableOptions,omitempty"`
6553
6554
6555 InstanceId string `json:"instanceId,omitempty"`
6556
6557
6558
6559 ProjectId string `json:"projectId,omitempty"`
6560
6561
6562 TableId string `json:"tableId,omitempty"`
6563
6564
6565
6566
6567
6568 ForceSendFields []string `json:"-"`
6569
6570
6571
6572
6573 NullFields []string `json:"-"`
6574 }
6575
6576 func (s *GoogleCloudDiscoveryengineV1betaBigtableSource) MarshalJSON() ([]byte, error) {
6577 type NoMethod GoogleCloudDiscoveryengineV1betaBigtableSource
6578 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6579 }
6580
6581
6582
6583 type GoogleCloudDiscoveryengineV1betaCheckGroundingRequest struct {
6584
6585
6586 AnswerCandidate string `json:"answerCandidate,omitempty"`
6587
6588 Facts []*GoogleCloudDiscoveryengineV1betaGroundingFact `json:"facts,omitempty"`
6589
6590 GroundingSpec *GoogleCloudDiscoveryengineV1betaCheckGroundingSpec `json:"groundingSpec,omitempty"`
6591
6592
6593
6594
6595
6596
6597
6598
6599
6600
6601
6602
6603 UserLabels map[string]string `json:"userLabels,omitempty"`
6604
6605
6606
6607
6608
6609 ForceSendFields []string `json:"-"`
6610
6611
6612
6613
6614 NullFields []string `json:"-"`
6615 }
6616
6617 func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingRequest) MarshalJSON() ([]byte, error) {
6618 type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingRequest
6619 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6620 }
6621
6622
6623
6624 type GoogleCloudDiscoveryengineV1betaCheckGroundingResponse struct {
6625
6626
6627 CitedChunks []*GoogleCloudDiscoveryengineV1betaFactChunk `json:"citedChunks,omitempty"`
6628
6629
6630 Claims []*GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim `json:"claims,omitempty"`
6631
6632
6633
6634 SupportScore float64 `json:"supportScore,omitempty"`
6635
6636
6637 googleapi.ServerResponse `json:"-"`
6638
6639
6640
6641
6642
6643 ForceSendFields []string `json:"-"`
6644
6645
6646
6647
6648 NullFields []string `json:"-"`
6649 }
6650
6651 func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingResponse) MarshalJSON() ([]byte, error) {
6652 type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingResponse
6653 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6654 }
6655
6656 func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingResponse) UnmarshalJSON(data []byte) error {
6657 type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingResponse
6658 var s1 struct {
6659 SupportScore gensupport.JSONFloat64 `json:"supportScore"`
6660 *NoMethod
6661 }
6662 s1.NoMethod = (*NoMethod)(s)
6663 if err := json.Unmarshal(data, &s1); err != nil {
6664 return err
6665 }
6666 s.SupportScore = float64(s1.SupportScore)
6667 return nil
6668 }
6669
6670
6671
6672 type GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim struct {
6673
6674
6675
6676
6677
6678 CitationIndices []int64 `json:"citationIndices,omitempty"`
6679
6680
6681 ClaimText string `json:"claimText,omitempty"`
6682
6683
6684 EndPos int64 `json:"endPos,omitempty"`
6685
6686
6687
6688
6689
6690 GroundingCheckRequired bool `json:"groundingCheckRequired,omitempty"`
6691
6692
6693 StartPos int64 `json:"startPos,omitempty"`
6694
6695
6696
6697
6698
6699 ForceSendFields []string `json:"-"`
6700
6701
6702
6703
6704 NullFields []string `json:"-"`
6705 }
6706
6707 func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim) MarshalJSON() ([]byte, error) {
6708 type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingResponseClaim
6709 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6710 }
6711
6712
6713
6714 type GoogleCloudDiscoveryengineV1betaCheckGroundingSpec struct {
6715
6716
6717
6718
6719
6720 CitationThreshold float64 `json:"citationThreshold,omitempty"`
6721
6722
6723
6724
6725
6726 ForceSendFields []string `json:"-"`
6727
6728
6729
6730
6731 NullFields []string `json:"-"`
6732 }
6733
6734 func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingSpec) MarshalJSON() ([]byte, error) {
6735 type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingSpec
6736 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6737 }
6738
6739 func (s *GoogleCloudDiscoveryengineV1betaCheckGroundingSpec) UnmarshalJSON(data []byte) error {
6740 type NoMethod GoogleCloudDiscoveryengineV1betaCheckGroundingSpec
6741 var s1 struct {
6742 CitationThreshold gensupport.JSONFloat64 `json:"citationThreshold"`
6743 *NoMethod
6744 }
6745 s1.NoMethod = (*NoMethod)(s)
6746 if err := json.Unmarshal(data, &s1); err != nil {
6747 return err
6748 }
6749 s.CitationThreshold = float64(s1.CitationThreshold)
6750 return nil
6751 }
6752
6753
6754
6755 type GoogleCloudDiscoveryengineV1betaCloudSqlSource struct {
6756
6757
6758 DatabaseId string `json:"databaseId,omitempty"`
6759
6760
6761
6762
6763
6764 GcsStagingDir string `json:"gcsStagingDir,omitempty"`
6765
6766
6767 InstanceId string `json:"instanceId,omitempty"`
6768
6769
6770
6771 Offload bool `json:"offload,omitempty"`
6772
6773
6774
6775 ProjectId string `json:"projectId,omitempty"`
6776
6777
6778 TableId string `json:"tableId,omitempty"`
6779
6780
6781
6782
6783
6784 ForceSendFields []string `json:"-"`
6785
6786
6787
6788
6789 NullFields []string `json:"-"`
6790 }
6791
6792 func (s *GoogleCloudDiscoveryengineV1betaCloudSqlSource) MarshalJSON() ([]byte, error) {
6793 type NoMethod GoogleCloudDiscoveryengineV1betaCloudSqlSource
6794 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6795 }
6796
6797
6798
6799 type GoogleCloudDiscoveryengineV1betaCompleteQueryResponse struct {
6800
6801
6802 QuerySuggestions []*GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion `json:"querySuggestions,omitempty"`
6803
6804
6805
6806
6807 TailMatchTriggered bool `json:"tailMatchTriggered,omitempty"`
6808
6809
6810 googleapi.ServerResponse `json:"-"`
6811
6812
6813
6814
6815
6816 ForceSendFields []string `json:"-"`
6817
6818
6819
6820
6821 NullFields []string `json:"-"`
6822 }
6823
6824 func (s *GoogleCloudDiscoveryengineV1betaCompleteQueryResponse) MarshalJSON() ([]byte, error) {
6825 type NoMethod GoogleCloudDiscoveryengineV1betaCompleteQueryResponse
6826 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6827 }
6828
6829
6830
6831 type GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion struct {
6832
6833
6834
6835 CompletableFieldPaths []string `json:"completableFieldPaths,omitempty"`
6836
6837 Suggestion string `json:"suggestion,omitempty"`
6838
6839
6840
6841
6842
6843 ForceSendFields []string `json:"-"`
6844
6845
6846
6847
6848 NullFields []string `json:"-"`
6849 }
6850
6851 func (s *GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion) MarshalJSON() ([]byte, error) {
6852 type NoMethod GoogleCloudDiscoveryengineV1betaCompleteQueryResponseQuerySuggestion
6853 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6854 }
6855
6856
6857
6858
6859 type GoogleCloudDiscoveryengineV1betaCompletionInfo struct {
6860
6861
6862 SelectedPosition int64 `json:"selectedPosition,omitempty"`
6863
6864
6865 SelectedSuggestion string `json:"selectedSuggestion,omitempty"`
6866
6867
6868
6869
6870
6871 ForceSendFields []string `json:"-"`
6872
6873
6874
6875
6876 NullFields []string `json:"-"`
6877 }
6878
6879 func (s *GoogleCloudDiscoveryengineV1betaCompletionInfo) MarshalJSON() ([]byte, error) {
6880 type NoMethod GoogleCloudDiscoveryengineV1betaCompletionInfo
6881 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6882 }
6883
6884
6885
6886 type GoogleCloudDiscoveryengineV1betaConversation struct {
6887
6888 EndTime string `json:"endTime,omitempty"`
6889
6890 Messages []*GoogleCloudDiscoveryengineV1betaConversationMessage `json:"messages,omitempty"`
6891
6892
6893
6894
6895
6896 Name string `json:"name,omitempty"`
6897
6898 StartTime string `json:"startTime,omitempty"`
6899
6900
6901
6902
6903
6904
6905 State string `json:"state,omitempty"`
6906
6907 UserPseudoId string `json:"userPseudoId,omitempty"`
6908
6909
6910 googleapi.ServerResponse `json:"-"`
6911
6912
6913
6914
6915
6916 ForceSendFields []string `json:"-"`
6917
6918
6919
6920
6921 NullFields []string `json:"-"`
6922 }
6923
6924 func (s *GoogleCloudDiscoveryengineV1betaConversation) MarshalJSON() ([]byte, error) {
6925 type NoMethod GoogleCloudDiscoveryengineV1betaConversation
6926 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6927 }
6928
6929
6930
6931 type GoogleCloudDiscoveryengineV1betaConversationContext struct {
6932
6933
6934 ActiveDocument string `json:"activeDocument,omitempty"`
6935
6936
6937 ContextDocuments []string `json:"contextDocuments,omitempty"`
6938
6939
6940
6941
6942
6943 ForceSendFields []string `json:"-"`
6944
6945
6946
6947
6948 NullFields []string `json:"-"`
6949 }
6950
6951 func (s *GoogleCloudDiscoveryengineV1betaConversationContext) MarshalJSON() ([]byte, error) {
6952 type NoMethod GoogleCloudDiscoveryengineV1betaConversationContext
6953 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6954 }
6955
6956
6957
6958 type GoogleCloudDiscoveryengineV1betaConversationMessage struct {
6959
6960 CreateTime string `json:"createTime,omitempty"`
6961
6962 Reply *GoogleCloudDiscoveryengineV1betaReply `json:"reply,omitempty"`
6963
6964 UserInput *GoogleCloudDiscoveryengineV1betaTextInput `json:"userInput,omitempty"`
6965
6966
6967
6968
6969
6970 ForceSendFields []string `json:"-"`
6971
6972
6973
6974
6975 NullFields []string `json:"-"`
6976 }
6977
6978 func (s *GoogleCloudDiscoveryengineV1betaConversationMessage) MarshalJSON() ([]byte, error) {
6979 type NoMethod GoogleCloudDiscoveryengineV1betaConversationMessage
6980 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6981 }
6982
6983
6984
6985 type GoogleCloudDiscoveryengineV1betaConverseConversationRequest struct {
6986
6987
6988
6989 BoostSpec *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec `json:"boostSpec,omitempty"`
6990
6991
6992
6993 Conversation *GoogleCloudDiscoveryengineV1betaConversation `json:"conversation,omitempty"`
6994
6995
6996
6997
6998
6999
7000
7001
7002
7003
7004
7005
7006 Filter string `json:"filter,omitempty"`
7007
7008 Query *GoogleCloudDiscoveryengineV1betaTextInput `json:"query,omitempty"`
7009
7010 SafeSearch bool `json:"safeSearch,omitempty"`
7011
7012
7013
7014
7015 ServingConfig string `json:"servingConfig,omitempty"`
7016
7017
7018 SummarySpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec `json:"summarySpec,omitempty"`
7019
7020
7021
7022
7023
7024
7025
7026
7027
7028
7029
7030
7031 UserLabels map[string]string `json:"userLabels,omitempty"`
7032
7033
7034
7035
7036
7037 ForceSendFields []string `json:"-"`
7038
7039
7040
7041
7042 NullFields []string `json:"-"`
7043 }
7044
7045 func (s *GoogleCloudDiscoveryengineV1betaConverseConversationRequest) MarshalJSON() ([]byte, error) {
7046 type NoMethod GoogleCloudDiscoveryengineV1betaConverseConversationRequest
7047 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7048 }
7049
7050
7051
7052 type GoogleCloudDiscoveryengineV1betaConverseConversationResponse struct {
7053
7054 Conversation *GoogleCloudDiscoveryengineV1betaConversation `json:"conversation,omitempty"`
7055
7056 RelatedQuestions []string `json:"relatedQuestions,omitempty"`
7057
7058 Reply *GoogleCloudDiscoveryengineV1betaReply `json:"reply,omitempty"`
7059
7060 SearchResults []*GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult `json:"searchResults,omitempty"`
7061
7062
7063 googleapi.ServerResponse `json:"-"`
7064
7065
7066
7067
7068
7069 ForceSendFields []string `json:"-"`
7070
7071
7072
7073
7074 NullFields []string `json:"-"`
7075 }
7076
7077 func (s *GoogleCloudDiscoveryengineV1betaConverseConversationResponse) MarshalJSON() ([]byte, error) {
7078 type NoMethod GoogleCloudDiscoveryengineV1betaConverseConversationResponse
7079 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7080 }
7081
7082
7083
7084
7085 type GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata struct {
7086
7087 CreateTime string `json:"createTime,omitempty"`
7088
7089
7090 UpdateTime string `json:"updateTime,omitempty"`
7091
7092
7093
7094
7095
7096 ForceSendFields []string `json:"-"`
7097
7098
7099
7100
7101 NullFields []string `json:"-"`
7102 }
7103
7104 func (s *GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
7105 type NoMethod GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata
7106 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7107 }
7108
7109
7110
7111
7112 type GoogleCloudDiscoveryengineV1betaCreateEngineMetadata struct {
7113
7114 CreateTime string `json:"createTime,omitempty"`
7115
7116
7117 UpdateTime string `json:"updateTime,omitempty"`
7118
7119
7120
7121
7122
7123 ForceSendFields []string `json:"-"`
7124
7125
7126
7127
7128 NullFields []string `json:"-"`
7129 }
7130
7131 func (s *GoogleCloudDiscoveryengineV1betaCreateEngineMetadata) MarshalJSON() ([]byte, error) {
7132 type NoMethod GoogleCloudDiscoveryengineV1betaCreateEngineMetadata
7133 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7134 }
7135
7136
7137
7138 type GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata struct {
7139
7140 CreateTime string `json:"createTime,omitempty"`
7141
7142
7143 UpdateTime string `json:"updateTime,omitempty"`
7144
7145
7146
7147
7148
7149 ForceSendFields []string `json:"-"`
7150
7151
7152
7153
7154 NullFields []string `json:"-"`
7155 }
7156
7157 func (s *GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata) MarshalJSON() ([]byte, error) {
7158 type NoMethod GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata
7159 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7160 }
7161
7162
7163
7164
7165 type GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata struct {
7166
7167 CreateTime string `json:"createTime,omitempty"`
7168
7169
7170 UpdateTime string `json:"updateTime,omitempty"`
7171
7172
7173
7174
7175
7176 ForceSendFields []string `json:"-"`
7177
7178
7179
7180
7181 NullFields []string `json:"-"`
7182 }
7183
7184 func (s *GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
7185 type NoMethod GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata
7186 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7187 }
7188
7189
7190
7191 type GoogleCloudDiscoveryengineV1betaCreateTargetSiteRequest struct {
7192
7193
7194
7195 Parent string `json:"parent,omitempty"`
7196
7197 TargetSite *GoogleCloudDiscoveryengineV1betaTargetSite `json:"targetSite,omitempty"`
7198
7199
7200
7201
7202
7203 ForceSendFields []string `json:"-"`
7204
7205
7206
7207
7208 NullFields []string `json:"-"`
7209 }
7210
7211 func (s *GoogleCloudDiscoveryengineV1betaCreateTargetSiteRequest) MarshalJSON() ([]byte, error) {
7212 type NoMethod GoogleCloudDiscoveryengineV1betaCreateTargetSiteRequest
7213 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7214 }
7215
7216
7217
7218 type GoogleCloudDiscoveryengineV1betaCustomAttribute struct {
7219
7220
7221
7222
7223 Numbers []float64 `json:"numbers,omitempty"`
7224
7225
7226
7227
7228
7229 Text []string `json:"text,omitempty"`
7230
7231
7232
7233
7234
7235 ForceSendFields []string `json:"-"`
7236
7237
7238
7239
7240 NullFields []string `json:"-"`
7241 }
7242
7243 func (s *GoogleCloudDiscoveryengineV1betaCustomAttribute) MarshalJSON() ([]byte, error) {
7244 type NoMethod GoogleCloudDiscoveryengineV1betaCustomAttribute
7245 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7246 }
7247
7248 func (s *GoogleCloudDiscoveryengineV1betaCustomAttribute) UnmarshalJSON(data []byte) error {
7249 type NoMethod GoogleCloudDiscoveryengineV1betaCustomAttribute
7250 var s1 struct {
7251 Numbers []gensupport.JSONFloat64 `json:"numbers"`
7252 *NoMethod
7253 }
7254 s1.NoMethod = (*NoMethod)(s)
7255 if err := json.Unmarshal(data, &s1); err != nil {
7256 return err
7257 }
7258 s.Numbers = make([]float64, len(s1.Numbers))
7259 for i := range s1.Numbers {
7260 s.Numbers[i] = float64(s1.Numbers[i])
7261 }
7262 return nil
7263 }
7264
7265
7266
7267 type GoogleCloudDiscoveryengineV1betaCustomTuningModel struct {
7268
7269 CreateTime string `json:"createTime,omitempty"`
7270
7271 DisplayName string `json:"displayName,omitempty"`
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281
7282 ModelState string `json:"modelState,omitempty"`
7283 ModelVersion int64 `json:"modelVersion,omitempty,string"`
7284
7285
7286
7287
7288 Name string `json:"name,omitempty"`
7289
7290 TrainingStartTime string `json:"trainingStartTime,omitempty"`
7291
7292
7293
7294
7295
7296 ForceSendFields []string `json:"-"`
7297
7298
7299
7300
7301 NullFields []string `json:"-"`
7302 }
7303
7304 func (s *GoogleCloudDiscoveryengineV1betaCustomTuningModel) MarshalJSON() ([]byte, error) {
7305 type NoMethod GoogleCloudDiscoveryengineV1betaCustomTuningModel
7306 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7307 }
7308
7309
7310
7311 type GoogleCloudDiscoveryengineV1betaDataStore struct {
7312
7313
7314
7315
7316
7317
7318
7319
7320 ContentConfig string `json:"contentConfig,omitempty"`
7321
7322 CreateTime string `json:"createTime,omitempty"`
7323
7324
7325 DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
7326
7327
7328
7329 DisplayName string `json:"displayName,omitempty"`
7330
7331
7332 DocumentProcessingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
7333
7334
7335
7336
7337
7338
7339
7340
7341
7342 IndustryVertical string `json:"industryVertical,omitempty"`
7343
7344
7345
7346
7347 Name string `json:"name,omitempty"`
7348
7349
7350
7351
7352
7353
7354
7355
7356
7357
7358
7359
7360
7361
7362
7363 SolutionTypes []string `json:"solutionTypes,omitempty"`
7364
7365
7366
7367
7368
7369
7370
7371
7372 StartingSchema *GoogleCloudDiscoveryengineV1betaSchema `json:"startingSchema,omitempty"`
7373
7374
7375 googleapi.ServerResponse `json:"-"`
7376
7377
7378
7379
7380
7381 ForceSendFields []string `json:"-"`
7382
7383
7384
7385
7386 NullFields []string `json:"-"`
7387 }
7388
7389 func (s *GoogleCloudDiscoveryengineV1betaDataStore) MarshalJSON() ([]byte, error) {
7390 type NoMethod GoogleCloudDiscoveryengineV1betaDataStore
7391 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7392 }
7393
7394
7395
7396
7397 type GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata struct {
7398
7399 CreateTime string `json:"createTime,omitempty"`
7400
7401
7402 UpdateTime string `json:"updateTime,omitempty"`
7403
7404
7405
7406
7407
7408 ForceSendFields []string `json:"-"`
7409
7410
7411
7412
7413 NullFields []string `json:"-"`
7414 }
7415
7416 func (s *GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
7417 type NoMethod GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata
7418 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7419 }
7420
7421
7422
7423
7424 type GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata struct {
7425
7426 CreateTime string `json:"createTime,omitempty"`
7427
7428
7429 UpdateTime string `json:"updateTime,omitempty"`
7430
7431
7432
7433
7434
7435 ForceSendFields []string `json:"-"`
7436
7437
7438
7439
7440 NullFields []string `json:"-"`
7441 }
7442
7443 func (s *GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata) MarshalJSON() ([]byte, error) {
7444 type NoMethod GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata
7445 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7446 }
7447
7448
7449
7450 type GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata struct {
7451
7452 CreateTime string `json:"createTime,omitempty"`
7453
7454
7455 UpdateTime string `json:"updateTime,omitempty"`
7456
7457
7458
7459
7460
7461 ForceSendFields []string `json:"-"`
7462
7463
7464
7465
7466 NullFields []string `json:"-"`
7467 }
7468
7469 func (s *GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
7470 type NoMethod GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata
7471 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7472 }
7473
7474
7475
7476
7477 type GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata struct {
7478
7479 CreateTime string `json:"createTime,omitempty"`
7480
7481
7482 UpdateTime string `json:"updateTime,omitempty"`
7483
7484
7485
7486
7487
7488 ForceSendFields []string `json:"-"`
7489
7490
7491
7492
7493 NullFields []string `json:"-"`
7494 }
7495
7496 func (s *GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
7497 type NoMethod GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata
7498 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7499 }
7500
7501
7502
7503
7504
7505 type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata struct {
7506
7507 CreateTime string `json:"createTime,omitempty"`
7508
7509
7510 UpdateTime string `json:"updateTime,omitempty"`
7511
7512
7513
7514
7515
7516 ForceSendFields []string `json:"-"`
7517
7518
7519
7520
7521 NullFields []string `json:"-"`
7522 }
7523
7524 func (s *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
7525 type NoMethod GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata
7526 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7527 }
7528
7529
7530
7531 type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchRequest struct {
7532 }
7533
7534
7535
7536 type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse struct {
7537 }
7538
7539
7540
7541 type GoogleCloudDiscoveryengineV1betaDocument struct {
7542
7543
7544 Content *GoogleCloudDiscoveryengineV1betaDocumentContent `json:"content,omitempty"`
7545
7546
7547 DerivedStructData googleapi.RawMessage `json:"derivedStructData,omitempty"`
7548
7549
7550
7551 Id string `json:"id,omitempty"`
7552
7553
7554
7555
7556 IndexTime string `json:"indexTime,omitempty"`
7557
7558
7559 JsonData string `json:"jsonData,omitempty"`
7560
7561
7562
7563
7564 Name string `json:"name,omitempty"`
7565
7566
7567
7568
7569 ParentDocumentId string `json:"parentDocumentId,omitempty"`
7570
7571 SchemaId string `json:"schemaId,omitempty"`
7572
7573
7574 StructData googleapi.RawMessage `json:"structData,omitempty"`
7575
7576
7577 googleapi.ServerResponse `json:"-"`
7578
7579
7580
7581
7582
7583 ForceSendFields []string `json:"-"`
7584
7585
7586
7587
7588 NullFields []string `json:"-"`
7589 }
7590
7591 func (s *GoogleCloudDiscoveryengineV1betaDocument) MarshalJSON() ([]byte, error) {
7592 type NoMethod GoogleCloudDiscoveryengineV1betaDocument
7593 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7594 }
7595
7596
7597
7598 type GoogleCloudDiscoveryengineV1betaDocumentContent struct {
7599
7600
7601
7602
7603
7604
7605
7606 MimeType string `json:"mimeType,omitempty"`
7607
7608
7609
7610
7611
7612
7613 RawBytes string `json:"rawBytes,omitempty"`
7614
7615
7616
7617 Uri string `json:"uri,omitempty"`
7618
7619
7620
7621
7622
7623 ForceSendFields []string `json:"-"`
7624
7625
7626
7627
7628 NullFields []string `json:"-"`
7629 }
7630
7631 func (s *GoogleCloudDiscoveryengineV1betaDocumentContent) MarshalJSON() ([]byte, error) {
7632 type NoMethod GoogleCloudDiscoveryengineV1betaDocumentContent
7633 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7634 }
7635
7636
7637
7638 type GoogleCloudDiscoveryengineV1betaDocumentInfo struct {
7639
7640 Id string `json:"id,omitempty"`
7641
7642
7643
7644 Name string `json:"name,omitempty"`
7645
7646
7647 PromotionIds []string `json:"promotionIds,omitempty"`
7648
7649
7650
7651
7652 Quantity int64 `json:"quantity,omitempty"`
7653
7654 Uri string `json:"uri,omitempty"`
7655
7656
7657
7658
7659
7660 ForceSendFields []string `json:"-"`
7661
7662
7663
7664
7665 NullFields []string `json:"-"`
7666 }
7667
7668 func (s *GoogleCloudDiscoveryengineV1betaDocumentInfo) MarshalJSON() ([]byte, error) {
7669 type NoMethod GoogleCloudDiscoveryengineV1betaDocumentInfo
7670 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7671 }
7672
7673
7674
7675
7676
7677
7678 type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig struct {
7679
7680
7681
7682
7683 DefaultParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
7684
7685
7686 Name string `json:"name,omitempty"`
7687
7688
7689
7690
7691
7692
7693
7694 ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
7695
7696
7697
7698
7699
7700 ForceSendFields []string `json:"-"`
7701
7702
7703
7704
7705 NullFields []string `json:"-"`
7706 }
7707
7708 func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig) MarshalJSON() ([]byte, error) {
7709 type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig
7710 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7711 }
7712
7713
7714
7715 type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig struct {
7716
7717 DigitalParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
7718
7719
7720 OcrParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
7721
7722
7723
7724
7725
7726 ForceSendFields []string `json:"-"`
7727
7728
7729
7730
7731 NullFields []string `json:"-"`
7732 }
7733
7734 func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
7735 type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig
7736 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7737 }
7738
7739
7740
7741 type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
7742 }
7743
7744
7745
7746 type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig struct {
7747
7748
7749
7750 EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
7751
7752
7753 UseNativeText bool `json:"useNativeText,omitempty"`
7754
7755
7756
7757
7758
7759 ForceSendFields []string `json:"-"`
7760
7761
7762
7763
7764 NullFields []string `json:"-"`
7765 }
7766
7767 func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
7768 type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig
7769 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7770 }
7771
7772
7773 type GoogleCloudDiscoveryengineV1betaDoubleList struct {
7774
7775 Values []float64 `json:"values,omitempty"`
7776
7777
7778
7779
7780
7781 ForceSendFields []string `json:"-"`
7782
7783
7784
7785
7786 NullFields []string `json:"-"`
7787 }
7788
7789 func (s *GoogleCloudDiscoveryengineV1betaDoubleList) MarshalJSON() ([]byte, error) {
7790 type NoMethod GoogleCloudDiscoveryengineV1betaDoubleList
7791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7792 }
7793
7794 func (s *GoogleCloudDiscoveryengineV1betaDoubleList) UnmarshalJSON(data []byte) error {
7795 type NoMethod GoogleCloudDiscoveryengineV1betaDoubleList
7796 var s1 struct {
7797 Values []gensupport.JSONFloat64 `json:"values"`
7798 *NoMethod
7799 }
7800 s1.NoMethod = (*NoMethod)(s)
7801 if err := json.Unmarshal(data, &s1); err != nil {
7802 return err
7803 }
7804 s.Values = make([]float64, len(s1.Values))
7805 for i := range s1.Values {
7806 s.Values[i] = float64(s1.Values[i])
7807 }
7808 return nil
7809 }
7810
7811
7812
7813 type GoogleCloudDiscoveryengineV1betaEmbeddingConfig struct {
7814
7815 FieldPath string `json:"fieldPath,omitempty"`
7816
7817
7818
7819
7820
7821 ForceSendFields []string `json:"-"`
7822
7823
7824
7825
7826 NullFields []string `json:"-"`
7827 }
7828
7829 func (s *GoogleCloudDiscoveryengineV1betaEmbeddingConfig) MarshalJSON() ([]byte, error) {
7830 type NoMethod GoogleCloudDiscoveryengineV1betaEmbeddingConfig
7831 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7832 }
7833
7834
7835
7836
7837
7838 type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata struct {
7839
7840 CreateTime string `json:"createTime,omitempty"`
7841
7842
7843 UpdateTime string `json:"updateTime,omitempty"`
7844
7845
7846
7847
7848
7849 ForceSendFields []string `json:"-"`
7850
7851
7852
7853
7854 NullFields []string `json:"-"`
7855 }
7856
7857 func (s *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
7858 type NoMethod GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata
7859 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7860 }
7861
7862
7863
7864 type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchRequest struct {
7865 }
7866
7867
7868
7869 type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchResponse struct {
7870 }
7871
7872
7873
7874 type GoogleCloudDiscoveryengineV1betaEngine struct {
7875
7876
7877 ChatEngineConfig *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
7878
7879
7880 ChatEngineMetadata *GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
7881
7882 CommonConfig *GoogleCloudDiscoveryengineV1betaEngineCommonConfig `json:"commonConfig,omitempty"`
7883
7884 CreateTime string `json:"createTime,omitempty"`
7885
7886
7887
7888
7889
7890
7891 DataStoreIds []string `json:"dataStoreIds,omitempty"`
7892
7893
7894 DisplayName string `json:"displayName,omitempty"`
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906 IndustryVertical string `json:"industryVertical,omitempty"`
7907
7908
7909
7910
7911
7912
7913 Name string `json:"name,omitempty"`
7914
7915
7916 SearchEngineConfig *GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
7917
7918
7919
7920
7921
7922
7923
7924
7925
7926
7927
7928 SolutionType string `json:"solutionType,omitempty"`
7929
7930
7931 UpdateTime string `json:"updateTime,omitempty"`
7932
7933
7934 googleapi.ServerResponse `json:"-"`
7935
7936
7937
7938
7939
7940 ForceSendFields []string `json:"-"`
7941
7942
7943
7944
7945 NullFields []string `json:"-"`
7946 }
7947
7948 func (s *GoogleCloudDiscoveryengineV1betaEngine) MarshalJSON() ([]byte, error) {
7949 type NoMethod GoogleCloudDiscoveryengineV1betaEngine
7950 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7951 }
7952
7953
7954
7955 type GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig struct {
7956
7957
7958
7959
7960
7961 AgentCreationConfig *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
7962
7963
7964
7965
7966
7967
7968
7969
7970
7971 DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
7972
7973
7974
7975
7976
7977 ForceSendFields []string `json:"-"`
7978
7979
7980
7981
7982 NullFields []string `json:"-"`
7983 }
7984
7985 func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig) MarshalJSON() ([]byte, error) {
7986 type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig
7987 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7988 }
7989
7990
7991
7992
7993
7994
7995 type GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig struct {
7996
7997
7998
7999 Business string `json:"business,omitempty"`
8000
8001
8002
8003
8004 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
8005
8006
8007
8008 Location string `json:"location,omitempty"`
8009
8010
8011 TimeZone string `json:"timeZone,omitempty"`
8012
8013
8014
8015
8016
8017 ForceSendFields []string `json:"-"`
8018
8019
8020
8021
8022 NullFields []string `json:"-"`
8023 }
8024
8025 func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
8026 type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig
8027 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8028 }
8029
8030
8031
8032 type GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata struct {
8033
8034
8035 DialogflowAgent string `json:"dialogflowAgent,omitempty"`
8036
8037
8038
8039
8040
8041 ForceSendFields []string `json:"-"`
8042
8043
8044
8045
8046 NullFields []string `json:"-"`
8047 }
8048
8049 func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
8050 type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata
8051 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8052 }
8053
8054
8055
8056 type GoogleCloudDiscoveryengineV1betaEngineCommonConfig struct {
8057
8058
8059
8060 CompanyName string `json:"companyName,omitempty"`
8061
8062
8063
8064
8065
8066 ForceSendFields []string `json:"-"`
8067
8068
8069
8070
8071 NullFields []string `json:"-"`
8072 }
8073
8074 func (s *GoogleCloudDiscoveryengineV1betaEngineCommonConfig) MarshalJSON() ([]byte, error) {
8075 type NoMethod GoogleCloudDiscoveryengineV1betaEngineCommonConfig
8076 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8077 }
8078
8079
8080
8081 type GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig struct {
8082
8083
8084
8085
8086
8087
8088 SearchAddOns []string `json:"searchAddOns,omitempty"`
8089
8090
8091
8092
8093
8094
8095
8096
8097
8098 SearchTier string `json:"searchTier,omitempty"`
8099
8100
8101
8102
8103
8104 ForceSendFields []string `json:"-"`
8105
8106
8107
8108
8109 NullFields []string `json:"-"`
8110 }
8111
8112 func (s *GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
8113 type NoMethod GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig
8114 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8115 }
8116
8117
8118 type GoogleCloudDiscoveryengineV1betaFactChunk struct {
8119
8120
8121 ChunkText string `json:"chunkText,omitempty"`
8122
8123 Index int64 `json:"index,omitempty"`
8124
8125
8126
8127 Source string `json:"source,omitempty"`
8128
8129 SourceMetadata map[string]string `json:"sourceMetadata,omitempty"`
8130
8131
8132
8133
8134
8135 ForceSendFields []string `json:"-"`
8136
8137
8138
8139
8140 NullFields []string `json:"-"`
8141 }
8142
8143 func (s *GoogleCloudDiscoveryengineV1betaFactChunk) MarshalJSON() ([]byte, error) {
8144 type NoMethod GoogleCloudDiscoveryengineV1betaFactChunk
8145 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8146 }
8147
8148
8149
8150
8151 type GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse struct {
8152
8153
8154 NextPageToken string `json:"nextPageToken,omitempty"`
8155
8156 TargetSites []*GoogleCloudDiscoveryengineV1betaTargetSite `json:"targetSites,omitempty"`
8157
8158
8159 TotalSize int64 `json:"totalSize,omitempty"`
8160
8161
8162 googleapi.ServerResponse `json:"-"`
8163
8164
8165
8166
8167
8168 ForceSendFields []string `json:"-"`
8169
8170
8171
8172
8173 NullFields []string `json:"-"`
8174 }
8175
8176 func (s *GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse) MarshalJSON() ([]byte, error) {
8177 type NoMethod GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse
8178 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8179 }
8180
8181
8182
8183 type GoogleCloudDiscoveryengineV1betaFhirStoreSource struct {
8184
8185
8186
8187
8188 FhirStore string `json:"fhirStore,omitempty"`
8189
8190
8191
8192 GcsStagingDir string `json:"gcsStagingDir,omitempty"`
8193
8194
8195
8196
8197
8198 ForceSendFields []string `json:"-"`
8199
8200
8201
8202
8203 NullFields []string `json:"-"`
8204 }
8205
8206 func (s *GoogleCloudDiscoveryengineV1betaFhirStoreSource) MarshalJSON() ([]byte, error) {
8207 type NoMethod GoogleCloudDiscoveryengineV1betaFhirStoreSource
8208 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8209 }
8210
8211
8212
8213 type GoogleCloudDiscoveryengineV1betaFirestoreSource struct {
8214
8215
8216 CollectionId string `json:"collectionId,omitempty"`
8217
8218
8219 DatabaseId string `json:"databaseId,omitempty"`
8220
8221
8222
8223
8224
8225 GcsStagingDir string `json:"gcsStagingDir,omitempty"`
8226
8227
8228
8229 ProjectId string `json:"projectId,omitempty"`
8230
8231
8232
8233
8234
8235 ForceSendFields []string `json:"-"`
8236
8237
8238
8239
8240 NullFields []string `json:"-"`
8241 }
8242
8243 func (s *GoogleCloudDiscoveryengineV1betaFirestoreSource) MarshalJSON() ([]byte, error) {
8244 type NoMethod GoogleCloudDiscoveryengineV1betaFirestoreSource
8245 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8246 }
8247
8248
8249
8250 type GoogleCloudDiscoveryengineV1betaGcsSource struct {
8251
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263 DataSchema string `json:"dataSchema,omitempty"`
8264
8265
8266
8267
8268
8269
8270 InputUris []string `json:"inputUris,omitempty"`
8271
8272
8273
8274
8275
8276 ForceSendFields []string `json:"-"`
8277
8278
8279
8280
8281 NullFields []string `json:"-"`
8282 }
8283
8284 func (s *GoogleCloudDiscoveryengineV1betaGcsSource) MarshalJSON() ([]byte, error) {
8285 type NoMethod GoogleCloudDiscoveryengineV1betaGcsSource
8286 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8287 }
8288
8289
8290 type GoogleCloudDiscoveryengineV1betaGroundingFact struct {
8291
8292
8293
8294 Attributes map[string]string `json:"attributes,omitempty"`
8295
8296 FactText string `json:"factText,omitempty"`
8297
8298
8299
8300
8301
8302 ForceSendFields []string `json:"-"`
8303
8304
8305
8306
8307 NullFields []string `json:"-"`
8308 }
8309
8310 func (s *GoogleCloudDiscoveryengineV1betaGroundingFact) MarshalJSON() ([]byte, error) {
8311 type NoMethod GoogleCloudDiscoveryengineV1betaGroundingFact
8312 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8313 }
8314
8315
8316
8317
8318 type GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata struct {
8319
8320 CreateTime string `json:"createTime,omitempty"`
8321
8322 FailureCount int64 `json:"failureCount,omitempty,string"`
8323
8324 SuccessCount int64 `json:"successCount,omitempty,string"`
8325
8326 TotalCount int64 `json:"totalCount,omitempty,string"`
8327
8328
8329 UpdateTime string `json:"updateTime,omitempty"`
8330
8331
8332
8333
8334
8335 ForceSendFields []string `json:"-"`
8336
8337
8338
8339
8340 NullFields []string `json:"-"`
8341 }
8342
8343 func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
8344 type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
8345 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8346 }
8347
8348
8349
8350 type GoogleCloudDiscoveryengineV1betaImportDocumentsRequest struct {
8351
8352
8353
8354
8355
8356
8357
8358
8359
8360
8361
8362 AutoGenerateIds bool `json:"autoGenerateIds,omitempty"`
8363
8364 BigquerySource *GoogleCloudDiscoveryengineV1betaBigQuerySource `json:"bigquerySource,omitempty"`
8365
8366 BigtableSource *GoogleCloudDiscoveryengineV1betaBigtableSource `json:"bigtableSource,omitempty"`
8367
8368 CloudSqlSource *GoogleCloudDiscoveryengineV1betaCloudSqlSource `json:"cloudSqlSource,omitempty"`
8369
8370 ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
8371
8372 FhirStoreSource *GoogleCloudDiscoveryengineV1betaFhirStoreSource `json:"fhirStoreSource,omitempty"`
8373
8374 FirestoreSource *GoogleCloudDiscoveryengineV1betaFirestoreSource `json:"firestoreSource,omitempty"`
8375
8376 GcsSource *GoogleCloudDiscoveryengineV1betaGcsSource `json:"gcsSource,omitempty"`
8377
8378
8379
8380
8381
8382
8383
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393 IdField string `json:"idField,omitempty"`
8394
8395 InlineSource *GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource `json:"inlineSource,omitempty"`
8396
8397
8398
8399
8400
8401
8402
8403
8404
8405
8406 ReconciliationMode string `json:"reconciliationMode,omitempty"`
8407
8408 SpannerSource *GoogleCloudDiscoveryengineV1betaSpannerSource `json:"spannerSource,omitempty"`
8409
8410
8411 UpdateMask string `json:"updateMask,omitempty"`
8412
8413
8414
8415
8416
8417 ForceSendFields []string `json:"-"`
8418
8419
8420
8421
8422 NullFields []string `json:"-"`
8423 }
8424
8425 func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsRequest) MarshalJSON() ([]byte, error) {
8426 type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsRequest
8427 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8428 }
8429
8430
8431
8432 type GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource struct {
8433
8434
8435 Documents []*GoogleCloudDiscoveryengineV1betaDocument `json:"documents,omitempty"`
8436
8437
8438
8439
8440
8441 ForceSendFields []string `json:"-"`
8442
8443
8444
8445
8446 NullFields []string `json:"-"`
8447 }
8448
8449 func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource) MarshalJSON() ([]byte, error) {
8450 type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsRequestInlineSource
8451 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8452 }
8453
8454
8455
8456
8457
8458 type GoogleCloudDiscoveryengineV1betaImportDocumentsResponse struct {
8459
8460
8461 ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
8462
8463 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
8464
8465
8466
8467
8468
8469 ForceSendFields []string `json:"-"`
8470
8471
8472
8473
8474 NullFields []string `json:"-"`
8475 }
8476
8477 func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsResponse) MarshalJSON() ([]byte, error) {
8478 type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsResponse
8479 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8480 }
8481
8482
8483
8484 type GoogleCloudDiscoveryengineV1betaImportErrorConfig struct {
8485
8486
8487
8488
8489 GcsPrefix string `json:"gcsPrefix,omitempty"`
8490
8491
8492
8493
8494
8495 ForceSendFields []string `json:"-"`
8496
8497
8498
8499
8500 NullFields []string `json:"-"`
8501 }
8502
8503 func (s *GoogleCloudDiscoveryengineV1betaImportErrorConfig) MarshalJSON() ([]byte, error) {
8504 type NoMethod GoogleCloudDiscoveryengineV1betaImportErrorConfig
8505 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8506 }
8507
8508
8509
8510
8511
8512 type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata struct {
8513
8514 CreateTime string `json:"createTime,omitempty"`
8515
8516
8517 UpdateTime string `json:"updateTime,omitempty"`
8518
8519
8520
8521
8522
8523 ForceSendFields []string `json:"-"`
8524
8525
8526
8527
8528 NullFields []string `json:"-"`
8529 }
8530
8531 func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
8532 type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata
8533 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8534 }
8535
8536
8537
8538
8539 type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest struct {
8540
8541
8542
8543
8544
8545 GcsSource *GoogleCloudDiscoveryengineV1betaGcsSource `json:"gcsSource,omitempty"`
8546
8547
8548 InlineSource *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequestInlineSource `json:"inlineSource,omitempty"`
8549
8550
8551
8552
8553
8554 ForceSendFields []string `json:"-"`
8555
8556
8557
8558
8559 NullFields []string `json:"-"`
8560 }
8561
8562 func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest) MarshalJSON() ([]byte, error) {
8563 type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest
8564 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8565 }
8566
8567
8568
8569 type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequestInlineSource struct {
8570
8571
8572 Entries []*GoogleCloudDiscoveryengineV1betaSuggestionDenyListEntry `json:"entries,omitempty"`
8573
8574
8575
8576
8577
8578 ForceSendFields []string `json:"-"`
8579
8580
8581
8582
8583 NullFields []string `json:"-"`
8584 }
8585
8586 func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequestInlineSource) MarshalJSON() ([]byte, error) {
8587 type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequestInlineSource
8588 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8589 }
8590
8591
8592
8593
8594 type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse struct {
8595
8596 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
8597
8598 FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
8599
8600 ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
8601
8602
8603
8604
8605
8606 ForceSendFields []string `json:"-"`
8607
8608
8609
8610
8611 NullFields []string `json:"-"`
8612 }
8613
8614 func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
8615 type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse
8616 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8617 }
8618
8619
8620
8621
8622 type GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata struct {
8623
8624 CreateTime string `json:"createTime,omitempty"`
8625
8626 FailureCount int64 `json:"failureCount,omitempty,string"`
8627
8628 SuccessCount int64 `json:"successCount,omitempty,string"`
8629
8630
8631 UpdateTime string `json:"updateTime,omitempty"`
8632
8633
8634
8635
8636
8637 ForceSendFields []string `json:"-"`
8638
8639
8640
8641
8642 NullFields []string `json:"-"`
8643 }
8644
8645 func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
8646 type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata
8647 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8648 }
8649
8650
8651
8652 type GoogleCloudDiscoveryengineV1betaImportUserEventsRequest struct {
8653
8654 BigquerySource *GoogleCloudDiscoveryengineV1betaBigQuerySource `json:"bigquerySource,omitempty"`
8655
8656
8657 ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
8658
8659 GcsSource *GoogleCloudDiscoveryengineV1betaGcsSource `json:"gcsSource,omitempty"`
8660
8661 InlineSource *GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource `json:"inlineSource,omitempty"`
8662
8663
8664
8665
8666
8667 ForceSendFields []string `json:"-"`
8668
8669
8670
8671
8672 NullFields []string `json:"-"`
8673 }
8674
8675 func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsRequest) MarshalJSON() ([]byte, error) {
8676 type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsRequest
8677 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8678 }
8679
8680
8681
8682 type GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource struct {
8683
8684
8685 UserEvents []*GoogleCloudDiscoveryengineV1betaUserEvent `json:"userEvents,omitempty"`
8686
8687
8688
8689
8690
8691 ForceSendFields []string `json:"-"`
8692
8693
8694
8695
8696 NullFields []string `json:"-"`
8697 }
8698
8699 func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource) MarshalJSON() ([]byte, error) {
8700 type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsRequestInlineSource
8701 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8702 }
8703
8704
8705
8706
8707
8708 type GoogleCloudDiscoveryengineV1betaImportUserEventsResponse struct {
8709
8710
8711 ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
8712
8713 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
8714
8715
8716 JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
8717
8718
8719 UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
8720
8721
8722
8723
8724
8725 ForceSendFields []string `json:"-"`
8726
8727
8728
8729
8730 NullFields []string `json:"-"`
8731 }
8732
8733 func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsResponse) MarshalJSON() ([]byte, error) {
8734 type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsResponse
8735 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8736 }
8737
8738
8739 type GoogleCloudDiscoveryengineV1betaInterval struct {
8740
8741 ExclusiveMaximum float64 `json:"exclusiveMaximum,omitempty"`
8742
8743 ExclusiveMinimum float64 `json:"exclusiveMinimum,omitempty"`
8744
8745 Maximum float64 `json:"maximum,omitempty"`
8746
8747 Minimum float64 `json:"minimum,omitempty"`
8748
8749
8750
8751
8752
8753 ForceSendFields []string `json:"-"`
8754
8755
8756
8757
8758 NullFields []string `json:"-"`
8759 }
8760
8761 func (s *GoogleCloudDiscoveryengineV1betaInterval) MarshalJSON() ([]byte, error) {
8762 type NoMethod GoogleCloudDiscoveryengineV1betaInterval
8763 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8764 }
8765
8766 func (s *GoogleCloudDiscoveryengineV1betaInterval) UnmarshalJSON(data []byte) error {
8767 type NoMethod GoogleCloudDiscoveryengineV1betaInterval
8768 var s1 struct {
8769 ExclusiveMaximum gensupport.JSONFloat64 `json:"exclusiveMaximum"`
8770 ExclusiveMinimum gensupport.JSONFloat64 `json:"exclusiveMinimum"`
8771 Maximum gensupport.JSONFloat64 `json:"maximum"`
8772 Minimum gensupport.JSONFloat64 `json:"minimum"`
8773 *NoMethod
8774 }
8775 s1.NoMethod = (*NoMethod)(s)
8776 if err := json.Unmarshal(data, &s1); err != nil {
8777 return err
8778 }
8779 s.ExclusiveMaximum = float64(s1.ExclusiveMaximum)
8780 s.ExclusiveMinimum = float64(s1.ExclusiveMinimum)
8781 s.Maximum = float64(s1.Maximum)
8782 s.Minimum = float64(s1.Minimum)
8783 return nil
8784 }
8785
8786
8787
8788 type GoogleCloudDiscoveryengineV1betaListConversationsResponse struct {
8789
8790 Conversations []*GoogleCloudDiscoveryengineV1betaConversation `json:"conversations,omitempty"`
8791
8792 NextPageToken string `json:"nextPageToken,omitempty"`
8793
8794
8795 googleapi.ServerResponse `json:"-"`
8796
8797
8798
8799
8800
8801 ForceSendFields []string `json:"-"`
8802
8803
8804
8805
8806 NullFields []string `json:"-"`
8807 }
8808
8809 func (s *GoogleCloudDiscoveryengineV1betaListConversationsResponse) MarshalJSON() ([]byte, error) {
8810 type NoMethod GoogleCloudDiscoveryengineV1betaListConversationsResponse
8811 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8812 }
8813
8814
8815
8816 type GoogleCloudDiscoveryengineV1betaListCustomModelsResponse struct {
8817
8818 Models []*GoogleCloudDiscoveryengineV1betaCustomTuningModel `json:"models,omitempty"`
8819
8820
8821 googleapi.ServerResponse `json:"-"`
8822
8823
8824
8825
8826
8827 ForceSendFields []string `json:"-"`
8828
8829
8830
8831
8832 NullFields []string `json:"-"`
8833 }
8834
8835 func (s *GoogleCloudDiscoveryengineV1betaListCustomModelsResponse) MarshalJSON() ([]byte, error) {
8836 type NoMethod GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
8837 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8838 }
8839
8840
8841
8842 type GoogleCloudDiscoveryengineV1betaListDataStoresResponse struct {
8843
8844 DataStores []*GoogleCloudDiscoveryengineV1betaDataStore `json:"dataStores,omitempty"`
8845
8846
8847
8848 NextPageToken string `json:"nextPageToken,omitempty"`
8849
8850
8851 googleapi.ServerResponse `json:"-"`
8852
8853
8854
8855
8856
8857 ForceSendFields []string `json:"-"`
8858
8859
8860
8861
8862 NullFields []string `json:"-"`
8863 }
8864
8865 func (s *GoogleCloudDiscoveryengineV1betaListDataStoresResponse) MarshalJSON() ([]byte, error) {
8866 type NoMethod GoogleCloudDiscoveryengineV1betaListDataStoresResponse
8867 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8868 }
8869
8870
8871
8872 type GoogleCloudDiscoveryengineV1betaListDocumentsResponse struct {
8873
8874 Documents []*GoogleCloudDiscoveryengineV1betaDocument `json:"documents,omitempty"`
8875
8876
8877
8878 NextPageToken string `json:"nextPageToken,omitempty"`
8879
8880
8881 googleapi.ServerResponse `json:"-"`
8882
8883
8884
8885
8886
8887 ForceSendFields []string `json:"-"`
8888
8889
8890
8891
8892 NullFields []string `json:"-"`
8893 }
8894
8895 func (s *GoogleCloudDiscoveryengineV1betaListDocumentsResponse) MarshalJSON() ([]byte, error) {
8896 type NoMethod GoogleCloudDiscoveryengineV1betaListDocumentsResponse
8897 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8898 }
8899
8900
8901
8902 type GoogleCloudDiscoveryengineV1betaListEnginesResponse struct {
8903
8904 Engines []*GoogleCloudDiscoveryengineV1betaEngine `json:"engines,omitempty"`
8905
8906 NextPageToken string `json:"nextPageToken,omitempty"`
8907
8908
8909 googleapi.ServerResponse `json:"-"`
8910
8911
8912
8913
8914
8915 ForceSendFields []string `json:"-"`
8916
8917
8918
8919
8920 NullFields []string `json:"-"`
8921 }
8922
8923 func (s *GoogleCloudDiscoveryengineV1betaListEnginesResponse) MarshalJSON() ([]byte, error) {
8924 type NoMethod GoogleCloudDiscoveryengineV1betaListEnginesResponse
8925 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8926 }
8927
8928
8929
8930 type GoogleCloudDiscoveryengineV1betaListSchemasResponse struct {
8931
8932
8933
8934 NextPageToken string `json:"nextPageToken,omitempty"`
8935
8936 Schemas []*GoogleCloudDiscoveryengineV1betaSchema `json:"schemas,omitempty"`
8937
8938
8939 googleapi.ServerResponse `json:"-"`
8940
8941
8942
8943
8944
8945 ForceSendFields []string `json:"-"`
8946
8947
8948
8949
8950 NullFields []string `json:"-"`
8951 }
8952
8953 func (s *GoogleCloudDiscoveryengineV1betaListSchemasResponse) MarshalJSON() ([]byte, error) {
8954 type NoMethod GoogleCloudDiscoveryengineV1betaListSchemasResponse
8955 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8956 }
8957
8958
8959
8960 type GoogleCloudDiscoveryengineV1betaListServingConfigsResponse struct {
8961
8962 NextPageToken string `json:"nextPageToken,omitempty"`
8963
8964 ServingConfigs []*GoogleCloudDiscoveryengineV1betaServingConfig `json:"servingConfigs,omitempty"`
8965
8966
8967 googleapi.ServerResponse `json:"-"`
8968
8969
8970
8971
8972
8973 ForceSendFields []string `json:"-"`
8974
8975
8976
8977
8978 NullFields []string `json:"-"`
8979 }
8980
8981 func (s *GoogleCloudDiscoveryengineV1betaListServingConfigsResponse) MarshalJSON() ([]byte, error) {
8982 type NoMethod GoogleCloudDiscoveryengineV1betaListServingConfigsResponse
8983 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8984 }
8985
8986
8987
8988 type GoogleCloudDiscoveryengineV1betaListSessionsResponse struct {
8989
8990 NextPageToken string `json:"nextPageToken,omitempty"`
8991
8992 Sessions []*GoogleCloudDiscoveryengineV1betaSession `json:"sessions,omitempty"`
8993
8994
8995 googleapi.ServerResponse `json:"-"`
8996
8997
8998
8999
9000
9001 ForceSendFields []string `json:"-"`
9002
9003
9004
9005
9006 NullFields []string `json:"-"`
9007 }
9008
9009 func (s *GoogleCloudDiscoveryengineV1betaListSessionsResponse) MarshalJSON() ([]byte, error) {
9010 type NoMethod GoogleCloudDiscoveryengineV1betaListSessionsResponse
9011 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9012 }
9013
9014
9015
9016 type GoogleCloudDiscoveryengineV1betaListTargetSitesResponse struct {
9017
9018
9019 NextPageToken string `json:"nextPageToken,omitempty"`
9020
9021 TargetSites []*GoogleCloudDiscoveryengineV1betaTargetSite `json:"targetSites,omitempty"`
9022
9023
9024 TotalSize int64 `json:"totalSize,omitempty"`
9025
9026
9027 googleapi.ServerResponse `json:"-"`
9028
9029
9030
9031
9032
9033 ForceSendFields []string `json:"-"`
9034
9035
9036
9037
9038 NullFields []string `json:"-"`
9039 }
9040
9041 func (s *GoogleCloudDiscoveryengineV1betaListTargetSitesResponse) MarshalJSON() ([]byte, error) {
9042 type NoMethod GoogleCloudDiscoveryengineV1betaListTargetSitesResponse
9043 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9044 }
9045
9046
9047
9048 type GoogleCloudDiscoveryengineV1betaMediaInfo struct {
9049
9050
9051
9052 MediaProgressDuration string `json:"mediaProgressDuration,omitempty"`
9053
9054
9055
9056
9057 MediaProgressPercentage float64 `json:"mediaProgressPercentage,omitempty"`
9058
9059
9060
9061
9062
9063 ForceSendFields []string `json:"-"`
9064
9065
9066
9067
9068 NullFields []string `json:"-"`
9069 }
9070
9071 func (s *GoogleCloudDiscoveryengineV1betaMediaInfo) MarshalJSON() ([]byte, error) {
9072 type NoMethod GoogleCloudDiscoveryengineV1betaMediaInfo
9073 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9074 }
9075
9076 func (s *GoogleCloudDiscoveryengineV1betaMediaInfo) UnmarshalJSON(data []byte) error {
9077 type NoMethod GoogleCloudDiscoveryengineV1betaMediaInfo
9078 var s1 struct {
9079 MediaProgressPercentage gensupport.JSONFloat64 `json:"mediaProgressPercentage"`
9080 *NoMethod
9081 }
9082 s1.NoMethod = (*NoMethod)(s)
9083 if err := json.Unmarshal(data, &s1); err != nil {
9084 return err
9085 }
9086 s.MediaProgressPercentage = float64(s1.MediaProgressPercentage)
9087 return nil
9088 }
9089
9090
9091 type GoogleCloudDiscoveryengineV1betaPageInfo struct {
9092
9093
9094
9095
9096
9097
9098
9099
9100 PageCategory string `json:"pageCategory,omitempty"`
9101
9102
9103
9104
9105
9106
9107
9108 PageviewId string `json:"pageviewId,omitempty"`
9109
9110
9111
9112
9113 ReferrerUri string `json:"referrerUri,omitempty"`
9114
9115
9116
9117
9118 Uri string `json:"uri,omitempty"`
9119
9120
9121
9122
9123
9124 ForceSendFields []string `json:"-"`
9125
9126
9127
9128
9129 NullFields []string `json:"-"`
9130 }
9131
9132 func (s *GoogleCloudDiscoveryengineV1betaPageInfo) MarshalJSON() ([]byte, error) {
9133 type NoMethod GoogleCloudDiscoveryengineV1betaPageInfo
9134 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9135 }
9136
9137
9138
9139 type GoogleCloudDiscoveryengineV1betaPanelInfo struct {
9140
9141 DisplayName string `json:"displayName,omitempty"`
9142
9143 PanelId string `json:"panelId,omitempty"`
9144
9145
9146 PanelPosition int64 `json:"panelPosition,omitempty"`
9147
9148
9149 TotalPanels int64 `json:"totalPanels,omitempty"`
9150
9151
9152
9153
9154
9155 ForceSendFields []string `json:"-"`
9156
9157
9158
9159
9160 NullFields []string `json:"-"`
9161 }
9162
9163 func (s *GoogleCloudDiscoveryengineV1betaPanelInfo) MarshalJSON() ([]byte, error) {
9164 type NoMethod GoogleCloudDiscoveryengineV1betaPanelInfo
9165 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9166 }
9167
9168
9169
9170 type GoogleCloudDiscoveryengineV1betaPauseEngineRequest struct {
9171 }
9172
9173
9174
9175
9176 type GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata struct {
9177
9178 CreateTime string `json:"createTime,omitempty"`
9179
9180 FailureCount int64 `json:"failureCount,omitempty,string"`
9181
9182 IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
9183
9184 SuccessCount int64 `json:"successCount,omitempty,string"`
9185
9186
9187 UpdateTime string `json:"updateTime,omitempty"`
9188
9189
9190
9191
9192
9193 ForceSendFields []string `json:"-"`
9194
9195
9196
9197
9198 NullFields []string `json:"-"`
9199 }
9200
9201 func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
9202 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
9203 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9204 }
9205
9206
9207
9208 type GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest struct {
9209
9210
9211 Filter string `json:"filter,omitempty"`
9212
9213
9214 Force bool `json:"force,omitempty"`
9215
9216
9217
9218
9219
9220 ForceSendFields []string `json:"-"`
9221
9222
9223
9224
9225 NullFields []string `json:"-"`
9226 }
9227
9228 func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest) MarshalJSON() ([]byte, error) {
9229 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest
9230 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9231 }
9232
9233
9234
9235
9236
9237 type GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse struct {
9238
9239
9240 PurgeCount int64 `json:"purgeCount,omitempty,string"`
9241
9242
9243
9244 PurgeSample []string `json:"purgeSample,omitempty"`
9245
9246
9247
9248
9249
9250 ForceSendFields []string `json:"-"`
9251
9252
9253
9254
9255 NullFields []string `json:"-"`
9256 }
9257
9258 func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
9259 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse
9260 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9261 }
9262
9263
9264
9265
9266
9267 type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata struct {
9268
9269 CreateTime string `json:"createTime,omitempty"`
9270
9271
9272 UpdateTime string `json:"updateTime,omitempty"`
9273
9274
9275
9276
9277
9278 ForceSendFields []string `json:"-"`
9279
9280
9281
9282
9283 NullFields []string `json:"-"`
9284 }
9285
9286 func (s *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
9287 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata
9288 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9289 }
9290
9291
9292
9293 type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesRequest struct {
9294 }
9295
9296
9297
9298
9299 type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse struct {
9300
9301 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
9302
9303 PurgeCount int64 `json:"purgeCount,omitempty,string"`
9304
9305
9306
9307
9308
9309 ForceSendFields []string `json:"-"`
9310
9311
9312
9313
9314 NullFields []string `json:"-"`
9315 }
9316
9317 func (s *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
9318 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse
9319 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9320 }
9321
9322
9323 type GoogleCloudDiscoveryengineV1betaQuery struct {
9324
9325 QueryId string `json:"queryId,omitempty"`
9326
9327 Text string `json:"text,omitempty"`
9328
9329
9330
9331
9332
9333 ForceSendFields []string `json:"-"`
9334
9335
9336
9337
9338 NullFields []string `json:"-"`
9339 }
9340
9341 func (s *GoogleCloudDiscoveryengineV1betaQuery) MarshalJSON() ([]byte, error) {
9342 type NoMethod GoogleCloudDiscoveryengineV1betaQuery
9343 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9344 }
9345
9346
9347
9348 type GoogleCloudDiscoveryengineV1betaRankRequest struct {
9349
9350
9351
9352 IgnoreRecordDetailsInResponse bool `json:"ignoreRecordDetailsInResponse,omitempty"`
9353
9354
9355
9356
9357 Model string `json:"model,omitempty"`
9358
9359 Query string `json:"query,omitempty"`
9360
9361 Records []*GoogleCloudDiscoveryengineV1betaRankingRecord `json:"records,omitempty"`
9362
9363
9364 TopN int64 `json:"topN,omitempty"`
9365
9366
9367
9368
9369
9370 ForceSendFields []string `json:"-"`
9371
9372
9373
9374
9375 NullFields []string `json:"-"`
9376 }
9377
9378 func (s *GoogleCloudDiscoveryengineV1betaRankRequest) MarshalJSON() ([]byte, error) {
9379 type NoMethod GoogleCloudDiscoveryengineV1betaRankRequest
9380 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9381 }
9382
9383
9384
9385 type GoogleCloudDiscoveryengineV1betaRankResponse struct {
9386
9387 Records []*GoogleCloudDiscoveryengineV1betaRankingRecord `json:"records,omitempty"`
9388
9389
9390 googleapi.ServerResponse `json:"-"`
9391
9392
9393
9394
9395
9396 ForceSendFields []string `json:"-"`
9397
9398
9399
9400
9401 NullFields []string `json:"-"`
9402 }
9403
9404 func (s *GoogleCloudDiscoveryengineV1betaRankResponse) MarshalJSON() ([]byte, error) {
9405 type NoMethod GoogleCloudDiscoveryengineV1betaRankResponse
9406 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9407 }
9408
9409
9410
9411 type GoogleCloudDiscoveryengineV1betaRankingRecord struct {
9412
9413
9414 Content string `json:"content,omitempty"`
9415
9416 Id string `json:"id,omitempty"`
9417
9418 Score float64 `json:"score,omitempty"`
9419
9420
9421 Title string `json:"title,omitempty"`
9422
9423
9424
9425
9426
9427 ForceSendFields []string `json:"-"`
9428
9429
9430
9431
9432 NullFields []string `json:"-"`
9433 }
9434
9435 func (s *GoogleCloudDiscoveryengineV1betaRankingRecord) MarshalJSON() ([]byte, error) {
9436 type NoMethod GoogleCloudDiscoveryengineV1betaRankingRecord
9437 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9438 }
9439
9440 func (s *GoogleCloudDiscoveryengineV1betaRankingRecord) UnmarshalJSON(data []byte) error {
9441 type NoMethod GoogleCloudDiscoveryengineV1betaRankingRecord
9442 var s1 struct {
9443 Score gensupport.JSONFloat64 `json:"score"`
9444 *NoMethod
9445 }
9446 s1.NoMethod = (*NoMethod)(s)
9447 if err := json.Unmarshal(data, &s1); err != nil {
9448 return err
9449 }
9450 s.Score = float64(s1.Score)
9451 return nil
9452 }
9453
9454
9455
9456 type GoogleCloudDiscoveryengineV1betaRecommendRequest struct {
9457
9458
9459
9460
9461
9462
9463
9464
9465
9466
9467
9468
9469
9470
9471 Filter string `json:"filter,omitempty"`
9472
9473
9474
9475
9476 PageSize int64 `json:"pageSize,omitempty"`
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488
9489
9490
9491
9492
9493 Params googleapi.RawMessage `json:"params,omitempty"`
9494
9495
9496
9497
9498
9499
9500
9501
9502
9503 UserEvent *GoogleCloudDiscoveryengineV1betaUserEvent `json:"userEvent,omitempty"`
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516 UserLabels map[string]string `json:"userLabels,omitempty"`
9517
9518
9519
9520
9521 ValidateOnly bool `json:"validateOnly,omitempty"`
9522
9523
9524
9525
9526
9527 ForceSendFields []string `json:"-"`
9528
9529
9530
9531
9532 NullFields []string `json:"-"`
9533 }
9534
9535 func (s *GoogleCloudDiscoveryengineV1betaRecommendRequest) MarshalJSON() ([]byte, error) {
9536 type NoMethod GoogleCloudDiscoveryengineV1betaRecommendRequest
9537 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9538 }
9539
9540
9541
9542 type GoogleCloudDiscoveryengineV1betaRecommendResponse struct {
9543
9544
9545
9546 AttributionToken string `json:"attributionToken,omitempty"`
9547
9548
9549 MissingIds []string `json:"missingIds,omitempty"`
9550
9551
9552 Results []*GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult `json:"results,omitempty"`
9553
9554 ValidateOnly bool `json:"validateOnly,omitempty"`
9555
9556
9557 googleapi.ServerResponse `json:"-"`
9558
9559
9560
9561
9562
9563 ForceSendFields []string `json:"-"`
9564
9565
9566
9567
9568 NullFields []string `json:"-"`
9569 }
9570
9571 func (s *GoogleCloudDiscoveryengineV1betaRecommendResponse) MarshalJSON() ([]byte, error) {
9572 type NoMethod GoogleCloudDiscoveryengineV1betaRecommendResponse
9573 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9574 }
9575
9576
9577
9578
9579 type GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult struct {
9580
9581 Document *GoogleCloudDiscoveryengineV1betaDocument `json:"document,omitempty"`
9582
9583 Id string `json:"id,omitempty"`
9584
9585
9586
9587 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
9588
9589
9590
9591
9592
9593 ForceSendFields []string `json:"-"`
9594
9595
9596
9597
9598 NullFields []string `json:"-"`
9599 }
9600
9601 func (s *GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult) MarshalJSON() ([]byte, error) {
9602 type NoMethod GoogleCloudDiscoveryengineV1betaRecommendResponseRecommendationResult
9603 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9604 }
9605
9606
9607
9608 type GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest struct {
9609
9610
9611
9612 Uris []string `json:"uris,omitempty"`
9613
9614
9615
9616
9617
9618 ForceSendFields []string `json:"-"`
9619
9620
9621
9622
9623 NullFields []string `json:"-"`
9624 }
9625
9626 func (s *GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest) MarshalJSON() ([]byte, error) {
9627 type NoMethod GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest
9628 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9629 }
9630
9631
9632 type GoogleCloudDiscoveryengineV1betaReply struct {
9633
9634 References []*GoogleCloudDiscoveryengineV1betaReplyReference `json:"references,omitempty"`
9635
9636 Reply string `json:"reply,omitempty"`
9637
9638 Summary *GoogleCloudDiscoveryengineV1betaSearchResponseSummary `json:"summary,omitempty"`
9639
9640
9641
9642
9643
9644 ForceSendFields []string `json:"-"`
9645
9646
9647
9648
9649 NullFields []string `json:"-"`
9650 }
9651
9652 func (s *GoogleCloudDiscoveryengineV1betaReply) MarshalJSON() ([]byte, error) {
9653 type NoMethod GoogleCloudDiscoveryengineV1betaReply
9654 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9655 }
9656
9657
9658 type GoogleCloudDiscoveryengineV1betaReplyReference struct {
9659
9660 AnchorText string `json:"anchorText,omitempty"`
9661
9662 End int64 `json:"end,omitempty"`
9663
9664 Start int64 `json:"start,omitempty"`
9665
9666 Uri string `json:"uri,omitempty"`
9667
9668
9669
9670
9671
9672 ForceSendFields []string `json:"-"`
9673
9674
9675
9676
9677 NullFields []string `json:"-"`
9678 }
9679
9680 func (s *GoogleCloudDiscoveryengineV1betaReplyReference) MarshalJSON() ([]byte, error) {
9681 type NoMethod GoogleCloudDiscoveryengineV1betaReplyReference
9682 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9683 }
9684
9685
9686
9687 type GoogleCloudDiscoveryengineV1betaResumeEngineRequest struct {
9688 }
9689
9690
9691
9692 type GoogleCloudDiscoveryengineV1betaSchema struct {
9693
9694 JsonSchema string `json:"jsonSchema,omitempty"`
9695
9696
9697
9698
9699 Name string `json:"name,omitempty"`
9700
9701 StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
9702
9703
9704 googleapi.ServerResponse `json:"-"`
9705
9706
9707
9708
9709
9710 ForceSendFields []string `json:"-"`
9711
9712
9713
9714
9715 NullFields []string `json:"-"`
9716 }
9717
9718 func (s *GoogleCloudDiscoveryengineV1betaSchema) MarshalJSON() ([]byte, error) {
9719 type NoMethod GoogleCloudDiscoveryengineV1betaSchema
9720 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9721 }
9722
9723
9724 type GoogleCloudDiscoveryengineV1betaSearchInfo struct {
9725
9726
9727
9728
9729
9730
9731 Offset int64 `json:"offset,omitempty"`
9732
9733
9734
9735
9736
9737
9738 OrderBy string `json:"orderBy,omitempty"`
9739
9740
9741
9742
9743
9744
9745 SearchQuery string `json:"searchQuery,omitempty"`
9746
9747
9748
9749
9750
9751 ForceSendFields []string `json:"-"`
9752
9753
9754
9755
9756 NullFields []string `json:"-"`
9757 }
9758
9759 func (s *GoogleCloudDiscoveryengineV1betaSearchInfo) MarshalJSON() ([]byte, error) {
9760 type NoMethod GoogleCloudDiscoveryengineV1betaSearchInfo
9761 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9762 }
9763
9764
9765
9766 type GoogleCloudDiscoveryengineV1betaSearchRequest struct {
9767
9768
9769
9770 BoostSpec *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec `json:"boostSpec,omitempty"`
9771
9772
9773
9774
9775 Branch string `json:"branch,omitempty"`
9776
9777
9778
9779
9780
9781
9782
9783
9784 CanonicalFilter string `json:"canonicalFilter,omitempty"`
9785
9786
9787 ContentSearchSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec `json:"contentSearchSpec,omitempty"`
9788
9789 DataStoreSpecs []*GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec `json:"dataStoreSpecs,omitempty"`
9790
9791
9792
9793
9794
9795
9796
9797 EmbeddingSpec *GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec `json:"embeddingSpec,omitempty"`
9798
9799
9800
9801 FacetSpecs []*GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec `json:"facetSpecs,omitempty"`
9802
9803
9804
9805
9806
9807
9808
9809
9810
9811
9812
9813 Filter string `json:"filter,omitempty"`
9814
9815 ImageQuery *GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery `json:"imageQuery,omitempty"`
9816
9817
9818
9819
9820 Offset int64 `json:"offset,omitempty"`
9821
9822
9823
9824
9825
9826
9827 OrderBy string `json:"orderBy,omitempty"`
9828
9829
9830
9831
9832
9833
9834 PageSize int64 `json:"pageSize,omitempty"`
9835
9836
9837
9838
9839 PageToken string `json:"pageToken,omitempty"`
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849 Params googleapi.RawMessage `json:"params,omitempty"`
9850
9851 Query string `json:"query,omitempty"`
9852
9853
9854 QueryExpansionSpec *GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec `json:"queryExpansionSpec,omitempty"`
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865
9866
9867 RankingExpression string `json:"rankingExpression,omitempty"`
9868
9869
9870 SafeSearch bool `json:"safeSearch,omitempty"`
9871
9872
9873 SpellCorrectionSpec *GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"`
9874
9875
9876 UserInfo *GoogleCloudDiscoveryengineV1betaUserInfo `json:"userInfo,omitempty"`
9877
9878
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889 UserLabels map[string]string `json:"userLabels,omitempty"`
9890
9891
9892
9893
9894
9895
9896
9897
9898
9899 UserPseudoId string `json:"userPseudoId,omitempty"`
9900
9901
9902
9903
9904
9905 ForceSendFields []string `json:"-"`
9906
9907
9908
9909
9910 NullFields []string `json:"-"`
9911 }
9912
9913 func (s *GoogleCloudDiscoveryengineV1betaSearchRequest) MarshalJSON() ([]byte, error) {
9914 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequest
9915 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9916 }
9917
9918
9919
9920 type GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec struct {
9921
9922
9923
9924
9925 ConditionBoostSpecs []*GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec `json:"conditionBoostSpecs,omitempty"`
9926
9927
9928
9929
9930
9931 ForceSendFields []string `json:"-"`
9932
9933
9934
9935
9936 NullFields []string `json:"-"`
9937 }
9938
9939 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec) MarshalJSON() ([]byte, error) {
9940 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpec
9941 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9942 }
9943
9944
9945
9946 type GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec struct {
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
9961 Boost float64 `json:"boost,omitempty"`
9962
9963
9964 BoostControlSpec *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec `json:"boostControlSpec,omitempty"`
9965
9966
9967
9968
9969
9970 Condition string `json:"condition,omitempty"`
9971
9972
9973
9974
9975
9976 ForceSendFields []string `json:"-"`
9977
9978
9979
9980
9981 NullFields []string `json:"-"`
9982 }
9983
9984 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec) MarshalJSON() ([]byte, error) {
9985 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec
9986 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9987 }
9988
9989 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec) UnmarshalJSON(data []byte) error {
9990 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpec
9991 var s1 struct {
9992 Boost gensupport.JSONFloat64 `json:"boost"`
9993 *NoMethod
9994 }
9995 s1.NoMethod = (*NoMethod)(s)
9996 if err := json.Unmarshal(data, &s1); err != nil {
9997 return err
9998 }
9999 s.Boost = float64(s1.Boost)
10000 return nil
10001 }
10002
10003
10004
10005
10006
10007 type GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec struct {
10008
10009
10010
10011
10012
10013
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025 AttributeType string `json:"attributeType,omitempty"`
10026
10027
10028
10029 ControlPoints []*GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint `json:"controlPoints,omitempty"`
10030
10031
10032 FieldName string `json:"fieldName,omitempty"`
10033
10034
10035
10036
10037
10038
10039
10040 InterpolationType string `json:"interpolationType,omitempty"`
10041
10042
10043
10044
10045
10046 ForceSendFields []string `json:"-"`
10047
10048
10049
10050
10051 NullFields []string `json:"-"`
10052 }
10053
10054 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec) MarshalJSON() ([]byte, error) {
10055 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec
10056 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10057 }
10058
10059
10060
10061
10062
10063 type GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint struct {
10064
10065
10066
10067
10068 AttributeValue string `json:"attributeValue,omitempty"`
10069
10070
10071 BoostAmount float64 `json:"boostAmount,omitempty"`
10072
10073
10074
10075
10076
10077 ForceSendFields []string `json:"-"`
10078
10079
10080
10081
10082 NullFields []string `json:"-"`
10083 }
10084
10085 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint) MarshalJSON() ([]byte, error) {
10086 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint
10087 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10088 }
10089
10090 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint) UnmarshalJSON(data []byte) error {
10091 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint
10092 var s1 struct {
10093 BoostAmount gensupport.JSONFloat64 `json:"boostAmount"`
10094 *NoMethod
10095 }
10096 s1.NoMethod = (*NoMethod)(s)
10097 if err := json.Unmarshal(data, &s1); err != nil {
10098 return err
10099 }
10100 s.BoostAmount = float64(s1.BoostAmount)
10101 return nil
10102 }
10103
10104
10105
10106 type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec struct {
10107
10108
10109 ExtractiveContentSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec `json:"extractiveContentSpec,omitempty"`
10110
10111
10112 SnippetSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec `json:"snippetSpec,omitempty"`
10113
10114
10115 SummarySpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec `json:"summarySpec,omitempty"`
10116
10117
10118
10119
10120
10121 ForceSendFields []string `json:"-"`
10122
10123
10124
10125
10126 NullFields []string `json:"-"`
10127 }
10128
10129 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec) MarshalJSON() ([]byte, error) {
10130 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec
10131 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10132 }
10133
10134
10135
10136
10137 type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec struct {
10138
10139
10140
10141
10142
10143
10144
10145 MaxExtractiveAnswerCount int64 `json:"maxExtractiveAnswerCount,omitempty"`
10146
10147
10148
10149
10150
10151
10152
10153
10154
10155 MaxExtractiveSegmentCount int64 `json:"maxExtractiveSegmentCount,omitempty"`
10156
10157
10158 NumNextSegments int64 `json:"numNextSegments,omitempty"`
10159
10160
10161
10162 NumPreviousSegments int64 `json:"numPreviousSegments,omitempty"`
10163
10164
10165
10166
10167 ReturnExtractiveSegmentScore bool `json:"returnExtractiveSegmentScore,omitempty"`
10168
10169
10170
10171
10172
10173 ForceSendFields []string `json:"-"`
10174
10175
10176
10177
10178 NullFields []string `json:"-"`
10179 }
10180
10181 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec) MarshalJSON() ([]byte, error) {
10182 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecExtractiveContentSpec
10183 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10184 }
10185
10186
10187
10188 type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec struct {
10189
10190
10191
10192 MaxSnippetCount int64 `json:"maxSnippetCount,omitempty"`
10193
10194
10195 ReferenceOnly bool `json:"referenceOnly,omitempty"`
10196
10197
10198
10199
10200 ReturnSnippet bool `json:"returnSnippet,omitempty"`
10201
10202
10203
10204
10205
10206 ForceSendFields []string `json:"-"`
10207
10208
10209
10210
10211 NullFields []string `json:"-"`
10212 }
10213
10214 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec) MarshalJSON() ([]byte, error) {
10215 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSnippetSpec
10216 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10217 }
10218
10219
10220
10221 type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec struct {
10222
10223
10224
10225
10226
10227
10228
10229
10230 IgnoreAdversarialQuery bool `json:"ignoreAdversarialQuery,omitempty"`
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240 IgnoreNonSummarySeekingQuery bool `json:"ignoreNonSummarySeekingQuery,omitempty"`
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251 IncludeCitations bool `json:"includeCitations,omitempty"`
10252
10253
10254
10255 LanguageCode string `json:"languageCode,omitempty"`
10256
10257
10258 ModelPromptSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec `json:"modelPromptSpec,omitempty"`
10259
10260
10261 ModelSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec `json:"modelSpec,omitempty"`
10262
10263
10264
10265
10266
10267
10268 SummaryResultCount int64 `json:"summaryResultCount,omitempty"`
10269
10270
10271
10272
10273
10274 UseSemanticChunks bool `json:"useSemanticChunks,omitempty"`
10275
10276
10277
10278
10279
10280 ForceSendFields []string `json:"-"`
10281
10282
10283
10284
10285 NullFields []string `json:"-"`
10286 }
10287
10288 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec) MarshalJSON() ([]byte, error) {
10289 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpec
10290 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10291 }
10292
10293
10294
10295 type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec struct {
10296
10297
10298 Preamble string `json:"preamble,omitempty"`
10299
10300
10301
10302
10303
10304 ForceSendFields []string `json:"-"`
10305
10306
10307
10308
10309 NullFields []string `json:"-"`
10310 }
10311
10312 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec) MarshalJSON() ([]byte, error) {
10313 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelPromptSpec
10314 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10315 }
10316
10317
10318
10319 type GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec struct {
10320
10321
10322
10323
10324
10325
10326
10327
10328 Version string `json:"version,omitempty"`
10329
10330
10331
10332
10333
10334 ForceSendFields []string `json:"-"`
10335
10336
10337
10338
10339 NullFields []string `json:"-"`
10340 }
10341
10342 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec) MarshalJSON() ([]byte, error) {
10343 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpecSummarySpecModelSpec
10344 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10345 }
10346
10347
10348
10349 type GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec struct {
10350
10351
10352
10353 DataStore string `json:"dataStore,omitempty"`
10354
10355
10356
10357
10358
10359 ForceSendFields []string `json:"-"`
10360
10361
10362
10363
10364 NullFields []string `json:"-"`
10365 }
10366
10367 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec) MarshalJSON() ([]byte, error) {
10368 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestDataStoreSpec
10369 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10370 }
10371
10372
10373
10374
10375 type GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec struct {
10376
10377 EmbeddingVectors []*GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector `json:"embeddingVectors,omitempty"`
10378
10379
10380
10381
10382
10383 ForceSendFields []string `json:"-"`
10384
10385
10386
10387
10388 NullFields []string `json:"-"`
10389 }
10390
10391 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec) MarshalJSON() ([]byte, error) {
10392 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpec
10393 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10394 }
10395
10396
10397
10398 type GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector struct {
10399
10400 FieldPath string `json:"fieldPath,omitempty"`
10401
10402 Vector []float64 `json:"vector,omitempty"`
10403
10404
10405
10406
10407
10408 ForceSendFields []string `json:"-"`
10409
10410
10411
10412
10413 NullFields []string `json:"-"`
10414 }
10415
10416 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector) MarshalJSON() ([]byte, error) {
10417 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector
10418 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10419 }
10420
10421 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector) UnmarshalJSON(data []byte) error {
10422 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestEmbeddingSpecEmbeddingVector
10423 var s1 struct {
10424 Vector []gensupport.JSONFloat64 `json:"vector"`
10425 *NoMethod
10426 }
10427 s1.NoMethod = (*NoMethod)(s)
10428 if err := json.Unmarshal(data, &s1); err != nil {
10429 return err
10430 }
10431 s.Vector = make([]float64, len(s1.Vector))
10432 for i := range s1.Vector {
10433 s.Vector[i] = float64(s1.Vector[i])
10434 }
10435 return nil
10436 }
10437
10438
10439
10440 type GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec struct {
10441
10442
10443
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453
10454
10455
10456
10457
10458
10459 EnableDynamicPosition bool `json:"enableDynamicPosition,omitempty"`
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470
10471
10472
10473
10474
10475
10476
10477 ExcludedFilterKeys []string `json:"excludedFilterKeys,omitempty"`
10478
10479 FacetKey *GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey `json:"facetKey,omitempty"`
10480
10481
10482
10483
10484 Limit int64 `json:"limit,omitempty"`
10485
10486
10487
10488
10489
10490 ForceSendFields []string `json:"-"`
10491
10492
10493
10494
10495 NullFields []string `json:"-"`
10496 }
10497
10498 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec) MarshalJSON() ([]byte, error) {
10499 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpec
10500 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10501 }
10502
10503
10504
10505 type GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey struct {
10506
10507
10508 CaseInsensitive bool `json:"caseInsensitive,omitempty"`
10509
10510
10511
10512
10513
10514 Contains []string `json:"contains,omitempty"`
10515
10516
10517
10518 Intervals []*GoogleCloudDiscoveryengineV1betaInterval `json:"intervals,omitempty"`
10519
10520
10521
10522 Key string `json:"key,omitempty"`
10523
10524
10525
10526
10527
10528
10529
10530 OrderBy string `json:"orderBy,omitempty"`
10531
10532
10533
10534
10535
10536 Prefixes []string `json:"prefixes,omitempty"`
10537
10538
10539
10540
10541
10542 RestrictedValues []string `json:"restrictedValues,omitempty"`
10543
10544
10545
10546
10547
10548 ForceSendFields []string `json:"-"`
10549
10550
10551
10552
10553 NullFields []string `json:"-"`
10554 }
10555
10556 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey) MarshalJSON() ([]byte, error) {
10557 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestFacetSpecFacetKey
10558 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10559 }
10560
10561
10562
10563 type GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery struct {
10564
10565
10566 ImageBytes string `json:"imageBytes,omitempty"`
10567
10568
10569
10570
10571
10572 ForceSendFields []string `json:"-"`
10573
10574
10575
10576
10577 NullFields []string `json:"-"`
10578 }
10579
10580 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery) MarshalJSON() ([]byte, error) {
10581 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestImageQuery
10582 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10583 }
10584
10585
10586
10587
10588 type GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec struct {
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598 Condition string `json:"condition,omitempty"`
10599
10600
10601
10602 PinUnexpandedResults bool `json:"pinUnexpandedResults,omitempty"`
10603
10604
10605
10606
10607
10608 ForceSendFields []string `json:"-"`
10609
10610
10611
10612
10613 NullFields []string `json:"-"`
10614 }
10615
10616 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec) MarshalJSON() ([]byte, error) {
10617 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestQueryExpansionSpec
10618 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10619 }
10620
10621
10622
10623 type GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec struct {
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635 Mode string `json:"mode,omitempty"`
10636
10637
10638
10639
10640
10641 ForceSendFields []string `json:"-"`
10642
10643
10644
10645
10646 NullFields []string `json:"-"`
10647 }
10648
10649 func (s *GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec) MarshalJSON() ([]byte, error) {
10650 type NoMethod GoogleCloudDiscoveryengineV1betaSearchRequestSpellCorrectionSpec
10651 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10652 }
10653
10654
10655
10656 type GoogleCloudDiscoveryengineV1betaSearchResponse struct {
10657
10658 AppliedControls []string `json:"appliedControls,omitempty"`
10659
10660
10661
10662 AttributionToken string `json:"attributionToken,omitempty"`
10663
10664
10665
10666 CorrectedQuery string `json:"correctedQuery,omitempty"`
10667
10668 Facets []*GoogleCloudDiscoveryengineV1betaSearchResponseFacet `json:"facets,omitempty"`
10669 GeoSearchDebugInfo []*GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo `json:"geoSearchDebugInfo,omitempty"`
10670
10671 GuidedSearchResult *GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult `json:"guidedSearchResult,omitempty"`
10672
10673
10674
10675 NextPageToken string `json:"nextPageToken,omitempty"`
10676
10677 QueryExpansionInfo *GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo `json:"queryExpansionInfo,omitempty"`
10678
10679
10680
10681 RedirectUri string `json:"redirectUri,omitempty"`
10682
10683 Results []*GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult `json:"results,omitempty"`
10684
10685
10686 Summary *GoogleCloudDiscoveryengineV1betaSearchResponseSummary `json:"summary,omitempty"`
10687
10688
10689
10690 TotalSize int64 `json:"totalSize,omitempty"`
10691
10692
10693 googleapi.ServerResponse `json:"-"`
10694
10695
10696
10697
10698
10699 ForceSendFields []string `json:"-"`
10700
10701
10702
10703
10704 NullFields []string `json:"-"`
10705 }
10706
10707 func (s *GoogleCloudDiscoveryengineV1betaSearchResponse) MarshalJSON() ([]byte, error) {
10708 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponse
10709 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10710 }
10711
10712
10713 type GoogleCloudDiscoveryengineV1betaSearchResponseFacet struct {
10714
10715 DynamicFacet bool `json:"dynamicFacet,omitempty"`
10716
10717
10718 Key string `json:"key,omitempty"`
10719
10720 Values []*GoogleCloudDiscoveryengineV1betaSearchResponseFacetFacetValue `json:"values,omitempty"`
10721
10722
10723
10724
10725
10726 ForceSendFields []string `json:"-"`
10727
10728
10729
10730
10731 NullFields []string `json:"-"`
10732 }
10733
10734 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseFacet) MarshalJSON() ([]byte, error) {
10735 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseFacet
10736 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10737 }
10738
10739
10740
10741 type GoogleCloudDiscoveryengineV1betaSearchResponseFacetFacetValue struct {
10742
10743 Count int64 `json:"count,omitempty,string"`
10744
10745
10746 Interval *GoogleCloudDiscoveryengineV1betaInterval `json:"interval,omitempty"`
10747
10748 Value string `json:"value,omitempty"`
10749
10750
10751
10752
10753
10754 ForceSendFields []string `json:"-"`
10755
10756
10757
10758
10759 NullFields []string `json:"-"`
10760 }
10761
10762 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseFacetFacetValue) MarshalJSON() ([]byte, error) {
10763 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseFacetFacetValue
10764 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10765 }
10766
10767
10768
10769
10770 type GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo struct {
10771
10772 ErrorMessage string `json:"errorMessage,omitempty"`
10773
10774
10775 OriginalAddressQuery string `json:"originalAddressQuery,omitempty"`
10776
10777
10778
10779
10780
10781 ForceSendFields []string `json:"-"`
10782
10783
10784
10785
10786 NullFields []string `json:"-"`
10787 }
10788
10789 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo) MarshalJSON() ([]byte, error) {
10790 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseGeoSearchDebugInfo
10791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10792 }
10793
10794
10795
10796
10797 type GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult struct {
10798
10799 FollowUpQuestions []string `json:"followUpQuestions,omitempty"`
10800
10801 RefinementAttributes []*GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute `json:"refinementAttributes,omitempty"`
10802
10803
10804
10805
10806
10807 ForceSendFields []string `json:"-"`
10808
10809
10810
10811
10812 NullFields []string `json:"-"`
10813 }
10814
10815 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult) MarshalJSON() ([]byte, error) {
10816 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResult
10817 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10818 }
10819
10820
10821
10822 type GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute struct {
10823
10824 AttributeKey string `json:"attributeKey,omitempty"`
10825
10826 AttributeValue string `json:"attributeValue,omitempty"`
10827
10828
10829
10830
10831
10832 ForceSendFields []string `json:"-"`
10833
10834
10835
10836
10837 NullFields []string `json:"-"`
10838 }
10839
10840 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute) MarshalJSON() ([]byte, error) {
10841 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseGuidedSearchResultRefinementAttribute
10842 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10843 }
10844
10845
10846
10847
10848 type GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo struct {
10849
10850 ExpandedQuery bool `json:"expandedQuery,omitempty"`
10851
10852
10853
10854 PinnedResultCount int64 `json:"pinnedResultCount,omitempty,string"`
10855
10856
10857
10858
10859
10860 ForceSendFields []string `json:"-"`
10861
10862
10863
10864
10865 NullFields []string `json:"-"`
10866 }
10867
10868 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo) MarshalJSON() ([]byte, error) {
10869 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseQueryExpansionInfo
10870 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10871 }
10872
10873
10874
10875 type GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult struct {
10876
10877
10878 Document *GoogleCloudDiscoveryengineV1betaDocument `json:"document,omitempty"`
10879
10880 Id string `json:"id,omitempty"`
10881
10882 ModelScores map[string]GoogleCloudDiscoveryengineV1betaDoubleList `json:"modelScores,omitempty"`
10883
10884
10885
10886
10887
10888 ForceSendFields []string `json:"-"`
10889
10890
10891
10892
10893 NullFields []string `json:"-"`
10894 }
10895
10896 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult) MarshalJSON() ([]byte, error) {
10897 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSearchResult
10898 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10899 }
10900
10901
10902
10903 type GoogleCloudDiscoveryengineV1betaSearchResponseSummary struct {
10904
10905
10906 SafetyAttributes *GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes `json:"safetyAttributes,omitempty"`
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920
10921
10922
10923
10924
10925
10926
10927 SummarySkippedReasons []string `json:"summarySkippedReasons,omitempty"`
10928
10929 SummaryText string `json:"summaryText,omitempty"`
10930
10931 SummaryWithMetadata *GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata `json:"summaryWithMetadata,omitempty"`
10932
10933
10934
10935
10936
10937 ForceSendFields []string `json:"-"`
10938
10939
10940
10941
10942 NullFields []string `json:"-"`
10943 }
10944
10945 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummary) MarshalJSON() ([]byte, error) {
10946 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummary
10947 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10948 }
10949
10950
10951
10952 type GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitation struct {
10953
10954 EndIndex int64 `json:"endIndex,omitempty,string"`
10955
10956 Sources []*GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationSource `json:"sources,omitempty"`
10957
10958
10959 StartIndex int64 `json:"startIndex,omitempty,string"`
10960
10961
10962
10963
10964
10965 ForceSendFields []string `json:"-"`
10966
10967
10968
10969
10970 NullFields []string `json:"-"`
10971 }
10972
10973 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitation) MarshalJSON() ([]byte, error) {
10974 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitation
10975 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10976 }
10977
10978
10979
10980 type GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationMetadata struct {
10981
10982 Citations []*GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitation `json:"citations,omitempty"`
10983
10984
10985
10986
10987
10988 ForceSendFields []string `json:"-"`
10989
10990
10991
10992
10993 NullFields []string `json:"-"`
10994 }
10995
10996 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationMetadata) MarshalJSON() ([]byte, error) {
10997 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationMetadata
10998 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10999 }
11000
11001
11002
11003 type GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationSource struct {
11004
11005
11006
11007 ReferenceIndex int64 `json:"referenceIndex,omitempty,string"`
11008
11009
11010
11011
11012
11013 ForceSendFields []string `json:"-"`
11014
11015
11016
11017
11018 NullFields []string `json:"-"`
11019 }
11020
11021 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationSource) MarshalJSON() ([]byte, error) {
11022 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationSource
11023 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11024 }
11025
11026
11027
11028 type GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReference struct {
11029
11030 ChunkContents []*GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent `json:"chunkContents,omitempty"`
11031
11032
11033
11034 Document string `json:"document,omitempty"`
11035
11036 Title string `json:"title,omitempty"`
11037
11038 Uri string `json:"uri,omitempty"`
11039
11040
11041
11042
11043
11044 ForceSendFields []string `json:"-"`
11045
11046
11047
11048
11049 NullFields []string `json:"-"`
11050 }
11051
11052 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReference) MarshalJSON() ([]byte, error) {
11053 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReference
11054 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11055 }
11056
11057
11058
11059 type GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent struct {
11060
11061 Content string `json:"content,omitempty"`
11062
11063 PageIdentifier string `json:"pageIdentifier,omitempty"`
11064
11065
11066
11067
11068
11069 ForceSendFields []string `json:"-"`
11070
11071
11072
11073
11074 NullFields []string `json:"-"`
11075 }
11076
11077 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent) MarshalJSON() ([]byte, error) {
11078 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReferenceChunkContent
11079 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11080 }
11081
11082
11083
11084 type GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes struct {
11085
11086
11087 Categories []string `json:"categories,omitempty"`
11088
11089
11090 Scores []float64 `json:"scores,omitempty"`
11091
11092
11093
11094
11095
11096 ForceSendFields []string `json:"-"`
11097
11098
11099
11100
11101 NullFields []string `json:"-"`
11102 }
11103
11104 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes) MarshalJSON() ([]byte, error) {
11105 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes
11106 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11107 }
11108
11109 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes) UnmarshalJSON(data []byte) error {
11110 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummarySafetyAttributes
11111 var s1 struct {
11112 Scores []gensupport.JSONFloat64 `json:"scores"`
11113 *NoMethod
11114 }
11115 s1.NoMethod = (*NoMethod)(s)
11116 if err := json.Unmarshal(data, &s1); err != nil {
11117 return err
11118 }
11119 s.Scores = make([]float64, len(s1.Scores))
11120 for i := range s1.Scores {
11121 s.Scores[i] = float64(s1.Scores[i])
11122 }
11123 return nil
11124 }
11125
11126
11127
11128 type GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata struct {
11129
11130 CitationMetadata *GoogleCloudDiscoveryengineV1betaSearchResponseSummaryCitationMetadata `json:"citationMetadata,omitempty"`
11131
11132 References []*GoogleCloudDiscoveryengineV1betaSearchResponseSummaryReference `json:"references,omitempty"`
11133
11134 Summary string `json:"summary,omitempty"`
11135
11136
11137
11138
11139
11140 ForceSendFields []string `json:"-"`
11141
11142
11143
11144
11145 NullFields []string `json:"-"`
11146 }
11147
11148 func (s *GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata) MarshalJSON() ([]byte, error) {
11149 type NoMethod GoogleCloudDiscoveryengineV1betaSearchResponseSummarySummaryWithMetadata
11150 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11151 }
11152
11153
11154
11155
11156
11157 type GoogleCloudDiscoveryengineV1betaServingConfig struct {
11158
11159
11160
11161 BoostControlIds []string `json:"boostControlIds,omitempty"`
11162
11163 CreateTime string `json:"createTime,omitempty"`
11164
11165
11166
11167 DisplayName string `json:"displayName,omitempty"`
11168
11169
11170
11171
11172
11173 DissociateControlIds []string `json:"dissociateControlIds,omitempty"`
11174
11175
11176
11177
11178
11179
11180 DiversityLevel string `json:"diversityLevel,omitempty"`
11181
11182
11183
11184
11185
11186
11187 EmbeddingConfig *GoogleCloudDiscoveryengineV1betaEmbeddingConfig `json:"embeddingConfig,omitempty"`
11188
11189
11190
11191 FilterControlIds []string `json:"filterControlIds,omitempty"`
11192
11193 GenericConfig *GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig `json:"genericConfig,omitempty"`
11194
11195
11196
11197 IgnoreControlIds []string `json:"ignoreControlIds,omitempty"`
11198
11199 MediaConfig *GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig `json:"mediaConfig,omitempty"`
11200
11201
11202
11203
11204 ModelId string `json:"modelId,omitempty"`
11205
11206
11207
11208 Name string `json:"name,omitempty"`
11209
11210
11211
11212
11213 OnewaySynonymsControlIds []string `json:"onewaySynonymsControlIds,omitempty"`
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229 RankingExpression string `json:"rankingExpression,omitempty"`
11230
11231
11232
11233
11234 RedirectControlIds []string `json:"redirectControlIds,omitempty"`
11235
11236
11237
11238
11239 ReplacementControlIds []string `json:"replacementControlIds,omitempty"`
11240
11241
11242
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252 SolutionType string `json:"solutionType,omitempty"`
11253
11254
11255
11256
11257 SynonymsControlIds []string `json:"synonymsControlIds,omitempty"`
11258
11259 UpdateTime string `json:"updateTime,omitempty"`
11260
11261
11262 googleapi.ServerResponse `json:"-"`
11263
11264
11265
11266
11267
11268 ForceSendFields []string `json:"-"`
11269
11270
11271
11272
11273 NullFields []string `json:"-"`
11274 }
11275
11276 func (s *GoogleCloudDiscoveryengineV1betaServingConfig) MarshalJSON() ([]byte, error) {
11277 type NoMethod GoogleCloudDiscoveryengineV1betaServingConfig
11278 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11279 }
11280
11281
11282
11283
11284 type GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig struct {
11285
11286
11287 ContentSearchSpec *GoogleCloudDiscoveryengineV1betaSearchRequestContentSearchSpec `json:"contentSearchSpec,omitempty"`
11288
11289
11290
11291
11292
11293 ForceSendFields []string `json:"-"`
11294
11295
11296
11297
11298 NullFields []string `json:"-"`
11299 }
11300
11301 func (s *GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig) MarshalJSON() ([]byte, error) {
11302 type NoMethod GoogleCloudDiscoveryengineV1betaServingConfigGenericConfig
11303 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11304 }
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
11315
11316
11317 type GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig struct {
11318
11319
11320
11321 ContentFreshnessCutoffDays int64 `json:"contentFreshnessCutoffDays,omitempty"`
11322
11323
11324 ContentWatchedPercentageThreshold float64 `json:"contentWatchedPercentageThreshold,omitempty"`
11325
11326
11327 ContentWatchedSecondsThreshold float64 `json:"contentWatchedSecondsThreshold,omitempty"`
11328
11329
11330
11331
11332
11333
11334 DemotionEventType string `json:"demotionEventType,omitempty"`
11335
11336
11337
11338
11339
11340 ForceSendFields []string `json:"-"`
11341
11342
11343
11344
11345 NullFields []string `json:"-"`
11346 }
11347
11348 func (s *GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig) MarshalJSON() ([]byte, error) {
11349 type NoMethod GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig
11350 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11351 }
11352
11353 func (s *GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig) UnmarshalJSON(data []byte) error {
11354 type NoMethod GoogleCloudDiscoveryengineV1betaServingConfigMediaConfig
11355 var s1 struct {
11356 ContentWatchedPercentageThreshold gensupport.JSONFloat64 `json:"contentWatchedPercentageThreshold"`
11357 ContentWatchedSecondsThreshold gensupport.JSONFloat64 `json:"contentWatchedSecondsThreshold"`
11358 *NoMethod
11359 }
11360 s1.NoMethod = (*NoMethod)(s)
11361 if err := json.Unmarshal(data, &s1); err != nil {
11362 return err
11363 }
11364 s.ContentWatchedPercentageThreshold = float64(s1.ContentWatchedPercentageThreshold)
11365 s.ContentWatchedSecondsThreshold = float64(s1.ContentWatchedSecondsThreshold)
11366 return nil
11367 }
11368
11369
11370 type GoogleCloudDiscoveryengineV1betaSession struct {
11371
11372 EndTime string `json:"endTime,omitempty"`
11373
11374
11375
11376 Name string `json:"name,omitempty"`
11377
11378 StartTime string `json:"startTime,omitempty"`
11379
11380
11381
11382
11383
11384 State string `json:"state,omitempty"`
11385
11386 Turns []*GoogleCloudDiscoveryengineV1betaSessionTurn `json:"turns,omitempty"`
11387
11388 UserPseudoId string `json:"userPseudoId,omitempty"`
11389
11390
11391 googleapi.ServerResponse `json:"-"`
11392
11393
11394
11395
11396
11397 ForceSendFields []string `json:"-"`
11398
11399
11400
11401
11402 NullFields []string `json:"-"`
11403 }
11404
11405 func (s *GoogleCloudDiscoveryengineV1betaSession) MarshalJSON() ([]byte, error) {
11406 type NoMethod GoogleCloudDiscoveryengineV1betaSession
11407 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11408 }
11409
11410
11411
11412 type GoogleCloudDiscoveryengineV1betaSessionTurn struct {
11413
11414 Answer string `json:"answer,omitempty"`
11415
11416 Query *GoogleCloudDiscoveryengineV1betaQuery `json:"query,omitempty"`
11417
11418
11419
11420
11421
11422 ForceSendFields []string `json:"-"`
11423
11424
11425
11426
11427 NullFields []string `json:"-"`
11428 }
11429
11430 func (s *GoogleCloudDiscoveryengineV1betaSessionTurn) MarshalJSON() ([]byte, error) {
11431 type NoMethod GoogleCloudDiscoveryengineV1betaSessionTurn
11432 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11433 }
11434
11435
11436
11437
11438 type GoogleCloudDiscoveryengineV1betaSiteSearchEngine struct {
11439
11440
11441 Name string `json:"name,omitempty"`
11442
11443
11444 googleapi.ServerResponse `json:"-"`
11445
11446
11447
11448
11449
11450 ForceSendFields []string `json:"-"`
11451
11452
11453
11454
11455 NullFields []string `json:"-"`
11456 }
11457
11458 func (s *GoogleCloudDiscoveryengineV1betaSiteSearchEngine) MarshalJSON() ([]byte, error) {
11459 type NoMethod GoogleCloudDiscoveryengineV1betaSiteSearchEngine
11460 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11461 }
11462
11463
11464
11465 type GoogleCloudDiscoveryengineV1betaSiteVerificationInfo struct {
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475 SiteVerificationState string `json:"siteVerificationState,omitempty"`
11476
11477 VerifyTime string `json:"verifyTime,omitempty"`
11478
11479
11480
11481
11482
11483 ForceSendFields []string `json:"-"`
11484
11485
11486
11487
11488 NullFields []string `json:"-"`
11489 }
11490
11491 func (s *GoogleCloudDiscoveryengineV1betaSiteVerificationInfo) MarshalJSON() ([]byte, error) {
11492 type NoMethod GoogleCloudDiscoveryengineV1betaSiteVerificationInfo
11493 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11494 }
11495
11496
11497
11498 type GoogleCloudDiscoveryengineV1betaSpannerSource struct {
11499
11500 DatabaseId string `json:"databaseId,omitempty"`
11501
11502
11503
11504 EnableDataBoost bool `json:"enableDataBoost,omitempty"`
11505
11506 InstanceId string `json:"instanceId,omitempty"`
11507
11508
11509
11510 ProjectId string `json:"projectId,omitempty"`
11511
11512
11513 TableId string `json:"tableId,omitempty"`
11514
11515
11516
11517
11518
11519 ForceSendFields []string `json:"-"`
11520
11521
11522
11523
11524 NullFields []string `json:"-"`
11525 }
11526
11527 func (s *GoogleCloudDiscoveryengineV1betaSpannerSource) MarshalJSON() ([]byte, error) {
11528 type NoMethod GoogleCloudDiscoveryengineV1betaSpannerSource
11529 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11530 }
11531
11532
11533
11534
11535 type GoogleCloudDiscoveryengineV1betaSuggestionDenyListEntry struct {
11536
11537
11538 BlockPhrase string `json:"blockPhrase,omitempty"`
11539
11540
11541
11542
11543
11544
11545
11546
11547
11548 MatchOperator string `json:"matchOperator,omitempty"`
11549
11550
11551
11552
11553
11554 ForceSendFields []string `json:"-"`
11555
11556
11557
11558
11559 NullFields []string `json:"-"`
11560 }
11561
11562 func (s *GoogleCloudDiscoveryengineV1betaSuggestionDenyListEntry) MarshalJSON() ([]byte, error) {
11563 type NoMethod GoogleCloudDiscoveryengineV1betaSuggestionDenyListEntry
11564 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11565 }
11566
11567
11568
11569 type GoogleCloudDiscoveryengineV1betaTargetSite struct {
11570
11571
11572
11573
11574
11575
11576 ExactMatch bool `json:"exactMatch,omitempty"`
11577
11578 FailureReason *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason `json:"failureReason,omitempty"`
11579
11580
11581 GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591
11592
11593
11594 IndexingStatus string `json:"indexingStatus,omitempty"`
11595
11596
11597
11598
11599 Name string `json:"name,omitempty"`
11600
11601
11602 ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
11603
11604 RootDomainUri string `json:"rootDomainUri,omitempty"`
11605
11606
11607 SiteVerificationInfo *GoogleCloudDiscoveryengineV1betaSiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
11608
11609
11610
11611
11612
11613
11614
11615
11616 Type string `json:"type,omitempty"`
11617
11618 UpdateTime string `json:"updateTime,omitempty"`
11619
11620
11621 googleapi.ServerResponse `json:"-"`
11622
11623
11624
11625
11626
11627 ForceSendFields []string `json:"-"`
11628
11629
11630
11631
11632 NullFields []string `json:"-"`
11633 }
11634
11635 func (s *GoogleCloudDiscoveryengineV1betaTargetSite) MarshalJSON() ([]byte, error) {
11636 type NoMethod GoogleCloudDiscoveryengineV1betaTargetSite
11637 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11638 }
11639
11640
11641
11642 type GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason struct {
11643
11644 QuotaFailure *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
11645
11646
11647
11648
11649
11650 ForceSendFields []string `json:"-"`
11651
11652
11653
11654
11655 NullFields []string `json:"-"`
11656 }
11657
11658 func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason) MarshalJSON() ([]byte, error) {
11659 type NoMethod GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason
11660 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11661 }
11662
11663
11664
11665 type GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure struct {
11666
11667
11668 TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
11669
11670
11671
11672
11673
11674 ForceSendFields []string `json:"-"`
11675
11676
11677
11678
11679 NullFields []string `json:"-"`
11680 }
11681
11682 func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
11683 type NoMethod GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure
11684 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11685 }
11686
11687
11688 type GoogleCloudDiscoveryengineV1betaTextInput struct {
11689
11690 Context *GoogleCloudDiscoveryengineV1betaConversationContext `json:"context,omitempty"`
11691
11692 Input string `json:"input,omitempty"`
11693
11694
11695
11696
11697
11698 ForceSendFields []string `json:"-"`
11699
11700
11701
11702
11703 NullFields []string `json:"-"`
11704 }
11705
11706 func (s *GoogleCloudDiscoveryengineV1betaTextInput) MarshalJSON() ([]byte, error) {
11707 type NoMethod GoogleCloudDiscoveryengineV1betaTextInput
11708 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11709 }
11710
11711
11712
11713
11714 type GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata struct {
11715
11716 CreateTime string `json:"createTime,omitempty"`
11717
11718
11719 UpdateTime string `json:"updateTime,omitempty"`
11720
11721
11722
11723
11724
11725 ForceSendFields []string `json:"-"`
11726
11727
11728
11729
11730 NullFields []string `json:"-"`
11731 }
11732
11733 func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) {
11734 type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata
11735 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11736 }
11737
11738
11739
11740 type GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest struct {
11741
11742
11743 ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
11744
11745 GcsTrainingInput *GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput `json:"gcsTrainingInput,omitempty"`
11746
11747 ModelId string `json:"modelId,omitempty"`
11748
11749
11750 ModelType string `json:"modelType,omitempty"`
11751
11752
11753
11754
11755
11756 ForceSendFields []string `json:"-"`
11757
11758
11759
11760
11761 NullFields []string `json:"-"`
11762 }
11763
11764 func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest) MarshalJSON() ([]byte, error) {
11765 type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest
11766 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11767 }
11768
11769
11770
11771 type GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput struct {
11772
11773
11774
11775
11776
11777 CorpusDataPath string `json:"corpusDataPath,omitempty"`
11778
11779
11780
11781
11782 QueryDataPath string `json:"queryDataPath,omitempty"`
11783
11784
11785
11786 TestDataPath string `json:"testDataPath,omitempty"`
11787
11788
11789
11790
11791
11792
11793 TrainDataPath string `json:"trainDataPath,omitempty"`
11794
11795
11796
11797
11798
11799 ForceSendFields []string `json:"-"`
11800
11801
11802
11803
11804 NullFields []string `json:"-"`
11805 }
11806
11807 func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput) MarshalJSON() ([]byte, error) {
11808 type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelRequestGcsTrainingInput
11809 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11810 }
11811
11812
11813
11814
11815 type GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse struct {
11816
11817
11818 ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
11819
11820 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
11821
11822 Metrics map[string]float64 `json:"metrics,omitempty"`
11823
11824 ModelName string `json:"modelName,omitempty"`
11825
11826
11827
11828
11829
11830
11831
11832 ModelStatus string `json:"modelStatus,omitempty"`
11833
11834
11835
11836
11837
11838 ForceSendFields []string `json:"-"`
11839
11840
11841
11842
11843 NullFields []string `json:"-"`
11844 }
11845
11846 func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse) MarshalJSON() ([]byte, error) {
11847 type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse
11848 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11849 }
11850
11851
11852
11853 type GoogleCloudDiscoveryengineV1betaTransactionInfo struct {
11854
11855
11856
11857 Cost float64 `json:"cost,omitempty"`
11858
11859 Currency string `json:"currency,omitempty"`
11860
11861
11862
11863
11864
11865
11866
11867
11868 DiscountValue float64 `json:"discountValue,omitempty"`
11869
11870 Tax float64 `json:"tax,omitempty"`
11871
11872 TransactionId string `json:"transactionId,omitempty"`
11873
11874
11875
11876 Value float64 `json:"value,omitempty"`
11877
11878
11879
11880
11881
11882 ForceSendFields []string `json:"-"`
11883
11884
11885
11886
11887 NullFields []string `json:"-"`
11888 }
11889
11890 func (s *GoogleCloudDiscoveryengineV1betaTransactionInfo) MarshalJSON() ([]byte, error) {
11891 type NoMethod GoogleCloudDiscoveryengineV1betaTransactionInfo
11892 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11893 }
11894
11895 func (s *GoogleCloudDiscoveryengineV1betaTransactionInfo) UnmarshalJSON(data []byte) error {
11896 type NoMethod GoogleCloudDiscoveryengineV1betaTransactionInfo
11897 var s1 struct {
11898 Cost gensupport.JSONFloat64 `json:"cost"`
11899 DiscountValue gensupport.JSONFloat64 `json:"discountValue"`
11900 Tax gensupport.JSONFloat64 `json:"tax"`
11901 Value gensupport.JSONFloat64 `json:"value"`
11902 *NoMethod
11903 }
11904 s1.NoMethod = (*NoMethod)(s)
11905 if err := json.Unmarshal(data, &s1); err != nil {
11906 return err
11907 }
11908 s.Cost = float64(s1.Cost)
11909 s.DiscountValue = float64(s1.DiscountValue)
11910 s.Tax = float64(s1.Tax)
11911 s.Value = float64(s1.Value)
11912 return nil
11913 }
11914
11915
11916
11917 type GoogleCloudDiscoveryengineV1betaTuneEngineMetadata struct {
11918
11919
11920
11921
11922 Engine string `json:"engine,omitempty"`
11923
11924
11925
11926
11927
11928 ForceSendFields []string `json:"-"`
11929
11930
11931
11932
11933 NullFields []string `json:"-"`
11934 }
11935
11936 func (s *GoogleCloudDiscoveryengineV1betaTuneEngineMetadata) MarshalJSON() ([]byte, error) {
11937 type NoMethod GoogleCloudDiscoveryengineV1betaTuneEngineMetadata
11938 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11939 }
11940
11941
11942
11943
11944 type GoogleCloudDiscoveryengineV1betaTuneEngineRequest struct {
11945 }
11946
11947
11948
11949 type GoogleCloudDiscoveryengineV1betaTuneEngineResponse struct {
11950 }
11951
11952
11953
11954 type GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata struct {
11955
11956 CreateTime string `json:"createTime,omitempty"`
11957
11958
11959 UpdateTime string `json:"updateTime,omitempty"`
11960
11961
11962
11963
11964
11965 ForceSendFields []string `json:"-"`
11966
11967
11968
11969
11970 NullFields []string `json:"-"`
11971 }
11972
11973 func (s *GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
11974 type NoMethod GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata
11975 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11976 }
11977
11978
11979
11980
11981 type GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata struct {
11982
11983 CreateTime string `json:"createTime,omitempty"`
11984
11985
11986 UpdateTime string `json:"updateTime,omitempty"`
11987
11988
11989
11990
11991
11992 ForceSendFields []string `json:"-"`
11993
11994
11995
11996
11997 NullFields []string `json:"-"`
11998 }
11999
12000 func (s *GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
12001 type NoMethod GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata
12002 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12003 }
12004
12005
12006
12007
12008 type GoogleCloudDiscoveryengineV1betaUserEvent struct {
12009
12010
12011
12012
12013
12014
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027 Attributes map[string]GoogleCloudDiscoveryengineV1betaCustomAttribute `json:"attributes,omitempty"`
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041 AttributionToken string `json:"attributionToken,omitempty"`
12042
12043
12044
12045 CompletionInfo *GoogleCloudDiscoveryengineV1betaCompletionInfo `json:"completionInfo,omitempty"`
12046
12047
12048
12049
12050
12051
12052
12053 DirectUserRequest bool `json:"directUserRequest,omitempty"`
12054
12055
12056
12057
12058
12059
12060
12061
12062 Documents []*GoogleCloudDiscoveryengineV1betaDocumentInfo `json:"documents,omitempty"`
12063
12064
12065 EventTime string `json:"eventTime,omitempty"`
12066
12067
12068
12069
12070
12071
12072
12073
12074
12075 EventType string `json:"eventType,omitempty"`
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085
12086 Filter string `json:"filter,omitempty"`
12087
12088 MediaInfo *GoogleCloudDiscoveryengineV1betaMediaInfo `json:"mediaInfo,omitempty"`
12089
12090
12091 PageInfo *GoogleCloudDiscoveryengineV1betaPageInfo `json:"pageInfo,omitempty"`
12092
12093 Panel *GoogleCloudDiscoveryengineV1betaPanelInfo `json:"panel,omitempty"`
12094
12095
12096 PromotionIds []string `json:"promotionIds,omitempty"`
12097
12098
12099 SearchInfo *GoogleCloudDiscoveryengineV1betaSearchInfo `json:"searchInfo,omitempty"`
12100
12101
12102
12103
12104
12105
12106 SessionId string `json:"sessionId,omitempty"`
12107
12108
12109
12110 TagIds []string `json:"tagIds,omitempty"`
12111
12112
12113 TransactionInfo *GoogleCloudDiscoveryengineV1betaTransactionInfo `json:"transactionInfo,omitempty"`
12114
12115 UserInfo *GoogleCloudDiscoveryengineV1betaUserInfo `json:"userInfo,omitempty"`
12116
12117
12118
12119
12120
12121
12122
12123
12124
12125
12126
12127 UserPseudoId string `json:"userPseudoId,omitempty"`
12128
12129
12130 googleapi.ServerResponse `json:"-"`
12131
12132
12133
12134
12135
12136 ForceSendFields []string `json:"-"`
12137
12138
12139
12140
12141 NullFields []string `json:"-"`
12142 }
12143
12144 func (s *GoogleCloudDiscoveryengineV1betaUserEvent) MarshalJSON() ([]byte, error) {
12145 type NoMethod GoogleCloudDiscoveryengineV1betaUserEvent
12146 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12147 }
12148
12149
12150 type GoogleCloudDiscoveryengineV1betaUserInfo struct {
12151
12152
12153
12154
12155
12156
12157 UserAgent string `json:"userAgent,omitempty"`
12158
12159
12160
12161
12162
12163
12164
12165 UserId string `json:"userId,omitempty"`
12166
12167
12168
12169
12170
12171 ForceSendFields []string `json:"-"`
12172
12173
12174
12175
12176 NullFields []string `json:"-"`
12177 }
12178
12179 func (s *GoogleCloudDiscoveryengineV1betaUserInfo) MarshalJSON() ([]byte, error) {
12180 type NoMethod GoogleCloudDiscoveryengineV1betaUserInfo
12181 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12182 }
12183
12184
12185
12186 type GoogleLongrunningCancelOperationRequest struct {
12187 }
12188
12189
12190
12191 type GoogleLongrunningListOperationsResponse struct {
12192
12193 NextPageToken string `json:"nextPageToken,omitempty"`
12194
12195
12196 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
12197
12198
12199 googleapi.ServerResponse `json:"-"`
12200
12201
12202
12203
12204
12205 ForceSendFields []string `json:"-"`
12206
12207
12208
12209
12210 NullFields []string `json:"-"`
12211 }
12212
12213 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
12214 type NoMethod GoogleLongrunningListOperationsResponse
12215 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12216 }
12217
12218
12219
12220 type GoogleLongrunningOperation struct {
12221
12222
12223
12224 Done bool `json:"done,omitempty"`
12225
12226 Error *GoogleRpcStatus `json:"error,omitempty"`
12227
12228
12229
12230
12231 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
12232
12233
12234
12235 Name string `json:"name,omitempty"`
12236
12237
12238
12239
12240
12241
12242
12243 Response googleapi.RawMessage `json:"response,omitempty"`
12244
12245
12246 googleapi.ServerResponse `json:"-"`
12247
12248
12249
12250
12251
12252 ForceSendFields []string `json:"-"`
12253
12254
12255
12256
12257 NullFields []string `json:"-"`
12258 }
12259
12260 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
12261 type NoMethod GoogleLongrunningOperation
12262 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12263 }
12264
12265
12266
12267
12268
12269
12270 type GoogleProtobufEmpty struct {
12271
12272 googleapi.ServerResponse `json:"-"`
12273 }
12274
12275
12276
12277
12278
12279
12280
12281 type GoogleRpcStatus struct {
12282
12283 Code int64 `json:"code,omitempty"`
12284
12285
12286 Details []googleapi.RawMessage `json:"details,omitempty"`
12287
12288
12289
12290 Message string `json:"message,omitempty"`
12291
12292
12293
12294
12295
12296 ForceSendFields []string `json:"-"`
12297
12298
12299
12300
12301 NullFields []string `json:"-"`
12302 }
12303
12304 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
12305 type NoMethod GoogleRpcStatus
12306 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12307 }
12308
12309
12310
12311
12312
12313
12314
12315
12316
12317
12318 type GoogleTypeDate struct {
12319
12320
12321
12322 Day int64 `json:"day,omitempty"`
12323
12324
12325 Month int64 `json:"month,omitempty"`
12326
12327
12328 Year int64 `json:"year,omitempty"`
12329
12330
12331
12332
12333
12334 ForceSendFields []string `json:"-"`
12335
12336
12337
12338
12339 NullFields []string `json:"-"`
12340 }
12341
12342 func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
12343 type NoMethod GoogleTypeDate
12344 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12345 }
12346
12347 type ProjectsLocationsCollectionsDataConnectorOperationsGetCall struct {
12348 s *Service
12349 name string
12350 urlParams_ gensupport.URLParams
12351 ifNoneMatch_ string
12352 ctx_ context.Context
12353 header_ http.Header
12354 }
12355
12356
12357
12358
12359
12360
12361 func (r *ProjectsLocationsCollectionsDataConnectorOperationsService) Get(name string) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
12362 c := &ProjectsLocationsCollectionsDataConnectorOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12363 c.name = name
12364 return c
12365 }
12366
12367
12368
12369
12370 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
12371 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12372 return c
12373 }
12374
12375
12376
12377
12378 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
12379 c.ifNoneMatch_ = entityTag
12380 return c
12381 }
12382
12383
12384 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
12385 c.ctx_ = ctx
12386 return c
12387 }
12388
12389
12390
12391 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Header() http.Header {
12392 if c.header_ == nil {
12393 c.header_ = make(http.Header)
12394 }
12395 return c.header_
12396 }
12397
12398 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) doRequest(alt string) (*http.Response, error) {
12399 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12400 if c.ifNoneMatch_ != "" {
12401 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12402 }
12403 var body io.Reader = nil
12404 c.urlParams_.Set("alt", alt)
12405 c.urlParams_.Set("prettyPrint", "false")
12406 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
12407 urls += "?" + c.urlParams_.Encode()
12408 req, err := http.NewRequest("GET", urls, body)
12409 if err != nil {
12410 return nil, err
12411 }
12412 req.Header = reqHeaders
12413 googleapi.Expand(req.URL, map[string]string{
12414 "name": c.name,
12415 })
12416 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12417 }
12418
12419
12420
12421
12422
12423
12424
12425 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12426 gensupport.SetOptions(c.urlParams_, opts...)
12427 res, err := c.doRequest("json")
12428 if res != nil && res.StatusCode == http.StatusNotModified {
12429 if res.Body != nil {
12430 res.Body.Close()
12431 }
12432 return nil, gensupport.WrapError(&googleapi.Error{
12433 Code: res.StatusCode,
12434 Header: res.Header,
12435 })
12436 }
12437 if err != nil {
12438 return nil, err
12439 }
12440 defer googleapi.CloseBody(res)
12441 if err := googleapi.CheckResponse(res); err != nil {
12442 return nil, gensupport.WrapError(err)
12443 }
12444 ret := &GoogleLongrunningOperation{
12445 ServerResponse: googleapi.ServerResponse{
12446 Header: res.Header,
12447 HTTPStatusCode: res.StatusCode,
12448 },
12449 }
12450 target := &ret
12451 if err := gensupport.DecodeResponse(target, res); err != nil {
12452 return nil, err
12453 }
12454 return ret, nil
12455 }
12456
12457 type ProjectsLocationsCollectionsDataConnectorOperationsListCall struct {
12458 s *Service
12459 name string
12460 urlParams_ gensupport.URLParams
12461 ifNoneMatch_ string
12462 ctx_ context.Context
12463 header_ http.Header
12464 }
12465
12466
12467
12468
12469
12470 func (r *ProjectsLocationsCollectionsDataConnectorOperationsService) List(name string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
12471 c := &ProjectsLocationsCollectionsDataConnectorOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12472 c.name = name
12473 return c
12474 }
12475
12476
12477 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
12478 c.urlParams_.Set("filter", filter)
12479 return c
12480 }
12481
12482
12483
12484 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
12485 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12486 return c
12487 }
12488
12489
12490
12491 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
12492 c.urlParams_.Set("pageToken", pageToken)
12493 return c
12494 }
12495
12496
12497
12498
12499 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
12500 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12501 return c
12502 }
12503
12504
12505
12506
12507 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
12508 c.ifNoneMatch_ = entityTag
12509 return c
12510 }
12511
12512
12513 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
12514 c.ctx_ = ctx
12515 return c
12516 }
12517
12518
12519
12520 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Header() http.Header {
12521 if c.header_ == nil {
12522 c.header_ = make(http.Header)
12523 }
12524 return c.header_
12525 }
12526
12527 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) doRequest(alt string) (*http.Response, error) {
12528 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12529 if c.ifNoneMatch_ != "" {
12530 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12531 }
12532 var body io.Reader = nil
12533 c.urlParams_.Set("alt", alt)
12534 c.urlParams_.Set("prettyPrint", "false")
12535 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
12536 urls += "?" + c.urlParams_.Encode()
12537 req, err := http.NewRequest("GET", urls, body)
12538 if err != nil {
12539 return nil, err
12540 }
12541 req.Header = reqHeaders
12542 googleapi.Expand(req.URL, map[string]string{
12543 "name": c.name,
12544 })
12545 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12546 }
12547
12548
12549
12550
12551
12552
12553
12554 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
12555 gensupport.SetOptions(c.urlParams_, opts...)
12556 res, err := c.doRequest("json")
12557 if res != nil && res.StatusCode == http.StatusNotModified {
12558 if res.Body != nil {
12559 res.Body.Close()
12560 }
12561 return nil, gensupport.WrapError(&googleapi.Error{
12562 Code: res.StatusCode,
12563 Header: res.Header,
12564 })
12565 }
12566 if err != nil {
12567 return nil, err
12568 }
12569 defer googleapi.CloseBody(res)
12570 if err := googleapi.CheckResponse(res); err != nil {
12571 return nil, gensupport.WrapError(err)
12572 }
12573 ret := &GoogleLongrunningListOperationsResponse{
12574 ServerResponse: googleapi.ServerResponse{
12575 Header: res.Header,
12576 HTTPStatusCode: res.StatusCode,
12577 },
12578 }
12579 target := &ret
12580 if err := gensupport.DecodeResponse(target, res); err != nil {
12581 return nil, err
12582 }
12583 return ret, nil
12584 }
12585
12586
12587
12588
12589 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
12590 c.ctx_ = ctx
12591 defer c.PageToken(c.urlParams_.Get("pageToken"))
12592 for {
12593 x, err := c.Do()
12594 if err != nil {
12595 return err
12596 }
12597 if err := f(x); err != nil {
12598 return err
12599 }
12600 if x.NextPageToken == "" {
12601 return nil
12602 }
12603 c.PageToken(x.NextPageToken)
12604 }
12605 }
12606
12607 type ProjectsLocationsCollectionsDataStoresCompleteQueryCall struct {
12608 s *Service
12609 dataStore string
12610 urlParams_ gensupport.URLParams
12611 ifNoneMatch_ string
12612 ctx_ context.Context
12613 header_ http.Header
12614 }
12615
12616
12617
12618
12619
12620
12621
12622 func (r *ProjectsLocationsCollectionsDataStoresService) CompleteQuery(dataStore string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
12623 c := &ProjectsLocationsCollectionsDataStoresCompleteQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12624 c.dataStore = dataStore
12625 return c
12626 }
12627
12628
12629
12630
12631
12632
12633 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) IncludeTailSuggestions(includeTailSuggestions bool) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
12634 c.urlParams_.Set("includeTailSuggestions", fmt.Sprint(includeTailSuggestions))
12635 return c
12636 }
12637
12638
12639
12640 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Query(query string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
12641 c.urlParams_.Set("query", query)
12642 return c
12643 }
12644
12645
12646
12647
12648
12649
12650
12651
12652
12653
12654
12655
12656
12657 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
12658 c.urlParams_.Set("queryModel", queryModel)
12659 return c
12660 }
12661
12662
12663
12664
12665
12666
12667
12668
12669
12670
12671 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) UserPseudoId(userPseudoId string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
12672 c.urlParams_.Set("userPseudoId", userPseudoId)
12673 return c
12674 }
12675
12676
12677
12678
12679 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
12680 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12681 return c
12682 }
12683
12684
12685
12686
12687 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
12688 c.ifNoneMatch_ = entityTag
12689 return c
12690 }
12691
12692
12693 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
12694 c.ctx_ = ctx
12695 return c
12696 }
12697
12698
12699
12700 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Header() http.Header {
12701 if c.header_ == nil {
12702 c.header_ = make(http.Header)
12703 }
12704 return c.header_
12705 }
12706
12707 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) doRequest(alt string) (*http.Response, error) {
12708 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12709 if c.ifNoneMatch_ != "" {
12710 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12711 }
12712 var body io.Reader = nil
12713 c.urlParams_.Set("alt", alt)
12714 c.urlParams_.Set("prettyPrint", "false")
12715 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+dataStore}:completeQuery")
12716 urls += "?" + c.urlParams_.Encode()
12717 req, err := http.NewRequest("GET", urls, body)
12718 if err != nil {
12719 return nil, err
12720 }
12721 req.Header = reqHeaders
12722 googleapi.Expand(req.URL, map[string]string{
12723 "dataStore": c.dataStore,
12724 })
12725 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12726 }
12727
12728
12729
12730
12731
12732
12733
12734 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaCompleteQueryResponse, error) {
12735 gensupport.SetOptions(c.urlParams_, opts...)
12736 res, err := c.doRequest("json")
12737 if res != nil && res.StatusCode == http.StatusNotModified {
12738 if res.Body != nil {
12739 res.Body.Close()
12740 }
12741 return nil, gensupport.WrapError(&googleapi.Error{
12742 Code: res.StatusCode,
12743 Header: res.Header,
12744 })
12745 }
12746 if err != nil {
12747 return nil, err
12748 }
12749 defer googleapi.CloseBody(res)
12750 if err := googleapi.CheckResponse(res); err != nil {
12751 return nil, gensupport.WrapError(err)
12752 }
12753 ret := &GoogleCloudDiscoveryengineV1betaCompleteQueryResponse{
12754 ServerResponse: googleapi.ServerResponse{
12755 Header: res.Header,
12756 HTTPStatusCode: res.StatusCode,
12757 },
12758 }
12759 target := &ret
12760 if err := gensupport.DecodeResponse(target, res); err != nil {
12761 return nil, err
12762 }
12763 return ret, nil
12764 }
12765
12766 type ProjectsLocationsCollectionsDataStoresCreateCall struct {
12767 s *Service
12768 parent string
12769 googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore
12770 urlParams_ gensupport.URLParams
12771 ctx_ context.Context
12772 header_ http.Header
12773 }
12774
12775
12776
12777
12778
12779
12780
12781 func (r *ProjectsLocationsCollectionsDataStoresService) Create(parent string, googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore) *ProjectsLocationsCollectionsDataStoresCreateCall {
12782 c := &ProjectsLocationsCollectionsDataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12783 c.parent = parent
12784 c.googleclouddiscoveryenginev1betadatastore = googleclouddiscoveryenginev1betadatastore
12785 return c
12786 }
12787
12788
12789
12790
12791
12792
12793 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) CreateAdvancedSiteSearch(createAdvancedSiteSearch bool) *ProjectsLocationsCollectionsDataStoresCreateCall {
12794 c.urlParams_.Set("createAdvancedSiteSearch", fmt.Sprint(createAdvancedSiteSearch))
12795 return c
12796 }
12797
12798
12799
12800
12801
12802
12803 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) DataStoreId(dataStoreId string) *ProjectsLocationsCollectionsDataStoresCreateCall {
12804 c.urlParams_.Set("dataStoreId", dataStoreId)
12805 return c
12806 }
12807
12808
12809
12810
12811 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCreateCall {
12812 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12813 return c
12814 }
12815
12816
12817 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCreateCall {
12818 c.ctx_ = ctx
12819 return c
12820 }
12821
12822
12823
12824 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Header() http.Header {
12825 if c.header_ == nil {
12826 c.header_ = make(http.Header)
12827 }
12828 return c.header_
12829 }
12830
12831 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) doRequest(alt string) (*http.Response, error) {
12832 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12833 var body io.Reader = nil
12834 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadatastore)
12835 if err != nil {
12836 return nil, err
12837 }
12838 c.urlParams_.Set("alt", alt)
12839 c.urlParams_.Set("prettyPrint", "false")
12840 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/dataStores")
12841 urls += "?" + c.urlParams_.Encode()
12842 req, err := http.NewRequest("POST", urls, body)
12843 if err != nil {
12844 return nil, err
12845 }
12846 req.Header = reqHeaders
12847 googleapi.Expand(req.URL, map[string]string{
12848 "parent": c.parent,
12849 })
12850 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12851 }
12852
12853
12854
12855
12856
12857
12858
12859 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12860 gensupport.SetOptions(c.urlParams_, opts...)
12861 res, err := c.doRequest("json")
12862 if res != nil && res.StatusCode == http.StatusNotModified {
12863 if res.Body != nil {
12864 res.Body.Close()
12865 }
12866 return nil, gensupport.WrapError(&googleapi.Error{
12867 Code: res.StatusCode,
12868 Header: res.Header,
12869 })
12870 }
12871 if err != nil {
12872 return nil, err
12873 }
12874 defer googleapi.CloseBody(res)
12875 if err := googleapi.CheckResponse(res); err != nil {
12876 return nil, gensupport.WrapError(err)
12877 }
12878 ret := &GoogleLongrunningOperation{
12879 ServerResponse: googleapi.ServerResponse{
12880 Header: res.Header,
12881 HTTPStatusCode: res.StatusCode,
12882 },
12883 }
12884 target := &ret
12885 if err := gensupport.DecodeResponse(target, res); err != nil {
12886 return nil, err
12887 }
12888 return ret, nil
12889 }
12890
12891 type ProjectsLocationsCollectionsDataStoresDeleteCall struct {
12892 s *Service
12893 name string
12894 urlParams_ gensupport.URLParams
12895 ctx_ context.Context
12896 header_ http.Header
12897 }
12898
12899
12900
12901
12902
12903
12904
12905
12906
12907 func (r *ProjectsLocationsCollectionsDataStoresService) Delete(name string) *ProjectsLocationsCollectionsDataStoresDeleteCall {
12908 c := &ProjectsLocationsCollectionsDataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12909 c.name = name
12910 return c
12911 }
12912
12913
12914
12915
12916 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresDeleteCall {
12917 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12918 return c
12919 }
12920
12921
12922 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresDeleteCall {
12923 c.ctx_ = ctx
12924 return c
12925 }
12926
12927
12928
12929 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Header() http.Header {
12930 if c.header_ == nil {
12931 c.header_ = make(http.Header)
12932 }
12933 return c.header_
12934 }
12935
12936 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
12937 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12938 var body io.Reader = nil
12939 c.urlParams_.Set("alt", alt)
12940 c.urlParams_.Set("prettyPrint", "false")
12941 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
12942 urls += "?" + c.urlParams_.Encode()
12943 req, err := http.NewRequest("DELETE", urls, body)
12944 if err != nil {
12945 return nil, err
12946 }
12947 req.Header = reqHeaders
12948 googleapi.Expand(req.URL, map[string]string{
12949 "name": c.name,
12950 })
12951 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12952 }
12953
12954
12955
12956
12957
12958
12959
12960 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12961 gensupport.SetOptions(c.urlParams_, opts...)
12962 res, err := c.doRequest("json")
12963 if res != nil && res.StatusCode == http.StatusNotModified {
12964 if res.Body != nil {
12965 res.Body.Close()
12966 }
12967 return nil, gensupport.WrapError(&googleapi.Error{
12968 Code: res.StatusCode,
12969 Header: res.Header,
12970 })
12971 }
12972 if err != nil {
12973 return nil, err
12974 }
12975 defer googleapi.CloseBody(res)
12976 if err := googleapi.CheckResponse(res); err != nil {
12977 return nil, gensupport.WrapError(err)
12978 }
12979 ret := &GoogleLongrunningOperation{
12980 ServerResponse: googleapi.ServerResponse{
12981 Header: res.Header,
12982 HTTPStatusCode: res.StatusCode,
12983 },
12984 }
12985 target := &ret
12986 if err := gensupport.DecodeResponse(target, res); err != nil {
12987 return nil, err
12988 }
12989 return ret, nil
12990 }
12991
12992 type ProjectsLocationsCollectionsDataStoresGetCall struct {
12993 s *Service
12994 name string
12995 urlParams_ gensupport.URLParams
12996 ifNoneMatch_ string
12997 ctx_ context.Context
12998 header_ http.Header
12999 }
13000
13001
13002
13003
13004
13005
13006
13007
13008
13009 func (r *ProjectsLocationsCollectionsDataStoresService) Get(name string) *ProjectsLocationsCollectionsDataStoresGetCall {
13010 c := &ProjectsLocationsCollectionsDataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13011 c.name = name
13012 return c
13013 }
13014
13015
13016
13017
13018 func (c *ProjectsLocationsCollectionsDataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetCall {
13019 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13020 return c
13021 }
13022
13023
13024
13025
13026 func (c *ProjectsLocationsCollectionsDataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetCall {
13027 c.ifNoneMatch_ = entityTag
13028 return c
13029 }
13030
13031
13032 func (c *ProjectsLocationsCollectionsDataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetCall {
13033 c.ctx_ = ctx
13034 return c
13035 }
13036
13037
13038
13039 func (c *ProjectsLocationsCollectionsDataStoresGetCall) Header() http.Header {
13040 if c.header_ == nil {
13041 c.header_ = make(http.Header)
13042 }
13043 return c.header_
13044 }
13045
13046 func (c *ProjectsLocationsCollectionsDataStoresGetCall) doRequest(alt string) (*http.Response, error) {
13047 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13048 if c.ifNoneMatch_ != "" {
13049 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13050 }
13051 var body io.Reader = nil
13052 c.urlParams_.Set("alt", alt)
13053 c.urlParams_.Set("prettyPrint", "false")
13054 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
13055 urls += "?" + c.urlParams_.Encode()
13056 req, err := http.NewRequest("GET", urls, body)
13057 if err != nil {
13058 return nil, err
13059 }
13060 req.Header = reqHeaders
13061 googleapi.Expand(req.URL, map[string]string{
13062 "name": c.name,
13063 })
13064 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13065 }
13066
13067
13068
13069
13070
13071
13072
13073 func (c *ProjectsLocationsCollectionsDataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDataStore, error) {
13074 gensupport.SetOptions(c.urlParams_, opts...)
13075 res, err := c.doRequest("json")
13076 if res != nil && res.StatusCode == http.StatusNotModified {
13077 if res.Body != nil {
13078 res.Body.Close()
13079 }
13080 return nil, gensupport.WrapError(&googleapi.Error{
13081 Code: res.StatusCode,
13082 Header: res.Header,
13083 })
13084 }
13085 if err != nil {
13086 return nil, err
13087 }
13088 defer googleapi.CloseBody(res)
13089 if err := googleapi.CheckResponse(res); err != nil {
13090 return nil, gensupport.WrapError(err)
13091 }
13092 ret := &GoogleCloudDiscoveryengineV1betaDataStore{
13093 ServerResponse: googleapi.ServerResponse{
13094 Header: res.Header,
13095 HTTPStatusCode: res.StatusCode,
13096 },
13097 }
13098 target := &ret
13099 if err := gensupport.DecodeResponse(target, res); err != nil {
13100 return nil, err
13101 }
13102 return ret, nil
13103 }
13104
13105 type ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall struct {
13106 s *Service
13107 name string
13108 urlParams_ gensupport.URLParams
13109 ifNoneMatch_ string
13110 ctx_ context.Context
13111 header_ http.Header
13112 }
13113
13114
13115
13116
13117
13118
13119
13120
13121 func (r *ProjectsLocationsCollectionsDataStoresService) GetSiteSearchEngine(name string) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
13122 c := &ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13123 c.name = name
13124 return c
13125 }
13126
13127
13128
13129
13130 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
13131 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13132 return c
13133 }
13134
13135
13136
13137
13138 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
13139 c.ifNoneMatch_ = entityTag
13140 return c
13141 }
13142
13143
13144 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
13145 c.ctx_ = ctx
13146 return c
13147 }
13148
13149
13150
13151 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Header() http.Header {
13152 if c.header_ == nil {
13153 c.header_ = make(http.Header)
13154 }
13155 return c.header_
13156 }
13157
13158 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) doRequest(alt string) (*http.Response, error) {
13159 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13160 if c.ifNoneMatch_ != "" {
13161 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13162 }
13163 var body io.Reader = nil
13164 c.urlParams_.Set("alt", alt)
13165 c.urlParams_.Set("prettyPrint", "false")
13166 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
13167 urls += "?" + c.urlParams_.Encode()
13168 req, err := http.NewRequest("GET", urls, body)
13169 if err != nil {
13170 return nil, err
13171 }
13172 req.Header = reqHeaders
13173 googleapi.Expand(req.URL, map[string]string{
13174 "name": c.name,
13175 })
13176 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13177 }
13178
13179
13180
13181
13182
13183
13184
13185 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSiteSearchEngine, error) {
13186 gensupport.SetOptions(c.urlParams_, opts...)
13187 res, err := c.doRequest("json")
13188 if res != nil && res.StatusCode == http.StatusNotModified {
13189 if res.Body != nil {
13190 res.Body.Close()
13191 }
13192 return nil, gensupport.WrapError(&googleapi.Error{
13193 Code: res.StatusCode,
13194 Header: res.Header,
13195 })
13196 }
13197 if err != nil {
13198 return nil, err
13199 }
13200 defer googleapi.CloseBody(res)
13201 if err := googleapi.CheckResponse(res); err != nil {
13202 return nil, gensupport.WrapError(err)
13203 }
13204 ret := &GoogleCloudDiscoveryengineV1betaSiteSearchEngine{
13205 ServerResponse: googleapi.ServerResponse{
13206 Header: res.Header,
13207 HTTPStatusCode: res.StatusCode,
13208 },
13209 }
13210 target := &ret
13211 if err := gensupport.DecodeResponse(target, res); err != nil {
13212 return nil, err
13213 }
13214 return ret, nil
13215 }
13216
13217 type ProjectsLocationsCollectionsDataStoresListCall struct {
13218 s *Service
13219 parent string
13220 urlParams_ gensupport.URLParams
13221 ifNoneMatch_ string
13222 ctx_ context.Context
13223 header_ http.Header
13224 }
13225
13226
13227
13228
13229
13230
13231
13232
13233 func (r *ProjectsLocationsCollectionsDataStoresService) List(parent string) *ProjectsLocationsCollectionsDataStoresListCall {
13234 c := &ProjectsLocationsCollectionsDataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13235 c.parent = parent
13236 return c
13237 }
13238
13239
13240
13241 func (c *ProjectsLocationsCollectionsDataStoresListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresListCall {
13242 c.urlParams_.Set("filter", filter)
13243 return c
13244 }
13245
13246
13247
13248
13249
13250 func (c *ProjectsLocationsCollectionsDataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresListCall {
13251 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13252 return c
13253 }
13254
13255
13256
13257
13258
13259
13260
13261 func (c *ProjectsLocationsCollectionsDataStoresListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresListCall {
13262 c.urlParams_.Set("pageToken", pageToken)
13263 return c
13264 }
13265
13266
13267
13268
13269 func (c *ProjectsLocationsCollectionsDataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresListCall {
13270 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13271 return c
13272 }
13273
13274
13275
13276
13277 func (c *ProjectsLocationsCollectionsDataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresListCall {
13278 c.ifNoneMatch_ = entityTag
13279 return c
13280 }
13281
13282
13283 func (c *ProjectsLocationsCollectionsDataStoresListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresListCall {
13284 c.ctx_ = ctx
13285 return c
13286 }
13287
13288
13289
13290 func (c *ProjectsLocationsCollectionsDataStoresListCall) Header() http.Header {
13291 if c.header_ == nil {
13292 c.header_ = make(http.Header)
13293 }
13294 return c.header_
13295 }
13296
13297 func (c *ProjectsLocationsCollectionsDataStoresListCall) doRequest(alt string) (*http.Response, error) {
13298 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13299 if c.ifNoneMatch_ != "" {
13300 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13301 }
13302 var body io.Reader = nil
13303 c.urlParams_.Set("alt", alt)
13304 c.urlParams_.Set("prettyPrint", "false")
13305 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/dataStores")
13306 urls += "?" + c.urlParams_.Encode()
13307 req, err := http.NewRequest("GET", urls, body)
13308 if err != nil {
13309 return nil, err
13310 }
13311 req.Header = reqHeaders
13312 googleapi.Expand(req.URL, map[string]string{
13313 "parent": c.parent,
13314 })
13315 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13316 }
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326 func (c *ProjectsLocationsCollectionsDataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListDataStoresResponse, error) {
13327 gensupport.SetOptions(c.urlParams_, opts...)
13328 res, err := c.doRequest("json")
13329 if res != nil && res.StatusCode == http.StatusNotModified {
13330 if res.Body != nil {
13331 res.Body.Close()
13332 }
13333 return nil, gensupport.WrapError(&googleapi.Error{
13334 Code: res.StatusCode,
13335 Header: res.Header,
13336 })
13337 }
13338 if err != nil {
13339 return nil, err
13340 }
13341 defer googleapi.CloseBody(res)
13342 if err := googleapi.CheckResponse(res); err != nil {
13343 return nil, gensupport.WrapError(err)
13344 }
13345 ret := &GoogleCloudDiscoveryengineV1betaListDataStoresResponse{
13346 ServerResponse: googleapi.ServerResponse{
13347 Header: res.Header,
13348 HTTPStatusCode: res.StatusCode,
13349 },
13350 }
13351 target := &ret
13352 if err := gensupport.DecodeResponse(target, res); err != nil {
13353 return nil, err
13354 }
13355 return ret, nil
13356 }
13357
13358
13359
13360
13361 func (c *ProjectsLocationsCollectionsDataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListDataStoresResponse) error) error {
13362 c.ctx_ = ctx
13363 defer c.PageToken(c.urlParams_.Get("pageToken"))
13364 for {
13365 x, err := c.Do()
13366 if err != nil {
13367 return err
13368 }
13369 if err := f(x); err != nil {
13370 return err
13371 }
13372 if x.NextPageToken == "" {
13373 return nil
13374 }
13375 c.PageToken(x.NextPageToken)
13376 }
13377 }
13378
13379 type ProjectsLocationsCollectionsDataStoresPatchCall struct {
13380 s *Service
13381 name string
13382 googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore
13383 urlParams_ gensupport.URLParams
13384 ctx_ context.Context
13385 header_ http.Header
13386 }
13387
13388
13389
13390
13391
13392
13393
13394 func (r *ProjectsLocationsCollectionsDataStoresService) Patch(name string, googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore) *ProjectsLocationsCollectionsDataStoresPatchCall {
13395 c := &ProjectsLocationsCollectionsDataStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13396 c.name = name
13397 c.googleclouddiscoveryenginev1betadatastore = googleclouddiscoveryenginev1betadatastore
13398 return c
13399 }
13400
13401
13402
13403
13404 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresPatchCall {
13405 c.urlParams_.Set("updateMask", updateMask)
13406 return c
13407 }
13408
13409
13410
13411
13412 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresPatchCall {
13413 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13414 return c
13415 }
13416
13417
13418 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresPatchCall {
13419 c.ctx_ = ctx
13420 return c
13421 }
13422
13423
13424
13425 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Header() http.Header {
13426 if c.header_ == nil {
13427 c.header_ = make(http.Header)
13428 }
13429 return c.header_
13430 }
13431
13432 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) doRequest(alt string) (*http.Response, error) {
13433 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13434 var body io.Reader = nil
13435 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadatastore)
13436 if err != nil {
13437 return nil, err
13438 }
13439 c.urlParams_.Set("alt", alt)
13440 c.urlParams_.Set("prettyPrint", "false")
13441 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
13442 urls += "?" + c.urlParams_.Encode()
13443 req, err := http.NewRequest("PATCH", urls, body)
13444 if err != nil {
13445 return nil, err
13446 }
13447 req.Header = reqHeaders
13448 googleapi.Expand(req.URL, map[string]string{
13449 "name": c.name,
13450 })
13451 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13452 }
13453
13454
13455
13456
13457
13458
13459
13460 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDataStore, error) {
13461 gensupport.SetOptions(c.urlParams_, opts...)
13462 res, err := c.doRequest("json")
13463 if res != nil && res.StatusCode == http.StatusNotModified {
13464 if res.Body != nil {
13465 res.Body.Close()
13466 }
13467 return nil, gensupport.WrapError(&googleapi.Error{
13468 Code: res.StatusCode,
13469 Header: res.Header,
13470 })
13471 }
13472 if err != nil {
13473 return nil, err
13474 }
13475 defer googleapi.CloseBody(res)
13476 if err := googleapi.CheckResponse(res); err != nil {
13477 return nil, gensupport.WrapError(err)
13478 }
13479 ret := &GoogleCloudDiscoveryengineV1betaDataStore{
13480 ServerResponse: googleapi.ServerResponse{
13481 Header: res.Header,
13482 HTTPStatusCode: res.StatusCode,
13483 },
13484 }
13485 target := &ret
13486 if err := gensupport.DecodeResponse(target, res); err != nil {
13487 return nil, err
13488 }
13489 return ret, nil
13490 }
13491
13492 type ProjectsLocationsCollectionsDataStoresTrainCustomModelCall struct {
13493 s *Service
13494 dataStore string
13495 googleclouddiscoveryenginev1betatraincustommodelrequest *GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest
13496 urlParams_ gensupport.URLParams
13497 ctx_ context.Context
13498 header_ http.Header
13499 }
13500
13501
13502
13503
13504
13505
13506
13507 func (r *ProjectsLocationsCollectionsDataStoresService) TrainCustomModel(dataStore string, googleclouddiscoveryenginev1betatraincustommodelrequest *GoogleCloudDiscoveryengineV1betaTrainCustomModelRequest) *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall {
13508 c := &ProjectsLocationsCollectionsDataStoresTrainCustomModelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13509 c.dataStore = dataStore
13510 c.googleclouddiscoveryenginev1betatraincustommodelrequest = googleclouddiscoveryenginev1betatraincustommodelrequest
13511 return c
13512 }
13513
13514
13515
13516
13517 func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall {
13518 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13519 return c
13520 }
13521
13522
13523 func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall {
13524 c.ctx_ = ctx
13525 return c
13526 }
13527
13528
13529
13530 func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Header() http.Header {
13531 if c.header_ == nil {
13532 c.header_ = make(http.Header)
13533 }
13534 return c.header_
13535 }
13536
13537 func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) doRequest(alt string) (*http.Response, error) {
13538 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13539 var body io.Reader = nil
13540 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatraincustommodelrequest)
13541 if err != nil {
13542 return nil, err
13543 }
13544 c.urlParams_.Set("alt", alt)
13545 c.urlParams_.Set("prettyPrint", "false")
13546 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+dataStore}:trainCustomModel")
13547 urls += "?" + c.urlParams_.Encode()
13548 req, err := http.NewRequest("POST", urls, body)
13549 if err != nil {
13550 return nil, err
13551 }
13552 req.Header = reqHeaders
13553 googleapi.Expand(req.URL, map[string]string{
13554 "dataStore": c.dataStore,
13555 })
13556 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13557 }
13558
13559
13560
13561
13562
13563
13564
13565 func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13566 gensupport.SetOptions(c.urlParams_, opts...)
13567 res, err := c.doRequest("json")
13568 if res != nil && res.StatusCode == http.StatusNotModified {
13569 if res.Body != nil {
13570 res.Body.Close()
13571 }
13572 return nil, gensupport.WrapError(&googleapi.Error{
13573 Code: res.StatusCode,
13574 Header: res.Header,
13575 })
13576 }
13577 if err != nil {
13578 return nil, err
13579 }
13580 defer googleapi.CloseBody(res)
13581 if err := googleapi.CheckResponse(res); err != nil {
13582 return nil, gensupport.WrapError(err)
13583 }
13584 ret := &GoogleLongrunningOperation{
13585 ServerResponse: googleapi.ServerResponse{
13586 Header: res.Header,
13587 HTTPStatusCode: res.StatusCode,
13588 },
13589 }
13590 target := &ret
13591 if err := gensupport.DecodeResponse(target, res); err != nil {
13592 return nil, err
13593 }
13594 return ret, nil
13595 }
13596
13597 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall struct {
13598 s *Service
13599 parent string
13600 googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument
13601 urlParams_ gensupport.URLParams
13602 ctx_ context.Context
13603 header_ http.Header
13604 }
13605
13606
13607
13608
13609
13610
13611 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Create(parent string, googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
13612 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13613 c.parent = parent
13614 c.googleclouddiscoveryenginev1betadocument = googleclouddiscoveryenginev1betadocument
13615 return c
13616 }
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) DocumentId(documentId string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
13628 c.urlParams_.Set("documentId", documentId)
13629 return c
13630 }
13631
13632
13633
13634
13635 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
13636 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13637 return c
13638 }
13639
13640
13641 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
13642 c.ctx_ = ctx
13643 return c
13644 }
13645
13646
13647
13648 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Header() http.Header {
13649 if c.header_ == nil {
13650 c.header_ = make(http.Header)
13651 }
13652 return c.header_
13653 }
13654
13655 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
13656 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13657 var body io.Reader = nil
13658 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadocument)
13659 if err != nil {
13660 return nil, err
13661 }
13662 c.urlParams_.Set("alt", alt)
13663 c.urlParams_.Set("prettyPrint", "false")
13664 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents")
13665 urls += "?" + c.urlParams_.Encode()
13666 req, err := http.NewRequest("POST", urls, body)
13667 if err != nil {
13668 return nil, err
13669 }
13670 req.Header = reqHeaders
13671 googleapi.Expand(req.URL, map[string]string{
13672 "parent": c.parent,
13673 })
13674 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13675 }
13676
13677
13678
13679
13680
13681
13682
13683 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDocument, error) {
13684 gensupport.SetOptions(c.urlParams_, opts...)
13685 res, err := c.doRequest("json")
13686 if res != nil && res.StatusCode == http.StatusNotModified {
13687 if res.Body != nil {
13688 res.Body.Close()
13689 }
13690 return nil, gensupport.WrapError(&googleapi.Error{
13691 Code: res.StatusCode,
13692 Header: res.Header,
13693 })
13694 }
13695 if err != nil {
13696 return nil, err
13697 }
13698 defer googleapi.CloseBody(res)
13699 if err := googleapi.CheckResponse(res); err != nil {
13700 return nil, gensupport.WrapError(err)
13701 }
13702 ret := &GoogleCloudDiscoveryengineV1betaDocument{
13703 ServerResponse: googleapi.ServerResponse{
13704 Header: res.Header,
13705 HTTPStatusCode: res.StatusCode,
13706 },
13707 }
13708 target := &ret
13709 if err := gensupport.DecodeResponse(target, res); err != nil {
13710 return nil, err
13711 }
13712 return ret, nil
13713 }
13714
13715 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall struct {
13716 s *Service
13717 name string
13718 urlParams_ gensupport.URLParams
13719 ctx_ context.Context
13720 header_ http.Header
13721 }
13722
13723
13724
13725
13726
13727
13728
13729
13730
13731 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
13732 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13733 c.name = name
13734 return c
13735 }
13736
13737
13738
13739
13740 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
13741 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13742 return c
13743 }
13744
13745
13746 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
13747 c.ctx_ = ctx
13748 return c
13749 }
13750
13751
13752
13753 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Header() http.Header {
13754 if c.header_ == nil {
13755 c.header_ = make(http.Header)
13756 }
13757 return c.header_
13758 }
13759
13760 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
13761 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13762 var body io.Reader = nil
13763 c.urlParams_.Set("alt", alt)
13764 c.urlParams_.Set("prettyPrint", "false")
13765 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
13766 urls += "?" + c.urlParams_.Encode()
13767 req, err := http.NewRequest("DELETE", urls, body)
13768 if err != nil {
13769 return nil, err
13770 }
13771 req.Header = reqHeaders
13772 googleapi.Expand(req.URL, map[string]string{
13773 "name": c.name,
13774 })
13775 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13776 }
13777
13778
13779
13780
13781
13782
13783
13784 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
13785 gensupport.SetOptions(c.urlParams_, opts...)
13786 res, err := c.doRequest("json")
13787 if res != nil && res.StatusCode == http.StatusNotModified {
13788 if res.Body != nil {
13789 res.Body.Close()
13790 }
13791 return nil, gensupport.WrapError(&googleapi.Error{
13792 Code: res.StatusCode,
13793 Header: res.Header,
13794 })
13795 }
13796 if err != nil {
13797 return nil, err
13798 }
13799 defer googleapi.CloseBody(res)
13800 if err := googleapi.CheckResponse(res); err != nil {
13801 return nil, gensupport.WrapError(err)
13802 }
13803 ret := &GoogleProtobufEmpty{
13804 ServerResponse: googleapi.ServerResponse{
13805 Header: res.Header,
13806 HTTPStatusCode: res.StatusCode,
13807 },
13808 }
13809 target := &ret
13810 if err := gensupport.DecodeResponse(target, res); err != nil {
13811 return nil, err
13812 }
13813 return ret, nil
13814 }
13815
13816 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall struct {
13817 s *Service
13818 name string
13819 urlParams_ gensupport.URLParams
13820 ifNoneMatch_ string
13821 ctx_ context.Context
13822 header_ http.Header
13823 }
13824
13825
13826
13827
13828
13829
13830
13831
13832
13833 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
13834 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13835 c.name = name
13836 return c
13837 }
13838
13839
13840
13841
13842 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
13843 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13844 return c
13845 }
13846
13847
13848
13849
13850 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
13851 c.ifNoneMatch_ = entityTag
13852 return c
13853 }
13854
13855
13856 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
13857 c.ctx_ = ctx
13858 return c
13859 }
13860
13861
13862
13863 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Header() http.Header {
13864 if c.header_ == nil {
13865 c.header_ = make(http.Header)
13866 }
13867 return c.header_
13868 }
13869
13870 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
13871 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13872 if c.ifNoneMatch_ != "" {
13873 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13874 }
13875 var body io.Reader = nil
13876 c.urlParams_.Set("alt", alt)
13877 c.urlParams_.Set("prettyPrint", "false")
13878 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
13879 urls += "?" + c.urlParams_.Encode()
13880 req, err := http.NewRequest("GET", urls, body)
13881 if err != nil {
13882 return nil, err
13883 }
13884 req.Header = reqHeaders
13885 googleapi.Expand(req.URL, map[string]string{
13886 "name": c.name,
13887 })
13888 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13889 }
13890
13891
13892
13893
13894
13895
13896
13897 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDocument, error) {
13898 gensupport.SetOptions(c.urlParams_, opts...)
13899 res, err := c.doRequest("json")
13900 if res != nil && res.StatusCode == http.StatusNotModified {
13901 if res.Body != nil {
13902 res.Body.Close()
13903 }
13904 return nil, gensupport.WrapError(&googleapi.Error{
13905 Code: res.StatusCode,
13906 Header: res.Header,
13907 })
13908 }
13909 if err != nil {
13910 return nil, err
13911 }
13912 defer googleapi.CloseBody(res)
13913 if err := googleapi.CheckResponse(res); err != nil {
13914 return nil, gensupport.WrapError(err)
13915 }
13916 ret := &GoogleCloudDiscoveryengineV1betaDocument{
13917 ServerResponse: googleapi.ServerResponse{
13918 Header: res.Header,
13919 HTTPStatusCode: res.StatusCode,
13920 },
13921 }
13922 target := &ret
13923 if err := gensupport.DecodeResponse(target, res); err != nil {
13924 return nil, err
13925 }
13926 return ret, nil
13927 }
13928
13929 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall struct {
13930 s *Service
13931 parent string
13932 googleclouddiscoveryenginev1betaimportdocumentsrequest *GoogleCloudDiscoveryengineV1betaImportDocumentsRequest
13933 urlParams_ gensupport.URLParams
13934 ctx_ context.Context
13935 header_ http.Header
13936 }
13937
13938
13939
13940
13941
13942
13943
13944
13945 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Import(parent string, googleclouddiscoveryenginev1betaimportdocumentsrequest *GoogleCloudDiscoveryengineV1betaImportDocumentsRequest) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
13946 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13947 c.parent = parent
13948 c.googleclouddiscoveryenginev1betaimportdocumentsrequest = googleclouddiscoveryenginev1betaimportdocumentsrequest
13949 return c
13950 }
13951
13952
13953
13954
13955 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
13956 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13957 return c
13958 }
13959
13960
13961 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
13962 c.ctx_ = ctx
13963 return c
13964 }
13965
13966
13967
13968 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Header() http.Header {
13969 if c.header_ == nil {
13970 c.header_ = make(http.Header)
13971 }
13972 return c.header_
13973 }
13974
13975 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
13976 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13977 var body io.Reader = nil
13978 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaimportdocumentsrequest)
13979 if err != nil {
13980 return nil, err
13981 }
13982 c.urlParams_.Set("alt", alt)
13983 c.urlParams_.Set("prettyPrint", "false")
13984 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents:import")
13985 urls += "?" + c.urlParams_.Encode()
13986 req, err := http.NewRequest("POST", urls, body)
13987 if err != nil {
13988 return nil, err
13989 }
13990 req.Header = reqHeaders
13991 googleapi.Expand(req.URL, map[string]string{
13992 "parent": c.parent,
13993 })
13994 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13995 }
13996
13997
13998
13999
14000
14001
14002
14003 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14004 gensupport.SetOptions(c.urlParams_, opts...)
14005 res, err := c.doRequest("json")
14006 if res != nil && res.StatusCode == http.StatusNotModified {
14007 if res.Body != nil {
14008 res.Body.Close()
14009 }
14010 return nil, gensupport.WrapError(&googleapi.Error{
14011 Code: res.StatusCode,
14012 Header: res.Header,
14013 })
14014 }
14015 if err != nil {
14016 return nil, err
14017 }
14018 defer googleapi.CloseBody(res)
14019 if err := googleapi.CheckResponse(res); err != nil {
14020 return nil, gensupport.WrapError(err)
14021 }
14022 ret := &GoogleLongrunningOperation{
14023 ServerResponse: googleapi.ServerResponse{
14024 Header: res.Header,
14025 HTTPStatusCode: res.StatusCode,
14026 },
14027 }
14028 target := &ret
14029 if err := gensupport.DecodeResponse(target, res); err != nil {
14030 return nil, err
14031 }
14032 return ret, nil
14033 }
14034
14035 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall struct {
14036 s *Service
14037 parent string
14038 urlParams_ gensupport.URLParams
14039 ifNoneMatch_ string
14040 ctx_ context.Context
14041 header_ http.Header
14042 }
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) List(parent string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
14053 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14054 c.parent = parent
14055 return c
14056 }
14057
14058
14059
14060
14061
14062 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
14063 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14064 return c
14065 }
14066
14067
14068
14069
14070
14071
14072
14073 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
14074 c.urlParams_.Set("pageToken", pageToken)
14075 return c
14076 }
14077
14078
14079
14080
14081 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
14082 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14083 return c
14084 }
14085
14086
14087
14088
14089 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
14090 c.ifNoneMatch_ = entityTag
14091 return c
14092 }
14093
14094
14095 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
14096 c.ctx_ = ctx
14097 return c
14098 }
14099
14100
14101
14102 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Header() http.Header {
14103 if c.header_ == nil {
14104 c.header_ = make(http.Header)
14105 }
14106 return c.header_
14107 }
14108
14109 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
14110 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14111 if c.ifNoneMatch_ != "" {
14112 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14113 }
14114 var body io.Reader = nil
14115 c.urlParams_.Set("alt", alt)
14116 c.urlParams_.Set("prettyPrint", "false")
14117 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents")
14118 urls += "?" + c.urlParams_.Encode()
14119 req, err := http.NewRequest("GET", urls, body)
14120 if err != nil {
14121 return nil, err
14122 }
14123 req.Header = reqHeaders
14124 googleapi.Expand(req.URL, map[string]string{
14125 "parent": c.parent,
14126 })
14127 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14128 }
14129
14130
14131
14132
14133
14134
14135
14136 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListDocumentsResponse, error) {
14137 gensupport.SetOptions(c.urlParams_, opts...)
14138 res, err := c.doRequest("json")
14139 if res != nil && res.StatusCode == http.StatusNotModified {
14140 if res.Body != nil {
14141 res.Body.Close()
14142 }
14143 return nil, gensupport.WrapError(&googleapi.Error{
14144 Code: res.StatusCode,
14145 Header: res.Header,
14146 })
14147 }
14148 if err != nil {
14149 return nil, err
14150 }
14151 defer googleapi.CloseBody(res)
14152 if err := googleapi.CheckResponse(res); err != nil {
14153 return nil, gensupport.WrapError(err)
14154 }
14155 ret := &GoogleCloudDiscoveryengineV1betaListDocumentsResponse{
14156 ServerResponse: googleapi.ServerResponse{
14157 Header: res.Header,
14158 HTTPStatusCode: res.StatusCode,
14159 },
14160 }
14161 target := &ret
14162 if err := gensupport.DecodeResponse(target, res); err != nil {
14163 return nil, err
14164 }
14165 return ret, nil
14166 }
14167
14168
14169
14170
14171 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListDocumentsResponse) error) error {
14172 c.ctx_ = ctx
14173 defer c.PageToken(c.urlParams_.Get("pageToken"))
14174 for {
14175 x, err := c.Do()
14176 if err != nil {
14177 return err
14178 }
14179 if err := f(x); err != nil {
14180 return err
14181 }
14182 if x.NextPageToken == "" {
14183 return nil
14184 }
14185 c.PageToken(x.NextPageToken)
14186 }
14187 }
14188
14189 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall struct {
14190 s *Service
14191 name string
14192 googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument
14193 urlParams_ gensupport.URLParams
14194 ctx_ context.Context
14195 header_ http.Header
14196 }
14197
14198
14199
14200
14201
14202
14203
14204 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Patch(name string, googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
14205 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14206 c.name = name
14207 c.googleclouddiscoveryenginev1betadocument = googleclouddiscoveryenginev1betadocument
14208 return c
14209 }
14210
14211
14212
14213 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
14214 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
14215 return c
14216 }
14217
14218
14219
14220
14221 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
14222 c.urlParams_.Set("updateMask", updateMask)
14223 return c
14224 }
14225
14226
14227
14228
14229 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
14230 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14231 return c
14232 }
14233
14234
14235 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
14236 c.ctx_ = ctx
14237 return c
14238 }
14239
14240
14241
14242 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Header() http.Header {
14243 if c.header_ == nil {
14244 c.header_ = make(http.Header)
14245 }
14246 return c.header_
14247 }
14248
14249 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
14250 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14251 var body io.Reader = nil
14252 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadocument)
14253 if err != nil {
14254 return nil, err
14255 }
14256 c.urlParams_.Set("alt", alt)
14257 c.urlParams_.Set("prettyPrint", "false")
14258 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
14259 urls += "?" + c.urlParams_.Encode()
14260 req, err := http.NewRequest("PATCH", urls, body)
14261 if err != nil {
14262 return nil, err
14263 }
14264 req.Header = reqHeaders
14265 googleapi.Expand(req.URL, map[string]string{
14266 "name": c.name,
14267 })
14268 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14269 }
14270
14271
14272
14273
14274
14275
14276
14277 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDocument, error) {
14278 gensupport.SetOptions(c.urlParams_, opts...)
14279 res, err := c.doRequest("json")
14280 if res != nil && res.StatusCode == http.StatusNotModified {
14281 if res.Body != nil {
14282 res.Body.Close()
14283 }
14284 return nil, gensupport.WrapError(&googleapi.Error{
14285 Code: res.StatusCode,
14286 Header: res.Header,
14287 })
14288 }
14289 if err != nil {
14290 return nil, err
14291 }
14292 defer googleapi.CloseBody(res)
14293 if err := googleapi.CheckResponse(res); err != nil {
14294 return nil, gensupport.WrapError(err)
14295 }
14296 ret := &GoogleCloudDiscoveryengineV1betaDocument{
14297 ServerResponse: googleapi.ServerResponse{
14298 Header: res.Header,
14299 HTTPStatusCode: res.StatusCode,
14300 },
14301 }
14302 target := &ret
14303 if err := gensupport.DecodeResponse(target, res); err != nil {
14304 return nil, err
14305 }
14306 return ret, nil
14307 }
14308
14309 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall struct {
14310 s *Service
14311 parent string
14312 googleclouddiscoveryenginev1betapurgedocumentsrequest *GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest
14313 urlParams_ gensupport.URLParams
14314 ctx_ context.Context
14315 header_ http.Header
14316 }
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Purge(parent string, googleclouddiscoveryenginev1betapurgedocumentsrequest *GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
14329 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14330 c.parent = parent
14331 c.googleclouddiscoveryenginev1betapurgedocumentsrequest = googleclouddiscoveryenginev1betapurgedocumentsrequest
14332 return c
14333 }
14334
14335
14336
14337
14338 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
14339 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14340 return c
14341 }
14342
14343
14344 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
14345 c.ctx_ = ctx
14346 return c
14347 }
14348
14349
14350
14351 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Header() http.Header {
14352 if c.header_ == nil {
14353 c.header_ = make(http.Header)
14354 }
14355 return c.header_
14356 }
14357
14358 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) doRequest(alt string) (*http.Response, error) {
14359 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14360 var body io.Reader = nil
14361 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betapurgedocumentsrequest)
14362 if err != nil {
14363 return nil, err
14364 }
14365 c.urlParams_.Set("alt", alt)
14366 c.urlParams_.Set("prettyPrint", "false")
14367 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents:purge")
14368 urls += "?" + c.urlParams_.Encode()
14369 req, err := http.NewRequest("POST", urls, body)
14370 if err != nil {
14371 return nil, err
14372 }
14373 req.Header = reqHeaders
14374 googleapi.Expand(req.URL, map[string]string{
14375 "parent": c.parent,
14376 })
14377 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14378 }
14379
14380
14381
14382
14383
14384
14385
14386 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14387 gensupport.SetOptions(c.urlParams_, opts...)
14388 res, err := c.doRequest("json")
14389 if res != nil && res.StatusCode == http.StatusNotModified {
14390 if res.Body != nil {
14391 res.Body.Close()
14392 }
14393 return nil, gensupport.WrapError(&googleapi.Error{
14394 Code: res.StatusCode,
14395 Header: res.Header,
14396 })
14397 }
14398 if err != nil {
14399 return nil, err
14400 }
14401 defer googleapi.CloseBody(res)
14402 if err := googleapi.CheckResponse(res); err != nil {
14403 return nil, gensupport.WrapError(err)
14404 }
14405 ret := &GoogleLongrunningOperation{
14406 ServerResponse: googleapi.ServerResponse{
14407 Header: res.Header,
14408 HTTPStatusCode: res.StatusCode,
14409 },
14410 }
14411 target := &ret
14412 if err := gensupport.DecodeResponse(target, res); err != nil {
14413 return nil, err
14414 }
14415 return ret, nil
14416 }
14417
14418 type ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall struct {
14419 s *Service
14420 name string
14421 googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
14422 urlParams_ gensupport.URLParams
14423 ctx_ context.Context
14424 header_ http.Header
14425 }
14426
14427
14428
14429
14430
14431
14432
14433
14434
14435
14436
14437
14438 func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
14439 c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14440 c.name = name
14441 c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
14442 return c
14443 }
14444
14445
14446
14447
14448 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
14449 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14450 return c
14451 }
14452
14453
14454 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
14455 c.ctx_ = ctx
14456 return c
14457 }
14458
14459
14460
14461 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Header() http.Header {
14462 if c.header_ == nil {
14463 c.header_ = make(http.Header)
14464 }
14465 return c.header_
14466 }
14467
14468 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
14469 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14470 var body io.Reader = nil
14471 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
14472 if err != nil {
14473 return nil, err
14474 }
14475 c.urlParams_.Set("alt", alt)
14476 c.urlParams_.Set("prettyPrint", "false")
14477 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:cancel")
14478 urls += "?" + c.urlParams_.Encode()
14479 req, err := http.NewRequest("POST", urls, body)
14480 if err != nil {
14481 return nil, err
14482 }
14483 req.Header = reqHeaders
14484 googleapi.Expand(req.URL, map[string]string{
14485 "name": c.name,
14486 })
14487 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14488 }
14489
14490
14491
14492
14493
14494
14495
14496 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
14497 gensupport.SetOptions(c.urlParams_, opts...)
14498 res, err := c.doRequest("json")
14499 if res != nil && res.StatusCode == http.StatusNotModified {
14500 if res.Body != nil {
14501 res.Body.Close()
14502 }
14503 return nil, gensupport.WrapError(&googleapi.Error{
14504 Code: res.StatusCode,
14505 Header: res.Header,
14506 })
14507 }
14508 if err != nil {
14509 return nil, err
14510 }
14511 defer googleapi.CloseBody(res)
14512 if err := googleapi.CheckResponse(res); err != nil {
14513 return nil, gensupport.WrapError(err)
14514 }
14515 ret := &GoogleProtobufEmpty{
14516 ServerResponse: googleapi.ServerResponse{
14517 Header: res.Header,
14518 HTTPStatusCode: res.StatusCode,
14519 },
14520 }
14521 target := &ret
14522 if err := gensupport.DecodeResponse(target, res); err != nil {
14523 return nil, err
14524 }
14525 return ret, nil
14526 }
14527
14528 type ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall struct {
14529 s *Service
14530 name string
14531 urlParams_ gensupport.URLParams
14532 ifNoneMatch_ string
14533 ctx_ context.Context
14534 header_ http.Header
14535 }
14536
14537
14538
14539
14540
14541
14542 func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
14543 c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14544 c.name = name
14545 return c
14546 }
14547
14548
14549
14550
14551 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
14552 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14553 return c
14554 }
14555
14556
14557
14558
14559 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
14560 c.ifNoneMatch_ = entityTag
14561 return c
14562 }
14563
14564
14565 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
14566 c.ctx_ = ctx
14567 return c
14568 }
14569
14570
14571
14572 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Header() http.Header {
14573 if c.header_ == nil {
14574 c.header_ = make(http.Header)
14575 }
14576 return c.header_
14577 }
14578
14579 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
14580 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14581 if c.ifNoneMatch_ != "" {
14582 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14583 }
14584 var body io.Reader = nil
14585 c.urlParams_.Set("alt", alt)
14586 c.urlParams_.Set("prettyPrint", "false")
14587 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
14588 urls += "?" + c.urlParams_.Encode()
14589 req, err := http.NewRequest("GET", urls, body)
14590 if err != nil {
14591 return nil, err
14592 }
14593 req.Header = reqHeaders
14594 googleapi.Expand(req.URL, map[string]string{
14595 "name": c.name,
14596 })
14597 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14598 }
14599
14600
14601
14602
14603
14604
14605
14606 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14607 gensupport.SetOptions(c.urlParams_, opts...)
14608 res, err := c.doRequest("json")
14609 if res != nil && res.StatusCode == http.StatusNotModified {
14610 if res.Body != nil {
14611 res.Body.Close()
14612 }
14613 return nil, gensupport.WrapError(&googleapi.Error{
14614 Code: res.StatusCode,
14615 Header: res.Header,
14616 })
14617 }
14618 if err != nil {
14619 return nil, err
14620 }
14621 defer googleapi.CloseBody(res)
14622 if err := googleapi.CheckResponse(res); err != nil {
14623 return nil, gensupport.WrapError(err)
14624 }
14625 ret := &GoogleLongrunningOperation{
14626 ServerResponse: googleapi.ServerResponse{
14627 Header: res.Header,
14628 HTTPStatusCode: res.StatusCode,
14629 },
14630 }
14631 target := &ret
14632 if err := gensupport.DecodeResponse(target, res); err != nil {
14633 return nil, err
14634 }
14635 return ret, nil
14636 }
14637
14638 type ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall struct {
14639 s *Service
14640 name string
14641 urlParams_ gensupport.URLParams
14642 ifNoneMatch_ string
14643 ctx_ context.Context
14644 header_ http.Header
14645 }
14646
14647
14648
14649
14650
14651 func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
14652 c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14653 c.name = name
14654 return c
14655 }
14656
14657
14658 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
14659 c.urlParams_.Set("filter", filter)
14660 return c
14661 }
14662
14663
14664
14665 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
14666 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14667 return c
14668 }
14669
14670
14671
14672 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
14673 c.urlParams_.Set("pageToken", pageToken)
14674 return c
14675 }
14676
14677
14678
14679
14680 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
14681 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14682 return c
14683 }
14684
14685
14686
14687
14688 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
14689 c.ifNoneMatch_ = entityTag
14690 return c
14691 }
14692
14693
14694 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
14695 c.ctx_ = ctx
14696 return c
14697 }
14698
14699
14700
14701 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Header() http.Header {
14702 if c.header_ == nil {
14703 c.header_ = make(http.Header)
14704 }
14705 return c.header_
14706 }
14707
14708 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) doRequest(alt string) (*http.Response, error) {
14709 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14710 if c.ifNoneMatch_ != "" {
14711 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14712 }
14713 var body io.Reader = nil
14714 c.urlParams_.Set("alt", alt)
14715 c.urlParams_.Set("prettyPrint", "false")
14716 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
14717 urls += "?" + c.urlParams_.Encode()
14718 req, err := http.NewRequest("GET", urls, body)
14719 if err != nil {
14720 return nil, err
14721 }
14722 req.Header = reqHeaders
14723 googleapi.Expand(req.URL, map[string]string{
14724 "name": c.name,
14725 })
14726 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14727 }
14728
14729
14730
14731
14732
14733
14734
14735 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
14736 gensupport.SetOptions(c.urlParams_, opts...)
14737 res, err := c.doRequest("json")
14738 if res != nil && res.StatusCode == http.StatusNotModified {
14739 if res.Body != nil {
14740 res.Body.Close()
14741 }
14742 return nil, gensupport.WrapError(&googleapi.Error{
14743 Code: res.StatusCode,
14744 Header: res.Header,
14745 })
14746 }
14747 if err != nil {
14748 return nil, err
14749 }
14750 defer googleapi.CloseBody(res)
14751 if err := googleapi.CheckResponse(res); err != nil {
14752 return nil, gensupport.WrapError(err)
14753 }
14754 ret := &GoogleLongrunningListOperationsResponse{
14755 ServerResponse: googleapi.ServerResponse{
14756 Header: res.Header,
14757 HTTPStatusCode: res.StatusCode,
14758 },
14759 }
14760 target := &ret
14761 if err := gensupport.DecodeResponse(target, res); err != nil {
14762 return nil, err
14763 }
14764 return ret, nil
14765 }
14766
14767
14768
14769
14770 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
14771 c.ctx_ = ctx
14772 defer c.PageToken(c.urlParams_.Get("pageToken"))
14773 for {
14774 x, err := c.Do()
14775 if err != nil {
14776 return err
14777 }
14778 if err := f(x); err != nil {
14779 return err
14780 }
14781 if x.NextPageToken == "" {
14782 return nil
14783 }
14784 c.PageToken(x.NextPageToken)
14785 }
14786 }
14787
14788 type ProjectsLocationsCollectionsDataStoresConversationsConverseCall struct {
14789 s *Service
14790 name string
14791 googleclouddiscoveryenginev1betaconverseconversationrequest *GoogleCloudDiscoveryengineV1betaConverseConversationRequest
14792 urlParams_ gensupport.URLParams
14793 ctx_ context.Context
14794 header_ http.Header
14795 }
14796
14797
14798
14799
14800
14801
14802
14803
14804
14805
14806 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Converse(name string, googleclouddiscoveryenginev1betaconverseconversationrequest *GoogleCloudDiscoveryengineV1betaConverseConversationRequest) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
14807 c := &ProjectsLocationsCollectionsDataStoresConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14808 c.name = name
14809 c.googleclouddiscoveryenginev1betaconverseconversationrequest = googleclouddiscoveryenginev1betaconverseconversationrequest
14810 return c
14811 }
14812
14813
14814
14815
14816 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
14817 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14818 return c
14819 }
14820
14821
14822 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
14823 c.ctx_ = ctx
14824 return c
14825 }
14826
14827
14828
14829 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Header() http.Header {
14830 if c.header_ == nil {
14831 c.header_ = make(http.Header)
14832 }
14833 return c.header_
14834 }
14835
14836 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
14837 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14838 var body io.Reader = nil
14839 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconverseconversationrequest)
14840 if err != nil {
14841 return nil, err
14842 }
14843 c.urlParams_.Set("alt", alt)
14844 c.urlParams_.Set("prettyPrint", "false")
14845 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:converse")
14846 urls += "?" + c.urlParams_.Encode()
14847 req, err := http.NewRequest("POST", urls, body)
14848 if err != nil {
14849 return nil, err
14850 }
14851 req.Header = reqHeaders
14852 googleapi.Expand(req.URL, map[string]string{
14853 "name": c.name,
14854 })
14855 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14856 }
14857
14858
14859
14860
14861
14862
14863
14864 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConverseConversationResponse, error) {
14865 gensupport.SetOptions(c.urlParams_, opts...)
14866 res, err := c.doRequest("json")
14867 if res != nil && res.StatusCode == http.StatusNotModified {
14868 if res.Body != nil {
14869 res.Body.Close()
14870 }
14871 return nil, gensupport.WrapError(&googleapi.Error{
14872 Code: res.StatusCode,
14873 Header: res.Header,
14874 })
14875 }
14876 if err != nil {
14877 return nil, err
14878 }
14879 defer googleapi.CloseBody(res)
14880 if err := googleapi.CheckResponse(res); err != nil {
14881 return nil, gensupport.WrapError(err)
14882 }
14883 ret := &GoogleCloudDiscoveryengineV1betaConverseConversationResponse{
14884 ServerResponse: googleapi.ServerResponse{
14885 Header: res.Header,
14886 HTTPStatusCode: res.StatusCode,
14887 },
14888 }
14889 target := &ret
14890 if err := gensupport.DecodeResponse(target, res); err != nil {
14891 return nil, err
14892 }
14893 return ret, nil
14894 }
14895
14896 type ProjectsLocationsCollectionsDataStoresConversationsCreateCall struct {
14897 s *Service
14898 parent string
14899 googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation
14900 urlParams_ gensupport.URLParams
14901 ctx_ context.Context
14902 header_ http.Header
14903 }
14904
14905
14906
14907
14908
14909
14910
14911 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Create(parent string, googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
14912 c := &ProjectsLocationsCollectionsDataStoresConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14913 c.parent = parent
14914 c.googleclouddiscoveryenginev1betaconversation = googleclouddiscoveryenginev1betaconversation
14915 return c
14916 }
14917
14918
14919
14920
14921 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
14922 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14923 return c
14924 }
14925
14926
14927 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
14928 c.ctx_ = ctx
14929 return c
14930 }
14931
14932
14933
14934 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Header() http.Header {
14935 if c.header_ == nil {
14936 c.header_ = make(http.Header)
14937 }
14938 return c.header_
14939 }
14940
14941 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
14942 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14943 var body io.Reader = nil
14944 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconversation)
14945 if err != nil {
14946 return nil, err
14947 }
14948 c.urlParams_.Set("alt", alt)
14949 c.urlParams_.Set("prettyPrint", "false")
14950 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/conversations")
14951 urls += "?" + c.urlParams_.Encode()
14952 req, err := http.NewRequest("POST", urls, body)
14953 if err != nil {
14954 return nil, err
14955 }
14956 req.Header = reqHeaders
14957 googleapi.Expand(req.URL, map[string]string{
14958 "parent": c.parent,
14959 })
14960 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14961 }
14962
14963
14964
14965
14966
14967
14968
14969 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
14970 gensupport.SetOptions(c.urlParams_, opts...)
14971 res, err := c.doRequest("json")
14972 if res != nil && res.StatusCode == http.StatusNotModified {
14973 if res.Body != nil {
14974 res.Body.Close()
14975 }
14976 return nil, gensupport.WrapError(&googleapi.Error{
14977 Code: res.StatusCode,
14978 Header: res.Header,
14979 })
14980 }
14981 if err != nil {
14982 return nil, err
14983 }
14984 defer googleapi.CloseBody(res)
14985 if err := googleapi.CheckResponse(res); err != nil {
14986 return nil, gensupport.WrapError(err)
14987 }
14988 ret := &GoogleCloudDiscoveryengineV1betaConversation{
14989 ServerResponse: googleapi.ServerResponse{
14990 Header: res.Header,
14991 HTTPStatusCode: res.StatusCode,
14992 },
14993 }
14994 target := &ret
14995 if err := gensupport.DecodeResponse(target, res); err != nil {
14996 return nil, err
14997 }
14998 return ret, nil
14999 }
15000
15001 type ProjectsLocationsCollectionsDataStoresConversationsDeleteCall struct {
15002 s *Service
15003 name string
15004 urlParams_ gensupport.URLParams
15005 ctx_ context.Context
15006 header_ http.Header
15007 }
15008
15009
15010
15011
15012
15013
15014
15015 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
15016 c := &ProjectsLocationsCollectionsDataStoresConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15017 c.name = name
15018 return c
15019 }
15020
15021
15022
15023
15024 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
15025 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15026 return c
15027 }
15028
15029
15030 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
15031 c.ctx_ = ctx
15032 return c
15033 }
15034
15035
15036
15037 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Header() http.Header {
15038 if c.header_ == nil {
15039 c.header_ = make(http.Header)
15040 }
15041 return c.header_
15042 }
15043
15044 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
15045 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15046 var body io.Reader = nil
15047 c.urlParams_.Set("alt", alt)
15048 c.urlParams_.Set("prettyPrint", "false")
15049 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
15050 urls += "?" + c.urlParams_.Encode()
15051 req, err := http.NewRequest("DELETE", urls, body)
15052 if err != nil {
15053 return nil, err
15054 }
15055 req.Header = reqHeaders
15056 googleapi.Expand(req.URL, map[string]string{
15057 "name": c.name,
15058 })
15059 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15060 }
15061
15062
15063
15064
15065
15066
15067
15068 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
15069 gensupport.SetOptions(c.urlParams_, opts...)
15070 res, err := c.doRequest("json")
15071 if res != nil && res.StatusCode == http.StatusNotModified {
15072 if res.Body != nil {
15073 res.Body.Close()
15074 }
15075 return nil, gensupport.WrapError(&googleapi.Error{
15076 Code: res.StatusCode,
15077 Header: res.Header,
15078 })
15079 }
15080 if err != nil {
15081 return nil, err
15082 }
15083 defer googleapi.CloseBody(res)
15084 if err := googleapi.CheckResponse(res); err != nil {
15085 return nil, gensupport.WrapError(err)
15086 }
15087 ret := &GoogleProtobufEmpty{
15088 ServerResponse: googleapi.ServerResponse{
15089 Header: res.Header,
15090 HTTPStatusCode: res.StatusCode,
15091 },
15092 }
15093 target := &ret
15094 if err := gensupport.DecodeResponse(target, res); err != nil {
15095 return nil, err
15096 }
15097 return ret, nil
15098 }
15099
15100 type ProjectsLocationsCollectionsDataStoresConversationsGetCall struct {
15101 s *Service
15102 name string
15103 urlParams_ gensupport.URLParams
15104 ifNoneMatch_ string
15105 ctx_ context.Context
15106 header_ http.Header
15107 }
15108
15109
15110
15111
15112
15113
15114 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
15115 c := &ProjectsLocationsCollectionsDataStoresConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15116 c.name = name
15117 return c
15118 }
15119
15120
15121
15122
15123 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
15124 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15125 return c
15126 }
15127
15128
15129
15130
15131 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
15132 c.ifNoneMatch_ = entityTag
15133 return c
15134 }
15135
15136
15137 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
15138 c.ctx_ = ctx
15139 return c
15140 }
15141
15142
15143
15144 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Header() http.Header {
15145 if c.header_ == nil {
15146 c.header_ = make(http.Header)
15147 }
15148 return c.header_
15149 }
15150
15151 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) doRequest(alt string) (*http.Response, error) {
15152 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15153 if c.ifNoneMatch_ != "" {
15154 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15155 }
15156 var body io.Reader = nil
15157 c.urlParams_.Set("alt", alt)
15158 c.urlParams_.Set("prettyPrint", "false")
15159 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
15160 urls += "?" + c.urlParams_.Encode()
15161 req, err := http.NewRequest("GET", urls, body)
15162 if err != nil {
15163 return nil, err
15164 }
15165 req.Header = reqHeaders
15166 googleapi.Expand(req.URL, map[string]string{
15167 "name": c.name,
15168 })
15169 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15170 }
15171
15172
15173
15174
15175
15176
15177
15178 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
15179 gensupport.SetOptions(c.urlParams_, opts...)
15180 res, err := c.doRequest("json")
15181 if res != nil && res.StatusCode == http.StatusNotModified {
15182 if res.Body != nil {
15183 res.Body.Close()
15184 }
15185 return nil, gensupport.WrapError(&googleapi.Error{
15186 Code: res.StatusCode,
15187 Header: res.Header,
15188 })
15189 }
15190 if err != nil {
15191 return nil, err
15192 }
15193 defer googleapi.CloseBody(res)
15194 if err := googleapi.CheckResponse(res); err != nil {
15195 return nil, gensupport.WrapError(err)
15196 }
15197 ret := &GoogleCloudDiscoveryengineV1betaConversation{
15198 ServerResponse: googleapi.ServerResponse{
15199 Header: res.Header,
15200 HTTPStatusCode: res.StatusCode,
15201 },
15202 }
15203 target := &ret
15204 if err := gensupport.DecodeResponse(target, res); err != nil {
15205 return nil, err
15206 }
15207 return ret, nil
15208 }
15209
15210 type ProjectsLocationsCollectionsDataStoresConversationsListCall struct {
15211 s *Service
15212 parent string
15213 urlParams_ gensupport.URLParams
15214 ifNoneMatch_ string
15215 ctx_ context.Context
15216 header_ http.Header
15217 }
15218
15219
15220
15221
15222
15223
15224 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) List(parent string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
15225 c := &ProjectsLocationsCollectionsDataStoresConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15226 c.parent = parent
15227 return c
15228 }
15229
15230
15231
15232
15233 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
15234 c.urlParams_.Set("filter", filter)
15235 return c
15236 }
15237
15238
15239
15240
15241
15242 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
15243 c.urlParams_.Set("orderBy", orderBy)
15244 return c
15245 }
15246
15247
15248
15249 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
15250 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15251 return c
15252 }
15253
15254
15255
15256
15257 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
15258 c.urlParams_.Set("pageToken", pageToken)
15259 return c
15260 }
15261
15262
15263
15264
15265 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
15266 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15267 return c
15268 }
15269
15270
15271
15272
15273 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
15274 c.ifNoneMatch_ = entityTag
15275 return c
15276 }
15277
15278
15279 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
15280 c.ctx_ = ctx
15281 return c
15282 }
15283
15284
15285
15286 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Header() http.Header {
15287 if c.header_ == nil {
15288 c.header_ = make(http.Header)
15289 }
15290 return c.header_
15291 }
15292
15293 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) doRequest(alt string) (*http.Response, error) {
15294 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15295 if c.ifNoneMatch_ != "" {
15296 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15297 }
15298 var body io.Reader = nil
15299 c.urlParams_.Set("alt", alt)
15300 c.urlParams_.Set("prettyPrint", "false")
15301 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/conversations")
15302 urls += "?" + c.urlParams_.Encode()
15303 req, err := http.NewRequest("GET", urls, body)
15304 if err != nil {
15305 return nil, err
15306 }
15307 req.Header = reqHeaders
15308 googleapi.Expand(req.URL, map[string]string{
15309 "parent": c.parent,
15310 })
15311 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15312 }
15313
15314
15315
15316
15317
15318
15319
15320 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListConversationsResponse, error) {
15321 gensupport.SetOptions(c.urlParams_, opts...)
15322 res, err := c.doRequest("json")
15323 if res != nil && res.StatusCode == http.StatusNotModified {
15324 if res.Body != nil {
15325 res.Body.Close()
15326 }
15327 return nil, gensupport.WrapError(&googleapi.Error{
15328 Code: res.StatusCode,
15329 Header: res.Header,
15330 })
15331 }
15332 if err != nil {
15333 return nil, err
15334 }
15335 defer googleapi.CloseBody(res)
15336 if err := googleapi.CheckResponse(res); err != nil {
15337 return nil, gensupport.WrapError(err)
15338 }
15339 ret := &GoogleCloudDiscoveryengineV1betaListConversationsResponse{
15340 ServerResponse: googleapi.ServerResponse{
15341 Header: res.Header,
15342 HTTPStatusCode: res.StatusCode,
15343 },
15344 }
15345 target := &ret
15346 if err := gensupport.DecodeResponse(target, res); err != nil {
15347 return nil, err
15348 }
15349 return ret, nil
15350 }
15351
15352
15353
15354
15355 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListConversationsResponse) error) error {
15356 c.ctx_ = ctx
15357 defer c.PageToken(c.urlParams_.Get("pageToken"))
15358 for {
15359 x, err := c.Do()
15360 if err != nil {
15361 return err
15362 }
15363 if err := f(x); err != nil {
15364 return err
15365 }
15366 if x.NextPageToken == "" {
15367 return nil
15368 }
15369 c.PageToken(x.NextPageToken)
15370 }
15371 }
15372
15373 type ProjectsLocationsCollectionsDataStoresConversationsPatchCall struct {
15374 s *Service
15375 name string
15376 googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation
15377 urlParams_ gensupport.URLParams
15378 ctx_ context.Context
15379 header_ http.Header
15380 }
15381
15382
15383
15384
15385
15386
15387
15388
15389
15390 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Patch(name string, googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
15391 c := &ProjectsLocationsCollectionsDataStoresConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15392 c.name = name
15393 c.googleclouddiscoveryenginev1betaconversation = googleclouddiscoveryenginev1betaconversation
15394 return c
15395 }
15396
15397
15398
15399
15400 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
15401 c.urlParams_.Set("updateMask", updateMask)
15402 return c
15403 }
15404
15405
15406
15407
15408 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
15409 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15410 return c
15411 }
15412
15413
15414 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
15415 c.ctx_ = ctx
15416 return c
15417 }
15418
15419
15420
15421 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Header() http.Header {
15422 if c.header_ == nil {
15423 c.header_ = make(http.Header)
15424 }
15425 return c.header_
15426 }
15427
15428 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
15429 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15430 var body io.Reader = nil
15431 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconversation)
15432 if err != nil {
15433 return nil, err
15434 }
15435 c.urlParams_.Set("alt", alt)
15436 c.urlParams_.Set("prettyPrint", "false")
15437 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
15438 urls += "?" + c.urlParams_.Encode()
15439 req, err := http.NewRequest("PATCH", urls, body)
15440 if err != nil {
15441 return nil, err
15442 }
15443 req.Header = reqHeaders
15444 googleapi.Expand(req.URL, map[string]string{
15445 "name": c.name,
15446 })
15447 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15448 }
15449
15450
15451
15452
15453
15454
15455
15456 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
15457 gensupport.SetOptions(c.urlParams_, opts...)
15458 res, err := c.doRequest("json")
15459 if res != nil && res.StatusCode == http.StatusNotModified {
15460 if res.Body != nil {
15461 res.Body.Close()
15462 }
15463 return nil, gensupport.WrapError(&googleapi.Error{
15464 Code: res.StatusCode,
15465 Header: res.Header,
15466 })
15467 }
15468 if err != nil {
15469 return nil, err
15470 }
15471 defer googleapi.CloseBody(res)
15472 if err := googleapi.CheckResponse(res); err != nil {
15473 return nil, gensupport.WrapError(err)
15474 }
15475 ret := &GoogleCloudDiscoveryengineV1betaConversation{
15476 ServerResponse: googleapi.ServerResponse{
15477 Header: res.Header,
15478 HTTPStatusCode: res.StatusCode,
15479 },
15480 }
15481 target := &ret
15482 if err := gensupport.DecodeResponse(target, res); err != nil {
15483 return nil, err
15484 }
15485 return ret, nil
15486 }
15487
15488 type ProjectsLocationsCollectionsDataStoresCustomModelsListCall struct {
15489 s *Service
15490 dataStore string
15491 urlParams_ gensupport.URLParams
15492 ifNoneMatch_ string
15493 ctx_ context.Context
15494 header_ http.Header
15495 }
15496
15497
15498
15499
15500
15501
15502
15503 func (r *ProjectsLocationsCollectionsDataStoresCustomModelsService) List(dataStore string) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
15504 c := &ProjectsLocationsCollectionsDataStoresCustomModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15505 c.dataStore = dataStore
15506 return c
15507 }
15508
15509
15510
15511
15512 func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
15513 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15514 return c
15515 }
15516
15517
15518
15519
15520 func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
15521 c.ifNoneMatch_ = entityTag
15522 return c
15523 }
15524
15525
15526 func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
15527 c.ctx_ = ctx
15528 return c
15529 }
15530
15531
15532
15533 func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Header() http.Header {
15534 if c.header_ == nil {
15535 c.header_ = make(http.Header)
15536 }
15537 return c.header_
15538 }
15539
15540 func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) doRequest(alt string) (*http.Response, error) {
15541 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15542 if c.ifNoneMatch_ != "" {
15543 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15544 }
15545 var body io.Reader = nil
15546 c.urlParams_.Set("alt", alt)
15547 c.urlParams_.Set("prettyPrint", "false")
15548 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+dataStore}/customModels")
15549 urls += "?" + c.urlParams_.Encode()
15550 req, err := http.NewRequest("GET", urls, body)
15551 if err != nil {
15552 return nil, err
15553 }
15554 req.Header = reqHeaders
15555 googleapi.Expand(req.URL, map[string]string{
15556 "dataStore": c.dataStore,
15557 })
15558 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15559 }
15560
15561
15562
15563
15564
15565
15566
15567 func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListCustomModelsResponse, error) {
15568 gensupport.SetOptions(c.urlParams_, opts...)
15569 res, err := c.doRequest("json")
15570 if res != nil && res.StatusCode == http.StatusNotModified {
15571 if res.Body != nil {
15572 res.Body.Close()
15573 }
15574 return nil, gensupport.WrapError(&googleapi.Error{
15575 Code: res.StatusCode,
15576 Header: res.Header,
15577 })
15578 }
15579 if err != nil {
15580 return nil, err
15581 }
15582 defer googleapi.CloseBody(res)
15583 if err := googleapi.CheckResponse(res); err != nil {
15584 return nil, gensupport.WrapError(err)
15585 }
15586 ret := &GoogleCloudDiscoveryengineV1betaListCustomModelsResponse{
15587 ServerResponse: googleapi.ServerResponse{
15588 Header: res.Header,
15589 HTTPStatusCode: res.StatusCode,
15590 },
15591 }
15592 target := &ret
15593 if err := gensupport.DecodeResponse(target, res); err != nil {
15594 return nil, err
15595 }
15596 return ret, nil
15597 }
15598
15599 type ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall struct {
15600 s *Service
15601 name string
15602 urlParams_ gensupport.URLParams
15603 ifNoneMatch_ string
15604 ctx_ context.Context
15605 header_ http.Header
15606 }
15607
15608
15609
15610
15611
15612
15613 func (r *ProjectsLocationsCollectionsDataStoresModelsOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
15614 c := &ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15615 c.name = name
15616 return c
15617 }
15618
15619
15620
15621
15622 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
15623 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15624 return c
15625 }
15626
15627
15628
15629
15630 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
15631 c.ifNoneMatch_ = entityTag
15632 return c
15633 }
15634
15635
15636 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
15637 c.ctx_ = ctx
15638 return c
15639 }
15640
15641
15642
15643 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Header() http.Header {
15644 if c.header_ == nil {
15645 c.header_ = make(http.Header)
15646 }
15647 return c.header_
15648 }
15649
15650 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
15651 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15652 if c.ifNoneMatch_ != "" {
15653 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15654 }
15655 var body io.Reader = nil
15656 c.urlParams_.Set("alt", alt)
15657 c.urlParams_.Set("prettyPrint", "false")
15658 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
15659 urls += "?" + c.urlParams_.Encode()
15660 req, err := http.NewRequest("GET", urls, body)
15661 if err != nil {
15662 return nil, err
15663 }
15664 req.Header = reqHeaders
15665 googleapi.Expand(req.URL, map[string]string{
15666 "name": c.name,
15667 })
15668 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15669 }
15670
15671
15672
15673
15674
15675
15676
15677 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15678 gensupport.SetOptions(c.urlParams_, opts...)
15679 res, err := c.doRequest("json")
15680 if res != nil && res.StatusCode == http.StatusNotModified {
15681 if res.Body != nil {
15682 res.Body.Close()
15683 }
15684 return nil, gensupport.WrapError(&googleapi.Error{
15685 Code: res.StatusCode,
15686 Header: res.Header,
15687 })
15688 }
15689 if err != nil {
15690 return nil, err
15691 }
15692 defer googleapi.CloseBody(res)
15693 if err := googleapi.CheckResponse(res); err != nil {
15694 return nil, gensupport.WrapError(err)
15695 }
15696 ret := &GoogleLongrunningOperation{
15697 ServerResponse: googleapi.ServerResponse{
15698 Header: res.Header,
15699 HTTPStatusCode: res.StatusCode,
15700 },
15701 }
15702 target := &ret
15703 if err := gensupport.DecodeResponse(target, res); err != nil {
15704 return nil, err
15705 }
15706 return ret, nil
15707 }
15708
15709 type ProjectsLocationsCollectionsDataStoresModelsOperationsListCall struct {
15710 s *Service
15711 name string
15712 urlParams_ gensupport.URLParams
15713 ifNoneMatch_ string
15714 ctx_ context.Context
15715 header_ http.Header
15716 }
15717
15718
15719
15720
15721
15722 func (r *ProjectsLocationsCollectionsDataStoresModelsOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
15723 c := &ProjectsLocationsCollectionsDataStoresModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15724 c.name = name
15725 return c
15726 }
15727
15728
15729 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
15730 c.urlParams_.Set("filter", filter)
15731 return c
15732 }
15733
15734
15735
15736 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
15737 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15738 return c
15739 }
15740
15741
15742
15743 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
15744 c.urlParams_.Set("pageToken", pageToken)
15745 return c
15746 }
15747
15748
15749
15750
15751 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
15752 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15753 return c
15754 }
15755
15756
15757
15758
15759 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
15760 c.ifNoneMatch_ = entityTag
15761 return c
15762 }
15763
15764
15765 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
15766 c.ctx_ = ctx
15767 return c
15768 }
15769
15770
15771
15772 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Header() http.Header {
15773 if c.header_ == nil {
15774 c.header_ = make(http.Header)
15775 }
15776 return c.header_
15777 }
15778
15779 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) doRequest(alt string) (*http.Response, error) {
15780 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15781 if c.ifNoneMatch_ != "" {
15782 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15783 }
15784 var body io.Reader = nil
15785 c.urlParams_.Set("alt", alt)
15786 c.urlParams_.Set("prettyPrint", "false")
15787 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
15788 urls += "?" + c.urlParams_.Encode()
15789 req, err := http.NewRequest("GET", urls, body)
15790 if err != nil {
15791 return nil, err
15792 }
15793 req.Header = reqHeaders
15794 googleapi.Expand(req.URL, map[string]string{
15795 "name": c.name,
15796 })
15797 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15798 }
15799
15800
15801
15802
15803
15804
15805
15806 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
15807 gensupport.SetOptions(c.urlParams_, opts...)
15808 res, err := c.doRequest("json")
15809 if res != nil && res.StatusCode == http.StatusNotModified {
15810 if res.Body != nil {
15811 res.Body.Close()
15812 }
15813 return nil, gensupport.WrapError(&googleapi.Error{
15814 Code: res.StatusCode,
15815 Header: res.Header,
15816 })
15817 }
15818 if err != nil {
15819 return nil, err
15820 }
15821 defer googleapi.CloseBody(res)
15822 if err := googleapi.CheckResponse(res); err != nil {
15823 return nil, gensupport.WrapError(err)
15824 }
15825 ret := &GoogleLongrunningListOperationsResponse{
15826 ServerResponse: googleapi.ServerResponse{
15827 Header: res.Header,
15828 HTTPStatusCode: res.StatusCode,
15829 },
15830 }
15831 target := &ret
15832 if err := gensupport.DecodeResponse(target, res); err != nil {
15833 return nil, err
15834 }
15835 return ret, nil
15836 }
15837
15838
15839
15840
15841 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
15842 c.ctx_ = ctx
15843 defer c.PageToken(c.urlParams_.Get("pageToken"))
15844 for {
15845 x, err := c.Do()
15846 if err != nil {
15847 return err
15848 }
15849 if err := f(x); err != nil {
15850 return err
15851 }
15852 if x.NextPageToken == "" {
15853 return nil
15854 }
15855 c.PageToken(x.NextPageToken)
15856 }
15857 }
15858
15859 type ProjectsLocationsCollectionsDataStoresOperationsGetCall struct {
15860 s *Service
15861 name string
15862 urlParams_ gensupport.URLParams
15863 ifNoneMatch_ string
15864 ctx_ context.Context
15865 header_ http.Header
15866 }
15867
15868
15869
15870
15871
15872
15873 func (r *ProjectsLocationsCollectionsDataStoresOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
15874 c := &ProjectsLocationsCollectionsDataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15875 c.name = name
15876 return c
15877 }
15878
15879
15880
15881
15882 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
15883 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15884 return c
15885 }
15886
15887
15888
15889
15890 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
15891 c.ifNoneMatch_ = entityTag
15892 return c
15893 }
15894
15895
15896 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
15897 c.ctx_ = ctx
15898 return c
15899 }
15900
15901
15902
15903 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Header() http.Header {
15904 if c.header_ == nil {
15905 c.header_ = make(http.Header)
15906 }
15907 return c.header_
15908 }
15909
15910 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) {
15911 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15912 if c.ifNoneMatch_ != "" {
15913 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15914 }
15915 var body io.Reader = nil
15916 c.urlParams_.Set("alt", alt)
15917 c.urlParams_.Set("prettyPrint", "false")
15918 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
15919 urls += "?" + c.urlParams_.Encode()
15920 req, err := http.NewRequest("GET", urls, body)
15921 if err != nil {
15922 return nil, err
15923 }
15924 req.Header = reqHeaders
15925 googleapi.Expand(req.URL, map[string]string{
15926 "name": c.name,
15927 })
15928 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15929 }
15930
15931
15932
15933
15934
15935
15936
15937 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15938 gensupport.SetOptions(c.urlParams_, opts...)
15939 res, err := c.doRequest("json")
15940 if res != nil && res.StatusCode == http.StatusNotModified {
15941 if res.Body != nil {
15942 res.Body.Close()
15943 }
15944 return nil, gensupport.WrapError(&googleapi.Error{
15945 Code: res.StatusCode,
15946 Header: res.Header,
15947 })
15948 }
15949 if err != nil {
15950 return nil, err
15951 }
15952 defer googleapi.CloseBody(res)
15953 if err := googleapi.CheckResponse(res); err != nil {
15954 return nil, gensupport.WrapError(err)
15955 }
15956 ret := &GoogleLongrunningOperation{
15957 ServerResponse: googleapi.ServerResponse{
15958 Header: res.Header,
15959 HTTPStatusCode: res.StatusCode,
15960 },
15961 }
15962 target := &ret
15963 if err := gensupport.DecodeResponse(target, res); err != nil {
15964 return nil, err
15965 }
15966 return ret, nil
15967 }
15968
15969 type ProjectsLocationsCollectionsDataStoresOperationsListCall struct {
15970 s *Service
15971 name string
15972 urlParams_ gensupport.URLParams
15973 ifNoneMatch_ string
15974 ctx_ context.Context
15975 header_ http.Header
15976 }
15977
15978
15979
15980
15981
15982 func (r *ProjectsLocationsCollectionsDataStoresOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
15983 c := &ProjectsLocationsCollectionsDataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15984 c.name = name
15985 return c
15986 }
15987
15988
15989 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
15990 c.urlParams_.Set("filter", filter)
15991 return c
15992 }
15993
15994
15995
15996 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
15997 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15998 return c
15999 }
16000
16001
16002
16003 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
16004 c.urlParams_.Set("pageToken", pageToken)
16005 return c
16006 }
16007
16008
16009
16010
16011 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
16012 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16013 return c
16014 }
16015
16016
16017
16018
16019 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
16020 c.ifNoneMatch_ = entityTag
16021 return c
16022 }
16023
16024
16025 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
16026 c.ctx_ = ctx
16027 return c
16028 }
16029
16030
16031
16032 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Header() http.Header {
16033 if c.header_ == nil {
16034 c.header_ = make(http.Header)
16035 }
16036 return c.header_
16037 }
16038
16039 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) {
16040 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16041 if c.ifNoneMatch_ != "" {
16042 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16043 }
16044 var body io.Reader = nil
16045 c.urlParams_.Set("alt", alt)
16046 c.urlParams_.Set("prettyPrint", "false")
16047 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
16048 urls += "?" + c.urlParams_.Encode()
16049 req, err := http.NewRequest("GET", urls, body)
16050 if err != nil {
16051 return nil, err
16052 }
16053 req.Header = reqHeaders
16054 googleapi.Expand(req.URL, map[string]string{
16055 "name": c.name,
16056 })
16057 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16058 }
16059
16060
16061
16062
16063
16064
16065
16066 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
16067 gensupport.SetOptions(c.urlParams_, opts...)
16068 res, err := c.doRequest("json")
16069 if res != nil && res.StatusCode == http.StatusNotModified {
16070 if res.Body != nil {
16071 res.Body.Close()
16072 }
16073 return nil, gensupport.WrapError(&googleapi.Error{
16074 Code: res.StatusCode,
16075 Header: res.Header,
16076 })
16077 }
16078 if err != nil {
16079 return nil, err
16080 }
16081 defer googleapi.CloseBody(res)
16082 if err := googleapi.CheckResponse(res); err != nil {
16083 return nil, gensupport.WrapError(err)
16084 }
16085 ret := &GoogleLongrunningListOperationsResponse{
16086 ServerResponse: googleapi.ServerResponse{
16087 Header: res.Header,
16088 HTTPStatusCode: res.StatusCode,
16089 },
16090 }
16091 target := &ret
16092 if err := gensupport.DecodeResponse(target, res); err != nil {
16093 return nil, err
16094 }
16095 return ret, nil
16096 }
16097
16098
16099
16100
16101 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
16102 c.ctx_ = ctx
16103 defer c.PageToken(c.urlParams_.Get("pageToken"))
16104 for {
16105 x, err := c.Do()
16106 if err != nil {
16107 return err
16108 }
16109 if err := f(x); err != nil {
16110 return err
16111 }
16112 if x.NextPageToken == "" {
16113 return nil
16114 }
16115 c.PageToken(x.NextPageToken)
16116 }
16117 }
16118
16119 type ProjectsLocationsCollectionsDataStoresSchemasCreateCall struct {
16120 s *Service
16121 parent string
16122 googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema
16123 urlParams_ gensupport.URLParams
16124 ctx_ context.Context
16125 header_ http.Header
16126 }
16127
16128
16129
16130
16131
16132
16133 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Create(parent string, googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
16134 c := &ProjectsLocationsCollectionsDataStoresSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16135 c.parent = parent
16136 c.googleclouddiscoveryenginev1betaschema = googleclouddiscoveryenginev1betaschema
16137 return c
16138 }
16139
16140
16141
16142
16143
16144 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) SchemaId(schemaId string) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
16145 c.urlParams_.Set("schemaId", schemaId)
16146 return c
16147 }
16148
16149
16150
16151
16152 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
16153 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16154 return c
16155 }
16156
16157
16158 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
16159 c.ctx_ = ctx
16160 return c
16161 }
16162
16163
16164
16165 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Header() http.Header {
16166 if c.header_ == nil {
16167 c.header_ = make(http.Header)
16168 }
16169 return c.header_
16170 }
16171
16172 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) doRequest(alt string) (*http.Response, error) {
16173 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16174 var body io.Reader = nil
16175 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaschema)
16176 if err != nil {
16177 return nil, err
16178 }
16179 c.urlParams_.Set("alt", alt)
16180 c.urlParams_.Set("prettyPrint", "false")
16181 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/schemas")
16182 urls += "?" + c.urlParams_.Encode()
16183 req, err := http.NewRequest("POST", urls, body)
16184 if err != nil {
16185 return nil, err
16186 }
16187 req.Header = reqHeaders
16188 googleapi.Expand(req.URL, map[string]string{
16189 "parent": c.parent,
16190 })
16191 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16192 }
16193
16194
16195
16196
16197
16198
16199
16200 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
16201 gensupport.SetOptions(c.urlParams_, opts...)
16202 res, err := c.doRequest("json")
16203 if res != nil && res.StatusCode == http.StatusNotModified {
16204 if res.Body != nil {
16205 res.Body.Close()
16206 }
16207 return nil, gensupport.WrapError(&googleapi.Error{
16208 Code: res.StatusCode,
16209 Header: res.Header,
16210 })
16211 }
16212 if err != nil {
16213 return nil, err
16214 }
16215 defer googleapi.CloseBody(res)
16216 if err := googleapi.CheckResponse(res); err != nil {
16217 return nil, gensupport.WrapError(err)
16218 }
16219 ret := &GoogleLongrunningOperation{
16220 ServerResponse: googleapi.ServerResponse{
16221 Header: res.Header,
16222 HTTPStatusCode: res.StatusCode,
16223 },
16224 }
16225 target := &ret
16226 if err := gensupport.DecodeResponse(target, res); err != nil {
16227 return nil, err
16228 }
16229 return ret, nil
16230 }
16231
16232 type ProjectsLocationsCollectionsDataStoresSchemasDeleteCall struct {
16233 s *Service
16234 name string
16235 urlParams_ gensupport.URLParams
16236 ctx_ context.Context
16237 header_ http.Header
16238 }
16239
16240
16241
16242
16243
16244
16245 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
16246 c := &ProjectsLocationsCollectionsDataStoresSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16247 c.name = name
16248 return c
16249 }
16250
16251
16252
16253
16254 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
16255 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16256 return c
16257 }
16258
16259
16260 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
16261 c.ctx_ = ctx
16262 return c
16263 }
16264
16265
16266
16267 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Header() http.Header {
16268 if c.header_ == nil {
16269 c.header_ = make(http.Header)
16270 }
16271 return c.header_
16272 }
16273
16274 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) doRequest(alt string) (*http.Response, error) {
16275 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16276 var body io.Reader = nil
16277 c.urlParams_.Set("alt", alt)
16278 c.urlParams_.Set("prettyPrint", "false")
16279 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
16280 urls += "?" + c.urlParams_.Encode()
16281 req, err := http.NewRequest("DELETE", urls, body)
16282 if err != nil {
16283 return nil, err
16284 }
16285 req.Header = reqHeaders
16286 googleapi.Expand(req.URL, map[string]string{
16287 "name": c.name,
16288 })
16289 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16290 }
16291
16292
16293
16294
16295
16296
16297
16298 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
16299 gensupport.SetOptions(c.urlParams_, opts...)
16300 res, err := c.doRequest("json")
16301 if res != nil && res.StatusCode == http.StatusNotModified {
16302 if res.Body != nil {
16303 res.Body.Close()
16304 }
16305 return nil, gensupport.WrapError(&googleapi.Error{
16306 Code: res.StatusCode,
16307 Header: res.Header,
16308 })
16309 }
16310 if err != nil {
16311 return nil, err
16312 }
16313 defer googleapi.CloseBody(res)
16314 if err := googleapi.CheckResponse(res); err != nil {
16315 return nil, gensupport.WrapError(err)
16316 }
16317 ret := &GoogleLongrunningOperation{
16318 ServerResponse: googleapi.ServerResponse{
16319 Header: res.Header,
16320 HTTPStatusCode: res.StatusCode,
16321 },
16322 }
16323 target := &ret
16324 if err := gensupport.DecodeResponse(target, res); err != nil {
16325 return nil, err
16326 }
16327 return ret, nil
16328 }
16329
16330 type ProjectsLocationsCollectionsDataStoresSchemasGetCall struct {
16331 s *Service
16332 name string
16333 urlParams_ gensupport.URLParams
16334 ifNoneMatch_ string
16335 ctx_ context.Context
16336 header_ http.Header
16337 }
16338
16339
16340
16341
16342
16343
16344 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Get(name string) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
16345 c := &ProjectsLocationsCollectionsDataStoresSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16346 c.name = name
16347 return c
16348 }
16349
16350
16351
16352
16353 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
16354 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16355 return c
16356 }
16357
16358
16359
16360
16361 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
16362 c.ifNoneMatch_ = entityTag
16363 return c
16364 }
16365
16366
16367 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
16368 c.ctx_ = ctx
16369 return c
16370 }
16371
16372
16373
16374 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Header() http.Header {
16375 if c.header_ == nil {
16376 c.header_ = make(http.Header)
16377 }
16378 return c.header_
16379 }
16380
16381 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) doRequest(alt string) (*http.Response, error) {
16382 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16383 if c.ifNoneMatch_ != "" {
16384 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16385 }
16386 var body io.Reader = nil
16387 c.urlParams_.Set("alt", alt)
16388 c.urlParams_.Set("prettyPrint", "false")
16389 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
16390 urls += "?" + c.urlParams_.Encode()
16391 req, err := http.NewRequest("GET", urls, body)
16392 if err != nil {
16393 return nil, err
16394 }
16395 req.Header = reqHeaders
16396 googleapi.Expand(req.URL, map[string]string{
16397 "name": c.name,
16398 })
16399 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16400 }
16401
16402
16403
16404
16405
16406
16407
16408 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSchema, error) {
16409 gensupport.SetOptions(c.urlParams_, opts...)
16410 res, err := c.doRequest("json")
16411 if res != nil && res.StatusCode == http.StatusNotModified {
16412 if res.Body != nil {
16413 res.Body.Close()
16414 }
16415 return nil, gensupport.WrapError(&googleapi.Error{
16416 Code: res.StatusCode,
16417 Header: res.Header,
16418 })
16419 }
16420 if err != nil {
16421 return nil, err
16422 }
16423 defer googleapi.CloseBody(res)
16424 if err := googleapi.CheckResponse(res); err != nil {
16425 return nil, gensupport.WrapError(err)
16426 }
16427 ret := &GoogleCloudDiscoveryengineV1betaSchema{
16428 ServerResponse: googleapi.ServerResponse{
16429 Header: res.Header,
16430 HTTPStatusCode: res.StatusCode,
16431 },
16432 }
16433 target := &ret
16434 if err := gensupport.DecodeResponse(target, res); err != nil {
16435 return nil, err
16436 }
16437 return ret, nil
16438 }
16439
16440 type ProjectsLocationsCollectionsDataStoresSchemasListCall struct {
16441 s *Service
16442 parent string
16443 urlParams_ gensupport.URLParams
16444 ifNoneMatch_ string
16445 ctx_ context.Context
16446 header_ http.Header
16447 }
16448
16449
16450
16451
16452
16453
16454 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) List(parent string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
16455 c := &ProjectsLocationsCollectionsDataStoresSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16456 c.parent = parent
16457 return c
16458 }
16459
16460
16461
16462
16463
16464 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
16465 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
16466 return c
16467 }
16468
16469
16470
16471
16472
16473 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
16474 c.urlParams_.Set("pageToken", pageToken)
16475 return c
16476 }
16477
16478
16479
16480
16481 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
16482 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16483 return c
16484 }
16485
16486
16487
16488
16489 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
16490 c.ifNoneMatch_ = entityTag
16491 return c
16492 }
16493
16494
16495 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
16496 c.ctx_ = ctx
16497 return c
16498 }
16499
16500
16501
16502 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Header() http.Header {
16503 if c.header_ == nil {
16504 c.header_ = make(http.Header)
16505 }
16506 return c.header_
16507 }
16508
16509 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) doRequest(alt string) (*http.Response, error) {
16510 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16511 if c.ifNoneMatch_ != "" {
16512 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16513 }
16514 var body io.Reader = nil
16515 c.urlParams_.Set("alt", alt)
16516 c.urlParams_.Set("prettyPrint", "false")
16517 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/schemas")
16518 urls += "?" + c.urlParams_.Encode()
16519 req, err := http.NewRequest("GET", urls, body)
16520 if err != nil {
16521 return nil, err
16522 }
16523 req.Header = reqHeaders
16524 googleapi.Expand(req.URL, map[string]string{
16525 "parent": c.parent,
16526 })
16527 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16528 }
16529
16530
16531
16532
16533
16534
16535
16536 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListSchemasResponse, error) {
16537 gensupport.SetOptions(c.urlParams_, opts...)
16538 res, err := c.doRequest("json")
16539 if res != nil && res.StatusCode == http.StatusNotModified {
16540 if res.Body != nil {
16541 res.Body.Close()
16542 }
16543 return nil, gensupport.WrapError(&googleapi.Error{
16544 Code: res.StatusCode,
16545 Header: res.Header,
16546 })
16547 }
16548 if err != nil {
16549 return nil, err
16550 }
16551 defer googleapi.CloseBody(res)
16552 if err := googleapi.CheckResponse(res); err != nil {
16553 return nil, gensupport.WrapError(err)
16554 }
16555 ret := &GoogleCloudDiscoveryengineV1betaListSchemasResponse{
16556 ServerResponse: googleapi.ServerResponse{
16557 Header: res.Header,
16558 HTTPStatusCode: res.StatusCode,
16559 },
16560 }
16561 target := &ret
16562 if err := gensupport.DecodeResponse(target, res); err != nil {
16563 return nil, err
16564 }
16565 return ret, nil
16566 }
16567
16568
16569
16570
16571 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListSchemasResponse) error) error {
16572 c.ctx_ = ctx
16573 defer c.PageToken(c.urlParams_.Get("pageToken"))
16574 for {
16575 x, err := c.Do()
16576 if err != nil {
16577 return err
16578 }
16579 if err := f(x); err != nil {
16580 return err
16581 }
16582 if x.NextPageToken == "" {
16583 return nil
16584 }
16585 c.PageToken(x.NextPageToken)
16586 }
16587 }
16588
16589 type ProjectsLocationsCollectionsDataStoresSchemasPatchCall struct {
16590 s *Service
16591 name string
16592 googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema
16593 urlParams_ gensupport.URLParams
16594 ctx_ context.Context
16595 header_ http.Header
16596 }
16597
16598
16599
16600
16601
16602
16603
16604 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Patch(name string, googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
16605 c := &ProjectsLocationsCollectionsDataStoresSchemasPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16606 c.name = name
16607 c.googleclouddiscoveryenginev1betaschema = googleclouddiscoveryenginev1betaschema
16608 return c
16609 }
16610
16611
16612
16613
16614 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
16615 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
16616 return c
16617 }
16618
16619
16620
16621
16622 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
16623 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16624 return c
16625 }
16626
16627
16628 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
16629 c.ctx_ = ctx
16630 return c
16631 }
16632
16633
16634
16635 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Header() http.Header {
16636 if c.header_ == nil {
16637 c.header_ = make(http.Header)
16638 }
16639 return c.header_
16640 }
16641
16642 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) doRequest(alt string) (*http.Response, error) {
16643 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16644 var body io.Reader = nil
16645 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaschema)
16646 if err != nil {
16647 return nil, err
16648 }
16649 c.urlParams_.Set("alt", alt)
16650 c.urlParams_.Set("prettyPrint", "false")
16651 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
16652 urls += "?" + c.urlParams_.Encode()
16653 req, err := http.NewRequest("PATCH", urls, body)
16654 if err != nil {
16655 return nil, err
16656 }
16657 req.Header = reqHeaders
16658 googleapi.Expand(req.URL, map[string]string{
16659 "name": c.name,
16660 })
16661 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16662 }
16663
16664
16665
16666
16667
16668
16669
16670 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
16671 gensupport.SetOptions(c.urlParams_, opts...)
16672 res, err := c.doRequest("json")
16673 if res != nil && res.StatusCode == http.StatusNotModified {
16674 if res.Body != nil {
16675 res.Body.Close()
16676 }
16677 return nil, gensupport.WrapError(&googleapi.Error{
16678 Code: res.StatusCode,
16679 Header: res.Header,
16680 })
16681 }
16682 if err != nil {
16683 return nil, err
16684 }
16685 defer googleapi.CloseBody(res)
16686 if err := googleapi.CheckResponse(res); err != nil {
16687 return nil, gensupport.WrapError(err)
16688 }
16689 ret := &GoogleLongrunningOperation{
16690 ServerResponse: googleapi.ServerResponse{
16691 Header: res.Header,
16692 HTTPStatusCode: res.StatusCode,
16693 },
16694 }
16695 target := &ret
16696 if err := gensupport.DecodeResponse(target, res); err != nil {
16697 return nil, err
16698 }
16699 return ret, nil
16700 }
16701
16702 type ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall struct {
16703 s *Service
16704 name string
16705 urlParams_ gensupport.URLParams
16706 ifNoneMatch_ string
16707 ctx_ context.Context
16708 header_ http.Header
16709 }
16710
16711
16712
16713
16714
16715
16716 func (r *ProjectsLocationsCollectionsDataStoresSchemasOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
16717 c := &ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16718 c.name = name
16719 return c
16720 }
16721
16722
16723
16724
16725 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
16726 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16727 return c
16728 }
16729
16730
16731
16732
16733 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
16734 c.ifNoneMatch_ = entityTag
16735 return c
16736 }
16737
16738
16739 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
16740 c.ctx_ = ctx
16741 return c
16742 }
16743
16744
16745
16746 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Header() http.Header {
16747 if c.header_ == nil {
16748 c.header_ = make(http.Header)
16749 }
16750 return c.header_
16751 }
16752
16753 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) doRequest(alt string) (*http.Response, error) {
16754 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16755 if c.ifNoneMatch_ != "" {
16756 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16757 }
16758 var body io.Reader = nil
16759 c.urlParams_.Set("alt", alt)
16760 c.urlParams_.Set("prettyPrint", "false")
16761 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
16762 urls += "?" + c.urlParams_.Encode()
16763 req, err := http.NewRequest("GET", urls, body)
16764 if err != nil {
16765 return nil, err
16766 }
16767 req.Header = reqHeaders
16768 googleapi.Expand(req.URL, map[string]string{
16769 "name": c.name,
16770 })
16771 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16772 }
16773
16774
16775
16776
16777
16778
16779
16780 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
16781 gensupport.SetOptions(c.urlParams_, opts...)
16782 res, err := c.doRequest("json")
16783 if res != nil && res.StatusCode == http.StatusNotModified {
16784 if res.Body != nil {
16785 res.Body.Close()
16786 }
16787 return nil, gensupport.WrapError(&googleapi.Error{
16788 Code: res.StatusCode,
16789 Header: res.Header,
16790 })
16791 }
16792 if err != nil {
16793 return nil, err
16794 }
16795 defer googleapi.CloseBody(res)
16796 if err := googleapi.CheckResponse(res); err != nil {
16797 return nil, gensupport.WrapError(err)
16798 }
16799 ret := &GoogleLongrunningOperation{
16800 ServerResponse: googleapi.ServerResponse{
16801 Header: res.Header,
16802 HTTPStatusCode: res.StatusCode,
16803 },
16804 }
16805 target := &ret
16806 if err := gensupport.DecodeResponse(target, res); err != nil {
16807 return nil, err
16808 }
16809 return ret, nil
16810 }
16811
16812 type ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall struct {
16813 s *Service
16814 name string
16815 urlParams_ gensupport.URLParams
16816 ifNoneMatch_ string
16817 ctx_ context.Context
16818 header_ http.Header
16819 }
16820
16821
16822
16823
16824
16825 func (r *ProjectsLocationsCollectionsDataStoresSchemasOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
16826 c := &ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16827 c.name = name
16828 return c
16829 }
16830
16831
16832 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
16833 c.urlParams_.Set("filter", filter)
16834 return c
16835 }
16836
16837
16838
16839 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
16840 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
16841 return c
16842 }
16843
16844
16845
16846 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
16847 c.urlParams_.Set("pageToken", pageToken)
16848 return c
16849 }
16850
16851
16852
16853
16854 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
16855 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16856 return c
16857 }
16858
16859
16860
16861
16862 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
16863 c.ifNoneMatch_ = entityTag
16864 return c
16865 }
16866
16867
16868 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
16869 c.ctx_ = ctx
16870 return c
16871 }
16872
16873
16874
16875 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Header() http.Header {
16876 if c.header_ == nil {
16877 c.header_ = make(http.Header)
16878 }
16879 return c.header_
16880 }
16881
16882 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) doRequest(alt string) (*http.Response, error) {
16883 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16884 if c.ifNoneMatch_ != "" {
16885 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16886 }
16887 var body io.Reader = nil
16888 c.urlParams_.Set("alt", alt)
16889 c.urlParams_.Set("prettyPrint", "false")
16890 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
16891 urls += "?" + c.urlParams_.Encode()
16892 req, err := http.NewRequest("GET", urls, body)
16893 if err != nil {
16894 return nil, err
16895 }
16896 req.Header = reqHeaders
16897 googleapi.Expand(req.URL, map[string]string{
16898 "name": c.name,
16899 })
16900 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16901 }
16902
16903
16904
16905
16906
16907
16908
16909 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
16910 gensupport.SetOptions(c.urlParams_, opts...)
16911 res, err := c.doRequest("json")
16912 if res != nil && res.StatusCode == http.StatusNotModified {
16913 if res.Body != nil {
16914 res.Body.Close()
16915 }
16916 return nil, gensupport.WrapError(&googleapi.Error{
16917 Code: res.StatusCode,
16918 Header: res.Header,
16919 })
16920 }
16921 if err != nil {
16922 return nil, err
16923 }
16924 defer googleapi.CloseBody(res)
16925 if err := googleapi.CheckResponse(res); err != nil {
16926 return nil, gensupport.WrapError(err)
16927 }
16928 ret := &GoogleLongrunningListOperationsResponse{
16929 ServerResponse: googleapi.ServerResponse{
16930 Header: res.Header,
16931 HTTPStatusCode: res.StatusCode,
16932 },
16933 }
16934 target := &ret
16935 if err := gensupport.DecodeResponse(target, res); err != nil {
16936 return nil, err
16937 }
16938 return ret, nil
16939 }
16940
16941
16942
16943
16944 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
16945 c.ctx_ = ctx
16946 defer c.PageToken(c.urlParams_.Get("pageToken"))
16947 for {
16948 x, err := c.Do()
16949 if err != nil {
16950 return err
16951 }
16952 if err := f(x); err != nil {
16953 return err
16954 }
16955 if x.NextPageToken == "" {
16956 return nil
16957 }
16958 c.PageToken(x.NextPageToken)
16959 }
16960 }
16961
16962 type ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall struct {
16963 s *Service
16964 servingConfig string
16965 googleclouddiscoveryenginev1betaanswerqueryrequest *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
16966 urlParams_ gensupport.URLParams
16967 ctx_ context.Context
16968 header_ http.Header
16969 }
16970
16971
16972
16973
16974
16975
16976
16977
16978
16979 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Answer(servingConfig string, googleclouddiscoveryenginev1betaanswerqueryrequest *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall {
16980 c := &ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16981 c.servingConfig = servingConfig
16982 c.googleclouddiscoveryenginev1betaanswerqueryrequest = googleclouddiscoveryenginev1betaanswerqueryrequest
16983 return c
16984 }
16985
16986
16987
16988
16989 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall {
16990 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16991 return c
16992 }
16993
16994
16995 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall {
16996 c.ctx_ = ctx
16997 return c
16998 }
16999
17000
17001
17002 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Header() http.Header {
17003 if c.header_ == nil {
17004 c.header_ = make(http.Header)
17005 }
17006 return c.header_
17007 }
17008
17009 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) doRequest(alt string) (*http.Response, error) {
17010 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17011 var body io.Reader = nil
17012 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaanswerqueryrequest)
17013 if err != nil {
17014 return nil, err
17015 }
17016 c.urlParams_.Set("alt", alt)
17017 c.urlParams_.Set("prettyPrint", "false")
17018 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:answer")
17019 urls += "?" + c.urlParams_.Encode()
17020 req, err := http.NewRequest("POST", urls, body)
17021 if err != nil {
17022 return nil, err
17023 }
17024 req.Header = reqHeaders
17025 googleapi.Expand(req.URL, map[string]string{
17026 "servingConfig": c.servingConfig,
17027 })
17028 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17029 }
17030
17031
17032
17033
17034
17035
17036
17037 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaAnswerQueryResponse, error) {
17038 gensupport.SetOptions(c.urlParams_, opts...)
17039 res, err := c.doRequest("json")
17040 if res != nil && res.StatusCode == http.StatusNotModified {
17041 if res.Body != nil {
17042 res.Body.Close()
17043 }
17044 return nil, gensupport.WrapError(&googleapi.Error{
17045 Code: res.StatusCode,
17046 Header: res.Header,
17047 })
17048 }
17049 if err != nil {
17050 return nil, err
17051 }
17052 defer googleapi.CloseBody(res)
17053 if err := googleapi.CheckResponse(res); err != nil {
17054 return nil, gensupport.WrapError(err)
17055 }
17056 ret := &GoogleCloudDiscoveryengineV1betaAnswerQueryResponse{
17057 ServerResponse: googleapi.ServerResponse{
17058 Header: res.Header,
17059 HTTPStatusCode: res.StatusCode,
17060 },
17061 }
17062 target := &ret
17063 if err := gensupport.DecodeResponse(target, res); err != nil {
17064 return nil, err
17065 }
17066 return ret, nil
17067 }
17068
17069 type ProjectsLocationsCollectionsDataStoresServingConfigsGetCall struct {
17070 s *Service
17071 name string
17072 urlParams_ gensupport.URLParams
17073 ifNoneMatch_ string
17074 ctx_ context.Context
17075 header_ http.Header
17076 }
17077
17078
17079
17080
17081
17082
17083
17084 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Get(name string) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
17085 c := &ProjectsLocationsCollectionsDataStoresServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17086 c.name = name
17087 return c
17088 }
17089
17090
17091
17092
17093 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
17094 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17095 return c
17096 }
17097
17098
17099
17100
17101 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
17102 c.ifNoneMatch_ = entityTag
17103 return c
17104 }
17105
17106
17107 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
17108 c.ctx_ = ctx
17109 return c
17110 }
17111
17112
17113
17114 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Header() http.Header {
17115 if c.header_ == nil {
17116 c.header_ = make(http.Header)
17117 }
17118 return c.header_
17119 }
17120
17121 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) doRequest(alt string) (*http.Response, error) {
17122 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17123 if c.ifNoneMatch_ != "" {
17124 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17125 }
17126 var body io.Reader = nil
17127 c.urlParams_.Set("alt", alt)
17128 c.urlParams_.Set("prettyPrint", "false")
17129 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
17130 urls += "?" + c.urlParams_.Encode()
17131 req, err := http.NewRequest("GET", urls, body)
17132 if err != nil {
17133 return nil, err
17134 }
17135 req.Header = reqHeaders
17136 googleapi.Expand(req.URL, map[string]string{
17137 "name": c.name,
17138 })
17139 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17140 }
17141
17142
17143
17144
17145
17146
17147
17148 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaServingConfig, error) {
17149 gensupport.SetOptions(c.urlParams_, opts...)
17150 res, err := c.doRequest("json")
17151 if res != nil && res.StatusCode == http.StatusNotModified {
17152 if res.Body != nil {
17153 res.Body.Close()
17154 }
17155 return nil, gensupport.WrapError(&googleapi.Error{
17156 Code: res.StatusCode,
17157 Header: res.Header,
17158 })
17159 }
17160 if err != nil {
17161 return nil, err
17162 }
17163 defer googleapi.CloseBody(res)
17164 if err := googleapi.CheckResponse(res); err != nil {
17165 return nil, gensupport.WrapError(err)
17166 }
17167 ret := &GoogleCloudDiscoveryengineV1betaServingConfig{
17168 ServerResponse: googleapi.ServerResponse{
17169 Header: res.Header,
17170 HTTPStatusCode: res.StatusCode,
17171 },
17172 }
17173 target := &ret
17174 if err := gensupport.DecodeResponse(target, res); err != nil {
17175 return nil, err
17176 }
17177 return ret, nil
17178 }
17179
17180 type ProjectsLocationsCollectionsDataStoresServingConfigsListCall struct {
17181 s *Service
17182 parent string
17183 urlParams_ gensupport.URLParams
17184 ifNoneMatch_ string
17185 ctx_ context.Context
17186 header_ http.Header
17187 }
17188
17189
17190
17191
17192
17193
17194 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) List(parent string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
17195 c := &ProjectsLocationsCollectionsDataStoresServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17196 c.parent = parent
17197 return c
17198 }
17199
17200
17201
17202
17203 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
17204 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17205 return c
17206 }
17207
17208
17209
17210
17211 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
17212 c.urlParams_.Set("pageToken", pageToken)
17213 return c
17214 }
17215
17216
17217
17218
17219 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
17220 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17221 return c
17222 }
17223
17224
17225
17226
17227 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
17228 c.ifNoneMatch_ = entityTag
17229 return c
17230 }
17231
17232
17233 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
17234 c.ctx_ = ctx
17235 return c
17236 }
17237
17238
17239
17240 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Header() http.Header {
17241 if c.header_ == nil {
17242 c.header_ = make(http.Header)
17243 }
17244 return c.header_
17245 }
17246
17247 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) doRequest(alt string) (*http.Response, error) {
17248 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17249 if c.ifNoneMatch_ != "" {
17250 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17251 }
17252 var body io.Reader = nil
17253 c.urlParams_.Set("alt", alt)
17254 c.urlParams_.Set("prettyPrint", "false")
17255 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/servingConfigs")
17256 urls += "?" + c.urlParams_.Encode()
17257 req, err := http.NewRequest("GET", urls, body)
17258 if err != nil {
17259 return nil, err
17260 }
17261 req.Header = reqHeaders
17262 googleapi.Expand(req.URL, map[string]string{
17263 "parent": c.parent,
17264 })
17265 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17266 }
17267
17268
17269
17270
17271
17272
17273
17274 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListServingConfigsResponse, error) {
17275 gensupport.SetOptions(c.urlParams_, opts...)
17276 res, err := c.doRequest("json")
17277 if res != nil && res.StatusCode == http.StatusNotModified {
17278 if res.Body != nil {
17279 res.Body.Close()
17280 }
17281 return nil, gensupport.WrapError(&googleapi.Error{
17282 Code: res.StatusCode,
17283 Header: res.Header,
17284 })
17285 }
17286 if err != nil {
17287 return nil, err
17288 }
17289 defer googleapi.CloseBody(res)
17290 if err := googleapi.CheckResponse(res); err != nil {
17291 return nil, gensupport.WrapError(err)
17292 }
17293 ret := &GoogleCloudDiscoveryengineV1betaListServingConfigsResponse{
17294 ServerResponse: googleapi.ServerResponse{
17295 Header: res.Header,
17296 HTTPStatusCode: res.StatusCode,
17297 },
17298 }
17299 target := &ret
17300 if err := gensupport.DecodeResponse(target, res); err != nil {
17301 return nil, err
17302 }
17303 return ret, nil
17304 }
17305
17306
17307
17308
17309 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListServingConfigsResponse) error) error {
17310 c.ctx_ = ctx
17311 defer c.PageToken(c.urlParams_.Get("pageToken"))
17312 for {
17313 x, err := c.Do()
17314 if err != nil {
17315 return err
17316 }
17317 if err := f(x); err != nil {
17318 return err
17319 }
17320 if x.NextPageToken == "" {
17321 return nil
17322 }
17323 c.PageToken(x.NextPageToken)
17324 }
17325 }
17326
17327 type ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall struct {
17328 s *Service
17329 name string
17330 googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig
17331 urlParams_ gensupport.URLParams
17332 ctx_ context.Context
17333 header_ http.Header
17334 }
17335
17336
17337
17338
17339
17340
17341
17342 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Patch(name string, googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
17343 c := &ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17344 c.name = name
17345 c.googleclouddiscoveryenginev1betaservingconfig = googleclouddiscoveryenginev1betaservingconfig
17346 return c
17347 }
17348
17349
17350
17351
17352 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
17353 c.urlParams_.Set("updateMask", updateMask)
17354 return c
17355 }
17356
17357
17358
17359
17360 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
17361 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17362 return c
17363 }
17364
17365
17366 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
17367 c.ctx_ = ctx
17368 return c
17369 }
17370
17371
17372
17373 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Header() http.Header {
17374 if c.header_ == nil {
17375 c.header_ = make(http.Header)
17376 }
17377 return c.header_
17378 }
17379
17380 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
17381 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17382 var body io.Reader = nil
17383 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaservingconfig)
17384 if err != nil {
17385 return nil, err
17386 }
17387 c.urlParams_.Set("alt", alt)
17388 c.urlParams_.Set("prettyPrint", "false")
17389 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
17390 urls += "?" + c.urlParams_.Encode()
17391 req, err := http.NewRequest("PATCH", urls, body)
17392 if err != nil {
17393 return nil, err
17394 }
17395 req.Header = reqHeaders
17396 googleapi.Expand(req.URL, map[string]string{
17397 "name": c.name,
17398 })
17399 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17400 }
17401
17402
17403
17404
17405
17406
17407
17408 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaServingConfig, error) {
17409 gensupport.SetOptions(c.urlParams_, opts...)
17410 res, err := c.doRequest("json")
17411 if res != nil && res.StatusCode == http.StatusNotModified {
17412 if res.Body != nil {
17413 res.Body.Close()
17414 }
17415 return nil, gensupport.WrapError(&googleapi.Error{
17416 Code: res.StatusCode,
17417 Header: res.Header,
17418 })
17419 }
17420 if err != nil {
17421 return nil, err
17422 }
17423 defer googleapi.CloseBody(res)
17424 if err := googleapi.CheckResponse(res); err != nil {
17425 return nil, gensupport.WrapError(err)
17426 }
17427 ret := &GoogleCloudDiscoveryengineV1betaServingConfig{
17428 ServerResponse: googleapi.ServerResponse{
17429 Header: res.Header,
17430 HTTPStatusCode: res.StatusCode,
17431 },
17432 }
17433 target := &ret
17434 if err := gensupport.DecodeResponse(target, res); err != nil {
17435 return nil, err
17436 }
17437 return ret, nil
17438 }
17439
17440 type ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall struct {
17441 s *Service
17442 servingConfig string
17443 googleclouddiscoveryenginev1betarecommendrequest *GoogleCloudDiscoveryengineV1betaRecommendRequest
17444 urlParams_ gensupport.URLParams
17445 ctx_ context.Context
17446 header_ http.Header
17447 }
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1betarecommendrequest *GoogleCloudDiscoveryengineV1betaRecommendRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
17461 c := &ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17462 c.servingConfig = servingConfig
17463 c.googleclouddiscoveryenginev1betarecommendrequest = googleclouddiscoveryenginev1betarecommendrequest
17464 return c
17465 }
17466
17467
17468
17469
17470 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
17471 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17472 return c
17473 }
17474
17475
17476 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
17477 c.ctx_ = ctx
17478 return c
17479 }
17480
17481
17482
17483 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Header() http.Header {
17484 if c.header_ == nil {
17485 c.header_ = make(http.Header)
17486 }
17487 return c.header_
17488 }
17489
17490 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
17491 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17492 var body io.Reader = nil
17493 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betarecommendrequest)
17494 if err != nil {
17495 return nil, err
17496 }
17497 c.urlParams_.Set("alt", alt)
17498 c.urlParams_.Set("prettyPrint", "false")
17499 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:recommend")
17500 urls += "?" + c.urlParams_.Encode()
17501 req, err := http.NewRequest("POST", urls, body)
17502 if err != nil {
17503 return nil, err
17504 }
17505 req.Header = reqHeaders
17506 googleapi.Expand(req.URL, map[string]string{
17507 "servingConfig": c.servingConfig,
17508 })
17509 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17510 }
17511
17512
17513
17514
17515
17516
17517
17518 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaRecommendResponse, error) {
17519 gensupport.SetOptions(c.urlParams_, opts...)
17520 res, err := c.doRequest("json")
17521 if res != nil && res.StatusCode == http.StatusNotModified {
17522 if res.Body != nil {
17523 res.Body.Close()
17524 }
17525 return nil, gensupport.WrapError(&googleapi.Error{
17526 Code: res.StatusCode,
17527 Header: res.Header,
17528 })
17529 }
17530 if err != nil {
17531 return nil, err
17532 }
17533 defer googleapi.CloseBody(res)
17534 if err := googleapi.CheckResponse(res); err != nil {
17535 return nil, gensupport.WrapError(err)
17536 }
17537 ret := &GoogleCloudDiscoveryengineV1betaRecommendResponse{
17538 ServerResponse: googleapi.ServerResponse{
17539 Header: res.Header,
17540 HTTPStatusCode: res.StatusCode,
17541 },
17542 }
17543 target := &ret
17544 if err := gensupport.DecodeResponse(target, res); err != nil {
17545 return nil, err
17546 }
17547 return ret, nil
17548 }
17549
17550 type ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall struct {
17551 s *Service
17552 servingConfig string
17553 googleclouddiscoveryenginev1betasearchrequest *GoogleCloudDiscoveryengineV1betaSearchRequest
17554 urlParams_ gensupport.URLParams
17555 ctx_ context.Context
17556 header_ http.Header
17557 }
17558
17559
17560
17561
17562
17563
17564
17565
17566
17567
17568 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1betasearchrequest *GoogleCloudDiscoveryengineV1betaSearchRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
17569 c := &ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17570 c.servingConfig = servingConfig
17571 c.googleclouddiscoveryenginev1betasearchrequest = googleclouddiscoveryenginev1betasearchrequest
17572 return c
17573 }
17574
17575
17576
17577
17578 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
17579 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17580 return c
17581 }
17582
17583
17584 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
17585 c.ctx_ = ctx
17586 return c
17587 }
17588
17589
17590
17591 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Header() http.Header {
17592 if c.header_ == nil {
17593 c.header_ = make(http.Header)
17594 }
17595 return c.header_
17596 }
17597
17598 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
17599 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17600 var body io.Reader = nil
17601 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasearchrequest)
17602 if err != nil {
17603 return nil, err
17604 }
17605 c.urlParams_.Set("alt", alt)
17606 c.urlParams_.Set("prettyPrint", "false")
17607 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:search")
17608 urls += "?" + c.urlParams_.Encode()
17609 req, err := http.NewRequest("POST", urls, body)
17610 if err != nil {
17611 return nil, err
17612 }
17613 req.Header = reqHeaders
17614 googleapi.Expand(req.URL, map[string]string{
17615 "servingConfig": c.servingConfig,
17616 })
17617 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17618 }
17619
17620
17621
17622
17623
17624
17625
17626 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSearchResponse, error) {
17627 gensupport.SetOptions(c.urlParams_, opts...)
17628 res, err := c.doRequest("json")
17629 if res != nil && res.StatusCode == http.StatusNotModified {
17630 if res.Body != nil {
17631 res.Body.Close()
17632 }
17633 return nil, gensupport.WrapError(&googleapi.Error{
17634 Code: res.StatusCode,
17635 Header: res.Header,
17636 })
17637 }
17638 if err != nil {
17639 return nil, err
17640 }
17641 defer googleapi.CloseBody(res)
17642 if err := googleapi.CheckResponse(res); err != nil {
17643 return nil, gensupport.WrapError(err)
17644 }
17645 ret := &GoogleCloudDiscoveryengineV1betaSearchResponse{
17646 ServerResponse: googleapi.ServerResponse{
17647 Header: res.Header,
17648 HTTPStatusCode: res.StatusCode,
17649 },
17650 }
17651 target := &ret
17652 if err := gensupport.DecodeResponse(target, res); err != nil {
17653 return nil, err
17654 }
17655 return ret, nil
17656 }
17657
17658
17659
17660
17661 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaSearchResponse) error) error {
17662 c.ctx_ = ctx
17663 defer func(pt string) { c.googleclouddiscoveryenginev1betasearchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1betasearchrequest.PageToken)
17664 for {
17665 x, err := c.Do()
17666 if err != nil {
17667 return err
17668 }
17669 if err := f(x); err != nil {
17670 return err
17671 }
17672 if x.NextPageToken == "" {
17673 return nil
17674 }
17675 c.googleclouddiscoveryenginev1betasearchrequest.PageToken = x.NextPageToken
17676 }
17677 }
17678
17679 type ProjectsLocationsCollectionsDataStoresSessionsCreateCall struct {
17680 s *Service
17681 parent string
17682 googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession
17683 urlParams_ gensupport.URLParams
17684 ctx_ context.Context
17685 header_ http.Header
17686 }
17687
17688
17689
17690
17691
17692
17693
17694 func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Create(parent string, googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession) *ProjectsLocationsCollectionsDataStoresSessionsCreateCall {
17695 c := &ProjectsLocationsCollectionsDataStoresSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17696 c.parent = parent
17697 c.googleclouddiscoveryenginev1betasession = googleclouddiscoveryenginev1betasession
17698 return c
17699 }
17700
17701
17702
17703
17704 func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsCreateCall {
17705 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17706 return c
17707 }
17708
17709
17710 func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsCreateCall {
17711 c.ctx_ = ctx
17712 return c
17713 }
17714
17715
17716
17717 func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Header() http.Header {
17718 if c.header_ == nil {
17719 c.header_ = make(http.Header)
17720 }
17721 return c.header_
17722 }
17723
17724 func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) doRequest(alt string) (*http.Response, error) {
17725 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17726 var body io.Reader = nil
17727 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasession)
17728 if err != nil {
17729 return nil, err
17730 }
17731 c.urlParams_.Set("alt", alt)
17732 c.urlParams_.Set("prettyPrint", "false")
17733 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sessions")
17734 urls += "?" + c.urlParams_.Encode()
17735 req, err := http.NewRequest("POST", urls, body)
17736 if err != nil {
17737 return nil, err
17738 }
17739 req.Header = reqHeaders
17740 googleapi.Expand(req.URL, map[string]string{
17741 "parent": c.parent,
17742 })
17743 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17744 }
17745
17746
17747
17748
17749
17750
17751
17752 func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
17753 gensupport.SetOptions(c.urlParams_, opts...)
17754 res, err := c.doRequest("json")
17755 if res != nil && res.StatusCode == http.StatusNotModified {
17756 if res.Body != nil {
17757 res.Body.Close()
17758 }
17759 return nil, gensupport.WrapError(&googleapi.Error{
17760 Code: res.StatusCode,
17761 Header: res.Header,
17762 })
17763 }
17764 if err != nil {
17765 return nil, err
17766 }
17767 defer googleapi.CloseBody(res)
17768 if err := googleapi.CheckResponse(res); err != nil {
17769 return nil, gensupport.WrapError(err)
17770 }
17771 ret := &GoogleCloudDiscoveryengineV1betaSession{
17772 ServerResponse: googleapi.ServerResponse{
17773 Header: res.Header,
17774 HTTPStatusCode: res.StatusCode,
17775 },
17776 }
17777 target := &ret
17778 if err := gensupport.DecodeResponse(target, res); err != nil {
17779 return nil, err
17780 }
17781 return ret, nil
17782 }
17783
17784 type ProjectsLocationsCollectionsDataStoresSessionsDeleteCall struct {
17785 s *Service
17786 name string
17787 urlParams_ gensupport.URLParams
17788 ctx_ context.Context
17789 header_ http.Header
17790 }
17791
17792
17793
17794
17795
17796
17797
17798 func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall {
17799 c := &ProjectsLocationsCollectionsDataStoresSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17800 c.name = name
17801 return c
17802 }
17803
17804
17805
17806
17807 func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall {
17808 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17809 return c
17810 }
17811
17812
17813 func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall {
17814 c.ctx_ = ctx
17815 return c
17816 }
17817
17818
17819
17820 func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Header() http.Header {
17821 if c.header_ == nil {
17822 c.header_ = make(http.Header)
17823 }
17824 return c.header_
17825 }
17826
17827 func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) doRequest(alt string) (*http.Response, error) {
17828 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17829 var body io.Reader = nil
17830 c.urlParams_.Set("alt", alt)
17831 c.urlParams_.Set("prettyPrint", "false")
17832 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
17833 urls += "?" + c.urlParams_.Encode()
17834 req, err := http.NewRequest("DELETE", urls, body)
17835 if err != nil {
17836 return nil, err
17837 }
17838 req.Header = reqHeaders
17839 googleapi.Expand(req.URL, map[string]string{
17840 "name": c.name,
17841 })
17842 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17843 }
17844
17845
17846
17847
17848
17849
17850
17851 func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
17852 gensupport.SetOptions(c.urlParams_, opts...)
17853 res, err := c.doRequest("json")
17854 if res != nil && res.StatusCode == http.StatusNotModified {
17855 if res.Body != nil {
17856 res.Body.Close()
17857 }
17858 return nil, gensupport.WrapError(&googleapi.Error{
17859 Code: res.StatusCode,
17860 Header: res.Header,
17861 })
17862 }
17863 if err != nil {
17864 return nil, err
17865 }
17866 defer googleapi.CloseBody(res)
17867 if err := googleapi.CheckResponse(res); err != nil {
17868 return nil, gensupport.WrapError(err)
17869 }
17870 ret := &GoogleProtobufEmpty{
17871 ServerResponse: googleapi.ServerResponse{
17872 Header: res.Header,
17873 HTTPStatusCode: res.StatusCode,
17874 },
17875 }
17876 target := &ret
17877 if err := gensupport.DecodeResponse(target, res); err != nil {
17878 return nil, err
17879 }
17880 return ret, nil
17881 }
17882
17883 type ProjectsLocationsCollectionsDataStoresSessionsGetCall struct {
17884 s *Service
17885 name string
17886 urlParams_ gensupport.URLParams
17887 ifNoneMatch_ string
17888 ctx_ context.Context
17889 header_ http.Header
17890 }
17891
17892
17893
17894
17895
17896
17897 func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
17898 c := &ProjectsLocationsCollectionsDataStoresSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17899 c.name = name
17900 return c
17901 }
17902
17903
17904
17905
17906 func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
17907 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17908 return c
17909 }
17910
17911
17912
17913
17914 func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
17915 c.ifNoneMatch_ = entityTag
17916 return c
17917 }
17918
17919
17920 func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
17921 c.ctx_ = ctx
17922 return c
17923 }
17924
17925
17926
17927 func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Header() http.Header {
17928 if c.header_ == nil {
17929 c.header_ = make(http.Header)
17930 }
17931 return c.header_
17932 }
17933
17934 func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) doRequest(alt string) (*http.Response, error) {
17935 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17936 if c.ifNoneMatch_ != "" {
17937 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17938 }
17939 var body io.Reader = nil
17940 c.urlParams_.Set("alt", alt)
17941 c.urlParams_.Set("prettyPrint", "false")
17942 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
17943 urls += "?" + c.urlParams_.Encode()
17944 req, err := http.NewRequest("GET", urls, body)
17945 if err != nil {
17946 return nil, err
17947 }
17948 req.Header = reqHeaders
17949 googleapi.Expand(req.URL, map[string]string{
17950 "name": c.name,
17951 })
17952 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17953 }
17954
17955
17956
17957
17958
17959
17960
17961 func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
17962 gensupport.SetOptions(c.urlParams_, opts...)
17963 res, err := c.doRequest("json")
17964 if res != nil && res.StatusCode == http.StatusNotModified {
17965 if res.Body != nil {
17966 res.Body.Close()
17967 }
17968 return nil, gensupport.WrapError(&googleapi.Error{
17969 Code: res.StatusCode,
17970 Header: res.Header,
17971 })
17972 }
17973 if err != nil {
17974 return nil, err
17975 }
17976 defer googleapi.CloseBody(res)
17977 if err := googleapi.CheckResponse(res); err != nil {
17978 return nil, gensupport.WrapError(err)
17979 }
17980 ret := &GoogleCloudDiscoveryengineV1betaSession{
17981 ServerResponse: googleapi.ServerResponse{
17982 Header: res.Header,
17983 HTTPStatusCode: res.StatusCode,
17984 },
17985 }
17986 target := &ret
17987 if err := gensupport.DecodeResponse(target, res); err != nil {
17988 return nil, err
17989 }
17990 return ret, nil
17991 }
17992
17993 type ProjectsLocationsCollectionsDataStoresSessionsListCall struct {
17994 s *Service
17995 parent string
17996 urlParams_ gensupport.URLParams
17997 ifNoneMatch_ string
17998 ctx_ context.Context
17999 header_ http.Header
18000 }
18001
18002
18003
18004
18005
18006
18007 func (r *ProjectsLocationsCollectionsDataStoresSessionsService) List(parent string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
18008 c := &ProjectsLocationsCollectionsDataStoresSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18009 c.parent = parent
18010 return c
18011 }
18012
18013
18014
18015
18016 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
18017 c.urlParams_.Set("filter", filter)
18018 return c
18019 }
18020
18021
18022
18023
18024
18025 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
18026 c.urlParams_.Set("orderBy", orderBy)
18027 return c
18028 }
18029
18030
18031
18032 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
18033 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18034 return c
18035 }
18036
18037
18038
18039
18040 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
18041 c.urlParams_.Set("pageToken", pageToken)
18042 return c
18043 }
18044
18045
18046
18047
18048 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
18049 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18050 return c
18051 }
18052
18053
18054
18055
18056 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
18057 c.ifNoneMatch_ = entityTag
18058 return c
18059 }
18060
18061
18062 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
18063 c.ctx_ = ctx
18064 return c
18065 }
18066
18067
18068
18069 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Header() http.Header {
18070 if c.header_ == nil {
18071 c.header_ = make(http.Header)
18072 }
18073 return c.header_
18074 }
18075
18076 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) doRequest(alt string) (*http.Response, error) {
18077 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18078 if c.ifNoneMatch_ != "" {
18079 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18080 }
18081 var body io.Reader = nil
18082 c.urlParams_.Set("alt", alt)
18083 c.urlParams_.Set("prettyPrint", "false")
18084 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sessions")
18085 urls += "?" + c.urlParams_.Encode()
18086 req, err := http.NewRequest("GET", urls, body)
18087 if err != nil {
18088 return nil, err
18089 }
18090 req.Header = reqHeaders
18091 googleapi.Expand(req.URL, map[string]string{
18092 "parent": c.parent,
18093 })
18094 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18095 }
18096
18097
18098
18099
18100
18101
18102
18103 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListSessionsResponse, error) {
18104 gensupport.SetOptions(c.urlParams_, opts...)
18105 res, err := c.doRequest("json")
18106 if res != nil && res.StatusCode == http.StatusNotModified {
18107 if res.Body != nil {
18108 res.Body.Close()
18109 }
18110 return nil, gensupport.WrapError(&googleapi.Error{
18111 Code: res.StatusCode,
18112 Header: res.Header,
18113 })
18114 }
18115 if err != nil {
18116 return nil, err
18117 }
18118 defer googleapi.CloseBody(res)
18119 if err := googleapi.CheckResponse(res); err != nil {
18120 return nil, gensupport.WrapError(err)
18121 }
18122 ret := &GoogleCloudDiscoveryengineV1betaListSessionsResponse{
18123 ServerResponse: googleapi.ServerResponse{
18124 Header: res.Header,
18125 HTTPStatusCode: res.StatusCode,
18126 },
18127 }
18128 target := &ret
18129 if err := gensupport.DecodeResponse(target, res); err != nil {
18130 return nil, err
18131 }
18132 return ret, nil
18133 }
18134
18135
18136
18137
18138 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListSessionsResponse) error) error {
18139 c.ctx_ = ctx
18140 defer c.PageToken(c.urlParams_.Get("pageToken"))
18141 for {
18142 x, err := c.Do()
18143 if err != nil {
18144 return err
18145 }
18146 if err := f(x); err != nil {
18147 return err
18148 }
18149 if x.NextPageToken == "" {
18150 return nil
18151 }
18152 c.PageToken(x.NextPageToken)
18153 }
18154 }
18155
18156 type ProjectsLocationsCollectionsDataStoresSessionsPatchCall struct {
18157 s *Service
18158 name string
18159 googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession
18160 urlParams_ gensupport.URLParams
18161 ctx_ context.Context
18162 header_ http.Header
18163 }
18164
18165
18166
18167
18168
18169
18170
18171 func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Patch(name string, googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
18172 c := &ProjectsLocationsCollectionsDataStoresSessionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18173 c.name = name
18174 c.googleclouddiscoveryenginev1betasession = googleclouddiscoveryenginev1betasession
18175 return c
18176 }
18177
18178
18179
18180
18181 func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
18182 c.urlParams_.Set("updateMask", updateMask)
18183 return c
18184 }
18185
18186
18187
18188
18189 func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
18190 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18191 return c
18192 }
18193
18194
18195 func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
18196 c.ctx_ = ctx
18197 return c
18198 }
18199
18200
18201
18202 func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Header() http.Header {
18203 if c.header_ == nil {
18204 c.header_ = make(http.Header)
18205 }
18206 return c.header_
18207 }
18208
18209 func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) doRequest(alt string) (*http.Response, error) {
18210 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18211 var body io.Reader = nil
18212 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasession)
18213 if err != nil {
18214 return nil, err
18215 }
18216 c.urlParams_.Set("alt", alt)
18217 c.urlParams_.Set("prettyPrint", "false")
18218 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
18219 urls += "?" + c.urlParams_.Encode()
18220 req, err := http.NewRequest("PATCH", urls, body)
18221 if err != nil {
18222 return nil, err
18223 }
18224 req.Header = reqHeaders
18225 googleapi.Expand(req.URL, map[string]string{
18226 "name": c.name,
18227 })
18228 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18229 }
18230
18231
18232
18233
18234
18235
18236
18237 func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
18238 gensupport.SetOptions(c.urlParams_, opts...)
18239 res, err := c.doRequest("json")
18240 if res != nil && res.StatusCode == http.StatusNotModified {
18241 if res.Body != nil {
18242 res.Body.Close()
18243 }
18244 return nil, gensupport.WrapError(&googleapi.Error{
18245 Code: res.StatusCode,
18246 Header: res.Header,
18247 })
18248 }
18249 if err != nil {
18250 return nil, err
18251 }
18252 defer googleapi.CloseBody(res)
18253 if err := googleapi.CheckResponse(res); err != nil {
18254 return nil, gensupport.WrapError(err)
18255 }
18256 ret := &GoogleCloudDiscoveryengineV1betaSession{
18257 ServerResponse: googleapi.ServerResponse{
18258 Header: res.Header,
18259 HTTPStatusCode: res.StatusCode,
18260 },
18261 }
18262 target := &ret
18263 if err := gensupport.DecodeResponse(target, res); err != nil {
18264 return nil, err
18265 }
18266 return ret, nil
18267 }
18268
18269 type ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall struct {
18270 s *Service
18271 name string
18272 urlParams_ gensupport.URLParams
18273 ifNoneMatch_ string
18274 ctx_ context.Context
18275 header_ http.Header
18276 }
18277
18278
18279
18280
18281
18282
18283 func (r *ProjectsLocationsCollectionsDataStoresSessionsAnswersService) Get(name string) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
18284 c := &ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18285 c.name = name
18286 return c
18287 }
18288
18289
18290
18291
18292 func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
18293 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18294 return c
18295 }
18296
18297
18298
18299
18300 func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
18301 c.ifNoneMatch_ = entityTag
18302 return c
18303 }
18304
18305
18306 func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
18307 c.ctx_ = ctx
18308 return c
18309 }
18310
18311
18312
18313 func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Header() http.Header {
18314 if c.header_ == nil {
18315 c.header_ = make(http.Header)
18316 }
18317 return c.header_
18318 }
18319
18320 func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) doRequest(alt string) (*http.Response, error) {
18321 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18322 if c.ifNoneMatch_ != "" {
18323 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18324 }
18325 var body io.Reader = nil
18326 c.urlParams_.Set("alt", alt)
18327 c.urlParams_.Set("prettyPrint", "false")
18328 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
18329 urls += "?" + c.urlParams_.Encode()
18330 req, err := http.NewRequest("GET", urls, body)
18331 if err != nil {
18332 return nil, err
18333 }
18334 req.Header = reqHeaders
18335 googleapi.Expand(req.URL, map[string]string{
18336 "name": c.name,
18337 })
18338 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18339 }
18340
18341
18342
18343
18344
18345
18346
18347 func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaAnswer, error) {
18348 gensupport.SetOptions(c.urlParams_, opts...)
18349 res, err := c.doRequest("json")
18350 if res != nil && res.StatusCode == http.StatusNotModified {
18351 if res.Body != nil {
18352 res.Body.Close()
18353 }
18354 return nil, gensupport.WrapError(&googleapi.Error{
18355 Code: res.StatusCode,
18356 Header: res.Header,
18357 })
18358 }
18359 if err != nil {
18360 return nil, err
18361 }
18362 defer googleapi.CloseBody(res)
18363 if err := googleapi.CheckResponse(res); err != nil {
18364 return nil, gensupport.WrapError(err)
18365 }
18366 ret := &GoogleCloudDiscoveryengineV1betaAnswer{
18367 ServerResponse: googleapi.ServerResponse{
18368 Header: res.Header,
18369 HTTPStatusCode: res.StatusCode,
18370 },
18371 }
18372 target := &ret
18373 if err := gensupport.DecodeResponse(target, res); err != nil {
18374 return nil, err
18375 }
18376 return ret, nil
18377 }
18378
18379 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall struct {
18380 s *Service
18381 parent string
18382 googleclouddiscoveryenginev1betabatchverifytargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchVerifyTargetSitesRequest
18383 urlParams_ gensupport.URLParams
18384 ctx_ context.Context
18385 header_ http.Header
18386 }
18387
18388
18389
18390
18391
18392
18393
18394 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) BatchVerifyTargetSites(parent string, googleclouddiscoveryenginev1betabatchverifytargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchVerifyTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
18395 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18396 c.parent = parent
18397 c.googleclouddiscoveryenginev1betabatchverifytargetsitesrequest = googleclouddiscoveryenginev1betabatchverifytargetsitesrequest
18398 return c
18399 }
18400
18401
18402
18403
18404 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
18405 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18406 return c
18407 }
18408
18409
18410 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
18411 c.ctx_ = ctx
18412 return c
18413 }
18414
18415
18416
18417 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Header() http.Header {
18418 if c.header_ == nil {
18419 c.header_ = make(http.Header)
18420 }
18421 return c.header_
18422 }
18423
18424 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) doRequest(alt string) (*http.Response, error) {
18425 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18426 var body io.Reader = nil
18427 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betabatchverifytargetsitesrequest)
18428 if err != nil {
18429 return nil, err
18430 }
18431 c.urlParams_.Set("alt", alt)
18432 c.urlParams_.Set("prettyPrint", "false")
18433 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}:batchVerifyTargetSites")
18434 urls += "?" + c.urlParams_.Encode()
18435 req, err := http.NewRequest("POST", urls, body)
18436 if err != nil {
18437 return nil, err
18438 }
18439 req.Header = reqHeaders
18440 googleapi.Expand(req.URL, map[string]string{
18441 "parent": c.parent,
18442 })
18443 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18444 }
18445
18446
18447
18448
18449
18450
18451
18452 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
18453 gensupport.SetOptions(c.urlParams_, opts...)
18454 res, err := c.doRequest("json")
18455 if res != nil && res.StatusCode == http.StatusNotModified {
18456 if res.Body != nil {
18457 res.Body.Close()
18458 }
18459 return nil, gensupport.WrapError(&googleapi.Error{
18460 Code: res.StatusCode,
18461 Header: res.Header,
18462 })
18463 }
18464 if err != nil {
18465 return nil, err
18466 }
18467 defer googleapi.CloseBody(res)
18468 if err := googleapi.CheckResponse(res); err != nil {
18469 return nil, gensupport.WrapError(err)
18470 }
18471 ret := &GoogleLongrunningOperation{
18472 ServerResponse: googleapi.ServerResponse{
18473 Header: res.Header,
18474 HTTPStatusCode: res.StatusCode,
18475 },
18476 }
18477 target := &ret
18478 if err := gensupport.DecodeResponse(target, res); err != nil {
18479 return nil, err
18480 }
18481 return ret, nil
18482 }
18483
18484 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall struct {
18485 s *Service
18486 siteSearchEngine string
18487 googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchRequest
18488 urlParams_ gensupport.URLParams
18489 ctx_ context.Context
18490 header_ http.Header
18491 }
18492
18493
18494
18495
18496
18497
18498
18499 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) DisableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
18500 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18501 c.siteSearchEngine = siteSearchEngine
18502 c.googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest = googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest
18503 return c
18504 }
18505
18506
18507
18508
18509 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
18510 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18511 return c
18512 }
18513
18514
18515 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
18516 c.ctx_ = ctx
18517 return c
18518 }
18519
18520
18521
18522 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Header() http.Header {
18523 if c.header_ == nil {
18524 c.header_ = make(http.Header)
18525 }
18526 return c.header_
18527 }
18528
18529 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
18530 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18531 var body io.Reader = nil
18532 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest)
18533 if err != nil {
18534 return nil, err
18535 }
18536 c.urlParams_.Set("alt", alt)
18537 c.urlParams_.Set("prettyPrint", "false")
18538 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:disableAdvancedSiteSearch")
18539 urls += "?" + c.urlParams_.Encode()
18540 req, err := http.NewRequest("POST", urls, body)
18541 if err != nil {
18542 return nil, err
18543 }
18544 req.Header = reqHeaders
18545 googleapi.Expand(req.URL, map[string]string{
18546 "siteSearchEngine": c.siteSearchEngine,
18547 })
18548 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18549 }
18550
18551
18552
18553
18554
18555
18556
18557 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
18558 gensupport.SetOptions(c.urlParams_, opts...)
18559 res, err := c.doRequest("json")
18560 if res != nil && res.StatusCode == http.StatusNotModified {
18561 if res.Body != nil {
18562 res.Body.Close()
18563 }
18564 return nil, gensupport.WrapError(&googleapi.Error{
18565 Code: res.StatusCode,
18566 Header: res.Header,
18567 })
18568 }
18569 if err != nil {
18570 return nil, err
18571 }
18572 defer googleapi.CloseBody(res)
18573 if err := googleapi.CheckResponse(res); err != nil {
18574 return nil, gensupport.WrapError(err)
18575 }
18576 ret := &GoogleLongrunningOperation{
18577 ServerResponse: googleapi.ServerResponse{
18578 Header: res.Header,
18579 HTTPStatusCode: res.StatusCode,
18580 },
18581 }
18582 target := &ret
18583 if err := gensupport.DecodeResponse(target, res); err != nil {
18584 return nil, err
18585 }
18586 return ret, nil
18587 }
18588
18589 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall struct {
18590 s *Service
18591 siteSearchEngine string
18592 googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchRequest
18593 urlParams_ gensupport.URLParams
18594 ctx_ context.Context
18595 header_ http.Header
18596 }
18597
18598
18599
18600
18601
18602
18603
18604 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) EnableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
18605 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18606 c.siteSearchEngine = siteSearchEngine
18607 c.googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest = googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest
18608 return c
18609 }
18610
18611
18612
18613
18614 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
18615 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18616 return c
18617 }
18618
18619
18620 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
18621 c.ctx_ = ctx
18622 return c
18623 }
18624
18625
18626
18627 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Header() http.Header {
18628 if c.header_ == nil {
18629 c.header_ = make(http.Header)
18630 }
18631 return c.header_
18632 }
18633
18634 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
18635 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18636 var body io.Reader = nil
18637 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest)
18638 if err != nil {
18639 return nil, err
18640 }
18641 c.urlParams_.Set("alt", alt)
18642 c.urlParams_.Set("prettyPrint", "false")
18643 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:enableAdvancedSiteSearch")
18644 urls += "?" + c.urlParams_.Encode()
18645 req, err := http.NewRequest("POST", urls, body)
18646 if err != nil {
18647 return nil, err
18648 }
18649 req.Header = reqHeaders
18650 googleapi.Expand(req.URL, map[string]string{
18651 "siteSearchEngine": c.siteSearchEngine,
18652 })
18653 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18654 }
18655
18656
18657
18658
18659
18660
18661
18662 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
18663 gensupport.SetOptions(c.urlParams_, opts...)
18664 res, err := c.doRequest("json")
18665 if res != nil && res.StatusCode == http.StatusNotModified {
18666 if res.Body != nil {
18667 res.Body.Close()
18668 }
18669 return nil, gensupport.WrapError(&googleapi.Error{
18670 Code: res.StatusCode,
18671 Header: res.Header,
18672 })
18673 }
18674 if err != nil {
18675 return nil, err
18676 }
18677 defer googleapi.CloseBody(res)
18678 if err := googleapi.CheckResponse(res); err != nil {
18679 return nil, gensupport.WrapError(err)
18680 }
18681 ret := &GoogleLongrunningOperation{
18682 ServerResponse: googleapi.ServerResponse{
18683 Header: res.Header,
18684 HTTPStatusCode: res.StatusCode,
18685 },
18686 }
18687 target := &ret
18688 if err := gensupport.DecodeResponse(target, res); err != nil {
18689 return nil, err
18690 }
18691 return ret, nil
18692 }
18693
18694 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall struct {
18695 s *Service
18696 siteSearchEngine string
18697 urlParams_ gensupport.URLParams
18698 ifNoneMatch_ string
18699 ctx_ context.Context
18700 header_ http.Header
18701 }
18702
18703
18704
18705
18706
18707
18708
18709
18710
18711 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) FetchDomainVerificationStatus(siteSearchEngine string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
18712 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18713 c.siteSearchEngine = siteSearchEngine
18714 return c
18715 }
18716
18717
18718
18719
18720
18721
18722 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
18723 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18724 return c
18725 }
18726
18727
18728
18729
18730
18731
18732 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
18733 c.urlParams_.Set("pageToken", pageToken)
18734 return c
18735 }
18736
18737
18738
18739
18740 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
18741 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18742 return c
18743 }
18744
18745
18746
18747
18748 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
18749 c.ifNoneMatch_ = entityTag
18750 return c
18751 }
18752
18753
18754 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
18755 c.ctx_ = ctx
18756 return c
18757 }
18758
18759
18760
18761 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Header() http.Header {
18762 if c.header_ == nil {
18763 c.header_ = make(http.Header)
18764 }
18765 return c.header_
18766 }
18767
18768 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) doRequest(alt string) (*http.Response, error) {
18769 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18770 if c.ifNoneMatch_ != "" {
18771 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18772 }
18773 var body io.Reader = nil
18774 c.urlParams_.Set("alt", alt)
18775 c.urlParams_.Set("prettyPrint", "false")
18776 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:fetchDomainVerificationStatus")
18777 urls += "?" + c.urlParams_.Encode()
18778 req, err := http.NewRequest("GET", urls, body)
18779 if err != nil {
18780 return nil, err
18781 }
18782 req.Header = reqHeaders
18783 googleapi.Expand(req.URL, map[string]string{
18784 "siteSearchEngine": c.siteSearchEngine,
18785 })
18786 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18787 }
18788
18789
18790
18791
18792
18793
18794
18795 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse, error) {
18796 gensupport.SetOptions(c.urlParams_, opts...)
18797 res, err := c.doRequest("json")
18798 if res != nil && res.StatusCode == http.StatusNotModified {
18799 if res.Body != nil {
18800 res.Body.Close()
18801 }
18802 return nil, gensupport.WrapError(&googleapi.Error{
18803 Code: res.StatusCode,
18804 Header: res.Header,
18805 })
18806 }
18807 if err != nil {
18808 return nil, err
18809 }
18810 defer googleapi.CloseBody(res)
18811 if err := googleapi.CheckResponse(res); err != nil {
18812 return nil, gensupport.WrapError(err)
18813 }
18814 ret := &GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse{
18815 ServerResponse: googleapi.ServerResponse{
18816 Header: res.Header,
18817 HTTPStatusCode: res.StatusCode,
18818 },
18819 }
18820 target := &ret
18821 if err := gensupport.DecodeResponse(target, res); err != nil {
18822 return nil, err
18823 }
18824 return ret, nil
18825 }
18826
18827
18828
18829
18830 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaFetchDomainVerificationStatusResponse) error) error {
18831 c.ctx_ = ctx
18832 defer c.PageToken(c.urlParams_.Get("pageToken"))
18833 for {
18834 x, err := c.Do()
18835 if err != nil {
18836 return err
18837 }
18838 if err := f(x); err != nil {
18839 return err
18840 }
18841 if x.NextPageToken == "" {
18842 return nil
18843 }
18844 c.PageToken(x.NextPageToken)
18845 }
18846 }
18847
18848 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall struct {
18849 s *Service
18850 siteSearchEngine string
18851 googleclouddiscoveryenginev1betarecrawlurisrequest *GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest
18852 urlParams_ gensupport.URLParams
18853 ctx_ context.Context
18854 header_ http.Header
18855 }
18856
18857
18858
18859
18860
18861 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) RecrawlUris(siteSearchEngine string, googleclouddiscoveryenginev1betarecrawlurisrequest *GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
18862 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18863 c.siteSearchEngine = siteSearchEngine
18864 c.googleclouddiscoveryenginev1betarecrawlurisrequest = googleclouddiscoveryenginev1betarecrawlurisrequest
18865 return c
18866 }
18867
18868
18869
18870
18871 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
18872 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18873 return c
18874 }
18875
18876
18877 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
18878 c.ctx_ = ctx
18879 return c
18880 }
18881
18882
18883
18884 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Header() http.Header {
18885 if c.header_ == nil {
18886 c.header_ = make(http.Header)
18887 }
18888 return c.header_
18889 }
18890
18891 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(alt string) (*http.Response, error) {
18892 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18893 var body io.Reader = nil
18894 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betarecrawlurisrequest)
18895 if err != nil {
18896 return nil, err
18897 }
18898 c.urlParams_.Set("alt", alt)
18899 c.urlParams_.Set("prettyPrint", "false")
18900 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:recrawlUris")
18901 urls += "?" + c.urlParams_.Encode()
18902 req, err := http.NewRequest("POST", urls, body)
18903 if err != nil {
18904 return nil, err
18905 }
18906 req.Header = reqHeaders
18907 googleapi.Expand(req.URL, map[string]string{
18908 "siteSearchEngine": c.siteSearchEngine,
18909 })
18910 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18911 }
18912
18913
18914
18915
18916
18917
18918
18919 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
18920 gensupport.SetOptions(c.urlParams_, opts...)
18921 res, err := c.doRequest("json")
18922 if res != nil && res.StatusCode == http.StatusNotModified {
18923 if res.Body != nil {
18924 res.Body.Close()
18925 }
18926 return nil, gensupport.WrapError(&googleapi.Error{
18927 Code: res.StatusCode,
18928 Header: res.Header,
18929 })
18930 }
18931 if err != nil {
18932 return nil, err
18933 }
18934 defer googleapi.CloseBody(res)
18935 if err := googleapi.CheckResponse(res); err != nil {
18936 return nil, gensupport.WrapError(err)
18937 }
18938 ret := &GoogleLongrunningOperation{
18939 ServerResponse: googleapi.ServerResponse{
18940 Header: res.Header,
18941 HTTPStatusCode: res.StatusCode,
18942 },
18943 }
18944 target := &ret
18945 if err := gensupport.DecodeResponse(target, res); err != nil {
18946 return nil, err
18947 }
18948 return ret, nil
18949 }
18950
18951 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall struct {
18952 s *Service
18953 name string
18954 urlParams_ gensupport.URLParams
18955 ifNoneMatch_ string
18956 ctx_ context.Context
18957 header_ http.Header
18958 }
18959
18960
18961
18962
18963
18964
18965 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
18966 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18967 c.name = name
18968 return c
18969 }
18970
18971
18972
18973
18974 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
18975 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18976 return c
18977 }
18978
18979
18980
18981
18982 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
18983 c.ifNoneMatch_ = entityTag
18984 return c
18985 }
18986
18987
18988 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
18989 c.ctx_ = ctx
18990 return c
18991 }
18992
18993
18994
18995 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Header() http.Header {
18996 if c.header_ == nil {
18997 c.header_ = make(http.Header)
18998 }
18999 return c.header_
19000 }
19001
19002 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) doRequest(alt string) (*http.Response, error) {
19003 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19004 if c.ifNoneMatch_ != "" {
19005 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19006 }
19007 var body io.Reader = nil
19008 c.urlParams_.Set("alt", alt)
19009 c.urlParams_.Set("prettyPrint", "false")
19010 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
19011 urls += "?" + c.urlParams_.Encode()
19012 req, err := http.NewRequest("GET", urls, body)
19013 if err != nil {
19014 return nil, err
19015 }
19016 req.Header = reqHeaders
19017 googleapi.Expand(req.URL, map[string]string{
19018 "name": c.name,
19019 })
19020 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19021 }
19022
19023
19024
19025
19026
19027
19028
19029 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19030 gensupport.SetOptions(c.urlParams_, opts...)
19031 res, err := c.doRequest("json")
19032 if res != nil && res.StatusCode == http.StatusNotModified {
19033 if res.Body != nil {
19034 res.Body.Close()
19035 }
19036 return nil, gensupport.WrapError(&googleapi.Error{
19037 Code: res.StatusCode,
19038 Header: res.Header,
19039 })
19040 }
19041 if err != nil {
19042 return nil, err
19043 }
19044 defer googleapi.CloseBody(res)
19045 if err := googleapi.CheckResponse(res); err != nil {
19046 return nil, gensupport.WrapError(err)
19047 }
19048 ret := &GoogleLongrunningOperation{
19049 ServerResponse: googleapi.ServerResponse{
19050 Header: res.Header,
19051 HTTPStatusCode: res.StatusCode,
19052 },
19053 }
19054 target := &ret
19055 if err := gensupport.DecodeResponse(target, res); err != nil {
19056 return nil, err
19057 }
19058 return ret, nil
19059 }
19060
19061 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall struct {
19062 s *Service
19063 name string
19064 urlParams_ gensupport.URLParams
19065 ifNoneMatch_ string
19066 ctx_ context.Context
19067 header_ http.Header
19068 }
19069
19070
19071
19072
19073
19074 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
19075 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19076 c.name = name
19077 return c
19078 }
19079
19080
19081 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
19082 c.urlParams_.Set("filter", filter)
19083 return c
19084 }
19085
19086
19087
19088 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
19089 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19090 return c
19091 }
19092
19093
19094
19095 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
19096 c.urlParams_.Set("pageToken", pageToken)
19097 return c
19098 }
19099
19100
19101
19102
19103 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
19104 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19105 return c
19106 }
19107
19108
19109
19110
19111 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
19112 c.ifNoneMatch_ = entityTag
19113 return c
19114 }
19115
19116
19117 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
19118 c.ctx_ = ctx
19119 return c
19120 }
19121
19122
19123
19124 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Header() http.Header {
19125 if c.header_ == nil {
19126 c.header_ = make(http.Header)
19127 }
19128 return c.header_
19129 }
19130
19131 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) doRequest(alt string) (*http.Response, error) {
19132 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19133 if c.ifNoneMatch_ != "" {
19134 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19135 }
19136 var body io.Reader = nil
19137 c.urlParams_.Set("alt", alt)
19138 c.urlParams_.Set("prettyPrint", "false")
19139 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
19140 urls += "?" + c.urlParams_.Encode()
19141 req, err := http.NewRequest("GET", urls, body)
19142 if err != nil {
19143 return nil, err
19144 }
19145 req.Header = reqHeaders
19146 googleapi.Expand(req.URL, map[string]string{
19147 "name": c.name,
19148 })
19149 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19150 }
19151
19152
19153
19154
19155
19156
19157
19158 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
19159 gensupport.SetOptions(c.urlParams_, opts...)
19160 res, err := c.doRequest("json")
19161 if res != nil && res.StatusCode == http.StatusNotModified {
19162 if res.Body != nil {
19163 res.Body.Close()
19164 }
19165 return nil, gensupport.WrapError(&googleapi.Error{
19166 Code: res.StatusCode,
19167 Header: res.Header,
19168 })
19169 }
19170 if err != nil {
19171 return nil, err
19172 }
19173 defer googleapi.CloseBody(res)
19174 if err := googleapi.CheckResponse(res); err != nil {
19175 return nil, gensupport.WrapError(err)
19176 }
19177 ret := &GoogleLongrunningListOperationsResponse{
19178 ServerResponse: googleapi.ServerResponse{
19179 Header: res.Header,
19180 HTTPStatusCode: res.StatusCode,
19181 },
19182 }
19183 target := &ret
19184 if err := gensupport.DecodeResponse(target, res); err != nil {
19185 return nil, err
19186 }
19187 return ret, nil
19188 }
19189
19190
19191
19192
19193 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
19194 c.ctx_ = ctx
19195 defer c.PageToken(c.urlParams_.Get("pageToken"))
19196 for {
19197 x, err := c.Do()
19198 if err != nil {
19199 return err
19200 }
19201 if err := f(x); err != nil {
19202 return err
19203 }
19204 if x.NextPageToken == "" {
19205 return nil
19206 }
19207 c.PageToken(x.NextPageToken)
19208 }
19209 }
19210
19211 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct {
19212 s *Service
19213 parent string
19214 googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest
19215 urlParams_ gensupport.URLParams
19216 ctx_ context.Context
19217 header_ http.Header
19218 }
19219
19220
19221
19222
19223
19224
19225
19226 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
19227 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19228 c.parent = parent
19229 c.googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest = googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest
19230 return c
19231 }
19232
19233
19234
19235
19236 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
19237 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19238 return c
19239 }
19240
19241
19242 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
19243 c.ctx_ = ctx
19244 return c
19245 }
19246
19247
19248
19249 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header {
19250 if c.header_ == nil {
19251 c.header_ = make(http.Header)
19252 }
19253 return c.header_
19254 }
19255
19256 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
19257 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19258 var body io.Reader = nil
19259 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest)
19260 if err != nil {
19261 return nil, err
19262 }
19263 c.urlParams_.Set("alt", alt)
19264 c.urlParams_.Set("prettyPrint", "false")
19265 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites:batchCreate")
19266 urls += "?" + c.urlParams_.Encode()
19267 req, err := http.NewRequest("POST", urls, body)
19268 if err != nil {
19269 return nil, err
19270 }
19271 req.Header = reqHeaders
19272 googleapi.Expand(req.URL, map[string]string{
19273 "parent": c.parent,
19274 })
19275 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19276 }
19277
19278
19279
19280
19281
19282
19283
19284 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19285 gensupport.SetOptions(c.urlParams_, opts...)
19286 res, err := c.doRequest("json")
19287 if res != nil && res.StatusCode == http.StatusNotModified {
19288 if res.Body != nil {
19289 res.Body.Close()
19290 }
19291 return nil, gensupport.WrapError(&googleapi.Error{
19292 Code: res.StatusCode,
19293 Header: res.Header,
19294 })
19295 }
19296 if err != nil {
19297 return nil, err
19298 }
19299 defer googleapi.CloseBody(res)
19300 if err := googleapi.CheckResponse(res); err != nil {
19301 return nil, gensupport.WrapError(err)
19302 }
19303 ret := &GoogleLongrunningOperation{
19304 ServerResponse: googleapi.ServerResponse{
19305 Header: res.Header,
19306 HTTPStatusCode: res.StatusCode,
19307 },
19308 }
19309 target := &ret
19310 if err := gensupport.DecodeResponse(target, res); err != nil {
19311 return nil, err
19312 }
19313 return ret, nil
19314 }
19315
19316 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall struct {
19317 s *Service
19318 parent string
19319 googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite
19320 urlParams_ gensupport.URLParams
19321 ctx_ context.Context
19322 header_ http.Header
19323 }
19324
19325
19326
19327
19328
19329
19330 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
19331 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19332 c.parent = parent
19333 c.googleclouddiscoveryenginev1betatargetsite = googleclouddiscoveryenginev1betatargetsite
19334 return c
19335 }
19336
19337
19338
19339
19340 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
19341 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19342 return c
19343 }
19344
19345
19346 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
19347 c.ctx_ = ctx
19348 return c
19349 }
19350
19351
19352
19353 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header {
19354 if c.header_ == nil {
19355 c.header_ = make(http.Header)
19356 }
19357 return c.header_
19358 }
19359
19360 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) {
19361 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19362 var body io.Reader = nil
19363 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatargetsite)
19364 if err != nil {
19365 return nil, err
19366 }
19367 c.urlParams_.Set("alt", alt)
19368 c.urlParams_.Set("prettyPrint", "false")
19369 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites")
19370 urls += "?" + c.urlParams_.Encode()
19371 req, err := http.NewRequest("POST", urls, body)
19372 if err != nil {
19373 return nil, err
19374 }
19375 req.Header = reqHeaders
19376 googleapi.Expand(req.URL, map[string]string{
19377 "parent": c.parent,
19378 })
19379 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19380 }
19381
19382
19383
19384
19385
19386
19387
19388 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19389 gensupport.SetOptions(c.urlParams_, opts...)
19390 res, err := c.doRequest("json")
19391 if res != nil && res.StatusCode == http.StatusNotModified {
19392 if res.Body != nil {
19393 res.Body.Close()
19394 }
19395 return nil, gensupport.WrapError(&googleapi.Error{
19396 Code: res.StatusCode,
19397 Header: res.Header,
19398 })
19399 }
19400 if err != nil {
19401 return nil, err
19402 }
19403 defer googleapi.CloseBody(res)
19404 if err := googleapi.CheckResponse(res); err != nil {
19405 return nil, gensupport.WrapError(err)
19406 }
19407 ret := &GoogleLongrunningOperation{
19408 ServerResponse: googleapi.ServerResponse{
19409 Header: res.Header,
19410 HTTPStatusCode: res.StatusCode,
19411 },
19412 }
19413 target := &ret
19414 if err := gensupport.DecodeResponse(target, res); err != nil {
19415 return nil, err
19416 }
19417 return ret, nil
19418 }
19419
19420 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall struct {
19421 s *Service
19422 name string
19423 urlParams_ gensupport.URLParams
19424 ctx_ context.Context
19425 header_ http.Header
19426 }
19427
19428
19429
19430
19431
19432
19433
19434
19435
19436 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
19437 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19438 c.name = name
19439 return c
19440 }
19441
19442
19443
19444
19445 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
19446 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19447 return c
19448 }
19449
19450
19451 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
19452 c.ctx_ = ctx
19453 return c
19454 }
19455
19456
19457
19458 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Header() http.Header {
19459 if c.header_ == nil {
19460 c.header_ = make(http.Header)
19461 }
19462 return c.header_
19463 }
19464
19465 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) doRequest(alt string) (*http.Response, error) {
19466 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19467 var body io.Reader = nil
19468 c.urlParams_.Set("alt", alt)
19469 c.urlParams_.Set("prettyPrint", "false")
19470 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
19471 urls += "?" + c.urlParams_.Encode()
19472 req, err := http.NewRequest("DELETE", urls, body)
19473 if err != nil {
19474 return nil, err
19475 }
19476 req.Header = reqHeaders
19477 googleapi.Expand(req.URL, map[string]string{
19478 "name": c.name,
19479 })
19480 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19481 }
19482
19483
19484
19485
19486
19487
19488
19489 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19490 gensupport.SetOptions(c.urlParams_, opts...)
19491 res, err := c.doRequest("json")
19492 if res != nil && res.StatusCode == http.StatusNotModified {
19493 if res.Body != nil {
19494 res.Body.Close()
19495 }
19496 return nil, gensupport.WrapError(&googleapi.Error{
19497 Code: res.StatusCode,
19498 Header: res.Header,
19499 })
19500 }
19501 if err != nil {
19502 return nil, err
19503 }
19504 defer googleapi.CloseBody(res)
19505 if err := googleapi.CheckResponse(res); err != nil {
19506 return nil, gensupport.WrapError(err)
19507 }
19508 ret := &GoogleLongrunningOperation{
19509 ServerResponse: googleapi.ServerResponse{
19510 Header: res.Header,
19511 HTTPStatusCode: res.StatusCode,
19512 },
19513 }
19514 target := &ret
19515 if err := gensupport.DecodeResponse(target, res); err != nil {
19516 return nil, err
19517 }
19518 return ret, nil
19519 }
19520
19521 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall struct {
19522 s *Service
19523 name string
19524 urlParams_ gensupport.URLParams
19525 ifNoneMatch_ string
19526 ctx_ context.Context
19527 header_ http.Header
19528 }
19529
19530
19531
19532
19533
19534
19535
19536
19537
19538 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
19539 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19540 c.name = name
19541 return c
19542 }
19543
19544
19545
19546
19547 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
19548 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19549 return c
19550 }
19551
19552
19553
19554
19555 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
19556 c.ifNoneMatch_ = entityTag
19557 return c
19558 }
19559
19560
19561 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
19562 c.ctx_ = ctx
19563 return c
19564 }
19565
19566
19567
19568 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Header() http.Header {
19569 if c.header_ == nil {
19570 c.header_ = make(http.Header)
19571 }
19572 return c.header_
19573 }
19574
19575 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) doRequest(alt string) (*http.Response, error) {
19576 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19577 if c.ifNoneMatch_ != "" {
19578 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19579 }
19580 var body io.Reader = nil
19581 c.urlParams_.Set("alt", alt)
19582 c.urlParams_.Set("prettyPrint", "false")
19583 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
19584 urls += "?" + c.urlParams_.Encode()
19585 req, err := http.NewRequest("GET", urls, body)
19586 if err != nil {
19587 return nil, err
19588 }
19589 req.Header = reqHeaders
19590 googleapi.Expand(req.URL, map[string]string{
19591 "name": c.name,
19592 })
19593 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19594 }
19595
19596
19597
19598
19599
19600
19601
19602 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaTargetSite, error) {
19603 gensupport.SetOptions(c.urlParams_, opts...)
19604 res, err := c.doRequest("json")
19605 if res != nil && res.StatusCode == http.StatusNotModified {
19606 if res.Body != nil {
19607 res.Body.Close()
19608 }
19609 return nil, gensupport.WrapError(&googleapi.Error{
19610 Code: res.StatusCode,
19611 Header: res.Header,
19612 })
19613 }
19614 if err != nil {
19615 return nil, err
19616 }
19617 defer googleapi.CloseBody(res)
19618 if err := googleapi.CheckResponse(res); err != nil {
19619 return nil, gensupport.WrapError(err)
19620 }
19621 ret := &GoogleCloudDiscoveryengineV1betaTargetSite{
19622 ServerResponse: googleapi.ServerResponse{
19623 Header: res.Header,
19624 HTTPStatusCode: res.StatusCode,
19625 },
19626 }
19627 target := &ret
19628 if err := gensupport.DecodeResponse(target, res); err != nil {
19629 return nil, err
19630 }
19631 return ret, nil
19632 }
19633
19634 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall struct {
19635 s *Service
19636 parent string
19637 urlParams_ gensupport.URLParams
19638 ifNoneMatch_ string
19639 ctx_ context.Context
19640 header_ http.Header
19641 }
19642
19643
19644
19645
19646
19647
19648
19649
19650 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) List(parent string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
19651 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19652 c.parent = parent
19653 return c
19654 }
19655
19656
19657
19658
19659
19660
19661 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
19662 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19663 return c
19664 }
19665
19666
19667
19668
19669
19670 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
19671 c.urlParams_.Set("pageToken", pageToken)
19672 return c
19673 }
19674
19675
19676
19677
19678 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
19679 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19680 return c
19681 }
19682
19683
19684
19685
19686 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
19687 c.ifNoneMatch_ = entityTag
19688 return c
19689 }
19690
19691
19692 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
19693 c.ctx_ = ctx
19694 return c
19695 }
19696
19697
19698
19699 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Header() http.Header {
19700 if c.header_ == nil {
19701 c.header_ = make(http.Header)
19702 }
19703 return c.header_
19704 }
19705
19706 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) doRequest(alt string) (*http.Response, error) {
19707 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19708 if c.ifNoneMatch_ != "" {
19709 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19710 }
19711 var body io.Reader = nil
19712 c.urlParams_.Set("alt", alt)
19713 c.urlParams_.Set("prettyPrint", "false")
19714 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites")
19715 urls += "?" + c.urlParams_.Encode()
19716 req, err := http.NewRequest("GET", urls, body)
19717 if err != nil {
19718 return nil, err
19719 }
19720 req.Header = reqHeaders
19721 googleapi.Expand(req.URL, map[string]string{
19722 "parent": c.parent,
19723 })
19724 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19725 }
19726
19727
19728
19729
19730
19731
19732
19733 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListTargetSitesResponse, error) {
19734 gensupport.SetOptions(c.urlParams_, opts...)
19735 res, err := c.doRequest("json")
19736 if res != nil && res.StatusCode == http.StatusNotModified {
19737 if res.Body != nil {
19738 res.Body.Close()
19739 }
19740 return nil, gensupport.WrapError(&googleapi.Error{
19741 Code: res.StatusCode,
19742 Header: res.Header,
19743 })
19744 }
19745 if err != nil {
19746 return nil, err
19747 }
19748 defer googleapi.CloseBody(res)
19749 if err := googleapi.CheckResponse(res); err != nil {
19750 return nil, gensupport.WrapError(err)
19751 }
19752 ret := &GoogleCloudDiscoveryengineV1betaListTargetSitesResponse{
19753 ServerResponse: googleapi.ServerResponse{
19754 Header: res.Header,
19755 HTTPStatusCode: res.StatusCode,
19756 },
19757 }
19758 target := &ret
19759 if err := gensupport.DecodeResponse(target, res); err != nil {
19760 return nil, err
19761 }
19762 return ret, nil
19763 }
19764
19765
19766
19767
19768 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListTargetSitesResponse) error) error {
19769 c.ctx_ = ctx
19770 defer c.PageToken(c.urlParams_.Get("pageToken"))
19771 for {
19772 x, err := c.Do()
19773 if err != nil {
19774 return err
19775 }
19776 if err := f(x); err != nil {
19777 return err
19778 }
19779 if x.NextPageToken == "" {
19780 return nil
19781 }
19782 c.PageToken(x.NextPageToken)
19783 }
19784 }
19785
19786 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall struct {
19787 s *Service
19788 name string
19789 googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite
19790 urlParams_ gensupport.URLParams
19791 ctx_ context.Context
19792 header_ http.Header
19793 }
19794
19795
19796
19797
19798
19799
19800
19801 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Patch(name string, googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
19802 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19803 c.name = name
19804 c.googleclouddiscoveryenginev1betatargetsite = googleclouddiscoveryenginev1betatargetsite
19805 return c
19806 }
19807
19808
19809
19810
19811 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
19812 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19813 return c
19814 }
19815
19816
19817 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
19818 c.ctx_ = ctx
19819 return c
19820 }
19821
19822
19823
19824 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Header() http.Header {
19825 if c.header_ == nil {
19826 c.header_ = make(http.Header)
19827 }
19828 return c.header_
19829 }
19830
19831 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequest(alt string) (*http.Response, error) {
19832 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19833 var body io.Reader = nil
19834 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatargetsite)
19835 if err != nil {
19836 return nil, err
19837 }
19838 c.urlParams_.Set("alt", alt)
19839 c.urlParams_.Set("prettyPrint", "false")
19840 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
19841 urls += "?" + c.urlParams_.Encode()
19842 req, err := http.NewRequest("PATCH", urls, body)
19843 if err != nil {
19844 return nil, err
19845 }
19846 req.Header = reqHeaders
19847 googleapi.Expand(req.URL, map[string]string{
19848 "name": c.name,
19849 })
19850 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19851 }
19852
19853
19854
19855
19856
19857
19858
19859 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19860 gensupport.SetOptions(c.urlParams_, opts...)
19861 res, err := c.doRequest("json")
19862 if res != nil && res.StatusCode == http.StatusNotModified {
19863 if res.Body != nil {
19864 res.Body.Close()
19865 }
19866 return nil, gensupport.WrapError(&googleapi.Error{
19867 Code: res.StatusCode,
19868 Header: res.Header,
19869 })
19870 }
19871 if err != nil {
19872 return nil, err
19873 }
19874 defer googleapi.CloseBody(res)
19875 if err := googleapi.CheckResponse(res); err != nil {
19876 return nil, gensupport.WrapError(err)
19877 }
19878 ret := &GoogleLongrunningOperation{
19879 ServerResponse: googleapi.ServerResponse{
19880 Header: res.Header,
19881 HTTPStatusCode: res.StatusCode,
19882 },
19883 }
19884 target := &ret
19885 if err := gensupport.DecodeResponse(target, res); err != nil {
19886 return nil, err
19887 }
19888 return ret, nil
19889 }
19890
19891 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall struct {
19892 s *Service
19893 name string
19894 urlParams_ gensupport.URLParams
19895 ifNoneMatch_ string
19896 ctx_ context.Context
19897 header_ http.Header
19898 }
19899
19900
19901
19902
19903
19904
19905 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
19906 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19907 c.name = name
19908 return c
19909 }
19910
19911
19912
19913
19914 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
19915 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19916 return c
19917 }
19918
19919
19920
19921
19922 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
19923 c.ifNoneMatch_ = entityTag
19924 return c
19925 }
19926
19927
19928 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
19929 c.ctx_ = ctx
19930 return c
19931 }
19932
19933
19934
19935 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Header() http.Header {
19936 if c.header_ == nil {
19937 c.header_ = make(http.Header)
19938 }
19939 return c.header_
19940 }
19941
19942 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
19943 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19944 if c.ifNoneMatch_ != "" {
19945 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19946 }
19947 var body io.Reader = nil
19948 c.urlParams_.Set("alt", alt)
19949 c.urlParams_.Set("prettyPrint", "false")
19950 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
19951 urls += "?" + c.urlParams_.Encode()
19952 req, err := http.NewRequest("GET", urls, body)
19953 if err != nil {
19954 return nil, err
19955 }
19956 req.Header = reqHeaders
19957 googleapi.Expand(req.URL, map[string]string{
19958 "name": c.name,
19959 })
19960 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19961 }
19962
19963
19964
19965
19966
19967
19968
19969 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19970 gensupport.SetOptions(c.urlParams_, opts...)
19971 res, err := c.doRequest("json")
19972 if res != nil && res.StatusCode == http.StatusNotModified {
19973 if res.Body != nil {
19974 res.Body.Close()
19975 }
19976 return nil, gensupport.WrapError(&googleapi.Error{
19977 Code: res.StatusCode,
19978 Header: res.Header,
19979 })
19980 }
19981 if err != nil {
19982 return nil, err
19983 }
19984 defer googleapi.CloseBody(res)
19985 if err := googleapi.CheckResponse(res); err != nil {
19986 return nil, gensupport.WrapError(err)
19987 }
19988 ret := &GoogleLongrunningOperation{
19989 ServerResponse: googleapi.ServerResponse{
19990 Header: res.Header,
19991 HTTPStatusCode: res.StatusCode,
19992 },
19993 }
19994 target := &ret
19995 if err := gensupport.DecodeResponse(target, res); err != nil {
19996 return nil, err
19997 }
19998 return ret, nil
19999 }
20000
20001 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall struct {
20002 s *Service
20003 name string
20004 urlParams_ gensupport.URLParams
20005 ifNoneMatch_ string
20006 ctx_ context.Context
20007 header_ http.Header
20008 }
20009
20010
20011
20012
20013
20014 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
20015 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20016 c.name = name
20017 return c
20018 }
20019
20020
20021 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
20022 c.urlParams_.Set("filter", filter)
20023 return c
20024 }
20025
20026
20027
20028 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
20029 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20030 return c
20031 }
20032
20033
20034
20035 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
20036 c.urlParams_.Set("pageToken", pageToken)
20037 return c
20038 }
20039
20040
20041
20042
20043 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
20044 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20045 return c
20046 }
20047
20048
20049
20050
20051 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
20052 c.ifNoneMatch_ = entityTag
20053 return c
20054 }
20055
20056
20057 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
20058 c.ctx_ = ctx
20059 return c
20060 }
20061
20062
20063
20064 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Header() http.Header {
20065 if c.header_ == nil {
20066 c.header_ = make(http.Header)
20067 }
20068 return c.header_
20069 }
20070
20071 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) doRequest(alt string) (*http.Response, error) {
20072 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20073 if c.ifNoneMatch_ != "" {
20074 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20075 }
20076 var body io.Reader = nil
20077 c.urlParams_.Set("alt", alt)
20078 c.urlParams_.Set("prettyPrint", "false")
20079 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
20080 urls += "?" + c.urlParams_.Encode()
20081 req, err := http.NewRequest("GET", urls, body)
20082 if err != nil {
20083 return nil, err
20084 }
20085 req.Header = reqHeaders
20086 googleapi.Expand(req.URL, map[string]string{
20087 "name": c.name,
20088 })
20089 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20090 }
20091
20092
20093
20094
20095
20096
20097
20098 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
20099 gensupport.SetOptions(c.urlParams_, opts...)
20100 res, err := c.doRequest("json")
20101 if res != nil && res.StatusCode == http.StatusNotModified {
20102 if res.Body != nil {
20103 res.Body.Close()
20104 }
20105 return nil, gensupport.WrapError(&googleapi.Error{
20106 Code: res.StatusCode,
20107 Header: res.Header,
20108 })
20109 }
20110 if err != nil {
20111 return nil, err
20112 }
20113 defer googleapi.CloseBody(res)
20114 if err := googleapi.CheckResponse(res); err != nil {
20115 return nil, gensupport.WrapError(err)
20116 }
20117 ret := &GoogleLongrunningListOperationsResponse{
20118 ServerResponse: googleapi.ServerResponse{
20119 Header: res.Header,
20120 HTTPStatusCode: res.StatusCode,
20121 },
20122 }
20123 target := &ret
20124 if err := gensupport.DecodeResponse(target, res); err != nil {
20125 return nil, err
20126 }
20127 return ret, nil
20128 }
20129
20130
20131
20132
20133 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
20134 c.ctx_ = ctx
20135 defer c.PageToken(c.urlParams_.Get("pageToken"))
20136 for {
20137 x, err := c.Do()
20138 if err != nil {
20139 return err
20140 }
20141 if err := f(x); err != nil {
20142 return err
20143 }
20144 if x.NextPageToken == "" {
20145 return nil
20146 }
20147 c.PageToken(x.NextPageToken)
20148 }
20149 }
20150
20151 type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall struct {
20152 s *Service
20153 parent string
20154 googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest
20155 urlParams_ gensupport.URLParams
20156 ctx_ context.Context
20157 header_ http.Header
20158 }
20159
20160
20161
20162
20163
20164
20165 func (r *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService) Import(parent string, googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
20166 c := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20167 c.parent = parent
20168 c.googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest = googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest
20169 return c
20170 }
20171
20172
20173
20174
20175 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
20176 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20177 return c
20178 }
20179
20180
20181 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
20182 c.ctx_ = ctx
20183 return c
20184 }
20185
20186
20187
20188 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Header() http.Header {
20189 if c.header_ == nil {
20190 c.header_ = make(http.Header)
20191 }
20192 return c.header_
20193 }
20194
20195 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) doRequest(alt string) (*http.Response, error) {
20196 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20197 var body io.Reader = nil
20198 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest)
20199 if err != nil {
20200 return nil, err
20201 }
20202 c.urlParams_.Set("alt", alt)
20203 c.urlParams_.Set("prettyPrint", "false")
20204 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/suggestionDenyListEntries:import")
20205 urls += "?" + c.urlParams_.Encode()
20206 req, err := http.NewRequest("POST", urls, body)
20207 if err != nil {
20208 return nil, err
20209 }
20210 req.Header = reqHeaders
20211 googleapi.Expand(req.URL, map[string]string{
20212 "parent": c.parent,
20213 })
20214 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20215 }
20216
20217
20218
20219
20220
20221
20222
20223 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20224 gensupport.SetOptions(c.urlParams_, opts...)
20225 res, err := c.doRequest("json")
20226 if res != nil && res.StatusCode == http.StatusNotModified {
20227 if res.Body != nil {
20228 res.Body.Close()
20229 }
20230 return nil, gensupport.WrapError(&googleapi.Error{
20231 Code: res.StatusCode,
20232 Header: res.Header,
20233 })
20234 }
20235 if err != nil {
20236 return nil, err
20237 }
20238 defer googleapi.CloseBody(res)
20239 if err := googleapi.CheckResponse(res); err != nil {
20240 return nil, gensupport.WrapError(err)
20241 }
20242 ret := &GoogleLongrunningOperation{
20243 ServerResponse: googleapi.ServerResponse{
20244 Header: res.Header,
20245 HTTPStatusCode: res.StatusCode,
20246 },
20247 }
20248 target := &ret
20249 if err := gensupport.DecodeResponse(target, res); err != nil {
20250 return nil, err
20251 }
20252 return ret, nil
20253 }
20254
20255 type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall struct {
20256 s *Service
20257 parent string
20258 googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesRequest
20259 urlParams_ gensupport.URLParams
20260 ctx_ context.Context
20261 header_ http.Header
20262 }
20263
20264
20265
20266
20267
20268
20269 func (r *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService) Purge(parent string, googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesRequest) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
20270 c := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20271 c.parent = parent
20272 c.googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest = googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest
20273 return c
20274 }
20275
20276
20277
20278
20279 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
20280 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20281 return c
20282 }
20283
20284
20285 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
20286 c.ctx_ = ctx
20287 return c
20288 }
20289
20290
20291
20292 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Header() http.Header {
20293 if c.header_ == nil {
20294 c.header_ = make(http.Header)
20295 }
20296 return c.header_
20297 }
20298
20299 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) doRequest(alt string) (*http.Response, error) {
20300 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20301 var body io.Reader = nil
20302 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest)
20303 if err != nil {
20304 return nil, err
20305 }
20306 c.urlParams_.Set("alt", alt)
20307 c.urlParams_.Set("prettyPrint", "false")
20308 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/suggestionDenyListEntries:purge")
20309 urls += "?" + c.urlParams_.Encode()
20310 req, err := http.NewRequest("POST", urls, body)
20311 if err != nil {
20312 return nil, err
20313 }
20314 req.Header = reqHeaders
20315 googleapi.Expand(req.URL, map[string]string{
20316 "parent": c.parent,
20317 })
20318 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20319 }
20320
20321
20322
20323
20324
20325
20326
20327 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20328 gensupport.SetOptions(c.urlParams_, opts...)
20329 res, err := c.doRequest("json")
20330 if res != nil && res.StatusCode == http.StatusNotModified {
20331 if res.Body != nil {
20332 res.Body.Close()
20333 }
20334 return nil, gensupport.WrapError(&googleapi.Error{
20335 Code: res.StatusCode,
20336 Header: res.Header,
20337 })
20338 }
20339 if err != nil {
20340 return nil, err
20341 }
20342 defer googleapi.CloseBody(res)
20343 if err := googleapi.CheckResponse(res); err != nil {
20344 return nil, gensupport.WrapError(err)
20345 }
20346 ret := &GoogleLongrunningOperation{
20347 ServerResponse: googleapi.ServerResponse{
20348 Header: res.Header,
20349 HTTPStatusCode: res.StatusCode,
20350 },
20351 }
20352 target := &ret
20353 if err := gensupport.DecodeResponse(target, res); err != nil {
20354 return nil, err
20355 }
20356 return ret, nil
20357 }
20358
20359 type ProjectsLocationsCollectionsDataStoresUserEventsCollectCall struct {
20360 s *Service
20361 parent string
20362 urlParams_ gensupport.URLParams
20363 ifNoneMatch_ string
20364 ctx_ context.Context
20365 header_ http.Header
20366 }
20367
20368
20369
20370
20371
20372
20373
20374
20375
20376 func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Collect(parent string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
20377 c := &ProjectsLocationsCollectionsDataStoresUserEventsCollectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20378 c.parent = parent
20379 return c
20380 }
20381
20382
20383
20384
20385 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Ets(ets int64) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
20386 c.urlParams_.Set("ets", fmt.Sprint(ets))
20387 return c
20388 }
20389
20390
20391
20392
20393
20394 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Uri(uri string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
20395 c.urlParams_.Set("uri", uri)
20396 return c
20397 }
20398
20399
20400
20401 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) UserEvent(userEvent string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
20402 c.urlParams_.Set("userEvent", userEvent)
20403 return c
20404 }
20405
20406
20407
20408
20409 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
20410 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20411 return c
20412 }
20413
20414
20415
20416
20417 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
20418 c.ifNoneMatch_ = entityTag
20419 return c
20420 }
20421
20422
20423 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
20424 c.ctx_ = ctx
20425 return c
20426 }
20427
20428
20429
20430 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Header() http.Header {
20431 if c.header_ == nil {
20432 c.header_ = make(http.Header)
20433 }
20434 return c.header_
20435 }
20436
20437 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) {
20438 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20439 if c.ifNoneMatch_ != "" {
20440 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20441 }
20442 var body io.Reader = nil
20443 c.urlParams_.Set("alt", alt)
20444 c.urlParams_.Set("prettyPrint", "false")
20445 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:collect")
20446 urls += "?" + c.urlParams_.Encode()
20447 req, err := http.NewRequest("GET", urls, body)
20448 if err != nil {
20449 return nil, err
20450 }
20451 req.Header = reqHeaders
20452 googleapi.Expand(req.URL, map[string]string{
20453 "parent": c.parent,
20454 })
20455 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20456 }
20457
20458
20459
20460
20461
20462
20463
20464 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
20465 gensupport.SetOptions(c.urlParams_, opts...)
20466 res, err := c.doRequest("json")
20467 if res != nil && res.StatusCode == http.StatusNotModified {
20468 if res.Body != nil {
20469 res.Body.Close()
20470 }
20471 return nil, gensupport.WrapError(&googleapi.Error{
20472 Code: res.StatusCode,
20473 Header: res.Header,
20474 })
20475 }
20476 if err != nil {
20477 return nil, err
20478 }
20479 defer googleapi.CloseBody(res)
20480 if err := googleapi.CheckResponse(res); err != nil {
20481 return nil, gensupport.WrapError(err)
20482 }
20483 ret := &GoogleApiHttpBody{
20484 ServerResponse: googleapi.ServerResponse{
20485 Header: res.Header,
20486 HTTPStatusCode: res.StatusCode,
20487 },
20488 }
20489 target := &ret
20490 if err := gensupport.DecodeResponse(target, res); err != nil {
20491 return nil, err
20492 }
20493 return ret, nil
20494 }
20495
20496 type ProjectsLocationsCollectionsDataStoresUserEventsImportCall struct {
20497 s *Service
20498 parent string
20499 googleclouddiscoveryenginev1betaimportusereventsrequest *GoogleCloudDiscoveryengineV1betaImportUserEventsRequest
20500 urlParams_ gensupport.URLParams
20501 ctx_ context.Context
20502 header_ http.Header
20503 }
20504
20505
20506
20507
20508
20509
20510
20511
20512
20513
20514 func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Import(parent string, googleclouddiscoveryenginev1betaimportusereventsrequest *GoogleCloudDiscoveryengineV1betaImportUserEventsRequest) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
20515 c := &ProjectsLocationsCollectionsDataStoresUserEventsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20516 c.parent = parent
20517 c.googleclouddiscoveryenginev1betaimportusereventsrequest = googleclouddiscoveryenginev1betaimportusereventsrequest
20518 return c
20519 }
20520
20521
20522
20523
20524 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
20525 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20526 return c
20527 }
20528
20529
20530 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
20531 c.ctx_ = ctx
20532 return c
20533 }
20534
20535
20536
20537 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Header() http.Header {
20538 if c.header_ == nil {
20539 c.header_ = make(http.Header)
20540 }
20541 return c.header_
20542 }
20543
20544 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) {
20545 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20546 var body io.Reader = nil
20547 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaimportusereventsrequest)
20548 if err != nil {
20549 return nil, err
20550 }
20551 c.urlParams_.Set("alt", alt)
20552 c.urlParams_.Set("prettyPrint", "false")
20553 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:import")
20554 urls += "?" + c.urlParams_.Encode()
20555 req, err := http.NewRequest("POST", urls, body)
20556 if err != nil {
20557 return nil, err
20558 }
20559 req.Header = reqHeaders
20560 googleapi.Expand(req.URL, map[string]string{
20561 "parent": c.parent,
20562 })
20563 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20564 }
20565
20566
20567
20568
20569
20570
20571
20572 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20573 gensupport.SetOptions(c.urlParams_, opts...)
20574 res, err := c.doRequest("json")
20575 if res != nil && res.StatusCode == http.StatusNotModified {
20576 if res.Body != nil {
20577 res.Body.Close()
20578 }
20579 return nil, gensupport.WrapError(&googleapi.Error{
20580 Code: res.StatusCode,
20581 Header: res.Header,
20582 })
20583 }
20584 if err != nil {
20585 return nil, err
20586 }
20587 defer googleapi.CloseBody(res)
20588 if err := googleapi.CheckResponse(res); err != nil {
20589 return nil, gensupport.WrapError(err)
20590 }
20591 ret := &GoogleLongrunningOperation{
20592 ServerResponse: googleapi.ServerResponse{
20593 Header: res.Header,
20594 HTTPStatusCode: res.StatusCode,
20595 },
20596 }
20597 target := &ret
20598 if err := gensupport.DecodeResponse(target, res); err != nil {
20599 return nil, err
20600 }
20601 return ret, nil
20602 }
20603
20604 type ProjectsLocationsCollectionsDataStoresUserEventsWriteCall struct {
20605 s *Service
20606 parent string
20607 googleclouddiscoveryenginev1betauserevent *GoogleCloudDiscoveryengineV1betaUserEvent
20608 urlParams_ gensupport.URLParams
20609 ctx_ context.Context
20610 header_ http.Header
20611 }
20612
20613
20614
20615
20616
20617
20618
20619
20620
20621 func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Write(parent string, googleclouddiscoveryenginev1betauserevent *GoogleCloudDiscoveryengineV1betaUserEvent) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
20622 c := &ProjectsLocationsCollectionsDataStoresUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20623 c.parent = parent
20624 c.googleclouddiscoveryenginev1betauserevent = googleclouddiscoveryenginev1betauserevent
20625 return c
20626 }
20627
20628
20629
20630
20631 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
20632 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20633 return c
20634 }
20635
20636
20637 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
20638 c.ctx_ = ctx
20639 return c
20640 }
20641
20642
20643
20644 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Header() http.Header {
20645 if c.header_ == nil {
20646 c.header_ = make(http.Header)
20647 }
20648 return c.header_
20649 }
20650
20651 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
20652 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20653 var body io.Reader = nil
20654 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betauserevent)
20655 if err != nil {
20656 return nil, err
20657 }
20658 c.urlParams_.Set("alt", alt)
20659 c.urlParams_.Set("prettyPrint", "false")
20660 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:write")
20661 urls += "?" + c.urlParams_.Encode()
20662 req, err := http.NewRequest("POST", urls, body)
20663 if err != nil {
20664 return nil, err
20665 }
20666 req.Header = reqHeaders
20667 googleapi.Expand(req.URL, map[string]string{
20668 "parent": c.parent,
20669 })
20670 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20671 }
20672
20673
20674
20675
20676
20677
20678
20679 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaUserEvent, error) {
20680 gensupport.SetOptions(c.urlParams_, opts...)
20681 res, err := c.doRequest("json")
20682 if res != nil && res.StatusCode == http.StatusNotModified {
20683 if res.Body != nil {
20684 res.Body.Close()
20685 }
20686 return nil, gensupport.WrapError(&googleapi.Error{
20687 Code: res.StatusCode,
20688 Header: res.Header,
20689 })
20690 }
20691 if err != nil {
20692 return nil, err
20693 }
20694 defer googleapi.CloseBody(res)
20695 if err := googleapi.CheckResponse(res); err != nil {
20696 return nil, gensupport.WrapError(err)
20697 }
20698 ret := &GoogleCloudDiscoveryengineV1betaUserEvent{
20699 ServerResponse: googleapi.ServerResponse{
20700 Header: res.Header,
20701 HTTPStatusCode: res.StatusCode,
20702 },
20703 }
20704 target := &ret
20705 if err := gensupport.DecodeResponse(target, res); err != nil {
20706 return nil, err
20707 }
20708 return ret, nil
20709 }
20710
20711 type ProjectsLocationsCollectionsEnginesCreateCall struct {
20712 s *Service
20713 parent string
20714 googleclouddiscoveryenginev1betaengine *GoogleCloudDiscoveryengineV1betaEngine
20715 urlParams_ gensupport.URLParams
20716 ctx_ context.Context
20717 header_ http.Header
20718 }
20719
20720
20721
20722
20723
20724 func (r *ProjectsLocationsCollectionsEnginesService) Create(parent string, googleclouddiscoveryenginev1betaengine *GoogleCloudDiscoveryengineV1betaEngine) *ProjectsLocationsCollectionsEnginesCreateCall {
20725 c := &ProjectsLocationsCollectionsEnginesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20726 c.parent = parent
20727 c.googleclouddiscoveryenginev1betaengine = googleclouddiscoveryenginev1betaengine
20728 return c
20729 }
20730
20731
20732
20733
20734
20735
20736 func (c *ProjectsLocationsCollectionsEnginesCreateCall) EngineId(engineId string) *ProjectsLocationsCollectionsEnginesCreateCall {
20737 c.urlParams_.Set("engineId", engineId)
20738 return c
20739 }
20740
20741
20742
20743
20744 func (c *ProjectsLocationsCollectionsEnginesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesCreateCall {
20745 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20746 return c
20747 }
20748
20749
20750 func (c *ProjectsLocationsCollectionsEnginesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesCreateCall {
20751 c.ctx_ = ctx
20752 return c
20753 }
20754
20755
20756
20757 func (c *ProjectsLocationsCollectionsEnginesCreateCall) Header() http.Header {
20758 if c.header_ == nil {
20759 c.header_ = make(http.Header)
20760 }
20761 return c.header_
20762 }
20763
20764 func (c *ProjectsLocationsCollectionsEnginesCreateCall) doRequest(alt string) (*http.Response, error) {
20765 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20766 var body io.Reader = nil
20767 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaengine)
20768 if err != nil {
20769 return nil, err
20770 }
20771 c.urlParams_.Set("alt", alt)
20772 c.urlParams_.Set("prettyPrint", "false")
20773 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/engines")
20774 urls += "?" + c.urlParams_.Encode()
20775 req, err := http.NewRequest("POST", urls, body)
20776 if err != nil {
20777 return nil, err
20778 }
20779 req.Header = reqHeaders
20780 googleapi.Expand(req.URL, map[string]string{
20781 "parent": c.parent,
20782 })
20783 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20784 }
20785
20786
20787
20788
20789
20790
20791
20792 func (c *ProjectsLocationsCollectionsEnginesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20793 gensupport.SetOptions(c.urlParams_, opts...)
20794 res, err := c.doRequest("json")
20795 if res != nil && res.StatusCode == http.StatusNotModified {
20796 if res.Body != nil {
20797 res.Body.Close()
20798 }
20799 return nil, gensupport.WrapError(&googleapi.Error{
20800 Code: res.StatusCode,
20801 Header: res.Header,
20802 })
20803 }
20804 if err != nil {
20805 return nil, err
20806 }
20807 defer googleapi.CloseBody(res)
20808 if err := googleapi.CheckResponse(res); err != nil {
20809 return nil, gensupport.WrapError(err)
20810 }
20811 ret := &GoogleLongrunningOperation{
20812 ServerResponse: googleapi.ServerResponse{
20813 Header: res.Header,
20814 HTTPStatusCode: res.StatusCode,
20815 },
20816 }
20817 target := &ret
20818 if err := gensupport.DecodeResponse(target, res); err != nil {
20819 return nil, err
20820 }
20821 return ret, nil
20822 }
20823
20824 type ProjectsLocationsCollectionsEnginesDeleteCall struct {
20825 s *Service
20826 name string
20827 urlParams_ gensupport.URLParams
20828 ctx_ context.Context
20829 header_ http.Header
20830 }
20831
20832
20833
20834
20835
20836
20837
20838
20839
20840 func (r *ProjectsLocationsCollectionsEnginesService) Delete(name string) *ProjectsLocationsCollectionsEnginesDeleteCall {
20841 c := &ProjectsLocationsCollectionsEnginesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20842 c.name = name
20843 return c
20844 }
20845
20846
20847
20848
20849 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesDeleteCall {
20850 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20851 return c
20852 }
20853
20854
20855 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesDeleteCall {
20856 c.ctx_ = ctx
20857 return c
20858 }
20859
20860
20861
20862 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Header() http.Header {
20863 if c.header_ == nil {
20864 c.header_ = make(http.Header)
20865 }
20866 return c.header_
20867 }
20868
20869 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) doRequest(alt string) (*http.Response, error) {
20870 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20871 var body io.Reader = nil
20872 c.urlParams_.Set("alt", alt)
20873 c.urlParams_.Set("prettyPrint", "false")
20874 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
20875 urls += "?" + c.urlParams_.Encode()
20876 req, err := http.NewRequest("DELETE", urls, body)
20877 if err != nil {
20878 return nil, err
20879 }
20880 req.Header = reqHeaders
20881 googleapi.Expand(req.URL, map[string]string{
20882 "name": c.name,
20883 })
20884 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20885 }
20886
20887
20888
20889
20890
20891
20892
20893 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20894 gensupport.SetOptions(c.urlParams_, opts...)
20895 res, err := c.doRequest("json")
20896 if res != nil && res.StatusCode == http.StatusNotModified {
20897 if res.Body != nil {
20898 res.Body.Close()
20899 }
20900 return nil, gensupport.WrapError(&googleapi.Error{
20901 Code: res.StatusCode,
20902 Header: res.Header,
20903 })
20904 }
20905 if err != nil {
20906 return nil, err
20907 }
20908 defer googleapi.CloseBody(res)
20909 if err := googleapi.CheckResponse(res); err != nil {
20910 return nil, gensupport.WrapError(err)
20911 }
20912 ret := &GoogleLongrunningOperation{
20913 ServerResponse: googleapi.ServerResponse{
20914 Header: res.Header,
20915 HTTPStatusCode: res.StatusCode,
20916 },
20917 }
20918 target := &ret
20919 if err := gensupport.DecodeResponse(target, res); err != nil {
20920 return nil, err
20921 }
20922 return ret, nil
20923 }
20924
20925 type ProjectsLocationsCollectionsEnginesGetCall struct {
20926 s *Service
20927 name string
20928 urlParams_ gensupport.URLParams
20929 ifNoneMatch_ string
20930 ctx_ context.Context
20931 header_ http.Header
20932 }
20933
20934
20935
20936
20937
20938
20939 func (r *ProjectsLocationsCollectionsEnginesService) Get(name string) *ProjectsLocationsCollectionsEnginesGetCall {
20940 c := &ProjectsLocationsCollectionsEnginesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20941 c.name = name
20942 return c
20943 }
20944
20945
20946
20947
20948 func (c *ProjectsLocationsCollectionsEnginesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesGetCall {
20949 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20950 return c
20951 }
20952
20953
20954
20955
20956 func (c *ProjectsLocationsCollectionsEnginesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesGetCall {
20957 c.ifNoneMatch_ = entityTag
20958 return c
20959 }
20960
20961
20962 func (c *ProjectsLocationsCollectionsEnginesGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesGetCall {
20963 c.ctx_ = ctx
20964 return c
20965 }
20966
20967
20968
20969 func (c *ProjectsLocationsCollectionsEnginesGetCall) Header() http.Header {
20970 if c.header_ == nil {
20971 c.header_ = make(http.Header)
20972 }
20973 return c.header_
20974 }
20975
20976 func (c *ProjectsLocationsCollectionsEnginesGetCall) doRequest(alt string) (*http.Response, error) {
20977 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20978 if c.ifNoneMatch_ != "" {
20979 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20980 }
20981 var body io.Reader = nil
20982 c.urlParams_.Set("alt", alt)
20983 c.urlParams_.Set("prettyPrint", "false")
20984 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
20985 urls += "?" + c.urlParams_.Encode()
20986 req, err := http.NewRequest("GET", urls, body)
20987 if err != nil {
20988 return nil, err
20989 }
20990 req.Header = reqHeaders
20991 googleapi.Expand(req.URL, map[string]string{
20992 "name": c.name,
20993 })
20994 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20995 }
20996
20997
20998
20999
21000
21001
21002
21003 func (c *ProjectsLocationsCollectionsEnginesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaEngine, error) {
21004 gensupport.SetOptions(c.urlParams_, opts...)
21005 res, err := c.doRequest("json")
21006 if res != nil && res.StatusCode == http.StatusNotModified {
21007 if res.Body != nil {
21008 res.Body.Close()
21009 }
21010 return nil, gensupport.WrapError(&googleapi.Error{
21011 Code: res.StatusCode,
21012 Header: res.Header,
21013 })
21014 }
21015 if err != nil {
21016 return nil, err
21017 }
21018 defer googleapi.CloseBody(res)
21019 if err := googleapi.CheckResponse(res); err != nil {
21020 return nil, gensupport.WrapError(err)
21021 }
21022 ret := &GoogleCloudDiscoveryengineV1betaEngine{
21023 ServerResponse: googleapi.ServerResponse{
21024 Header: res.Header,
21025 HTTPStatusCode: res.StatusCode,
21026 },
21027 }
21028 target := &ret
21029 if err := gensupport.DecodeResponse(target, res); err != nil {
21030 return nil, err
21031 }
21032 return ret, nil
21033 }
21034
21035 type ProjectsLocationsCollectionsEnginesListCall struct {
21036 s *Service
21037 parent string
21038 urlParams_ gensupport.URLParams
21039 ifNoneMatch_ string
21040 ctx_ context.Context
21041 header_ http.Header
21042 }
21043
21044
21045
21046
21047
21048 func (r *ProjectsLocationsCollectionsEnginesService) List(parent string) *ProjectsLocationsCollectionsEnginesListCall {
21049 c := &ProjectsLocationsCollectionsEnginesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21050 c.parent = parent
21051 return c
21052 }
21053
21054
21055
21056 func (c *ProjectsLocationsCollectionsEnginesListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesListCall {
21057 c.urlParams_.Set("filter", filter)
21058 return c
21059 }
21060
21061
21062 func (c *ProjectsLocationsCollectionsEnginesListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesListCall {
21063 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21064 return c
21065 }
21066
21067
21068 func (c *ProjectsLocationsCollectionsEnginesListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesListCall {
21069 c.urlParams_.Set("pageToken", pageToken)
21070 return c
21071 }
21072
21073
21074
21075
21076 func (c *ProjectsLocationsCollectionsEnginesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesListCall {
21077 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21078 return c
21079 }
21080
21081
21082
21083
21084 func (c *ProjectsLocationsCollectionsEnginesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesListCall {
21085 c.ifNoneMatch_ = entityTag
21086 return c
21087 }
21088
21089
21090 func (c *ProjectsLocationsCollectionsEnginesListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesListCall {
21091 c.ctx_ = ctx
21092 return c
21093 }
21094
21095
21096
21097 func (c *ProjectsLocationsCollectionsEnginesListCall) Header() http.Header {
21098 if c.header_ == nil {
21099 c.header_ = make(http.Header)
21100 }
21101 return c.header_
21102 }
21103
21104 func (c *ProjectsLocationsCollectionsEnginesListCall) doRequest(alt string) (*http.Response, error) {
21105 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21106 if c.ifNoneMatch_ != "" {
21107 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21108 }
21109 var body io.Reader = nil
21110 c.urlParams_.Set("alt", alt)
21111 c.urlParams_.Set("prettyPrint", "false")
21112 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/engines")
21113 urls += "?" + c.urlParams_.Encode()
21114 req, err := http.NewRequest("GET", urls, body)
21115 if err != nil {
21116 return nil, err
21117 }
21118 req.Header = reqHeaders
21119 googleapi.Expand(req.URL, map[string]string{
21120 "parent": c.parent,
21121 })
21122 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21123 }
21124
21125
21126
21127
21128
21129
21130
21131 func (c *ProjectsLocationsCollectionsEnginesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListEnginesResponse, error) {
21132 gensupport.SetOptions(c.urlParams_, opts...)
21133 res, err := c.doRequest("json")
21134 if res != nil && res.StatusCode == http.StatusNotModified {
21135 if res.Body != nil {
21136 res.Body.Close()
21137 }
21138 return nil, gensupport.WrapError(&googleapi.Error{
21139 Code: res.StatusCode,
21140 Header: res.Header,
21141 })
21142 }
21143 if err != nil {
21144 return nil, err
21145 }
21146 defer googleapi.CloseBody(res)
21147 if err := googleapi.CheckResponse(res); err != nil {
21148 return nil, gensupport.WrapError(err)
21149 }
21150 ret := &GoogleCloudDiscoveryengineV1betaListEnginesResponse{
21151 ServerResponse: googleapi.ServerResponse{
21152 Header: res.Header,
21153 HTTPStatusCode: res.StatusCode,
21154 },
21155 }
21156 target := &ret
21157 if err := gensupport.DecodeResponse(target, res); err != nil {
21158 return nil, err
21159 }
21160 return ret, nil
21161 }
21162
21163
21164
21165
21166 func (c *ProjectsLocationsCollectionsEnginesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListEnginesResponse) error) error {
21167 c.ctx_ = ctx
21168 defer c.PageToken(c.urlParams_.Get("pageToken"))
21169 for {
21170 x, err := c.Do()
21171 if err != nil {
21172 return err
21173 }
21174 if err := f(x); err != nil {
21175 return err
21176 }
21177 if x.NextPageToken == "" {
21178 return nil
21179 }
21180 c.PageToken(x.NextPageToken)
21181 }
21182 }
21183
21184 type ProjectsLocationsCollectionsEnginesPatchCall struct {
21185 s *Service
21186 name string
21187 googleclouddiscoveryenginev1betaengine *GoogleCloudDiscoveryengineV1betaEngine
21188 urlParams_ gensupport.URLParams
21189 ctx_ context.Context
21190 header_ http.Header
21191 }
21192
21193
21194
21195
21196
21197
21198
21199
21200
21201 func (r *ProjectsLocationsCollectionsEnginesService) Patch(name string, googleclouddiscoveryenginev1betaengine *GoogleCloudDiscoveryengineV1betaEngine) *ProjectsLocationsCollectionsEnginesPatchCall {
21202 c := &ProjectsLocationsCollectionsEnginesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21203 c.name = name
21204 c.googleclouddiscoveryenginev1betaengine = googleclouddiscoveryenginev1betaengine
21205 return c
21206 }
21207
21208
21209
21210
21211 func (c *ProjectsLocationsCollectionsEnginesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesPatchCall {
21212 c.urlParams_.Set("updateMask", updateMask)
21213 return c
21214 }
21215
21216
21217
21218
21219 func (c *ProjectsLocationsCollectionsEnginesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesPatchCall {
21220 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21221 return c
21222 }
21223
21224
21225 func (c *ProjectsLocationsCollectionsEnginesPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesPatchCall {
21226 c.ctx_ = ctx
21227 return c
21228 }
21229
21230
21231
21232 func (c *ProjectsLocationsCollectionsEnginesPatchCall) Header() http.Header {
21233 if c.header_ == nil {
21234 c.header_ = make(http.Header)
21235 }
21236 return c.header_
21237 }
21238
21239 func (c *ProjectsLocationsCollectionsEnginesPatchCall) doRequest(alt string) (*http.Response, error) {
21240 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21241 var body io.Reader = nil
21242 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaengine)
21243 if err != nil {
21244 return nil, err
21245 }
21246 c.urlParams_.Set("alt", alt)
21247 c.urlParams_.Set("prettyPrint", "false")
21248 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
21249 urls += "?" + c.urlParams_.Encode()
21250 req, err := http.NewRequest("PATCH", urls, body)
21251 if err != nil {
21252 return nil, err
21253 }
21254 req.Header = reqHeaders
21255 googleapi.Expand(req.URL, map[string]string{
21256 "name": c.name,
21257 })
21258 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21259 }
21260
21261
21262
21263
21264
21265
21266
21267 func (c *ProjectsLocationsCollectionsEnginesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaEngine, error) {
21268 gensupport.SetOptions(c.urlParams_, opts...)
21269 res, err := c.doRequest("json")
21270 if res != nil && res.StatusCode == http.StatusNotModified {
21271 if res.Body != nil {
21272 res.Body.Close()
21273 }
21274 return nil, gensupport.WrapError(&googleapi.Error{
21275 Code: res.StatusCode,
21276 Header: res.Header,
21277 })
21278 }
21279 if err != nil {
21280 return nil, err
21281 }
21282 defer googleapi.CloseBody(res)
21283 if err := googleapi.CheckResponse(res); err != nil {
21284 return nil, gensupport.WrapError(err)
21285 }
21286 ret := &GoogleCloudDiscoveryengineV1betaEngine{
21287 ServerResponse: googleapi.ServerResponse{
21288 Header: res.Header,
21289 HTTPStatusCode: res.StatusCode,
21290 },
21291 }
21292 target := &ret
21293 if err := gensupport.DecodeResponse(target, res); err != nil {
21294 return nil, err
21295 }
21296 return ret, nil
21297 }
21298
21299 type ProjectsLocationsCollectionsEnginesPauseCall struct {
21300 s *Service
21301 name string
21302 googleclouddiscoveryenginev1betapauseenginerequest *GoogleCloudDiscoveryengineV1betaPauseEngineRequest
21303 urlParams_ gensupport.URLParams
21304 ctx_ context.Context
21305 header_ http.Header
21306 }
21307
21308
21309
21310
21311
21312
21313
21314 func (r *ProjectsLocationsCollectionsEnginesService) Pause(name string, googleclouddiscoveryenginev1betapauseenginerequest *GoogleCloudDiscoveryengineV1betaPauseEngineRequest) *ProjectsLocationsCollectionsEnginesPauseCall {
21315 c := &ProjectsLocationsCollectionsEnginesPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21316 c.name = name
21317 c.googleclouddiscoveryenginev1betapauseenginerequest = googleclouddiscoveryenginev1betapauseenginerequest
21318 return c
21319 }
21320
21321
21322
21323
21324 func (c *ProjectsLocationsCollectionsEnginesPauseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesPauseCall {
21325 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21326 return c
21327 }
21328
21329
21330 func (c *ProjectsLocationsCollectionsEnginesPauseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesPauseCall {
21331 c.ctx_ = ctx
21332 return c
21333 }
21334
21335
21336
21337 func (c *ProjectsLocationsCollectionsEnginesPauseCall) Header() http.Header {
21338 if c.header_ == nil {
21339 c.header_ = make(http.Header)
21340 }
21341 return c.header_
21342 }
21343
21344 func (c *ProjectsLocationsCollectionsEnginesPauseCall) doRequest(alt string) (*http.Response, error) {
21345 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21346 var body io.Reader = nil
21347 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betapauseenginerequest)
21348 if err != nil {
21349 return nil, err
21350 }
21351 c.urlParams_.Set("alt", alt)
21352 c.urlParams_.Set("prettyPrint", "false")
21353 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:pause")
21354 urls += "?" + c.urlParams_.Encode()
21355 req, err := http.NewRequest("POST", urls, body)
21356 if err != nil {
21357 return nil, err
21358 }
21359 req.Header = reqHeaders
21360 googleapi.Expand(req.URL, map[string]string{
21361 "name": c.name,
21362 })
21363 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21364 }
21365
21366
21367
21368
21369
21370
21371
21372 func (c *ProjectsLocationsCollectionsEnginesPauseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaEngine, error) {
21373 gensupport.SetOptions(c.urlParams_, opts...)
21374 res, err := c.doRequest("json")
21375 if res != nil && res.StatusCode == http.StatusNotModified {
21376 if res.Body != nil {
21377 res.Body.Close()
21378 }
21379 return nil, gensupport.WrapError(&googleapi.Error{
21380 Code: res.StatusCode,
21381 Header: res.Header,
21382 })
21383 }
21384 if err != nil {
21385 return nil, err
21386 }
21387 defer googleapi.CloseBody(res)
21388 if err := googleapi.CheckResponse(res); err != nil {
21389 return nil, gensupport.WrapError(err)
21390 }
21391 ret := &GoogleCloudDiscoveryengineV1betaEngine{
21392 ServerResponse: googleapi.ServerResponse{
21393 Header: res.Header,
21394 HTTPStatusCode: res.StatusCode,
21395 },
21396 }
21397 target := &ret
21398 if err := gensupport.DecodeResponse(target, res); err != nil {
21399 return nil, err
21400 }
21401 return ret, nil
21402 }
21403
21404 type ProjectsLocationsCollectionsEnginesResumeCall struct {
21405 s *Service
21406 name string
21407 googleclouddiscoveryenginev1betaresumeenginerequest *GoogleCloudDiscoveryengineV1betaResumeEngineRequest
21408 urlParams_ gensupport.URLParams
21409 ctx_ context.Context
21410 header_ http.Header
21411 }
21412
21413
21414
21415
21416
21417
21418
21419 func (r *ProjectsLocationsCollectionsEnginesService) Resume(name string, googleclouddiscoveryenginev1betaresumeenginerequest *GoogleCloudDiscoveryengineV1betaResumeEngineRequest) *ProjectsLocationsCollectionsEnginesResumeCall {
21420 c := &ProjectsLocationsCollectionsEnginesResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21421 c.name = name
21422 c.googleclouddiscoveryenginev1betaresumeenginerequest = googleclouddiscoveryenginev1betaresumeenginerequest
21423 return c
21424 }
21425
21426
21427
21428
21429 func (c *ProjectsLocationsCollectionsEnginesResumeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesResumeCall {
21430 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21431 return c
21432 }
21433
21434
21435 func (c *ProjectsLocationsCollectionsEnginesResumeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesResumeCall {
21436 c.ctx_ = ctx
21437 return c
21438 }
21439
21440
21441
21442 func (c *ProjectsLocationsCollectionsEnginesResumeCall) Header() http.Header {
21443 if c.header_ == nil {
21444 c.header_ = make(http.Header)
21445 }
21446 return c.header_
21447 }
21448
21449 func (c *ProjectsLocationsCollectionsEnginesResumeCall) doRequest(alt string) (*http.Response, error) {
21450 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21451 var body io.Reader = nil
21452 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaresumeenginerequest)
21453 if err != nil {
21454 return nil, err
21455 }
21456 c.urlParams_.Set("alt", alt)
21457 c.urlParams_.Set("prettyPrint", "false")
21458 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:resume")
21459 urls += "?" + c.urlParams_.Encode()
21460 req, err := http.NewRequest("POST", urls, body)
21461 if err != nil {
21462 return nil, err
21463 }
21464 req.Header = reqHeaders
21465 googleapi.Expand(req.URL, map[string]string{
21466 "name": c.name,
21467 })
21468 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21469 }
21470
21471
21472
21473
21474
21475
21476
21477 func (c *ProjectsLocationsCollectionsEnginesResumeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaEngine, error) {
21478 gensupport.SetOptions(c.urlParams_, opts...)
21479 res, err := c.doRequest("json")
21480 if res != nil && res.StatusCode == http.StatusNotModified {
21481 if res.Body != nil {
21482 res.Body.Close()
21483 }
21484 return nil, gensupport.WrapError(&googleapi.Error{
21485 Code: res.StatusCode,
21486 Header: res.Header,
21487 })
21488 }
21489 if err != nil {
21490 return nil, err
21491 }
21492 defer googleapi.CloseBody(res)
21493 if err := googleapi.CheckResponse(res); err != nil {
21494 return nil, gensupport.WrapError(err)
21495 }
21496 ret := &GoogleCloudDiscoveryengineV1betaEngine{
21497 ServerResponse: googleapi.ServerResponse{
21498 Header: res.Header,
21499 HTTPStatusCode: res.StatusCode,
21500 },
21501 }
21502 target := &ret
21503 if err := gensupport.DecodeResponse(target, res); err != nil {
21504 return nil, err
21505 }
21506 return ret, nil
21507 }
21508
21509 type ProjectsLocationsCollectionsEnginesTuneCall struct {
21510 s *Service
21511 name string
21512 googleclouddiscoveryenginev1betatuneenginerequest *GoogleCloudDiscoveryengineV1betaTuneEngineRequest
21513 urlParams_ gensupport.URLParams
21514 ctx_ context.Context
21515 header_ http.Header
21516 }
21517
21518
21519
21520
21521
21522
21523
21524 func (r *ProjectsLocationsCollectionsEnginesService) Tune(name string, googleclouddiscoveryenginev1betatuneenginerequest *GoogleCloudDiscoveryengineV1betaTuneEngineRequest) *ProjectsLocationsCollectionsEnginesTuneCall {
21525 c := &ProjectsLocationsCollectionsEnginesTuneCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21526 c.name = name
21527 c.googleclouddiscoveryenginev1betatuneenginerequest = googleclouddiscoveryenginev1betatuneenginerequest
21528 return c
21529 }
21530
21531
21532
21533
21534 func (c *ProjectsLocationsCollectionsEnginesTuneCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesTuneCall {
21535 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21536 return c
21537 }
21538
21539
21540 func (c *ProjectsLocationsCollectionsEnginesTuneCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesTuneCall {
21541 c.ctx_ = ctx
21542 return c
21543 }
21544
21545
21546
21547 func (c *ProjectsLocationsCollectionsEnginesTuneCall) Header() http.Header {
21548 if c.header_ == nil {
21549 c.header_ = make(http.Header)
21550 }
21551 return c.header_
21552 }
21553
21554 func (c *ProjectsLocationsCollectionsEnginesTuneCall) doRequest(alt string) (*http.Response, error) {
21555 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21556 var body io.Reader = nil
21557 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatuneenginerequest)
21558 if err != nil {
21559 return nil, err
21560 }
21561 c.urlParams_.Set("alt", alt)
21562 c.urlParams_.Set("prettyPrint", "false")
21563 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:tune")
21564 urls += "?" + c.urlParams_.Encode()
21565 req, err := http.NewRequest("POST", urls, body)
21566 if err != nil {
21567 return nil, err
21568 }
21569 req.Header = reqHeaders
21570 googleapi.Expand(req.URL, map[string]string{
21571 "name": c.name,
21572 })
21573 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21574 }
21575
21576
21577
21578
21579
21580
21581
21582 func (c *ProjectsLocationsCollectionsEnginesTuneCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21583 gensupport.SetOptions(c.urlParams_, opts...)
21584 res, err := c.doRequest("json")
21585 if res != nil && res.StatusCode == http.StatusNotModified {
21586 if res.Body != nil {
21587 res.Body.Close()
21588 }
21589 return nil, gensupport.WrapError(&googleapi.Error{
21590 Code: res.StatusCode,
21591 Header: res.Header,
21592 })
21593 }
21594 if err != nil {
21595 return nil, err
21596 }
21597 defer googleapi.CloseBody(res)
21598 if err := googleapi.CheckResponse(res); err != nil {
21599 return nil, gensupport.WrapError(err)
21600 }
21601 ret := &GoogleLongrunningOperation{
21602 ServerResponse: googleapi.ServerResponse{
21603 Header: res.Header,
21604 HTTPStatusCode: res.StatusCode,
21605 },
21606 }
21607 target := &ret
21608 if err := gensupport.DecodeResponse(target, res); err != nil {
21609 return nil, err
21610 }
21611 return ret, nil
21612 }
21613
21614 type ProjectsLocationsCollectionsEnginesConversationsConverseCall struct {
21615 s *Service
21616 name string
21617 googleclouddiscoveryenginev1betaconverseconversationrequest *GoogleCloudDiscoveryengineV1betaConverseConversationRequest
21618 urlParams_ gensupport.URLParams
21619 ctx_ context.Context
21620 header_ http.Header
21621 }
21622
21623
21624
21625
21626
21627
21628
21629
21630
21631
21632 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Converse(name string, googleclouddiscoveryenginev1betaconverseconversationrequest *GoogleCloudDiscoveryengineV1betaConverseConversationRequest) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
21633 c := &ProjectsLocationsCollectionsEnginesConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21634 c.name = name
21635 c.googleclouddiscoveryenginev1betaconverseconversationrequest = googleclouddiscoveryenginev1betaconverseconversationrequest
21636 return c
21637 }
21638
21639
21640
21641
21642 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
21643 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21644 return c
21645 }
21646
21647
21648 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
21649 c.ctx_ = ctx
21650 return c
21651 }
21652
21653
21654
21655 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Header() http.Header {
21656 if c.header_ == nil {
21657 c.header_ = make(http.Header)
21658 }
21659 return c.header_
21660 }
21661
21662 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
21663 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21664 var body io.Reader = nil
21665 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconverseconversationrequest)
21666 if err != nil {
21667 return nil, err
21668 }
21669 c.urlParams_.Set("alt", alt)
21670 c.urlParams_.Set("prettyPrint", "false")
21671 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:converse")
21672 urls += "?" + c.urlParams_.Encode()
21673 req, err := http.NewRequest("POST", urls, body)
21674 if err != nil {
21675 return nil, err
21676 }
21677 req.Header = reqHeaders
21678 googleapi.Expand(req.URL, map[string]string{
21679 "name": c.name,
21680 })
21681 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21682 }
21683
21684
21685
21686
21687
21688
21689
21690 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConverseConversationResponse, error) {
21691 gensupport.SetOptions(c.urlParams_, opts...)
21692 res, err := c.doRequest("json")
21693 if res != nil && res.StatusCode == http.StatusNotModified {
21694 if res.Body != nil {
21695 res.Body.Close()
21696 }
21697 return nil, gensupport.WrapError(&googleapi.Error{
21698 Code: res.StatusCode,
21699 Header: res.Header,
21700 })
21701 }
21702 if err != nil {
21703 return nil, err
21704 }
21705 defer googleapi.CloseBody(res)
21706 if err := googleapi.CheckResponse(res); err != nil {
21707 return nil, gensupport.WrapError(err)
21708 }
21709 ret := &GoogleCloudDiscoveryengineV1betaConverseConversationResponse{
21710 ServerResponse: googleapi.ServerResponse{
21711 Header: res.Header,
21712 HTTPStatusCode: res.StatusCode,
21713 },
21714 }
21715 target := &ret
21716 if err := gensupport.DecodeResponse(target, res); err != nil {
21717 return nil, err
21718 }
21719 return ret, nil
21720 }
21721
21722 type ProjectsLocationsCollectionsEnginesConversationsCreateCall struct {
21723 s *Service
21724 parent string
21725 googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation
21726 urlParams_ gensupport.URLParams
21727 ctx_ context.Context
21728 header_ http.Header
21729 }
21730
21731
21732
21733
21734
21735
21736
21737 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Create(parent string, googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
21738 c := &ProjectsLocationsCollectionsEnginesConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21739 c.parent = parent
21740 c.googleclouddiscoveryenginev1betaconversation = googleclouddiscoveryenginev1betaconversation
21741 return c
21742 }
21743
21744
21745
21746
21747 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
21748 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21749 return c
21750 }
21751
21752
21753 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
21754 c.ctx_ = ctx
21755 return c
21756 }
21757
21758
21759
21760 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Header() http.Header {
21761 if c.header_ == nil {
21762 c.header_ = make(http.Header)
21763 }
21764 return c.header_
21765 }
21766
21767 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
21768 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21769 var body io.Reader = nil
21770 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconversation)
21771 if err != nil {
21772 return nil, err
21773 }
21774 c.urlParams_.Set("alt", alt)
21775 c.urlParams_.Set("prettyPrint", "false")
21776 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/conversations")
21777 urls += "?" + c.urlParams_.Encode()
21778 req, err := http.NewRequest("POST", urls, body)
21779 if err != nil {
21780 return nil, err
21781 }
21782 req.Header = reqHeaders
21783 googleapi.Expand(req.URL, map[string]string{
21784 "parent": c.parent,
21785 })
21786 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21787 }
21788
21789
21790
21791
21792
21793
21794
21795 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
21796 gensupport.SetOptions(c.urlParams_, opts...)
21797 res, err := c.doRequest("json")
21798 if res != nil && res.StatusCode == http.StatusNotModified {
21799 if res.Body != nil {
21800 res.Body.Close()
21801 }
21802 return nil, gensupport.WrapError(&googleapi.Error{
21803 Code: res.StatusCode,
21804 Header: res.Header,
21805 })
21806 }
21807 if err != nil {
21808 return nil, err
21809 }
21810 defer googleapi.CloseBody(res)
21811 if err := googleapi.CheckResponse(res); err != nil {
21812 return nil, gensupport.WrapError(err)
21813 }
21814 ret := &GoogleCloudDiscoveryengineV1betaConversation{
21815 ServerResponse: googleapi.ServerResponse{
21816 Header: res.Header,
21817 HTTPStatusCode: res.StatusCode,
21818 },
21819 }
21820 target := &ret
21821 if err := gensupport.DecodeResponse(target, res); err != nil {
21822 return nil, err
21823 }
21824 return ret, nil
21825 }
21826
21827 type ProjectsLocationsCollectionsEnginesConversationsDeleteCall struct {
21828 s *Service
21829 name string
21830 urlParams_ gensupport.URLParams
21831 ctx_ context.Context
21832 header_ http.Header
21833 }
21834
21835
21836
21837
21838
21839
21840
21841 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Delete(name string) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
21842 c := &ProjectsLocationsCollectionsEnginesConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21843 c.name = name
21844 return c
21845 }
21846
21847
21848
21849
21850 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
21851 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21852 return c
21853 }
21854
21855
21856 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
21857 c.ctx_ = ctx
21858 return c
21859 }
21860
21861
21862
21863 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Header() http.Header {
21864 if c.header_ == nil {
21865 c.header_ = make(http.Header)
21866 }
21867 return c.header_
21868 }
21869
21870 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
21871 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21872 var body io.Reader = nil
21873 c.urlParams_.Set("alt", alt)
21874 c.urlParams_.Set("prettyPrint", "false")
21875 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
21876 urls += "?" + c.urlParams_.Encode()
21877 req, err := http.NewRequest("DELETE", urls, body)
21878 if err != nil {
21879 return nil, err
21880 }
21881 req.Header = reqHeaders
21882 googleapi.Expand(req.URL, map[string]string{
21883 "name": c.name,
21884 })
21885 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21886 }
21887
21888
21889
21890
21891
21892
21893
21894 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21895 gensupport.SetOptions(c.urlParams_, opts...)
21896 res, err := c.doRequest("json")
21897 if res != nil && res.StatusCode == http.StatusNotModified {
21898 if res.Body != nil {
21899 res.Body.Close()
21900 }
21901 return nil, gensupport.WrapError(&googleapi.Error{
21902 Code: res.StatusCode,
21903 Header: res.Header,
21904 })
21905 }
21906 if err != nil {
21907 return nil, err
21908 }
21909 defer googleapi.CloseBody(res)
21910 if err := googleapi.CheckResponse(res); err != nil {
21911 return nil, gensupport.WrapError(err)
21912 }
21913 ret := &GoogleProtobufEmpty{
21914 ServerResponse: googleapi.ServerResponse{
21915 Header: res.Header,
21916 HTTPStatusCode: res.StatusCode,
21917 },
21918 }
21919 target := &ret
21920 if err := gensupport.DecodeResponse(target, res); err != nil {
21921 return nil, err
21922 }
21923 return ret, nil
21924 }
21925
21926 type ProjectsLocationsCollectionsEnginesConversationsGetCall struct {
21927 s *Service
21928 name string
21929 urlParams_ gensupport.URLParams
21930 ifNoneMatch_ string
21931 ctx_ context.Context
21932 header_ http.Header
21933 }
21934
21935
21936
21937
21938
21939
21940 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Get(name string) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
21941 c := &ProjectsLocationsCollectionsEnginesConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21942 c.name = name
21943 return c
21944 }
21945
21946
21947
21948
21949 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
21950 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21951 return c
21952 }
21953
21954
21955
21956
21957 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
21958 c.ifNoneMatch_ = entityTag
21959 return c
21960 }
21961
21962
21963 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
21964 c.ctx_ = ctx
21965 return c
21966 }
21967
21968
21969
21970 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Header() http.Header {
21971 if c.header_ == nil {
21972 c.header_ = make(http.Header)
21973 }
21974 return c.header_
21975 }
21976
21977 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) doRequest(alt string) (*http.Response, error) {
21978 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21979 if c.ifNoneMatch_ != "" {
21980 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21981 }
21982 var body io.Reader = nil
21983 c.urlParams_.Set("alt", alt)
21984 c.urlParams_.Set("prettyPrint", "false")
21985 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
21986 urls += "?" + c.urlParams_.Encode()
21987 req, err := http.NewRequest("GET", urls, body)
21988 if err != nil {
21989 return nil, err
21990 }
21991 req.Header = reqHeaders
21992 googleapi.Expand(req.URL, map[string]string{
21993 "name": c.name,
21994 })
21995 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21996 }
21997
21998
21999
22000
22001
22002
22003
22004 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
22005 gensupport.SetOptions(c.urlParams_, opts...)
22006 res, err := c.doRequest("json")
22007 if res != nil && res.StatusCode == http.StatusNotModified {
22008 if res.Body != nil {
22009 res.Body.Close()
22010 }
22011 return nil, gensupport.WrapError(&googleapi.Error{
22012 Code: res.StatusCode,
22013 Header: res.Header,
22014 })
22015 }
22016 if err != nil {
22017 return nil, err
22018 }
22019 defer googleapi.CloseBody(res)
22020 if err := googleapi.CheckResponse(res); err != nil {
22021 return nil, gensupport.WrapError(err)
22022 }
22023 ret := &GoogleCloudDiscoveryengineV1betaConversation{
22024 ServerResponse: googleapi.ServerResponse{
22025 Header: res.Header,
22026 HTTPStatusCode: res.StatusCode,
22027 },
22028 }
22029 target := &ret
22030 if err := gensupport.DecodeResponse(target, res); err != nil {
22031 return nil, err
22032 }
22033 return ret, nil
22034 }
22035
22036 type ProjectsLocationsCollectionsEnginesConversationsListCall struct {
22037 s *Service
22038 parent string
22039 urlParams_ gensupport.URLParams
22040 ifNoneMatch_ string
22041 ctx_ context.Context
22042 header_ http.Header
22043 }
22044
22045
22046
22047
22048
22049
22050 func (r *ProjectsLocationsCollectionsEnginesConversationsService) List(parent string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
22051 c := &ProjectsLocationsCollectionsEnginesConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22052 c.parent = parent
22053 return c
22054 }
22055
22056
22057
22058
22059 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
22060 c.urlParams_.Set("filter", filter)
22061 return c
22062 }
22063
22064
22065
22066
22067
22068 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
22069 c.urlParams_.Set("orderBy", orderBy)
22070 return c
22071 }
22072
22073
22074
22075 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesConversationsListCall {
22076 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22077 return c
22078 }
22079
22080
22081
22082
22083 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
22084 c.urlParams_.Set("pageToken", pageToken)
22085 return c
22086 }
22087
22088
22089
22090
22091 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsListCall {
22092 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22093 return c
22094 }
22095
22096
22097
22098
22099 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
22100 c.ifNoneMatch_ = entityTag
22101 return c
22102 }
22103
22104
22105 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsListCall {
22106 c.ctx_ = ctx
22107 return c
22108 }
22109
22110
22111
22112 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Header() http.Header {
22113 if c.header_ == nil {
22114 c.header_ = make(http.Header)
22115 }
22116 return c.header_
22117 }
22118
22119 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) doRequest(alt string) (*http.Response, error) {
22120 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22121 if c.ifNoneMatch_ != "" {
22122 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22123 }
22124 var body io.Reader = nil
22125 c.urlParams_.Set("alt", alt)
22126 c.urlParams_.Set("prettyPrint", "false")
22127 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/conversations")
22128 urls += "?" + c.urlParams_.Encode()
22129 req, err := http.NewRequest("GET", urls, body)
22130 if err != nil {
22131 return nil, err
22132 }
22133 req.Header = reqHeaders
22134 googleapi.Expand(req.URL, map[string]string{
22135 "parent": c.parent,
22136 })
22137 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22138 }
22139
22140
22141
22142
22143
22144
22145
22146 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListConversationsResponse, error) {
22147 gensupport.SetOptions(c.urlParams_, opts...)
22148 res, err := c.doRequest("json")
22149 if res != nil && res.StatusCode == http.StatusNotModified {
22150 if res.Body != nil {
22151 res.Body.Close()
22152 }
22153 return nil, gensupport.WrapError(&googleapi.Error{
22154 Code: res.StatusCode,
22155 Header: res.Header,
22156 })
22157 }
22158 if err != nil {
22159 return nil, err
22160 }
22161 defer googleapi.CloseBody(res)
22162 if err := googleapi.CheckResponse(res); err != nil {
22163 return nil, gensupport.WrapError(err)
22164 }
22165 ret := &GoogleCloudDiscoveryengineV1betaListConversationsResponse{
22166 ServerResponse: googleapi.ServerResponse{
22167 Header: res.Header,
22168 HTTPStatusCode: res.StatusCode,
22169 },
22170 }
22171 target := &ret
22172 if err := gensupport.DecodeResponse(target, res); err != nil {
22173 return nil, err
22174 }
22175 return ret, nil
22176 }
22177
22178
22179
22180
22181 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListConversationsResponse) error) error {
22182 c.ctx_ = ctx
22183 defer c.PageToken(c.urlParams_.Get("pageToken"))
22184 for {
22185 x, err := c.Do()
22186 if err != nil {
22187 return err
22188 }
22189 if err := f(x); err != nil {
22190 return err
22191 }
22192 if x.NextPageToken == "" {
22193 return nil
22194 }
22195 c.PageToken(x.NextPageToken)
22196 }
22197 }
22198
22199 type ProjectsLocationsCollectionsEnginesConversationsPatchCall struct {
22200 s *Service
22201 name string
22202 googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation
22203 urlParams_ gensupport.URLParams
22204 ctx_ context.Context
22205 header_ http.Header
22206 }
22207
22208
22209
22210
22211
22212
22213
22214
22215
22216 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Patch(name string, googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
22217 c := &ProjectsLocationsCollectionsEnginesConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22218 c.name = name
22219 c.googleclouddiscoveryenginev1betaconversation = googleclouddiscoveryenginev1betaconversation
22220 return c
22221 }
22222
22223
22224
22225
22226 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
22227 c.urlParams_.Set("updateMask", updateMask)
22228 return c
22229 }
22230
22231
22232
22233
22234 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
22235 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22236 return c
22237 }
22238
22239
22240 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
22241 c.ctx_ = ctx
22242 return c
22243 }
22244
22245
22246
22247 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Header() http.Header {
22248 if c.header_ == nil {
22249 c.header_ = make(http.Header)
22250 }
22251 return c.header_
22252 }
22253
22254 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
22255 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22256 var body io.Reader = nil
22257 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconversation)
22258 if err != nil {
22259 return nil, err
22260 }
22261 c.urlParams_.Set("alt", alt)
22262 c.urlParams_.Set("prettyPrint", "false")
22263 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
22264 urls += "?" + c.urlParams_.Encode()
22265 req, err := http.NewRequest("PATCH", urls, body)
22266 if err != nil {
22267 return nil, err
22268 }
22269 req.Header = reqHeaders
22270 googleapi.Expand(req.URL, map[string]string{
22271 "name": c.name,
22272 })
22273 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22274 }
22275
22276
22277
22278
22279
22280
22281
22282 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
22283 gensupport.SetOptions(c.urlParams_, opts...)
22284 res, err := c.doRequest("json")
22285 if res != nil && res.StatusCode == http.StatusNotModified {
22286 if res.Body != nil {
22287 res.Body.Close()
22288 }
22289 return nil, gensupport.WrapError(&googleapi.Error{
22290 Code: res.StatusCode,
22291 Header: res.Header,
22292 })
22293 }
22294 if err != nil {
22295 return nil, err
22296 }
22297 defer googleapi.CloseBody(res)
22298 if err := googleapi.CheckResponse(res); err != nil {
22299 return nil, gensupport.WrapError(err)
22300 }
22301 ret := &GoogleCloudDiscoveryengineV1betaConversation{
22302 ServerResponse: googleapi.ServerResponse{
22303 Header: res.Header,
22304 HTTPStatusCode: res.StatusCode,
22305 },
22306 }
22307 target := &ret
22308 if err := gensupport.DecodeResponse(target, res); err != nil {
22309 return nil, err
22310 }
22311 return ret, nil
22312 }
22313
22314 type ProjectsLocationsCollectionsEnginesOperationsGetCall struct {
22315 s *Service
22316 name string
22317 urlParams_ gensupport.URLParams
22318 ifNoneMatch_ string
22319 ctx_ context.Context
22320 header_ http.Header
22321 }
22322
22323
22324
22325
22326
22327
22328 func (r *ProjectsLocationsCollectionsEnginesOperationsService) Get(name string) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
22329 c := &ProjectsLocationsCollectionsEnginesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22330 c.name = name
22331 return c
22332 }
22333
22334
22335
22336
22337 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
22338 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22339 return c
22340 }
22341
22342
22343
22344
22345 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
22346 c.ifNoneMatch_ = entityTag
22347 return c
22348 }
22349
22350
22351 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
22352 c.ctx_ = ctx
22353 return c
22354 }
22355
22356
22357
22358 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Header() http.Header {
22359 if c.header_ == nil {
22360 c.header_ = make(http.Header)
22361 }
22362 return c.header_
22363 }
22364
22365 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
22366 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22367 if c.ifNoneMatch_ != "" {
22368 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22369 }
22370 var body io.Reader = nil
22371 c.urlParams_.Set("alt", alt)
22372 c.urlParams_.Set("prettyPrint", "false")
22373 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
22374 urls += "?" + c.urlParams_.Encode()
22375 req, err := http.NewRequest("GET", urls, body)
22376 if err != nil {
22377 return nil, err
22378 }
22379 req.Header = reqHeaders
22380 googleapi.Expand(req.URL, map[string]string{
22381 "name": c.name,
22382 })
22383 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22384 }
22385
22386
22387
22388
22389
22390
22391
22392 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22393 gensupport.SetOptions(c.urlParams_, opts...)
22394 res, err := c.doRequest("json")
22395 if res != nil && res.StatusCode == http.StatusNotModified {
22396 if res.Body != nil {
22397 res.Body.Close()
22398 }
22399 return nil, gensupport.WrapError(&googleapi.Error{
22400 Code: res.StatusCode,
22401 Header: res.Header,
22402 })
22403 }
22404 if err != nil {
22405 return nil, err
22406 }
22407 defer googleapi.CloseBody(res)
22408 if err := googleapi.CheckResponse(res); err != nil {
22409 return nil, gensupport.WrapError(err)
22410 }
22411 ret := &GoogleLongrunningOperation{
22412 ServerResponse: googleapi.ServerResponse{
22413 Header: res.Header,
22414 HTTPStatusCode: res.StatusCode,
22415 },
22416 }
22417 target := &ret
22418 if err := gensupport.DecodeResponse(target, res); err != nil {
22419 return nil, err
22420 }
22421 return ret, nil
22422 }
22423
22424 type ProjectsLocationsCollectionsEnginesOperationsListCall struct {
22425 s *Service
22426 name string
22427 urlParams_ gensupport.URLParams
22428 ifNoneMatch_ string
22429 ctx_ context.Context
22430 header_ http.Header
22431 }
22432
22433
22434
22435
22436
22437 func (r *ProjectsLocationsCollectionsEnginesOperationsService) List(name string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
22438 c := &ProjectsLocationsCollectionsEnginesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22439 c.name = name
22440 return c
22441 }
22442
22443
22444 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
22445 c.urlParams_.Set("filter", filter)
22446 return c
22447 }
22448
22449
22450
22451 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesOperationsListCall {
22452 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22453 return c
22454 }
22455
22456
22457
22458 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
22459 c.urlParams_.Set("pageToken", pageToken)
22460 return c
22461 }
22462
22463
22464
22465
22466 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsListCall {
22467 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22468 return c
22469 }
22470
22471
22472
22473
22474 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
22475 c.ifNoneMatch_ = entityTag
22476 return c
22477 }
22478
22479
22480 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsListCall {
22481 c.ctx_ = ctx
22482 return c
22483 }
22484
22485
22486
22487 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Header() http.Header {
22488 if c.header_ == nil {
22489 c.header_ = make(http.Header)
22490 }
22491 return c.header_
22492 }
22493
22494 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) doRequest(alt string) (*http.Response, error) {
22495 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22496 if c.ifNoneMatch_ != "" {
22497 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22498 }
22499 var body io.Reader = nil
22500 c.urlParams_.Set("alt", alt)
22501 c.urlParams_.Set("prettyPrint", "false")
22502 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
22503 urls += "?" + c.urlParams_.Encode()
22504 req, err := http.NewRequest("GET", urls, body)
22505 if err != nil {
22506 return nil, err
22507 }
22508 req.Header = reqHeaders
22509 googleapi.Expand(req.URL, map[string]string{
22510 "name": c.name,
22511 })
22512 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22513 }
22514
22515
22516
22517
22518
22519
22520
22521 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
22522 gensupport.SetOptions(c.urlParams_, opts...)
22523 res, err := c.doRequest("json")
22524 if res != nil && res.StatusCode == http.StatusNotModified {
22525 if res.Body != nil {
22526 res.Body.Close()
22527 }
22528 return nil, gensupport.WrapError(&googleapi.Error{
22529 Code: res.StatusCode,
22530 Header: res.Header,
22531 })
22532 }
22533 if err != nil {
22534 return nil, err
22535 }
22536 defer googleapi.CloseBody(res)
22537 if err := googleapi.CheckResponse(res); err != nil {
22538 return nil, gensupport.WrapError(err)
22539 }
22540 ret := &GoogleLongrunningListOperationsResponse{
22541 ServerResponse: googleapi.ServerResponse{
22542 Header: res.Header,
22543 HTTPStatusCode: res.StatusCode,
22544 },
22545 }
22546 target := &ret
22547 if err := gensupport.DecodeResponse(target, res); err != nil {
22548 return nil, err
22549 }
22550 return ret, nil
22551 }
22552
22553
22554
22555
22556 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
22557 c.ctx_ = ctx
22558 defer c.PageToken(c.urlParams_.Get("pageToken"))
22559 for {
22560 x, err := c.Do()
22561 if err != nil {
22562 return err
22563 }
22564 if err := f(x); err != nil {
22565 return err
22566 }
22567 if x.NextPageToken == "" {
22568 return nil
22569 }
22570 c.PageToken(x.NextPageToken)
22571 }
22572 }
22573
22574 type ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall struct {
22575 s *Service
22576 servingConfig string
22577 googleclouddiscoveryenginev1betaanswerqueryrequest *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
22578 urlParams_ gensupport.URLParams
22579 ctx_ context.Context
22580 header_ http.Header
22581 }
22582
22583
22584
22585
22586
22587
22588
22589
22590
22591 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Answer(servingConfig string, googleclouddiscoveryenginev1betaanswerqueryrequest *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest) *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall {
22592 c := &ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22593 c.servingConfig = servingConfig
22594 c.googleclouddiscoveryenginev1betaanswerqueryrequest = googleclouddiscoveryenginev1betaanswerqueryrequest
22595 return c
22596 }
22597
22598
22599
22600
22601 func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall {
22602 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22603 return c
22604 }
22605
22606
22607 func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall {
22608 c.ctx_ = ctx
22609 return c
22610 }
22611
22612
22613
22614 func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Header() http.Header {
22615 if c.header_ == nil {
22616 c.header_ = make(http.Header)
22617 }
22618 return c.header_
22619 }
22620
22621 func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) doRequest(alt string) (*http.Response, error) {
22622 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22623 var body io.Reader = nil
22624 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaanswerqueryrequest)
22625 if err != nil {
22626 return nil, err
22627 }
22628 c.urlParams_.Set("alt", alt)
22629 c.urlParams_.Set("prettyPrint", "false")
22630 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:answer")
22631 urls += "?" + c.urlParams_.Encode()
22632 req, err := http.NewRequest("POST", urls, body)
22633 if err != nil {
22634 return nil, err
22635 }
22636 req.Header = reqHeaders
22637 googleapi.Expand(req.URL, map[string]string{
22638 "servingConfig": c.servingConfig,
22639 })
22640 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22641 }
22642
22643
22644
22645
22646
22647
22648
22649 func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaAnswerQueryResponse, error) {
22650 gensupport.SetOptions(c.urlParams_, opts...)
22651 res, err := c.doRequest("json")
22652 if res != nil && res.StatusCode == http.StatusNotModified {
22653 if res.Body != nil {
22654 res.Body.Close()
22655 }
22656 return nil, gensupport.WrapError(&googleapi.Error{
22657 Code: res.StatusCode,
22658 Header: res.Header,
22659 })
22660 }
22661 if err != nil {
22662 return nil, err
22663 }
22664 defer googleapi.CloseBody(res)
22665 if err := googleapi.CheckResponse(res); err != nil {
22666 return nil, gensupport.WrapError(err)
22667 }
22668 ret := &GoogleCloudDiscoveryengineV1betaAnswerQueryResponse{
22669 ServerResponse: googleapi.ServerResponse{
22670 Header: res.Header,
22671 HTTPStatusCode: res.StatusCode,
22672 },
22673 }
22674 target := &ret
22675 if err := gensupport.DecodeResponse(target, res); err != nil {
22676 return nil, err
22677 }
22678 return ret, nil
22679 }
22680
22681 type ProjectsLocationsCollectionsEnginesServingConfigsGetCall struct {
22682 s *Service
22683 name string
22684 urlParams_ gensupport.URLParams
22685 ifNoneMatch_ string
22686 ctx_ context.Context
22687 header_ http.Header
22688 }
22689
22690
22691
22692
22693
22694
22695
22696 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Get(name string) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
22697 c := &ProjectsLocationsCollectionsEnginesServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22698 c.name = name
22699 return c
22700 }
22701
22702
22703
22704
22705 func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
22706 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22707 return c
22708 }
22709
22710
22711
22712
22713 func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
22714 c.ifNoneMatch_ = entityTag
22715 return c
22716 }
22717
22718
22719 func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
22720 c.ctx_ = ctx
22721 return c
22722 }
22723
22724
22725
22726 func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Header() http.Header {
22727 if c.header_ == nil {
22728 c.header_ = make(http.Header)
22729 }
22730 return c.header_
22731 }
22732
22733 func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) doRequest(alt string) (*http.Response, error) {
22734 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22735 if c.ifNoneMatch_ != "" {
22736 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22737 }
22738 var body io.Reader = nil
22739 c.urlParams_.Set("alt", alt)
22740 c.urlParams_.Set("prettyPrint", "false")
22741 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
22742 urls += "?" + c.urlParams_.Encode()
22743 req, err := http.NewRequest("GET", urls, body)
22744 if err != nil {
22745 return nil, err
22746 }
22747 req.Header = reqHeaders
22748 googleapi.Expand(req.URL, map[string]string{
22749 "name": c.name,
22750 })
22751 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22752 }
22753
22754
22755
22756
22757
22758
22759
22760 func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaServingConfig, error) {
22761 gensupport.SetOptions(c.urlParams_, opts...)
22762 res, err := c.doRequest("json")
22763 if res != nil && res.StatusCode == http.StatusNotModified {
22764 if res.Body != nil {
22765 res.Body.Close()
22766 }
22767 return nil, gensupport.WrapError(&googleapi.Error{
22768 Code: res.StatusCode,
22769 Header: res.Header,
22770 })
22771 }
22772 if err != nil {
22773 return nil, err
22774 }
22775 defer googleapi.CloseBody(res)
22776 if err := googleapi.CheckResponse(res); err != nil {
22777 return nil, gensupport.WrapError(err)
22778 }
22779 ret := &GoogleCloudDiscoveryengineV1betaServingConfig{
22780 ServerResponse: googleapi.ServerResponse{
22781 Header: res.Header,
22782 HTTPStatusCode: res.StatusCode,
22783 },
22784 }
22785 target := &ret
22786 if err := gensupport.DecodeResponse(target, res); err != nil {
22787 return nil, err
22788 }
22789 return ret, nil
22790 }
22791
22792 type ProjectsLocationsCollectionsEnginesServingConfigsListCall struct {
22793 s *Service
22794 parent string
22795 urlParams_ gensupport.URLParams
22796 ifNoneMatch_ string
22797 ctx_ context.Context
22798 header_ http.Header
22799 }
22800
22801
22802
22803
22804
22805
22806 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) List(parent string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
22807 c := &ProjectsLocationsCollectionsEnginesServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22808 c.parent = parent
22809 return c
22810 }
22811
22812
22813
22814
22815 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
22816 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22817 return c
22818 }
22819
22820
22821
22822
22823 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
22824 c.urlParams_.Set("pageToken", pageToken)
22825 return c
22826 }
22827
22828
22829
22830
22831 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
22832 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22833 return c
22834 }
22835
22836
22837
22838
22839 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
22840 c.ifNoneMatch_ = entityTag
22841 return c
22842 }
22843
22844
22845 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
22846 c.ctx_ = ctx
22847 return c
22848 }
22849
22850
22851
22852 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Header() http.Header {
22853 if c.header_ == nil {
22854 c.header_ = make(http.Header)
22855 }
22856 return c.header_
22857 }
22858
22859 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) doRequest(alt string) (*http.Response, error) {
22860 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22861 if c.ifNoneMatch_ != "" {
22862 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22863 }
22864 var body io.Reader = nil
22865 c.urlParams_.Set("alt", alt)
22866 c.urlParams_.Set("prettyPrint", "false")
22867 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/servingConfigs")
22868 urls += "?" + c.urlParams_.Encode()
22869 req, err := http.NewRequest("GET", urls, body)
22870 if err != nil {
22871 return nil, err
22872 }
22873 req.Header = reqHeaders
22874 googleapi.Expand(req.URL, map[string]string{
22875 "parent": c.parent,
22876 })
22877 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22878 }
22879
22880
22881
22882
22883
22884
22885
22886 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListServingConfigsResponse, error) {
22887 gensupport.SetOptions(c.urlParams_, opts...)
22888 res, err := c.doRequest("json")
22889 if res != nil && res.StatusCode == http.StatusNotModified {
22890 if res.Body != nil {
22891 res.Body.Close()
22892 }
22893 return nil, gensupport.WrapError(&googleapi.Error{
22894 Code: res.StatusCode,
22895 Header: res.Header,
22896 })
22897 }
22898 if err != nil {
22899 return nil, err
22900 }
22901 defer googleapi.CloseBody(res)
22902 if err := googleapi.CheckResponse(res); err != nil {
22903 return nil, gensupport.WrapError(err)
22904 }
22905 ret := &GoogleCloudDiscoveryengineV1betaListServingConfigsResponse{
22906 ServerResponse: googleapi.ServerResponse{
22907 Header: res.Header,
22908 HTTPStatusCode: res.StatusCode,
22909 },
22910 }
22911 target := &ret
22912 if err := gensupport.DecodeResponse(target, res); err != nil {
22913 return nil, err
22914 }
22915 return ret, nil
22916 }
22917
22918
22919
22920
22921 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListServingConfigsResponse) error) error {
22922 c.ctx_ = ctx
22923 defer c.PageToken(c.urlParams_.Get("pageToken"))
22924 for {
22925 x, err := c.Do()
22926 if err != nil {
22927 return err
22928 }
22929 if err := f(x); err != nil {
22930 return err
22931 }
22932 if x.NextPageToken == "" {
22933 return nil
22934 }
22935 c.PageToken(x.NextPageToken)
22936 }
22937 }
22938
22939 type ProjectsLocationsCollectionsEnginesServingConfigsPatchCall struct {
22940 s *Service
22941 name string
22942 googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig
22943 urlParams_ gensupport.URLParams
22944 ctx_ context.Context
22945 header_ http.Header
22946 }
22947
22948
22949
22950
22951
22952
22953
22954 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Patch(name string, googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
22955 c := &ProjectsLocationsCollectionsEnginesServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22956 c.name = name
22957 c.googleclouddiscoveryenginev1betaservingconfig = googleclouddiscoveryenginev1betaservingconfig
22958 return c
22959 }
22960
22961
22962
22963
22964 func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
22965 c.urlParams_.Set("updateMask", updateMask)
22966 return c
22967 }
22968
22969
22970
22971
22972 func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
22973 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22974 return c
22975 }
22976
22977
22978 func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
22979 c.ctx_ = ctx
22980 return c
22981 }
22982
22983
22984
22985 func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Header() http.Header {
22986 if c.header_ == nil {
22987 c.header_ = make(http.Header)
22988 }
22989 return c.header_
22990 }
22991
22992 func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
22993 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22994 var body io.Reader = nil
22995 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaservingconfig)
22996 if err != nil {
22997 return nil, err
22998 }
22999 c.urlParams_.Set("alt", alt)
23000 c.urlParams_.Set("prettyPrint", "false")
23001 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
23002 urls += "?" + c.urlParams_.Encode()
23003 req, err := http.NewRequest("PATCH", urls, body)
23004 if err != nil {
23005 return nil, err
23006 }
23007 req.Header = reqHeaders
23008 googleapi.Expand(req.URL, map[string]string{
23009 "name": c.name,
23010 })
23011 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23012 }
23013
23014
23015
23016
23017
23018
23019
23020 func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaServingConfig, error) {
23021 gensupport.SetOptions(c.urlParams_, opts...)
23022 res, err := c.doRequest("json")
23023 if res != nil && res.StatusCode == http.StatusNotModified {
23024 if res.Body != nil {
23025 res.Body.Close()
23026 }
23027 return nil, gensupport.WrapError(&googleapi.Error{
23028 Code: res.StatusCode,
23029 Header: res.Header,
23030 })
23031 }
23032 if err != nil {
23033 return nil, err
23034 }
23035 defer googleapi.CloseBody(res)
23036 if err := googleapi.CheckResponse(res); err != nil {
23037 return nil, gensupport.WrapError(err)
23038 }
23039 ret := &GoogleCloudDiscoveryengineV1betaServingConfig{
23040 ServerResponse: googleapi.ServerResponse{
23041 Header: res.Header,
23042 HTTPStatusCode: res.StatusCode,
23043 },
23044 }
23045 target := &ret
23046 if err := gensupport.DecodeResponse(target, res); err != nil {
23047 return nil, err
23048 }
23049 return ret, nil
23050 }
23051
23052 type ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall struct {
23053 s *Service
23054 servingConfig string
23055 googleclouddiscoveryenginev1betarecommendrequest *GoogleCloudDiscoveryengineV1betaRecommendRequest
23056 urlParams_ gensupport.URLParams
23057 ctx_ context.Context
23058 header_ http.Header
23059 }
23060
23061
23062
23063
23064
23065
23066
23067
23068
23069
23070
23071
23072 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1betarecommendrequest *GoogleCloudDiscoveryengineV1betaRecommendRequest) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
23073 c := &ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23074 c.servingConfig = servingConfig
23075 c.googleclouddiscoveryenginev1betarecommendrequest = googleclouddiscoveryenginev1betarecommendrequest
23076 return c
23077 }
23078
23079
23080
23081
23082 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
23083 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23084 return c
23085 }
23086
23087
23088 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
23089 c.ctx_ = ctx
23090 return c
23091 }
23092
23093
23094
23095 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Header() http.Header {
23096 if c.header_ == nil {
23097 c.header_ = make(http.Header)
23098 }
23099 return c.header_
23100 }
23101
23102 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
23103 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23104 var body io.Reader = nil
23105 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betarecommendrequest)
23106 if err != nil {
23107 return nil, err
23108 }
23109 c.urlParams_.Set("alt", alt)
23110 c.urlParams_.Set("prettyPrint", "false")
23111 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:recommend")
23112 urls += "?" + c.urlParams_.Encode()
23113 req, err := http.NewRequest("POST", urls, body)
23114 if err != nil {
23115 return nil, err
23116 }
23117 req.Header = reqHeaders
23118 googleapi.Expand(req.URL, map[string]string{
23119 "servingConfig": c.servingConfig,
23120 })
23121 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23122 }
23123
23124
23125
23126
23127
23128
23129
23130 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaRecommendResponse, error) {
23131 gensupport.SetOptions(c.urlParams_, opts...)
23132 res, err := c.doRequest("json")
23133 if res != nil && res.StatusCode == http.StatusNotModified {
23134 if res.Body != nil {
23135 res.Body.Close()
23136 }
23137 return nil, gensupport.WrapError(&googleapi.Error{
23138 Code: res.StatusCode,
23139 Header: res.Header,
23140 })
23141 }
23142 if err != nil {
23143 return nil, err
23144 }
23145 defer googleapi.CloseBody(res)
23146 if err := googleapi.CheckResponse(res); err != nil {
23147 return nil, gensupport.WrapError(err)
23148 }
23149 ret := &GoogleCloudDiscoveryengineV1betaRecommendResponse{
23150 ServerResponse: googleapi.ServerResponse{
23151 Header: res.Header,
23152 HTTPStatusCode: res.StatusCode,
23153 },
23154 }
23155 target := &ret
23156 if err := gensupport.DecodeResponse(target, res); err != nil {
23157 return nil, err
23158 }
23159 return ret, nil
23160 }
23161
23162 type ProjectsLocationsCollectionsEnginesServingConfigsSearchCall struct {
23163 s *Service
23164 servingConfig string
23165 googleclouddiscoveryenginev1betasearchrequest *GoogleCloudDiscoveryengineV1betaSearchRequest
23166 urlParams_ gensupport.URLParams
23167 ctx_ context.Context
23168 header_ http.Header
23169 }
23170
23171
23172
23173
23174
23175
23176
23177
23178
23179
23180 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1betasearchrequest *GoogleCloudDiscoveryengineV1betaSearchRequest) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
23181 c := &ProjectsLocationsCollectionsEnginesServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23182 c.servingConfig = servingConfig
23183 c.googleclouddiscoveryenginev1betasearchrequest = googleclouddiscoveryenginev1betasearchrequest
23184 return c
23185 }
23186
23187
23188
23189
23190 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
23191 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23192 return c
23193 }
23194
23195
23196 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
23197 c.ctx_ = ctx
23198 return c
23199 }
23200
23201
23202
23203 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Header() http.Header {
23204 if c.header_ == nil {
23205 c.header_ = make(http.Header)
23206 }
23207 return c.header_
23208 }
23209
23210 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
23211 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23212 var body io.Reader = nil
23213 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasearchrequest)
23214 if err != nil {
23215 return nil, err
23216 }
23217 c.urlParams_.Set("alt", alt)
23218 c.urlParams_.Set("prettyPrint", "false")
23219 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:search")
23220 urls += "?" + c.urlParams_.Encode()
23221 req, err := http.NewRequest("POST", urls, body)
23222 if err != nil {
23223 return nil, err
23224 }
23225 req.Header = reqHeaders
23226 googleapi.Expand(req.URL, map[string]string{
23227 "servingConfig": c.servingConfig,
23228 })
23229 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23230 }
23231
23232
23233
23234
23235
23236
23237
23238 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSearchResponse, error) {
23239 gensupport.SetOptions(c.urlParams_, opts...)
23240 res, err := c.doRequest("json")
23241 if res != nil && res.StatusCode == http.StatusNotModified {
23242 if res.Body != nil {
23243 res.Body.Close()
23244 }
23245 return nil, gensupport.WrapError(&googleapi.Error{
23246 Code: res.StatusCode,
23247 Header: res.Header,
23248 })
23249 }
23250 if err != nil {
23251 return nil, err
23252 }
23253 defer googleapi.CloseBody(res)
23254 if err := googleapi.CheckResponse(res); err != nil {
23255 return nil, gensupport.WrapError(err)
23256 }
23257 ret := &GoogleCloudDiscoveryengineV1betaSearchResponse{
23258 ServerResponse: googleapi.ServerResponse{
23259 Header: res.Header,
23260 HTTPStatusCode: res.StatusCode,
23261 },
23262 }
23263 target := &ret
23264 if err := gensupport.DecodeResponse(target, res); err != nil {
23265 return nil, err
23266 }
23267 return ret, nil
23268 }
23269
23270
23271
23272
23273 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaSearchResponse) error) error {
23274 c.ctx_ = ctx
23275 defer func(pt string) { c.googleclouddiscoveryenginev1betasearchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1betasearchrequest.PageToken)
23276 for {
23277 x, err := c.Do()
23278 if err != nil {
23279 return err
23280 }
23281 if err := f(x); err != nil {
23282 return err
23283 }
23284 if x.NextPageToken == "" {
23285 return nil
23286 }
23287 c.googleclouddiscoveryenginev1betasearchrequest.PageToken = x.NextPageToken
23288 }
23289 }
23290
23291 type ProjectsLocationsCollectionsEnginesSessionsCreateCall struct {
23292 s *Service
23293 parent string
23294 googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession
23295 urlParams_ gensupport.URLParams
23296 ctx_ context.Context
23297 header_ http.Header
23298 }
23299
23300
23301
23302
23303
23304
23305
23306 func (r *ProjectsLocationsCollectionsEnginesSessionsService) Create(parent string, googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession) *ProjectsLocationsCollectionsEnginesSessionsCreateCall {
23307 c := &ProjectsLocationsCollectionsEnginesSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23308 c.parent = parent
23309 c.googleclouddiscoveryenginev1betasession = googleclouddiscoveryenginev1betasession
23310 return c
23311 }
23312
23313
23314
23315
23316 func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsCreateCall {
23317 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23318 return c
23319 }
23320
23321
23322 func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsCreateCall {
23323 c.ctx_ = ctx
23324 return c
23325 }
23326
23327
23328
23329 func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Header() http.Header {
23330 if c.header_ == nil {
23331 c.header_ = make(http.Header)
23332 }
23333 return c.header_
23334 }
23335
23336 func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) doRequest(alt string) (*http.Response, error) {
23337 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23338 var body io.Reader = nil
23339 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasession)
23340 if err != nil {
23341 return nil, err
23342 }
23343 c.urlParams_.Set("alt", alt)
23344 c.urlParams_.Set("prettyPrint", "false")
23345 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sessions")
23346 urls += "?" + c.urlParams_.Encode()
23347 req, err := http.NewRequest("POST", urls, body)
23348 if err != nil {
23349 return nil, err
23350 }
23351 req.Header = reqHeaders
23352 googleapi.Expand(req.URL, map[string]string{
23353 "parent": c.parent,
23354 })
23355 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23356 }
23357
23358
23359
23360
23361
23362
23363
23364 func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
23365 gensupport.SetOptions(c.urlParams_, opts...)
23366 res, err := c.doRequest("json")
23367 if res != nil && res.StatusCode == http.StatusNotModified {
23368 if res.Body != nil {
23369 res.Body.Close()
23370 }
23371 return nil, gensupport.WrapError(&googleapi.Error{
23372 Code: res.StatusCode,
23373 Header: res.Header,
23374 })
23375 }
23376 if err != nil {
23377 return nil, err
23378 }
23379 defer googleapi.CloseBody(res)
23380 if err := googleapi.CheckResponse(res); err != nil {
23381 return nil, gensupport.WrapError(err)
23382 }
23383 ret := &GoogleCloudDiscoveryengineV1betaSession{
23384 ServerResponse: googleapi.ServerResponse{
23385 Header: res.Header,
23386 HTTPStatusCode: res.StatusCode,
23387 },
23388 }
23389 target := &ret
23390 if err := gensupport.DecodeResponse(target, res); err != nil {
23391 return nil, err
23392 }
23393 return ret, nil
23394 }
23395
23396 type ProjectsLocationsCollectionsEnginesSessionsDeleteCall struct {
23397 s *Service
23398 name string
23399 urlParams_ gensupport.URLParams
23400 ctx_ context.Context
23401 header_ http.Header
23402 }
23403
23404
23405
23406
23407
23408
23409
23410 func (r *ProjectsLocationsCollectionsEnginesSessionsService) Delete(name string) *ProjectsLocationsCollectionsEnginesSessionsDeleteCall {
23411 c := &ProjectsLocationsCollectionsEnginesSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23412 c.name = name
23413 return c
23414 }
23415
23416
23417
23418
23419 func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsDeleteCall {
23420 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23421 return c
23422 }
23423
23424
23425 func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsDeleteCall {
23426 c.ctx_ = ctx
23427 return c
23428 }
23429
23430
23431
23432 func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Header() http.Header {
23433 if c.header_ == nil {
23434 c.header_ = make(http.Header)
23435 }
23436 return c.header_
23437 }
23438
23439 func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) doRequest(alt string) (*http.Response, error) {
23440 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23441 var body io.Reader = nil
23442 c.urlParams_.Set("alt", alt)
23443 c.urlParams_.Set("prettyPrint", "false")
23444 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
23445 urls += "?" + c.urlParams_.Encode()
23446 req, err := http.NewRequest("DELETE", urls, body)
23447 if err != nil {
23448 return nil, err
23449 }
23450 req.Header = reqHeaders
23451 googleapi.Expand(req.URL, map[string]string{
23452 "name": c.name,
23453 })
23454 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23455 }
23456
23457
23458
23459
23460
23461
23462
23463 func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
23464 gensupport.SetOptions(c.urlParams_, opts...)
23465 res, err := c.doRequest("json")
23466 if res != nil && res.StatusCode == http.StatusNotModified {
23467 if res.Body != nil {
23468 res.Body.Close()
23469 }
23470 return nil, gensupport.WrapError(&googleapi.Error{
23471 Code: res.StatusCode,
23472 Header: res.Header,
23473 })
23474 }
23475 if err != nil {
23476 return nil, err
23477 }
23478 defer googleapi.CloseBody(res)
23479 if err := googleapi.CheckResponse(res); err != nil {
23480 return nil, gensupport.WrapError(err)
23481 }
23482 ret := &GoogleProtobufEmpty{
23483 ServerResponse: googleapi.ServerResponse{
23484 Header: res.Header,
23485 HTTPStatusCode: res.StatusCode,
23486 },
23487 }
23488 target := &ret
23489 if err := gensupport.DecodeResponse(target, res); err != nil {
23490 return nil, err
23491 }
23492 return ret, nil
23493 }
23494
23495 type ProjectsLocationsCollectionsEnginesSessionsGetCall struct {
23496 s *Service
23497 name string
23498 urlParams_ gensupport.URLParams
23499 ifNoneMatch_ string
23500 ctx_ context.Context
23501 header_ http.Header
23502 }
23503
23504
23505
23506
23507
23508
23509 func (r *ProjectsLocationsCollectionsEnginesSessionsService) Get(name string) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
23510 c := &ProjectsLocationsCollectionsEnginesSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23511 c.name = name
23512 return c
23513 }
23514
23515
23516
23517
23518 func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
23519 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23520 return c
23521 }
23522
23523
23524
23525
23526 func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
23527 c.ifNoneMatch_ = entityTag
23528 return c
23529 }
23530
23531
23532 func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
23533 c.ctx_ = ctx
23534 return c
23535 }
23536
23537
23538
23539 func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Header() http.Header {
23540 if c.header_ == nil {
23541 c.header_ = make(http.Header)
23542 }
23543 return c.header_
23544 }
23545
23546 func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) doRequest(alt string) (*http.Response, error) {
23547 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23548 if c.ifNoneMatch_ != "" {
23549 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23550 }
23551 var body io.Reader = nil
23552 c.urlParams_.Set("alt", alt)
23553 c.urlParams_.Set("prettyPrint", "false")
23554 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
23555 urls += "?" + c.urlParams_.Encode()
23556 req, err := http.NewRequest("GET", urls, body)
23557 if err != nil {
23558 return nil, err
23559 }
23560 req.Header = reqHeaders
23561 googleapi.Expand(req.URL, map[string]string{
23562 "name": c.name,
23563 })
23564 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23565 }
23566
23567
23568
23569
23570
23571
23572
23573 func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
23574 gensupport.SetOptions(c.urlParams_, opts...)
23575 res, err := c.doRequest("json")
23576 if res != nil && res.StatusCode == http.StatusNotModified {
23577 if res.Body != nil {
23578 res.Body.Close()
23579 }
23580 return nil, gensupport.WrapError(&googleapi.Error{
23581 Code: res.StatusCode,
23582 Header: res.Header,
23583 })
23584 }
23585 if err != nil {
23586 return nil, err
23587 }
23588 defer googleapi.CloseBody(res)
23589 if err := googleapi.CheckResponse(res); err != nil {
23590 return nil, gensupport.WrapError(err)
23591 }
23592 ret := &GoogleCloudDiscoveryengineV1betaSession{
23593 ServerResponse: googleapi.ServerResponse{
23594 Header: res.Header,
23595 HTTPStatusCode: res.StatusCode,
23596 },
23597 }
23598 target := &ret
23599 if err := gensupport.DecodeResponse(target, res); err != nil {
23600 return nil, err
23601 }
23602 return ret, nil
23603 }
23604
23605 type ProjectsLocationsCollectionsEnginesSessionsListCall struct {
23606 s *Service
23607 parent string
23608 urlParams_ gensupport.URLParams
23609 ifNoneMatch_ string
23610 ctx_ context.Context
23611 header_ http.Header
23612 }
23613
23614
23615
23616
23617
23618
23619 func (r *ProjectsLocationsCollectionsEnginesSessionsService) List(parent string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
23620 c := &ProjectsLocationsCollectionsEnginesSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23621 c.parent = parent
23622 return c
23623 }
23624
23625
23626
23627
23628 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
23629 c.urlParams_.Set("filter", filter)
23630 return c
23631 }
23632
23633
23634
23635
23636
23637 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
23638 c.urlParams_.Set("orderBy", orderBy)
23639 return c
23640 }
23641
23642
23643
23644 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesSessionsListCall {
23645 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23646 return c
23647 }
23648
23649
23650
23651
23652 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
23653 c.urlParams_.Set("pageToken", pageToken)
23654 return c
23655 }
23656
23657
23658
23659
23660 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsListCall {
23661 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23662 return c
23663 }
23664
23665
23666
23667
23668 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
23669 c.ifNoneMatch_ = entityTag
23670 return c
23671 }
23672
23673
23674 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsListCall {
23675 c.ctx_ = ctx
23676 return c
23677 }
23678
23679
23680
23681 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Header() http.Header {
23682 if c.header_ == nil {
23683 c.header_ = make(http.Header)
23684 }
23685 return c.header_
23686 }
23687
23688 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) doRequest(alt string) (*http.Response, error) {
23689 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23690 if c.ifNoneMatch_ != "" {
23691 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23692 }
23693 var body io.Reader = nil
23694 c.urlParams_.Set("alt", alt)
23695 c.urlParams_.Set("prettyPrint", "false")
23696 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sessions")
23697 urls += "?" + c.urlParams_.Encode()
23698 req, err := http.NewRequest("GET", urls, body)
23699 if err != nil {
23700 return nil, err
23701 }
23702 req.Header = reqHeaders
23703 googleapi.Expand(req.URL, map[string]string{
23704 "parent": c.parent,
23705 })
23706 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23707 }
23708
23709
23710
23711
23712
23713
23714
23715 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListSessionsResponse, error) {
23716 gensupport.SetOptions(c.urlParams_, opts...)
23717 res, err := c.doRequest("json")
23718 if res != nil && res.StatusCode == http.StatusNotModified {
23719 if res.Body != nil {
23720 res.Body.Close()
23721 }
23722 return nil, gensupport.WrapError(&googleapi.Error{
23723 Code: res.StatusCode,
23724 Header: res.Header,
23725 })
23726 }
23727 if err != nil {
23728 return nil, err
23729 }
23730 defer googleapi.CloseBody(res)
23731 if err := googleapi.CheckResponse(res); err != nil {
23732 return nil, gensupport.WrapError(err)
23733 }
23734 ret := &GoogleCloudDiscoveryengineV1betaListSessionsResponse{
23735 ServerResponse: googleapi.ServerResponse{
23736 Header: res.Header,
23737 HTTPStatusCode: res.StatusCode,
23738 },
23739 }
23740 target := &ret
23741 if err := gensupport.DecodeResponse(target, res); err != nil {
23742 return nil, err
23743 }
23744 return ret, nil
23745 }
23746
23747
23748
23749
23750 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListSessionsResponse) error) error {
23751 c.ctx_ = ctx
23752 defer c.PageToken(c.urlParams_.Get("pageToken"))
23753 for {
23754 x, err := c.Do()
23755 if err != nil {
23756 return err
23757 }
23758 if err := f(x); err != nil {
23759 return err
23760 }
23761 if x.NextPageToken == "" {
23762 return nil
23763 }
23764 c.PageToken(x.NextPageToken)
23765 }
23766 }
23767
23768 type ProjectsLocationsCollectionsEnginesSessionsPatchCall struct {
23769 s *Service
23770 name string
23771 googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession
23772 urlParams_ gensupport.URLParams
23773 ctx_ context.Context
23774 header_ http.Header
23775 }
23776
23777
23778
23779
23780
23781
23782
23783 func (r *ProjectsLocationsCollectionsEnginesSessionsService) Patch(name string, googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
23784 c := &ProjectsLocationsCollectionsEnginesSessionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23785 c.name = name
23786 c.googleclouddiscoveryenginev1betasession = googleclouddiscoveryenginev1betasession
23787 return c
23788 }
23789
23790
23791
23792
23793 func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
23794 c.urlParams_.Set("updateMask", updateMask)
23795 return c
23796 }
23797
23798
23799
23800
23801 func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
23802 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23803 return c
23804 }
23805
23806
23807 func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
23808 c.ctx_ = ctx
23809 return c
23810 }
23811
23812
23813
23814 func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Header() http.Header {
23815 if c.header_ == nil {
23816 c.header_ = make(http.Header)
23817 }
23818 return c.header_
23819 }
23820
23821 func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) doRequest(alt string) (*http.Response, error) {
23822 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23823 var body io.Reader = nil
23824 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasession)
23825 if err != nil {
23826 return nil, err
23827 }
23828 c.urlParams_.Set("alt", alt)
23829 c.urlParams_.Set("prettyPrint", "false")
23830 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
23831 urls += "?" + c.urlParams_.Encode()
23832 req, err := http.NewRequest("PATCH", urls, body)
23833 if err != nil {
23834 return nil, err
23835 }
23836 req.Header = reqHeaders
23837 googleapi.Expand(req.URL, map[string]string{
23838 "name": c.name,
23839 })
23840 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23841 }
23842
23843
23844
23845
23846
23847
23848
23849 func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
23850 gensupport.SetOptions(c.urlParams_, opts...)
23851 res, err := c.doRequest("json")
23852 if res != nil && res.StatusCode == http.StatusNotModified {
23853 if res.Body != nil {
23854 res.Body.Close()
23855 }
23856 return nil, gensupport.WrapError(&googleapi.Error{
23857 Code: res.StatusCode,
23858 Header: res.Header,
23859 })
23860 }
23861 if err != nil {
23862 return nil, err
23863 }
23864 defer googleapi.CloseBody(res)
23865 if err := googleapi.CheckResponse(res); err != nil {
23866 return nil, gensupport.WrapError(err)
23867 }
23868 ret := &GoogleCloudDiscoveryengineV1betaSession{
23869 ServerResponse: googleapi.ServerResponse{
23870 Header: res.Header,
23871 HTTPStatusCode: res.StatusCode,
23872 },
23873 }
23874 target := &ret
23875 if err := gensupport.DecodeResponse(target, res); err != nil {
23876 return nil, err
23877 }
23878 return ret, nil
23879 }
23880
23881 type ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall struct {
23882 s *Service
23883 name string
23884 urlParams_ gensupport.URLParams
23885 ifNoneMatch_ string
23886 ctx_ context.Context
23887 header_ http.Header
23888 }
23889
23890
23891
23892
23893
23894
23895 func (r *ProjectsLocationsCollectionsEnginesSessionsAnswersService) Get(name string) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
23896 c := &ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23897 c.name = name
23898 return c
23899 }
23900
23901
23902
23903
23904 func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
23905 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23906 return c
23907 }
23908
23909
23910
23911
23912 func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
23913 c.ifNoneMatch_ = entityTag
23914 return c
23915 }
23916
23917
23918 func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
23919 c.ctx_ = ctx
23920 return c
23921 }
23922
23923
23924
23925 func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Header() http.Header {
23926 if c.header_ == nil {
23927 c.header_ = make(http.Header)
23928 }
23929 return c.header_
23930 }
23931
23932 func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) doRequest(alt string) (*http.Response, error) {
23933 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23934 if c.ifNoneMatch_ != "" {
23935 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23936 }
23937 var body io.Reader = nil
23938 c.urlParams_.Set("alt", alt)
23939 c.urlParams_.Set("prettyPrint", "false")
23940 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
23941 urls += "?" + c.urlParams_.Encode()
23942 req, err := http.NewRequest("GET", urls, body)
23943 if err != nil {
23944 return nil, err
23945 }
23946 req.Header = reqHeaders
23947 googleapi.Expand(req.URL, map[string]string{
23948 "name": c.name,
23949 })
23950 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23951 }
23952
23953
23954
23955
23956
23957
23958
23959 func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaAnswer, error) {
23960 gensupport.SetOptions(c.urlParams_, opts...)
23961 res, err := c.doRequest("json")
23962 if res != nil && res.StatusCode == http.StatusNotModified {
23963 if res.Body != nil {
23964 res.Body.Close()
23965 }
23966 return nil, gensupport.WrapError(&googleapi.Error{
23967 Code: res.StatusCode,
23968 Header: res.Header,
23969 })
23970 }
23971 if err != nil {
23972 return nil, err
23973 }
23974 defer googleapi.CloseBody(res)
23975 if err := googleapi.CheckResponse(res); err != nil {
23976 return nil, gensupport.WrapError(err)
23977 }
23978 ret := &GoogleCloudDiscoveryengineV1betaAnswer{
23979 ServerResponse: googleapi.ServerResponse{
23980 Header: res.Header,
23981 HTTPStatusCode: res.StatusCode,
23982 },
23983 }
23984 target := &ret
23985 if err := gensupport.DecodeResponse(target, res); err != nil {
23986 return nil, err
23987 }
23988 return ret, nil
23989 }
23990
23991 type ProjectsLocationsCollectionsOperationsGetCall struct {
23992 s *Service
23993 name string
23994 urlParams_ gensupport.URLParams
23995 ifNoneMatch_ string
23996 ctx_ context.Context
23997 header_ http.Header
23998 }
23999
24000
24001
24002
24003
24004
24005 func (r *ProjectsLocationsCollectionsOperationsService) Get(name string) *ProjectsLocationsCollectionsOperationsGetCall {
24006 c := &ProjectsLocationsCollectionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24007 c.name = name
24008 return c
24009 }
24010
24011
24012
24013
24014 func (c *ProjectsLocationsCollectionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsOperationsGetCall {
24015 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24016 return c
24017 }
24018
24019
24020
24021
24022 func (c *ProjectsLocationsCollectionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsOperationsGetCall {
24023 c.ifNoneMatch_ = entityTag
24024 return c
24025 }
24026
24027
24028 func (c *ProjectsLocationsCollectionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsOperationsGetCall {
24029 c.ctx_ = ctx
24030 return c
24031 }
24032
24033
24034
24035 func (c *ProjectsLocationsCollectionsOperationsGetCall) Header() http.Header {
24036 if c.header_ == nil {
24037 c.header_ = make(http.Header)
24038 }
24039 return c.header_
24040 }
24041
24042 func (c *ProjectsLocationsCollectionsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
24043 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24044 if c.ifNoneMatch_ != "" {
24045 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24046 }
24047 var body io.Reader = nil
24048 c.urlParams_.Set("alt", alt)
24049 c.urlParams_.Set("prettyPrint", "false")
24050 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
24051 urls += "?" + c.urlParams_.Encode()
24052 req, err := http.NewRequest("GET", urls, body)
24053 if err != nil {
24054 return nil, err
24055 }
24056 req.Header = reqHeaders
24057 googleapi.Expand(req.URL, map[string]string{
24058 "name": c.name,
24059 })
24060 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24061 }
24062
24063
24064
24065
24066
24067
24068
24069 func (c *ProjectsLocationsCollectionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24070 gensupport.SetOptions(c.urlParams_, opts...)
24071 res, err := c.doRequest("json")
24072 if res != nil && res.StatusCode == http.StatusNotModified {
24073 if res.Body != nil {
24074 res.Body.Close()
24075 }
24076 return nil, gensupport.WrapError(&googleapi.Error{
24077 Code: res.StatusCode,
24078 Header: res.Header,
24079 })
24080 }
24081 if err != nil {
24082 return nil, err
24083 }
24084 defer googleapi.CloseBody(res)
24085 if err := googleapi.CheckResponse(res); err != nil {
24086 return nil, gensupport.WrapError(err)
24087 }
24088 ret := &GoogleLongrunningOperation{
24089 ServerResponse: googleapi.ServerResponse{
24090 Header: res.Header,
24091 HTTPStatusCode: res.StatusCode,
24092 },
24093 }
24094 target := &ret
24095 if err := gensupport.DecodeResponse(target, res); err != nil {
24096 return nil, err
24097 }
24098 return ret, nil
24099 }
24100
24101 type ProjectsLocationsCollectionsOperationsListCall struct {
24102 s *Service
24103 name string
24104 urlParams_ gensupport.URLParams
24105 ifNoneMatch_ string
24106 ctx_ context.Context
24107 header_ http.Header
24108 }
24109
24110
24111
24112
24113
24114 func (r *ProjectsLocationsCollectionsOperationsService) List(name string) *ProjectsLocationsCollectionsOperationsListCall {
24115 c := &ProjectsLocationsCollectionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24116 c.name = name
24117 return c
24118 }
24119
24120
24121 func (c *ProjectsLocationsCollectionsOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsOperationsListCall {
24122 c.urlParams_.Set("filter", filter)
24123 return c
24124 }
24125
24126
24127
24128 func (c *ProjectsLocationsCollectionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsOperationsListCall {
24129 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24130 return c
24131 }
24132
24133
24134
24135 func (c *ProjectsLocationsCollectionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsOperationsListCall {
24136 c.urlParams_.Set("pageToken", pageToken)
24137 return c
24138 }
24139
24140
24141
24142
24143 func (c *ProjectsLocationsCollectionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsOperationsListCall {
24144 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24145 return c
24146 }
24147
24148
24149
24150
24151 func (c *ProjectsLocationsCollectionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsOperationsListCall {
24152 c.ifNoneMatch_ = entityTag
24153 return c
24154 }
24155
24156
24157 func (c *ProjectsLocationsCollectionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsOperationsListCall {
24158 c.ctx_ = ctx
24159 return c
24160 }
24161
24162
24163
24164 func (c *ProjectsLocationsCollectionsOperationsListCall) Header() http.Header {
24165 if c.header_ == nil {
24166 c.header_ = make(http.Header)
24167 }
24168 return c.header_
24169 }
24170
24171 func (c *ProjectsLocationsCollectionsOperationsListCall) doRequest(alt string) (*http.Response, error) {
24172 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24173 if c.ifNoneMatch_ != "" {
24174 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24175 }
24176 var body io.Reader = nil
24177 c.urlParams_.Set("alt", alt)
24178 c.urlParams_.Set("prettyPrint", "false")
24179 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
24180 urls += "?" + c.urlParams_.Encode()
24181 req, err := http.NewRequest("GET", urls, body)
24182 if err != nil {
24183 return nil, err
24184 }
24185 req.Header = reqHeaders
24186 googleapi.Expand(req.URL, map[string]string{
24187 "name": c.name,
24188 })
24189 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24190 }
24191
24192
24193
24194
24195
24196
24197
24198 func (c *ProjectsLocationsCollectionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
24199 gensupport.SetOptions(c.urlParams_, opts...)
24200 res, err := c.doRequest("json")
24201 if res != nil && res.StatusCode == http.StatusNotModified {
24202 if res.Body != nil {
24203 res.Body.Close()
24204 }
24205 return nil, gensupport.WrapError(&googleapi.Error{
24206 Code: res.StatusCode,
24207 Header: res.Header,
24208 })
24209 }
24210 if err != nil {
24211 return nil, err
24212 }
24213 defer googleapi.CloseBody(res)
24214 if err := googleapi.CheckResponse(res); err != nil {
24215 return nil, gensupport.WrapError(err)
24216 }
24217 ret := &GoogleLongrunningListOperationsResponse{
24218 ServerResponse: googleapi.ServerResponse{
24219 Header: res.Header,
24220 HTTPStatusCode: res.StatusCode,
24221 },
24222 }
24223 target := &ret
24224 if err := gensupport.DecodeResponse(target, res); err != nil {
24225 return nil, err
24226 }
24227 return ret, nil
24228 }
24229
24230
24231
24232
24233 func (c *ProjectsLocationsCollectionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
24234 c.ctx_ = ctx
24235 defer c.PageToken(c.urlParams_.Get("pageToken"))
24236 for {
24237 x, err := c.Do()
24238 if err != nil {
24239 return err
24240 }
24241 if err := f(x); err != nil {
24242 return err
24243 }
24244 if x.NextPageToken == "" {
24245 return nil
24246 }
24247 c.PageToken(x.NextPageToken)
24248 }
24249 }
24250
24251 type ProjectsLocationsDataStoresCompleteQueryCall struct {
24252 s *Service
24253 dataStore string
24254 urlParams_ gensupport.URLParams
24255 ifNoneMatch_ string
24256 ctx_ context.Context
24257 header_ http.Header
24258 }
24259
24260
24261
24262
24263
24264
24265
24266 func (r *ProjectsLocationsDataStoresService) CompleteQuery(dataStore string) *ProjectsLocationsDataStoresCompleteQueryCall {
24267 c := &ProjectsLocationsDataStoresCompleteQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24268 c.dataStore = dataStore
24269 return c
24270 }
24271
24272
24273
24274
24275
24276
24277 func (c *ProjectsLocationsDataStoresCompleteQueryCall) IncludeTailSuggestions(includeTailSuggestions bool) *ProjectsLocationsDataStoresCompleteQueryCall {
24278 c.urlParams_.Set("includeTailSuggestions", fmt.Sprint(includeTailSuggestions))
24279 return c
24280 }
24281
24282
24283
24284 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Query(query string) *ProjectsLocationsDataStoresCompleteQueryCall {
24285 c.urlParams_.Set("query", query)
24286 return c
24287 }
24288
24289
24290
24291
24292
24293
24294
24295
24296
24297
24298
24299
24300
24301 func (c *ProjectsLocationsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsDataStoresCompleteQueryCall {
24302 c.urlParams_.Set("queryModel", queryModel)
24303 return c
24304 }
24305
24306
24307
24308
24309
24310
24311
24312
24313
24314
24315 func (c *ProjectsLocationsDataStoresCompleteQueryCall) UserPseudoId(userPseudoId string) *ProjectsLocationsDataStoresCompleteQueryCall {
24316 c.urlParams_.Set("userPseudoId", userPseudoId)
24317 return c
24318 }
24319
24320
24321
24322
24323 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresCompleteQueryCall {
24324 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24325 return c
24326 }
24327
24328
24329
24330
24331 func (c *ProjectsLocationsDataStoresCompleteQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresCompleteQueryCall {
24332 c.ifNoneMatch_ = entityTag
24333 return c
24334 }
24335
24336
24337 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Context(ctx context.Context) *ProjectsLocationsDataStoresCompleteQueryCall {
24338 c.ctx_ = ctx
24339 return c
24340 }
24341
24342
24343
24344 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Header() http.Header {
24345 if c.header_ == nil {
24346 c.header_ = make(http.Header)
24347 }
24348 return c.header_
24349 }
24350
24351 func (c *ProjectsLocationsDataStoresCompleteQueryCall) doRequest(alt string) (*http.Response, error) {
24352 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24353 if c.ifNoneMatch_ != "" {
24354 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24355 }
24356 var body io.Reader = nil
24357 c.urlParams_.Set("alt", alt)
24358 c.urlParams_.Set("prettyPrint", "false")
24359 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+dataStore}:completeQuery")
24360 urls += "?" + c.urlParams_.Encode()
24361 req, err := http.NewRequest("GET", urls, body)
24362 if err != nil {
24363 return nil, err
24364 }
24365 req.Header = reqHeaders
24366 googleapi.Expand(req.URL, map[string]string{
24367 "dataStore": c.dataStore,
24368 })
24369 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24370 }
24371
24372
24373
24374
24375
24376
24377
24378 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaCompleteQueryResponse, error) {
24379 gensupport.SetOptions(c.urlParams_, opts...)
24380 res, err := c.doRequest("json")
24381 if res != nil && res.StatusCode == http.StatusNotModified {
24382 if res.Body != nil {
24383 res.Body.Close()
24384 }
24385 return nil, gensupport.WrapError(&googleapi.Error{
24386 Code: res.StatusCode,
24387 Header: res.Header,
24388 })
24389 }
24390 if err != nil {
24391 return nil, err
24392 }
24393 defer googleapi.CloseBody(res)
24394 if err := googleapi.CheckResponse(res); err != nil {
24395 return nil, gensupport.WrapError(err)
24396 }
24397 ret := &GoogleCloudDiscoveryengineV1betaCompleteQueryResponse{
24398 ServerResponse: googleapi.ServerResponse{
24399 Header: res.Header,
24400 HTTPStatusCode: res.StatusCode,
24401 },
24402 }
24403 target := &ret
24404 if err := gensupport.DecodeResponse(target, res); err != nil {
24405 return nil, err
24406 }
24407 return ret, nil
24408 }
24409
24410 type ProjectsLocationsDataStoresCreateCall struct {
24411 s *Service
24412 parent string
24413 googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore
24414 urlParams_ gensupport.URLParams
24415 ctx_ context.Context
24416 header_ http.Header
24417 }
24418
24419
24420
24421
24422
24423
24424
24425 func (r *ProjectsLocationsDataStoresService) Create(parent string, googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore) *ProjectsLocationsDataStoresCreateCall {
24426 c := &ProjectsLocationsDataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24427 c.parent = parent
24428 c.googleclouddiscoveryenginev1betadatastore = googleclouddiscoveryenginev1betadatastore
24429 return c
24430 }
24431
24432
24433
24434
24435
24436
24437 func (c *ProjectsLocationsDataStoresCreateCall) CreateAdvancedSiteSearch(createAdvancedSiteSearch bool) *ProjectsLocationsDataStoresCreateCall {
24438 c.urlParams_.Set("createAdvancedSiteSearch", fmt.Sprint(createAdvancedSiteSearch))
24439 return c
24440 }
24441
24442
24443
24444
24445
24446
24447 func (c *ProjectsLocationsDataStoresCreateCall) DataStoreId(dataStoreId string) *ProjectsLocationsDataStoresCreateCall {
24448 c.urlParams_.Set("dataStoreId", dataStoreId)
24449 return c
24450 }
24451
24452
24453
24454
24455 func (c *ProjectsLocationsDataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresCreateCall {
24456 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24457 return c
24458 }
24459
24460
24461 func (c *ProjectsLocationsDataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresCreateCall {
24462 c.ctx_ = ctx
24463 return c
24464 }
24465
24466
24467
24468 func (c *ProjectsLocationsDataStoresCreateCall) Header() http.Header {
24469 if c.header_ == nil {
24470 c.header_ = make(http.Header)
24471 }
24472 return c.header_
24473 }
24474
24475 func (c *ProjectsLocationsDataStoresCreateCall) doRequest(alt string) (*http.Response, error) {
24476 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24477 var body io.Reader = nil
24478 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadatastore)
24479 if err != nil {
24480 return nil, err
24481 }
24482 c.urlParams_.Set("alt", alt)
24483 c.urlParams_.Set("prettyPrint", "false")
24484 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/dataStores")
24485 urls += "?" + c.urlParams_.Encode()
24486 req, err := http.NewRequest("POST", urls, body)
24487 if err != nil {
24488 return nil, err
24489 }
24490 req.Header = reqHeaders
24491 googleapi.Expand(req.URL, map[string]string{
24492 "parent": c.parent,
24493 })
24494 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24495 }
24496
24497
24498
24499
24500
24501
24502
24503 func (c *ProjectsLocationsDataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24504 gensupport.SetOptions(c.urlParams_, opts...)
24505 res, err := c.doRequest("json")
24506 if res != nil && res.StatusCode == http.StatusNotModified {
24507 if res.Body != nil {
24508 res.Body.Close()
24509 }
24510 return nil, gensupport.WrapError(&googleapi.Error{
24511 Code: res.StatusCode,
24512 Header: res.Header,
24513 })
24514 }
24515 if err != nil {
24516 return nil, err
24517 }
24518 defer googleapi.CloseBody(res)
24519 if err := googleapi.CheckResponse(res); err != nil {
24520 return nil, gensupport.WrapError(err)
24521 }
24522 ret := &GoogleLongrunningOperation{
24523 ServerResponse: googleapi.ServerResponse{
24524 Header: res.Header,
24525 HTTPStatusCode: res.StatusCode,
24526 },
24527 }
24528 target := &ret
24529 if err := gensupport.DecodeResponse(target, res); err != nil {
24530 return nil, err
24531 }
24532 return ret, nil
24533 }
24534
24535 type ProjectsLocationsDataStoresDeleteCall struct {
24536 s *Service
24537 name string
24538 urlParams_ gensupport.URLParams
24539 ctx_ context.Context
24540 header_ http.Header
24541 }
24542
24543
24544
24545
24546
24547
24548
24549
24550
24551 func (r *ProjectsLocationsDataStoresService) Delete(name string) *ProjectsLocationsDataStoresDeleteCall {
24552 c := &ProjectsLocationsDataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24553 c.name = name
24554 return c
24555 }
24556
24557
24558
24559
24560 func (c *ProjectsLocationsDataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresDeleteCall {
24561 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24562 return c
24563 }
24564
24565
24566 func (c *ProjectsLocationsDataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresDeleteCall {
24567 c.ctx_ = ctx
24568 return c
24569 }
24570
24571
24572
24573 func (c *ProjectsLocationsDataStoresDeleteCall) Header() http.Header {
24574 if c.header_ == nil {
24575 c.header_ = make(http.Header)
24576 }
24577 return c.header_
24578 }
24579
24580 func (c *ProjectsLocationsDataStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
24581 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24582 var body io.Reader = nil
24583 c.urlParams_.Set("alt", alt)
24584 c.urlParams_.Set("prettyPrint", "false")
24585 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
24586 urls += "?" + c.urlParams_.Encode()
24587 req, err := http.NewRequest("DELETE", urls, body)
24588 if err != nil {
24589 return nil, err
24590 }
24591 req.Header = reqHeaders
24592 googleapi.Expand(req.URL, map[string]string{
24593 "name": c.name,
24594 })
24595 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24596 }
24597
24598
24599
24600
24601
24602
24603
24604 func (c *ProjectsLocationsDataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24605 gensupport.SetOptions(c.urlParams_, opts...)
24606 res, err := c.doRequest("json")
24607 if res != nil && res.StatusCode == http.StatusNotModified {
24608 if res.Body != nil {
24609 res.Body.Close()
24610 }
24611 return nil, gensupport.WrapError(&googleapi.Error{
24612 Code: res.StatusCode,
24613 Header: res.Header,
24614 })
24615 }
24616 if err != nil {
24617 return nil, err
24618 }
24619 defer googleapi.CloseBody(res)
24620 if err := googleapi.CheckResponse(res); err != nil {
24621 return nil, gensupport.WrapError(err)
24622 }
24623 ret := &GoogleLongrunningOperation{
24624 ServerResponse: googleapi.ServerResponse{
24625 Header: res.Header,
24626 HTTPStatusCode: res.StatusCode,
24627 },
24628 }
24629 target := &ret
24630 if err := gensupport.DecodeResponse(target, res); err != nil {
24631 return nil, err
24632 }
24633 return ret, nil
24634 }
24635
24636 type ProjectsLocationsDataStoresGetCall struct {
24637 s *Service
24638 name string
24639 urlParams_ gensupport.URLParams
24640 ifNoneMatch_ string
24641 ctx_ context.Context
24642 header_ http.Header
24643 }
24644
24645
24646
24647
24648
24649
24650
24651
24652
24653 func (r *ProjectsLocationsDataStoresService) Get(name string) *ProjectsLocationsDataStoresGetCall {
24654 c := &ProjectsLocationsDataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24655 c.name = name
24656 return c
24657 }
24658
24659
24660
24661
24662 func (c *ProjectsLocationsDataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetCall {
24663 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24664 return c
24665 }
24666
24667
24668
24669
24670 func (c *ProjectsLocationsDataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetCall {
24671 c.ifNoneMatch_ = entityTag
24672 return c
24673 }
24674
24675
24676 func (c *ProjectsLocationsDataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetCall {
24677 c.ctx_ = ctx
24678 return c
24679 }
24680
24681
24682
24683 func (c *ProjectsLocationsDataStoresGetCall) Header() http.Header {
24684 if c.header_ == nil {
24685 c.header_ = make(http.Header)
24686 }
24687 return c.header_
24688 }
24689
24690 func (c *ProjectsLocationsDataStoresGetCall) doRequest(alt string) (*http.Response, error) {
24691 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24692 if c.ifNoneMatch_ != "" {
24693 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24694 }
24695 var body io.Reader = nil
24696 c.urlParams_.Set("alt", alt)
24697 c.urlParams_.Set("prettyPrint", "false")
24698 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
24699 urls += "?" + c.urlParams_.Encode()
24700 req, err := http.NewRequest("GET", urls, body)
24701 if err != nil {
24702 return nil, err
24703 }
24704 req.Header = reqHeaders
24705 googleapi.Expand(req.URL, map[string]string{
24706 "name": c.name,
24707 })
24708 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24709 }
24710
24711
24712
24713
24714
24715
24716
24717 func (c *ProjectsLocationsDataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDataStore, error) {
24718 gensupport.SetOptions(c.urlParams_, opts...)
24719 res, err := c.doRequest("json")
24720 if res != nil && res.StatusCode == http.StatusNotModified {
24721 if res.Body != nil {
24722 res.Body.Close()
24723 }
24724 return nil, gensupport.WrapError(&googleapi.Error{
24725 Code: res.StatusCode,
24726 Header: res.Header,
24727 })
24728 }
24729 if err != nil {
24730 return nil, err
24731 }
24732 defer googleapi.CloseBody(res)
24733 if err := googleapi.CheckResponse(res); err != nil {
24734 return nil, gensupport.WrapError(err)
24735 }
24736 ret := &GoogleCloudDiscoveryengineV1betaDataStore{
24737 ServerResponse: googleapi.ServerResponse{
24738 Header: res.Header,
24739 HTTPStatusCode: res.StatusCode,
24740 },
24741 }
24742 target := &ret
24743 if err := gensupport.DecodeResponse(target, res); err != nil {
24744 return nil, err
24745 }
24746 return ret, nil
24747 }
24748
24749 type ProjectsLocationsDataStoresGetSiteSearchEngineCall struct {
24750 s *Service
24751 name string
24752 urlParams_ gensupport.URLParams
24753 ifNoneMatch_ string
24754 ctx_ context.Context
24755 header_ http.Header
24756 }
24757
24758
24759
24760
24761
24762
24763
24764
24765 func (r *ProjectsLocationsDataStoresService) GetSiteSearchEngine(name string) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
24766 c := &ProjectsLocationsDataStoresGetSiteSearchEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24767 c.name = name
24768 return c
24769 }
24770
24771
24772
24773
24774 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
24775 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24776 return c
24777 }
24778
24779
24780
24781
24782 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
24783 c.ifNoneMatch_ = entityTag
24784 return c
24785 }
24786
24787
24788 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
24789 c.ctx_ = ctx
24790 return c
24791 }
24792
24793
24794
24795 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Header() http.Header {
24796 if c.header_ == nil {
24797 c.header_ = make(http.Header)
24798 }
24799 return c.header_
24800 }
24801
24802 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) doRequest(alt string) (*http.Response, error) {
24803 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24804 if c.ifNoneMatch_ != "" {
24805 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24806 }
24807 var body io.Reader = nil
24808 c.urlParams_.Set("alt", alt)
24809 c.urlParams_.Set("prettyPrint", "false")
24810 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
24811 urls += "?" + c.urlParams_.Encode()
24812 req, err := http.NewRequest("GET", urls, body)
24813 if err != nil {
24814 return nil, err
24815 }
24816 req.Header = reqHeaders
24817 googleapi.Expand(req.URL, map[string]string{
24818 "name": c.name,
24819 })
24820 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24821 }
24822
24823
24824
24825
24826
24827
24828
24829 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSiteSearchEngine, error) {
24830 gensupport.SetOptions(c.urlParams_, opts...)
24831 res, err := c.doRequest("json")
24832 if res != nil && res.StatusCode == http.StatusNotModified {
24833 if res.Body != nil {
24834 res.Body.Close()
24835 }
24836 return nil, gensupport.WrapError(&googleapi.Error{
24837 Code: res.StatusCode,
24838 Header: res.Header,
24839 })
24840 }
24841 if err != nil {
24842 return nil, err
24843 }
24844 defer googleapi.CloseBody(res)
24845 if err := googleapi.CheckResponse(res); err != nil {
24846 return nil, gensupport.WrapError(err)
24847 }
24848 ret := &GoogleCloudDiscoveryengineV1betaSiteSearchEngine{
24849 ServerResponse: googleapi.ServerResponse{
24850 Header: res.Header,
24851 HTTPStatusCode: res.StatusCode,
24852 },
24853 }
24854 target := &ret
24855 if err := gensupport.DecodeResponse(target, res); err != nil {
24856 return nil, err
24857 }
24858 return ret, nil
24859 }
24860
24861 type ProjectsLocationsDataStoresListCall struct {
24862 s *Service
24863 parent string
24864 urlParams_ gensupport.URLParams
24865 ifNoneMatch_ string
24866 ctx_ context.Context
24867 header_ http.Header
24868 }
24869
24870
24871
24872
24873
24874
24875
24876
24877 func (r *ProjectsLocationsDataStoresService) List(parent string) *ProjectsLocationsDataStoresListCall {
24878 c := &ProjectsLocationsDataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24879 c.parent = parent
24880 return c
24881 }
24882
24883
24884
24885 func (c *ProjectsLocationsDataStoresListCall) Filter(filter string) *ProjectsLocationsDataStoresListCall {
24886 c.urlParams_.Set("filter", filter)
24887 return c
24888 }
24889
24890
24891
24892
24893
24894 func (c *ProjectsLocationsDataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresListCall {
24895 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24896 return c
24897 }
24898
24899
24900
24901
24902
24903
24904
24905 func (c *ProjectsLocationsDataStoresListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresListCall {
24906 c.urlParams_.Set("pageToken", pageToken)
24907 return c
24908 }
24909
24910
24911
24912
24913 func (c *ProjectsLocationsDataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresListCall {
24914 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24915 return c
24916 }
24917
24918
24919
24920
24921 func (c *ProjectsLocationsDataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresListCall {
24922 c.ifNoneMatch_ = entityTag
24923 return c
24924 }
24925
24926
24927 func (c *ProjectsLocationsDataStoresListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresListCall {
24928 c.ctx_ = ctx
24929 return c
24930 }
24931
24932
24933
24934 func (c *ProjectsLocationsDataStoresListCall) Header() http.Header {
24935 if c.header_ == nil {
24936 c.header_ = make(http.Header)
24937 }
24938 return c.header_
24939 }
24940
24941 func (c *ProjectsLocationsDataStoresListCall) doRequest(alt string) (*http.Response, error) {
24942 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24943 if c.ifNoneMatch_ != "" {
24944 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24945 }
24946 var body io.Reader = nil
24947 c.urlParams_.Set("alt", alt)
24948 c.urlParams_.Set("prettyPrint", "false")
24949 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/dataStores")
24950 urls += "?" + c.urlParams_.Encode()
24951 req, err := http.NewRequest("GET", urls, body)
24952 if err != nil {
24953 return nil, err
24954 }
24955 req.Header = reqHeaders
24956 googleapi.Expand(req.URL, map[string]string{
24957 "parent": c.parent,
24958 })
24959 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24960 }
24961
24962
24963
24964
24965
24966
24967
24968
24969
24970 func (c *ProjectsLocationsDataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListDataStoresResponse, error) {
24971 gensupport.SetOptions(c.urlParams_, opts...)
24972 res, err := c.doRequest("json")
24973 if res != nil && res.StatusCode == http.StatusNotModified {
24974 if res.Body != nil {
24975 res.Body.Close()
24976 }
24977 return nil, gensupport.WrapError(&googleapi.Error{
24978 Code: res.StatusCode,
24979 Header: res.Header,
24980 })
24981 }
24982 if err != nil {
24983 return nil, err
24984 }
24985 defer googleapi.CloseBody(res)
24986 if err := googleapi.CheckResponse(res); err != nil {
24987 return nil, gensupport.WrapError(err)
24988 }
24989 ret := &GoogleCloudDiscoveryengineV1betaListDataStoresResponse{
24990 ServerResponse: googleapi.ServerResponse{
24991 Header: res.Header,
24992 HTTPStatusCode: res.StatusCode,
24993 },
24994 }
24995 target := &ret
24996 if err := gensupport.DecodeResponse(target, res); err != nil {
24997 return nil, err
24998 }
24999 return ret, nil
25000 }
25001
25002
25003
25004
25005 func (c *ProjectsLocationsDataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListDataStoresResponse) error) error {
25006 c.ctx_ = ctx
25007 defer c.PageToken(c.urlParams_.Get("pageToken"))
25008 for {
25009 x, err := c.Do()
25010 if err != nil {
25011 return err
25012 }
25013 if err := f(x); err != nil {
25014 return err
25015 }
25016 if x.NextPageToken == "" {
25017 return nil
25018 }
25019 c.PageToken(x.NextPageToken)
25020 }
25021 }
25022
25023 type ProjectsLocationsDataStoresPatchCall struct {
25024 s *Service
25025 name string
25026 googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore
25027 urlParams_ gensupport.URLParams
25028 ctx_ context.Context
25029 header_ http.Header
25030 }
25031
25032
25033
25034
25035
25036
25037
25038 func (r *ProjectsLocationsDataStoresService) Patch(name string, googleclouddiscoveryenginev1betadatastore *GoogleCloudDiscoveryengineV1betaDataStore) *ProjectsLocationsDataStoresPatchCall {
25039 c := &ProjectsLocationsDataStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25040 c.name = name
25041 c.googleclouddiscoveryenginev1betadatastore = googleclouddiscoveryenginev1betadatastore
25042 return c
25043 }
25044
25045
25046
25047
25048 func (c *ProjectsLocationsDataStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresPatchCall {
25049 c.urlParams_.Set("updateMask", updateMask)
25050 return c
25051 }
25052
25053
25054
25055
25056 func (c *ProjectsLocationsDataStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresPatchCall {
25057 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25058 return c
25059 }
25060
25061
25062 func (c *ProjectsLocationsDataStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresPatchCall {
25063 c.ctx_ = ctx
25064 return c
25065 }
25066
25067
25068
25069 func (c *ProjectsLocationsDataStoresPatchCall) Header() http.Header {
25070 if c.header_ == nil {
25071 c.header_ = make(http.Header)
25072 }
25073 return c.header_
25074 }
25075
25076 func (c *ProjectsLocationsDataStoresPatchCall) doRequest(alt string) (*http.Response, error) {
25077 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25078 var body io.Reader = nil
25079 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadatastore)
25080 if err != nil {
25081 return nil, err
25082 }
25083 c.urlParams_.Set("alt", alt)
25084 c.urlParams_.Set("prettyPrint", "false")
25085 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
25086 urls += "?" + c.urlParams_.Encode()
25087 req, err := http.NewRequest("PATCH", urls, body)
25088 if err != nil {
25089 return nil, err
25090 }
25091 req.Header = reqHeaders
25092 googleapi.Expand(req.URL, map[string]string{
25093 "name": c.name,
25094 })
25095 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25096 }
25097
25098
25099
25100
25101
25102
25103
25104 func (c *ProjectsLocationsDataStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDataStore, error) {
25105 gensupport.SetOptions(c.urlParams_, opts...)
25106 res, err := c.doRequest("json")
25107 if res != nil && res.StatusCode == http.StatusNotModified {
25108 if res.Body != nil {
25109 res.Body.Close()
25110 }
25111 return nil, gensupport.WrapError(&googleapi.Error{
25112 Code: res.StatusCode,
25113 Header: res.Header,
25114 })
25115 }
25116 if err != nil {
25117 return nil, err
25118 }
25119 defer googleapi.CloseBody(res)
25120 if err := googleapi.CheckResponse(res); err != nil {
25121 return nil, gensupport.WrapError(err)
25122 }
25123 ret := &GoogleCloudDiscoveryengineV1betaDataStore{
25124 ServerResponse: googleapi.ServerResponse{
25125 Header: res.Header,
25126 HTTPStatusCode: res.StatusCode,
25127 },
25128 }
25129 target := &ret
25130 if err := gensupport.DecodeResponse(target, res); err != nil {
25131 return nil, err
25132 }
25133 return ret, nil
25134 }
25135
25136 type ProjectsLocationsDataStoresBranchesDocumentsCreateCall struct {
25137 s *Service
25138 parent string
25139 googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument
25140 urlParams_ gensupport.URLParams
25141 ctx_ context.Context
25142 header_ http.Header
25143 }
25144
25145
25146
25147
25148
25149
25150 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Create(parent string, googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
25151 c := &ProjectsLocationsDataStoresBranchesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25152 c.parent = parent
25153 c.googleclouddiscoveryenginev1betadocument = googleclouddiscoveryenginev1betadocument
25154 return c
25155 }
25156
25157
25158
25159
25160
25161
25162
25163
25164
25165
25166 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) DocumentId(documentId string) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
25167 c.urlParams_.Set("documentId", documentId)
25168 return c
25169 }
25170
25171
25172
25173
25174 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
25175 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25176 return c
25177 }
25178
25179
25180 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
25181 c.ctx_ = ctx
25182 return c
25183 }
25184
25185
25186
25187 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Header() http.Header {
25188 if c.header_ == nil {
25189 c.header_ = make(http.Header)
25190 }
25191 return c.header_
25192 }
25193
25194 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
25195 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25196 var body io.Reader = nil
25197 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadocument)
25198 if err != nil {
25199 return nil, err
25200 }
25201 c.urlParams_.Set("alt", alt)
25202 c.urlParams_.Set("prettyPrint", "false")
25203 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents")
25204 urls += "?" + c.urlParams_.Encode()
25205 req, err := http.NewRequest("POST", urls, body)
25206 if err != nil {
25207 return nil, err
25208 }
25209 req.Header = reqHeaders
25210 googleapi.Expand(req.URL, map[string]string{
25211 "parent": c.parent,
25212 })
25213 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25214 }
25215
25216
25217
25218
25219
25220
25221
25222 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDocument, error) {
25223 gensupport.SetOptions(c.urlParams_, opts...)
25224 res, err := c.doRequest("json")
25225 if res != nil && res.StatusCode == http.StatusNotModified {
25226 if res.Body != nil {
25227 res.Body.Close()
25228 }
25229 return nil, gensupport.WrapError(&googleapi.Error{
25230 Code: res.StatusCode,
25231 Header: res.Header,
25232 })
25233 }
25234 if err != nil {
25235 return nil, err
25236 }
25237 defer googleapi.CloseBody(res)
25238 if err := googleapi.CheckResponse(res); err != nil {
25239 return nil, gensupport.WrapError(err)
25240 }
25241 ret := &GoogleCloudDiscoveryengineV1betaDocument{
25242 ServerResponse: googleapi.ServerResponse{
25243 Header: res.Header,
25244 HTTPStatusCode: res.StatusCode,
25245 },
25246 }
25247 target := &ret
25248 if err := gensupport.DecodeResponse(target, res); err != nil {
25249 return nil, err
25250 }
25251 return ret, nil
25252 }
25253
25254 type ProjectsLocationsDataStoresBranchesDocumentsDeleteCall struct {
25255 s *Service
25256 name string
25257 urlParams_ gensupport.URLParams
25258 ctx_ context.Context
25259 header_ http.Header
25260 }
25261
25262
25263
25264
25265
25266
25267
25268
25269
25270 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Delete(name string) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
25271 c := &ProjectsLocationsDataStoresBranchesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25272 c.name = name
25273 return c
25274 }
25275
25276
25277
25278
25279 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
25280 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25281 return c
25282 }
25283
25284
25285 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
25286 c.ctx_ = ctx
25287 return c
25288 }
25289
25290
25291
25292 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Header() http.Header {
25293 if c.header_ == nil {
25294 c.header_ = make(http.Header)
25295 }
25296 return c.header_
25297 }
25298
25299 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
25300 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25301 var body io.Reader = nil
25302 c.urlParams_.Set("alt", alt)
25303 c.urlParams_.Set("prettyPrint", "false")
25304 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
25305 urls += "?" + c.urlParams_.Encode()
25306 req, err := http.NewRequest("DELETE", urls, body)
25307 if err != nil {
25308 return nil, err
25309 }
25310 req.Header = reqHeaders
25311 googleapi.Expand(req.URL, map[string]string{
25312 "name": c.name,
25313 })
25314 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25315 }
25316
25317
25318
25319
25320
25321
25322
25323 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25324 gensupport.SetOptions(c.urlParams_, opts...)
25325 res, err := c.doRequest("json")
25326 if res != nil && res.StatusCode == http.StatusNotModified {
25327 if res.Body != nil {
25328 res.Body.Close()
25329 }
25330 return nil, gensupport.WrapError(&googleapi.Error{
25331 Code: res.StatusCode,
25332 Header: res.Header,
25333 })
25334 }
25335 if err != nil {
25336 return nil, err
25337 }
25338 defer googleapi.CloseBody(res)
25339 if err := googleapi.CheckResponse(res); err != nil {
25340 return nil, gensupport.WrapError(err)
25341 }
25342 ret := &GoogleProtobufEmpty{
25343 ServerResponse: googleapi.ServerResponse{
25344 Header: res.Header,
25345 HTTPStatusCode: res.StatusCode,
25346 },
25347 }
25348 target := &ret
25349 if err := gensupport.DecodeResponse(target, res); err != nil {
25350 return nil, err
25351 }
25352 return ret, nil
25353 }
25354
25355 type ProjectsLocationsDataStoresBranchesDocumentsGetCall struct {
25356 s *Service
25357 name string
25358 urlParams_ gensupport.URLParams
25359 ifNoneMatch_ string
25360 ctx_ context.Context
25361 header_ http.Header
25362 }
25363
25364
25365
25366
25367
25368
25369
25370
25371
25372 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Get(name string) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
25373 c := &ProjectsLocationsDataStoresBranchesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25374 c.name = name
25375 return c
25376 }
25377
25378
25379
25380
25381 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
25382 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25383 return c
25384 }
25385
25386
25387
25388
25389 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
25390 c.ifNoneMatch_ = entityTag
25391 return c
25392 }
25393
25394
25395 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
25396 c.ctx_ = ctx
25397 return c
25398 }
25399
25400
25401
25402 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Header() http.Header {
25403 if c.header_ == nil {
25404 c.header_ = make(http.Header)
25405 }
25406 return c.header_
25407 }
25408
25409 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
25410 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25411 if c.ifNoneMatch_ != "" {
25412 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25413 }
25414 var body io.Reader = nil
25415 c.urlParams_.Set("alt", alt)
25416 c.urlParams_.Set("prettyPrint", "false")
25417 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
25418 urls += "?" + c.urlParams_.Encode()
25419 req, err := http.NewRequest("GET", urls, body)
25420 if err != nil {
25421 return nil, err
25422 }
25423 req.Header = reqHeaders
25424 googleapi.Expand(req.URL, map[string]string{
25425 "name": c.name,
25426 })
25427 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25428 }
25429
25430
25431
25432
25433
25434
25435
25436 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDocument, error) {
25437 gensupport.SetOptions(c.urlParams_, opts...)
25438 res, err := c.doRequest("json")
25439 if res != nil && res.StatusCode == http.StatusNotModified {
25440 if res.Body != nil {
25441 res.Body.Close()
25442 }
25443 return nil, gensupport.WrapError(&googleapi.Error{
25444 Code: res.StatusCode,
25445 Header: res.Header,
25446 })
25447 }
25448 if err != nil {
25449 return nil, err
25450 }
25451 defer googleapi.CloseBody(res)
25452 if err := googleapi.CheckResponse(res); err != nil {
25453 return nil, gensupport.WrapError(err)
25454 }
25455 ret := &GoogleCloudDiscoveryengineV1betaDocument{
25456 ServerResponse: googleapi.ServerResponse{
25457 Header: res.Header,
25458 HTTPStatusCode: res.StatusCode,
25459 },
25460 }
25461 target := &ret
25462 if err := gensupport.DecodeResponse(target, res); err != nil {
25463 return nil, err
25464 }
25465 return ret, nil
25466 }
25467
25468 type ProjectsLocationsDataStoresBranchesDocumentsImportCall struct {
25469 s *Service
25470 parent string
25471 googleclouddiscoveryenginev1betaimportdocumentsrequest *GoogleCloudDiscoveryengineV1betaImportDocumentsRequest
25472 urlParams_ gensupport.URLParams
25473 ctx_ context.Context
25474 header_ http.Header
25475 }
25476
25477
25478
25479
25480
25481
25482
25483
25484 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Import(parent string, googleclouddiscoveryenginev1betaimportdocumentsrequest *GoogleCloudDiscoveryengineV1betaImportDocumentsRequest) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
25485 c := &ProjectsLocationsDataStoresBranchesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25486 c.parent = parent
25487 c.googleclouddiscoveryenginev1betaimportdocumentsrequest = googleclouddiscoveryenginev1betaimportdocumentsrequest
25488 return c
25489 }
25490
25491
25492
25493
25494 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
25495 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25496 return c
25497 }
25498
25499
25500 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
25501 c.ctx_ = ctx
25502 return c
25503 }
25504
25505
25506
25507 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Header() http.Header {
25508 if c.header_ == nil {
25509 c.header_ = make(http.Header)
25510 }
25511 return c.header_
25512 }
25513
25514 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
25515 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25516 var body io.Reader = nil
25517 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaimportdocumentsrequest)
25518 if err != nil {
25519 return nil, err
25520 }
25521 c.urlParams_.Set("alt", alt)
25522 c.urlParams_.Set("prettyPrint", "false")
25523 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents:import")
25524 urls += "?" + c.urlParams_.Encode()
25525 req, err := http.NewRequest("POST", urls, body)
25526 if err != nil {
25527 return nil, err
25528 }
25529 req.Header = reqHeaders
25530 googleapi.Expand(req.URL, map[string]string{
25531 "parent": c.parent,
25532 })
25533 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25534 }
25535
25536
25537
25538
25539
25540
25541
25542 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25543 gensupport.SetOptions(c.urlParams_, opts...)
25544 res, err := c.doRequest("json")
25545 if res != nil && res.StatusCode == http.StatusNotModified {
25546 if res.Body != nil {
25547 res.Body.Close()
25548 }
25549 return nil, gensupport.WrapError(&googleapi.Error{
25550 Code: res.StatusCode,
25551 Header: res.Header,
25552 })
25553 }
25554 if err != nil {
25555 return nil, err
25556 }
25557 defer googleapi.CloseBody(res)
25558 if err := googleapi.CheckResponse(res); err != nil {
25559 return nil, gensupport.WrapError(err)
25560 }
25561 ret := &GoogleLongrunningOperation{
25562 ServerResponse: googleapi.ServerResponse{
25563 Header: res.Header,
25564 HTTPStatusCode: res.StatusCode,
25565 },
25566 }
25567 target := &ret
25568 if err := gensupport.DecodeResponse(target, res); err != nil {
25569 return nil, err
25570 }
25571 return ret, nil
25572 }
25573
25574 type ProjectsLocationsDataStoresBranchesDocumentsListCall struct {
25575 s *Service
25576 parent string
25577 urlParams_ gensupport.URLParams
25578 ifNoneMatch_ string
25579 ctx_ context.Context
25580 header_ http.Header
25581 }
25582
25583
25584
25585
25586
25587
25588
25589
25590
25591 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) List(parent string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
25592 c := &ProjectsLocationsDataStoresBranchesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25593 c.parent = parent
25594 return c
25595 }
25596
25597
25598
25599
25600
25601 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
25602 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25603 return c
25604 }
25605
25606
25607
25608
25609
25610
25611
25612 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
25613 c.urlParams_.Set("pageToken", pageToken)
25614 return c
25615 }
25616
25617
25618
25619
25620 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
25621 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25622 return c
25623 }
25624
25625
25626
25627
25628 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
25629 c.ifNoneMatch_ = entityTag
25630 return c
25631 }
25632
25633
25634 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
25635 c.ctx_ = ctx
25636 return c
25637 }
25638
25639
25640
25641 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Header() http.Header {
25642 if c.header_ == nil {
25643 c.header_ = make(http.Header)
25644 }
25645 return c.header_
25646 }
25647
25648 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
25649 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25650 if c.ifNoneMatch_ != "" {
25651 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25652 }
25653 var body io.Reader = nil
25654 c.urlParams_.Set("alt", alt)
25655 c.urlParams_.Set("prettyPrint", "false")
25656 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents")
25657 urls += "?" + c.urlParams_.Encode()
25658 req, err := http.NewRequest("GET", urls, body)
25659 if err != nil {
25660 return nil, err
25661 }
25662 req.Header = reqHeaders
25663 googleapi.Expand(req.URL, map[string]string{
25664 "parent": c.parent,
25665 })
25666 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25667 }
25668
25669
25670
25671
25672
25673
25674
25675 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListDocumentsResponse, error) {
25676 gensupport.SetOptions(c.urlParams_, opts...)
25677 res, err := c.doRequest("json")
25678 if res != nil && res.StatusCode == http.StatusNotModified {
25679 if res.Body != nil {
25680 res.Body.Close()
25681 }
25682 return nil, gensupport.WrapError(&googleapi.Error{
25683 Code: res.StatusCode,
25684 Header: res.Header,
25685 })
25686 }
25687 if err != nil {
25688 return nil, err
25689 }
25690 defer googleapi.CloseBody(res)
25691 if err := googleapi.CheckResponse(res); err != nil {
25692 return nil, gensupport.WrapError(err)
25693 }
25694 ret := &GoogleCloudDiscoveryengineV1betaListDocumentsResponse{
25695 ServerResponse: googleapi.ServerResponse{
25696 Header: res.Header,
25697 HTTPStatusCode: res.StatusCode,
25698 },
25699 }
25700 target := &ret
25701 if err := gensupport.DecodeResponse(target, res); err != nil {
25702 return nil, err
25703 }
25704 return ret, nil
25705 }
25706
25707
25708
25709
25710 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListDocumentsResponse) error) error {
25711 c.ctx_ = ctx
25712 defer c.PageToken(c.urlParams_.Get("pageToken"))
25713 for {
25714 x, err := c.Do()
25715 if err != nil {
25716 return err
25717 }
25718 if err := f(x); err != nil {
25719 return err
25720 }
25721 if x.NextPageToken == "" {
25722 return nil
25723 }
25724 c.PageToken(x.NextPageToken)
25725 }
25726 }
25727
25728 type ProjectsLocationsDataStoresBranchesDocumentsPatchCall struct {
25729 s *Service
25730 name string
25731 googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument
25732 urlParams_ gensupport.URLParams
25733 ctx_ context.Context
25734 header_ http.Header
25735 }
25736
25737
25738
25739
25740
25741
25742
25743 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Patch(name string, googleclouddiscoveryenginev1betadocument *GoogleCloudDiscoveryengineV1betaDocument) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
25744 c := &ProjectsLocationsDataStoresBranchesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25745 c.name = name
25746 c.googleclouddiscoveryenginev1betadocument = googleclouddiscoveryenginev1betadocument
25747 return c
25748 }
25749
25750
25751
25752 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
25753 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
25754 return c
25755 }
25756
25757
25758
25759
25760 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
25761 c.urlParams_.Set("updateMask", updateMask)
25762 return c
25763 }
25764
25765
25766
25767
25768 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
25769 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25770 return c
25771 }
25772
25773
25774 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
25775 c.ctx_ = ctx
25776 return c
25777 }
25778
25779
25780
25781 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Header() http.Header {
25782 if c.header_ == nil {
25783 c.header_ = make(http.Header)
25784 }
25785 return c.header_
25786 }
25787
25788 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
25789 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25790 var body io.Reader = nil
25791 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadocument)
25792 if err != nil {
25793 return nil, err
25794 }
25795 c.urlParams_.Set("alt", alt)
25796 c.urlParams_.Set("prettyPrint", "false")
25797 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
25798 urls += "?" + c.urlParams_.Encode()
25799 req, err := http.NewRequest("PATCH", urls, body)
25800 if err != nil {
25801 return nil, err
25802 }
25803 req.Header = reqHeaders
25804 googleapi.Expand(req.URL, map[string]string{
25805 "name": c.name,
25806 })
25807 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25808 }
25809
25810
25811
25812
25813
25814
25815
25816 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaDocument, error) {
25817 gensupport.SetOptions(c.urlParams_, opts...)
25818 res, err := c.doRequest("json")
25819 if res != nil && res.StatusCode == http.StatusNotModified {
25820 if res.Body != nil {
25821 res.Body.Close()
25822 }
25823 return nil, gensupport.WrapError(&googleapi.Error{
25824 Code: res.StatusCode,
25825 Header: res.Header,
25826 })
25827 }
25828 if err != nil {
25829 return nil, err
25830 }
25831 defer googleapi.CloseBody(res)
25832 if err := googleapi.CheckResponse(res); err != nil {
25833 return nil, gensupport.WrapError(err)
25834 }
25835 ret := &GoogleCloudDiscoveryengineV1betaDocument{
25836 ServerResponse: googleapi.ServerResponse{
25837 Header: res.Header,
25838 HTTPStatusCode: res.StatusCode,
25839 },
25840 }
25841 target := &ret
25842 if err := gensupport.DecodeResponse(target, res); err != nil {
25843 return nil, err
25844 }
25845 return ret, nil
25846 }
25847
25848 type ProjectsLocationsDataStoresBranchesDocumentsPurgeCall struct {
25849 s *Service
25850 parent string
25851 googleclouddiscoveryenginev1betapurgedocumentsrequest *GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest
25852 urlParams_ gensupport.URLParams
25853 ctx_ context.Context
25854 header_ http.Header
25855 }
25856
25857
25858
25859
25860
25861
25862
25863
25864
25865
25866
25867 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Purge(parent string, googleclouddiscoveryenginev1betapurgedocumentsrequest *GoogleCloudDiscoveryengineV1betaPurgeDocumentsRequest) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
25868 c := &ProjectsLocationsDataStoresBranchesDocumentsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25869 c.parent = parent
25870 c.googleclouddiscoveryenginev1betapurgedocumentsrequest = googleclouddiscoveryenginev1betapurgedocumentsrequest
25871 return c
25872 }
25873
25874
25875
25876
25877 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
25878 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25879 return c
25880 }
25881
25882
25883 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
25884 c.ctx_ = ctx
25885 return c
25886 }
25887
25888
25889
25890 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Header() http.Header {
25891 if c.header_ == nil {
25892 c.header_ = make(http.Header)
25893 }
25894 return c.header_
25895 }
25896
25897 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) doRequest(alt string) (*http.Response, error) {
25898 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25899 var body io.Reader = nil
25900 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betapurgedocumentsrequest)
25901 if err != nil {
25902 return nil, err
25903 }
25904 c.urlParams_.Set("alt", alt)
25905 c.urlParams_.Set("prettyPrint", "false")
25906 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/documents:purge")
25907 urls += "?" + c.urlParams_.Encode()
25908 req, err := http.NewRequest("POST", urls, body)
25909 if err != nil {
25910 return nil, err
25911 }
25912 req.Header = reqHeaders
25913 googleapi.Expand(req.URL, map[string]string{
25914 "parent": c.parent,
25915 })
25916 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25917 }
25918
25919
25920
25921
25922
25923
25924
25925 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25926 gensupport.SetOptions(c.urlParams_, opts...)
25927 res, err := c.doRequest("json")
25928 if res != nil && res.StatusCode == http.StatusNotModified {
25929 if res.Body != nil {
25930 res.Body.Close()
25931 }
25932 return nil, gensupport.WrapError(&googleapi.Error{
25933 Code: res.StatusCode,
25934 Header: res.Header,
25935 })
25936 }
25937 if err != nil {
25938 return nil, err
25939 }
25940 defer googleapi.CloseBody(res)
25941 if err := googleapi.CheckResponse(res); err != nil {
25942 return nil, gensupport.WrapError(err)
25943 }
25944 ret := &GoogleLongrunningOperation{
25945 ServerResponse: googleapi.ServerResponse{
25946 Header: res.Header,
25947 HTTPStatusCode: res.StatusCode,
25948 },
25949 }
25950 target := &ret
25951 if err := gensupport.DecodeResponse(target, res); err != nil {
25952 return nil, err
25953 }
25954 return ret, nil
25955 }
25956
25957 type ProjectsLocationsDataStoresBranchesOperationsCancelCall struct {
25958 s *Service
25959 name string
25960 googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
25961 urlParams_ gensupport.URLParams
25962 ctx_ context.Context
25963 header_ http.Header
25964 }
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974
25975
25976
25977 func (r *ProjectsLocationsDataStoresBranchesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
25978 c := &ProjectsLocationsDataStoresBranchesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25979 c.name = name
25980 c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
25981 return c
25982 }
25983
25984
25985
25986
25987 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
25988 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25989 return c
25990 }
25991
25992
25993 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
25994 c.ctx_ = ctx
25995 return c
25996 }
25997
25998
25999
26000 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Header() http.Header {
26001 if c.header_ == nil {
26002 c.header_ = make(http.Header)
26003 }
26004 return c.header_
26005 }
26006
26007 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
26008 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26009 var body io.Reader = nil
26010 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
26011 if err != nil {
26012 return nil, err
26013 }
26014 c.urlParams_.Set("alt", alt)
26015 c.urlParams_.Set("prettyPrint", "false")
26016 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:cancel")
26017 urls += "?" + c.urlParams_.Encode()
26018 req, err := http.NewRequest("POST", urls, body)
26019 if err != nil {
26020 return nil, err
26021 }
26022 req.Header = reqHeaders
26023 googleapi.Expand(req.URL, map[string]string{
26024 "name": c.name,
26025 })
26026 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26027 }
26028
26029
26030
26031
26032
26033
26034
26035 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
26036 gensupport.SetOptions(c.urlParams_, opts...)
26037 res, err := c.doRequest("json")
26038 if res != nil && res.StatusCode == http.StatusNotModified {
26039 if res.Body != nil {
26040 res.Body.Close()
26041 }
26042 return nil, gensupport.WrapError(&googleapi.Error{
26043 Code: res.StatusCode,
26044 Header: res.Header,
26045 })
26046 }
26047 if err != nil {
26048 return nil, err
26049 }
26050 defer googleapi.CloseBody(res)
26051 if err := googleapi.CheckResponse(res); err != nil {
26052 return nil, gensupport.WrapError(err)
26053 }
26054 ret := &GoogleProtobufEmpty{
26055 ServerResponse: googleapi.ServerResponse{
26056 Header: res.Header,
26057 HTTPStatusCode: res.StatusCode,
26058 },
26059 }
26060 target := &ret
26061 if err := gensupport.DecodeResponse(target, res); err != nil {
26062 return nil, err
26063 }
26064 return ret, nil
26065 }
26066
26067 type ProjectsLocationsDataStoresBranchesOperationsGetCall struct {
26068 s *Service
26069 name string
26070 urlParams_ gensupport.URLParams
26071 ifNoneMatch_ string
26072 ctx_ context.Context
26073 header_ http.Header
26074 }
26075
26076
26077
26078
26079
26080
26081 func (r *ProjectsLocationsDataStoresBranchesOperationsService) Get(name string) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
26082 c := &ProjectsLocationsDataStoresBranchesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26083 c.name = name
26084 return c
26085 }
26086
26087
26088
26089
26090 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
26091 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26092 return c
26093 }
26094
26095
26096
26097
26098 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
26099 c.ifNoneMatch_ = entityTag
26100 return c
26101 }
26102
26103
26104 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
26105 c.ctx_ = ctx
26106 return c
26107 }
26108
26109
26110
26111 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Header() http.Header {
26112 if c.header_ == nil {
26113 c.header_ = make(http.Header)
26114 }
26115 return c.header_
26116 }
26117
26118 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
26119 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26120 if c.ifNoneMatch_ != "" {
26121 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26122 }
26123 var body io.Reader = nil
26124 c.urlParams_.Set("alt", alt)
26125 c.urlParams_.Set("prettyPrint", "false")
26126 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
26127 urls += "?" + c.urlParams_.Encode()
26128 req, err := http.NewRequest("GET", urls, body)
26129 if err != nil {
26130 return nil, err
26131 }
26132 req.Header = reqHeaders
26133 googleapi.Expand(req.URL, map[string]string{
26134 "name": c.name,
26135 })
26136 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26137 }
26138
26139
26140
26141
26142
26143
26144
26145 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
26146 gensupport.SetOptions(c.urlParams_, opts...)
26147 res, err := c.doRequest("json")
26148 if res != nil && res.StatusCode == http.StatusNotModified {
26149 if res.Body != nil {
26150 res.Body.Close()
26151 }
26152 return nil, gensupport.WrapError(&googleapi.Error{
26153 Code: res.StatusCode,
26154 Header: res.Header,
26155 })
26156 }
26157 if err != nil {
26158 return nil, err
26159 }
26160 defer googleapi.CloseBody(res)
26161 if err := googleapi.CheckResponse(res); err != nil {
26162 return nil, gensupport.WrapError(err)
26163 }
26164 ret := &GoogleLongrunningOperation{
26165 ServerResponse: googleapi.ServerResponse{
26166 Header: res.Header,
26167 HTTPStatusCode: res.StatusCode,
26168 },
26169 }
26170 target := &ret
26171 if err := gensupport.DecodeResponse(target, res); err != nil {
26172 return nil, err
26173 }
26174 return ret, nil
26175 }
26176
26177 type ProjectsLocationsDataStoresBranchesOperationsListCall struct {
26178 s *Service
26179 name string
26180 urlParams_ gensupport.URLParams
26181 ifNoneMatch_ string
26182 ctx_ context.Context
26183 header_ http.Header
26184 }
26185
26186
26187
26188
26189
26190 func (r *ProjectsLocationsDataStoresBranchesOperationsService) List(name string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
26191 c := &ProjectsLocationsDataStoresBranchesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26192 c.name = name
26193 return c
26194 }
26195
26196
26197 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
26198 c.urlParams_.Set("filter", filter)
26199 return c
26200 }
26201
26202
26203
26204 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesOperationsListCall {
26205 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26206 return c
26207 }
26208
26209
26210
26211 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
26212 c.urlParams_.Set("pageToken", pageToken)
26213 return c
26214 }
26215
26216
26217
26218
26219 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsListCall {
26220 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26221 return c
26222 }
26223
26224
26225
26226
26227 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
26228 c.ifNoneMatch_ = entityTag
26229 return c
26230 }
26231
26232
26233 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsListCall {
26234 c.ctx_ = ctx
26235 return c
26236 }
26237
26238
26239
26240 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Header() http.Header {
26241 if c.header_ == nil {
26242 c.header_ = make(http.Header)
26243 }
26244 return c.header_
26245 }
26246
26247 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) doRequest(alt string) (*http.Response, error) {
26248 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26249 if c.ifNoneMatch_ != "" {
26250 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26251 }
26252 var body io.Reader = nil
26253 c.urlParams_.Set("alt", alt)
26254 c.urlParams_.Set("prettyPrint", "false")
26255 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
26256 urls += "?" + c.urlParams_.Encode()
26257 req, err := http.NewRequest("GET", urls, body)
26258 if err != nil {
26259 return nil, err
26260 }
26261 req.Header = reqHeaders
26262 googleapi.Expand(req.URL, map[string]string{
26263 "name": c.name,
26264 })
26265 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26266 }
26267
26268
26269
26270
26271
26272
26273
26274 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
26275 gensupport.SetOptions(c.urlParams_, opts...)
26276 res, err := c.doRequest("json")
26277 if res != nil && res.StatusCode == http.StatusNotModified {
26278 if res.Body != nil {
26279 res.Body.Close()
26280 }
26281 return nil, gensupport.WrapError(&googleapi.Error{
26282 Code: res.StatusCode,
26283 Header: res.Header,
26284 })
26285 }
26286 if err != nil {
26287 return nil, err
26288 }
26289 defer googleapi.CloseBody(res)
26290 if err := googleapi.CheckResponse(res); err != nil {
26291 return nil, gensupport.WrapError(err)
26292 }
26293 ret := &GoogleLongrunningListOperationsResponse{
26294 ServerResponse: googleapi.ServerResponse{
26295 Header: res.Header,
26296 HTTPStatusCode: res.StatusCode,
26297 },
26298 }
26299 target := &ret
26300 if err := gensupport.DecodeResponse(target, res); err != nil {
26301 return nil, err
26302 }
26303 return ret, nil
26304 }
26305
26306
26307
26308
26309 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
26310 c.ctx_ = ctx
26311 defer c.PageToken(c.urlParams_.Get("pageToken"))
26312 for {
26313 x, err := c.Do()
26314 if err != nil {
26315 return err
26316 }
26317 if err := f(x); err != nil {
26318 return err
26319 }
26320 if x.NextPageToken == "" {
26321 return nil
26322 }
26323 c.PageToken(x.NextPageToken)
26324 }
26325 }
26326
26327 type ProjectsLocationsDataStoresConversationsConverseCall struct {
26328 s *Service
26329 name string
26330 googleclouddiscoveryenginev1betaconverseconversationrequest *GoogleCloudDiscoveryengineV1betaConverseConversationRequest
26331 urlParams_ gensupport.URLParams
26332 ctx_ context.Context
26333 header_ http.Header
26334 }
26335
26336
26337
26338
26339
26340
26341
26342
26343
26344
26345 func (r *ProjectsLocationsDataStoresConversationsService) Converse(name string, googleclouddiscoveryenginev1betaconverseconversationrequest *GoogleCloudDiscoveryengineV1betaConverseConversationRequest) *ProjectsLocationsDataStoresConversationsConverseCall {
26346 c := &ProjectsLocationsDataStoresConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26347 c.name = name
26348 c.googleclouddiscoveryenginev1betaconverseconversationrequest = googleclouddiscoveryenginev1betaconverseconversationrequest
26349 return c
26350 }
26351
26352
26353
26354
26355 func (c *ProjectsLocationsDataStoresConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsConverseCall {
26356 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26357 return c
26358 }
26359
26360
26361 func (c *ProjectsLocationsDataStoresConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsConverseCall {
26362 c.ctx_ = ctx
26363 return c
26364 }
26365
26366
26367
26368 func (c *ProjectsLocationsDataStoresConversationsConverseCall) Header() http.Header {
26369 if c.header_ == nil {
26370 c.header_ = make(http.Header)
26371 }
26372 return c.header_
26373 }
26374
26375 func (c *ProjectsLocationsDataStoresConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
26376 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26377 var body io.Reader = nil
26378 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconverseconversationrequest)
26379 if err != nil {
26380 return nil, err
26381 }
26382 c.urlParams_.Set("alt", alt)
26383 c.urlParams_.Set("prettyPrint", "false")
26384 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}:converse")
26385 urls += "?" + c.urlParams_.Encode()
26386 req, err := http.NewRequest("POST", urls, body)
26387 if err != nil {
26388 return nil, err
26389 }
26390 req.Header = reqHeaders
26391 googleapi.Expand(req.URL, map[string]string{
26392 "name": c.name,
26393 })
26394 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26395 }
26396
26397
26398
26399
26400
26401
26402
26403 func (c *ProjectsLocationsDataStoresConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConverseConversationResponse, error) {
26404 gensupport.SetOptions(c.urlParams_, opts...)
26405 res, err := c.doRequest("json")
26406 if res != nil && res.StatusCode == http.StatusNotModified {
26407 if res.Body != nil {
26408 res.Body.Close()
26409 }
26410 return nil, gensupport.WrapError(&googleapi.Error{
26411 Code: res.StatusCode,
26412 Header: res.Header,
26413 })
26414 }
26415 if err != nil {
26416 return nil, err
26417 }
26418 defer googleapi.CloseBody(res)
26419 if err := googleapi.CheckResponse(res); err != nil {
26420 return nil, gensupport.WrapError(err)
26421 }
26422 ret := &GoogleCloudDiscoveryengineV1betaConverseConversationResponse{
26423 ServerResponse: googleapi.ServerResponse{
26424 Header: res.Header,
26425 HTTPStatusCode: res.StatusCode,
26426 },
26427 }
26428 target := &ret
26429 if err := gensupport.DecodeResponse(target, res); err != nil {
26430 return nil, err
26431 }
26432 return ret, nil
26433 }
26434
26435 type ProjectsLocationsDataStoresConversationsCreateCall struct {
26436 s *Service
26437 parent string
26438 googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation
26439 urlParams_ gensupport.URLParams
26440 ctx_ context.Context
26441 header_ http.Header
26442 }
26443
26444
26445
26446
26447
26448
26449
26450 func (r *ProjectsLocationsDataStoresConversationsService) Create(parent string, googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation) *ProjectsLocationsDataStoresConversationsCreateCall {
26451 c := &ProjectsLocationsDataStoresConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26452 c.parent = parent
26453 c.googleclouddiscoveryenginev1betaconversation = googleclouddiscoveryenginev1betaconversation
26454 return c
26455 }
26456
26457
26458
26459
26460 func (c *ProjectsLocationsDataStoresConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsCreateCall {
26461 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26462 return c
26463 }
26464
26465
26466 func (c *ProjectsLocationsDataStoresConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsCreateCall {
26467 c.ctx_ = ctx
26468 return c
26469 }
26470
26471
26472
26473 func (c *ProjectsLocationsDataStoresConversationsCreateCall) Header() http.Header {
26474 if c.header_ == nil {
26475 c.header_ = make(http.Header)
26476 }
26477 return c.header_
26478 }
26479
26480 func (c *ProjectsLocationsDataStoresConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
26481 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26482 var body io.Reader = nil
26483 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconversation)
26484 if err != nil {
26485 return nil, err
26486 }
26487 c.urlParams_.Set("alt", alt)
26488 c.urlParams_.Set("prettyPrint", "false")
26489 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/conversations")
26490 urls += "?" + c.urlParams_.Encode()
26491 req, err := http.NewRequest("POST", urls, body)
26492 if err != nil {
26493 return nil, err
26494 }
26495 req.Header = reqHeaders
26496 googleapi.Expand(req.URL, map[string]string{
26497 "parent": c.parent,
26498 })
26499 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26500 }
26501
26502
26503
26504
26505
26506
26507
26508 func (c *ProjectsLocationsDataStoresConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
26509 gensupport.SetOptions(c.urlParams_, opts...)
26510 res, err := c.doRequest("json")
26511 if res != nil && res.StatusCode == http.StatusNotModified {
26512 if res.Body != nil {
26513 res.Body.Close()
26514 }
26515 return nil, gensupport.WrapError(&googleapi.Error{
26516 Code: res.StatusCode,
26517 Header: res.Header,
26518 })
26519 }
26520 if err != nil {
26521 return nil, err
26522 }
26523 defer googleapi.CloseBody(res)
26524 if err := googleapi.CheckResponse(res); err != nil {
26525 return nil, gensupport.WrapError(err)
26526 }
26527 ret := &GoogleCloudDiscoveryengineV1betaConversation{
26528 ServerResponse: googleapi.ServerResponse{
26529 Header: res.Header,
26530 HTTPStatusCode: res.StatusCode,
26531 },
26532 }
26533 target := &ret
26534 if err := gensupport.DecodeResponse(target, res); err != nil {
26535 return nil, err
26536 }
26537 return ret, nil
26538 }
26539
26540 type ProjectsLocationsDataStoresConversationsDeleteCall struct {
26541 s *Service
26542 name string
26543 urlParams_ gensupport.URLParams
26544 ctx_ context.Context
26545 header_ http.Header
26546 }
26547
26548
26549
26550
26551
26552
26553
26554 func (r *ProjectsLocationsDataStoresConversationsService) Delete(name string) *ProjectsLocationsDataStoresConversationsDeleteCall {
26555 c := &ProjectsLocationsDataStoresConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26556 c.name = name
26557 return c
26558 }
26559
26560
26561
26562
26563 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsDeleteCall {
26564 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26565 return c
26566 }
26567
26568
26569 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsDeleteCall {
26570 c.ctx_ = ctx
26571 return c
26572 }
26573
26574
26575
26576 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Header() http.Header {
26577 if c.header_ == nil {
26578 c.header_ = make(http.Header)
26579 }
26580 return c.header_
26581 }
26582
26583 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
26584 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26585 var body io.Reader = nil
26586 c.urlParams_.Set("alt", alt)
26587 c.urlParams_.Set("prettyPrint", "false")
26588 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
26589 urls += "?" + c.urlParams_.Encode()
26590 req, err := http.NewRequest("DELETE", urls, body)
26591 if err != nil {
26592 return nil, err
26593 }
26594 req.Header = reqHeaders
26595 googleapi.Expand(req.URL, map[string]string{
26596 "name": c.name,
26597 })
26598 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26599 }
26600
26601
26602
26603
26604
26605
26606
26607 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
26608 gensupport.SetOptions(c.urlParams_, opts...)
26609 res, err := c.doRequest("json")
26610 if res != nil && res.StatusCode == http.StatusNotModified {
26611 if res.Body != nil {
26612 res.Body.Close()
26613 }
26614 return nil, gensupport.WrapError(&googleapi.Error{
26615 Code: res.StatusCode,
26616 Header: res.Header,
26617 })
26618 }
26619 if err != nil {
26620 return nil, err
26621 }
26622 defer googleapi.CloseBody(res)
26623 if err := googleapi.CheckResponse(res); err != nil {
26624 return nil, gensupport.WrapError(err)
26625 }
26626 ret := &GoogleProtobufEmpty{
26627 ServerResponse: googleapi.ServerResponse{
26628 Header: res.Header,
26629 HTTPStatusCode: res.StatusCode,
26630 },
26631 }
26632 target := &ret
26633 if err := gensupport.DecodeResponse(target, res); err != nil {
26634 return nil, err
26635 }
26636 return ret, nil
26637 }
26638
26639 type ProjectsLocationsDataStoresConversationsGetCall struct {
26640 s *Service
26641 name string
26642 urlParams_ gensupport.URLParams
26643 ifNoneMatch_ string
26644 ctx_ context.Context
26645 header_ http.Header
26646 }
26647
26648
26649
26650
26651
26652
26653 func (r *ProjectsLocationsDataStoresConversationsService) Get(name string) *ProjectsLocationsDataStoresConversationsGetCall {
26654 c := &ProjectsLocationsDataStoresConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26655 c.name = name
26656 return c
26657 }
26658
26659
26660
26661
26662 func (c *ProjectsLocationsDataStoresConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsGetCall {
26663 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26664 return c
26665 }
26666
26667
26668
26669
26670 func (c *ProjectsLocationsDataStoresConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresConversationsGetCall {
26671 c.ifNoneMatch_ = entityTag
26672 return c
26673 }
26674
26675
26676 func (c *ProjectsLocationsDataStoresConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsGetCall {
26677 c.ctx_ = ctx
26678 return c
26679 }
26680
26681
26682
26683 func (c *ProjectsLocationsDataStoresConversationsGetCall) Header() http.Header {
26684 if c.header_ == nil {
26685 c.header_ = make(http.Header)
26686 }
26687 return c.header_
26688 }
26689
26690 func (c *ProjectsLocationsDataStoresConversationsGetCall) doRequest(alt string) (*http.Response, error) {
26691 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26692 if c.ifNoneMatch_ != "" {
26693 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26694 }
26695 var body io.Reader = nil
26696 c.urlParams_.Set("alt", alt)
26697 c.urlParams_.Set("prettyPrint", "false")
26698 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
26699 urls += "?" + c.urlParams_.Encode()
26700 req, err := http.NewRequest("GET", urls, body)
26701 if err != nil {
26702 return nil, err
26703 }
26704 req.Header = reqHeaders
26705 googleapi.Expand(req.URL, map[string]string{
26706 "name": c.name,
26707 })
26708 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26709 }
26710
26711
26712
26713
26714
26715
26716
26717 func (c *ProjectsLocationsDataStoresConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
26718 gensupport.SetOptions(c.urlParams_, opts...)
26719 res, err := c.doRequest("json")
26720 if res != nil && res.StatusCode == http.StatusNotModified {
26721 if res.Body != nil {
26722 res.Body.Close()
26723 }
26724 return nil, gensupport.WrapError(&googleapi.Error{
26725 Code: res.StatusCode,
26726 Header: res.Header,
26727 })
26728 }
26729 if err != nil {
26730 return nil, err
26731 }
26732 defer googleapi.CloseBody(res)
26733 if err := googleapi.CheckResponse(res); err != nil {
26734 return nil, gensupport.WrapError(err)
26735 }
26736 ret := &GoogleCloudDiscoveryengineV1betaConversation{
26737 ServerResponse: googleapi.ServerResponse{
26738 Header: res.Header,
26739 HTTPStatusCode: res.StatusCode,
26740 },
26741 }
26742 target := &ret
26743 if err := gensupport.DecodeResponse(target, res); err != nil {
26744 return nil, err
26745 }
26746 return ret, nil
26747 }
26748
26749 type ProjectsLocationsDataStoresConversationsListCall struct {
26750 s *Service
26751 parent string
26752 urlParams_ gensupport.URLParams
26753 ifNoneMatch_ string
26754 ctx_ context.Context
26755 header_ http.Header
26756 }
26757
26758
26759
26760
26761
26762
26763 func (r *ProjectsLocationsDataStoresConversationsService) List(parent string) *ProjectsLocationsDataStoresConversationsListCall {
26764 c := &ProjectsLocationsDataStoresConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26765 c.parent = parent
26766 return c
26767 }
26768
26769
26770
26771
26772 func (c *ProjectsLocationsDataStoresConversationsListCall) Filter(filter string) *ProjectsLocationsDataStoresConversationsListCall {
26773 c.urlParams_.Set("filter", filter)
26774 return c
26775 }
26776
26777
26778
26779
26780
26781 func (c *ProjectsLocationsDataStoresConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsDataStoresConversationsListCall {
26782 c.urlParams_.Set("orderBy", orderBy)
26783 return c
26784 }
26785
26786
26787
26788 func (c *ProjectsLocationsDataStoresConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresConversationsListCall {
26789 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26790 return c
26791 }
26792
26793
26794
26795
26796 func (c *ProjectsLocationsDataStoresConversationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresConversationsListCall {
26797 c.urlParams_.Set("pageToken", pageToken)
26798 return c
26799 }
26800
26801
26802
26803
26804 func (c *ProjectsLocationsDataStoresConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsListCall {
26805 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26806 return c
26807 }
26808
26809
26810
26811
26812 func (c *ProjectsLocationsDataStoresConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresConversationsListCall {
26813 c.ifNoneMatch_ = entityTag
26814 return c
26815 }
26816
26817
26818 func (c *ProjectsLocationsDataStoresConversationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsListCall {
26819 c.ctx_ = ctx
26820 return c
26821 }
26822
26823
26824
26825 func (c *ProjectsLocationsDataStoresConversationsListCall) Header() http.Header {
26826 if c.header_ == nil {
26827 c.header_ = make(http.Header)
26828 }
26829 return c.header_
26830 }
26831
26832 func (c *ProjectsLocationsDataStoresConversationsListCall) doRequest(alt string) (*http.Response, error) {
26833 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26834 if c.ifNoneMatch_ != "" {
26835 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26836 }
26837 var body io.Reader = nil
26838 c.urlParams_.Set("alt", alt)
26839 c.urlParams_.Set("prettyPrint", "false")
26840 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/conversations")
26841 urls += "?" + c.urlParams_.Encode()
26842 req, err := http.NewRequest("GET", urls, body)
26843 if err != nil {
26844 return nil, err
26845 }
26846 req.Header = reqHeaders
26847 googleapi.Expand(req.URL, map[string]string{
26848 "parent": c.parent,
26849 })
26850 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26851 }
26852
26853
26854
26855
26856
26857
26858
26859 func (c *ProjectsLocationsDataStoresConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListConversationsResponse, error) {
26860 gensupport.SetOptions(c.urlParams_, opts...)
26861 res, err := c.doRequest("json")
26862 if res != nil && res.StatusCode == http.StatusNotModified {
26863 if res.Body != nil {
26864 res.Body.Close()
26865 }
26866 return nil, gensupport.WrapError(&googleapi.Error{
26867 Code: res.StatusCode,
26868 Header: res.Header,
26869 })
26870 }
26871 if err != nil {
26872 return nil, err
26873 }
26874 defer googleapi.CloseBody(res)
26875 if err := googleapi.CheckResponse(res); err != nil {
26876 return nil, gensupport.WrapError(err)
26877 }
26878 ret := &GoogleCloudDiscoveryengineV1betaListConversationsResponse{
26879 ServerResponse: googleapi.ServerResponse{
26880 Header: res.Header,
26881 HTTPStatusCode: res.StatusCode,
26882 },
26883 }
26884 target := &ret
26885 if err := gensupport.DecodeResponse(target, res); err != nil {
26886 return nil, err
26887 }
26888 return ret, nil
26889 }
26890
26891
26892
26893
26894 func (c *ProjectsLocationsDataStoresConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListConversationsResponse) error) error {
26895 c.ctx_ = ctx
26896 defer c.PageToken(c.urlParams_.Get("pageToken"))
26897 for {
26898 x, err := c.Do()
26899 if err != nil {
26900 return err
26901 }
26902 if err := f(x); err != nil {
26903 return err
26904 }
26905 if x.NextPageToken == "" {
26906 return nil
26907 }
26908 c.PageToken(x.NextPageToken)
26909 }
26910 }
26911
26912 type ProjectsLocationsDataStoresConversationsPatchCall struct {
26913 s *Service
26914 name string
26915 googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation
26916 urlParams_ gensupport.URLParams
26917 ctx_ context.Context
26918 header_ http.Header
26919 }
26920
26921
26922
26923
26924
26925
26926
26927
26928
26929 func (r *ProjectsLocationsDataStoresConversationsService) Patch(name string, googleclouddiscoveryenginev1betaconversation *GoogleCloudDiscoveryengineV1betaConversation) *ProjectsLocationsDataStoresConversationsPatchCall {
26930 c := &ProjectsLocationsDataStoresConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26931 c.name = name
26932 c.googleclouddiscoveryenginev1betaconversation = googleclouddiscoveryenginev1betaconversation
26933 return c
26934 }
26935
26936
26937
26938
26939 func (c *ProjectsLocationsDataStoresConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresConversationsPatchCall {
26940 c.urlParams_.Set("updateMask", updateMask)
26941 return c
26942 }
26943
26944
26945
26946
26947 func (c *ProjectsLocationsDataStoresConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsPatchCall {
26948 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26949 return c
26950 }
26951
26952
26953 func (c *ProjectsLocationsDataStoresConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsPatchCall {
26954 c.ctx_ = ctx
26955 return c
26956 }
26957
26958
26959
26960 func (c *ProjectsLocationsDataStoresConversationsPatchCall) Header() http.Header {
26961 if c.header_ == nil {
26962 c.header_ = make(http.Header)
26963 }
26964 return c.header_
26965 }
26966
26967 func (c *ProjectsLocationsDataStoresConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
26968 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26969 var body io.Reader = nil
26970 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaconversation)
26971 if err != nil {
26972 return nil, err
26973 }
26974 c.urlParams_.Set("alt", alt)
26975 c.urlParams_.Set("prettyPrint", "false")
26976 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
26977 urls += "?" + c.urlParams_.Encode()
26978 req, err := http.NewRequest("PATCH", urls, body)
26979 if err != nil {
26980 return nil, err
26981 }
26982 req.Header = reqHeaders
26983 googleapi.Expand(req.URL, map[string]string{
26984 "name": c.name,
26985 })
26986 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26987 }
26988
26989
26990
26991
26992
26993
26994
26995 func (c *ProjectsLocationsDataStoresConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaConversation, error) {
26996 gensupport.SetOptions(c.urlParams_, opts...)
26997 res, err := c.doRequest("json")
26998 if res != nil && res.StatusCode == http.StatusNotModified {
26999 if res.Body != nil {
27000 res.Body.Close()
27001 }
27002 return nil, gensupport.WrapError(&googleapi.Error{
27003 Code: res.StatusCode,
27004 Header: res.Header,
27005 })
27006 }
27007 if err != nil {
27008 return nil, err
27009 }
27010 defer googleapi.CloseBody(res)
27011 if err := googleapi.CheckResponse(res); err != nil {
27012 return nil, gensupport.WrapError(err)
27013 }
27014 ret := &GoogleCloudDiscoveryengineV1betaConversation{
27015 ServerResponse: googleapi.ServerResponse{
27016 Header: res.Header,
27017 HTTPStatusCode: res.StatusCode,
27018 },
27019 }
27020 target := &ret
27021 if err := gensupport.DecodeResponse(target, res); err != nil {
27022 return nil, err
27023 }
27024 return ret, nil
27025 }
27026
27027 type ProjectsLocationsDataStoresModelsOperationsGetCall struct {
27028 s *Service
27029 name string
27030 urlParams_ gensupport.URLParams
27031 ifNoneMatch_ string
27032 ctx_ context.Context
27033 header_ http.Header
27034 }
27035
27036
27037
27038
27039
27040
27041 func (r *ProjectsLocationsDataStoresModelsOperationsService) Get(name string) *ProjectsLocationsDataStoresModelsOperationsGetCall {
27042 c := &ProjectsLocationsDataStoresModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27043 c.name = name
27044 return c
27045 }
27046
27047
27048
27049
27050 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresModelsOperationsGetCall {
27051 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27052 return c
27053 }
27054
27055
27056
27057
27058 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresModelsOperationsGetCall {
27059 c.ifNoneMatch_ = entityTag
27060 return c
27061 }
27062
27063
27064 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresModelsOperationsGetCall {
27065 c.ctx_ = ctx
27066 return c
27067 }
27068
27069
27070
27071 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Header() http.Header {
27072 if c.header_ == nil {
27073 c.header_ = make(http.Header)
27074 }
27075 return c.header_
27076 }
27077
27078 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
27079 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27080 if c.ifNoneMatch_ != "" {
27081 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27082 }
27083 var body io.Reader = nil
27084 c.urlParams_.Set("alt", alt)
27085 c.urlParams_.Set("prettyPrint", "false")
27086 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
27087 urls += "?" + c.urlParams_.Encode()
27088 req, err := http.NewRequest("GET", urls, body)
27089 if err != nil {
27090 return nil, err
27091 }
27092 req.Header = reqHeaders
27093 googleapi.Expand(req.URL, map[string]string{
27094 "name": c.name,
27095 })
27096 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27097 }
27098
27099
27100
27101
27102
27103
27104
27105 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27106 gensupport.SetOptions(c.urlParams_, opts...)
27107 res, err := c.doRequest("json")
27108 if res != nil && res.StatusCode == http.StatusNotModified {
27109 if res.Body != nil {
27110 res.Body.Close()
27111 }
27112 return nil, gensupport.WrapError(&googleapi.Error{
27113 Code: res.StatusCode,
27114 Header: res.Header,
27115 })
27116 }
27117 if err != nil {
27118 return nil, err
27119 }
27120 defer googleapi.CloseBody(res)
27121 if err := googleapi.CheckResponse(res); err != nil {
27122 return nil, gensupport.WrapError(err)
27123 }
27124 ret := &GoogleLongrunningOperation{
27125 ServerResponse: googleapi.ServerResponse{
27126 Header: res.Header,
27127 HTTPStatusCode: res.StatusCode,
27128 },
27129 }
27130 target := &ret
27131 if err := gensupport.DecodeResponse(target, res); err != nil {
27132 return nil, err
27133 }
27134 return ret, nil
27135 }
27136
27137 type ProjectsLocationsDataStoresModelsOperationsListCall struct {
27138 s *Service
27139 name string
27140 urlParams_ gensupport.URLParams
27141 ifNoneMatch_ string
27142 ctx_ context.Context
27143 header_ http.Header
27144 }
27145
27146
27147
27148
27149
27150 func (r *ProjectsLocationsDataStoresModelsOperationsService) List(name string) *ProjectsLocationsDataStoresModelsOperationsListCall {
27151 c := &ProjectsLocationsDataStoresModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27152 c.name = name
27153 return c
27154 }
27155
27156
27157 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresModelsOperationsListCall {
27158 c.urlParams_.Set("filter", filter)
27159 return c
27160 }
27161
27162
27163
27164 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresModelsOperationsListCall {
27165 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27166 return c
27167 }
27168
27169
27170
27171 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresModelsOperationsListCall {
27172 c.urlParams_.Set("pageToken", pageToken)
27173 return c
27174 }
27175
27176
27177
27178
27179 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresModelsOperationsListCall {
27180 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27181 return c
27182 }
27183
27184
27185
27186
27187 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresModelsOperationsListCall {
27188 c.ifNoneMatch_ = entityTag
27189 return c
27190 }
27191
27192
27193 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresModelsOperationsListCall {
27194 c.ctx_ = ctx
27195 return c
27196 }
27197
27198
27199
27200 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Header() http.Header {
27201 if c.header_ == nil {
27202 c.header_ = make(http.Header)
27203 }
27204 return c.header_
27205 }
27206
27207 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) doRequest(alt string) (*http.Response, error) {
27208 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27209 if c.ifNoneMatch_ != "" {
27210 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27211 }
27212 var body io.Reader = nil
27213 c.urlParams_.Set("alt", alt)
27214 c.urlParams_.Set("prettyPrint", "false")
27215 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
27216 urls += "?" + c.urlParams_.Encode()
27217 req, err := http.NewRequest("GET", urls, body)
27218 if err != nil {
27219 return nil, err
27220 }
27221 req.Header = reqHeaders
27222 googleapi.Expand(req.URL, map[string]string{
27223 "name": c.name,
27224 })
27225 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27226 }
27227
27228
27229
27230
27231
27232
27233
27234 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
27235 gensupport.SetOptions(c.urlParams_, opts...)
27236 res, err := c.doRequest("json")
27237 if res != nil && res.StatusCode == http.StatusNotModified {
27238 if res.Body != nil {
27239 res.Body.Close()
27240 }
27241 return nil, gensupport.WrapError(&googleapi.Error{
27242 Code: res.StatusCode,
27243 Header: res.Header,
27244 })
27245 }
27246 if err != nil {
27247 return nil, err
27248 }
27249 defer googleapi.CloseBody(res)
27250 if err := googleapi.CheckResponse(res); err != nil {
27251 return nil, gensupport.WrapError(err)
27252 }
27253 ret := &GoogleLongrunningListOperationsResponse{
27254 ServerResponse: googleapi.ServerResponse{
27255 Header: res.Header,
27256 HTTPStatusCode: res.StatusCode,
27257 },
27258 }
27259 target := &ret
27260 if err := gensupport.DecodeResponse(target, res); err != nil {
27261 return nil, err
27262 }
27263 return ret, nil
27264 }
27265
27266
27267
27268
27269 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
27270 c.ctx_ = ctx
27271 defer c.PageToken(c.urlParams_.Get("pageToken"))
27272 for {
27273 x, err := c.Do()
27274 if err != nil {
27275 return err
27276 }
27277 if err := f(x); err != nil {
27278 return err
27279 }
27280 if x.NextPageToken == "" {
27281 return nil
27282 }
27283 c.PageToken(x.NextPageToken)
27284 }
27285 }
27286
27287 type ProjectsLocationsDataStoresOperationsGetCall struct {
27288 s *Service
27289 name string
27290 urlParams_ gensupport.URLParams
27291 ifNoneMatch_ string
27292 ctx_ context.Context
27293 header_ http.Header
27294 }
27295
27296
27297
27298
27299
27300
27301 func (r *ProjectsLocationsDataStoresOperationsService) Get(name string) *ProjectsLocationsDataStoresOperationsGetCall {
27302 c := &ProjectsLocationsDataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27303 c.name = name
27304 return c
27305 }
27306
27307
27308
27309
27310 func (c *ProjectsLocationsDataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresOperationsGetCall {
27311 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27312 return c
27313 }
27314
27315
27316
27317
27318 func (c *ProjectsLocationsDataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresOperationsGetCall {
27319 c.ifNoneMatch_ = entityTag
27320 return c
27321 }
27322
27323
27324 func (c *ProjectsLocationsDataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresOperationsGetCall {
27325 c.ctx_ = ctx
27326 return c
27327 }
27328
27329
27330
27331 func (c *ProjectsLocationsDataStoresOperationsGetCall) Header() http.Header {
27332 if c.header_ == nil {
27333 c.header_ = make(http.Header)
27334 }
27335 return c.header_
27336 }
27337
27338 func (c *ProjectsLocationsDataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) {
27339 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27340 if c.ifNoneMatch_ != "" {
27341 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27342 }
27343 var body io.Reader = nil
27344 c.urlParams_.Set("alt", alt)
27345 c.urlParams_.Set("prettyPrint", "false")
27346 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
27347 urls += "?" + c.urlParams_.Encode()
27348 req, err := http.NewRequest("GET", urls, body)
27349 if err != nil {
27350 return nil, err
27351 }
27352 req.Header = reqHeaders
27353 googleapi.Expand(req.URL, map[string]string{
27354 "name": c.name,
27355 })
27356 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27357 }
27358
27359
27360
27361
27362
27363
27364
27365 func (c *ProjectsLocationsDataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27366 gensupport.SetOptions(c.urlParams_, opts...)
27367 res, err := c.doRequest("json")
27368 if res != nil && res.StatusCode == http.StatusNotModified {
27369 if res.Body != nil {
27370 res.Body.Close()
27371 }
27372 return nil, gensupport.WrapError(&googleapi.Error{
27373 Code: res.StatusCode,
27374 Header: res.Header,
27375 })
27376 }
27377 if err != nil {
27378 return nil, err
27379 }
27380 defer googleapi.CloseBody(res)
27381 if err := googleapi.CheckResponse(res); err != nil {
27382 return nil, gensupport.WrapError(err)
27383 }
27384 ret := &GoogleLongrunningOperation{
27385 ServerResponse: googleapi.ServerResponse{
27386 Header: res.Header,
27387 HTTPStatusCode: res.StatusCode,
27388 },
27389 }
27390 target := &ret
27391 if err := gensupport.DecodeResponse(target, res); err != nil {
27392 return nil, err
27393 }
27394 return ret, nil
27395 }
27396
27397 type ProjectsLocationsDataStoresOperationsListCall struct {
27398 s *Service
27399 name string
27400 urlParams_ gensupport.URLParams
27401 ifNoneMatch_ string
27402 ctx_ context.Context
27403 header_ http.Header
27404 }
27405
27406
27407
27408
27409
27410 func (r *ProjectsLocationsDataStoresOperationsService) List(name string) *ProjectsLocationsDataStoresOperationsListCall {
27411 c := &ProjectsLocationsDataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27412 c.name = name
27413 return c
27414 }
27415
27416
27417 func (c *ProjectsLocationsDataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresOperationsListCall {
27418 c.urlParams_.Set("filter", filter)
27419 return c
27420 }
27421
27422
27423
27424 func (c *ProjectsLocationsDataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresOperationsListCall {
27425 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27426 return c
27427 }
27428
27429
27430
27431 func (c *ProjectsLocationsDataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresOperationsListCall {
27432 c.urlParams_.Set("pageToken", pageToken)
27433 return c
27434 }
27435
27436
27437
27438
27439 func (c *ProjectsLocationsDataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresOperationsListCall {
27440 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27441 return c
27442 }
27443
27444
27445
27446
27447 func (c *ProjectsLocationsDataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresOperationsListCall {
27448 c.ifNoneMatch_ = entityTag
27449 return c
27450 }
27451
27452
27453 func (c *ProjectsLocationsDataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresOperationsListCall {
27454 c.ctx_ = ctx
27455 return c
27456 }
27457
27458
27459
27460 func (c *ProjectsLocationsDataStoresOperationsListCall) Header() http.Header {
27461 if c.header_ == nil {
27462 c.header_ = make(http.Header)
27463 }
27464 return c.header_
27465 }
27466
27467 func (c *ProjectsLocationsDataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) {
27468 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27469 if c.ifNoneMatch_ != "" {
27470 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27471 }
27472 var body io.Reader = nil
27473 c.urlParams_.Set("alt", alt)
27474 c.urlParams_.Set("prettyPrint", "false")
27475 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
27476 urls += "?" + c.urlParams_.Encode()
27477 req, err := http.NewRequest("GET", urls, body)
27478 if err != nil {
27479 return nil, err
27480 }
27481 req.Header = reqHeaders
27482 googleapi.Expand(req.URL, map[string]string{
27483 "name": c.name,
27484 })
27485 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27486 }
27487
27488
27489
27490
27491
27492
27493
27494 func (c *ProjectsLocationsDataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
27495 gensupport.SetOptions(c.urlParams_, opts...)
27496 res, err := c.doRequest("json")
27497 if res != nil && res.StatusCode == http.StatusNotModified {
27498 if res.Body != nil {
27499 res.Body.Close()
27500 }
27501 return nil, gensupport.WrapError(&googleapi.Error{
27502 Code: res.StatusCode,
27503 Header: res.Header,
27504 })
27505 }
27506 if err != nil {
27507 return nil, err
27508 }
27509 defer googleapi.CloseBody(res)
27510 if err := googleapi.CheckResponse(res); err != nil {
27511 return nil, gensupport.WrapError(err)
27512 }
27513 ret := &GoogleLongrunningListOperationsResponse{
27514 ServerResponse: googleapi.ServerResponse{
27515 Header: res.Header,
27516 HTTPStatusCode: res.StatusCode,
27517 },
27518 }
27519 target := &ret
27520 if err := gensupport.DecodeResponse(target, res); err != nil {
27521 return nil, err
27522 }
27523 return ret, nil
27524 }
27525
27526
27527
27528
27529 func (c *ProjectsLocationsDataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
27530 c.ctx_ = ctx
27531 defer c.PageToken(c.urlParams_.Get("pageToken"))
27532 for {
27533 x, err := c.Do()
27534 if err != nil {
27535 return err
27536 }
27537 if err := f(x); err != nil {
27538 return err
27539 }
27540 if x.NextPageToken == "" {
27541 return nil
27542 }
27543 c.PageToken(x.NextPageToken)
27544 }
27545 }
27546
27547 type ProjectsLocationsDataStoresSchemasCreateCall struct {
27548 s *Service
27549 parent string
27550 googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema
27551 urlParams_ gensupport.URLParams
27552 ctx_ context.Context
27553 header_ http.Header
27554 }
27555
27556
27557
27558
27559
27560
27561 func (r *ProjectsLocationsDataStoresSchemasService) Create(parent string, googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema) *ProjectsLocationsDataStoresSchemasCreateCall {
27562 c := &ProjectsLocationsDataStoresSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27563 c.parent = parent
27564 c.googleclouddiscoveryenginev1betaschema = googleclouddiscoveryenginev1betaschema
27565 return c
27566 }
27567
27568
27569
27570
27571
27572 func (c *ProjectsLocationsDataStoresSchemasCreateCall) SchemaId(schemaId string) *ProjectsLocationsDataStoresSchemasCreateCall {
27573 c.urlParams_.Set("schemaId", schemaId)
27574 return c
27575 }
27576
27577
27578
27579
27580 func (c *ProjectsLocationsDataStoresSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasCreateCall {
27581 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27582 return c
27583 }
27584
27585
27586 func (c *ProjectsLocationsDataStoresSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasCreateCall {
27587 c.ctx_ = ctx
27588 return c
27589 }
27590
27591
27592
27593 func (c *ProjectsLocationsDataStoresSchemasCreateCall) Header() http.Header {
27594 if c.header_ == nil {
27595 c.header_ = make(http.Header)
27596 }
27597 return c.header_
27598 }
27599
27600 func (c *ProjectsLocationsDataStoresSchemasCreateCall) doRequest(alt string) (*http.Response, error) {
27601 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27602 var body io.Reader = nil
27603 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaschema)
27604 if err != nil {
27605 return nil, err
27606 }
27607 c.urlParams_.Set("alt", alt)
27608 c.urlParams_.Set("prettyPrint", "false")
27609 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/schemas")
27610 urls += "?" + c.urlParams_.Encode()
27611 req, err := http.NewRequest("POST", urls, body)
27612 if err != nil {
27613 return nil, err
27614 }
27615 req.Header = reqHeaders
27616 googleapi.Expand(req.URL, map[string]string{
27617 "parent": c.parent,
27618 })
27619 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27620 }
27621
27622
27623
27624
27625
27626
27627
27628 func (c *ProjectsLocationsDataStoresSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27629 gensupport.SetOptions(c.urlParams_, opts...)
27630 res, err := c.doRequest("json")
27631 if res != nil && res.StatusCode == http.StatusNotModified {
27632 if res.Body != nil {
27633 res.Body.Close()
27634 }
27635 return nil, gensupport.WrapError(&googleapi.Error{
27636 Code: res.StatusCode,
27637 Header: res.Header,
27638 })
27639 }
27640 if err != nil {
27641 return nil, err
27642 }
27643 defer googleapi.CloseBody(res)
27644 if err := googleapi.CheckResponse(res); err != nil {
27645 return nil, gensupport.WrapError(err)
27646 }
27647 ret := &GoogleLongrunningOperation{
27648 ServerResponse: googleapi.ServerResponse{
27649 Header: res.Header,
27650 HTTPStatusCode: res.StatusCode,
27651 },
27652 }
27653 target := &ret
27654 if err := gensupport.DecodeResponse(target, res); err != nil {
27655 return nil, err
27656 }
27657 return ret, nil
27658 }
27659
27660 type ProjectsLocationsDataStoresSchemasDeleteCall struct {
27661 s *Service
27662 name string
27663 urlParams_ gensupport.URLParams
27664 ctx_ context.Context
27665 header_ http.Header
27666 }
27667
27668
27669
27670
27671
27672
27673 func (r *ProjectsLocationsDataStoresSchemasService) Delete(name string) *ProjectsLocationsDataStoresSchemasDeleteCall {
27674 c := &ProjectsLocationsDataStoresSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27675 c.name = name
27676 return c
27677 }
27678
27679
27680
27681
27682 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasDeleteCall {
27683 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27684 return c
27685 }
27686
27687
27688 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasDeleteCall {
27689 c.ctx_ = ctx
27690 return c
27691 }
27692
27693
27694
27695 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Header() http.Header {
27696 if c.header_ == nil {
27697 c.header_ = make(http.Header)
27698 }
27699 return c.header_
27700 }
27701
27702 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) doRequest(alt string) (*http.Response, error) {
27703 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27704 var body io.Reader = nil
27705 c.urlParams_.Set("alt", alt)
27706 c.urlParams_.Set("prettyPrint", "false")
27707 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
27708 urls += "?" + c.urlParams_.Encode()
27709 req, err := http.NewRequest("DELETE", urls, body)
27710 if err != nil {
27711 return nil, err
27712 }
27713 req.Header = reqHeaders
27714 googleapi.Expand(req.URL, map[string]string{
27715 "name": c.name,
27716 })
27717 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27718 }
27719
27720
27721
27722
27723
27724
27725
27726 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27727 gensupport.SetOptions(c.urlParams_, opts...)
27728 res, err := c.doRequest("json")
27729 if res != nil && res.StatusCode == http.StatusNotModified {
27730 if res.Body != nil {
27731 res.Body.Close()
27732 }
27733 return nil, gensupport.WrapError(&googleapi.Error{
27734 Code: res.StatusCode,
27735 Header: res.Header,
27736 })
27737 }
27738 if err != nil {
27739 return nil, err
27740 }
27741 defer googleapi.CloseBody(res)
27742 if err := googleapi.CheckResponse(res); err != nil {
27743 return nil, gensupport.WrapError(err)
27744 }
27745 ret := &GoogleLongrunningOperation{
27746 ServerResponse: googleapi.ServerResponse{
27747 Header: res.Header,
27748 HTTPStatusCode: res.StatusCode,
27749 },
27750 }
27751 target := &ret
27752 if err := gensupport.DecodeResponse(target, res); err != nil {
27753 return nil, err
27754 }
27755 return ret, nil
27756 }
27757
27758 type ProjectsLocationsDataStoresSchemasGetCall struct {
27759 s *Service
27760 name string
27761 urlParams_ gensupport.URLParams
27762 ifNoneMatch_ string
27763 ctx_ context.Context
27764 header_ http.Header
27765 }
27766
27767
27768
27769
27770
27771
27772 func (r *ProjectsLocationsDataStoresSchemasService) Get(name string) *ProjectsLocationsDataStoresSchemasGetCall {
27773 c := &ProjectsLocationsDataStoresSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27774 c.name = name
27775 return c
27776 }
27777
27778
27779
27780
27781 func (c *ProjectsLocationsDataStoresSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasGetCall {
27782 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27783 return c
27784 }
27785
27786
27787
27788
27789 func (c *ProjectsLocationsDataStoresSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSchemasGetCall {
27790 c.ifNoneMatch_ = entityTag
27791 return c
27792 }
27793
27794
27795 func (c *ProjectsLocationsDataStoresSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasGetCall {
27796 c.ctx_ = ctx
27797 return c
27798 }
27799
27800
27801
27802 func (c *ProjectsLocationsDataStoresSchemasGetCall) Header() http.Header {
27803 if c.header_ == nil {
27804 c.header_ = make(http.Header)
27805 }
27806 return c.header_
27807 }
27808
27809 func (c *ProjectsLocationsDataStoresSchemasGetCall) doRequest(alt string) (*http.Response, error) {
27810 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27811 if c.ifNoneMatch_ != "" {
27812 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27813 }
27814 var body io.Reader = nil
27815 c.urlParams_.Set("alt", alt)
27816 c.urlParams_.Set("prettyPrint", "false")
27817 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
27818 urls += "?" + c.urlParams_.Encode()
27819 req, err := http.NewRequest("GET", urls, body)
27820 if err != nil {
27821 return nil, err
27822 }
27823 req.Header = reqHeaders
27824 googleapi.Expand(req.URL, map[string]string{
27825 "name": c.name,
27826 })
27827 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27828 }
27829
27830
27831
27832
27833
27834
27835
27836 func (c *ProjectsLocationsDataStoresSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSchema, error) {
27837 gensupport.SetOptions(c.urlParams_, opts...)
27838 res, err := c.doRequest("json")
27839 if res != nil && res.StatusCode == http.StatusNotModified {
27840 if res.Body != nil {
27841 res.Body.Close()
27842 }
27843 return nil, gensupport.WrapError(&googleapi.Error{
27844 Code: res.StatusCode,
27845 Header: res.Header,
27846 })
27847 }
27848 if err != nil {
27849 return nil, err
27850 }
27851 defer googleapi.CloseBody(res)
27852 if err := googleapi.CheckResponse(res); err != nil {
27853 return nil, gensupport.WrapError(err)
27854 }
27855 ret := &GoogleCloudDiscoveryengineV1betaSchema{
27856 ServerResponse: googleapi.ServerResponse{
27857 Header: res.Header,
27858 HTTPStatusCode: res.StatusCode,
27859 },
27860 }
27861 target := &ret
27862 if err := gensupport.DecodeResponse(target, res); err != nil {
27863 return nil, err
27864 }
27865 return ret, nil
27866 }
27867
27868 type ProjectsLocationsDataStoresSchemasListCall struct {
27869 s *Service
27870 parent string
27871 urlParams_ gensupport.URLParams
27872 ifNoneMatch_ string
27873 ctx_ context.Context
27874 header_ http.Header
27875 }
27876
27877
27878
27879
27880
27881
27882 func (r *ProjectsLocationsDataStoresSchemasService) List(parent string) *ProjectsLocationsDataStoresSchemasListCall {
27883 c := &ProjectsLocationsDataStoresSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27884 c.parent = parent
27885 return c
27886 }
27887
27888
27889
27890
27891
27892 func (c *ProjectsLocationsDataStoresSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSchemasListCall {
27893 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27894 return c
27895 }
27896
27897
27898
27899
27900
27901 func (c *ProjectsLocationsDataStoresSchemasListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSchemasListCall {
27902 c.urlParams_.Set("pageToken", pageToken)
27903 return c
27904 }
27905
27906
27907
27908
27909 func (c *ProjectsLocationsDataStoresSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasListCall {
27910 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27911 return c
27912 }
27913
27914
27915
27916
27917 func (c *ProjectsLocationsDataStoresSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSchemasListCall {
27918 c.ifNoneMatch_ = entityTag
27919 return c
27920 }
27921
27922
27923 func (c *ProjectsLocationsDataStoresSchemasListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasListCall {
27924 c.ctx_ = ctx
27925 return c
27926 }
27927
27928
27929
27930 func (c *ProjectsLocationsDataStoresSchemasListCall) Header() http.Header {
27931 if c.header_ == nil {
27932 c.header_ = make(http.Header)
27933 }
27934 return c.header_
27935 }
27936
27937 func (c *ProjectsLocationsDataStoresSchemasListCall) doRequest(alt string) (*http.Response, error) {
27938 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27939 if c.ifNoneMatch_ != "" {
27940 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27941 }
27942 var body io.Reader = nil
27943 c.urlParams_.Set("alt", alt)
27944 c.urlParams_.Set("prettyPrint", "false")
27945 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/schemas")
27946 urls += "?" + c.urlParams_.Encode()
27947 req, err := http.NewRequest("GET", urls, body)
27948 if err != nil {
27949 return nil, err
27950 }
27951 req.Header = reqHeaders
27952 googleapi.Expand(req.URL, map[string]string{
27953 "parent": c.parent,
27954 })
27955 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27956 }
27957
27958
27959
27960
27961
27962
27963
27964 func (c *ProjectsLocationsDataStoresSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListSchemasResponse, error) {
27965 gensupport.SetOptions(c.urlParams_, opts...)
27966 res, err := c.doRequest("json")
27967 if res != nil && res.StatusCode == http.StatusNotModified {
27968 if res.Body != nil {
27969 res.Body.Close()
27970 }
27971 return nil, gensupport.WrapError(&googleapi.Error{
27972 Code: res.StatusCode,
27973 Header: res.Header,
27974 })
27975 }
27976 if err != nil {
27977 return nil, err
27978 }
27979 defer googleapi.CloseBody(res)
27980 if err := googleapi.CheckResponse(res); err != nil {
27981 return nil, gensupport.WrapError(err)
27982 }
27983 ret := &GoogleCloudDiscoveryengineV1betaListSchemasResponse{
27984 ServerResponse: googleapi.ServerResponse{
27985 Header: res.Header,
27986 HTTPStatusCode: res.StatusCode,
27987 },
27988 }
27989 target := &ret
27990 if err := gensupport.DecodeResponse(target, res); err != nil {
27991 return nil, err
27992 }
27993 return ret, nil
27994 }
27995
27996
27997
27998
27999 func (c *ProjectsLocationsDataStoresSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListSchemasResponse) error) error {
28000 c.ctx_ = ctx
28001 defer c.PageToken(c.urlParams_.Get("pageToken"))
28002 for {
28003 x, err := c.Do()
28004 if err != nil {
28005 return err
28006 }
28007 if err := f(x); err != nil {
28008 return err
28009 }
28010 if x.NextPageToken == "" {
28011 return nil
28012 }
28013 c.PageToken(x.NextPageToken)
28014 }
28015 }
28016
28017 type ProjectsLocationsDataStoresSchemasPatchCall struct {
28018 s *Service
28019 name string
28020 googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema
28021 urlParams_ gensupport.URLParams
28022 ctx_ context.Context
28023 header_ http.Header
28024 }
28025
28026
28027
28028
28029
28030
28031
28032 func (r *ProjectsLocationsDataStoresSchemasService) Patch(name string, googleclouddiscoveryenginev1betaschema *GoogleCloudDiscoveryengineV1betaSchema) *ProjectsLocationsDataStoresSchemasPatchCall {
28033 c := &ProjectsLocationsDataStoresSchemasPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28034 c.name = name
28035 c.googleclouddiscoveryenginev1betaschema = googleclouddiscoveryenginev1betaschema
28036 return c
28037 }
28038
28039
28040
28041
28042 func (c *ProjectsLocationsDataStoresSchemasPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDataStoresSchemasPatchCall {
28043 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
28044 return c
28045 }
28046
28047
28048
28049
28050 func (c *ProjectsLocationsDataStoresSchemasPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasPatchCall {
28051 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28052 return c
28053 }
28054
28055
28056 func (c *ProjectsLocationsDataStoresSchemasPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasPatchCall {
28057 c.ctx_ = ctx
28058 return c
28059 }
28060
28061
28062
28063 func (c *ProjectsLocationsDataStoresSchemasPatchCall) Header() http.Header {
28064 if c.header_ == nil {
28065 c.header_ = make(http.Header)
28066 }
28067 return c.header_
28068 }
28069
28070 func (c *ProjectsLocationsDataStoresSchemasPatchCall) doRequest(alt string) (*http.Response, error) {
28071 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28072 var body io.Reader = nil
28073 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaschema)
28074 if err != nil {
28075 return nil, err
28076 }
28077 c.urlParams_.Set("alt", alt)
28078 c.urlParams_.Set("prettyPrint", "false")
28079 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
28080 urls += "?" + c.urlParams_.Encode()
28081 req, err := http.NewRequest("PATCH", urls, body)
28082 if err != nil {
28083 return nil, err
28084 }
28085 req.Header = reqHeaders
28086 googleapi.Expand(req.URL, map[string]string{
28087 "name": c.name,
28088 })
28089 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28090 }
28091
28092
28093
28094
28095
28096
28097
28098 func (c *ProjectsLocationsDataStoresSchemasPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28099 gensupport.SetOptions(c.urlParams_, opts...)
28100 res, err := c.doRequest("json")
28101 if res != nil && res.StatusCode == http.StatusNotModified {
28102 if res.Body != nil {
28103 res.Body.Close()
28104 }
28105 return nil, gensupport.WrapError(&googleapi.Error{
28106 Code: res.StatusCode,
28107 Header: res.Header,
28108 })
28109 }
28110 if err != nil {
28111 return nil, err
28112 }
28113 defer googleapi.CloseBody(res)
28114 if err := googleapi.CheckResponse(res); err != nil {
28115 return nil, gensupport.WrapError(err)
28116 }
28117 ret := &GoogleLongrunningOperation{
28118 ServerResponse: googleapi.ServerResponse{
28119 Header: res.Header,
28120 HTTPStatusCode: res.StatusCode,
28121 },
28122 }
28123 target := &ret
28124 if err := gensupport.DecodeResponse(target, res); err != nil {
28125 return nil, err
28126 }
28127 return ret, nil
28128 }
28129
28130 type ProjectsLocationsDataStoresServingConfigsAnswerCall struct {
28131 s *Service
28132 servingConfig string
28133 googleclouddiscoveryenginev1betaanswerqueryrequest *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest
28134 urlParams_ gensupport.URLParams
28135 ctx_ context.Context
28136 header_ http.Header
28137 }
28138
28139
28140
28141
28142
28143
28144
28145
28146
28147 func (r *ProjectsLocationsDataStoresServingConfigsService) Answer(servingConfig string, googleclouddiscoveryenginev1betaanswerqueryrequest *GoogleCloudDiscoveryengineV1betaAnswerQueryRequest) *ProjectsLocationsDataStoresServingConfigsAnswerCall {
28148 c := &ProjectsLocationsDataStoresServingConfigsAnswerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28149 c.servingConfig = servingConfig
28150 c.googleclouddiscoveryenginev1betaanswerqueryrequest = googleclouddiscoveryenginev1betaanswerqueryrequest
28151 return c
28152 }
28153
28154
28155
28156
28157 func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsAnswerCall {
28158 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28159 return c
28160 }
28161
28162
28163 func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsAnswerCall {
28164 c.ctx_ = ctx
28165 return c
28166 }
28167
28168
28169
28170 func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Header() http.Header {
28171 if c.header_ == nil {
28172 c.header_ = make(http.Header)
28173 }
28174 return c.header_
28175 }
28176
28177 func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) doRequest(alt string) (*http.Response, error) {
28178 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28179 var body io.Reader = nil
28180 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaanswerqueryrequest)
28181 if err != nil {
28182 return nil, err
28183 }
28184 c.urlParams_.Set("alt", alt)
28185 c.urlParams_.Set("prettyPrint", "false")
28186 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:answer")
28187 urls += "?" + c.urlParams_.Encode()
28188 req, err := http.NewRequest("POST", urls, body)
28189 if err != nil {
28190 return nil, err
28191 }
28192 req.Header = reqHeaders
28193 googleapi.Expand(req.URL, map[string]string{
28194 "servingConfig": c.servingConfig,
28195 })
28196 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28197 }
28198
28199
28200
28201
28202
28203
28204
28205 func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaAnswerQueryResponse, error) {
28206 gensupport.SetOptions(c.urlParams_, opts...)
28207 res, err := c.doRequest("json")
28208 if res != nil && res.StatusCode == http.StatusNotModified {
28209 if res.Body != nil {
28210 res.Body.Close()
28211 }
28212 return nil, gensupport.WrapError(&googleapi.Error{
28213 Code: res.StatusCode,
28214 Header: res.Header,
28215 })
28216 }
28217 if err != nil {
28218 return nil, err
28219 }
28220 defer googleapi.CloseBody(res)
28221 if err := googleapi.CheckResponse(res); err != nil {
28222 return nil, gensupport.WrapError(err)
28223 }
28224 ret := &GoogleCloudDiscoveryengineV1betaAnswerQueryResponse{
28225 ServerResponse: googleapi.ServerResponse{
28226 Header: res.Header,
28227 HTTPStatusCode: res.StatusCode,
28228 },
28229 }
28230 target := &ret
28231 if err := gensupport.DecodeResponse(target, res); err != nil {
28232 return nil, err
28233 }
28234 return ret, nil
28235 }
28236
28237 type ProjectsLocationsDataStoresServingConfigsGetCall struct {
28238 s *Service
28239 name string
28240 urlParams_ gensupport.URLParams
28241 ifNoneMatch_ string
28242 ctx_ context.Context
28243 header_ http.Header
28244 }
28245
28246
28247
28248
28249
28250
28251
28252 func (r *ProjectsLocationsDataStoresServingConfigsService) Get(name string) *ProjectsLocationsDataStoresServingConfigsGetCall {
28253 c := &ProjectsLocationsDataStoresServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28254 c.name = name
28255 return c
28256 }
28257
28258
28259
28260
28261 func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsGetCall {
28262 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28263 return c
28264 }
28265
28266
28267
28268
28269 func (c *ProjectsLocationsDataStoresServingConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresServingConfigsGetCall {
28270 c.ifNoneMatch_ = entityTag
28271 return c
28272 }
28273
28274
28275 func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsGetCall {
28276 c.ctx_ = ctx
28277 return c
28278 }
28279
28280
28281
28282 func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Header() http.Header {
28283 if c.header_ == nil {
28284 c.header_ = make(http.Header)
28285 }
28286 return c.header_
28287 }
28288
28289 func (c *ProjectsLocationsDataStoresServingConfigsGetCall) doRequest(alt string) (*http.Response, error) {
28290 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28291 if c.ifNoneMatch_ != "" {
28292 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28293 }
28294 var body io.Reader = nil
28295 c.urlParams_.Set("alt", alt)
28296 c.urlParams_.Set("prettyPrint", "false")
28297 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
28298 urls += "?" + c.urlParams_.Encode()
28299 req, err := http.NewRequest("GET", urls, body)
28300 if err != nil {
28301 return nil, err
28302 }
28303 req.Header = reqHeaders
28304 googleapi.Expand(req.URL, map[string]string{
28305 "name": c.name,
28306 })
28307 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28308 }
28309
28310
28311
28312
28313
28314
28315
28316 func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaServingConfig, error) {
28317 gensupport.SetOptions(c.urlParams_, opts...)
28318 res, err := c.doRequest("json")
28319 if res != nil && res.StatusCode == http.StatusNotModified {
28320 if res.Body != nil {
28321 res.Body.Close()
28322 }
28323 return nil, gensupport.WrapError(&googleapi.Error{
28324 Code: res.StatusCode,
28325 Header: res.Header,
28326 })
28327 }
28328 if err != nil {
28329 return nil, err
28330 }
28331 defer googleapi.CloseBody(res)
28332 if err := googleapi.CheckResponse(res); err != nil {
28333 return nil, gensupport.WrapError(err)
28334 }
28335 ret := &GoogleCloudDiscoveryengineV1betaServingConfig{
28336 ServerResponse: googleapi.ServerResponse{
28337 Header: res.Header,
28338 HTTPStatusCode: res.StatusCode,
28339 },
28340 }
28341 target := &ret
28342 if err := gensupport.DecodeResponse(target, res); err != nil {
28343 return nil, err
28344 }
28345 return ret, nil
28346 }
28347
28348 type ProjectsLocationsDataStoresServingConfigsListCall struct {
28349 s *Service
28350 parent string
28351 urlParams_ gensupport.URLParams
28352 ifNoneMatch_ string
28353 ctx_ context.Context
28354 header_ http.Header
28355 }
28356
28357
28358
28359
28360
28361
28362 func (r *ProjectsLocationsDataStoresServingConfigsService) List(parent string) *ProjectsLocationsDataStoresServingConfigsListCall {
28363 c := &ProjectsLocationsDataStoresServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28364 c.parent = parent
28365 return c
28366 }
28367
28368
28369
28370
28371 func (c *ProjectsLocationsDataStoresServingConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresServingConfigsListCall {
28372 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28373 return c
28374 }
28375
28376
28377
28378
28379 func (c *ProjectsLocationsDataStoresServingConfigsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresServingConfigsListCall {
28380 c.urlParams_.Set("pageToken", pageToken)
28381 return c
28382 }
28383
28384
28385
28386
28387 func (c *ProjectsLocationsDataStoresServingConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsListCall {
28388 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28389 return c
28390 }
28391
28392
28393
28394
28395 func (c *ProjectsLocationsDataStoresServingConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresServingConfigsListCall {
28396 c.ifNoneMatch_ = entityTag
28397 return c
28398 }
28399
28400
28401 func (c *ProjectsLocationsDataStoresServingConfigsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsListCall {
28402 c.ctx_ = ctx
28403 return c
28404 }
28405
28406
28407
28408 func (c *ProjectsLocationsDataStoresServingConfigsListCall) Header() http.Header {
28409 if c.header_ == nil {
28410 c.header_ = make(http.Header)
28411 }
28412 return c.header_
28413 }
28414
28415 func (c *ProjectsLocationsDataStoresServingConfigsListCall) doRequest(alt string) (*http.Response, error) {
28416 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28417 if c.ifNoneMatch_ != "" {
28418 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28419 }
28420 var body io.Reader = nil
28421 c.urlParams_.Set("alt", alt)
28422 c.urlParams_.Set("prettyPrint", "false")
28423 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/servingConfigs")
28424 urls += "?" + c.urlParams_.Encode()
28425 req, err := http.NewRequest("GET", urls, body)
28426 if err != nil {
28427 return nil, err
28428 }
28429 req.Header = reqHeaders
28430 googleapi.Expand(req.URL, map[string]string{
28431 "parent": c.parent,
28432 })
28433 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28434 }
28435
28436
28437
28438
28439
28440
28441
28442 func (c *ProjectsLocationsDataStoresServingConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListServingConfigsResponse, error) {
28443 gensupport.SetOptions(c.urlParams_, opts...)
28444 res, err := c.doRequest("json")
28445 if res != nil && res.StatusCode == http.StatusNotModified {
28446 if res.Body != nil {
28447 res.Body.Close()
28448 }
28449 return nil, gensupport.WrapError(&googleapi.Error{
28450 Code: res.StatusCode,
28451 Header: res.Header,
28452 })
28453 }
28454 if err != nil {
28455 return nil, err
28456 }
28457 defer googleapi.CloseBody(res)
28458 if err := googleapi.CheckResponse(res); err != nil {
28459 return nil, gensupport.WrapError(err)
28460 }
28461 ret := &GoogleCloudDiscoveryengineV1betaListServingConfigsResponse{
28462 ServerResponse: googleapi.ServerResponse{
28463 Header: res.Header,
28464 HTTPStatusCode: res.StatusCode,
28465 },
28466 }
28467 target := &ret
28468 if err := gensupport.DecodeResponse(target, res); err != nil {
28469 return nil, err
28470 }
28471 return ret, nil
28472 }
28473
28474
28475
28476
28477 func (c *ProjectsLocationsDataStoresServingConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListServingConfigsResponse) error) error {
28478 c.ctx_ = ctx
28479 defer c.PageToken(c.urlParams_.Get("pageToken"))
28480 for {
28481 x, err := c.Do()
28482 if err != nil {
28483 return err
28484 }
28485 if err := f(x); err != nil {
28486 return err
28487 }
28488 if x.NextPageToken == "" {
28489 return nil
28490 }
28491 c.PageToken(x.NextPageToken)
28492 }
28493 }
28494
28495 type ProjectsLocationsDataStoresServingConfigsPatchCall struct {
28496 s *Service
28497 name string
28498 googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig
28499 urlParams_ gensupport.URLParams
28500 ctx_ context.Context
28501 header_ http.Header
28502 }
28503
28504
28505
28506
28507
28508
28509
28510 func (r *ProjectsLocationsDataStoresServingConfigsService) Patch(name string, googleclouddiscoveryenginev1betaservingconfig *GoogleCloudDiscoveryengineV1betaServingConfig) *ProjectsLocationsDataStoresServingConfigsPatchCall {
28511 c := &ProjectsLocationsDataStoresServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28512 c.name = name
28513 c.googleclouddiscoveryenginev1betaservingconfig = googleclouddiscoveryenginev1betaservingconfig
28514 return c
28515 }
28516
28517
28518
28519
28520 func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresServingConfigsPatchCall {
28521 c.urlParams_.Set("updateMask", updateMask)
28522 return c
28523 }
28524
28525
28526
28527
28528 func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsPatchCall {
28529 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28530 return c
28531 }
28532
28533
28534 func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsPatchCall {
28535 c.ctx_ = ctx
28536 return c
28537 }
28538
28539
28540
28541 func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Header() http.Header {
28542 if c.header_ == nil {
28543 c.header_ = make(http.Header)
28544 }
28545 return c.header_
28546 }
28547
28548 func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
28549 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28550 var body io.Reader = nil
28551 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaservingconfig)
28552 if err != nil {
28553 return nil, err
28554 }
28555 c.urlParams_.Set("alt", alt)
28556 c.urlParams_.Set("prettyPrint", "false")
28557 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
28558 urls += "?" + c.urlParams_.Encode()
28559 req, err := http.NewRequest("PATCH", urls, body)
28560 if err != nil {
28561 return nil, err
28562 }
28563 req.Header = reqHeaders
28564 googleapi.Expand(req.URL, map[string]string{
28565 "name": c.name,
28566 })
28567 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28568 }
28569
28570
28571
28572
28573
28574
28575
28576 func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaServingConfig, error) {
28577 gensupport.SetOptions(c.urlParams_, opts...)
28578 res, err := c.doRequest("json")
28579 if res != nil && res.StatusCode == http.StatusNotModified {
28580 if res.Body != nil {
28581 res.Body.Close()
28582 }
28583 return nil, gensupport.WrapError(&googleapi.Error{
28584 Code: res.StatusCode,
28585 Header: res.Header,
28586 })
28587 }
28588 if err != nil {
28589 return nil, err
28590 }
28591 defer googleapi.CloseBody(res)
28592 if err := googleapi.CheckResponse(res); err != nil {
28593 return nil, gensupport.WrapError(err)
28594 }
28595 ret := &GoogleCloudDiscoveryengineV1betaServingConfig{
28596 ServerResponse: googleapi.ServerResponse{
28597 Header: res.Header,
28598 HTTPStatusCode: res.StatusCode,
28599 },
28600 }
28601 target := &ret
28602 if err := gensupport.DecodeResponse(target, res); err != nil {
28603 return nil, err
28604 }
28605 return ret, nil
28606 }
28607
28608 type ProjectsLocationsDataStoresServingConfigsRecommendCall struct {
28609 s *Service
28610 servingConfig string
28611 googleclouddiscoveryenginev1betarecommendrequest *GoogleCloudDiscoveryengineV1betaRecommendRequest
28612 urlParams_ gensupport.URLParams
28613 ctx_ context.Context
28614 header_ http.Header
28615 }
28616
28617
28618
28619
28620
28621
28622
28623
28624
28625
28626
28627
28628 func (r *ProjectsLocationsDataStoresServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1betarecommendrequest *GoogleCloudDiscoveryengineV1betaRecommendRequest) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
28629 c := &ProjectsLocationsDataStoresServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28630 c.servingConfig = servingConfig
28631 c.googleclouddiscoveryenginev1betarecommendrequest = googleclouddiscoveryenginev1betarecommendrequest
28632 return c
28633 }
28634
28635
28636
28637
28638 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
28639 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28640 return c
28641 }
28642
28643
28644 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
28645 c.ctx_ = ctx
28646 return c
28647 }
28648
28649
28650
28651 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Header() http.Header {
28652 if c.header_ == nil {
28653 c.header_ = make(http.Header)
28654 }
28655 return c.header_
28656 }
28657
28658 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
28659 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28660 var body io.Reader = nil
28661 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betarecommendrequest)
28662 if err != nil {
28663 return nil, err
28664 }
28665 c.urlParams_.Set("alt", alt)
28666 c.urlParams_.Set("prettyPrint", "false")
28667 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:recommend")
28668 urls += "?" + c.urlParams_.Encode()
28669 req, err := http.NewRequest("POST", urls, body)
28670 if err != nil {
28671 return nil, err
28672 }
28673 req.Header = reqHeaders
28674 googleapi.Expand(req.URL, map[string]string{
28675 "servingConfig": c.servingConfig,
28676 })
28677 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28678 }
28679
28680
28681
28682
28683
28684
28685
28686 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaRecommendResponse, error) {
28687 gensupport.SetOptions(c.urlParams_, opts...)
28688 res, err := c.doRequest("json")
28689 if res != nil && res.StatusCode == http.StatusNotModified {
28690 if res.Body != nil {
28691 res.Body.Close()
28692 }
28693 return nil, gensupport.WrapError(&googleapi.Error{
28694 Code: res.StatusCode,
28695 Header: res.Header,
28696 })
28697 }
28698 if err != nil {
28699 return nil, err
28700 }
28701 defer googleapi.CloseBody(res)
28702 if err := googleapi.CheckResponse(res); err != nil {
28703 return nil, gensupport.WrapError(err)
28704 }
28705 ret := &GoogleCloudDiscoveryengineV1betaRecommendResponse{
28706 ServerResponse: googleapi.ServerResponse{
28707 Header: res.Header,
28708 HTTPStatusCode: res.StatusCode,
28709 },
28710 }
28711 target := &ret
28712 if err := gensupport.DecodeResponse(target, res); err != nil {
28713 return nil, err
28714 }
28715 return ret, nil
28716 }
28717
28718 type ProjectsLocationsDataStoresServingConfigsSearchCall struct {
28719 s *Service
28720 servingConfig string
28721 googleclouddiscoveryenginev1betasearchrequest *GoogleCloudDiscoveryengineV1betaSearchRequest
28722 urlParams_ gensupport.URLParams
28723 ctx_ context.Context
28724 header_ http.Header
28725 }
28726
28727
28728
28729
28730
28731
28732
28733
28734
28735
28736 func (r *ProjectsLocationsDataStoresServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1betasearchrequest *GoogleCloudDiscoveryengineV1betaSearchRequest) *ProjectsLocationsDataStoresServingConfigsSearchCall {
28737 c := &ProjectsLocationsDataStoresServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28738 c.servingConfig = servingConfig
28739 c.googleclouddiscoveryenginev1betasearchrequest = googleclouddiscoveryenginev1betasearchrequest
28740 return c
28741 }
28742
28743
28744
28745
28746 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsSearchCall {
28747 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28748 return c
28749 }
28750
28751
28752 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsSearchCall {
28753 c.ctx_ = ctx
28754 return c
28755 }
28756
28757
28758
28759 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Header() http.Header {
28760 if c.header_ == nil {
28761 c.header_ = make(http.Header)
28762 }
28763 return c.header_
28764 }
28765
28766 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
28767 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28768 var body io.Reader = nil
28769 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasearchrequest)
28770 if err != nil {
28771 return nil, err
28772 }
28773 c.urlParams_.Set("alt", alt)
28774 c.urlParams_.Set("prettyPrint", "false")
28775 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+servingConfig}:search")
28776 urls += "?" + c.urlParams_.Encode()
28777 req, err := http.NewRequest("POST", urls, body)
28778 if err != nil {
28779 return nil, err
28780 }
28781 req.Header = reqHeaders
28782 googleapi.Expand(req.URL, map[string]string{
28783 "servingConfig": c.servingConfig,
28784 })
28785 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28786 }
28787
28788
28789
28790
28791
28792
28793
28794 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSearchResponse, error) {
28795 gensupport.SetOptions(c.urlParams_, opts...)
28796 res, err := c.doRequest("json")
28797 if res != nil && res.StatusCode == http.StatusNotModified {
28798 if res.Body != nil {
28799 res.Body.Close()
28800 }
28801 return nil, gensupport.WrapError(&googleapi.Error{
28802 Code: res.StatusCode,
28803 Header: res.Header,
28804 })
28805 }
28806 if err != nil {
28807 return nil, err
28808 }
28809 defer googleapi.CloseBody(res)
28810 if err := googleapi.CheckResponse(res); err != nil {
28811 return nil, gensupport.WrapError(err)
28812 }
28813 ret := &GoogleCloudDiscoveryengineV1betaSearchResponse{
28814 ServerResponse: googleapi.ServerResponse{
28815 Header: res.Header,
28816 HTTPStatusCode: res.StatusCode,
28817 },
28818 }
28819 target := &ret
28820 if err := gensupport.DecodeResponse(target, res); err != nil {
28821 return nil, err
28822 }
28823 return ret, nil
28824 }
28825
28826
28827
28828
28829 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaSearchResponse) error) error {
28830 c.ctx_ = ctx
28831 defer func(pt string) { c.googleclouddiscoveryenginev1betasearchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1betasearchrequest.PageToken)
28832 for {
28833 x, err := c.Do()
28834 if err != nil {
28835 return err
28836 }
28837 if err := f(x); err != nil {
28838 return err
28839 }
28840 if x.NextPageToken == "" {
28841 return nil
28842 }
28843 c.googleclouddiscoveryenginev1betasearchrequest.PageToken = x.NextPageToken
28844 }
28845 }
28846
28847 type ProjectsLocationsDataStoresSessionsCreateCall struct {
28848 s *Service
28849 parent string
28850 googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession
28851 urlParams_ gensupport.URLParams
28852 ctx_ context.Context
28853 header_ http.Header
28854 }
28855
28856
28857
28858
28859
28860
28861
28862 func (r *ProjectsLocationsDataStoresSessionsService) Create(parent string, googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession) *ProjectsLocationsDataStoresSessionsCreateCall {
28863 c := &ProjectsLocationsDataStoresSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28864 c.parent = parent
28865 c.googleclouddiscoveryenginev1betasession = googleclouddiscoveryenginev1betasession
28866 return c
28867 }
28868
28869
28870
28871
28872 func (c *ProjectsLocationsDataStoresSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsCreateCall {
28873 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28874 return c
28875 }
28876
28877
28878 func (c *ProjectsLocationsDataStoresSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsCreateCall {
28879 c.ctx_ = ctx
28880 return c
28881 }
28882
28883
28884
28885 func (c *ProjectsLocationsDataStoresSessionsCreateCall) Header() http.Header {
28886 if c.header_ == nil {
28887 c.header_ = make(http.Header)
28888 }
28889 return c.header_
28890 }
28891
28892 func (c *ProjectsLocationsDataStoresSessionsCreateCall) doRequest(alt string) (*http.Response, error) {
28893 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28894 var body io.Reader = nil
28895 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasession)
28896 if err != nil {
28897 return nil, err
28898 }
28899 c.urlParams_.Set("alt", alt)
28900 c.urlParams_.Set("prettyPrint", "false")
28901 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sessions")
28902 urls += "?" + c.urlParams_.Encode()
28903 req, err := http.NewRequest("POST", urls, body)
28904 if err != nil {
28905 return nil, err
28906 }
28907 req.Header = reqHeaders
28908 googleapi.Expand(req.URL, map[string]string{
28909 "parent": c.parent,
28910 })
28911 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28912 }
28913
28914
28915
28916
28917
28918
28919
28920 func (c *ProjectsLocationsDataStoresSessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
28921 gensupport.SetOptions(c.urlParams_, opts...)
28922 res, err := c.doRequest("json")
28923 if res != nil && res.StatusCode == http.StatusNotModified {
28924 if res.Body != nil {
28925 res.Body.Close()
28926 }
28927 return nil, gensupport.WrapError(&googleapi.Error{
28928 Code: res.StatusCode,
28929 Header: res.Header,
28930 })
28931 }
28932 if err != nil {
28933 return nil, err
28934 }
28935 defer googleapi.CloseBody(res)
28936 if err := googleapi.CheckResponse(res); err != nil {
28937 return nil, gensupport.WrapError(err)
28938 }
28939 ret := &GoogleCloudDiscoveryengineV1betaSession{
28940 ServerResponse: googleapi.ServerResponse{
28941 Header: res.Header,
28942 HTTPStatusCode: res.StatusCode,
28943 },
28944 }
28945 target := &ret
28946 if err := gensupport.DecodeResponse(target, res); err != nil {
28947 return nil, err
28948 }
28949 return ret, nil
28950 }
28951
28952 type ProjectsLocationsDataStoresSessionsDeleteCall struct {
28953 s *Service
28954 name string
28955 urlParams_ gensupport.URLParams
28956 ctx_ context.Context
28957 header_ http.Header
28958 }
28959
28960
28961
28962
28963
28964
28965
28966 func (r *ProjectsLocationsDataStoresSessionsService) Delete(name string) *ProjectsLocationsDataStoresSessionsDeleteCall {
28967 c := &ProjectsLocationsDataStoresSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28968 c.name = name
28969 return c
28970 }
28971
28972
28973
28974
28975 func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsDeleteCall {
28976 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28977 return c
28978 }
28979
28980
28981 func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsDeleteCall {
28982 c.ctx_ = ctx
28983 return c
28984 }
28985
28986
28987
28988 func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Header() http.Header {
28989 if c.header_ == nil {
28990 c.header_ = make(http.Header)
28991 }
28992 return c.header_
28993 }
28994
28995 func (c *ProjectsLocationsDataStoresSessionsDeleteCall) doRequest(alt string) (*http.Response, error) {
28996 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28997 var body io.Reader = nil
28998 c.urlParams_.Set("alt", alt)
28999 c.urlParams_.Set("prettyPrint", "false")
29000 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
29001 urls += "?" + c.urlParams_.Encode()
29002 req, err := http.NewRequest("DELETE", urls, body)
29003 if err != nil {
29004 return nil, err
29005 }
29006 req.Header = reqHeaders
29007 googleapi.Expand(req.URL, map[string]string{
29008 "name": c.name,
29009 })
29010 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29011 }
29012
29013
29014
29015
29016
29017
29018
29019 func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29020 gensupport.SetOptions(c.urlParams_, opts...)
29021 res, err := c.doRequest("json")
29022 if res != nil && res.StatusCode == http.StatusNotModified {
29023 if res.Body != nil {
29024 res.Body.Close()
29025 }
29026 return nil, gensupport.WrapError(&googleapi.Error{
29027 Code: res.StatusCode,
29028 Header: res.Header,
29029 })
29030 }
29031 if err != nil {
29032 return nil, err
29033 }
29034 defer googleapi.CloseBody(res)
29035 if err := googleapi.CheckResponse(res); err != nil {
29036 return nil, gensupport.WrapError(err)
29037 }
29038 ret := &GoogleProtobufEmpty{
29039 ServerResponse: googleapi.ServerResponse{
29040 Header: res.Header,
29041 HTTPStatusCode: res.StatusCode,
29042 },
29043 }
29044 target := &ret
29045 if err := gensupport.DecodeResponse(target, res); err != nil {
29046 return nil, err
29047 }
29048 return ret, nil
29049 }
29050
29051 type ProjectsLocationsDataStoresSessionsGetCall struct {
29052 s *Service
29053 name string
29054 urlParams_ gensupport.URLParams
29055 ifNoneMatch_ string
29056 ctx_ context.Context
29057 header_ http.Header
29058 }
29059
29060
29061
29062
29063
29064
29065 func (r *ProjectsLocationsDataStoresSessionsService) Get(name string) *ProjectsLocationsDataStoresSessionsGetCall {
29066 c := &ProjectsLocationsDataStoresSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29067 c.name = name
29068 return c
29069 }
29070
29071
29072
29073
29074 func (c *ProjectsLocationsDataStoresSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsGetCall {
29075 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29076 return c
29077 }
29078
29079
29080
29081
29082 func (c *ProjectsLocationsDataStoresSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSessionsGetCall {
29083 c.ifNoneMatch_ = entityTag
29084 return c
29085 }
29086
29087
29088 func (c *ProjectsLocationsDataStoresSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsGetCall {
29089 c.ctx_ = ctx
29090 return c
29091 }
29092
29093
29094
29095 func (c *ProjectsLocationsDataStoresSessionsGetCall) Header() http.Header {
29096 if c.header_ == nil {
29097 c.header_ = make(http.Header)
29098 }
29099 return c.header_
29100 }
29101
29102 func (c *ProjectsLocationsDataStoresSessionsGetCall) doRequest(alt string) (*http.Response, error) {
29103 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29104 if c.ifNoneMatch_ != "" {
29105 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29106 }
29107 var body io.Reader = nil
29108 c.urlParams_.Set("alt", alt)
29109 c.urlParams_.Set("prettyPrint", "false")
29110 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
29111 urls += "?" + c.urlParams_.Encode()
29112 req, err := http.NewRequest("GET", urls, body)
29113 if err != nil {
29114 return nil, err
29115 }
29116 req.Header = reqHeaders
29117 googleapi.Expand(req.URL, map[string]string{
29118 "name": c.name,
29119 })
29120 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29121 }
29122
29123
29124
29125
29126
29127
29128
29129 func (c *ProjectsLocationsDataStoresSessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
29130 gensupport.SetOptions(c.urlParams_, opts...)
29131 res, err := c.doRequest("json")
29132 if res != nil && res.StatusCode == http.StatusNotModified {
29133 if res.Body != nil {
29134 res.Body.Close()
29135 }
29136 return nil, gensupport.WrapError(&googleapi.Error{
29137 Code: res.StatusCode,
29138 Header: res.Header,
29139 })
29140 }
29141 if err != nil {
29142 return nil, err
29143 }
29144 defer googleapi.CloseBody(res)
29145 if err := googleapi.CheckResponse(res); err != nil {
29146 return nil, gensupport.WrapError(err)
29147 }
29148 ret := &GoogleCloudDiscoveryengineV1betaSession{
29149 ServerResponse: googleapi.ServerResponse{
29150 Header: res.Header,
29151 HTTPStatusCode: res.StatusCode,
29152 },
29153 }
29154 target := &ret
29155 if err := gensupport.DecodeResponse(target, res); err != nil {
29156 return nil, err
29157 }
29158 return ret, nil
29159 }
29160
29161 type ProjectsLocationsDataStoresSessionsListCall struct {
29162 s *Service
29163 parent string
29164 urlParams_ gensupport.URLParams
29165 ifNoneMatch_ string
29166 ctx_ context.Context
29167 header_ http.Header
29168 }
29169
29170
29171
29172
29173
29174
29175 func (r *ProjectsLocationsDataStoresSessionsService) List(parent string) *ProjectsLocationsDataStoresSessionsListCall {
29176 c := &ProjectsLocationsDataStoresSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29177 c.parent = parent
29178 return c
29179 }
29180
29181
29182
29183
29184 func (c *ProjectsLocationsDataStoresSessionsListCall) Filter(filter string) *ProjectsLocationsDataStoresSessionsListCall {
29185 c.urlParams_.Set("filter", filter)
29186 return c
29187 }
29188
29189
29190
29191
29192
29193 func (c *ProjectsLocationsDataStoresSessionsListCall) OrderBy(orderBy string) *ProjectsLocationsDataStoresSessionsListCall {
29194 c.urlParams_.Set("orderBy", orderBy)
29195 return c
29196 }
29197
29198
29199
29200 func (c *ProjectsLocationsDataStoresSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSessionsListCall {
29201 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29202 return c
29203 }
29204
29205
29206
29207
29208 func (c *ProjectsLocationsDataStoresSessionsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSessionsListCall {
29209 c.urlParams_.Set("pageToken", pageToken)
29210 return c
29211 }
29212
29213
29214
29215
29216 func (c *ProjectsLocationsDataStoresSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsListCall {
29217 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29218 return c
29219 }
29220
29221
29222
29223
29224 func (c *ProjectsLocationsDataStoresSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSessionsListCall {
29225 c.ifNoneMatch_ = entityTag
29226 return c
29227 }
29228
29229
29230 func (c *ProjectsLocationsDataStoresSessionsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsListCall {
29231 c.ctx_ = ctx
29232 return c
29233 }
29234
29235
29236
29237 func (c *ProjectsLocationsDataStoresSessionsListCall) Header() http.Header {
29238 if c.header_ == nil {
29239 c.header_ = make(http.Header)
29240 }
29241 return c.header_
29242 }
29243
29244 func (c *ProjectsLocationsDataStoresSessionsListCall) doRequest(alt string) (*http.Response, error) {
29245 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29246 if c.ifNoneMatch_ != "" {
29247 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29248 }
29249 var body io.Reader = nil
29250 c.urlParams_.Set("alt", alt)
29251 c.urlParams_.Set("prettyPrint", "false")
29252 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/sessions")
29253 urls += "?" + c.urlParams_.Encode()
29254 req, err := http.NewRequest("GET", urls, body)
29255 if err != nil {
29256 return nil, err
29257 }
29258 req.Header = reqHeaders
29259 googleapi.Expand(req.URL, map[string]string{
29260 "parent": c.parent,
29261 })
29262 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29263 }
29264
29265
29266
29267
29268
29269
29270
29271 func (c *ProjectsLocationsDataStoresSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListSessionsResponse, error) {
29272 gensupport.SetOptions(c.urlParams_, opts...)
29273 res, err := c.doRequest("json")
29274 if res != nil && res.StatusCode == http.StatusNotModified {
29275 if res.Body != nil {
29276 res.Body.Close()
29277 }
29278 return nil, gensupport.WrapError(&googleapi.Error{
29279 Code: res.StatusCode,
29280 Header: res.Header,
29281 })
29282 }
29283 if err != nil {
29284 return nil, err
29285 }
29286 defer googleapi.CloseBody(res)
29287 if err := googleapi.CheckResponse(res); err != nil {
29288 return nil, gensupport.WrapError(err)
29289 }
29290 ret := &GoogleCloudDiscoveryengineV1betaListSessionsResponse{
29291 ServerResponse: googleapi.ServerResponse{
29292 Header: res.Header,
29293 HTTPStatusCode: res.StatusCode,
29294 },
29295 }
29296 target := &ret
29297 if err := gensupport.DecodeResponse(target, res); err != nil {
29298 return nil, err
29299 }
29300 return ret, nil
29301 }
29302
29303
29304
29305
29306 func (c *ProjectsLocationsDataStoresSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListSessionsResponse) error) error {
29307 c.ctx_ = ctx
29308 defer c.PageToken(c.urlParams_.Get("pageToken"))
29309 for {
29310 x, err := c.Do()
29311 if err != nil {
29312 return err
29313 }
29314 if err := f(x); err != nil {
29315 return err
29316 }
29317 if x.NextPageToken == "" {
29318 return nil
29319 }
29320 c.PageToken(x.NextPageToken)
29321 }
29322 }
29323
29324 type ProjectsLocationsDataStoresSessionsPatchCall struct {
29325 s *Service
29326 name string
29327 googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession
29328 urlParams_ gensupport.URLParams
29329 ctx_ context.Context
29330 header_ http.Header
29331 }
29332
29333
29334
29335
29336
29337
29338
29339 func (r *ProjectsLocationsDataStoresSessionsService) Patch(name string, googleclouddiscoveryenginev1betasession *GoogleCloudDiscoveryengineV1betaSession) *ProjectsLocationsDataStoresSessionsPatchCall {
29340 c := &ProjectsLocationsDataStoresSessionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29341 c.name = name
29342 c.googleclouddiscoveryenginev1betasession = googleclouddiscoveryenginev1betasession
29343 return c
29344 }
29345
29346
29347
29348
29349 func (c *ProjectsLocationsDataStoresSessionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresSessionsPatchCall {
29350 c.urlParams_.Set("updateMask", updateMask)
29351 return c
29352 }
29353
29354
29355
29356
29357 func (c *ProjectsLocationsDataStoresSessionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsPatchCall {
29358 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29359 return c
29360 }
29361
29362
29363 func (c *ProjectsLocationsDataStoresSessionsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsPatchCall {
29364 c.ctx_ = ctx
29365 return c
29366 }
29367
29368
29369
29370 func (c *ProjectsLocationsDataStoresSessionsPatchCall) Header() http.Header {
29371 if c.header_ == nil {
29372 c.header_ = make(http.Header)
29373 }
29374 return c.header_
29375 }
29376
29377 func (c *ProjectsLocationsDataStoresSessionsPatchCall) doRequest(alt string) (*http.Response, error) {
29378 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29379 var body io.Reader = nil
29380 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betasession)
29381 if err != nil {
29382 return nil, err
29383 }
29384 c.urlParams_.Set("alt", alt)
29385 c.urlParams_.Set("prettyPrint", "false")
29386 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
29387 urls += "?" + c.urlParams_.Encode()
29388 req, err := http.NewRequest("PATCH", urls, body)
29389 if err != nil {
29390 return nil, err
29391 }
29392 req.Header = reqHeaders
29393 googleapi.Expand(req.URL, map[string]string{
29394 "name": c.name,
29395 })
29396 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29397 }
29398
29399
29400
29401
29402
29403
29404
29405 func (c *ProjectsLocationsDataStoresSessionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaSession, error) {
29406 gensupport.SetOptions(c.urlParams_, opts...)
29407 res, err := c.doRequest("json")
29408 if res != nil && res.StatusCode == http.StatusNotModified {
29409 if res.Body != nil {
29410 res.Body.Close()
29411 }
29412 return nil, gensupport.WrapError(&googleapi.Error{
29413 Code: res.StatusCode,
29414 Header: res.Header,
29415 })
29416 }
29417 if err != nil {
29418 return nil, err
29419 }
29420 defer googleapi.CloseBody(res)
29421 if err := googleapi.CheckResponse(res); err != nil {
29422 return nil, gensupport.WrapError(err)
29423 }
29424 ret := &GoogleCloudDiscoveryengineV1betaSession{
29425 ServerResponse: googleapi.ServerResponse{
29426 Header: res.Header,
29427 HTTPStatusCode: res.StatusCode,
29428 },
29429 }
29430 target := &ret
29431 if err := gensupport.DecodeResponse(target, res); err != nil {
29432 return nil, err
29433 }
29434 return ret, nil
29435 }
29436
29437 type ProjectsLocationsDataStoresSessionsAnswersGetCall struct {
29438 s *Service
29439 name string
29440 urlParams_ gensupport.URLParams
29441 ifNoneMatch_ string
29442 ctx_ context.Context
29443 header_ http.Header
29444 }
29445
29446
29447
29448
29449
29450
29451 func (r *ProjectsLocationsDataStoresSessionsAnswersService) Get(name string) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
29452 c := &ProjectsLocationsDataStoresSessionsAnswersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29453 c.name = name
29454 return c
29455 }
29456
29457
29458
29459
29460 func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
29461 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29462 return c
29463 }
29464
29465
29466
29467
29468 func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
29469 c.ifNoneMatch_ = entityTag
29470 return c
29471 }
29472
29473
29474 func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
29475 c.ctx_ = ctx
29476 return c
29477 }
29478
29479
29480
29481 func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Header() http.Header {
29482 if c.header_ == nil {
29483 c.header_ = make(http.Header)
29484 }
29485 return c.header_
29486 }
29487
29488 func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) doRequest(alt string) (*http.Response, error) {
29489 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29490 if c.ifNoneMatch_ != "" {
29491 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29492 }
29493 var body io.Reader = nil
29494 c.urlParams_.Set("alt", alt)
29495 c.urlParams_.Set("prettyPrint", "false")
29496 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
29497 urls += "?" + c.urlParams_.Encode()
29498 req, err := http.NewRequest("GET", urls, body)
29499 if err != nil {
29500 return nil, err
29501 }
29502 req.Header = reqHeaders
29503 googleapi.Expand(req.URL, map[string]string{
29504 "name": c.name,
29505 })
29506 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29507 }
29508
29509
29510
29511
29512
29513
29514
29515 func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaAnswer, error) {
29516 gensupport.SetOptions(c.urlParams_, opts...)
29517 res, err := c.doRequest("json")
29518 if res != nil && res.StatusCode == http.StatusNotModified {
29519 if res.Body != nil {
29520 res.Body.Close()
29521 }
29522 return nil, gensupport.WrapError(&googleapi.Error{
29523 Code: res.StatusCode,
29524 Header: res.Header,
29525 })
29526 }
29527 if err != nil {
29528 return nil, err
29529 }
29530 defer googleapi.CloseBody(res)
29531 if err := googleapi.CheckResponse(res); err != nil {
29532 return nil, gensupport.WrapError(err)
29533 }
29534 ret := &GoogleCloudDiscoveryengineV1betaAnswer{
29535 ServerResponse: googleapi.ServerResponse{
29536 Header: res.Header,
29537 HTTPStatusCode: res.StatusCode,
29538 },
29539 }
29540 target := &ret
29541 if err := gensupport.DecodeResponse(target, res); err != nil {
29542 return nil, err
29543 }
29544 return ret, nil
29545 }
29546
29547 type ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall struct {
29548 s *Service
29549 siteSearchEngine string
29550 googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchRequest
29551 urlParams_ gensupport.URLParams
29552 ctx_ context.Context
29553 header_ http.Header
29554 }
29555
29556
29557
29558
29559
29560
29561
29562 func (r *ProjectsLocationsDataStoresSiteSearchEngineService) DisableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchRequest) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
29563 c := &ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29564 c.siteSearchEngine = siteSearchEngine
29565 c.googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest = googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest
29566 return c
29567 }
29568
29569
29570
29571
29572 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
29573 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29574 return c
29575 }
29576
29577
29578 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
29579 c.ctx_ = ctx
29580 return c
29581 }
29582
29583
29584
29585 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Header() http.Header {
29586 if c.header_ == nil {
29587 c.header_ = make(http.Header)
29588 }
29589 return c.header_
29590 }
29591
29592 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
29593 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29594 var body io.Reader = nil
29595 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betadisableadvancedsitesearchrequest)
29596 if err != nil {
29597 return nil, err
29598 }
29599 c.urlParams_.Set("alt", alt)
29600 c.urlParams_.Set("prettyPrint", "false")
29601 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:disableAdvancedSiteSearch")
29602 urls += "?" + c.urlParams_.Encode()
29603 req, err := http.NewRequest("POST", urls, body)
29604 if err != nil {
29605 return nil, err
29606 }
29607 req.Header = reqHeaders
29608 googleapi.Expand(req.URL, map[string]string{
29609 "siteSearchEngine": c.siteSearchEngine,
29610 })
29611 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29612 }
29613
29614
29615
29616
29617
29618
29619
29620 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29621 gensupport.SetOptions(c.urlParams_, opts...)
29622 res, err := c.doRequest("json")
29623 if res != nil && res.StatusCode == http.StatusNotModified {
29624 if res.Body != nil {
29625 res.Body.Close()
29626 }
29627 return nil, gensupport.WrapError(&googleapi.Error{
29628 Code: res.StatusCode,
29629 Header: res.Header,
29630 })
29631 }
29632 if err != nil {
29633 return nil, err
29634 }
29635 defer googleapi.CloseBody(res)
29636 if err := googleapi.CheckResponse(res); err != nil {
29637 return nil, gensupport.WrapError(err)
29638 }
29639 ret := &GoogleLongrunningOperation{
29640 ServerResponse: googleapi.ServerResponse{
29641 Header: res.Header,
29642 HTTPStatusCode: res.StatusCode,
29643 },
29644 }
29645 target := &ret
29646 if err := gensupport.DecodeResponse(target, res); err != nil {
29647 return nil, err
29648 }
29649 return ret, nil
29650 }
29651
29652 type ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall struct {
29653 s *Service
29654 siteSearchEngine string
29655 googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchRequest
29656 urlParams_ gensupport.URLParams
29657 ctx_ context.Context
29658 header_ http.Header
29659 }
29660
29661
29662
29663
29664
29665
29666
29667 func (r *ProjectsLocationsDataStoresSiteSearchEngineService) EnableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchRequest) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
29668 c := &ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29669 c.siteSearchEngine = siteSearchEngine
29670 c.googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest = googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest
29671 return c
29672 }
29673
29674
29675
29676
29677 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
29678 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29679 return c
29680 }
29681
29682
29683 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
29684 c.ctx_ = ctx
29685 return c
29686 }
29687
29688
29689
29690 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Header() http.Header {
29691 if c.header_ == nil {
29692 c.header_ = make(http.Header)
29693 }
29694 return c.header_
29695 }
29696
29697 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
29698 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29699 var body io.Reader = nil
29700 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaenableadvancedsitesearchrequest)
29701 if err != nil {
29702 return nil, err
29703 }
29704 c.urlParams_.Set("alt", alt)
29705 c.urlParams_.Set("prettyPrint", "false")
29706 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:enableAdvancedSiteSearch")
29707 urls += "?" + c.urlParams_.Encode()
29708 req, err := http.NewRequest("POST", urls, body)
29709 if err != nil {
29710 return nil, err
29711 }
29712 req.Header = reqHeaders
29713 googleapi.Expand(req.URL, map[string]string{
29714 "siteSearchEngine": c.siteSearchEngine,
29715 })
29716 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29717 }
29718
29719
29720
29721
29722
29723
29724
29725 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29726 gensupport.SetOptions(c.urlParams_, opts...)
29727 res, err := c.doRequest("json")
29728 if res != nil && res.StatusCode == http.StatusNotModified {
29729 if res.Body != nil {
29730 res.Body.Close()
29731 }
29732 return nil, gensupport.WrapError(&googleapi.Error{
29733 Code: res.StatusCode,
29734 Header: res.Header,
29735 })
29736 }
29737 if err != nil {
29738 return nil, err
29739 }
29740 defer googleapi.CloseBody(res)
29741 if err := googleapi.CheckResponse(res); err != nil {
29742 return nil, gensupport.WrapError(err)
29743 }
29744 ret := &GoogleLongrunningOperation{
29745 ServerResponse: googleapi.ServerResponse{
29746 Header: res.Header,
29747 HTTPStatusCode: res.StatusCode,
29748 },
29749 }
29750 target := &ret
29751 if err := gensupport.DecodeResponse(target, res); err != nil {
29752 return nil, err
29753 }
29754 return ret, nil
29755 }
29756
29757 type ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall struct {
29758 s *Service
29759 siteSearchEngine string
29760 googleclouddiscoveryenginev1betarecrawlurisrequest *GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest
29761 urlParams_ gensupport.URLParams
29762 ctx_ context.Context
29763 header_ http.Header
29764 }
29765
29766
29767
29768
29769
29770 func (r *ProjectsLocationsDataStoresSiteSearchEngineService) RecrawlUris(siteSearchEngine string, googleclouddiscoveryenginev1betarecrawlurisrequest *GoogleCloudDiscoveryengineV1betaRecrawlUrisRequest) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
29771 c := &ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29772 c.siteSearchEngine = siteSearchEngine
29773 c.googleclouddiscoveryenginev1betarecrawlurisrequest = googleclouddiscoveryenginev1betarecrawlurisrequest
29774 return c
29775 }
29776
29777
29778
29779
29780 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
29781 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29782 return c
29783 }
29784
29785
29786 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
29787 c.ctx_ = ctx
29788 return c
29789 }
29790
29791
29792
29793 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Header() http.Header {
29794 if c.header_ == nil {
29795 c.header_ = make(http.Header)
29796 }
29797 return c.header_
29798 }
29799
29800 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(alt string) (*http.Response, error) {
29801 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29802 var body io.Reader = nil
29803 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betarecrawlurisrequest)
29804 if err != nil {
29805 return nil, err
29806 }
29807 c.urlParams_.Set("alt", alt)
29808 c.urlParams_.Set("prettyPrint", "false")
29809 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+siteSearchEngine}:recrawlUris")
29810 urls += "?" + c.urlParams_.Encode()
29811 req, err := http.NewRequest("POST", urls, body)
29812 if err != nil {
29813 return nil, err
29814 }
29815 req.Header = reqHeaders
29816 googleapi.Expand(req.URL, map[string]string{
29817 "siteSearchEngine": c.siteSearchEngine,
29818 })
29819 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29820 }
29821
29822
29823
29824
29825
29826
29827
29828 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29829 gensupport.SetOptions(c.urlParams_, opts...)
29830 res, err := c.doRequest("json")
29831 if res != nil && res.StatusCode == http.StatusNotModified {
29832 if res.Body != nil {
29833 res.Body.Close()
29834 }
29835 return nil, gensupport.WrapError(&googleapi.Error{
29836 Code: res.StatusCode,
29837 Header: res.Header,
29838 })
29839 }
29840 if err != nil {
29841 return nil, err
29842 }
29843 defer googleapi.CloseBody(res)
29844 if err := googleapi.CheckResponse(res); err != nil {
29845 return nil, gensupport.WrapError(err)
29846 }
29847 ret := &GoogleLongrunningOperation{
29848 ServerResponse: googleapi.ServerResponse{
29849 Header: res.Header,
29850 HTTPStatusCode: res.StatusCode,
29851 },
29852 }
29853 target := &ret
29854 if err := gensupport.DecodeResponse(target, res); err != nil {
29855 return nil, err
29856 }
29857 return ret, nil
29858 }
29859
29860 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct {
29861 s *Service
29862 parent string
29863 googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest
29864 urlParams_ gensupport.URLParams
29865 ctx_ context.Context
29866 header_ http.Header
29867 }
29868
29869
29870
29871
29872
29873
29874
29875 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesRequest) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
29876 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29877 c.parent = parent
29878 c.googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest = googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest
29879 return c
29880 }
29881
29882
29883
29884
29885 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
29886 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29887 return c
29888 }
29889
29890
29891 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
29892 c.ctx_ = ctx
29893 return c
29894 }
29895
29896
29897
29898 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header {
29899 if c.header_ == nil {
29900 c.header_ = make(http.Header)
29901 }
29902 return c.header_
29903 }
29904
29905 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
29906 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29907 var body io.Reader = nil
29908 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betabatchcreatetargetsitesrequest)
29909 if err != nil {
29910 return nil, err
29911 }
29912 c.urlParams_.Set("alt", alt)
29913 c.urlParams_.Set("prettyPrint", "false")
29914 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites:batchCreate")
29915 urls += "?" + c.urlParams_.Encode()
29916 req, err := http.NewRequest("POST", urls, body)
29917 if err != nil {
29918 return nil, err
29919 }
29920 req.Header = reqHeaders
29921 googleapi.Expand(req.URL, map[string]string{
29922 "parent": c.parent,
29923 })
29924 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29925 }
29926
29927
29928
29929
29930
29931
29932
29933 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29934 gensupport.SetOptions(c.urlParams_, opts...)
29935 res, err := c.doRequest("json")
29936 if res != nil && res.StatusCode == http.StatusNotModified {
29937 if res.Body != nil {
29938 res.Body.Close()
29939 }
29940 return nil, gensupport.WrapError(&googleapi.Error{
29941 Code: res.StatusCode,
29942 Header: res.Header,
29943 })
29944 }
29945 if err != nil {
29946 return nil, err
29947 }
29948 defer googleapi.CloseBody(res)
29949 if err := googleapi.CheckResponse(res); err != nil {
29950 return nil, gensupport.WrapError(err)
29951 }
29952 ret := &GoogleLongrunningOperation{
29953 ServerResponse: googleapi.ServerResponse{
29954 Header: res.Header,
29955 HTTPStatusCode: res.StatusCode,
29956 },
29957 }
29958 target := &ret
29959 if err := gensupport.DecodeResponse(target, res); err != nil {
29960 return nil, err
29961 }
29962 return ret, nil
29963 }
29964
29965 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall struct {
29966 s *Service
29967 parent string
29968 googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite
29969 urlParams_ gensupport.URLParams
29970 ctx_ context.Context
29971 header_ http.Header
29972 }
29973
29974
29975
29976
29977
29978
29979 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
29980 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29981 c.parent = parent
29982 c.googleclouddiscoveryenginev1betatargetsite = googleclouddiscoveryenginev1betatargetsite
29983 return c
29984 }
29985
29986
29987
29988
29989 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
29990 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29991 return c
29992 }
29993
29994
29995 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
29996 c.ctx_ = ctx
29997 return c
29998 }
29999
30000
30001
30002 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header {
30003 if c.header_ == nil {
30004 c.header_ = make(http.Header)
30005 }
30006 return c.header_
30007 }
30008
30009 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) {
30010 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30011 var body io.Reader = nil
30012 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatargetsite)
30013 if err != nil {
30014 return nil, err
30015 }
30016 c.urlParams_.Set("alt", alt)
30017 c.urlParams_.Set("prettyPrint", "false")
30018 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites")
30019 urls += "?" + c.urlParams_.Encode()
30020 req, err := http.NewRequest("POST", urls, body)
30021 if err != nil {
30022 return nil, err
30023 }
30024 req.Header = reqHeaders
30025 googleapi.Expand(req.URL, map[string]string{
30026 "parent": c.parent,
30027 })
30028 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30029 }
30030
30031
30032
30033
30034
30035
30036
30037 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30038 gensupport.SetOptions(c.urlParams_, opts...)
30039 res, err := c.doRequest("json")
30040 if res != nil && res.StatusCode == http.StatusNotModified {
30041 if res.Body != nil {
30042 res.Body.Close()
30043 }
30044 return nil, gensupport.WrapError(&googleapi.Error{
30045 Code: res.StatusCode,
30046 Header: res.Header,
30047 })
30048 }
30049 if err != nil {
30050 return nil, err
30051 }
30052 defer googleapi.CloseBody(res)
30053 if err := googleapi.CheckResponse(res); err != nil {
30054 return nil, gensupport.WrapError(err)
30055 }
30056 ret := &GoogleLongrunningOperation{
30057 ServerResponse: googleapi.ServerResponse{
30058 Header: res.Header,
30059 HTTPStatusCode: res.StatusCode,
30060 },
30061 }
30062 target := &ret
30063 if err := gensupport.DecodeResponse(target, res); err != nil {
30064 return nil, err
30065 }
30066 return ret, nil
30067 }
30068
30069 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall struct {
30070 s *Service
30071 name string
30072 urlParams_ gensupport.URLParams
30073 ctx_ context.Context
30074 header_ http.Header
30075 }
30076
30077
30078
30079
30080
30081
30082
30083
30084
30085 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Delete(name string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
30086 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30087 c.name = name
30088 return c
30089 }
30090
30091
30092
30093
30094 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
30095 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30096 return c
30097 }
30098
30099
30100 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
30101 c.ctx_ = ctx
30102 return c
30103 }
30104
30105
30106
30107 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Header() http.Header {
30108 if c.header_ == nil {
30109 c.header_ = make(http.Header)
30110 }
30111 return c.header_
30112 }
30113
30114 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) doRequest(alt string) (*http.Response, error) {
30115 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30116 var body io.Reader = nil
30117 c.urlParams_.Set("alt", alt)
30118 c.urlParams_.Set("prettyPrint", "false")
30119 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
30120 urls += "?" + c.urlParams_.Encode()
30121 req, err := http.NewRequest("DELETE", urls, body)
30122 if err != nil {
30123 return nil, err
30124 }
30125 req.Header = reqHeaders
30126 googleapi.Expand(req.URL, map[string]string{
30127 "name": c.name,
30128 })
30129 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30130 }
30131
30132
30133
30134
30135
30136
30137
30138 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30139 gensupport.SetOptions(c.urlParams_, opts...)
30140 res, err := c.doRequest("json")
30141 if res != nil && res.StatusCode == http.StatusNotModified {
30142 if res.Body != nil {
30143 res.Body.Close()
30144 }
30145 return nil, gensupport.WrapError(&googleapi.Error{
30146 Code: res.StatusCode,
30147 Header: res.Header,
30148 })
30149 }
30150 if err != nil {
30151 return nil, err
30152 }
30153 defer googleapi.CloseBody(res)
30154 if err := googleapi.CheckResponse(res); err != nil {
30155 return nil, gensupport.WrapError(err)
30156 }
30157 ret := &GoogleLongrunningOperation{
30158 ServerResponse: googleapi.ServerResponse{
30159 Header: res.Header,
30160 HTTPStatusCode: res.StatusCode,
30161 },
30162 }
30163 target := &ret
30164 if err := gensupport.DecodeResponse(target, res); err != nil {
30165 return nil, err
30166 }
30167 return ret, nil
30168 }
30169
30170 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall struct {
30171 s *Service
30172 name string
30173 urlParams_ gensupport.URLParams
30174 ifNoneMatch_ string
30175 ctx_ context.Context
30176 header_ http.Header
30177 }
30178
30179
30180
30181
30182
30183
30184
30185
30186
30187 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Get(name string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
30188 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30189 c.name = name
30190 return c
30191 }
30192
30193
30194
30195
30196 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
30197 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30198 return c
30199 }
30200
30201
30202
30203
30204 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
30205 c.ifNoneMatch_ = entityTag
30206 return c
30207 }
30208
30209
30210 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
30211 c.ctx_ = ctx
30212 return c
30213 }
30214
30215
30216
30217 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Header() http.Header {
30218 if c.header_ == nil {
30219 c.header_ = make(http.Header)
30220 }
30221 return c.header_
30222 }
30223
30224 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) doRequest(alt string) (*http.Response, error) {
30225 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30226 if c.ifNoneMatch_ != "" {
30227 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30228 }
30229 var body io.Reader = nil
30230 c.urlParams_.Set("alt", alt)
30231 c.urlParams_.Set("prettyPrint", "false")
30232 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
30233 urls += "?" + c.urlParams_.Encode()
30234 req, err := http.NewRequest("GET", urls, body)
30235 if err != nil {
30236 return nil, err
30237 }
30238 req.Header = reqHeaders
30239 googleapi.Expand(req.URL, map[string]string{
30240 "name": c.name,
30241 })
30242 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30243 }
30244
30245
30246
30247
30248
30249
30250
30251 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaTargetSite, error) {
30252 gensupport.SetOptions(c.urlParams_, opts...)
30253 res, err := c.doRequest("json")
30254 if res != nil && res.StatusCode == http.StatusNotModified {
30255 if res.Body != nil {
30256 res.Body.Close()
30257 }
30258 return nil, gensupport.WrapError(&googleapi.Error{
30259 Code: res.StatusCode,
30260 Header: res.Header,
30261 })
30262 }
30263 if err != nil {
30264 return nil, err
30265 }
30266 defer googleapi.CloseBody(res)
30267 if err := googleapi.CheckResponse(res); err != nil {
30268 return nil, gensupport.WrapError(err)
30269 }
30270 ret := &GoogleCloudDiscoveryengineV1betaTargetSite{
30271 ServerResponse: googleapi.ServerResponse{
30272 Header: res.Header,
30273 HTTPStatusCode: res.StatusCode,
30274 },
30275 }
30276 target := &ret
30277 if err := gensupport.DecodeResponse(target, res); err != nil {
30278 return nil, err
30279 }
30280 return ret, nil
30281 }
30282
30283 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall struct {
30284 s *Service
30285 parent string
30286 urlParams_ gensupport.URLParams
30287 ifNoneMatch_ string
30288 ctx_ context.Context
30289 header_ http.Header
30290 }
30291
30292
30293
30294
30295
30296
30297
30298
30299 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) List(parent string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
30300 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30301 c.parent = parent
30302 return c
30303 }
30304
30305
30306
30307
30308
30309
30310 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
30311 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30312 return c
30313 }
30314
30315
30316
30317
30318
30319 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
30320 c.urlParams_.Set("pageToken", pageToken)
30321 return c
30322 }
30323
30324
30325
30326
30327 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
30328 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30329 return c
30330 }
30331
30332
30333
30334
30335 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
30336 c.ifNoneMatch_ = entityTag
30337 return c
30338 }
30339
30340
30341 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
30342 c.ctx_ = ctx
30343 return c
30344 }
30345
30346
30347
30348 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Header() http.Header {
30349 if c.header_ == nil {
30350 c.header_ = make(http.Header)
30351 }
30352 return c.header_
30353 }
30354
30355 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) doRequest(alt string) (*http.Response, error) {
30356 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30357 if c.ifNoneMatch_ != "" {
30358 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30359 }
30360 var body io.Reader = nil
30361 c.urlParams_.Set("alt", alt)
30362 c.urlParams_.Set("prettyPrint", "false")
30363 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/targetSites")
30364 urls += "?" + c.urlParams_.Encode()
30365 req, err := http.NewRequest("GET", urls, body)
30366 if err != nil {
30367 return nil, err
30368 }
30369 req.Header = reqHeaders
30370 googleapi.Expand(req.URL, map[string]string{
30371 "parent": c.parent,
30372 })
30373 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30374 }
30375
30376
30377
30378
30379
30380
30381
30382 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaListTargetSitesResponse, error) {
30383 gensupport.SetOptions(c.urlParams_, opts...)
30384 res, err := c.doRequest("json")
30385 if res != nil && res.StatusCode == http.StatusNotModified {
30386 if res.Body != nil {
30387 res.Body.Close()
30388 }
30389 return nil, gensupport.WrapError(&googleapi.Error{
30390 Code: res.StatusCode,
30391 Header: res.Header,
30392 })
30393 }
30394 if err != nil {
30395 return nil, err
30396 }
30397 defer googleapi.CloseBody(res)
30398 if err := googleapi.CheckResponse(res); err != nil {
30399 return nil, gensupport.WrapError(err)
30400 }
30401 ret := &GoogleCloudDiscoveryengineV1betaListTargetSitesResponse{
30402 ServerResponse: googleapi.ServerResponse{
30403 Header: res.Header,
30404 HTTPStatusCode: res.StatusCode,
30405 },
30406 }
30407 target := &ret
30408 if err := gensupport.DecodeResponse(target, res); err != nil {
30409 return nil, err
30410 }
30411 return ret, nil
30412 }
30413
30414
30415
30416
30417 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1betaListTargetSitesResponse) error) error {
30418 c.ctx_ = ctx
30419 defer c.PageToken(c.urlParams_.Get("pageToken"))
30420 for {
30421 x, err := c.Do()
30422 if err != nil {
30423 return err
30424 }
30425 if err := f(x); err != nil {
30426 return err
30427 }
30428 if x.NextPageToken == "" {
30429 return nil
30430 }
30431 c.PageToken(x.NextPageToken)
30432 }
30433 }
30434
30435 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall struct {
30436 s *Service
30437 name string
30438 googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite
30439 urlParams_ gensupport.URLParams
30440 ctx_ context.Context
30441 header_ http.Header
30442 }
30443
30444
30445
30446
30447
30448
30449
30450 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Patch(name string, googleclouddiscoveryenginev1betatargetsite *GoogleCloudDiscoveryengineV1betaTargetSite) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
30451 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30452 c.name = name
30453 c.googleclouddiscoveryenginev1betatargetsite = googleclouddiscoveryenginev1betatargetsite
30454 return c
30455 }
30456
30457
30458
30459
30460 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
30461 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30462 return c
30463 }
30464
30465
30466 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
30467 c.ctx_ = ctx
30468 return c
30469 }
30470
30471
30472
30473 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Header() http.Header {
30474 if c.header_ == nil {
30475 c.header_ = make(http.Header)
30476 }
30477 return c.header_
30478 }
30479
30480 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequest(alt string) (*http.Response, error) {
30481 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30482 var body io.Reader = nil
30483 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betatargetsite)
30484 if err != nil {
30485 return nil, err
30486 }
30487 c.urlParams_.Set("alt", alt)
30488 c.urlParams_.Set("prettyPrint", "false")
30489 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
30490 urls += "?" + c.urlParams_.Encode()
30491 req, err := http.NewRequest("PATCH", urls, body)
30492 if err != nil {
30493 return nil, err
30494 }
30495 req.Header = reqHeaders
30496 googleapi.Expand(req.URL, map[string]string{
30497 "name": c.name,
30498 })
30499 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30500 }
30501
30502
30503
30504
30505
30506
30507
30508 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30509 gensupport.SetOptions(c.urlParams_, opts...)
30510 res, err := c.doRequest("json")
30511 if res != nil && res.StatusCode == http.StatusNotModified {
30512 if res.Body != nil {
30513 res.Body.Close()
30514 }
30515 return nil, gensupport.WrapError(&googleapi.Error{
30516 Code: res.StatusCode,
30517 Header: res.Header,
30518 })
30519 }
30520 if err != nil {
30521 return nil, err
30522 }
30523 defer googleapi.CloseBody(res)
30524 if err := googleapi.CheckResponse(res); err != nil {
30525 return nil, gensupport.WrapError(err)
30526 }
30527 ret := &GoogleLongrunningOperation{
30528 ServerResponse: googleapi.ServerResponse{
30529 Header: res.Header,
30530 HTTPStatusCode: res.StatusCode,
30531 },
30532 }
30533 target := &ret
30534 if err := gensupport.DecodeResponse(target, res); err != nil {
30535 return nil, err
30536 }
30537 return ret, nil
30538 }
30539
30540 type ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall struct {
30541 s *Service
30542 parent string
30543 googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest
30544 urlParams_ gensupport.URLParams
30545 ctx_ context.Context
30546 header_ http.Header
30547 }
30548
30549
30550
30551
30552
30553
30554 func (r *ProjectsLocationsDataStoresSuggestionDenyListEntriesService) Import(parent string, googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesRequest) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
30555 c := &ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30556 c.parent = parent
30557 c.googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest = googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest
30558 return c
30559 }
30560
30561
30562
30563
30564 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
30565 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30566 return c
30567 }
30568
30569
30570 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
30571 c.ctx_ = ctx
30572 return c
30573 }
30574
30575
30576
30577 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Header() http.Header {
30578 if c.header_ == nil {
30579 c.header_ = make(http.Header)
30580 }
30581 return c.header_
30582 }
30583
30584 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) doRequest(alt string) (*http.Response, error) {
30585 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30586 var body io.Reader = nil
30587 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaimportsuggestiondenylistentriesrequest)
30588 if err != nil {
30589 return nil, err
30590 }
30591 c.urlParams_.Set("alt", alt)
30592 c.urlParams_.Set("prettyPrint", "false")
30593 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/suggestionDenyListEntries:import")
30594 urls += "?" + c.urlParams_.Encode()
30595 req, err := http.NewRequest("POST", urls, body)
30596 if err != nil {
30597 return nil, err
30598 }
30599 req.Header = reqHeaders
30600 googleapi.Expand(req.URL, map[string]string{
30601 "parent": c.parent,
30602 })
30603 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30604 }
30605
30606
30607
30608
30609
30610
30611
30612 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30613 gensupport.SetOptions(c.urlParams_, opts...)
30614 res, err := c.doRequest("json")
30615 if res != nil && res.StatusCode == http.StatusNotModified {
30616 if res.Body != nil {
30617 res.Body.Close()
30618 }
30619 return nil, gensupport.WrapError(&googleapi.Error{
30620 Code: res.StatusCode,
30621 Header: res.Header,
30622 })
30623 }
30624 if err != nil {
30625 return nil, err
30626 }
30627 defer googleapi.CloseBody(res)
30628 if err := googleapi.CheckResponse(res); err != nil {
30629 return nil, gensupport.WrapError(err)
30630 }
30631 ret := &GoogleLongrunningOperation{
30632 ServerResponse: googleapi.ServerResponse{
30633 Header: res.Header,
30634 HTTPStatusCode: res.StatusCode,
30635 },
30636 }
30637 target := &ret
30638 if err := gensupport.DecodeResponse(target, res); err != nil {
30639 return nil, err
30640 }
30641 return ret, nil
30642 }
30643
30644 type ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall struct {
30645 s *Service
30646 parent string
30647 googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesRequest
30648 urlParams_ gensupport.URLParams
30649 ctx_ context.Context
30650 header_ http.Header
30651 }
30652
30653
30654
30655
30656
30657
30658 func (r *ProjectsLocationsDataStoresSuggestionDenyListEntriesService) Purge(parent string, googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesRequest) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
30659 c := &ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30660 c.parent = parent
30661 c.googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest = googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest
30662 return c
30663 }
30664
30665
30666
30667
30668 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
30669 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30670 return c
30671 }
30672
30673
30674 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
30675 c.ctx_ = ctx
30676 return c
30677 }
30678
30679
30680
30681 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Header() http.Header {
30682 if c.header_ == nil {
30683 c.header_ = make(http.Header)
30684 }
30685 return c.header_
30686 }
30687
30688 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) doRequest(alt string) (*http.Response, error) {
30689 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30690 var body io.Reader = nil
30691 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betapurgesuggestiondenylistentriesrequest)
30692 if err != nil {
30693 return nil, err
30694 }
30695 c.urlParams_.Set("alt", alt)
30696 c.urlParams_.Set("prettyPrint", "false")
30697 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/suggestionDenyListEntries:purge")
30698 urls += "?" + c.urlParams_.Encode()
30699 req, err := http.NewRequest("POST", urls, body)
30700 if err != nil {
30701 return nil, err
30702 }
30703 req.Header = reqHeaders
30704 googleapi.Expand(req.URL, map[string]string{
30705 "parent": c.parent,
30706 })
30707 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30708 }
30709
30710
30711
30712
30713
30714
30715
30716 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30717 gensupport.SetOptions(c.urlParams_, opts...)
30718 res, err := c.doRequest("json")
30719 if res != nil && res.StatusCode == http.StatusNotModified {
30720 if res.Body != nil {
30721 res.Body.Close()
30722 }
30723 return nil, gensupport.WrapError(&googleapi.Error{
30724 Code: res.StatusCode,
30725 Header: res.Header,
30726 })
30727 }
30728 if err != nil {
30729 return nil, err
30730 }
30731 defer googleapi.CloseBody(res)
30732 if err := googleapi.CheckResponse(res); err != nil {
30733 return nil, gensupport.WrapError(err)
30734 }
30735 ret := &GoogleLongrunningOperation{
30736 ServerResponse: googleapi.ServerResponse{
30737 Header: res.Header,
30738 HTTPStatusCode: res.StatusCode,
30739 },
30740 }
30741 target := &ret
30742 if err := gensupport.DecodeResponse(target, res); err != nil {
30743 return nil, err
30744 }
30745 return ret, nil
30746 }
30747
30748 type ProjectsLocationsDataStoresUserEventsCollectCall struct {
30749 s *Service
30750 parent string
30751 urlParams_ gensupport.URLParams
30752 ifNoneMatch_ string
30753 ctx_ context.Context
30754 header_ http.Header
30755 }
30756
30757
30758
30759
30760
30761
30762
30763
30764
30765 func (r *ProjectsLocationsDataStoresUserEventsService) Collect(parent string) *ProjectsLocationsDataStoresUserEventsCollectCall {
30766 c := &ProjectsLocationsDataStoresUserEventsCollectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30767 c.parent = parent
30768 return c
30769 }
30770
30771
30772
30773
30774 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Ets(ets int64) *ProjectsLocationsDataStoresUserEventsCollectCall {
30775 c.urlParams_.Set("ets", fmt.Sprint(ets))
30776 return c
30777 }
30778
30779
30780
30781
30782
30783 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Uri(uri string) *ProjectsLocationsDataStoresUserEventsCollectCall {
30784 c.urlParams_.Set("uri", uri)
30785 return c
30786 }
30787
30788
30789
30790 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) UserEvent(userEvent string) *ProjectsLocationsDataStoresUserEventsCollectCall {
30791 c.urlParams_.Set("userEvent", userEvent)
30792 return c
30793 }
30794
30795
30796
30797
30798 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsCollectCall {
30799 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30800 return c
30801 }
30802
30803
30804
30805
30806 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresUserEventsCollectCall {
30807 c.ifNoneMatch_ = entityTag
30808 return c
30809 }
30810
30811
30812 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsCollectCall {
30813 c.ctx_ = ctx
30814 return c
30815 }
30816
30817
30818
30819 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Header() http.Header {
30820 if c.header_ == nil {
30821 c.header_ = make(http.Header)
30822 }
30823 return c.header_
30824 }
30825
30826 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) {
30827 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30828 if c.ifNoneMatch_ != "" {
30829 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30830 }
30831 var body io.Reader = nil
30832 c.urlParams_.Set("alt", alt)
30833 c.urlParams_.Set("prettyPrint", "false")
30834 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:collect")
30835 urls += "?" + c.urlParams_.Encode()
30836 req, err := http.NewRequest("GET", urls, body)
30837 if err != nil {
30838 return nil, err
30839 }
30840 req.Header = reqHeaders
30841 googleapi.Expand(req.URL, map[string]string{
30842 "parent": c.parent,
30843 })
30844 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30845 }
30846
30847
30848
30849
30850
30851
30852
30853 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
30854 gensupport.SetOptions(c.urlParams_, opts...)
30855 res, err := c.doRequest("json")
30856 if res != nil && res.StatusCode == http.StatusNotModified {
30857 if res.Body != nil {
30858 res.Body.Close()
30859 }
30860 return nil, gensupport.WrapError(&googleapi.Error{
30861 Code: res.StatusCode,
30862 Header: res.Header,
30863 })
30864 }
30865 if err != nil {
30866 return nil, err
30867 }
30868 defer googleapi.CloseBody(res)
30869 if err := googleapi.CheckResponse(res); err != nil {
30870 return nil, gensupport.WrapError(err)
30871 }
30872 ret := &GoogleApiHttpBody{
30873 ServerResponse: googleapi.ServerResponse{
30874 Header: res.Header,
30875 HTTPStatusCode: res.StatusCode,
30876 },
30877 }
30878 target := &ret
30879 if err := gensupport.DecodeResponse(target, res); err != nil {
30880 return nil, err
30881 }
30882 return ret, nil
30883 }
30884
30885 type ProjectsLocationsDataStoresUserEventsImportCall struct {
30886 s *Service
30887 parent string
30888 googleclouddiscoveryenginev1betaimportusereventsrequest *GoogleCloudDiscoveryengineV1betaImportUserEventsRequest
30889 urlParams_ gensupport.URLParams
30890 ctx_ context.Context
30891 header_ http.Header
30892 }
30893
30894
30895
30896
30897
30898
30899
30900
30901
30902
30903 func (r *ProjectsLocationsDataStoresUserEventsService) Import(parent string, googleclouddiscoveryenginev1betaimportusereventsrequest *GoogleCloudDiscoveryengineV1betaImportUserEventsRequest) *ProjectsLocationsDataStoresUserEventsImportCall {
30904 c := &ProjectsLocationsDataStoresUserEventsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30905 c.parent = parent
30906 c.googleclouddiscoveryenginev1betaimportusereventsrequest = googleclouddiscoveryenginev1betaimportusereventsrequest
30907 return c
30908 }
30909
30910
30911
30912
30913 func (c *ProjectsLocationsDataStoresUserEventsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsImportCall {
30914 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30915 return c
30916 }
30917
30918
30919 func (c *ProjectsLocationsDataStoresUserEventsImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsImportCall {
30920 c.ctx_ = ctx
30921 return c
30922 }
30923
30924
30925
30926 func (c *ProjectsLocationsDataStoresUserEventsImportCall) Header() http.Header {
30927 if c.header_ == nil {
30928 c.header_ = make(http.Header)
30929 }
30930 return c.header_
30931 }
30932
30933 func (c *ProjectsLocationsDataStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) {
30934 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30935 var body io.Reader = nil
30936 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betaimportusereventsrequest)
30937 if err != nil {
30938 return nil, err
30939 }
30940 c.urlParams_.Set("alt", alt)
30941 c.urlParams_.Set("prettyPrint", "false")
30942 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:import")
30943 urls += "?" + c.urlParams_.Encode()
30944 req, err := http.NewRequest("POST", urls, body)
30945 if err != nil {
30946 return nil, err
30947 }
30948 req.Header = reqHeaders
30949 googleapi.Expand(req.URL, map[string]string{
30950 "parent": c.parent,
30951 })
30952 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30953 }
30954
30955
30956
30957
30958
30959
30960
30961 func (c *ProjectsLocationsDataStoresUserEventsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30962 gensupport.SetOptions(c.urlParams_, opts...)
30963 res, err := c.doRequest("json")
30964 if res != nil && res.StatusCode == http.StatusNotModified {
30965 if res.Body != nil {
30966 res.Body.Close()
30967 }
30968 return nil, gensupport.WrapError(&googleapi.Error{
30969 Code: res.StatusCode,
30970 Header: res.Header,
30971 })
30972 }
30973 if err != nil {
30974 return nil, err
30975 }
30976 defer googleapi.CloseBody(res)
30977 if err := googleapi.CheckResponse(res); err != nil {
30978 return nil, gensupport.WrapError(err)
30979 }
30980 ret := &GoogleLongrunningOperation{
30981 ServerResponse: googleapi.ServerResponse{
30982 Header: res.Header,
30983 HTTPStatusCode: res.StatusCode,
30984 },
30985 }
30986 target := &ret
30987 if err := gensupport.DecodeResponse(target, res); err != nil {
30988 return nil, err
30989 }
30990 return ret, nil
30991 }
30992
30993 type ProjectsLocationsDataStoresUserEventsWriteCall struct {
30994 s *Service
30995 parent string
30996 googleclouddiscoveryenginev1betauserevent *GoogleCloudDiscoveryengineV1betaUserEvent
30997 urlParams_ gensupport.URLParams
30998 ctx_ context.Context
30999 header_ http.Header
31000 }
31001
31002
31003
31004
31005
31006
31007
31008
31009
31010 func (r *ProjectsLocationsDataStoresUserEventsService) Write(parent string, googleclouddiscoveryenginev1betauserevent *GoogleCloudDiscoveryengineV1betaUserEvent) *ProjectsLocationsDataStoresUserEventsWriteCall {
31011 c := &ProjectsLocationsDataStoresUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31012 c.parent = parent
31013 c.googleclouddiscoveryenginev1betauserevent = googleclouddiscoveryenginev1betauserevent
31014 return c
31015 }
31016
31017
31018
31019
31020 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsWriteCall {
31021 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31022 return c
31023 }
31024
31025
31026 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsWriteCall {
31027 c.ctx_ = ctx
31028 return c
31029 }
31030
31031
31032
31033 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Header() http.Header {
31034 if c.header_ == nil {
31035 c.header_ = make(http.Header)
31036 }
31037 return c.header_
31038 }
31039
31040 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
31041 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31042 var body io.Reader = nil
31043 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betauserevent)
31044 if err != nil {
31045 return nil, err
31046 }
31047 c.urlParams_.Set("alt", alt)
31048 c.urlParams_.Set("prettyPrint", "false")
31049 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:write")
31050 urls += "?" + c.urlParams_.Encode()
31051 req, err := http.NewRequest("POST", urls, body)
31052 if err != nil {
31053 return nil, err
31054 }
31055 req.Header = reqHeaders
31056 googleapi.Expand(req.URL, map[string]string{
31057 "parent": c.parent,
31058 })
31059 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31060 }
31061
31062
31063
31064
31065
31066
31067
31068 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaUserEvent, error) {
31069 gensupport.SetOptions(c.urlParams_, opts...)
31070 res, err := c.doRequest("json")
31071 if res != nil && res.StatusCode == http.StatusNotModified {
31072 if res.Body != nil {
31073 res.Body.Close()
31074 }
31075 return nil, gensupport.WrapError(&googleapi.Error{
31076 Code: res.StatusCode,
31077 Header: res.Header,
31078 })
31079 }
31080 if err != nil {
31081 return nil, err
31082 }
31083 defer googleapi.CloseBody(res)
31084 if err := googleapi.CheckResponse(res); err != nil {
31085 return nil, gensupport.WrapError(err)
31086 }
31087 ret := &GoogleCloudDiscoveryengineV1betaUserEvent{
31088 ServerResponse: googleapi.ServerResponse{
31089 Header: res.Header,
31090 HTTPStatusCode: res.StatusCode,
31091 },
31092 }
31093 target := &ret
31094 if err := gensupport.DecodeResponse(target, res); err != nil {
31095 return nil, err
31096 }
31097 return ret, nil
31098 }
31099
31100 type ProjectsLocationsGroundingConfigsCheckCall struct {
31101 s *Service
31102 groundingConfig string
31103 googleclouddiscoveryenginev1betacheckgroundingrequest *GoogleCloudDiscoveryengineV1betaCheckGroundingRequest
31104 urlParams_ gensupport.URLParams
31105 ctx_ context.Context
31106 header_ http.Header
31107 }
31108
31109
31110
31111
31112
31113 func (r *ProjectsLocationsGroundingConfigsService) Check(groundingConfig string, googleclouddiscoveryenginev1betacheckgroundingrequest *GoogleCloudDiscoveryengineV1betaCheckGroundingRequest) *ProjectsLocationsGroundingConfigsCheckCall {
31114 c := &ProjectsLocationsGroundingConfigsCheckCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31115 c.groundingConfig = groundingConfig
31116 c.googleclouddiscoveryenginev1betacheckgroundingrequest = googleclouddiscoveryenginev1betacheckgroundingrequest
31117 return c
31118 }
31119
31120
31121
31122
31123 func (c *ProjectsLocationsGroundingConfigsCheckCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroundingConfigsCheckCall {
31124 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31125 return c
31126 }
31127
31128
31129 func (c *ProjectsLocationsGroundingConfigsCheckCall) Context(ctx context.Context) *ProjectsLocationsGroundingConfigsCheckCall {
31130 c.ctx_ = ctx
31131 return c
31132 }
31133
31134
31135
31136 func (c *ProjectsLocationsGroundingConfigsCheckCall) Header() http.Header {
31137 if c.header_ == nil {
31138 c.header_ = make(http.Header)
31139 }
31140 return c.header_
31141 }
31142
31143 func (c *ProjectsLocationsGroundingConfigsCheckCall) doRequest(alt string) (*http.Response, error) {
31144 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31145 var body io.Reader = nil
31146 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betacheckgroundingrequest)
31147 if err != nil {
31148 return nil, err
31149 }
31150 c.urlParams_.Set("alt", alt)
31151 c.urlParams_.Set("prettyPrint", "false")
31152 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+groundingConfig}:check")
31153 urls += "?" + c.urlParams_.Encode()
31154 req, err := http.NewRequest("POST", urls, body)
31155 if err != nil {
31156 return nil, err
31157 }
31158 req.Header = reqHeaders
31159 googleapi.Expand(req.URL, map[string]string{
31160 "groundingConfig": c.groundingConfig,
31161 })
31162 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31163 }
31164
31165
31166
31167
31168
31169
31170
31171
31172
31173 func (c *ProjectsLocationsGroundingConfigsCheckCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaCheckGroundingResponse, error) {
31174 gensupport.SetOptions(c.urlParams_, opts...)
31175 res, err := c.doRequest("json")
31176 if res != nil && res.StatusCode == http.StatusNotModified {
31177 if res.Body != nil {
31178 res.Body.Close()
31179 }
31180 return nil, gensupport.WrapError(&googleapi.Error{
31181 Code: res.StatusCode,
31182 Header: res.Header,
31183 })
31184 }
31185 if err != nil {
31186 return nil, err
31187 }
31188 defer googleapi.CloseBody(res)
31189 if err := googleapi.CheckResponse(res); err != nil {
31190 return nil, gensupport.WrapError(err)
31191 }
31192 ret := &GoogleCloudDiscoveryengineV1betaCheckGroundingResponse{
31193 ServerResponse: googleapi.ServerResponse{
31194 Header: res.Header,
31195 HTTPStatusCode: res.StatusCode,
31196 },
31197 }
31198 target := &ret
31199 if err := gensupport.DecodeResponse(target, res); err != nil {
31200 return nil, err
31201 }
31202 return ret, nil
31203 }
31204
31205 type ProjectsLocationsOperationsGetCall struct {
31206 s *Service
31207 name string
31208 urlParams_ gensupport.URLParams
31209 ifNoneMatch_ string
31210 ctx_ context.Context
31211 header_ http.Header
31212 }
31213
31214
31215
31216
31217
31218
31219 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
31220 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31221 c.name = name
31222 return c
31223 }
31224
31225
31226
31227
31228 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
31229 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31230 return c
31231 }
31232
31233
31234
31235
31236 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
31237 c.ifNoneMatch_ = entityTag
31238 return c
31239 }
31240
31241
31242 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
31243 c.ctx_ = ctx
31244 return c
31245 }
31246
31247
31248
31249 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
31250 if c.header_ == nil {
31251 c.header_ = make(http.Header)
31252 }
31253 return c.header_
31254 }
31255
31256 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
31257 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31258 if c.ifNoneMatch_ != "" {
31259 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31260 }
31261 var body io.Reader = nil
31262 c.urlParams_.Set("alt", alt)
31263 c.urlParams_.Set("prettyPrint", "false")
31264 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
31265 urls += "?" + c.urlParams_.Encode()
31266 req, err := http.NewRequest("GET", urls, body)
31267 if err != nil {
31268 return nil, err
31269 }
31270 req.Header = reqHeaders
31271 googleapi.Expand(req.URL, map[string]string{
31272 "name": c.name,
31273 })
31274 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31275 }
31276
31277
31278
31279
31280
31281
31282
31283 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
31284 gensupport.SetOptions(c.urlParams_, opts...)
31285 res, err := c.doRequest("json")
31286 if res != nil && res.StatusCode == http.StatusNotModified {
31287 if res.Body != nil {
31288 res.Body.Close()
31289 }
31290 return nil, gensupport.WrapError(&googleapi.Error{
31291 Code: res.StatusCode,
31292 Header: res.Header,
31293 })
31294 }
31295 if err != nil {
31296 return nil, err
31297 }
31298 defer googleapi.CloseBody(res)
31299 if err := googleapi.CheckResponse(res); err != nil {
31300 return nil, gensupport.WrapError(err)
31301 }
31302 ret := &GoogleLongrunningOperation{
31303 ServerResponse: googleapi.ServerResponse{
31304 Header: res.Header,
31305 HTTPStatusCode: res.StatusCode,
31306 },
31307 }
31308 target := &ret
31309 if err := gensupport.DecodeResponse(target, res); err != nil {
31310 return nil, err
31311 }
31312 return ret, nil
31313 }
31314
31315 type ProjectsLocationsOperationsListCall struct {
31316 s *Service
31317 name string
31318 urlParams_ gensupport.URLParams
31319 ifNoneMatch_ string
31320 ctx_ context.Context
31321 header_ http.Header
31322 }
31323
31324
31325
31326
31327
31328 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
31329 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31330 c.name = name
31331 return c
31332 }
31333
31334
31335 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
31336 c.urlParams_.Set("filter", filter)
31337 return c
31338 }
31339
31340
31341
31342 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
31343 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
31344 return c
31345 }
31346
31347
31348
31349 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
31350 c.urlParams_.Set("pageToken", pageToken)
31351 return c
31352 }
31353
31354
31355
31356
31357 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
31358 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31359 return c
31360 }
31361
31362
31363
31364
31365 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
31366 c.ifNoneMatch_ = entityTag
31367 return c
31368 }
31369
31370
31371 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
31372 c.ctx_ = ctx
31373 return c
31374 }
31375
31376
31377
31378 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
31379 if c.header_ == nil {
31380 c.header_ = make(http.Header)
31381 }
31382 return c.header_
31383 }
31384
31385 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
31386 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31387 if c.ifNoneMatch_ != "" {
31388 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31389 }
31390 var body io.Reader = nil
31391 c.urlParams_.Set("alt", alt)
31392 c.urlParams_.Set("prettyPrint", "false")
31393 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
31394 urls += "?" + c.urlParams_.Encode()
31395 req, err := http.NewRequest("GET", urls, body)
31396 if err != nil {
31397 return nil, err
31398 }
31399 req.Header = reqHeaders
31400 googleapi.Expand(req.URL, map[string]string{
31401 "name": c.name,
31402 })
31403 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31404 }
31405
31406
31407
31408
31409
31410
31411
31412 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
31413 gensupport.SetOptions(c.urlParams_, opts...)
31414 res, err := c.doRequest("json")
31415 if res != nil && res.StatusCode == http.StatusNotModified {
31416 if res.Body != nil {
31417 res.Body.Close()
31418 }
31419 return nil, gensupport.WrapError(&googleapi.Error{
31420 Code: res.StatusCode,
31421 Header: res.Header,
31422 })
31423 }
31424 if err != nil {
31425 return nil, err
31426 }
31427 defer googleapi.CloseBody(res)
31428 if err := googleapi.CheckResponse(res); err != nil {
31429 return nil, gensupport.WrapError(err)
31430 }
31431 ret := &GoogleLongrunningListOperationsResponse{
31432 ServerResponse: googleapi.ServerResponse{
31433 Header: res.Header,
31434 HTTPStatusCode: res.StatusCode,
31435 },
31436 }
31437 target := &ret
31438 if err := gensupport.DecodeResponse(target, res); err != nil {
31439 return nil, err
31440 }
31441 return ret, nil
31442 }
31443
31444
31445
31446
31447 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
31448 c.ctx_ = ctx
31449 defer c.PageToken(c.urlParams_.Get("pageToken"))
31450 for {
31451 x, err := c.Do()
31452 if err != nil {
31453 return err
31454 }
31455 if err := f(x); err != nil {
31456 return err
31457 }
31458 if x.NextPageToken == "" {
31459 return nil
31460 }
31461 c.PageToken(x.NextPageToken)
31462 }
31463 }
31464
31465 type ProjectsLocationsRankingConfigsRankCall struct {
31466 s *Service
31467 rankingConfig string
31468 googleclouddiscoveryenginev1betarankrequest *GoogleCloudDiscoveryengineV1betaRankRequest
31469 urlParams_ gensupport.URLParams
31470 ctx_ context.Context
31471 header_ http.Header
31472 }
31473
31474
31475
31476
31477
31478
31479 func (r *ProjectsLocationsRankingConfigsService) Rank(rankingConfig string, googleclouddiscoveryenginev1betarankrequest *GoogleCloudDiscoveryengineV1betaRankRequest) *ProjectsLocationsRankingConfigsRankCall {
31480 c := &ProjectsLocationsRankingConfigsRankCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31481 c.rankingConfig = rankingConfig
31482 c.googleclouddiscoveryenginev1betarankrequest = googleclouddiscoveryenginev1betarankrequest
31483 return c
31484 }
31485
31486
31487
31488
31489 func (c *ProjectsLocationsRankingConfigsRankCall) Fields(s ...googleapi.Field) *ProjectsLocationsRankingConfigsRankCall {
31490 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31491 return c
31492 }
31493
31494
31495 func (c *ProjectsLocationsRankingConfigsRankCall) Context(ctx context.Context) *ProjectsLocationsRankingConfigsRankCall {
31496 c.ctx_ = ctx
31497 return c
31498 }
31499
31500
31501
31502 func (c *ProjectsLocationsRankingConfigsRankCall) Header() http.Header {
31503 if c.header_ == nil {
31504 c.header_ = make(http.Header)
31505 }
31506 return c.header_
31507 }
31508
31509 func (c *ProjectsLocationsRankingConfigsRankCall) doRequest(alt string) (*http.Response, error) {
31510 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31511 var body io.Reader = nil
31512 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betarankrequest)
31513 if err != nil {
31514 return nil, err
31515 }
31516 c.urlParams_.Set("alt", alt)
31517 c.urlParams_.Set("prettyPrint", "false")
31518 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+rankingConfig}:rank")
31519 urls += "?" + c.urlParams_.Encode()
31520 req, err := http.NewRequest("POST", urls, body)
31521 if err != nil {
31522 return nil, err
31523 }
31524 req.Header = reqHeaders
31525 googleapi.Expand(req.URL, map[string]string{
31526 "rankingConfig": c.rankingConfig,
31527 })
31528 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31529 }
31530
31531
31532
31533
31534
31535
31536
31537 func (c *ProjectsLocationsRankingConfigsRankCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaRankResponse, error) {
31538 gensupport.SetOptions(c.urlParams_, opts...)
31539 res, err := c.doRequest("json")
31540 if res != nil && res.StatusCode == http.StatusNotModified {
31541 if res.Body != nil {
31542 res.Body.Close()
31543 }
31544 return nil, gensupport.WrapError(&googleapi.Error{
31545 Code: res.StatusCode,
31546 Header: res.Header,
31547 })
31548 }
31549 if err != nil {
31550 return nil, err
31551 }
31552 defer googleapi.CloseBody(res)
31553 if err := googleapi.CheckResponse(res); err != nil {
31554 return nil, gensupport.WrapError(err)
31555 }
31556 ret := &GoogleCloudDiscoveryengineV1betaRankResponse{
31557 ServerResponse: googleapi.ServerResponse{
31558 Header: res.Header,
31559 HTTPStatusCode: res.StatusCode,
31560 },
31561 }
31562 target := &ret
31563 if err := gensupport.DecodeResponse(target, res); err != nil {
31564 return nil, err
31565 }
31566 return ret, nil
31567 }
31568
31569 type ProjectsLocationsUserEventsWriteCall struct {
31570 s *Service
31571 parent string
31572 googleclouddiscoveryenginev1betauserevent *GoogleCloudDiscoveryengineV1betaUserEvent
31573 urlParams_ gensupport.URLParams
31574 ctx_ context.Context
31575 header_ http.Header
31576 }
31577
31578
31579
31580
31581
31582
31583
31584
31585
31586 func (r *ProjectsLocationsUserEventsService) Write(parent string, googleclouddiscoveryenginev1betauserevent *GoogleCloudDiscoveryengineV1betaUserEvent) *ProjectsLocationsUserEventsWriteCall {
31587 c := &ProjectsLocationsUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31588 c.parent = parent
31589 c.googleclouddiscoveryenginev1betauserevent = googleclouddiscoveryenginev1betauserevent
31590 return c
31591 }
31592
31593
31594
31595
31596 func (c *ProjectsLocationsUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsUserEventsWriteCall {
31597 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31598 return c
31599 }
31600
31601
31602 func (c *ProjectsLocationsUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsUserEventsWriteCall {
31603 c.ctx_ = ctx
31604 return c
31605 }
31606
31607
31608
31609 func (c *ProjectsLocationsUserEventsWriteCall) Header() http.Header {
31610 if c.header_ == nil {
31611 c.header_ = make(http.Header)
31612 }
31613 return c.header_
31614 }
31615
31616 func (c *ProjectsLocationsUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
31617 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31618 var body io.Reader = nil
31619 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1betauserevent)
31620 if err != nil {
31621 return nil, err
31622 }
31623 c.urlParams_.Set("alt", alt)
31624 c.urlParams_.Set("prettyPrint", "false")
31625 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+parent}/userEvents:write")
31626 urls += "?" + c.urlParams_.Encode()
31627 req, err := http.NewRequest("POST", urls, body)
31628 if err != nil {
31629 return nil, err
31630 }
31631 req.Header = reqHeaders
31632 googleapi.Expand(req.URL, map[string]string{
31633 "parent": c.parent,
31634 })
31635 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31636 }
31637
31638
31639
31640
31641
31642
31643
31644 func (c *ProjectsLocationsUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1betaUserEvent, error) {
31645 gensupport.SetOptions(c.urlParams_, opts...)
31646 res, err := c.doRequest("json")
31647 if res != nil && res.StatusCode == http.StatusNotModified {
31648 if res.Body != nil {
31649 res.Body.Close()
31650 }
31651 return nil, gensupport.WrapError(&googleapi.Error{
31652 Code: res.StatusCode,
31653 Header: res.Header,
31654 })
31655 }
31656 if err != nil {
31657 return nil, err
31658 }
31659 defer googleapi.CloseBody(res)
31660 if err := googleapi.CheckResponse(res); err != nil {
31661 return nil, gensupport.WrapError(err)
31662 }
31663 ret := &GoogleCloudDiscoveryengineV1betaUserEvent{
31664 ServerResponse: googleapi.ServerResponse{
31665 Header: res.Header,
31666 HTTPStatusCode: res.StatusCode,
31667 },
31668 }
31669 target := &ret
31670 if err := gensupport.DecodeResponse(target, res); err != nil {
31671 return nil, err
31672 }
31673 return ret, nil
31674 }
31675
31676 type ProjectsOperationsGetCall struct {
31677 s *Service
31678 name string
31679 urlParams_ gensupport.URLParams
31680 ifNoneMatch_ string
31681 ctx_ context.Context
31682 header_ http.Header
31683 }
31684
31685
31686
31687
31688
31689
31690 func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
31691 c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31692 c.name = name
31693 return c
31694 }
31695
31696
31697
31698
31699 func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
31700 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31701 return c
31702 }
31703
31704
31705
31706
31707 func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
31708 c.ifNoneMatch_ = entityTag
31709 return c
31710 }
31711
31712
31713 func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
31714 c.ctx_ = ctx
31715 return c
31716 }
31717
31718
31719
31720 func (c *ProjectsOperationsGetCall) Header() http.Header {
31721 if c.header_ == nil {
31722 c.header_ = make(http.Header)
31723 }
31724 return c.header_
31725 }
31726
31727 func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
31728 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31729 if c.ifNoneMatch_ != "" {
31730 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31731 }
31732 var body io.Reader = nil
31733 c.urlParams_.Set("alt", alt)
31734 c.urlParams_.Set("prettyPrint", "false")
31735 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}")
31736 urls += "?" + c.urlParams_.Encode()
31737 req, err := http.NewRequest("GET", urls, body)
31738 if err != nil {
31739 return nil, err
31740 }
31741 req.Header = reqHeaders
31742 googleapi.Expand(req.URL, map[string]string{
31743 "name": c.name,
31744 })
31745 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31746 }
31747
31748
31749
31750
31751
31752
31753
31754 func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
31755 gensupport.SetOptions(c.urlParams_, opts...)
31756 res, err := c.doRequest("json")
31757 if res != nil && res.StatusCode == http.StatusNotModified {
31758 if res.Body != nil {
31759 res.Body.Close()
31760 }
31761 return nil, gensupport.WrapError(&googleapi.Error{
31762 Code: res.StatusCode,
31763 Header: res.Header,
31764 })
31765 }
31766 if err != nil {
31767 return nil, err
31768 }
31769 defer googleapi.CloseBody(res)
31770 if err := googleapi.CheckResponse(res); err != nil {
31771 return nil, gensupport.WrapError(err)
31772 }
31773 ret := &GoogleLongrunningOperation{
31774 ServerResponse: googleapi.ServerResponse{
31775 Header: res.Header,
31776 HTTPStatusCode: res.StatusCode,
31777 },
31778 }
31779 target := &ret
31780 if err := gensupport.DecodeResponse(target, res); err != nil {
31781 return nil, err
31782 }
31783 return ret, nil
31784 }
31785
31786 type ProjectsOperationsListCall struct {
31787 s *Service
31788 name string
31789 urlParams_ gensupport.URLParams
31790 ifNoneMatch_ string
31791 ctx_ context.Context
31792 header_ http.Header
31793 }
31794
31795
31796
31797
31798
31799 func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
31800 c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31801 c.name = name
31802 return c
31803 }
31804
31805
31806 func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
31807 c.urlParams_.Set("filter", filter)
31808 return c
31809 }
31810
31811
31812
31813 func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
31814 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
31815 return c
31816 }
31817
31818
31819
31820 func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
31821 c.urlParams_.Set("pageToken", pageToken)
31822 return c
31823 }
31824
31825
31826
31827
31828 func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
31829 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31830 return c
31831 }
31832
31833
31834
31835
31836 func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
31837 c.ifNoneMatch_ = entityTag
31838 return c
31839 }
31840
31841
31842 func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
31843 c.ctx_ = ctx
31844 return c
31845 }
31846
31847
31848
31849 func (c *ProjectsOperationsListCall) Header() http.Header {
31850 if c.header_ == nil {
31851 c.header_ = make(http.Header)
31852 }
31853 return c.header_
31854 }
31855
31856 func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
31857 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31858 if c.ifNoneMatch_ != "" {
31859 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31860 }
31861 var body io.Reader = nil
31862 c.urlParams_.Set("alt", alt)
31863 c.urlParams_.Set("prettyPrint", "false")
31864 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta/{+name}/operations")
31865 urls += "?" + c.urlParams_.Encode()
31866 req, err := http.NewRequest("GET", urls, body)
31867 if err != nil {
31868 return nil, err
31869 }
31870 req.Header = reqHeaders
31871 googleapi.Expand(req.URL, map[string]string{
31872 "name": c.name,
31873 })
31874 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31875 }
31876
31877
31878
31879
31880
31881
31882
31883 func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
31884 gensupport.SetOptions(c.urlParams_, opts...)
31885 res, err := c.doRequest("json")
31886 if res != nil && res.StatusCode == http.StatusNotModified {
31887 if res.Body != nil {
31888 res.Body.Close()
31889 }
31890 return nil, gensupport.WrapError(&googleapi.Error{
31891 Code: res.StatusCode,
31892 Header: res.Header,
31893 })
31894 }
31895 if err != nil {
31896 return nil, err
31897 }
31898 defer googleapi.CloseBody(res)
31899 if err := googleapi.CheckResponse(res); err != nil {
31900 return nil, gensupport.WrapError(err)
31901 }
31902 ret := &GoogleLongrunningListOperationsResponse{
31903 ServerResponse: googleapi.ServerResponse{
31904 Header: res.Header,
31905 HTTPStatusCode: res.StatusCode,
31906 },
31907 }
31908 target := &ret
31909 if err := gensupport.DecodeResponse(target, res); err != nil {
31910 return nil, err
31911 }
31912 return ret, nil
31913 }
31914
31915
31916
31917
31918 func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
31919 c.ctx_ = ctx
31920 defer c.PageToken(c.urlParams_.Get("pageToken"))
31921 for {
31922 x, err := c.Do()
31923 if err != nil {
31924 return err
31925 }
31926 if err := f(x); err != nil {
31927 return err
31928 }
31929 if x.NextPageToken == "" {
31930 return nil
31931 }
31932 c.PageToken(x.NextPageToken)
31933 }
31934 }
31935
View as plain text